UNPKG

@hyperionxyz/sdk

Version:

This SDK allows you to interact with the Hyperion API. You can use it to request data, create pools/positions and more.

29 lines 863 B
import { HyperionSDK } from '..'; export interface SwapTransactionPayloadArgs { currencyA: string; currencyB: string; currencyAAmount: number | string; currencyBAmount: number | string; slippage: number | string; poolRoute: string[]; recipient: string; } export interface EstFromAmountArgs { amount: number | string; from: string; to: string; safeMode?: boolean; } export declare class Swap { protected _sdk: HyperionSDK; constructor(sdk: HyperionSDK); /** * * @param args.currencyA The FA address of currency * @param args.currencyB The FA address of currency */ swapTransactionPayload(args: SwapTransactionPayloadArgs): any; estFromAmount(args: EstFromAmountArgs): Promise<any>; estToAmount(args: EstFromAmountArgs): Promise<any>; } //# sourceMappingURL=swapModule.d.ts.map