/** * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ import { UseQueryOptions, UseMutationOptions } from "@tanstack/react-query"; import { ExecuteResult } from "@cosmjs/cosmwasm-stargate"; import { StdFee, Coin } from "@cosmjs/amino"; import { Uint128, Binary, Decimal, SwapOperation, ConfigResponse, SimulateSwapOperationsResponse } from "./StardexRouter.types"; import { StardexRouterQueryClient, StardexRouterClient } from "./StardexRouter.client"; export declare const stardexRouterQueryKeys: { contract: readonly [{ readonly contract: "stardexRouter"; }]; address: (contractAddress: string | undefined) => readonly [{ readonly address: string | undefined; readonly contract: "stardexRouter"; }]; config: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "config"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexRouter"; }]; simulateSwapOperations: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "simulate_swap_operations"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexRouter"; }]; }; export declare const stardexRouterQueries: { config: ({ client, options }: StardexRouterConfigQuery) => UseQueryOptions; simulateSwapOperations: ({ client, args, options }: StardexRouterSimulateSwapOperationsQuery) => UseQueryOptions; }; export interface StardexRouterReactQuery { client: StardexRouterQueryClient | undefined; options?: Omit, "'queryKey' | 'queryFn' | 'initialData'"> & { initialData?: undefined; }; } export interface StardexRouterSimulateSwapOperationsQuery extends StardexRouterReactQuery { args: { offerAmount: Uint128; operations: SwapOperation[]; }; } export declare function useStardexRouterSimulateSwapOperationsQuery({ client, args, options }: StardexRouterSimulateSwapOperationsQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexRouterConfigQuery extends StardexRouterReactQuery { } export declare function useStardexRouterConfigQuery({ client, options }: StardexRouterConfigQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexRouterExecuteSwapOperationMutation { client: StardexRouterClient; msg: { maxSpread?: Decimal; operation: SwapOperation; single: boolean; to?: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useStardexRouterExecuteSwapOperationMutation(options?: Omit, "mutationFn">): import("@tanstack/react-query").UseMutationResult; export interface StardexRouterExecuteSwapOperationsMutation { client: StardexRouterClient; msg: { maxSpread?: Decimal; minimumReceive?: Uint128; operations: SwapOperation[]; to?: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useStardexRouterExecuteSwapOperationsMutation(options?: Omit, "mutationFn">): import("@tanstack/react-query").UseMutationResult; export interface StardexRouterReceiveMutation { client: StardexRouterClient; msg: { amount: Uint128; msg: Binary; sender: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useStardexRouterReceiveMutation(options?: Omit, "mutationFn">): import("@tanstack/react-query").UseMutationResult;