1 | import { rpc } from './rpc.js';
|
2 | import { runtime } from './runtime.js';
|
3 | export default {
|
4 | rpc,
|
5 | runtime,
|
6 | types: {
|
7 | AuthorityIndex: 'u64',
|
8 | AuthorityList: 'Vec<NextAuthority>',
|
9 | AuthoritySet: {
|
10 | currentAuthorities: 'AuthorityList',
|
11 | setId: 'u64',
|
12 | pendingStandardChanges: 'ForkTreePendingChange',
|
13 | pendingForcedChanges: 'Vec<PendingChange>',
|
14 | authoritySetChanges: 'AuthoritySetChanges'
|
15 | },
|
16 | ForkTreePendingChange: {
|
17 | roots: 'Vec<ForkTreePendingChangeNode>',
|
18 | bestFinalizedNumber: 'Option<BlockNumber>'
|
19 | },
|
20 | ForkTreePendingChangeNode: {
|
21 | hash: 'BlockHash',
|
22 | number: 'BlockNumber',
|
23 | data: 'PendingChange',
|
24 | children: 'Vec<ForkTreePendingChangeNode>'
|
25 | },
|
26 | AuthoritySetChange: '(U64, BlockNumber)',
|
27 | AuthoritySetChanges: 'Vec<AuthoritySetChange>',
|
28 | AuthorityWeight: 'u64',
|
29 | DelayKind: {
|
30 | _enum: {
|
31 | Finalized: 'Null',
|
32 | Best: 'DelayKindBest'
|
33 | }
|
34 | },
|
35 | DelayKindBest: {
|
36 | medianLastFinalized: 'BlockNumber'
|
37 | },
|
38 | EncodedFinalityProofs: 'Bytes',
|
39 | GrandpaEquivocation: {
|
40 | _enum: {
|
41 | Prevote: 'GrandpaEquivocationValue',
|
42 | Precommit: 'GrandpaEquivocationValue'
|
43 | }
|
44 | },
|
45 | GrandpaEquivocationProof: {
|
46 | setId: 'SetId',
|
47 | equivocation: 'GrandpaEquivocation'
|
48 | },
|
49 | GrandpaEquivocationValue: {
|
50 | roundNumber: 'u64',
|
51 | identity: 'AuthorityId',
|
52 | first: '(GrandpaPrevote, AuthoritySignature)',
|
53 | second: '(GrandpaPrevote, AuthoritySignature)'
|
54 | },
|
55 | GrandpaPrevote: {
|
56 | targetHash: 'Hash',
|
57 | targetNumber: 'BlockNumber'
|
58 | },
|
59 | GrandpaCommit: {
|
60 | targetHash: 'BlockHash',
|
61 | targetNumber: 'BlockNumber',
|
62 | precommits: 'Vec<GrandpaSignedPrecommit>'
|
63 | },
|
64 | GrandpaPrecommit: {
|
65 | targetHash: 'BlockHash',
|
66 | targetNumber: 'BlockNumber'
|
67 | },
|
68 | GrandpaSignedPrecommit: {
|
69 | precommit: 'GrandpaPrecommit',
|
70 | signature: 'AuthoritySignature',
|
71 | id: 'AuthorityId'
|
72 | },
|
73 | GrandpaJustification: {
|
74 | round: 'u64',
|
75 | commit: 'GrandpaCommit',
|
76 | votesAncestries: 'Vec<Header>'
|
77 | },
|
78 | JustificationNotification: 'Bytes',
|
79 | KeyOwnerProof: 'MembershipProof',
|
80 | NextAuthority: '(AuthorityId, AuthorityWeight)',
|
81 | PendingChange: {
|
82 | nextAuthorities: 'AuthorityList',
|
83 | delay: 'BlockNumber',
|
84 | canonHeight: 'BlockNumber',
|
85 | canonHash: 'BlockHash',
|
86 | delayKind: 'DelayKind'
|
87 | },
|
88 | PendingPause: {
|
89 | scheduledAt: 'BlockNumber',
|
90 | delay: 'BlockNumber'
|
91 | },
|
92 | PendingResume: {
|
93 | scheduledAt: 'BlockNumber',
|
94 | delay: 'BlockNumber'
|
95 | },
|
96 | Precommits: {
|
97 | currentWeight: 'u32',
|
98 | missing: 'BTreeSet<AuthorityId>'
|
99 | },
|
100 | Prevotes: {
|
101 | currentWeight: 'u32',
|
102 | missing: 'BTreeSet<AuthorityId>'
|
103 | },
|
104 | ReportedRoundStates: {
|
105 | setId: 'u32',
|
106 | best: 'RoundState',
|
107 | background: 'Vec<RoundState>'
|
108 | },
|
109 | RoundState: {
|
110 | round: 'u32',
|
111 | totalWeight: 'u32',
|
112 | thresholdWeight: 'u32',
|
113 | prevotes: 'Prevotes',
|
114 | precommits: 'Precommits'
|
115 | },
|
116 | SetId: 'u64',
|
117 | StoredPendingChange: {
|
118 | scheduledAt: 'BlockNumber',
|
119 | delay: 'BlockNumber',
|
120 | nextAuthorities: 'AuthorityList'
|
121 | },
|
122 | StoredState: {
|
123 | _enum: {
|
124 | Live: 'Null',
|
125 | PendingPause: 'PendingPause',
|
126 | Paused: 'Null',
|
127 | PendingResume: 'PendingResume'
|
128 | }
|
129 | }
|
130 | }
|
131 | };
|