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)
Name | Type | Description |
---|---|---|
[0] | uint256 | delegateType 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
Name | Type | Description |
---|---|---|
seller | address | address which sell the item |
buyer | address | address which buy the item |
data | bytes | the item's data, which will be decode as a array of Pair |