import { StateMachine, Types } from 'klayr-framework'; export interface ImmutableSwapContext { context: ImmutableContext & T; senderAddress: Buffer; timestamp: string; } export interface MutableSwapContext { context: MutableContext & T; senderAddress: Buffer; timestamp: string; } export type ImmutableContext = StateMachine.ImmutableMethodContext | StateMachine.TransactionVerifyContext | Types.ModuleEndpointContext; export type MutableContext = StateMachine.TransactionExecuteContext | StateMachine.CommandExecuteContext | StateMachine.MethodContext;