web3wagmi
← All standards

ERC-4974 Ratings

StagnantERCcreated 2022-04-02requires ERC-165

An interface for assigning and managing numerical ratings

Author: Daniel Tedesco (@dtedesco1)

ERC-165 interface ids

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

IERC49740xced04b8f

Functions this standard introduces (4)

0xe4e2f556rate(address,int8)
0x6205f4c5ratingOf(address)view
0xfb9c5fe7removeRating(address)
0xb3ab15fbsetOperator(address)

Inherited (1)

0x01ffc9a7supportsInterface(bytes4)ERC-165

Optional extensions (1)

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

IERC1650x01ffc9a7

0x01ffc9a7supportsInterface(bytes4)

Events (3)

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

0xda12ee837e6978172aaf54b16145ffe08414fd8710092ef033c71b8eb6ec189aNewOperator(address)
0x5f1944295bdaf381959cb2811e6e622d6a1a7d1e0ff555f1e28fc54ddc5c4652Rating(address,int8)
0x44a5b7afbb86623b8774fc11ab50ba2d84f43f00274a13506ce93a3066bc0d0fRemoval(address)

Depends on (1)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion