Docs
Reference
Contract documentation
common
IAddressManager

IAddressManager

Specifies methods to manage address mappings for given domain-name pairs.

setAddress

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

Sets the address for a specific domain-name pair.

Parameters

NameTypeDescription
domainuint256The domain to which the address will be mapped.
namebytes32The name to which the address will be mapped.
newAddressaddressThe Ethereum address to be mapped.

getAddress

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

Gets the address mapped to a specific domain-name pair.

Parameters

NameTypeDescription
domainuint256The domain for which the address needs to be fetched.
namebytes32The name for which the address needs to be fetched.

Return Values

NameTypeDescription
[0]addressAddress associated with the domain-name pair.

title: AddressManager

AddressManager

Manages a mapping of domain-name pairs to Ethereum addresses.

AddressSet

event AddressSet(uint256 domain, bytes32 name, address newAddress, address oldAddress)

EOA_OWNER_NOT_ALLOWED

error EOA_OWNER_NOT_ALLOWED()

init

function init() external

Initializes the owner for the upgradable contract.

setAddress

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

Sets the address for a specific domain-name pair.

Parameters

NameTypeDescription
domainuint256The domain to which the address will be mapped.
namebytes32The name to which the address will be mapped.
newAddressaddressThe Ethereum address to be mapped.

getAddress

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

Gets the address mapped to a specific domain-name pair.

Parameters

NameTypeDescription
domainuint256The domain for which the address needs to be fetched.
namebytes32The name for which the address needs to be fetched.

Return Values

NameTypeDescription
[0]addressAddress associated with the domain-name pair.

title: ProxiedAddressManager

ProxiedAddressManager

Proxied version of the parent contract.