import { AccountSetBase, AccountSetBaseSuper, MsgOpt } from "./base"; import { CosmwasmQueries, IQueriesStore, QueriesSetBase } from "../query"; import { CoinPrimitive } from "../common"; import { ChainGetter } from "../chain"; import { AppCurrency } from "@keplr-wallet/types"; import { DeepPartial, DeepReadonly } from "utility-types"; import { CosmosAccount } from "./cosmos"; export interface CosmwasmAccount { cosmwasm: CosmwasmAccountImpl; } export declare const CosmwasmAccount: { use(options: { msgOptsCreator?: ((chainId: string) => DeepPartial | undefined) | undefined; queriesStore: IQueriesStore; }): (base: AccountSetBaseSuper & CosmosAccount, chainGetter: ChainGetter, chainId: string) => CosmwasmAccount; }; /** * @deprecated Predict gas through simulation rather than using a fixed gas. */ export interface CosmwasmMsgOpts { readonly send: { readonly cw20: Pick; }; readonly executeWasm: Pick; } /** * @deprecated Predict gas through simulation rather than using a fixed gas. */ export declare const defaultCosmwasmMsgOpts: CosmwasmMsgOpts; export declare class CosmwasmAccountImpl { protected readonly base: AccountSetBase & CosmosAccount; protected readonly chainGetter: ChainGetter; protected readonly chainId: string; protected readonly queriesStore: IQueriesStore; protected readonly _msgOpts: CosmwasmMsgOpts; constructor(base: AccountSetBase & CosmosAccount, chainGetter: ChainGetter, chainId: string, queriesStore: IQueriesStore, _msgOpts: CosmwasmMsgOpts); /** * @deprecated Predict gas through simulation rather than using a fixed gas. */ get msgOpts(): CosmwasmMsgOpts; protected processMakeSendTokenTx(amount: string, currency: AppCurrency, recipient: string): import("./types").MakeTxResponse | undefined; makeExecuteContractTx(type: "unknown" | keyof CosmwasmMsgOpts | undefined, contractAddress: string, obj: object, funds: CoinPrimitive[], preOnTxEvents?: ((tx: any) => void) | { onBroadcasted?: (txHash: Uint8Array) => void; onFulfill?: (tx: any) => void; }): import("./types").MakeTxResponse; protected get queries(): DeepReadonly; }