TransferManager
It selects the NFT transfer manager based on a collection address.
view methods
INTERFACE_ID_ERC1155
Returns
Name | Type | Description |
---|---|---|
INTERFACE_ID_ERC1155 | bytes4 | - |
INTERFACE_ID_ERC721
Returns
Name | Type | Description |
---|---|---|
INTERFACE_ID_ERC721 | bytes4 | - |
TRANSFER_MANAGER_ERC1155
Returns
Name | Type | Description |
---|---|---|
TRANSFER_MANAGER_ERC1155 | address | address of the TransferManagerERC1155 |
TRANSFER_MANAGER_ERC721
Returns
Name | Type | Description |
---|---|---|
TRANSFER_MANAGER_ERC721 | address | address of the TransferManagerERC721 |
addCollectionTransferManager
Add a transfer manager for a collection
It is meant to be used for exceptions only (e.g., CryptoKitties)
Parameters
Name | Type | Description |
---|---|---|
collection | address | collection address to add specific transfer rule |
transferManager | address | address of the transfer manager |
checkTransferForToken
Check the transfer manager for a token
Support for ERC165 interface is checked AFTER custom implementation
Parameters
Name | Type | Description |
---|---|---|
collection | address | collection address |
Returns
Name | Type | Description |
---|---|---|
transferManager | address | address of the transfer manager for this collection |
owner
Returns the address of the current owner.
Returns
Name | Type | Description |
---|---|---|
owner | address | address of the current owner |
Methods
removeCollectionTransferManager
Remove a transfer manager for a collection
Parameters
Name | Type | Description |
---|---|---|
collection | address | collection address to remove exception |
renounceOwnership
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
transferManagerSelectorForCollection
Parameters
Name | Type | Description |
---|---|---|
collection | address | address of the collection |
Returns
Name | Type | Description |
---|---|---|
- | address | transfer selector address (if no exception, it returns address(0)) |
transferOwnership
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
Name | Type | Description |
---|---|---|
newOwner | address | address of the new owner |
Events
CollectionTransferManagerAdded
Parameters
Name | Type | Description |
---|---|---|
collection | address | - |
transferManager | address | - |
CollectionTransferManagerRemoved
Parameters
Name | Type | Description |
---|---|---|
collection | address | - |
OwnershipTransferred
Parameters
Name | Type | Description |
---|---|---|
previousOwner | address | address of the previous owner |
newOwner | address | address of the new owner |
Last updated