Skip to content

IIAddressUpdater#

Internal interface for AddressUpdater.

Functions#

getContractAddress#

Defined in IIAddressUpdater (Docs, Source).

function getContractAddress(
    string _name
) external view returns (
    address);

Returns contract address for the given name, which might be address(0).

Parameters Type Description
_name string Name of the contract to query.
Returns Type Description
[0] address Current address for the queried contract.

getContractAddressByHash#

Defined in IIAddressUpdater (Docs, Source).

function getContractAddressByHash(
    bytes32 _nameHash
) external view returns (
    address);

Returns contract address for the given name hash, which might be address(0).

Parameters Type Description
_nameHash bytes32 Hash of the contract name: keccak256(abi.encode(name))
Returns Type Description
[0] address Current address for the queried contract.

getContractAddresses#

Defined in IIAddressUpdater (Docs, Source).

function getContractAddresses(
    string[] _names
) external view returns (
    address[]);

Returns contract addresses for the given names, which might be address(0).

Parameters Type Description
_names string[] Names of the contracts to query.
Returns Type Description
[0] address[] Current addresses for the queried contracts.

getContractAddressesByHash#

Defined in IIAddressUpdater (Docs, Source).

function getContractAddressesByHash(
    bytes32[] _nameHashes
) external view returns (
    address[]);

Returns contract addresses for the given name hashes, which might be address(0).

Parameters Type Description
_nameHashes bytes32[] Hashes of the contract names: keccak256(abi.encode(name))
Returns Type Description
[0] address[] Current addresses for the queried contracts.

getContractNamesAndAddresses#

Defined in IIAddressUpdater (Docs, Source).

function getContractNamesAndAddresses(
) external view returns (
    string[] _contractNames,
    address[] _contractAddresses);

Returns all contract names and corresponding addresses currently being tracked.

Returns Type Description
_contractNames string[] Array of contract names.
_contractAddresses address[] Array of contract addresses.

Last update: 2024-03-01