1 | import type { Bytes } from '@polkadot/types-codec';
|
2 | import type { AnyU8a, Registry } from '@polkadot/types-codec/types';
|
3 | import type { AccountId } from '../interfaces/index.js';
|
4 | import { U8aFixed } from '@polkadot/types-codec';
|
5 | export declare const CID_AURA: Uint8Array;
|
6 | export declare const CID_BABE: Uint8Array;
|
7 | export declare const CID_GRPA: Uint8Array;
|
8 | export declare const CID_POW: Uint8Array;
|
9 | export declare const CID_NMBS: Uint8Array;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare class GenericConsensusEngineId extends U8aFixed {
|
16 | constructor(registry: Registry, value?: AnyU8a);
|
17 | /**
|
18 | * @description `true` if the engine matches aura
|
19 | */
|
20 | get isAura(): boolean;
|
21 | /**
|
22 | * @description `true` is the engine matches babe
|
23 | */
|
24 | get isBabe(): boolean;
|
25 | /**
|
26 | * @description `true` is the engine matches grandpa
|
27 | */
|
28 | get isGrandpa(): boolean;
|
29 | /**
|
30 | * @description `true` is the engine matches pow
|
31 | */
|
32 | get isPow(): boolean;
|
33 | /**
|
34 | * @description `true` is the engine matches nimbus
|
35 | */
|
36 | get isNimbus(): boolean;
|
37 | /**
|
38 | * @description From the input bytes, decode into an author
|
39 | */
|
40 | extractAuthor(bytes: Bytes, sessionValidators: AccountId[]): AccountId | undefined;
|
41 | /**
|
42 | * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
43 | */
|
44 | toHuman(): string;
|
45 | /**
|
46 | * @description Returns the base runtime type name for this instance
|
47 | */
|
48 | toRawType(): string;
|
49 | /**
|
50 | * @description Override the default toString to return a 4-byte string
|
51 | */
|
52 | toString(): string;
|
53 | }
|