lisk-framework
Version:
Lisk blockchain application platform
13 lines (12 loc) • 583 B
TypeScript
import { Schema } from '@liskhq/lisk-codec';
import { CommandVerifyContext, CommandExecuteContext, VerificationResult } from '../state_machine';
import { NamedRegistry } from './named_registry';
export declare abstract class BaseCommand<T = unknown> {
protected stores: NamedRegistry;
protected events: NamedRegistry;
schema: Schema;
get name(): string;
constructor(stores: NamedRegistry, events: NamedRegistry);
verify?(context: CommandVerifyContext<T>): Promise<VerificationResult>;
abstract execute(context: CommandExecuteContext<T>): Promise<void>;
}