Authority to make a Cosmos interchain account or an interchain query connection.

interface CosmosInterchainService {
    makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`, opts?: ICAChannelAddressOpts): Vow<IcaAccount>;
    provideICQConnection(controllerConnectionId: `connection-${number}`, version?: string): Guarded<{
        getLocalAddress(): `/ibc-port/${string}`;
        getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
        query(msgs: {
            data: string;
            height: string;
            path: string;
            prove: boolean;
        }[]): Vow<{
            code: number;
            codespace: string;
            height: string;
            index: string;
            info: string;
            key: string;
            log: string;
            proofOps?: {
                ops: {
                    data: string;
                    key: string;
                    type: string;
                }[];
            };
            value: string;
        }[]>;
    }> | Vow<Guarded<{
        getLocalAddress(): `/ibc-port/${string}`;
        getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
        query(msgs: {
            data: string;
            height: string;
            path: string;
            prove: boolean;
        }[]): Vow<{
            code: number;
            codespace: string;
            height: string;
            index: string;
            info: string;
            key: string;
            log: string;
            proofOps?: {
                ops: {
                    data: ...;
                    key: ...;
                    type: ...;
                }[];
            };
            value: string;
        }[]>;
    }>>;
}

Methods

  • Parameters

    • chainId: string
    • hostConnectionId: `connection-${number}`

      the counterparty connection_id

    • controllerConnectionId: `connection-${number}`

      self connection_id

    • Optionalopts: ICAChannelAddressOpts

      optional to configure the channel address, such as version and ordering

    Returns Vow<IcaAccount>

  • Parameters

    • controllerConnectionId: `connection-${number}`
    • Optionalversion: string

    Returns Guarded<{
        getLocalAddress(): `/ibc-port/${string}`;
        getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
        query(msgs: {
            data: string;
            height: string;
            path: string;
            prove: boolean;
        }[]): Vow<{
            code: number;
            codespace: string;
            height: string;
            index: string;
            info: string;
            key: string;
            log: string;
            proofOps?: {
                ops: {
                    data: string;
                    key: string;
                    type: string;
                }[];
            };
            value: string;
        }[]>;
    }> | Vow<Guarded<{
        getLocalAddress(): `/ibc-port/${string}`;
        getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
        query(msgs: {
            data: string;
            height: string;
            path: string;
            prove: boolean;
        }[]): Vow<{
            code: number;
            codespace: string;
            height: string;
            index: string;
            info: string;
            key: string;
            log: string;
            proofOps?: {
                ops: {
                    data: ...;
                    key: ...;
                    type: ...;
                }[];
            };
            value: string;
        }[]>;
    }>>