@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 { ExactOutputParams } from '../types';
export declare class ExactOutputCommand extends Modules.BaseCommand {
verify(_context: StateMachine.CommandVerifyContext<ExactOutputParams>): Promise<StateMachine.VerificationResult>;
execute(_context: StateMachine.CommandExecuteContext<ExactOutputParams>): 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;
};
amountOut: {
dataType: string;
fieldNumber: number;
};
amountInMaximum: {
dataType: string;
fieldNumber: number;
};
};
};
}