interface Orchestrator {
    asAmount: ((amount) => Amount);
    getBrandInfo: (<HoldingChain, IssuingChain>(denom) => {
        base: Chain<IssuingChain>;
        baseDenom: string;
        brand?: Brand;
        chain: Chain<HoldingChain>;
    });
    getChain: (<C>(chainName) => Promise<Chain<C>>);
}

Properties

asAmount: ((amount) => Amount)

Convert an amount described in native data to a local, structured Amount.

Type declaration

    • (amount): Amount
    • Parameters

      Returns Amount

Returns

the Amount in local structuerd format

getBrandInfo: (<HoldingChain, IssuingChain>(denom) => {
    base: Chain<IssuingChain>;
    baseDenom: string;
    brand?: Brand;
    chain: Chain<HoldingChain>;
})

For a denom, return information about a denom including the equivalent local Brand, the Chain on which the denom is held, and the Chain that issues the corresponding asset.

Type declaration

getChain: (<C>(chainName) => Promise<Chain<C>>)

Type declaration