@dedot/chaintypes 0.0.1-alpha.26 → 0.0.1-alpha.4
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 +528 -590
- package/aleph/consts.js +2 -0
- package/aleph/errors.d.ts +818 -981
- package/aleph/errors.js +2 -0
- package/aleph/events.d.ts +937 -924
- package/aleph/events.js +2 -0
- package/aleph/index.d.ts +8 -11
- package/aleph/index.js +3 -0
- package/aleph/query.d.ts +1268 -1477
- package/aleph/query.js +2 -0
- package/aleph/rpc.d.ts +573 -725
- package/aleph/rpc.js +2 -0
- package/aleph/runtime.d.ts +406 -541
- package/aleph/runtime.js +2 -0
- package/aleph/tx.d.ts +2202 -2664
- package/aleph/tx.js +2 -0
- package/aleph/types.d.ts +5294 -3380
- package/aleph/types.js +2 -0
- package/astar/consts.d.ts +674 -753
- package/astar/consts.js +2 -0
- package/astar/errors.d.ts +1313 -1576
- package/astar/errors.js +2 -0
- package/astar/events.d.ts +1628 -1709
- package/astar/events.js +2 -0
- package/astar/index.d.ts +8 -11
- package/astar/index.js +3 -0
- package/astar/query.d.ts +1471 -1756
- package/astar/query.js +2 -0
- package/astar/rpc.d.ts +773 -972
- package/astar/rpc.js +2 -0
- package/astar/runtime.d.ts +258 -310
- package/astar/runtime.js +2 -0
- package/astar/tx.d.ts +4806 -5474
- package/astar/tx.js +2 -0
- package/astar/types.d.ts +12053 -8793
- package/astar/types.js +2 -0
- package/cjs/aleph/consts.js +3 -0
- package/cjs/aleph/errors.js +3 -0
- package/cjs/aleph/events.js +3 -0
- package/cjs/aleph/index.js +19 -0
- package/cjs/aleph/query.js +3 -0
- package/cjs/aleph/rpc.js +3 -0
- package/cjs/aleph/runtime.js +3 -0
- package/cjs/aleph/tx.js +3 -0
- package/cjs/aleph/types.js +3 -0
- package/cjs/astar/consts.js +3 -0
- package/cjs/astar/errors.js +3 -0
- package/cjs/astar/events.js +3 -0
- package/cjs/astar/index.js +19 -0
- package/cjs/astar/query.js +3 -0
- package/cjs/astar/rpc.js +3 -0
- package/cjs/astar/runtime.js +3 -0
- package/cjs/astar/tx.js +3 -0
- package/cjs/astar/types.js +3 -0
- package/cjs/index.js +2 -0
- package/cjs/kusama/consts.js +3 -0
- package/cjs/kusama/errors.js +3 -0
- package/cjs/kusama/events.js +3 -0
- package/cjs/kusama/index.js +19 -0
- package/cjs/kusama/query.js +3 -0
- package/cjs/kusama/rpc.js +3 -0
- package/cjs/kusama/runtime.js +3 -0
- package/cjs/kusama/tx.js +3 -0
- package/cjs/kusama/types.js +3 -0
- package/cjs/kusamaAssetHub/consts.js +3 -0
- package/cjs/kusamaAssetHub/errors.js +3 -0
- package/cjs/kusamaAssetHub/events.js +3 -0
- package/cjs/kusamaAssetHub/index.js +19 -0
- package/cjs/kusamaAssetHub/query.js +3 -0
- package/cjs/kusamaAssetHub/rpc.js +3 -0
- package/cjs/kusamaAssetHub/runtime.js +3 -0
- package/cjs/kusamaAssetHub/tx.js +3 -0
- package/cjs/kusamaAssetHub/types.js +3 -0
- package/cjs/moonbeam/consts.js +3 -0
- package/cjs/moonbeam/errors.js +3 -0
- package/cjs/moonbeam/events.js +3 -0
- package/cjs/moonbeam/index.js +19 -0
- package/cjs/moonbeam/query.js +3 -0
- package/cjs/moonbeam/rpc.js +3 -0
- package/cjs/moonbeam/runtime.js +3 -0
- package/cjs/moonbeam/tx.js +3 -0
- package/cjs/moonbeam/types.js +3 -0
- package/cjs/package.json +1 -0
- package/cjs/packageInfo.js +5 -0
- package/cjs/polkadot/consts.js +3 -0
- package/cjs/polkadot/errors.js +3 -0
- package/cjs/polkadot/events.js +3 -0
- package/cjs/polkadot/index.js +19 -0
- package/cjs/polkadot/query.js +3 -0
- package/cjs/polkadot/rpc.js +3 -0
- package/cjs/polkadot/runtime.js +3 -0
- package/cjs/polkadot/tx.js +3 -0
- package/cjs/polkadot/types.js +3 -0
- package/cjs/polkadotAssetHub/consts.js +3 -0
- package/cjs/polkadotAssetHub/errors.js +3 -0
- package/cjs/polkadotAssetHub/events.js +3 -0
- package/cjs/polkadotAssetHub/index.js +19 -0
- package/cjs/polkadotAssetHub/query.js +3 -0
- package/cjs/polkadotAssetHub/rpc.js +3 -0
- package/cjs/polkadotAssetHub/runtime.js +3 -0
- package/cjs/polkadotAssetHub/tx.js +3 -0
- package/cjs/polkadotAssetHub/types.js +3 -0
- package/cjs/rococoAssetHub/consts.js +3 -0
- package/cjs/rococoAssetHub/errors.js +3 -0
- package/cjs/rococoAssetHub/events.js +3 -0
- package/cjs/rococoAssetHub/index.js +19 -0
- package/cjs/rococoAssetHub/query.js +3 -0
- package/cjs/rococoAssetHub/rpc.js +3 -0
- package/cjs/rococoAssetHub/runtime.js +3 -0
- package/cjs/rococoAssetHub/tx.js +3 -0
- package/cjs/rococoAssetHub/types.js +3 -0
- package/cjs/substrate/consts.js +3 -0
- package/cjs/substrate/errors.js +3 -0
- package/cjs/substrate/events.js +3 -0
- package/cjs/substrate/index.js +19 -0
- package/cjs/substrate/query.js +3 -0
- package/cjs/substrate/rpc.js +3 -0
- package/cjs/substrate/runtime.js +3 -0
- package/cjs/substrate/tx.js +3 -0
- package/cjs/substrate/types.js +3 -0
- package/cjs/westendAssetHub/consts.js +3 -0
- package/cjs/westendAssetHub/errors.js +3 -0
- package/cjs/westendAssetHub/events.js +3 -0
- package/cjs/westendAssetHub/index.js +19 -0
- package/cjs/westendAssetHub/query.js +3 -0
- package/cjs/westendAssetHub/rpc.js +3 -0
- package/cjs/westendAssetHub/runtime.js +3 -0
- package/cjs/westendAssetHub/tx.js +3 -0
- package/cjs/westendAssetHub/types.js +3 -0
- package/kusama/consts.d.ts +1422 -1573
- package/kusama/consts.js +2 -0
- package/kusama/errors.d.ts +2490 -2995
- package/kusama/errors.js +2 -0
- package/kusama/events.d.ts +2723 -2996
- package/kusama/events.js +2 -0
- package/kusama/index.d.ts +8 -11
- package/kusama/index.js +3 -0
- package/kusama/query.d.ts +3248 -3828
- package/kusama/query.js +2 -0
- package/kusama/rpc.d.ts +724 -902
- package/kusama/rpc.js +2 -0
- package/kusama/runtime.d.ts +840 -1130
- package/kusama/runtime.js +2 -0
- package/kusama/tx.d.ts +6010 -7073
- package/kusama/tx.js +2 -0
- package/kusama/types.d.ts +15336 -10143
- package/kusama/types.js +2 -0
- package/kusamaAssetHub/consts.d.ts +627 -714
- package/kusamaAssetHub/consts.js +2 -0
- package/kusamaAssetHub/errors.d.ts +1160 -1405
- package/kusamaAssetHub/errors.js +2 -0
- package/kusamaAssetHub/events.d.ts +2060 -2149
- package/kusamaAssetHub/events.js +2 -0
- package/kusamaAssetHub/index.d.ts +8 -11
- package/kusamaAssetHub/index.js +3 -0
- package/kusamaAssetHub/query.d.ts +1298 -1551
- package/kusamaAssetHub/query.js +2 -0
- package/kusamaAssetHub/rpc.d.ts +588 -744
- package/kusamaAssetHub/rpc.js +2 -0
- package/kusamaAssetHub/runtime.d.ts +398 -510
- package/kusamaAssetHub/runtime.js +2 -0
- package/kusamaAssetHub/tx.d.ts +4212 -5050
- package/kusamaAssetHub/tx.js +2 -0
- package/kusamaAssetHub/types.d.ts +9997 -5964
- package/kusamaAssetHub/types.js +2 -0
- package/moonbeam/consts.d.ts +956 -1075
- package/moonbeam/consts.js +2 -0
- package/moonbeam/errors.d.ts +1793 -2131
- package/moonbeam/errors.js +2 -0
- package/moonbeam/events.d.ts +2681 -2932
- package/moonbeam/events.js +2 -0
- package/moonbeam/index.d.ts +8 -11
- package/moonbeam/index.js +3 -0
- package/moonbeam/query.d.ts +2024 -2391
- package/moonbeam/query.js +2 -0
- package/moonbeam/rpc.d.ts +807 -1013
- package/moonbeam/rpc.js +2 -0
- package/moonbeam/runtime.d.ts +502 -665
- package/moonbeam/runtime.js +2 -0
- package/moonbeam/tx.d.ts +5201 -6152
- package/moonbeam/tx.js +2 -0
- package/moonbeam/types.d.ts +12035 -7731
- package/moonbeam/types.js +2 -0
- package/package.json +8 -9
- package/packageInfo.js +1 -2
- package/polkadot/consts.d.ts +1155 -1272
- package/polkadot/consts.js +2 -0
- package/polkadot/errors.d.ts +2016 -2420
- package/polkadot/errors.js +2 -0
- package/polkadot/events.d.ts +2092 -2314
- package/polkadot/events.js +2 -0
- package/polkadot/index.d.ts +8 -11
- package/polkadot/index.js +3 -0
- package/polkadot/query.d.ts +2808 -3319
- package/polkadot/query.js +2 -0
- package/polkadot/rpc.d.ts +724 -902
- package/polkadot/rpc.js +2 -0
- package/polkadot/runtime.d.ts +840 -1130
- package/polkadot/runtime.js +2 -0
- package/polkadot/tx.d.ts +5005 -5909
- package/polkadot/tx.js +2 -0
- package/polkadot/types.d.ts +13402 -8854
- package/polkadot/types.js +2 -0
- package/polkadotAssetHub/consts.d.ts +519 -586
- package/polkadotAssetHub/consts.js +2 -0
- package/polkadotAssetHub/errors.d.ts +921 -1115
- package/polkadotAssetHub/errors.js +2 -0
- package/polkadotAssetHub/events.d.ts +1782 -1850
- package/polkadotAssetHub/events.js +2 -0
- package/polkadotAssetHub/index.d.ts +8 -11
- package/polkadotAssetHub/index.js +3 -0
- package/polkadotAssetHub/query.d.ts +1219 -1457
- package/polkadotAssetHub/query.js +2 -0
- package/polkadotAssetHub/rpc.d.ts +588 -744
- package/polkadotAssetHub/rpc.js +2 -0
- package/polkadotAssetHub/runtime.d.ts +355 -447
- package/polkadotAssetHub/runtime.js +2 -0
- package/polkadotAssetHub/tx.d.ts +3487 -4184
- package/polkadotAssetHub/tx.js +2 -0
- package/polkadotAssetHub/types.d.ts +8891 -5266
- package/polkadotAssetHub/types.js +2 -0
- package/rococoAssetHub/consts.d.ts +653 -745
- package/rococoAssetHub/consts.js +2 -0
- package/rococoAssetHub/errors.d.ts +1227 -1490
- package/rococoAssetHub/errors.js +2 -0
- package/rococoAssetHub/events.d.ts +2047 -2127
- package/rococoAssetHub/events.js +2 -0
- package/rococoAssetHub/index.d.ts +8 -11
- package/rococoAssetHub/index.js +3 -0
- package/rococoAssetHub/query.d.ts +1266 -1513
- package/rococoAssetHub/query.js +2 -0
- package/rococoAssetHub/rpc.d.ts +588 -744
- package/rococoAssetHub/rpc.js +2 -0
- package/rococoAssetHub/runtime.d.ts +424 -538
- package/rococoAssetHub/runtime.js +2 -0
- package/rococoAssetHub/tx.d.ts +4302 -5164
- package/rococoAssetHub/tx.js +2 -0
- package/rococoAssetHub/types.d.ts +10610 -6295
- package/rococoAssetHub/types.js +2 -0
- package/substrate/consts.d.ts +1966 -2218
- package/substrate/consts.js +2 -0
- package/substrate/errors.d.ts +3333 -4019
- package/substrate/errors.js +2 -0
- package/substrate/events.d.ts +4255 -4585
- package/substrate/events.js +2 -0
- package/substrate/index.d.ts +8 -11
- package/substrate/index.js +3 -0
- package/substrate/query.d.ts +3347 -3887
- package/substrate/query.js +2 -0
- package/substrate/rpc.d.ts +716 -892
- package/substrate/rpc.js +2 -0
- package/substrate/runtime.d.ts +704 -937
- package/substrate/runtime.js +2 -0
- package/substrate/tx.d.ts +8796 -10387
- package/substrate/tx.js +2 -0
- package/substrate/types.d.ts +19843 -12891
- package/substrate/types.js +2 -0
- package/westendAssetHub/consts.d.ts +653 -745
- package/westendAssetHub/consts.js +2 -0
- package/westendAssetHub/errors.d.ts +1227 -1490
- package/westendAssetHub/errors.js +2 -0
- package/westendAssetHub/events.d.ts +2047 -2127
- package/westendAssetHub/events.js +2 -0
- package/westendAssetHub/index.d.ts +8 -11
- package/westendAssetHub/index.js +3 -0
- package/westendAssetHub/query.d.ts +1266 -1513
- package/westendAssetHub/query.js +2 -0
- package/westendAssetHub/rpc.d.ts +588 -744
- package/westendAssetHub/rpc.js +2 -0
- package/westendAssetHub/runtime.d.ts +452 -577
- package/westendAssetHub/runtime.js +2 -0
- package/westendAssetHub/tx.d.ts +4302 -5164
- package/westendAssetHub/tx.js +2 -0
- package/westendAssetHub/types.d.ts +10614 -6302
- package/westendAssetHub/types.js +2 -0
- package/index.ts +0 -10
- package/packageInfo.ts +0 -3
package/astar/rpc.js
ADDED
package/astar/runtime.d.ts
CHANGED
|
@@ -1,314 +1,262 @@
|
|
|
1
|
-
// Generated by @dedot/codegen
|
|
2
|
-
|
|
3
1
|
import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '@dedot/types';
|
|
4
|
-
import type {
|
|
5
|
-
RuntimeVersion,
|
|
6
|
-
Block,
|
|
7
|
-
Header,
|
|
8
|
-
Option,
|
|
9
|
-
OpaqueMetadata,
|
|
10
|
-
ApplyExtrinsicResult,
|
|
11
|
-
OpaqueExtrinsicLike,
|
|
12
|
-
CheckInherentsResult,
|
|
13
|
-
InherentData,
|
|
14
|
-
Extrinsic,
|
|
15
|
-
TransactionValidity,
|
|
16
|
-
TransactionSource,
|
|
17
|
-
BlockHash,
|
|
18
|
-
Nonce,
|
|
19
|
-
AccountId32Like,
|
|
20
|
-
RuntimeDispatchInfo,
|
|
21
|
-
FeeDetails,
|
|
22
|
-
Balance,
|
|
23
|
-
Weight,
|
|
24
|
-
RawBytesLike,
|
|
25
|
-
Bytes,
|
|
26
|
-
BytesLike,
|
|
27
|
-
KeyTypeId,
|
|
28
|
-
} from '@dedot/codecs';
|
|
29
|
-
|
|
2
|
+
import type { RuntimeVersion, Block, Header, Option, OpaqueMetadata, ApplyExtrinsicResult, OpaqueExtrinsicLike, CheckInherentsResult, InherentData, Extrinsic, TransactionValidity, TransactionSource, BlockHash, Nonce, AccountId32Like, RuntimeDispatchInfo, FeeDetails, Balance, Weight, RawBytesLike, Bytes, BytesLike, KeyTypeId } from '@dedot/codecs';
|
|
30
3
|
export interface RuntimeApis extends GenericRuntimeApis {
|
|
31
|
-
/**
|
|
32
|
-
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
33
|
-
* @version: 4
|
|
34
|
-
**/
|
|
35
|
-
core: {
|
|
36
4
|
/**
|
|
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
|
-
* @callname: SessionKeys_generate_session_keys
|
|
295
|
-
* @param {Option<BytesLike>} seed
|
|
296
|
-
**/
|
|
297
|
-
generateSessionKeys: GenericRuntimeApiMethod<(seed?: Option<BytesLike>) => Promise<Bytes>>;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Decode the given public session key
|
|
301
|
-
*
|
|
302
|
-
* Returns the list of public raw public keys + key typ
|
|
303
|
-
*
|
|
304
|
-
* @callname: SessionKeys_decode_session_keys
|
|
305
|
-
* @param {BytesLike} encoded
|
|
306
|
-
**/
|
|
307
|
-
decodeSessionKeys: GenericRuntimeApiMethod<(encoded: BytesLike) => Promise<Option<Array<[Bytes, KeyTypeId]>>>>;
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Generic runtime api call
|
|
311
|
-
**/
|
|
312
|
-
[method: string]: GenericRuntimeApiMethod;
|
|
313
|
-
};
|
|
5
|
+
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
6
|
+
* @version: 4
|
|
7
|
+
**/
|
|
8
|
+
core: {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the version of the runtime.
|
|
11
|
+
*
|
|
12
|
+
* @callname: Core_version
|
|
13
|
+
**/
|
|
14
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
15
|
+
/**
|
|
16
|
+
* Execute the given block.
|
|
17
|
+
*
|
|
18
|
+
* @callname: Core_execute_block
|
|
19
|
+
* @param {Block} block
|
|
20
|
+
**/
|
|
21
|
+
executeBlock: GenericRuntimeApiMethod<(block: Block) => Promise<[]>>;
|
|
22
|
+
/**
|
|
23
|
+
* Initialize a block with the given header.
|
|
24
|
+
*
|
|
25
|
+
* @callname: Core_initialize_block
|
|
26
|
+
* @param {Header} header
|
|
27
|
+
**/
|
|
28
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
29
|
+
/**
|
|
30
|
+
* Generic runtime api call
|
|
31
|
+
**/
|
|
32
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
36
|
+
* @version: 2
|
|
37
|
+
**/
|
|
38
|
+
metadata: {
|
|
39
|
+
/**
|
|
40
|
+
* Returns the metadata at a given version.
|
|
41
|
+
*
|
|
42
|
+
* @callname: Metadata_metadata_at_version
|
|
43
|
+
* @param {number} version
|
|
44
|
+
**/
|
|
45
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<Option<OpaqueMetadata>>>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the supported metadata versions.
|
|
48
|
+
*
|
|
49
|
+
* @callname: Metadata_metadata_versions
|
|
50
|
+
**/
|
|
51
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
52
|
+
/**
|
|
53
|
+
* Returns the metadata of a runtime.
|
|
54
|
+
*
|
|
55
|
+
* @callname: Metadata_metadata
|
|
56
|
+
**/
|
|
57
|
+
metadata: GenericRuntimeApiMethod<() => Promise<OpaqueMetadata>>;
|
|
58
|
+
/**
|
|
59
|
+
* Generic runtime api call
|
|
60
|
+
**/
|
|
61
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
65
|
+
* @version: 6
|
|
66
|
+
**/
|
|
67
|
+
blockBuilder: {
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @callname: BlockBuilder_apply_extrinsic
|
|
71
|
+
* @param {OpaqueExtrinsicLike} extrinsic
|
|
72
|
+
**/
|
|
73
|
+
applyExtrinsic: GenericRuntimeApiMethod<(extrinsic: OpaqueExtrinsicLike) => Promise<ApplyExtrinsicResult>>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @callname: BlockBuilder_check_inherents
|
|
77
|
+
* @param {Block} block
|
|
78
|
+
* @param {InherentData} data
|
|
79
|
+
**/
|
|
80
|
+
checkInherents: GenericRuntimeApiMethod<(block: Block, data: InherentData) => Promise<CheckInherentsResult>>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @callname: BlockBuilder_inherent_extrinsics
|
|
84
|
+
* @param {InherentData} inherent
|
|
85
|
+
**/
|
|
86
|
+
inherentExtrinsics: GenericRuntimeApiMethod<(inherent: InherentData) => Promise<Array<Extrinsic>>>;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @callname: BlockBuilder_finalize_block
|
|
90
|
+
**/
|
|
91
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
92
|
+
/**
|
|
93
|
+
* Generic runtime api call
|
|
94
|
+
**/
|
|
95
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
99
|
+
* @version: 3
|
|
100
|
+
**/
|
|
101
|
+
taggedTransactionQueue: {
|
|
102
|
+
/**
|
|
103
|
+
* Validate the transaction.
|
|
104
|
+
*
|
|
105
|
+
* @callname: TaggedTransactionQueue_validate_transaction
|
|
106
|
+
* @param {TransactionSource} source
|
|
107
|
+
* @param {OpaqueExtrinsicLike} tx
|
|
108
|
+
* @param {BlockHash} blockHash
|
|
109
|
+
**/
|
|
110
|
+
validateTransaction: GenericRuntimeApiMethod<(source: TransactionSource, tx: OpaqueExtrinsicLike, blockHash: BlockHash) => Promise<TransactionValidity>>;
|
|
111
|
+
/**
|
|
112
|
+
* Generic runtime api call
|
|
113
|
+
**/
|
|
114
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
118
|
+
* @version: 2
|
|
119
|
+
**/
|
|
120
|
+
offchainWorkerApi: {
|
|
121
|
+
/**
|
|
122
|
+
* Starts the off-chain task for given block header.
|
|
123
|
+
*
|
|
124
|
+
* @callname: OffchainWorkerApi_offchain_worker
|
|
125
|
+
* @param {Header} header
|
|
126
|
+
**/
|
|
127
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
128
|
+
/**
|
|
129
|
+
* Generic runtime api call
|
|
130
|
+
**/
|
|
131
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
135
|
+
* @version: 1
|
|
136
|
+
**/
|
|
137
|
+
accountNonceApi: {
|
|
138
|
+
/**
|
|
139
|
+
* The API to query account nonce (aka transaction index)
|
|
140
|
+
*
|
|
141
|
+
* @callname: AccountNonceApi_account_nonce
|
|
142
|
+
* @param {AccountId32Like} accountId
|
|
143
|
+
**/
|
|
144
|
+
accountNonce: GenericRuntimeApiMethod<(accountId: AccountId32Like) => Promise<Nonce>>;
|
|
145
|
+
/**
|
|
146
|
+
* Generic runtime api call
|
|
147
|
+
**/
|
|
148
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
152
|
+
* @version: 4
|
|
153
|
+
**/
|
|
154
|
+
transactionPaymentApi: {
|
|
155
|
+
/**
|
|
156
|
+
* The transaction info
|
|
157
|
+
*
|
|
158
|
+
* @callname: TransactionPaymentApi_query_info
|
|
159
|
+
* @param {OpaqueExtrinsicLike} uxt
|
|
160
|
+
* @param {number} len
|
|
161
|
+
**/
|
|
162
|
+
queryInfo: GenericRuntimeApiMethod<(uxt: OpaqueExtrinsicLike, len: number) => Promise<RuntimeDispatchInfo>>;
|
|
163
|
+
/**
|
|
164
|
+
* The transaction fee details
|
|
165
|
+
*
|
|
166
|
+
* @callname: TransactionPaymentApi_query_fee_details
|
|
167
|
+
* @param {OpaqueExtrinsicLike} uxt
|
|
168
|
+
* @param {number} len
|
|
169
|
+
**/
|
|
170
|
+
queryFeeDetails: GenericRuntimeApiMethod<(uxt: OpaqueExtrinsicLike, len: number) => Promise<FeeDetails>>;
|
|
171
|
+
/**
|
|
172
|
+
* Query the output of the current LengthToFee given some input
|
|
173
|
+
*
|
|
174
|
+
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
175
|
+
* @param {number} length
|
|
176
|
+
**/
|
|
177
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<Balance>>;
|
|
178
|
+
/**
|
|
179
|
+
* Query the output of the current WeightToFee given some input
|
|
180
|
+
*
|
|
181
|
+
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
182
|
+
* @param {Weight} weight
|
|
183
|
+
**/
|
|
184
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: Weight) => Promise<Balance>>;
|
|
185
|
+
/**
|
|
186
|
+
* Generic runtime api call
|
|
187
|
+
**/
|
|
188
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
192
|
+
* @version: 3
|
|
193
|
+
**/
|
|
194
|
+
transactionPaymentCallApi: {
|
|
195
|
+
/**
|
|
196
|
+
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
|
|
197
|
+
*
|
|
198
|
+
* @callname: TransactionPaymentCallApi_query_call_info
|
|
199
|
+
* @param {RawBytesLike} call
|
|
200
|
+
* @param {number} len
|
|
201
|
+
**/
|
|
202
|
+
queryCallInfo: GenericRuntimeApiMethod<(call: RawBytesLike, len: number) => Promise<RuntimeDispatchInfo>>;
|
|
203
|
+
/**
|
|
204
|
+
* Query fee details of a given encoded `Call`.
|
|
205
|
+
*
|
|
206
|
+
* @callname: TransactionPaymentCallApi_query_call_fee_details
|
|
207
|
+
* @param {RawBytesLike} call
|
|
208
|
+
* @param {number} len
|
|
209
|
+
**/
|
|
210
|
+
queryCallFeeDetails: GenericRuntimeApiMethod<(call: RawBytesLike, len: number) => Promise<FeeDetails>>;
|
|
211
|
+
/**
|
|
212
|
+
* Query the output of the current LengthToFee given some input
|
|
213
|
+
*
|
|
214
|
+
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
215
|
+
* @param {number} length
|
|
216
|
+
**/
|
|
217
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<Balance>>;
|
|
218
|
+
/**
|
|
219
|
+
* Query the output of the current WeightToFee given some input
|
|
220
|
+
*
|
|
221
|
+
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
222
|
+
* @param {Weight} weight
|
|
223
|
+
**/
|
|
224
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: Weight) => Promise<Balance>>;
|
|
225
|
+
/**
|
|
226
|
+
* Generic runtime api call
|
|
227
|
+
**/
|
|
228
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
232
|
+
* @version: 1
|
|
233
|
+
**/
|
|
234
|
+
sessionKeys: {
|
|
235
|
+
/**
|
|
236
|
+
* Generate a set of session keys with optionally using the given seed.
|
|
237
|
+
* The keys should be stored within the keystore exposed via runtime
|
|
238
|
+
* externalities.
|
|
239
|
+
*
|
|
240
|
+
* The seed needs to be a valid `utf8` string.
|
|
241
|
+
*
|
|
242
|
+
* Returns the concatenated SCALE encoded public keys.
|
|
243
|
+
*
|
|
244
|
+
* @callname: SessionKeys_generate_session_keys
|
|
245
|
+
* @param {Option<BytesLike>} seed
|
|
246
|
+
**/
|
|
247
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: Option<BytesLike>) => Promise<Bytes>>;
|
|
248
|
+
/**
|
|
249
|
+
* Decode the given public session key
|
|
250
|
+
*
|
|
251
|
+
* Returns the list of public raw public keys + key typ
|
|
252
|
+
*
|
|
253
|
+
* @callname: SessionKeys_decode_session_keys
|
|
254
|
+
* @param {BytesLike} encoded
|
|
255
|
+
**/
|
|
256
|
+
decodeSessionKeys: GenericRuntimeApiMethod<(encoded: BytesLike) => Promise<Option<Array<[Bytes, KeyTypeId]>>>>;
|
|
257
|
+
/**
|
|
258
|
+
* Generic runtime api call
|
|
259
|
+
**/
|
|
260
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
261
|
+
};
|
|
314
262
|
}
|
package/astar/runtime.js
ADDED