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) • 883 B
TypeScript
import { ISwapExactOutputSingleCommandParams } from '../../interfaces/commands/params/ISwapExactOutputSingleCommandParams';
import { IBaseCommand } from '../../interfaces/commands/IBaseCommand';
import { SwapRouterContract } from '@contracts';
/**
* @title Swap Exact Output Single Command
* @notice Executes a swap with exact output amount for a single hop
* @dev This command interacts with the SwapRouter contract to execute a single hop swap with exact output
*/
export declare class SwapExactOutputSingleCommand implements IBaseCommand<ISwapExactOutputSingleCommandParams, void> {
private readonly swapRouter;
constructor(swapRouter: SwapRouterContract);
/**
* @notice Executes the swap exact output single command
* @param params The parameters for executing the swap
*/
execute(params: ISwapExactOutputSingleCommandParams): Promise<void>;
}