1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | export default {
|
7 | rpc: {
|
8 | proveFinality: {
|
9 | description: 'Prove finality for the given block number, returning the Justification for the last block in the set.',
|
10 | params: [{
|
11 | name: 'blockNumber',
|
12 | type: 'BlockNumber'
|
13 | }],
|
14 | type: 'Option<EncodedFinalityProofs>'
|
15 | },
|
16 | roundState: {
|
17 | description: 'Returns the state of the current best round state as well as the ongoing background rounds',
|
18 | params: [],
|
19 | type: 'ReportedRoundStates'
|
20 | },
|
21 | subscribeJustifications: {
|
22 | description: 'Subscribes to grandpa justifications',
|
23 | params: [],
|
24 | pubsub: ['justifications', 'subscribeJustifications', 'unsubscribeJustifications'],
|
25 | type: 'JustificationNotification'
|
26 | }
|
27 | },
|
28 | types: {
|
29 | AuthorityIndex: 'u64',
|
30 | AuthorityList: 'Vec<NextAuthority>',
|
31 | AuthoritySet: {
|
32 | currentAuthorities: 'AuthorityList',
|
33 | setId: 'u64',
|
34 | pendingStandardChanges: 'ForkTreePendingChange',
|
35 | pendingForcedChanges: 'Vec<PendingChange>',
|
36 | authoritySetChanges: 'AuthoritySetChanges'
|
37 | },
|
38 | ForkTreePendingChange: {
|
39 | roots: 'Vec<ForkTreePendingChangeNode>',
|
40 | bestFinalizedNumber: 'Option<BlockNumber>'
|
41 | },
|
42 | ForkTreePendingChangeNode: {
|
43 | hash: 'BlockHash',
|
44 | number: 'BlockNumber',
|
45 | data: 'PendingChange',
|
46 |
|
47 | children: 'Vec<ForkTreePendingChangeNode>'
|
48 | },
|
49 | AuthoritySetChange: '(U64, BlockNumber)',
|
50 | AuthoritySetChanges: 'Vec<AuthoritySetChange>',
|
51 | AuthorityWeight: 'u64',
|
52 | DelayKind: {
|
53 | _enum: {
|
54 | Finalized: 'Null',
|
55 | Best: 'DelayKindBest'
|
56 | }
|
57 | },
|
58 | DelayKindBest: {
|
59 | medianLastFinalized: 'BlockNumber'
|
60 | },
|
61 | EncodedFinalityProofs: 'Bytes',
|
62 | GrandpaEquivocation: {
|
63 | _enum: {
|
64 | Prevote: 'GrandpaEquivocationValue',
|
65 | Precommit: 'GrandpaEquivocationValue'
|
66 | }
|
67 | },
|
68 | GrandpaEquivocationProof: {
|
69 | setId: 'SetId',
|
70 | equivocation: 'GrandpaEquivocation'
|
71 | },
|
72 | GrandpaEquivocationValue: {
|
73 | roundNumber: 'u64',
|
74 | identity: 'AuthorityId',
|
75 | first: '(GrandpaPrevote, AuthoritySignature)',
|
76 | second: '(GrandpaPrevote, AuthoritySignature)'
|
77 | },
|
78 | GrandpaPrevote: {
|
79 | targetHash: 'Hash',
|
80 | targetNumber: 'BlockNumber'
|
81 | },
|
82 | GrandpaCommit: {
|
83 | targetHash: 'BlockHash',
|
84 | targetNumber: 'BlockNumber',
|
85 | precommits: 'Vec<GrandpaSignedPrecommit>'
|
86 | },
|
87 | GrandpaPrecommit: {
|
88 | targetHash: 'BlockHash',
|
89 | targetNumber: 'BlockNumber'
|
90 | },
|
91 | GrandpaSignedPrecommit: {
|
92 | precommit: 'GrandpaPrecommit',
|
93 | signature: 'AuthoritySignature',
|
94 | id: 'AuthorityId'
|
95 | },
|
96 | GrandpaJustification: {
|
97 | round: 'u64',
|
98 | commit: 'GrandpaCommit',
|
99 | votesAncestries: 'Vec<Header>'
|
100 | },
|
101 | JustificationNotification: 'Bytes',
|
102 | KeyOwnerProof: 'MembershipProof',
|
103 | NextAuthority: '(AuthorityId, AuthorityWeight)',
|
104 | PendingChange: {
|
105 | nextAuthorities: 'AuthorityList',
|
106 | delay: 'BlockNumber',
|
107 | canonHeight: 'BlockNumber',
|
108 | canonHash: 'BlockHash',
|
109 | delayKind: 'DelayKind'
|
110 | },
|
111 | PendingPause: {
|
112 | scheduledAt: 'BlockNumber',
|
113 | delay: 'BlockNumber'
|
114 | },
|
115 | PendingResume: {
|
116 | scheduledAt: 'BlockNumber',
|
117 | delay: 'BlockNumber'
|
118 | },
|
119 | Precommits: {
|
120 | currentWeight: 'u32',
|
121 | missing: 'BTreeSet<AuthorityId>'
|
122 | },
|
123 | Prevotes: {
|
124 | currentWeight: 'u32',
|
125 | missing: 'BTreeSet<AuthorityId>'
|
126 | },
|
127 | ReportedRoundStates: {
|
128 | setId: 'u32',
|
129 | best: 'RoundState',
|
130 | background: 'Vec<RoundState>'
|
131 | },
|
132 | RoundState: {
|
133 | round: 'u32',
|
134 | totalWeight: 'u32',
|
135 | thresholdWeight: 'u32',
|
136 | prevotes: 'Prevotes',
|
137 | precommits: 'Precommits'
|
138 | },
|
139 | SetId: 'u64',
|
140 | StoredPendingChange: {
|
141 | scheduledAt: 'BlockNumber',
|
142 | delay: 'BlockNumber',
|
143 | nextAuthorities: 'AuthorityList'
|
144 | },
|
145 | StoredState: {
|
146 | _enum: {
|
147 | Live: 'Null',
|
148 | PendingPause: 'PendingPause',
|
149 | Paused: 'Null',
|
150 | PendingResume: 'PendingResume'
|
151 | }
|
152 | }
|
153 | }
|
154 | }; |
\ | No newline at end of file |