Address Resolver

EVENT

AddressRegistered(id, contractAddress)

AddressRegistered(bytes4 id, address contractAddress)

Event emitted for each address registered when the registerAddress function is called.

FUNCTIONS

getAddress(_id)

getAddressWithCheck(_id)

registerAddress(_ids, _addresses)

getAddress(bytes4 _id) -> address

Queries the registry for the address associated with _id.

visibility: external

state mutability: view

getAddressWithCheck(_id) -> address

Queries the registry for the address associated with _id, additionally checking whether the address is not the zero address.

visibility: external

state mutability: view

registerAddress(bytes4[] _ids, address[] _addresses)

Registers key-value pairs using _ids and _addresses to the registry mapping. This can only be accessed by the Rawrshak development team.

Emits an addressRegistered event for each address registered.

Requirements:

  • The length of _ids must equal the length of _addresses.

visibility: external

state mutability:

Last updated