web3wagmi
← All standards

ERC-6224 Contracts Dependencies Registry

Last CallERCcreated 2022-12-27requires ERC-1967, ERC-5750

A registry for managing smart contracts with their dependencies.

Author: Artem Chystiakov (@arvolear)

ERC-165 interface ids

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

IContractsRegistry0xbf1f7ef5
IDependant0xdb911e84

Functions this standard introduces (14)

0xbf5b6016addContract(string,address)
0xe0e084f8addProxyContract(string,address)
0x423c072baddProxyContractAndCall(string,address,bytes)
0x35817773getContract(string)view
0x3e3b5b19getInjector()view
0x8c223601hasContract(string)view
0x1adad8cfinjectDependencies(string)
0xbe96dc3einjectDependenciesWithData(string,bytes)
0x51dad82cjustAddProxyContract(string,address)
0x97623b58removeContract(string)
0x69130451setDependencies(address,bytes)
0x8cb941ccsetInjector(address)
0x1271bd53upgradeContract(string,address)
0x6bbe8694upgradeContractAndCall(string,address,bytes)

Events (4)

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

0x8b4ef7d4e5bc8f098e6f637ac0acf4aee47b3f027efea6307264b06b4bc9d298ContractAdded(string,address)
0x10e75df11debcdd8425769babc76babb1b082c13be22ba626bfc8e6de393c4c5ProxyContractAdded(string,address,address)
0x0ade5313c9e16e7e06de9ab0edde476cc9a6fd51b973b8685c6c5026028a39d2ProxyContractUpgraded(string,address)
0x0c4eafbc12ea2584eb34031bf52952af5909a5880ef4058cb05c627ae39ffda0ContractRemoved(string)

Depends on (2)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion