UNPKG

806 BTypeScriptView Raw
1import { ConsensusPayload, Transaction } from '@neo-one/node-core';
2import { ConsensusContext } from './ConsensusContext';
3import { Context } from './context';
4export interface Result<TContext extends Context> {
5 readonly context: TContext;
6 readonly consensusContext?: ConsensusContext;
7 readonly timerSeconds?: number;
8}
9export declare type Event = {
10 readonly type: 'handlePersistBlock';
11} | {
12 readonly type: 'handleConsensusPayload';
13 readonly payload: ConsensusPayload;
14} | {
15 readonly type: 'handleTransactionReceived';
16 readonly transaction: Transaction;
17} | {
18 readonly type: 'timer';
19 readonly promise?: {
20 readonly resolve: () => void;
21 readonly reject: (error: Error) => void;
22 };
23};
24export interface Options {
25 readonly privateNet: boolean;
26}