import { AccountData, StdSignature } from "@cosmjs/amino"; import { ExecuteResult, SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate"; import { OfflineSigner } from "@cosmjs/proto-signing"; import { AuthExtension, DeliverTxResponse, QueryClient, SigningStargateClient } from "@cosmjs/stargate"; import { Tendermint34Client, Tendermint37Client } from "@cosmjs/tendermint-rpc"; import { BaseFeatures, ChainId, SendTransactionResult, Wallet, WalletState } from "@xlabs-libs/wallet-aggregator-core"; import { TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx"; import { CosmosConnectOptions, CosmosExecuteTransaction, CosmosTransaction, CosmosWalletConfig, ResourceMap } from "./types"; import { WalletInfo } from "./wallets"; /** * A class to interact with Cosmos blockchains. * * Caveat on smart contract execution: sendTransaction and signAndSendTransaction * do not parse logs and events. You can parse them through the utility methods * offered by cosmjs libraries, or use the executeMultiple method instead. */ export declare class CosmosWallet extends Wallet { protected chainId?: string; protected rpcs: ResourceMap; protected rests: ResourceMap; protected walletInfo: WalletInfo; protected signer?: OfflineSigner; protected accounts: AccountData[]; protected activeAccount?: AccountData; constructor({ chainId, rpcs, rests, walletInfo }: CosmosWalletConfig); getName(): string; getUrl(): string; getIcon(): string; getChainId(): 3104; getCosmosChainId(): string | undefined; getAddresses(): string[]; setMainAddress(address: string): void; getBalance(): Promise; isConnected(): boolean; getNetworkInfo(): { chainId: string | undefined; }; connect({ chainId }?: CosmosConnectOptions): Promise; private hasChain; private addChain; switchChain(chainId: string): Promise; disconnect(): Promise; getAccounts(): string[]; getAddress(): string | undefined; signTransaction(tx: CosmosTransaction): Promise; sendTransaction(tx: TxRaw): Promise>; signAndSendTransaction(tx: CosmosTransaction): Promise>; executeMultiple(tx: CosmosExecuteTransaction): Promise>; signMessage(msg: Uint8Array): Promise; getWalletState(): WalletState; calculateFee(tx: CosmosTransaction): Promise; getFeatures(): BaseFeatures[]; supportsChain(chainId: ChainId): boolean; getSigningStargateClient(): Promise; getSigningCosmWasmClient(): Promise; getQueryClient(): Promise; protected getTmClient(): Promise; } //# sourceMappingURL=cosmos.d.ts.map