Skip to main content

ERC721Delegate

ERC721Delegate

DELEGATION_CALLER

bytes32 DELEGATION_CALLER

PAUSABLE_CALLER

bytes32 PAUSABLE_CALLER

Pair

struct Pair {
uint256 salt;
contract IERC721 token;
uint256 tokenId;
}

constructor

constructor(address pauser_, address secretShop_) public

delegateType

function delegateType() external pure returns (uint256)
NameTypeDescription
[0]uint256delegateType the delegate's type

onERC721Received

function onERC721Received(address, address, uint256, bytes) external pure returns (bytes4)

Received function

pause

function pause() public

unpause

function unpause() public

decode

function decode(bytes data) public pure returns (struct ERC721Delegate.Pair[])

decode data to the array of Pair

executeSell

function executeSell(address seller, address buyer, bytes data) public returns (bool)

run the sell to transfer item

NameTypeDescription
selleraddressaddress which sell the item
buyeraddressaddress which buy the item
databytesthe item's data, which will be decode as a array of Pair