UNPKG

716 BTypeScriptView Raw
1import { ECPoint, UInt256 } from '@neo-one/client-common';
2import { Context } from './Context';
3import { InitialContext } from './InitialContext';
4import { Type } from './types';
5export declare function cloneInitial(context: Context, { type, previousHash, blockIndex, viewNumber, myIndex, primaryIndex, expectedView, validators, blockReceivedTimeSeconds, }: {
6 readonly type: Type;
7 readonly previousHash?: UInt256;
8 readonly blockIndex?: number;
9 readonly viewNumber: number;
10 readonly myIndex?: number;
11 readonly primaryIndex: number;
12 readonly expectedView?: readonly number[];
13 readonly validators?: readonly ECPoint[];
14 readonly blockReceivedTimeSeconds?: number;
15}): InitialContext;