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
20 lines (19 loc) • 1 kB
TypeScript
import { ICancelOrderCommandParams } from '../../interfaces/commands/params/ICancelOrderCommandParams';
import { ICancelOrderCommandOutput } from '../../interfaces/commands/outputs/ICancelOrderCommandOutput';
import { IBaseCommand } from '../../interfaces/commands/IBaseCommand';
import { OrderExecutorContract } from '@contracts';
/**
* @title Cancel Order Command
* @notice Cancels an existing order in the OrderExecutor contract
* @dev This command interacts with the OrderExecutor contract to cancel an order
*/
export declare class CancelOrderCommand implements IBaseCommand<ICancelOrderCommandParams, ICancelOrderCommandOutput> {
private readonly orderExecutor;
constructor(orderExecutor: OrderExecutorContract);
/**
* @notice Executes the cancel order command
* @param params The parameters for canceling the order
* @returns Confirmation that the order was cancelled
*/
execute(params: ICancelOrderCommandParams): Promise<ICancelOrderCommandOutput>;
}