import { GasPrice } from "@cosmjs/stargate"; import { OfflineSigner } from "@cosmjs/proto-signing"; import { OfflineAminoSigner } from "@cosmjs/amino"; import Long from "long"; import { Signer } from "./signers"; import { DesmosClient } from "./desmosclient"; import { BlockBroadcastResponse } from "./types/responses"; export type HdPath = { coinType: number; account: number; change: number; index: number; }; export declare const TEST_CHAIN_URL = "http://localhost:26657"; export declare const defaultGasPrice: GasPrice; export declare const DesmosHdPath: HdPath; export declare const CosmosHdPath: HdPath; export declare const DefaultFees: { SaveProfile: import("@cosmjs/stargate").StdFee; CreateSubspace: import("@cosmjs/stargate").StdFee; CreatePost: import("@cosmjs/stargate").StdFee; AddReason: import("@cosmjs/stargate").StdFee; CreateReport: import("@cosmjs/stargate").StdFee; RegisterReaction: import("@cosmjs/stargate").StdFee; AddReaction: import("@cosmjs/stargate").StdFee; WasmInstantiate: import("@cosmjs/stargate").StdFee; WasmExecute: import("@cosmjs/stargate").StdFee; }; export declare const testUser1: { mnemonic: string; dtag: string; address0: string; address1: string; }; export declare const testUser2: { mnemonic: string; dtag: string; address0: string; address1: string; }; /** * Creates a signer from the provided mnemonic. * @param mnemonic - The mnemonic passphrase used to derive the keys. * @param indexes - Derivation path indexes used to derive the keys. */ export declare function signerFromMnemonic(mnemonic: string, indexes?: number[]): Promise; /** * Creates a signer from the provided mnemonic. * @param mnemonic - The mnemonic passphrase used to derive the keys. * @param paths - Derivation paths used to derive the keys. * @param prefix - The bech32 address prefix. */ export declare function aminoSignerFromMnemonic(mnemonic: string, paths?: HdPath[], prefix?: string): Promise; /** * Returns a promise that resolves after the provided amount of milliseconds. * @param ms - Milliseconds that must pass before the promise resolves. */ export declare function delay(ms: number): Promise; /** * Builds a Signer and DesmosClient instance based on a test mnemonic. * The returned signer will sign transactions using the AMINO signing mode. */ export declare function getAminoSignerAndClient(): Promise<[ Signer, DesmosClient ]>; /** * Builds a Signer and DesmosClient instance based on a test mnemonic. * The returned signer will sign transactions using the DIRECT signing mode. */ export declare function getDirectSignerAndClient(mnemonic?: string): Promise<[Signer, DesmosClient]>; export declare function pollTx(client: DesmosClient, txHash: string): Promise; /** * Ensure that the provided {@link BlockBroadcastResponse} represents a * transaction that has been broadcasted successfully. */ export declare function assertTxSuccess(response: BlockBroadcastResponse): void; /** * Function to perform a broadcast tx test case where is tested both the * direct and amino encoding. * @param name - Test name. * @param testCase - Function that implements the test case. */ export declare function broadcastTest(name: string, testCase: (signer: Signer, client: DesmosClient, addresses: string[]) => Promise): void; /** * Function to create a profile for the provided address. */ export declare function createTestProfile(client: DesmosClient, address: string): Promise; /** * Function to create a test subspace. */ export declare function createTestSubspace(client: DesmosClient, creator: string): Promise; /** * Function to create a test post in a subspace. */ export declare function createTestPost(client: DesmosClient, creator: string, subspaceId: Long): Promise; /** * Function to create a new denom in the subsbace having the provided * id. */ export declare function createSubspaceToken(client: DesmosClient, subspaceId: Long, address: string): Promise;