@cyberk/hyperion-sdk
Version:
Hyperion SDK from Cyberk
27 lines (26 loc) • 1.1 kB
TypeScript
import type { DeliverTxResponse } from "@cosmjs/cosmwasm-stargate";
import type { MutationOptions } from "@tanstack/react-query";
import { SigningClient } from "@titanlabjs/cosmos/signing-client";
import type { StdFee } from "@titanlabjs/titan-types/types";
import { RawAssetInfo } from "../types";
export interface WithdrawLiquidityVariables {
signingClient: SigningClient;
signerAddress: string;
pairAddress: string;
amount: string;
liquidityTokenAddress: string;
minAssets?: RawAssetInfo[];
deadline?: number;
fee?: StdFee;
memo?: string;
}
export declare const getWithdrawLiquidityContractExecuteMsg: (options: Omit<WithdrawLiquidityVariables, "signingClient" | "fee" | "memo">) => {
typeUrl: string;
value: import("@titanlabjs/titan-types/cosmwasm/wasm/v1/tx").MsgExecuteContract;
};
export interface WithdrawLiquidityOptions {
isSimulate?: boolean;
}
export declare const getWithdrawLiquidityMutationOptions: (options: {
isSimulate?: boolean;
}) => MutationOptions<bigint | DeliverTxResponse | undefined, Error, WithdrawLiquidityVariables>;