UNPKG

@cyberk/hyperion-sdk

Version:

Hyperion SDK from Cyberk

27 lines (26 loc) 1.26 kB
import type { DeliverTxResponse } from "@cosmjs/cosmwasm-stargate"; import type { MutationOptions } from "@tanstack/react-query"; import { SigningClient } from "@titanlabjs/cosmos/signing-client"; import type { Coin, StdFee } from "@titanlabjs/titan-types/types"; export interface ProvideLiquidityVariables { signingClient: SigningClient; signerAddress: string; pairAddress: string; assets: [Coin, Coin]; slippageTolerance?: string; receiver?: string; deadline?: number; memo?: string; fee?: StdFee; } export declare const getProvideLiquidityContractExecuteMsg: (options: Pick<ProvideLiquidityVariables, "signerAddress" | "pairAddress" | "assets" | "slippageTolerance" | "receiver" | "deadline">) => { typeUrl: string; value: import("@titanlabjs/titan-types/cosmwasm/wasm/v1/tx").MsgExecuteContract; }; export interface ProvideLiquidityOptions { isSimulate?: boolean; } export declare const getProvideLiquidityQueryKey: (options: ProvideLiquidityOptions & ProvideLiquidityVariables) => (string | number | undefined)[]; export declare const getProvideLiquidityMutationOptions: (options: { isSimulate?: boolean; }) => MutationOptions<bigint | DeliverTxResponse | undefined, Error, ProvideLiquidityVariables>;