ERC-5187 Extend EIP-1155 with rentable usage rights
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.
ERC-165 interface ids
Computed here as the XOR of the selectors each interface defines.
| IRental | 0x6938e358 |
Functions this standard introduces (7)
0x1ea6ab5f | expireAt(uint256,address) | view |
0x075912c4 | propertyRightOf(uint256) | view |
0x0df91a28 | renew(address,uint256,uint256) | |
0xaca73c6c | safeRent(address,address,uint256,uint256,uint256) | |
0xae066cb0 | sublet(address,uint256) | |
0xc21aa00e | takeBack(address,uint256) | |
0xbd85b039 | totalSupply(uint256) | view |
Inherited (7)
0x00fdd58e | balanceOf(address,uint256) | ERC-1155 |
0x4e1273f4 | balanceOfBatch(address[],uint256[]) | ERC-1155 |
0xe985e9c5 | isApprovedForAll(address,address) | ERC-1155 |
0x2eb2c2d6 | safeBatchTransferFrom(address,address,uint256[],uint256[],bytes) | ERC-1155 |
0xf242432a | safeTransferFrom(address,address,uint256,uint256,bytes) | ERC-1155 |
0xa22cb465 | setApprovalForAll(address,bool) | ERC-1155 |
0x01ffc9a7 | supportsInterface(bytes4) | ERC-165 |
Events (4)
Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.
0xcea8ef445f087e63df6f242396764cabddc0c40f6ed03ede0a0ce1feb5404b71 | Rented(uint256,address,uint256,uint256) | |
0x0a137ede5854d123ca0bed66cf10aa44aaf1aeabd8228052179f029a0ba1d646 | Renew(uint256,address,uint256) | |
0x11383c92e193ce09bafab08fdafc6e5810971c318d5fd42071aa9d8f545b5524 | Sublet(uint256,address,address) | |
0xa8c973aefba794c3713fc965c02b5ad8a3006530d6d704c5a0040c7d5698906d | TakeBack(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