web3wagmi
← All standards

ERC-7820 Access Control Registry

FinalERCcreated 2024-11-19

Registration, unregistration, role assignment, and role revocation for contracts, ensuring secure and transparent role management.

Authors: Shubham Khandelwal (@shubh-ta), Anushka Yadav (@anushka642000)

ERC-165 interface ids

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

IAccessControlRegistry0x9727a0d7

Functions this standard introduces (6)

0xcd481e51getContractInfo(address)view
0x07483499getRoleInfo(address)view
0xd240733fgrantRole(address[],bytes32[],address[])
0x22a5dde4registerContract(address)
0x2f2f0dddrevokeRole(address[],bytes32[],address[])
0x82ed2919unRegisterContract(address)

Events (4)

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

0x768fb430a0d4b201cb764ab221c316dd14d8babf2e4b2348e05964c6565318b6ContractRegistered(address,address)
0x6c0b8518b86a3f2aab1a16148ee99e9cce485dfb40b2c510326a696b577a6f43ContractUnregistered(address,address)
0x2739f947da5133134a8e9c6a84d5ed6da396844d81b4a760121c8b9c668bdf9cRoleGranted(address,bytes32,address)
0x8fa769283732af9aa4f65d966aceb1295944e96fcdd7031699b47da23286d285RoleRevoked(address,bytes32,address)

Custom errors (1)

0x70bc3e85ContractAlreadyRegistered()

What the specification covers

Compare with

Parsed from the canonical specification · discussion