UNPKG

@swaptoshi/governance-module

Version:

Klayr governance on-chain module

10 lines (9 loc) 1.23 kB
import { StateMachine, Types } from 'klayr-framework'; import { ImmutableGovernanceContext, MutableGovernanceContext } from '../../types'; export declare function commandGovernanceContext(context: StateMachine.CommandExecuteContext<any>): MutableGovernanceContext<typeof context>; export declare function mutableTransactionHookGovernanceContext(context: StateMachine.TransactionExecuteContext): MutableGovernanceContext<typeof context>; export declare function mutableBlockHookGovernanceContext(context: StateMachine.BlockExecuteContext): MutableGovernanceContext<typeof context>; export declare function immutableTransactionHookGovernanceContext(context: StateMachine.TransactionVerifyContext): ImmutableGovernanceContext<typeof context>; export declare function methodGovernanceContext(context: StateMachine.MethodContext, senderAddress: Buffer, height: number): MutableGovernanceContext<typeof context>; export declare function immutableMethodGovernanceContext(context: StateMachine.ImmutableMethodContext, senderAddress: Buffer, height: number): ImmutableGovernanceContext<typeof context>; export declare function endpointGovernanceContext(context: Types.ModuleEndpointContext): ImmutableGovernanceContext<typeof context>;