@cyberk/hyperion-sdk
Version:
Hyperion SDK from Cyberk
13 lines (12 loc) • 734 B
TypeScript
import type { QueryOptions } from "@tanstack/query-core";
import type { SigningClient } from "@titanlabjs/cosmos/signing-client";
import type { EncodeObject } from "@titanlabjs/titan-types/types";
import { CHAIN_IDS } from "../constants";
export interface SimulateTxOptions {
chainId: CHAIN_IDS;
signingClient?: SigningClient;
signerAddress?: string;
messages: EncodeObject[];
}
export declare const getSimulateTxQueryKey: (options: SimulateTxOptions) => readonly ["simulateTx", string | undefined, SigningClient | undefined, string];
export declare const getSimulateTxQueryOptions: (options: SimulateTxOptions) => QueryOptions<bigint | undefined, Error, bigint | undefined, ReturnType<typeof getSimulateTxQueryKey>>;