UNPKG

@swaptoshi/dex-module

Version:

Klayr decentralized exchange (dex) on-chain module

35 lines (34 loc) 1.09 kB
import { Modules, StateMachine } from 'klayr-framework'; import { CollectParams } from '../types'; export declare class CollectCommand extends Modules.BaseCommand { verify(_context: StateMachine.CommandVerifyContext<CollectParams>): Promise<StateMachine.VerificationResult>; execute(_context: StateMachine.CommandExecuteContext<CollectParams>): Promise<void>; schema: { $id: string; type: string; properties: { poolAddress: { dataType: string; format: string; fieldNumber: number; }; tokenId: { dataType: string; fieldNumber: number; }; recipient: { dataType: string; format: string; fieldNumber: number; }; amount0Max: { dataType: string; fieldNumber: number; }; amount1Max: { dataType: string; fieldNumber: number; }; }; }; }