axelar-gmp-sdk-solidity

Solidity API

IInterchainAddressTracker

Manages trusted addresses by chain, keeps track of addresses supported by the Axelar gateway contract

ZeroAddress

error ZeroAddress()

LengthMismatch

error LengthMismatch()

ZeroStringLength

error ZeroStringLength()

UntrustedChain

error UntrustedChain()

TrustedAddressSet

event TrustedAddressSet(string chain, string address_)

TrustedAddressRemoved

event TrustedAddressRemoved(string chain)

chainName

function chainName() external view returns (string)

Gets the name of the chain this is deployed at

trustedAddress

function trustedAddress(string chain) external view returns (string trustedAddress_)

Gets the trusted address at a remote chain

Parameters

Name Type Description
chain string Chain name of the remote chain

Return Values

Name Type Description
trustedAddress_ string The trusted address for the chain. Returns ‘’ if the chain is untrusted

trustedAddressHash

function trustedAddressHash(string chain) external view returns (bytes32 trustedAddressHash_)

Gets the trusted address hash for a chain

Parameters

Name Type Description
chain string Chain name

Return Values

Name Type Description
trustedAddressHash_ bytes32 the hash of the trusted address for that chain

isTrustedAddress

function isTrustedAddress(string chain, string address_) external view returns (bool)

Checks whether the interchain sender is a trusted address

Parameters

Name Type Description
chain string Chain name of the sender
address_ string Address of the sender

Return Values

Name Type Description
[0] bool bool true if the sender chain/address are trusted, false otherwise