@swaptoshi/dex-module
Version:
Klayr decentralized exchange (dex) on-chain module
10 lines (9 loc) • 1.18 kB
TypeScript
import { StateMachine, Modules, Types } from 'klayr-framework';
import { ImmutableSwapContext, MutableSwapContext } from '../../types';
export declare function commandSwapContext(context: StateMachine.CommandExecuteContext<any>): MutableSwapContext<typeof context>;
export declare function mutableHookSwapContext(context: StateMachine.TransactionExecuteContext): MutableSwapContext<typeof context>;
export declare function immutableHookSwapContext(context: StateMachine.TransactionVerifyContext): ImmutableSwapContext<typeof context>;
export declare function methodSwapContext(context: StateMachine.MethodContext, senderAddress: Buffer, timestamp: number): MutableSwapContext<typeof context>;
export declare function immutableMethodSwapContext(context: StateMachine.ImmutableMethodContext, senderAddress: Buffer, timestamp: number): ImmutableSwapContext<typeof context>;
export declare function endpointSwapContext(context: Types.ModuleEndpointContext): ImmutableSwapContext<typeof context>;
export declare function crossChainMethodSwapContext(context: Modules.Interoperability.CrossChainMessageContext, senderAddress: Buffer): MutableSwapContext<StateMachine.MethodContext>;