Low level methods from IcaAccount that we pass through to CosmosOrchestrationAccount

interface IcaAccountMethods {
    deactivate: (() => Promise<void>);
    executeEncodedTx: ((msgs: {
        $typeUrl?: string;
        typeUrl: string;
        value: string;
    }[], opts?: Partial<Omit<TxBody, "messages">>) => Promise<string>);
    reactivate: (() => Promise<void>);
}

Hierarchy (view full)

Properties

deactivate: (() => Promise<void>)

Deactivates the ICA account by closing the ICA channel. The Port is persisted so holders can always call .reactivate() to re-establish a new channel with the same chain address. CAVEAT: Does not retrieve assets so they may be lost if left.

if connection is not available or already deactivated

executeEncodedTx: ((msgs: {
    $typeUrl?: string;
    typeUrl: string;
    value: string;
}[], opts?: Partial<Omit<TxBody, "messages">>) => Promise<string>)

Submit a transaction on behalf of the remote account for execution on the remote chain.

Type declaration

    • (msgs, opts?): Promise<string>
    • Parameters

      • msgs: {
            $typeUrl?: string;
            typeUrl: string;
            value: string;
        }[]

        records for the transaction

      • Optionalopts: Partial<Omit<TxBody, "messages">>

        optional parameters for the Tx, like timeoutHeight and memo

      Returns Promise<string>

      acknowledgement string

reactivate: (() => Promise<void>)

Reactivates the ICA account by re-establishing a new channel with the original Port and requested address. If a channel is closed for an unexpected reason, such as a packet timeout, an automatic attempt to re will be made and the holder should not need to call .reactivate().

if connection is currently active