@dedot/chaintypes 0.0.1-alpha.8 → 0.0.1-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aleph/consts.d.ts +590 -528
- package/aleph/errors.d.ts +981 -818
- package/aleph/events.d.ts +924 -937
- package/aleph/index.d.ts +11 -8
- package/aleph/query.d.ts +1477 -1268
- package/aleph/rpc.d.ts +725 -573
- package/aleph/runtime.d.ts +541 -406
- package/aleph/tx.d.ts +2664 -2202
- package/aleph/types.d.ts +3474 -5388
- package/astar/consts.d.ts +753 -674
- package/astar/errors.d.ts +1576 -1313
- package/astar/events.d.ts +1709 -1628
- package/astar/index.d.ts +11 -8
- package/astar/query.d.ts +1756 -1471
- package/astar/rpc.d.ts +972 -773
- package/astar/runtime.d.ts +310 -258
- package/astar/tx.d.ts +5474 -4806
- package/astar/types.d.ts +8848 -12108
- package/index.ts +10 -0
- package/kusama/consts.d.ts +1573 -1422
- package/kusama/errors.d.ts +2995 -2490
- package/kusama/events.d.ts +2996 -2723
- package/kusama/index.d.ts +11 -8
- package/kusama/query.d.ts +3828 -3248
- package/kusama/rpc.d.ts +902 -724
- package/kusama/runtime.d.ts +1130 -840
- package/kusama/tx.d.ts +7073 -6010
- package/kusama/types.d.ts +10151 -15344
- package/kusamaAssetHub/consts.d.ts +714 -627
- package/kusamaAssetHub/errors.d.ts +1405 -1160
- package/kusamaAssetHub/events.d.ts +2149 -2060
- package/kusamaAssetHub/index.d.ts +11 -8
- package/kusamaAssetHub/query.d.ts +1551 -1298
- package/kusamaAssetHub/rpc.d.ts +744 -588
- package/kusamaAssetHub/runtime.d.ts +510 -398
- package/kusamaAssetHub/tx.d.ts +5050 -4212
- package/kusamaAssetHub/types.d.ts +5976 -10009
- package/moonbeam/consts.d.ts +1075 -956
- package/moonbeam/errors.d.ts +2131 -1793
- package/moonbeam/events.d.ts +2932 -2681
- package/moonbeam/index.d.ts +11 -8
- package/moonbeam/query.d.ts +2391 -2024
- package/moonbeam/rpc.d.ts +1013 -807
- package/moonbeam/runtime.d.ts +665 -502
- package/moonbeam/tx.d.ts +6152 -5201
- package/moonbeam/types.d.ts +7731 -12035
- package/package.json +9 -8
- package/packageInfo.js +1 -1
- package/packageInfo.ts +3 -0
- package/polkadot/consts.d.ts +1272 -1155
- package/polkadot/errors.d.ts +2420 -2016
- package/polkadot/events.d.ts +2314 -2092
- package/polkadot/index.d.ts +11 -8
- package/polkadot/query.d.ts +3319 -2808
- package/polkadot/rpc.d.ts +902 -724
- package/polkadot/runtime.d.ts +1130 -840
- package/polkadot/tx.d.ts +5909 -5005
- package/polkadot/types.d.ts +8742 -13290
- package/polkadotAssetHub/consts.d.ts +586 -519
- package/polkadotAssetHub/errors.d.ts +1115 -921
- package/polkadotAssetHub/events.d.ts +1850 -1782
- package/polkadotAssetHub/index.d.ts +11 -8
- package/polkadotAssetHub/query.d.ts +1457 -1219
- package/polkadotAssetHub/rpc.d.ts +744 -588
- package/polkadotAssetHub/runtime.d.ts +447 -355
- package/polkadotAssetHub/tx.d.ts +4184 -3487
- package/polkadotAssetHub/types.d.ts +5183 -8808
- package/rococoAssetHub/consts.d.ts +745 -653
- package/rococoAssetHub/errors.d.ts +1490 -1227
- package/rococoAssetHub/events.d.ts +2127 -2047
- package/rococoAssetHub/index.d.ts +11 -8
- package/rococoAssetHub/query.d.ts +1513 -1266
- package/rococoAssetHub/rpc.d.ts +744 -588
- package/rococoAssetHub/runtime.d.ts +538 -424
- package/rococoAssetHub/tx.d.ts +5164 -4302
- package/rococoAssetHub/types.d.ts +6321 -10636
- package/substrate/consts.d.ts +2218 -1966
- package/substrate/errors.d.ts +4019 -3333
- package/substrate/events.d.ts +4585 -4255
- package/substrate/index.d.ts +11 -8
- package/substrate/query.d.ts +3887 -3347
- package/substrate/rpc.d.ts +892 -716
- package/substrate/runtime.d.ts +937 -704
- package/substrate/tx.d.ts +10387 -8796
- package/substrate/types.d.ts +12809 -19761
- package/westendAssetHub/consts.d.ts +745 -653
- package/westendAssetHub/errors.d.ts +1490 -1227
- package/westendAssetHub/events.d.ts +2127 -2047
- package/westendAssetHub/index.d.ts +11 -8
- package/westendAssetHub/query.d.ts +1513 -1266
- package/westendAssetHub/rpc.d.ts +744 -588
- package/westendAssetHub/runtime.d.ts +577 -452
- package/westendAssetHub/tx.d.ts +5164 -4302
- package/westendAssetHub/types.d.ts +6321 -10633
- package/aleph/consts.js +0 -2
- package/aleph/errors.js +0 -2
- package/aleph/events.js +0 -2
- package/aleph/index.js +0 -3
- package/aleph/query.js +0 -2
- package/aleph/rpc.js +0 -2
- package/aleph/runtime.js +0 -2
- package/aleph/tx.js +0 -2
- package/aleph/types.js +0 -2
- package/astar/consts.js +0 -2
- package/astar/errors.js +0 -2
- package/astar/events.js +0 -2
- package/astar/index.js +0 -3
- package/astar/query.js +0 -2
- package/astar/rpc.js +0 -2
- package/astar/runtime.js +0 -2
- package/astar/tx.js +0 -2
- package/astar/types.js +0 -2
- package/cjs/aleph/consts.js +0 -3
- package/cjs/aleph/errors.js +0 -3
- package/cjs/aleph/events.js +0 -3
- package/cjs/aleph/index.js +0 -19
- package/cjs/aleph/query.js +0 -3
- package/cjs/aleph/rpc.js +0 -3
- package/cjs/aleph/runtime.js +0 -3
- package/cjs/aleph/tx.js +0 -3
- package/cjs/aleph/types.js +0 -3
- package/cjs/astar/consts.js +0 -3
- package/cjs/astar/errors.js +0 -3
- package/cjs/astar/events.js +0 -3
- package/cjs/astar/index.js +0 -19
- package/cjs/astar/query.js +0 -3
- package/cjs/astar/rpc.js +0 -3
- package/cjs/astar/runtime.js +0 -3
- package/cjs/astar/tx.js +0 -3
- package/cjs/astar/types.js +0 -3
- package/cjs/index.js +0 -2
- package/cjs/kusama/consts.js +0 -3
- package/cjs/kusama/errors.js +0 -3
- package/cjs/kusama/events.js +0 -3
- package/cjs/kusama/index.js +0 -19
- package/cjs/kusama/query.js +0 -3
- package/cjs/kusama/rpc.js +0 -3
- package/cjs/kusama/runtime.js +0 -3
- package/cjs/kusama/tx.js +0 -3
- package/cjs/kusama/types.js +0 -3
- package/cjs/kusamaAssetHub/consts.js +0 -3
- package/cjs/kusamaAssetHub/errors.js +0 -3
- package/cjs/kusamaAssetHub/events.js +0 -3
- package/cjs/kusamaAssetHub/index.js +0 -19
- package/cjs/kusamaAssetHub/query.js +0 -3
- package/cjs/kusamaAssetHub/rpc.js +0 -3
- package/cjs/kusamaAssetHub/runtime.js +0 -3
- package/cjs/kusamaAssetHub/tx.js +0 -3
- package/cjs/kusamaAssetHub/types.js +0 -3
- package/cjs/moonbeam/consts.js +0 -3
- package/cjs/moonbeam/errors.js +0 -3
- package/cjs/moonbeam/events.js +0 -3
- package/cjs/moonbeam/index.js +0 -19
- package/cjs/moonbeam/query.js +0 -3
- package/cjs/moonbeam/rpc.js +0 -3
- package/cjs/moonbeam/runtime.js +0 -3
- package/cjs/moonbeam/tx.js +0 -3
- package/cjs/moonbeam/types.js +0 -3
- package/cjs/package.json +0 -1
- package/cjs/packageInfo.js +0 -5
- package/cjs/polkadot/consts.js +0 -3
- package/cjs/polkadot/errors.js +0 -3
- package/cjs/polkadot/events.js +0 -3
- package/cjs/polkadot/index.js +0 -19
- package/cjs/polkadot/query.js +0 -3
- package/cjs/polkadot/rpc.js +0 -3
- package/cjs/polkadot/runtime.js +0 -3
- package/cjs/polkadot/tx.js +0 -3
- package/cjs/polkadot/types.js +0 -3
- package/cjs/polkadotAssetHub/consts.js +0 -3
- package/cjs/polkadotAssetHub/errors.js +0 -3
- package/cjs/polkadotAssetHub/events.js +0 -3
- package/cjs/polkadotAssetHub/index.js +0 -19
- package/cjs/polkadotAssetHub/query.js +0 -3
- package/cjs/polkadotAssetHub/rpc.js +0 -3
- package/cjs/polkadotAssetHub/runtime.js +0 -3
- package/cjs/polkadotAssetHub/tx.js +0 -3
- package/cjs/polkadotAssetHub/types.js +0 -3
- package/cjs/rococoAssetHub/consts.js +0 -3
- package/cjs/rococoAssetHub/errors.js +0 -3
- package/cjs/rococoAssetHub/events.js +0 -3
- package/cjs/rococoAssetHub/index.js +0 -19
- package/cjs/rococoAssetHub/query.js +0 -3
- package/cjs/rococoAssetHub/rpc.js +0 -3
- package/cjs/rococoAssetHub/runtime.js +0 -3
- package/cjs/rococoAssetHub/tx.js +0 -3
- package/cjs/rococoAssetHub/types.js +0 -3
- package/cjs/substrate/consts.js +0 -3
- package/cjs/substrate/errors.js +0 -3
- package/cjs/substrate/events.js +0 -3
- package/cjs/substrate/index.js +0 -19
- package/cjs/substrate/query.js +0 -3
- package/cjs/substrate/rpc.js +0 -3
- package/cjs/substrate/runtime.js +0 -3
- package/cjs/substrate/tx.js +0 -3
- package/cjs/substrate/types.js +0 -3
- package/cjs/westendAssetHub/consts.js +0 -3
- package/cjs/westendAssetHub/errors.js +0 -3
- package/cjs/westendAssetHub/events.js +0 -3
- package/cjs/westendAssetHub/index.js +0 -19
- package/cjs/westendAssetHub/query.js +0 -3
- package/cjs/westendAssetHub/rpc.js +0 -3
- package/cjs/westendAssetHub/runtime.js +0 -3
- package/cjs/westendAssetHub/tx.js +0 -3
- package/cjs/westendAssetHub/types.js +0 -3
- package/kusama/consts.js +0 -2
- package/kusama/errors.js +0 -2
- package/kusama/events.js +0 -2
- package/kusama/index.js +0 -3
- package/kusama/query.js +0 -2
- package/kusama/rpc.js +0 -2
- package/kusama/runtime.js +0 -2
- package/kusama/tx.js +0 -2
- package/kusama/types.js +0 -2
- package/kusamaAssetHub/consts.js +0 -2
- package/kusamaAssetHub/errors.js +0 -2
- package/kusamaAssetHub/events.js +0 -2
- package/kusamaAssetHub/index.js +0 -3
- package/kusamaAssetHub/query.js +0 -2
- package/kusamaAssetHub/rpc.js +0 -2
- package/kusamaAssetHub/runtime.js +0 -2
- package/kusamaAssetHub/tx.js +0 -2
- package/kusamaAssetHub/types.js +0 -2
- package/moonbeam/consts.js +0 -2
- package/moonbeam/errors.js +0 -2
- package/moonbeam/events.js +0 -2
- package/moonbeam/index.js +0 -3
- package/moonbeam/query.js +0 -2
- package/moonbeam/rpc.js +0 -2
- package/moonbeam/runtime.js +0 -2
- package/moonbeam/tx.js +0 -2
- package/moonbeam/types.js +0 -2
- package/polkadot/consts.js +0 -2
- package/polkadot/errors.js +0 -2
- package/polkadot/events.js +0 -2
- package/polkadot/index.js +0 -3
- package/polkadot/query.js +0 -2
- package/polkadot/rpc.js +0 -2
- package/polkadot/runtime.js +0 -2
- package/polkadot/tx.js +0 -2
- package/polkadot/types.js +0 -2
- package/polkadotAssetHub/consts.js +0 -2
- package/polkadotAssetHub/errors.js +0 -2
- package/polkadotAssetHub/events.js +0 -2
- package/polkadotAssetHub/index.js +0 -3
- package/polkadotAssetHub/query.js +0 -2
- package/polkadotAssetHub/rpc.js +0 -2
- package/polkadotAssetHub/runtime.js +0 -2
- package/polkadotAssetHub/tx.js +0 -2
- package/polkadotAssetHub/types.js +0 -2
- package/rococoAssetHub/consts.js +0 -2
- package/rococoAssetHub/errors.js +0 -2
- package/rococoAssetHub/events.js +0 -2
- package/rococoAssetHub/index.js +0 -3
- package/rococoAssetHub/query.js +0 -2
- package/rococoAssetHub/rpc.js +0 -2
- package/rococoAssetHub/runtime.js +0 -2
- package/rococoAssetHub/tx.js +0 -2
- package/rococoAssetHub/types.js +0 -2
- package/substrate/consts.js +0 -2
- package/substrate/errors.js +0 -2
- package/substrate/events.js +0 -2
- package/substrate/index.js +0 -3
- package/substrate/query.js +0 -2
- package/substrate/rpc.js +0 -2
- package/substrate/runtime.js +0 -2
- package/substrate/tx.js +0 -2
- package/substrate/types.js +0 -2
- package/westendAssetHub/consts.js +0 -2
- package/westendAssetHub/errors.js +0 -2
- package/westendAssetHub/events.js +0 -2
- package/westendAssetHub/index.js +0 -3
- package/westendAssetHub/query.js +0 -2
- package/westendAssetHub/rpc.js +0 -2
- package/westendAssetHub/runtime.js +0 -2
- package/westendAssetHub/tx.js +0 -2
- package/westendAssetHub/types.js +0 -2
|
@@ -1,402 +1,514 @@
|
|
|
1
|
+
// Generated by @dedot/codegen
|
|
2
|
+
|
|
1
3
|
import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '@dedot/types';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
+
import type {
|
|
5
|
+
RuntimeVersion,
|
|
6
|
+
Header,
|
|
7
|
+
DispatchError,
|
|
8
|
+
Result,
|
|
9
|
+
UncheckedExtrinsicLike,
|
|
10
|
+
UncheckedExtrinsic,
|
|
11
|
+
H256,
|
|
12
|
+
Bytes,
|
|
13
|
+
BytesLike,
|
|
14
|
+
AccountId32Like,
|
|
15
|
+
} from '@dedot/codecs';
|
|
16
|
+
import type {
|
|
17
|
+
SpConsensusSlotsSlotDuration,
|
|
18
|
+
SpConsensusAuraSr25519AppSr25519Public,
|
|
19
|
+
SpRuntimeBlock,
|
|
20
|
+
SpCoreOpaqueMetadata,
|
|
21
|
+
SpRuntimeTransactionValidityTransactionValidityError,
|
|
22
|
+
SpInherentsInherentData,
|
|
23
|
+
SpInherentsCheckInherentsResult,
|
|
24
|
+
SpRuntimeTransactionValidityValidTransaction,
|
|
25
|
+
SpRuntimeTransactionValidityTransactionSource,
|
|
26
|
+
SpCoreCryptoKeyTypeId,
|
|
27
|
+
StagingXcmV3MultilocationMultiLocation,
|
|
28
|
+
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
29
|
+
PalletTransactionPaymentFeeDetails,
|
|
30
|
+
SpWeightsWeightV2Weight,
|
|
31
|
+
AssetHubKusamaRuntimeRuntimeCallLike,
|
|
32
|
+
XcmVersionedMultiAssets,
|
|
33
|
+
AssetsCommonRuntimeApiFungiblesAccessError,
|
|
34
|
+
CumulusPrimitivesCoreCollationInfo,
|
|
35
|
+
} from './types';
|
|
36
|
+
|
|
4
37
|
export interface RuntimeApis extends GenericRuntimeApis {
|
|
38
|
+
/**
|
|
39
|
+
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
40
|
+
**/
|
|
41
|
+
auraApi: {
|
|
5
42
|
/**
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
*
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
*
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
*
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
* @
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
*
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
43
|
+
* Returns the slot duration for Aura.
|
|
44
|
+
*
|
|
45
|
+
* Currently, only the value provided by this type at genesis will be used.
|
|
46
|
+
*
|
|
47
|
+
* @callname: AuraApi_slot_duration
|
|
48
|
+
**/
|
|
49
|
+
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Return the current set of authorities.
|
|
53
|
+
*
|
|
54
|
+
* @callname: AuraApi_authorities
|
|
55
|
+
**/
|
|
56
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Generic runtime api call
|
|
60
|
+
**/
|
|
61
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
65
|
+
**/
|
|
66
|
+
core: {
|
|
67
|
+
/**
|
|
68
|
+
* Returns the version of the runtime.
|
|
69
|
+
*
|
|
70
|
+
* @callname: Core_version
|
|
71
|
+
**/
|
|
72
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Execute the given block.
|
|
76
|
+
*
|
|
77
|
+
* @callname: Core_execute_block
|
|
78
|
+
* @param {SpRuntimeBlock} block
|
|
79
|
+
**/
|
|
80
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Initialize a block with the given header.
|
|
84
|
+
*
|
|
85
|
+
* @callname: Core_initialize_block
|
|
86
|
+
* @param {Header} header
|
|
87
|
+
**/
|
|
88
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Generic runtime api call
|
|
92
|
+
**/
|
|
93
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
97
|
+
**/
|
|
98
|
+
metadata: {
|
|
99
|
+
/**
|
|
100
|
+
* Returns the metadata of a runtime.
|
|
101
|
+
*
|
|
102
|
+
* @callname: Metadata_metadata
|
|
103
|
+
**/
|
|
104
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Returns the metadata at a given version.
|
|
108
|
+
*
|
|
109
|
+
* If the given `version` isn't supported, this will return `None`.
|
|
110
|
+
* Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
|
|
111
|
+
*
|
|
112
|
+
* @callname: Metadata_metadata_at_version
|
|
113
|
+
* @param {number} version
|
|
114
|
+
**/
|
|
115
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Returns the supported metadata versions.
|
|
119
|
+
*
|
|
120
|
+
* This can be used to call `metadata_at_version`.
|
|
121
|
+
*
|
|
122
|
+
* @callname: Metadata_metadata_versions
|
|
123
|
+
**/
|
|
124
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Generic runtime api call
|
|
128
|
+
**/
|
|
129
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
133
|
+
**/
|
|
134
|
+
blockBuilder: {
|
|
135
|
+
/**
|
|
136
|
+
* Apply the given extrinsic.
|
|
137
|
+
*
|
|
138
|
+
* Returns an inclusion outcome which specifies if this extrinsic is included in
|
|
139
|
+
* this block or not.
|
|
140
|
+
*
|
|
141
|
+
* @callname: BlockBuilder_apply_extrinsic
|
|
142
|
+
* @param {UncheckedExtrinsicLike} extrinsic
|
|
143
|
+
**/
|
|
144
|
+
applyExtrinsic: GenericRuntimeApiMethod<
|
|
145
|
+
(
|
|
146
|
+
extrinsic: UncheckedExtrinsicLike,
|
|
147
|
+
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
148
|
+
>;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Finish the current block.
|
|
152
|
+
*
|
|
153
|
+
* @callname: BlockBuilder_finalize_block
|
|
154
|
+
**/
|
|
155
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
159
|
+
*
|
|
160
|
+
* @callname: BlockBuilder_inherent_extrinsics
|
|
161
|
+
* @param {SpInherentsInherentData} inherent
|
|
162
|
+
**/
|
|
163
|
+
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
164
|
+
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
165
|
+
>;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
169
|
+
*
|
|
170
|
+
* @callname: BlockBuilder_check_inherents
|
|
171
|
+
* @param {SpRuntimeBlock} block
|
|
172
|
+
* @param {SpInherentsInherentData} data
|
|
173
|
+
**/
|
|
174
|
+
checkInherents: GenericRuntimeApiMethod<
|
|
175
|
+
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
176
|
+
>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Generic runtime api call
|
|
180
|
+
**/
|
|
181
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
185
|
+
**/
|
|
186
|
+
taggedTransactionQueue: {
|
|
187
|
+
/**
|
|
188
|
+
* Validate the transaction.
|
|
189
|
+
*
|
|
190
|
+
* This method is invoked by the transaction pool to learn details about given transaction.
|
|
191
|
+
* The implementation should make sure to verify the correctness of the transaction
|
|
192
|
+
* against current state. The given `block_hash` corresponds to the hash of the block
|
|
193
|
+
* that is used as current state.
|
|
194
|
+
*
|
|
195
|
+
* Note that this call may be performed by the pool multiple times and transactions
|
|
196
|
+
* might be verified in any possible order.
|
|
197
|
+
*
|
|
198
|
+
* @callname: TaggedTransactionQueue_validate_transaction
|
|
199
|
+
* @param {SpRuntimeTransactionValidityTransactionSource} source
|
|
200
|
+
* @param {UncheckedExtrinsicLike} tx
|
|
201
|
+
* @param {H256} block_hash
|
|
202
|
+
**/
|
|
203
|
+
validateTransaction: GenericRuntimeApiMethod<
|
|
204
|
+
(
|
|
205
|
+
source: SpRuntimeTransactionValidityTransactionSource,
|
|
206
|
+
tx: UncheckedExtrinsicLike,
|
|
207
|
+
blockHash: H256,
|
|
208
|
+
) => Promise<
|
|
209
|
+
Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
|
|
210
|
+
>
|
|
211
|
+
>;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Generic runtime api call
|
|
215
|
+
**/
|
|
216
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
220
|
+
**/
|
|
221
|
+
offchainWorkerApi: {
|
|
222
|
+
/**
|
|
223
|
+
* Starts the off-chain task for given block header.
|
|
224
|
+
*
|
|
225
|
+
* @callname: OffchainWorkerApi_offchain_worker
|
|
226
|
+
* @param {Header} header
|
|
227
|
+
**/
|
|
228
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Generic runtime api call
|
|
232
|
+
**/
|
|
233
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
237
|
+
**/
|
|
238
|
+
sessionKeys: {
|
|
239
|
+
/**
|
|
240
|
+
* Generate a set of session keys with optionally using the given seed.
|
|
241
|
+
* The keys should be stored within the keystore exposed via runtime
|
|
242
|
+
* externalities.
|
|
243
|
+
*
|
|
244
|
+
* The seed needs to be a valid `utf8` string.
|
|
245
|
+
*
|
|
246
|
+
* Returns the concatenated SCALE encoded public keys.
|
|
247
|
+
*
|
|
248
|
+
* @callname: SessionKeys_generate_session_keys
|
|
249
|
+
* @param {BytesLike | undefined} seed
|
|
250
|
+
**/
|
|
251
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Decode the given public session keys.
|
|
255
|
+
*
|
|
256
|
+
* Returns the list of public raw public keys + key type.
|
|
257
|
+
*
|
|
258
|
+
* @callname: SessionKeys_decode_session_keys
|
|
259
|
+
* @param {BytesLike} encoded
|
|
260
|
+
**/
|
|
261
|
+
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
262
|
+
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
263
|
+
>;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Generic runtime api call
|
|
267
|
+
**/
|
|
268
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
272
|
+
**/
|
|
273
|
+
accountNonceApi: {
|
|
274
|
+
/**
|
|
275
|
+
* Get current account nonce of given `AccountId`.
|
|
276
|
+
*
|
|
277
|
+
* @callname: AccountNonceApi_account_nonce
|
|
278
|
+
* @param {AccountId32Like} account
|
|
279
|
+
**/
|
|
280
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Generic runtime api call
|
|
284
|
+
**/
|
|
285
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
|
|
289
|
+
**/
|
|
290
|
+
assetConversionApi: {
|
|
291
|
+
/**
|
|
292
|
+
* Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
|
|
293
|
+
*
|
|
294
|
+
* Note that the price may have changed by the time the transaction is executed.
|
|
295
|
+
* (Use `amount_in_max` to control slippage.)
|
|
296
|
+
*
|
|
297
|
+
* @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
|
|
298
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset1
|
|
299
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset2
|
|
300
|
+
* @param {bigint} amount
|
|
301
|
+
* @param {boolean} include_fee
|
|
302
|
+
**/
|
|
303
|
+
quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
|
|
304
|
+
(
|
|
305
|
+
asset1: StagingXcmV3MultilocationMultiLocation,
|
|
306
|
+
asset2: StagingXcmV3MultilocationMultiLocation,
|
|
307
|
+
amount: bigint,
|
|
308
|
+
includeFee: boolean,
|
|
309
|
+
) => Promise<bigint | undefined>
|
|
310
|
+
>;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
|
|
314
|
+
*
|
|
315
|
+
* Note that the price may have changed by the time the transaction is executed.
|
|
316
|
+
* (Use `amount_out_min` to control slippage.)
|
|
317
|
+
*
|
|
318
|
+
* @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
|
|
319
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset1
|
|
320
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset2
|
|
321
|
+
* @param {bigint} amount
|
|
322
|
+
* @param {boolean} include_fee
|
|
323
|
+
**/
|
|
324
|
+
quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
|
|
325
|
+
(
|
|
326
|
+
asset1: StagingXcmV3MultilocationMultiLocation,
|
|
327
|
+
asset2: StagingXcmV3MultilocationMultiLocation,
|
|
328
|
+
amount: bigint,
|
|
329
|
+
includeFee: boolean,
|
|
330
|
+
) => Promise<bigint | undefined>
|
|
331
|
+
>;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Returns the size of the liquidity pool for the given asset pair.
|
|
335
|
+
*
|
|
336
|
+
* @callname: AssetConversionApi_get_reserves
|
|
337
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset1
|
|
338
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset2
|
|
339
|
+
**/
|
|
340
|
+
getReserves: GenericRuntimeApiMethod<
|
|
341
|
+
(
|
|
342
|
+
asset1: StagingXcmV3MultilocationMultiLocation,
|
|
343
|
+
asset2: StagingXcmV3MultilocationMultiLocation,
|
|
344
|
+
) => Promise<[bigint, bigint] | undefined>
|
|
345
|
+
>;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Generic runtime api call
|
|
349
|
+
**/
|
|
350
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
354
|
+
**/
|
|
355
|
+
transactionPaymentApi: {
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @callname: TransactionPaymentApi_query_info
|
|
359
|
+
* @param {UncheckedExtrinsicLike} uxt
|
|
360
|
+
* @param {number} len
|
|
361
|
+
**/
|
|
362
|
+
queryInfo: GenericRuntimeApiMethod<
|
|
363
|
+
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
364
|
+
>;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @callname: TransactionPaymentApi_query_fee_details
|
|
369
|
+
* @param {UncheckedExtrinsicLike} uxt
|
|
370
|
+
* @param {number} len
|
|
371
|
+
**/
|
|
372
|
+
queryFeeDetails: GenericRuntimeApiMethod<
|
|
373
|
+
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
374
|
+
>;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
*
|
|
378
|
+
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
379
|
+
* @param {SpWeightsWeightV2Weight} weight
|
|
380
|
+
**/
|
|
381
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
*
|
|
385
|
+
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
386
|
+
* @param {number} length
|
|
387
|
+
**/
|
|
388
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Generic runtime api call
|
|
392
|
+
**/
|
|
393
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
397
|
+
**/
|
|
398
|
+
transactionPaymentCallApi: {
|
|
399
|
+
/**
|
|
400
|
+
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
|
|
401
|
+
*
|
|
402
|
+
* @callname: TransactionPaymentCallApi_query_call_info
|
|
403
|
+
* @param {AssetHubKusamaRuntimeRuntimeCallLike} call
|
|
404
|
+
* @param {number} len
|
|
405
|
+
**/
|
|
406
|
+
queryCallInfo: GenericRuntimeApiMethod<
|
|
407
|
+
(call: AssetHubKusamaRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
408
|
+
>;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Query fee details of a given encoded `Call`.
|
|
412
|
+
*
|
|
413
|
+
* @callname: TransactionPaymentCallApi_query_call_fee_details
|
|
414
|
+
* @param {AssetHubKusamaRuntimeRuntimeCallLike} call
|
|
415
|
+
* @param {number} len
|
|
416
|
+
**/
|
|
417
|
+
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
418
|
+
(call: AssetHubKusamaRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
419
|
+
>;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Query the output of the current `WeightToFee` given some input.
|
|
423
|
+
*
|
|
424
|
+
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
425
|
+
* @param {SpWeightsWeightV2Weight} weight
|
|
426
|
+
**/
|
|
427
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Query the output of the current `LengthToFee` given some input.
|
|
431
|
+
*
|
|
432
|
+
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
433
|
+
* @param {number} length
|
|
434
|
+
**/
|
|
435
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Generic runtime api call
|
|
439
|
+
**/
|
|
440
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
441
|
+
};
|
|
442
|
+
/**
|
|
443
|
+
* @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
|
|
444
|
+
**/
|
|
445
|
+
fungiblesApi: {
|
|
446
|
+
/**
|
|
447
|
+
* Returns the list of all [`MultiAsset`] that an `AccountId` has.
|
|
448
|
+
*
|
|
449
|
+
* @callname: FungiblesApi_query_account_balances
|
|
450
|
+
* @param {AccountId32Like} account
|
|
451
|
+
**/
|
|
452
|
+
queryAccountBalances: GenericRuntimeApiMethod<
|
|
453
|
+
(account: AccountId32Like) => Promise<Result<XcmVersionedMultiAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
|
|
454
|
+
>;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Generic runtime api call
|
|
458
|
+
**/
|
|
459
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
463
|
+
**/
|
|
464
|
+
collectCollationInfo: {
|
|
465
|
+
/**
|
|
466
|
+
* Collect information about a collation.
|
|
467
|
+
*
|
|
468
|
+
* The given `header` is the header of the built block for that
|
|
469
|
+
* we are collecting the collation info for.
|
|
470
|
+
*
|
|
471
|
+
* @callname: CollectCollationInfo_collect_collation_info
|
|
472
|
+
* @param {Header} header
|
|
473
|
+
**/
|
|
474
|
+
collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Generic runtime api call
|
|
478
|
+
**/
|
|
479
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
483
|
+
**/
|
|
484
|
+
genesisBuilder: {
|
|
485
|
+
/**
|
|
486
|
+
* Creates the default `GenesisConfig` and returns it as a JSON blob.
|
|
487
|
+
*
|
|
488
|
+
* This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
|
|
489
|
+
* blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
|
|
490
|
+
*
|
|
491
|
+
* @callname: GenesisBuilder_create_default_config
|
|
492
|
+
**/
|
|
493
|
+
createDefaultConfig: GenericRuntimeApiMethod<() => Promise<Bytes>>;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
|
497
|
+
*
|
|
498
|
+
* This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
|
|
499
|
+
* If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
|
|
500
|
+
* It is recommended to log any errors encountered during the process.
|
|
501
|
+
*
|
|
502
|
+
* Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
|
|
503
|
+
*
|
|
504
|
+
* @callname: GenesisBuilder_build_config
|
|
505
|
+
* @param {BytesLike} json
|
|
506
|
+
**/
|
|
507
|
+
buildConfig: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Generic runtime api call
|
|
511
|
+
**/
|
|
512
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
513
|
+
};
|
|
402
514
|
}
|