Skip to main content

ERC1155Delegate

ERC1155Delegate

DELEGATION_CALLER

bytes32 DELEGATION_CALLER

PAUSABLE_CALLER

bytes32 PAUSABLE_CALLER

Pair

struct Pair {
uint256 salt;
contract IERC1155 token;
uint256 tokenId;
uint256 amount;
}

constructor

constructor(address pauser_, address secretShop_) public

delegateType

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

onERC1155BatchReceived

function onERC1155BatchReceived(address, address, uint256[], uint256[], bytes) external pure returns (bytes4)

Received function

onERC1155Received

function onERC1155Received(address, address, uint256, 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 ERC1155Delegate.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