Docs
Reference
Contract documentation
common
IAddressManager

IAddressManager

Interface to set and get an address for a name.

setAddress

function setAddress(uint256 domain, bytes32 name, address newAddress) external

Changes the address associated with a particular name.

Parameters

NameTypeDescription
domainuint256Uint256 domain to assiciate an address with.
namebytes32Name to associate an address with.
newAddressaddressAddress to associate with the name.

getAddress

function getAddress(uint256 domain, bytes32 name) external view returns (address)

Retrieves the address associated with a given name.

Parameters

NameTypeDescription
domainuint256Class to retrieve an address for.
namebytes32Name to retrieve an address for.

Return Values

NameTypeDescription
[0]addressAddress associated with the given name.

title: AddressManager

AddressManager

AddressSet

event AddressSet(uint256 _domain, bytes32 _name, address _newAddress, address _oldAddress)

EOAOwnerAddressNotAllowed

error EOAOwnerAddressNotAllowed()

init

function init() external

Initializer to be called after being deployed behind a proxy.

setAddress

function setAddress(uint256 domain, bytes32 name, address newAddress) external virtual

Changes the address associated with a particular name.

Parameters

NameTypeDescription
domainuint256Uint256 domain to assiciate an address with.
namebytes32Name to associate an address with.
newAddressaddressAddress to associate with the name.

getAddress

function getAddress(uint256 domain, bytes32 name) external view virtual returns (address addr)

Retrieves the address associated with a given name.

Parameters

NameTypeDescription
domainuint256Class to retrieve an address for.
namebytes32Name to retrieve an address for.

Return Values

NameTypeDescription
addraddressAddress associated with the given name.

title: ProxiedAddressManager

ProxiedAddressManager