ERC-5507 Refundable Tokens
Adds refund functionality to ERC-20, ERC-721, and ERC-1155 tokens
ERC-165 interface ids
Computed here as the XOR of the selectors each interface defines.
| ERC20Refund | 0x4d1444d1 |
| ERC721Refund | 0x54a15145 |
| ERC1155Refund | 0xebd3ba73 |
Functions this standard introduces (8)
0x5af36e3e | refund(uint256,uint256) | |
0x278ecde1 | refund(uint256) | |
0x8c7443d9 | refundDeadlineOf() | view |
0x4f556016 | refundDeadlineOf(uint256) | view |
0x7fd1252f | refundFrom(address,uint256,uint256) | |
0xbdde6dc6 | refundFrom(address,uint256) | |
0x5b30a72f | refundOf() | view |
0x81a49174 | refundOf(uint256) | view |
Inherited (20)
0xdd62ed3e | allowance(address,address) | ERC-20 |
0x095ea7b3 | approve(address,uint256) | ERC-20 |
0x00fdd58e | balanceOf(address,uint256) | ERC-1155 |
0x70a08231 | balanceOf(address) | ERC-20 |
0x4e1273f4 | balanceOfBatch(address[],uint256[]) | ERC-1155 |
0x313ce567 | decimals() | ERC-20 |
0x081812fc | getApproved(uint256) | ERC-721 |
0xe985e9c5 | isApprovedForAll(address,address) | ERC-721 |
0x06fdde03 | name() | ERC-20 |
0x6352211e | ownerOf(uint256) | ERC-721 |
0x2eb2c2d6 | safeBatchTransferFrom(address,address,uint256[],uint256[],bytes) | ERC-1155 |
0xb88d4fde | safeTransferFrom(address,address,uint256,bytes) | ERC-721 |
0xf242432a | safeTransferFrom(address,address,uint256,uint256,bytes) | ERC-1155 |
0x42842e0e | safeTransferFrom(address,address,uint256) | ERC-721 |
0xa22cb465 | setApprovalForAll(address,bool) | ERC-721 |
0x01ffc9a7 | supportsInterface(bytes4) | ERC-165 |
0x95d89b41 | symbol() | ERC-20 |
0x18160ddd | totalSupply() | ERC-20 |
0xa9059cbb | transfer(address,uint256) | ERC-20 |
0x23b872dd | transferFrom(address,address,uint256) | ERC-20 |
Events (7)
Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.
0xbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d | Refund(address,uint256) | |
0x89d85f56e3b62f6b4f2e6d123c8029a54435d6a834f262d8a2fa4aa22298b7ee | RefundFrom(address,address,uint256) | |
0xe4d61d97a0e512021bd12d507883ffde4735c5fe9940e5bd0d33669cb456bc7b | RefundBatch(address,uint256[]) | |
0xacecedf0f7bd558fda7910e9761b087bf7a2babc8c4ee7e3d855be4369d1c65b | RefundFromBatch(address,address,uint256) | |
0x73f04af9dcc582a923ec15d3eea990fe34adabfff2879e28d44572e01a54abb6 | Refund(address,uint256,uint256) | |
0xe4874169faee3a7c1957cb54fc737c0e8c594f755407059b0b24acc84fb31dbe | RefundBatch(address,uint256[],uint256[]) | |
0xa2587d560f9237e53ce537218b199ae1849a580a55d90113f523debc29cdc07a | RefundFromBatch(address,address,uint256[],uint256[]) |
Depends on (4)
Proposals this one names in its requires field.
What the specification covers
Compare with
Parsed from the canonical specification · discussion