import { HttpEndpoint, TendermintClient } from "@cosmjs/tendermint-rpc"; import { StdFee } from "@shareledgerjs/amino"; import { EncodeObject, OfflineSigner } from "@shareledgerjs/signing"; import { DeliverTxResponse } from "./client"; import { GasPrice } from "./fee"; import { AssetExtension } from "./modules/asset"; import { AuthzExtension } from "./modules/authz"; import { BankExtension } from "./modules/bank"; import { DistributionExtension } from "./modules/distribution"; import { DocumentExtension } from "./modules/document"; import { ElectoralExtension } from "./modules/electoral"; import { FeegrantExtension } from "./modules/feegrant"; import { GentlemintExtension } from "./modules/gentlemint"; import { GovExtension } from "./modules/gov"; import { IdExtension } from "./modules/id"; import { NftExtension } from "./modules/nft"; import { SbtExtension } from "./modules/sbt"; import { SlashingExtension } from "./modules/slashing"; import { StakingExtension } from "./modules/staking"; import { SwapExtension } from "./modules/swap"; import { TokenExtension } from "./modules/token"; import { WasmExtension } from "./modules/wasm"; import { SignerData, SigningClient, SigningOptions } from "./signingclient"; export interface ShareledgerSigningClient extends BankExtension, DistributionExtension, GovExtension, FeegrantExtension, SlashingExtension, StakingExtension, AssetExtension, DocumentExtension, ElectoralExtension, GentlemintExtension, IdExtension, SwapExtension, WasmExtension, TokenExtension, NftExtension, SbtExtension, AuthzExtension { } export declare class ShareledgerSigningClient extends SigningClient { constructor(tmClient: TendermintClient | undefined, signer?: OfflineSigner, options?: SigningOptions); /** * Creates an instance by connecting to the given Tendermint RPC endpoint. * * This uses auto-detection to decide between a Tendermint 0.37 and 0.34 client. * To set the Tendermint client explicitly, use `create`. */ static connect(endpoint: string | HttpEndpoint, options?: SigningOptions): Promise; /** * Creates an instance from a manually created Tendermint client. * Use this to use `Tendermint37Client` instead of `Tendermint34Client`. */ static create(tmClient: TendermintClient, options?: SigningOptions): Promise; /** * Connect with blockchain RPC using mnemonic * @param endpoint RPC endpoint * @param mnemonic Mnemonic * @param options Signing options * * For now this uses the Tendermint 0.34 client. If you need Tendermint 0.37 * support, see `createWithSigner`. */ static connectWithSigner(endpoint: string | HttpEndpoint, mnemonic: string, options?: SigningOptions): Promise; /** * Connect with blockchain RPC using private key * @param endpoint RPC endpoint * @param privKey Private key * @param options Signing options * * For now this uses the Tendermint 0.34 client. If you need Tendermint 0.37 * support, see `createWithSigner`. */ static connectWithSigner(endpoint: string | HttpEndpoint, privKey: string | Uint8Array, options?: SigningOptions): Promise; /** * Connect with blockchain RPC using offline signer * @param endpoint RPC endpoint * @param signer Signer * @param options Signing options * * For now this uses the Tendermint 0.34 client. If you need Tendermint 0.37 * support, see `createWithSigner`. */ static connectWithSigner(endpoint: string | HttpEndpoint, signer: OfflineSigner, options?: SigningOptions): Promise; /** * Connect with blockchain RPC using mnemonic * @param endpoint RPC endpoint * @param mnemonic Mnemonic * @param options Signing options * * Creates an instance from a manually created Tendermint client. * Use this to use `Tendermint37Client` instead of `Tendermint34Client`. */ static createWithSigner(tmClient: TendermintClient, mnemonic: string, options?: SigningOptions): Promise; /** * Connect with blockchain RPC using private key * @param endpoint RPC endpoint * @param privKey Private key * @param options Signing options * * Creates an instance from a manually created Tendermint client. * Use this to use `Tendermint37Client` instead of `Tendermint34Client`. */ static createWithSigner(tmClient: TendermintClient, privKey: string | Uint8Array, options?: SigningOptions): Promise; /** * Connect with blockchain RPC using offline signer * @param endpoint RPC endpoint * @param signer Signer * @param options Signing options * * Creates an instance from a manually created Tendermint client. * Use this to use `Tendermint37Client` instead of `Tendermint34Client`. */ static createWithSigner(tmClient: TendermintClient, signer: OfflineSigner, options?: SigningOptions): Promise; static offline(mnemonic: string, options?: SigningOptions): Promise; static offline(privKey: string | Uint8Array, options?: SigningOptions): Promise; static offline(signer: OfflineSigner, options?: SigningOptions): Promise; protected static createSigner(input: string | Uint8Array): Promise; withSigner(signer: string | Uint8Array | OfflineSigner): Promise; withoutSigner(): ShareledgerSigningClient; signAndBroadcast(signerAddress: string, messages: readonly EncodeObject[] | Uint8Array, fee?: (StdFee & { gasPrice?: GasPrice; }) | number, memo?: string, explicitSignerData?: SignerData): Promise; signAndBroadcastSync(signerAddress: string, messages: readonly EncodeObject[] | Uint8Array, fee?: (StdFee & { gasPrice?: GasPrice; }) | number, memo?: string, explicitSignerData?: SignerData): Promise; sign(signerAddress: string, messages: readonly EncodeObject[] | Uint8Array, fee?: (StdFee & { gasPrice?: GasPrice; }) | number, memo?: string, explicitSignerData?: SignerData): Promise; estimate(signerAddress: string, messages: readonly EncodeObject[], memo?: string, fee?: (StdFee & { gasPrice?: GasPrice; }) | number, explicitSignerData?: SignerData): Promise<{ amount?: readonly import("@shareledgerjs/types/cosmos/base/v1beta1/coin").Coin[] | undefined; gas?: string | undefined; payer?: string | undefined; granter?: string | undefined; gasPrice?: GasPrice | undefined; }>; }