import { Chain, Deploy } from '@fadroma/agent'; import type { Address, Message, CodeId, CodeHash, Token } from '@fadroma/agent'; import { CosmWasmClient, SigningCosmWasmClient } from '@hackbg/cosmjs-esm'; import type { Block } from '@hackbg/cosmjs-esm'; import type { CWMnemonicIdentity, CWSignerIdentity } from "./cw-identity.dist"; /** Generic agent for CosmWasm-enabled chains. */ export declare class CWConnection extends Chain.Connection { /** The bech32 prefix for the account's address */ bech32Prefix?: string; /** The coin type in the HD derivation path */ coinType?: number; /** The account index in the HD derivation path */ hdAccountIndex?: number; /** API connects asynchronously, so API handle is a promise of either variant. */ api: Promise; /** A supported method of authentication. */ identity: CWMnemonicIdentity | CWSignerIdentity; constructor(properties: Partial); doGetBlockInfo(): Promise; doGetHeight(): Promise; /** Query native token balance. */ doGetBalance(token?: string, address?: Address | undefined): Promise; doGetCodes(): Promise>; /** Stargate implementation of getting a code id. */ doGetCodeId(address: Address): Promise; doGetContractsByCodeId(id: CodeId): Promise>; /** Stargate implementation of getting a code hash. */ doGetCodeHashOfAddress(address: Address): Promise; /** Stargate implementation of getting a code hash. */ doGetCodeHashOfCodeId(codeId: CodeId): Promise; /** Stargate implementation of getting a contract label. */ getLabel(address: Address): Promise; /** Stargate implementation of sending native token. */ doSend(recipient: Address, amounts: Token.ICoin[], options?: Parameters[2]): Promise; /** Stargate implementation of batch send. */ doSendMany(outputs: [Address, Token.ICoin[]][], options?: Parameters[1]): Promise; doUpload(data: Uint8Array): Promise>; /** Instantiate a contract via CosmJS Stargate. */ doInstantiate(codeId: CodeId, options: Parameters[1]): Promise>; /** Call a transaction method of a contract. */ doExecute(contract: { address: Address; }, message: Message, { execSend, execMemo, execFee }?: Omit[2]>, 'execFee'> & { execFee?: Token.IFee | number | 'auto'; }): Promise; /** Stargate implementation of querying a smart contract. */ doQuery(contract: Address | { address: Address; }, message: Message): Promise; batch(): Chain.Batch; } /** Transaction batch for CosmWasm-enabled chains. */ export declare class CWBatch extends Chain.Batch { upload(code: Parameters["upload"]>[0], options: Parameters["upload"]>[1]): this; instantiate(code: Parameters["instantiate"]>[0], options: Parameters["instantiate"]>[1]): this; execute(contract: Parameters["execute"]>[0], options: Parameters["execute"]>[1]): this; submit(): Promise; } //# sourceMappingURL=cw-connection.d.ts.map