web3wagmi
← All standards

ERC-5187 Extend EIP-1155 with rentable usage rights

StagnantERCcreated 2022-04-17requires ERC-165, ERC-1155

Separate ownership and usage rights of EIP-1155 to allow users to use NFTs for an allotted time and return them to owners after expiration.

Author: DerivStudio (@DerivStudio)

ERC-165 interface ids

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

IRental0x6938e358

Functions this standard introduces (7)

0x1ea6ab5fexpireAt(uint256,address)view
0x075912c4propertyRightOf(uint256)view
0x0df91a28renew(address,uint256,uint256)
0xaca73c6csafeRent(address,address,uint256,uint256,uint256)
0xae066cb0sublet(address,uint256)
0xc21aa00etakeBack(address,uint256)
0xbd85b039totalSupply(uint256)view

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 (4)

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

0xcea8ef445f087e63df6f242396764cabddc0c40f6ed03ede0a0ce1feb5404b71Rented(uint256,address,uint256,uint256)
0x0a137ede5854d123ca0bed66cf10aa44aaf1aeabd8228052179f029a0ba1d646Renew(uint256,address,uint256)
0x11383c92e193ce09bafab08fdafc6e5810971c318d5fd42071aa9d8f545b5524Sublet(uint256,address,address)
0xa8c973aefba794c3713fc965c02b5ad8a3006530d6d704c5a0040c7d5698906dTakeBack(uint256,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