InterfaceBasedRegistry
Description
An ERC-165-based registry for contracts.
Implementation
public variable UPGRADE_REGISTRY_PERMISSION_ID
The ID of the permission required to call the _authorizeUpgrade
function.
bytes32 UPGRADE_REGISTRY_PERMISSION_ID
public variable targetInterfaceId
The ERC-165 interface ID that the target contracts being registered must support.
bytes4 targetInterfaceId
public variable entries
The mapping containing the registry entries returning true for registered contract addresses.
mapping(address => bool) entries
error ContractAlreadyRegistered
Thrown if the contract is already registered.
error ContractAlreadyRegistered(address registrant)
Input | Type | Description |
---|---|---|
registrant | address | The address of the contract to be registered. |