web3wagmi
← All standards

ERC-5496 Multi-privilege Management NFT Extension

Last CallERCcreated 2022-07-30requires ERC-721

Create shareable multi-privilege NFTs for EIP-721

Author: Jeremy Z (@wnft)

ERC-165 interface ids

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

IERC54960xc906a5cb
The spec asserts 0x076e1bbb for IERC5496, which its own interface does not produce.

Asserted value is reproducible only with setPrivilege(uint256,uint256,address,uint64); the body widened that parameter to uint256.

Functions this standard introduces (3)

0x05d80b00hasPrivilege(uint256,uint256,address)view
0x207d8cd1privilegeExpires(uint256,uint256)view
0xeca3221asetPrivilege(uint256,uint256,address,uint256)

Optional extensions (1)

Interfaces the spec defines alongside the core one, which an implementation may or may not carry.

IERC721Cloneable0xf228d6a4

0xf228d6a4clonePrivilege(uint256,uint256,address)

Events (3)

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

0x00ec38d8c28ef03d08af2b7530ba918d5a692f49a4537f44a942c56b164881adPrivilegeAssigned(uint256,uint256,address,uint256)
0x9011f83234bb30fe77ffded4ddf24b5eefdf095a32a7abe4f02c0ddb77d44919PrivilegeTotalChanged(uint256,uint256)
0xd4f223941a2c534b456865fe345fcaf94f8de1433f296fda49a5d781fb5aa7a4PrivilegeCloned(uint256,uint256,address,address)

Depends on (1)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion