/** * 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 { AssetInfo, Binary, Uint128, Decimal, Asset, Uint64, NullableUint128, ConfigResponse, CumulativePricesResponse, OracleObservation, PairInfo, PoolResponse, ReverseSimulationResponse, ArrayOfAsset, SimulationResponse } from "./StardexPair.types"; import { StardexPairQueryClient, StardexPairClient } from "./StardexPair.client"; export declare const stardexPairQueryKeys: { contract: readonly [{ readonly contract: "stardexPair"; }]; address: (contractAddress: string | undefined) => readonly [{ readonly address: string | undefined; readonly contract: "stardexPair"; }]; pair: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "pair"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; pool: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "pool"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; config: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "config"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; share: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "share"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; simulation: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "simulation"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; reverseSimulation: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "reverse_simulation"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; cumulativePrices: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "cumulative_prices"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; queryComputeD: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "query_compute_d"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; assetBalanceAt: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "asset_balance_at"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; observe: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "observe"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; simulateWithdraw: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "simulate_withdraw"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; simulateProvide: (contractAddress: string | undefined, args?: Record) => readonly [{ readonly method: "simulate_provide"; readonly args: Record | undefined; readonly address: string | undefined; readonly contract: "stardexPair"; }]; }; export declare const stardexPairQueries: { pair: ({ client, options }: StardexPairPairQuery) => UseQueryOptions; pool: ({ client, options }: StardexPairPoolQuery) => UseQueryOptions; config: ({ client, options }: StardexPairConfigQuery) => UseQueryOptions; share: ({ client, args, options }: StardexPairShareQuery) => UseQueryOptions; simulation: ({ client, args, options }: StardexPairSimulationQuery) => UseQueryOptions; reverseSimulation: ({ client, args, options }: StardexPairReverseSimulationQuery) => UseQueryOptions; cumulativePrices: ({ client, options }: StardexPairCumulativePricesQuery) => UseQueryOptions; queryComputeD: ({ client, options }: StardexPairQueryComputeDQuery) => UseQueryOptions; assetBalanceAt: ({ client, args, options }: StardexPairAssetBalanceAtQuery) => UseQueryOptions; observe: ({ client, args, options }: StardexPairObserveQuery) => UseQueryOptions; simulateWithdraw: ({ client, args, options }: StardexPairSimulateWithdrawQuery) => UseQueryOptions; simulateProvide: ({ client, args, options }: StardexPairSimulateProvideQuery) => UseQueryOptions; }; export interface StardexPairReactQuery { client: StardexPairQueryClient | undefined; options?: Omit, "'queryKey' | 'queryFn' | 'initialData'"> & { initialData?: undefined; }; } export interface StardexPairSimulateProvideQuery extends StardexPairReactQuery { args: { assets: Asset[]; slippageTolerance?: Decimal; }; } export declare function useStardexPairSimulateProvideQuery({ client, args, options }: StardexPairSimulateProvideQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairSimulateWithdrawQuery extends StardexPairReactQuery { args: { lpAmount: Uint128; }; } export declare function useStardexPairSimulateWithdrawQuery({ client, args, options }: StardexPairSimulateWithdrawQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairObserveQuery extends StardexPairReactQuery { args: { secondsAgo: number; }; } export declare function useStardexPairObserveQuery({ client, args, options }: StardexPairObserveQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairAssetBalanceAtQuery extends StardexPairReactQuery { args: { assetInfo: AssetInfo; blockHeight: Uint64; }; } export declare function useStardexPairAssetBalanceAtQuery({ client, args, options }: StardexPairAssetBalanceAtQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairQueryComputeDQuery extends StardexPairReactQuery { } export declare function useStardexPairQueryComputeDQuery({ client, options }: StardexPairQueryComputeDQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairCumulativePricesQuery extends StardexPairReactQuery { } export declare function useStardexPairCumulativePricesQuery({ client, options }: StardexPairCumulativePricesQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairReverseSimulationQuery extends StardexPairReactQuery { args: { askAsset: Asset; offerAssetInfo?: AssetInfo; }; } export declare function useStardexPairReverseSimulationQuery({ client, args, options }: StardexPairReverseSimulationQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairSimulationQuery extends StardexPairReactQuery { args: { askAssetInfo?: AssetInfo; offerAsset: Asset; }; } export declare function useStardexPairSimulationQuery({ client, args, options }: StardexPairSimulationQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairShareQuery extends StardexPairReactQuery { args: { amount: Uint128; }; } export declare function useStardexPairShareQuery({ client, args, options }: StardexPairShareQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairConfigQuery extends StardexPairReactQuery { } export declare function useStardexPairConfigQuery({ client, options }: StardexPairConfigQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairPoolQuery extends StardexPairReactQuery { } export declare function useStardexPairPoolQuery({ client, options }: StardexPairPoolQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairPairQuery extends StardexPairReactQuery { } export declare function useStardexPairPairQuery({ client, options }: StardexPairPairQuery): import("@tanstack/react-query").UseQueryResult; export interface StardexPairClaimOwnershipMutation { client: StardexPairClient; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useStardexPairClaimOwnershipMutation(options?: Omit, "mutationFn">): import("@tanstack/react-query").UseMutationResult; export interface StardexPairDropOwnershipProposalMutation { client: StardexPairClient; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useStardexPairDropOwnershipProposalMutation(options?: Omit, "mutationFn">): import("@tanstack/react-query").UseMutationResult; export interface StardexPairProposeNewOwnerMutation { client: StardexPairClient; msg: { expiresIn: number; owner: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useStardexPairProposeNewOwnerMutation(options?: Omit, "mutationFn">): import("@tanstack/react-query").UseMutationResult; export interface StardexPairUpdateConfigMutation { client: StardexPairClient; msg: { params: Binary; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useStardexPairUpdateConfigMutation(options?: Omit, "mutationFn">): import("@tanstack/react-query").UseMutationResult; export interface StardexPairSwapMutation { client: StardexPairClient; msg: { askAssetInfo?: AssetInfo; beliefPrice?: Decimal; maxSpread?: Decimal; offerAsset: Asset; to?: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useStardexPairSwapMutation(options?: Omit, "mutationFn">): import("@tanstack/react-query").UseMutationResult; export interface StardexPairWithdrawLiquidityMutation { client: StardexPairClient; msg: { assets?: Asset[]; minAssetsToReceive?: Asset[]; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useStardexPairWithdrawLiquidityMutation(options?: Omit, "mutationFn">): import("@tanstack/react-query").UseMutationResult; export interface StardexPairProvideLiquidityMutation { client: StardexPairClient; msg: { assets: Asset[]; autoStake?: boolean; minLpToReceive?: Uint128; receiver?: string; slippageTolerance?: Decimal; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useStardexPairProvideLiquidityMutation(options?: Omit, "mutationFn">): import("@tanstack/react-query").UseMutationResult; export interface StardexPairReceiveMutation { client: StardexPairClient; msg: { amount: Uint128; msg: Binary; sender: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useStardexPairReceiveMutation(options?: Omit, "mutationFn">): import("@tanstack/react-query").UseMutationResult;