Перейти к основному содержанию

TransferSelectorNFT

It selects the NFT transfer manager based on a collection address.

Methods

INTERFACE_ID_ERC1155

function INTERFACE_ID_ERC1155() external view returns (bytes4)

Returns

NameTypeDescription
INTERFACE_ID_ERC1155bytes4-

INTERFACE_ID_ERC721

function INTERFACE_ID_ERC721() external view returns (bytes4)

Returns

NameTypeDescription
INTERFACE_ID_ERC721bytes4-

TRANSFER_MANAGER_ERC1155

function TRANSFER_MANAGER_ERC1155() external view returns (address)

Returns

NameTypeDescription
TRANSFER_MANAGER_ERC1155addressaddress of the TransferManagerERC1155

TRANSFER_MANAGER_ERC721

function TRANSFER_MANAGER_ERC721() external view returns (address)

Returns

NameTypeDescription
TRANSFER_MANAGER_ERC721addressaddress of the TransferManagerERC721

addCollectionTransferManager

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)

Parameters

NameTypeDescription
collectionaddresscollection address to add specific transfer rule
transferManageraddressaddress of the transfer manager

checkTransferManagerForToken

function checkTransferManagerForToken(address collection) external view returns (address transferManager)

Check the transfer manager for a token

Support for ERC165 interface is checked AFTER custom implementation

Parameters

NameTypeDescription
collectionaddresscollection address

Returns

NameTypeDescription
transferManageraddressaddress of the transfer manager for this collection

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription
owneraddressaddress of the current owner

removeCollectionTransferManager

function removeCollectionTransferManager(address collection) external nonpayable

Remove a transfer manager for a collection

Parameters

NameTypeDescription
collectionaddresscollection address to remove exception

renounceOwnership

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.

transferManagerSelectorForCollection

function transferManagerSelectorForCollection(address) external view returns (address)

Parameters

NameTypeDescription
collectionaddressaddress of the collection

Returns

NameTypeDescription
-addresstransfer selector address (if no exception, it returns address(0))

transferOwnership

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

NameTypeDescription
newOwneraddressaddress of the new owner

Events

CollectionTransferManagerAdded

event CollectionTransferManagerAdded(address indexed collection, address indexed transferManager)

Parameters

NameTypeDescription
collection indexedaddress-
transferManager indexedaddress-

CollectionTransferManagerRemoved

event CollectionTransferManagerRemoved(address indexed collection)

Parameters

NameTypeDescription
collection indexedaddress-

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressaddress of the previous owner
newOwner indexedaddressaddress of the new owner