An object for access the core functions of a remote chain.

Note that "remote" can mean the local chain; it's just that accounts are treated as remote/arms length for consistency.

interface Chain<C> {
    getChainInfo: (() => Promise<KnownChains[C]["info"]>);
    getLocalDenom: ((denom) => Promise<string>);
    makeAccount: (() => Promise<OrchestrationAccount<C>>);
    query: ((queries) => Promise<Iterable<QueryResult>>);
}

Type Parameters

Properties

getChainInfo: (() => Promise<KnownChains[C]["info"]>)

Type declaration

getLocalDenom: ((denom) => Promise<string>)

Get the Denom on this Chain corresponding to the denom or Brand on this or another Chain.

Type declaration

    • (denom): Promise<string>
    • Parameters

      • denom: any

      Returns Promise<string>

Returns

makeAccount: (() => Promise<OrchestrationAccount<C>>)

Make a new account on the remote chain.

Type declaration

Returns

an object that controls a new remote account on Chain

query: ((queries) => Promise<Iterable<QueryResult>>)

Low level operation to query external chain state (e.g., governance params)

Type declaration

Returns