TokenStore
Token Store
TokenStore
contract extension allows bundling-up of ERC20/ERC721/ERC1155 and native-tokan assets and provides logic for storing, releasing, and transferring them from the extending contract.
See {CurrencyTransferLib}
Methods
getTokenCountOfBundle
Returns the total number of assets in a particular bundle.
Parameters
_bundleId
uint256
undefined
Returns
_0
uint256
undefined
getTokenOfBundle
Returns an asset contained in a particular bundle, at a particular index.
Parameters
_bundleId
uint256
undefined
index
uint256
undefined
Returns
_0
ITokenBundle.Token
undefined
getUriOfBundle
Returns the uri of a particular bundle.
Parameters
_bundleId
uint256
undefined
Returns
_0
string
undefined
onERC1155BatchReceived
Parameters
_0
address
undefined
_1
address
undefined
_2
uint256[]
undefined
_3
uint256[]
undefined
_4
bytes
undefined
Returns
_0
bytes4
undefined
onERC1155Received
Parameters
_0
address
undefined
_1
address
undefined
_2
uint256
undefined
_3
uint256
undefined
_4
bytes
undefined
Returns
_0
bytes4
undefined
onERC721Received
See {IERC721Receiver-onERC721Received}. Always returns IERC721Receiver.onERC721Received.selector
.
Parameters
_0
address
undefined
_1
address
undefined
_2
uint256
undefined
_3
bytes
undefined
Returns
_0
bytes4
undefined
supportsInterface
See {IERC165-supportsInterface}.
Parameters
interfaceId
bytes4
undefined
Returns
_0
bool
undefined
Last updated