vaultId
must be on. The roots of both vault trees are updated when UpdateState
is called. The updated balances of rollup vaults are also emitted on-chain as calldata.assetInfo
, which includes a selector and contract address, and a quantum. The same quantum applies to all different assets that belong to that asset type.tokenIds
with different assetTypes
result in different assetIds
.ERC1155_SELECTOR = bytes4(keccak256("ERC1155Token(address,uint256)"))
(0x3348691d)
assetType
and tokenId
, but also including a quantizedAmount
argument.tokenId
is the internal token id within the ERC-1155 contract.assetId
is a unique StarkEx identifier calculated as follows: uint256(keccak256(abi.encodePacked("NON_MINTABLE:", assetType, tokenId))) & MASK_250
quantizedAmount
must equal one:depositWithTokenId
that supports only ERC-1155 tokens:function calculateAssetIdWithTokenId(uint256 assetType, uint256 tokenId) public view returns (uint256)