interchain-token-service

Solidity API

IChainTracker

This interface allows setting and removing a trusted address for a specific chain.

Extends the IInterchainAddressTracker interface.

TrustedChainSet

event TrustedChainSet(string chainName)

TrustedChainRemoved

event TrustedChainRemoved(string chainName)

isTrustedChain

function isTrustedChain(string chainName) external view returns (bool trusted)

Getter for whether a chain is trusted or not.

Needs to be overwitten.

Parameters

Name Type Description
chainName string the name of the chain to query for.

Return Values

Name Type Description
trusted bool whether the chain is trusted or not.

setTrustedChain

function setTrustedChain(string chainName) external

Sets the trusted address for the specified chain.

Parameters

Name Type Description
chainName string Chain name to be trusted.

removeTrustedChain

function removeTrustedChain(string chainName) external

Remove the trusted address of the chain.

Parameters

Name Type Description
chainName string Chain name to remove the trusted address for.