ERC-7590 ERC-20 Holder Extension for NFTs
Extension to allow NFTs to receive and transfer ERC-20 tokens.
ERC-165 interface ids
Computed here as the XOR of the selectors each interface defines.
| IERC7590 | 0x6f87c75c |
Functions this standard introduces (4)
0x866ef715 | balanceOfERC20(address,uint256) | view |
0xa869de0a | erc20TransferOutNonce(uint256) | view |
0xf43f7bba | transferERC20ToToken(address,uint256,uint256,bytes) | |
0xb5bf95f9 | transferHeldERC20FromToken(address,uint256,address,uint256,bytes) |
Inherited (10)
0x095ea7b3 | approve(address,uint256) | ERC-721 |
0x70a08231 | balanceOf(address) | ERC-721 |
0x081812fc | getApproved(uint256) | ERC-721 |
0xe985e9c5 | isApprovedForAll(address,address) | ERC-721 |
0x6352211e | ownerOf(uint256) | ERC-721 |
0xb88d4fde | safeTransferFrom(address,address,uint256,bytes) | ERC-721 |
0x42842e0e | safeTransferFrom(address,address,uint256) | ERC-721 |
0xa22cb465 | setApprovalForAll(address,bool) | ERC-721 |
0x01ffc9a7 | supportsInterface(bytes4) | ERC-165 |
0x23b872dd | transferFrom(address,address,uint256) | ERC-721 |
Events (2)
Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.
0x684ce28ace37552c6bfb98b7cceda8ed55327078eafb5dfb31218e0856382763 | ReceivedERC20(address,uint256,address,uint256) | |
0xf08722dda679d80a9dd519f28c27aeaa8d437512336f6fa9aea15e4e1f956908 | TransferredERC20(address,uint256,address,uint256) |
Depends on (3)
Proposals this one names in its requires field.
What the specification covers
Compare with
Parsed from the canonical specification · discussion