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

20 lines (19 loc) 967 B
import { ICreateOrderCommandParams } from '../../interfaces/commands/params/ICreateOrderCommandParams'; import { ICreateOrderCommandOutput } from '../../interfaces/commands/outputs/ICreateOrderCommandOutput'; import { IBaseCommand } from '../../interfaces/commands/IBaseCommand'; import { OrderExecutorContract } from '@contracts'; /** * @title Create Order Command * @notice Creates a new order in the OrderExecutor contract * @dev This command interacts with the OrderExecutor contract to create a new order */ export declare class CreateOrderCommand implements IBaseCommand<ICreateOrderCommandParams, ICreateOrderCommandOutput> { private readonly orderExecutor; constructor(orderExecutor: OrderExecutorContract); /** * @notice Executes the create order command * @param params The parameters for creating the order * @returns The order ID */ execute(params: ICreateOrderCommandParams): Promise<ICreateOrderCommandOutput>; }