web3wagmi
← All standards

ERC-5635 NFT Licensing Agreements

StagnantERCcreated 2022-08-10requires ERC-165, ERC-721, ERC-1155, ERC-2981

An oracle for retrieving NFT licensing agreements

Authors: Timi (@0xTimi), 0xTriple7 (@ysqi)

ERC-165 interface ids

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

IERC5635DNFT0xbda94636
IERC1650x01ffc9a7
IERC5635Registry0x59213334
The spec asserts 0xd584841c for IERC5635DNFT, which its own interface does not produce.

The comment states a non-ERC-165 derivation, bytes4(keccak256("IERC5635DNFT{}")), which is also numerically wrong: that expression yields 0x37c007c8.

The spec asserts 0xb5065e9f for IERC5635Registry, which its own interface does not produce.

Same name-hash formula used file-wide; bytes4(keccak256("IERC5635Registry{}")) is 0xc4859425, so the asserted value is wrong on its own terms.

Functions this standard introduces (10)

0xe1f21c67approve(address,address,uint256)payable
0xdc68afd5authorizedBy(uint256,uint256)view
0x098f2366getApproved(address,uint256)view
0xf49f40dbisApprovedForAll(address,address,address)view
0x9b488346isLicensed(address,uint256,address,uint256)view
0x6f54368flicensingInfo(address,uint256,address,uint256)view
0x61c1e9e3numberOfCredentials(uint256)view
0xad3d86fdroyaltyRate(address,uint256,address,uint256)view
0x367605casetApprovalForAll(address,address,bool)
0x01ffc9a7supportsInterface(bytes4)view

Events (2)

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

0xa0175360a15bca328baf7ea85c7b784d58b222a50d0ce760b10dba336d226a61Approval(address,address,address,uint256)
0xb07c21540917d6c26160ba8bb76ed75a69387e4030b1292d8626576ada952b30ApprovalForAll(address,address,address,bool)

Depends on (4)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion