@swaptoshi/dex-module
Version:
Klayr decentralized exchange (dex) on-chain module
19 lines (18 loc) • 519 B
TypeScript
import { Modules, StateMachine, Transaction } from 'klayr-framework';
interface TransferTokenParams {
tokenID: Buffer;
amount: bigint;
recipientAddress: Buffer;
data: string;
}
export declare function isSwapByTransfer(this: {
stores: Modules.NamedRegistry;
events: Modules.NamedRegistry;
}, context: StateMachine.ImmutableMethodContext, transaction: Transaction): Promise<{
status: boolean;
payload: TransferTokenParams;
} | {
status: boolean;
payload: undefined;
}>;
export {};