import { AccountSetBase, AccountSetBaseSuper, MsgOpt } from "./base"; import { SecretQueries, QueriesSetBase, IQueriesStore } from "../query"; import { CoinPrimitive } from "../common"; import { ChainGetter } from "../chain"; import { AppCurrency, KeplrSignOptions, StdFee } from "@keplr-wallet/types"; import { DeepPartial, DeepReadonly, Optional } from "utility-types"; import { CosmosAccount } from "./cosmos"; export interface SecretAccount { secret: SecretAccountImpl; } export declare const SecretAccount: { use(options: { msgOptsCreator?: ((chainId: string) => DeepPartial | undefined) | undefined; queriesStore: IQueriesStore; }): (base: AccountSetBaseSuper & CosmosAccount, chainGetter: ChainGetter, chainId: string) => SecretAccount; }; /** * @deprecated Predict gas through simulation rather than using a fixed gas. */ export interface SecretMsgOpts { readonly send: { readonly secret20: Pick; }; readonly createSecret20ViewingKey: Pick; readonly executeSecretWasm: Pick; } /** * @deprecated Predict gas through simulation rather than using a fixed gas. */ export declare const defaultSecretMsgOpts: SecretMsgOpts; export declare class SecretAccountImpl { protected readonly base: AccountSetBase & CosmosAccount; protected readonly chainGetter: ChainGetter; protected readonly chainId: string; protected readonly queriesStore: IQueriesStore; protected readonly _msgOpts: SecretMsgOpts; constructor(base: AccountSetBase & CosmosAccount, chainGetter: ChainGetter, chainId: string, queriesStore: IQueriesStore, _msgOpts: SecretMsgOpts); /** * @deprecated Predict gas through simulation rather than using a fixed gas. */ get msgOpts(): SecretMsgOpts; protected processMakeSendTokenTx(amount: string, currency: AppCurrency, recipient: string): import("./types").MakeTxResponse | undefined; createSecret20ViewingKey(contractAddress: string, memo?: string, stdFee?: Partial, signOptions?: KeplrSignOptions, onFulfill?: (tx: any, viewingKey: string) => void): Promise; makeExecuteSecretContractTx(type: "unknown" | keyof SecretMsgOpts | undefined, contractAddress: string, obj: object, sentFunds: CoinPrimitive[], preOnTxEvents?: ((tx: any) => void) | { onBroadcasted?: (txHash: Uint8Array) => void; onFulfill?: (tx: any) => void; }): import("./types").MakeTxResponse; /** * @deprecated */ sendExecuteSecretContractMsg(type: "unknown" | keyof SecretMsgOpts | undefined, contractAddress: string, obj: object, sentFunds: CoinPrimitive[], memo: string | undefined, stdFee: Optional, signOptions?: KeplrSignOptions, onTxEvents?: ((tx: any) => void) | { onBroadcasted?: (txHash: Uint8Array) => void; onFulfill?: (tx: any) => void; }): Promise; protected encryptSecretContractMsg(contractAddress: string, obj: object): Promise; protected get queries(): DeepReadonly; }