UNPKG

evx-sdk

Version:

The Evx SDK is a developer toolkit designed to simplify interaction with the Evx decentralized liquidity protocol. It provides an abstraction layer over the smart contracts, allowing developers to easily build applications, integrate liquidity pools, fetc

18 lines (17 loc) 811 B
import { ISwapExactOutputCommandParams } from '../../interfaces/commands/params/ISwapExactOutputCommandParams'; import { IBaseCommand } from '../../interfaces/commands/IBaseCommand'; import { SwapRouterContract } from '@contracts'; /** * @title Swap Exact Output Command * @notice Executes a swap with exact output amount * @dev This command interacts with the SwapRouter contract to execute a swap with exact output */ export declare class SwapExactOutputCommand implements IBaseCommand<ISwapExactOutputCommandParams, void> { private readonly swapRouter; constructor(swapRouter: SwapRouterContract); /** * @notice Executes the swap exact output command * @param params The parameters for executing the swap */ execute(params: ISwapExactOutputCommandParams): Promise<void>; }