@swaptoshi/dex-module
Version:
Klayr decentralized exchange (dex) on-chain module
35 lines (34 loc) • 1.1 kB
TypeScript
import { Modules, StateMachine } from 'klayr-framework';
import { ExactInputParams } from '../types';
export declare class ExactInputCommand extends Modules.BaseCommand {
verify(_context: StateMachine.CommandVerifyContext<ExactInputParams>): Promise<StateMachine.VerificationResult>;
execute(_context: StateMachine.CommandExecuteContext<ExactInputParams>): Promise<void>;
schema: {
$id: string;
type: string;
properties: {
path: {
dataType: string;
format: string;
fieldNumber: number;
};
recipient: {
dataType: string;
format: string;
fieldNumber: number;
};
deadline: {
dataType: string;
fieldNumber: number;
};
amountIn: {
dataType: string;
fieldNumber: number;
};
amountOutMinimum: {
dataType: string;
fieldNumber: number;
};
};
};
}