TransferManager
It selects the NFT transfer manager based on a collection address.
function INTERFACE_ID_ERC1155() external view returns (bytes4)
Name | Type | Description |
---|---|---|
INTERFACE_ID_ERC1155 | bytes4 | - |
function INTERFACE_ID_ERC721() external view returns (bytes4)
Name | Type | Description |
---|---|---|
INTERFACE_ID_ERC721 | bytes4 | - |
function TRANSFER_MANAGER_ERC1155() external view returns (address)
Name | Type | Description |
---|---|---|
TRANSFER_MANAGER_ERC1155 | address | address of the TransferManagerERC1155 |
function TRANSFER_MANAGER_ERC721() external view returns (address)
Name | Type | Description |
---|---|---|
TRANSFER_MANAGER_ERC721 | address | address of the TransferManagerERC721 |
function addCollectionTransferManager(address collection, address transferManager) external nonpayable
Add a transfer manager for a collection
It is meant to be used for exceptions only (e.g., CryptoKitties)
Name | Type | Description |
---|---|---|
collection | address | collection address to add specific transfer rule |
transferManager | address | address of the transfer manager |
function checkTransferForToken(address collection) external view returns (address transferManager)
Check the transfer manager for a token
Support for ERC165 interface is checked AFTER custom implementation
Name | Type | Description |
---|---|---|
collection | address | collection address |
Name | Type | Description |
---|---|---|
transferManager | address | address of the transfer manager for this collection |
function owner() external view returns (address)
Returns the address of the current owner.
Name | Type | Description |
---|---|---|
owner | address | address of the current owner |
function removeCollectionTransferManager(address collection) external nonpayable
Remove a transfer manager for a collection
Name | Type | Description |
---|---|---|
collection | address | collection address to remove exception |
function renounceOwnership() external nonpayable
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.function transferManagerSelectorForCollection(address) external view returns (address)
Name | Type | Description |
---|---|---|
collection | address | address of the collection |
Name | Type | Description |
---|---|---|
- | address | transfer selector address (if no exception, it returns address(0)) |
function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (
newOwner
). Can only be called by the current owner.Name | Type | Description |
---|---|---|
newOwner | address | address of the new owner |
event CollectionTransferManagerAdded(address indexed collection, address indexed transferManager)
Name | Type | Description |
---|---|---|
collection indexed | address | - |
transferManager indexed | address | - |
event CollectionTransferManagerRemoved(address indexed collection)
Name | Type | Description |
---|---|---|
collection indexed | address | - |
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Name | Type | Description |
---|---|---|
previousOwner indexed | address | address of the previous owner |
newOwner indexed | address | address of the new owner |
Last modified 10mo ago