UNPKG

@swaptoshi/governance-module

Version:

Klayr governance on-chain module

14 lines (13 loc) 610 B
import { StateMachine, Types } from 'klayr-framework'; export interface ImmutableGovernanceContext<T = unknown> { context: ImmutableContext & T; senderAddress: Buffer; height: number; } export interface MutableGovernanceContext<T = unknown> { context: MutableContext & T; senderAddress: Buffer; height: number; } export type MutableContext = StateMachine.TransactionExecuteContext | StateMachine.CommandExecuteContext | StateMachine.MethodContext; export type ImmutableContext = StateMachine.ImmutableMethodContext | StateMachine.TransactionVerifyContext | Types.ModuleEndpointContext;