web3wagmi
← All standards

ERC-7721 Lockable Extension for ERC-1155

DraftERCcreated 2023-05-25requires ERC-165, ERC-1155

Interface for enabling locking of ERC-1155 using locker and token id based approvals

Author: Piyush Chittara (@piyush-chittara)

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

IERCLockable11550x6bddb6aa

Functions this standard introduces (6)

0x270d103bgetLocked(uint256,address,address)view
0x6787c3dclock(uint256,address,address,uint256)
0xcf27cfc4lock(uint256,address,uint256)
0xdb5eb40asetApprovalForId(uint256,address,uint256)
0xf9996a7etransferAndLock(address,address,uint256,uint256,bool)
0xc6b774fdunlock(uint256,address,uint256)

Inherited (7)

0x00fdd58ebalanceOf(address,uint256)ERC-1155
0x4e1273f4balanceOfBatch(address[],uint256[])ERC-1155
0xe985e9c5isApprovedForAll(address,address)ERC-1155
0x2eb2c2d6safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)ERC-1155
0xf242432asafeTransferFrom(address,address,uint256,uint256,bytes)ERC-1155
0xa22cb465setApprovalForAll(address,bool)ERC-1155
0x01ffc9a7supportsInterface(bytes4)ERC-165

Events (2)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0xac062def014c92404a7629c0646fb6f81ee8dd0008735fb1ca74bc25d6bb61d2Lock(uint256,address,address,uint256)
0xcd0acb1b9f7168f29d2a45d3824b258d0be434a93b1ecd46e421de9261723bfcUnlock(uint256,address,address,uint256)

Depends on (2)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion