IFlareContractRegistry
Registry interface with all Flare contract addresses.
Check out the guide for instructions on how to interact with the Flare contracts registry.
Sourced from IFlareContractRegistry.sol
on GitLab.
Functions
getContractAddressByName
Returns contract address for the given name - might be address(0).
function getContractAddressByName(
string _name
) external view returns (
address);
Parameters
_name
: name of the contract which is case-sensitive, so you should use the proper capitalization.
getContractAddressByHash
Returns contract address for the given name hash - might be address(0).
function getContractAddressByHash(
bytes32 _nameHash
) external view returns (
address);
Parameters
_nameHash
: hash of the contract name (keccak256(abi.encode(name))
getContractAddressesByName
Returns contract addresses for the given names - might be address(0).
function getContractAddressesByName(
string[] _names
) external view returns (
address[]);
Parameters
_names
: names of the contracts which is case-sensitive, so you should use the proper capitalization.
getContractAddressesByHash
Returns contract addresses for the given name hashes - might be address(0)
function getContractAddressesByHash(
bytes32[] _nameHashes
) external view returns (
address[]);
Parameters
_nameHashes
: hashes of the contract names (keccak256(abi.encode(name))
getAllContracts
Returns all contract names and corresponding addresses
function getAllContracts(
) external view returns (
string[] _names,
address[] _addresses);