interchain-token-service

Solidity API

ChainTracker

CHAIN_TRACKER_SLOT

uint256 CHAIN_TRACKER_SLOT

ChainTrackerStorage

struct ChainTrackerStorage {
  mapping(string => bool) trustedChains;
}

_setTrustedChain

function _setTrustedChain(string chainName) internal

_removeTrustedChain

function _removeTrustedChain(string chainName) internal

isTrustedChain

function isTrustedChain(string chainName) public 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.