UNPKG

@archwayhq/arch3-core

Version:

Core library to interact with Archway Network

18 lines (17 loc) 779 B
import { Any } from '@archwayhq/arch3-proto/build/google/protobuf/any'; import { Pubkey } from '@cosmjs/amino'; import { QueryClient } from '@cosmjs/stargate'; import { GetTxResponse, SimulateResponse } from 'cosmjs-types/cosmos/tx/v1beta1/service'; export interface TxExtension { readonly tx: { getTx: (txId: string) => Promise<GetTxResponse>; simulate: (messages: readonly Any[], memo: string | undefined, signer: Pubkey, sequence: number, granter?: string, payer?: string) => Promise<SimulateResponse>; }; } /** * Creates a tx extension for the given {@link QueryClient}. * * @param base - The base query client to use for RPC queries. * @returns A {@link TxExtension}. */ export declare function setupTxExtension(base: QueryClient): TxExtension;