@dedot/chaintypes 0.194.0 → 0.195.0

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.
Files changed (187) hide show
  1. package/aleph/consts.d.ts +2 -2
  2. package/aleph/errors.d.ts +228 -228
  3. package/aleph/events.d.ts +122 -226
  4. package/aleph/index.d.ts +13 -17
  5. package/aleph/json-rpc.d.ts +3 -3
  6. package/aleph/query.d.ts +171 -207
  7. package/aleph/runtime.d.ts +47 -63
  8. package/aleph/tx.d.ts +377 -550
  9. package/aleph/view-functions.d.ts +2 -2
  10. package/astar/consts.d.ts +2 -2
  11. package/astar/errors.d.ts +431 -431
  12. package/astar/events.d.ts +232 -401
  13. package/astar/index.d.ts +13 -17
  14. package/astar/json-rpc.d.ts +3 -3
  15. package/astar/query.d.ts +243 -289
  16. package/astar/runtime.d.ts +59 -87
  17. package/astar/tx.d.ts +671 -980
  18. package/astar/view-functions.d.ts +2 -2
  19. package/basilisk/consts.d.ts +2 -2
  20. package/basilisk/errors.d.ts +489 -489
  21. package/basilisk/events.d.ts +187 -408
  22. package/basilisk/index.d.ts +13 -17
  23. package/basilisk/json-rpc.d.ts +3 -3
  24. package/basilisk/query.d.ts +213 -272
  25. package/basilisk/runtime.d.ts +27 -28
  26. package/basilisk/tx.d.ts +579 -842
  27. package/basilisk/view-functions.d.ts +2 -2
  28. package/hydration/consts.d.ts +47 -14
  29. package/hydration/errors.d.ts +827 -737
  30. package/hydration/events.d.ts +639 -527
  31. package/hydration/index.d.ts +14 -18
  32. package/hydration/json-rpc.d.ts +3 -3
  33. package/hydration/query.d.ts +530 -396
  34. package/hydration/runtime.d.ts +181 -89
  35. package/hydration/tx.d.ts +1130 -1167
  36. package/hydration/types.d.ts +889 -42
  37. package/hydration/view-functions.d.ts +2 -2
  38. package/kusama/consts.d.ts +2 -2
  39. package/kusama/errors.d.ts +571 -571
  40. package/kusama/events.d.ts +216 -477
  41. package/kusama/index.d.ts +13 -17
  42. package/kusama/json-rpc.d.ts +3 -3
  43. package/kusama/query.d.ts +360 -502
  44. package/kusama/runtime.d.ts +82 -131
  45. package/kusama/tx.d.ts +851 -1246
  46. package/kusama/view-functions.d.ts +7 -12
  47. package/kusama-asset-hub/consts.d.ts +2 -2
  48. package/kusama-asset-hub/errors.d.ts +653 -653
  49. package/kusama-asset-hub/events.d.ts +286 -629
  50. package/kusama-asset-hub/index.d.ts +14 -17
  51. package/kusama-asset-hub/json-rpc.d.ts +3 -3
  52. package/kusama-asset-hub/query.d.ts +316 -448
  53. package/kusama-asset-hub/runtime.d.ts +74 -111
  54. package/kusama-asset-hub/tx.d.ts +1059 -1558
  55. package/kusama-asset-hub/view-functions.d.ts +7 -9
  56. package/kusama-people/consts.d.ts +2 -2
  57. package/kusama-people/errors.d.ts +160 -160
  58. package/kusama-people/events.d.ts +89 -176
  59. package/kusama-people/index.d.ts +13 -17
  60. package/kusama-people/json-rpc.d.ts +3 -3
  61. package/kusama-people/query.d.ts +114 -145
  62. package/kusama-people/runtime.d.ts +45 -65
  63. package/kusama-people/tx.d.ts +246 -356
  64. package/kusama-people/view-functions.d.ts +3 -5
  65. package/moonbeam/consts.d.ts +2 -2
  66. package/moonbeam/errors.d.ts +478 -478
  67. package/moonbeam/events.d.ts +182 -426
  68. package/moonbeam/index.d.ts +13 -17
  69. package/moonbeam/json-rpc.d.ts +11 -3
  70. package/moonbeam/query.d.ts +234 -294
  71. package/moonbeam/runtime.d.ts +61 -89
  72. package/moonbeam/tx.d.ts +618 -901
  73. package/moonbeam/view-functions.d.ts +2 -2
  74. package/package.json +6 -3
  75. package/paseo/consts.d.ts +2 -2
  76. package/paseo/errors.d.ts +513 -513
  77. package/paseo/events.d.ts +197 -430
  78. package/paseo/index.d.ts +14 -18
  79. package/paseo/json-rpc.d.ts +3 -3
  80. package/paseo/query.d.ts +329 -450
  81. package/paseo/runtime.d.ts +107 -131
  82. package/paseo/tx.d.ts +787 -1151
  83. package/paseo/types.d.ts +7 -0
  84. package/paseo/view-functions.d.ts +7 -12
  85. package/paseo-asset-hub/consts.d.ts +2 -2
  86. package/paseo-asset-hub/errors.d.ts +605 -605
  87. package/paseo-asset-hub/events.d.ts +268 -600
  88. package/paseo-asset-hub/index.d.ts +15 -18
  89. package/paseo-asset-hub/json-rpc.d.ts +3 -3
  90. package/paseo-asset-hub/query.d.ts +293 -413
  91. package/paseo-asset-hub/runtime.d.ts +96 -104
  92. package/paseo-asset-hub/tx.d.ts +997 -1466
  93. package/paseo-asset-hub/types.d.ts +7 -0
  94. package/paseo-asset-hub/view-functions.d.ts +7 -9
  95. package/paseo-hydration/consts.d.ts +13 -3
  96. package/paseo-hydration/errors.d.ts +756 -745
  97. package/paseo-hydration/events.d.ts +277 -554
  98. package/paseo-hydration/index.d.ts +14 -18
  99. package/paseo-hydration/json-rpc.d.ts +3 -3
  100. package/paseo-hydration/query.d.ts +321 -411
  101. package/paseo-hydration/runtime.d.ts +95 -106
  102. package/paseo-hydration/tx.d.ts +923 -1226
  103. package/paseo-hydration/types.d.ts +91 -50
  104. package/paseo-hydration/view-functions.d.ts +2 -2
  105. package/paseo-people/consts.d.ts +2 -2
  106. package/paseo-people/errors.d.ts +162 -162
  107. package/paseo-people/events.d.ts +91 -181
  108. package/paseo-people/index.d.ts +14 -18
  109. package/paseo-people/json-rpc.d.ts +3 -3
  110. package/paseo-people/query.d.ts +116 -143
  111. package/paseo-people/runtime.d.ts +70 -65
  112. package/paseo-people/tx.d.ts +257 -372
  113. package/paseo-people/types.d.ts +7 -0
  114. package/paseo-people/view-functions.d.ts +3 -5
  115. package/polkadot/consts.d.ts +2 -2
  116. package/polkadot/errors.d.ts +501 -501
  117. package/polkadot/events.d.ts +195 -426
  118. package/polkadot/index.d.ts +13 -17
  119. package/polkadot/json-rpc.d.ts +3 -3
  120. package/polkadot/query.d.ts +329 -450
  121. package/polkadot/runtime.d.ts +83 -133
  122. package/polkadot/tx.d.ts +765 -1119
  123. package/polkadot/view-functions.d.ts +7 -12
  124. package/polkadot-asset-hub/consts.d.ts +2 -2
  125. package/polkadot-asset-hub/errors.d.ts +554 -554
  126. package/polkadot-asset-hub/events.d.ts +261 -585
  127. package/polkadot-asset-hub/index.d.ts +14 -17
  128. package/polkadot-asset-hub/json-rpc.d.ts +3 -3
  129. package/polkadot-asset-hub/query.d.ts +279 -396
  130. package/polkadot-asset-hub/runtime.d.ts +65 -93
  131. package/polkadot-asset-hub/tx.d.ts +952 -1400
  132. package/polkadot-asset-hub/view-functions.d.ts +7 -9
  133. package/polkadot-people/consts.d.ts +2 -2
  134. package/polkadot-people/errors.d.ts +160 -160
  135. package/polkadot-people/events.d.ts +89 -176
  136. package/polkadot-people/index.d.ts +13 -17
  137. package/polkadot-people/json-rpc.d.ts +3 -3
  138. package/polkadot-people/query.d.ts +114 -145
  139. package/polkadot-people/runtime.d.ts +46 -67
  140. package/polkadot-people/tx.d.ts +246 -356
  141. package/polkadot-people/view-functions.d.ts +3 -5
  142. package/substrate/consts.d.ts +2 -2
  143. package/substrate/errors.d.ts +909 -909
  144. package/substrate/events.d.ts +389 -794
  145. package/substrate/index.d.ts +14 -17
  146. package/substrate/json-rpc.d.ts +3 -3
  147. package/substrate/query.d.ts +458 -572
  148. package/substrate/runtime.d.ts +82 -126
  149. package/substrate/tx.d.ts +1317 -1936
  150. package/substrate/view-functions.d.ts +2 -2
  151. package/vara/consts.d.ts +9 -37
  152. package/vara/errors.d.ts +402 -382
  153. package/vara/events.d.ts +172 -310
  154. package/vara/index.d.ts +14 -18
  155. package/vara/json-rpc.d.ts +7 -3
  156. package/vara/query.d.ts +299 -331
  157. package/vara/runtime.d.ts +61 -79
  158. package/vara/tx.d.ts +573 -754
  159. package/vara/types.d.ts +71 -26
  160. package/vara/view-functions.d.ts +2 -2
  161. package/westend/consts.d.ts +2 -2
  162. package/westend/errors.d.ts +532 -532
  163. package/westend/events.d.ts +205 -462
  164. package/westend/index.d.ts +13 -17
  165. package/westend/json-rpc.d.ts +3 -3
  166. package/westend/query.d.ts +312 -434
  167. package/westend/runtime.d.ts +83 -135
  168. package/westend/tx.d.ts +807 -1179
  169. package/westend/view-functions.d.ts +7 -12
  170. package/westend-asset-hub/consts.d.ts +2 -2
  171. package/westend-asset-hub/errors.d.ts +605 -605
  172. package/westend-asset-hub/events.d.ts +265 -614
  173. package/westend-asset-hub/index.d.ts +14 -17
  174. package/westend-asset-hub/json-rpc.d.ts +3 -3
  175. package/westend-asset-hub/query.d.ts +293 -418
  176. package/westend-asset-hub/runtime.d.ts +83 -123
  177. package/westend-asset-hub/tx.d.ts +918 -1348
  178. package/westend-asset-hub/view-functions.d.ts +8 -13
  179. package/westend-people/consts.d.ts +2 -2
  180. package/westend-people/errors.d.ts +160 -160
  181. package/westend-people/events.d.ts +93 -186
  182. package/westend-people/index.d.ts +13 -17
  183. package/westend-people/json-rpc.d.ts +3 -3
  184. package/westend-people/query.d.ts +114 -145
  185. package/westend-people/runtime.d.ts +46 -67
  186. package/westend-people/tx.d.ts +251 -363
  187. package/westend-people/view-functions.d.ts +3 -5
@@ -1,6 +1,6 @@
1
1
  // Generated by dedot cli
2
2
 
3
- import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
3
+ import type { GenericRuntimeApis, GenericRuntimeApiMethod } from 'dedot/types';
4
4
  import type {
5
5
  Option,
6
6
  OpaqueMetadata,
@@ -27,7 +27,7 @@ import type {
27
27
  Text,
28
28
  } from 'dedot/codecs';
29
29
 
30
- export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
30
+ export interface RuntimeApis extends GenericRuntimeApis {
31
31
  /**
32
32
  * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
33
33
  * @version: 2
@@ -39,26 +39,26 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
39
39
  * @callname: Metadata_metadata_at_version
40
40
  * @param {number} version
41
41
  **/
42
- metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<Option<OpaqueMetadata>>>;
42
+ metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<Option<OpaqueMetadata>>>;
43
43
 
44
44
  /**
45
45
  * Returns the supported metadata versions.
46
46
  *
47
47
  * @callname: Metadata_metadata_versions
48
48
  **/
49
- metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
49
+ metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
50
50
 
51
51
  /**
52
52
  * Returns the metadata of a runtime.
53
53
  *
54
54
  * @callname: Metadata_metadata
55
55
  **/
56
- metadata: GenericRuntimeApiMethod<Rv, () => Promise<OpaqueMetadata>>;
56
+ metadata: GenericRuntimeApiMethod<() => Promise<OpaqueMetadata>>;
57
57
 
58
58
  /**
59
59
  * Generic runtime api call
60
60
  **/
61
- [method: string]: GenericRuntimeApiMethod<Rv>;
61
+ [method: string]: GenericRuntimeApiMethod;
62
62
  };
63
63
  /**
64
64
  * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
@@ -70,7 +70,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
70
70
  * @callname: BlockBuilder_apply_extrinsic
71
71
  * @param {OpaqueExtrinsicLike} extrinsic
72
72
  **/
73
- applyExtrinsic: GenericRuntimeApiMethod<Rv, (extrinsic: OpaqueExtrinsicLike) => Promise<ApplyExtrinsicResult>>;
73
+ applyExtrinsic: GenericRuntimeApiMethod<(extrinsic: OpaqueExtrinsicLike) => Promise<ApplyExtrinsicResult>>;
74
74
 
75
75
  /**
76
76
  *
@@ -78,25 +78,25 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
78
78
  * @param {Block} block
79
79
  * @param {InherentData} data
80
80
  **/
81
- checkInherents: GenericRuntimeApiMethod<Rv, (block: Block, data: InherentData) => Promise<CheckInherentsResult>>;
81
+ checkInherents: GenericRuntimeApiMethod<(block: Block, data: InherentData) => Promise<CheckInherentsResult>>;
82
82
 
83
83
  /**
84
84
  *
85
85
  * @callname: BlockBuilder_inherent_extrinsics
86
86
  * @param {InherentData} inherent
87
87
  **/
88
- inherentExtrinsics: GenericRuntimeApiMethod<Rv, (inherent: InherentData) => Promise<Array<OpaqueExtrinsic>>>;
88
+ inherentExtrinsics: GenericRuntimeApiMethod<(inherent: InherentData) => Promise<Array<OpaqueExtrinsic>>>;
89
89
 
90
90
  /**
91
91
  *
92
92
  * @callname: BlockBuilder_finalize_block
93
93
  **/
94
- finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
94
+ finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
95
95
 
96
96
  /**
97
97
  * Generic runtime api call
98
98
  **/
99
- [method: string]: GenericRuntimeApiMethod<Rv>;
99
+ [method: string]: GenericRuntimeApiMethod;
100
100
  };
101
101
  /**
102
102
  * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
@@ -112,14 +112,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
112
112
  * @param {BlockHash} blockHash
113
113
  **/
114
114
  validateTransaction: GenericRuntimeApiMethod<
115
- Rv,
116
115
  (source: TransactionSource, tx: OpaqueExtrinsicLike, blockHash: BlockHash) => Promise<TransactionValidity>
117
116
  >;
118
117
 
119
118
  /**
120
119
  * Generic runtime api call
121
120
  **/
122
- [method: string]: GenericRuntimeApiMethod<Rv>;
121
+ [method: string]: GenericRuntimeApiMethod;
123
122
  };
124
123
  /**
125
124
  * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
@@ -132,12 +131,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
132
131
  * @callname: OffchainWorkerApi_offchain_worker
133
132
  * @param {Header} header
134
133
  **/
135
- offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
134
+ offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
136
135
 
137
136
  /**
138
137
  * Generic runtime api call
139
138
  **/
140
- [method: string]: GenericRuntimeApiMethod<Rv>;
139
+ [method: string]: GenericRuntimeApiMethod;
141
140
  };
142
141
  /**
143
142
  * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
@@ -156,7 +155,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
156
155
  * @callname: SessionKeys_generate_session_keys
157
156
  * @param {Option<BytesLike>} seed
158
157
  **/
159
- generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: Option<BytesLike>) => Promise<Bytes>>;
158
+ generateSessionKeys: GenericRuntimeApiMethod<(seed?: Option<BytesLike>) => Promise<Bytes>>;
160
159
 
161
160
  /**
162
161
  * Decode the given public session key
@@ -166,12 +165,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
166
165
  * @callname: SessionKeys_decode_session_keys
167
166
  * @param {BytesLike} encoded
168
167
  **/
169
- decodeSessionKeys: GenericRuntimeApiMethod<Rv, (encoded: BytesLike) => Promise<Option<Array<[Bytes, KeyTypeId]>>>>;
168
+ decodeSessionKeys: GenericRuntimeApiMethod<(encoded: BytesLike) => Promise<Option<Array<[Bytes, KeyTypeId]>>>>;
170
169
 
171
170
  /**
172
171
  * Generic runtime api call
173
172
  **/
174
- [method: string]: GenericRuntimeApiMethod<Rv>;
173
+ [method: string]: GenericRuntimeApiMethod;
175
174
  };
176
175
  /**
177
176
  * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
@@ -184,12 +183,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
184
183
  * @callname: AccountNonceApi_account_nonce
185
184
  * @param {AccountId32Like} accountId
186
185
  **/
187
- accountNonce: GenericRuntimeApiMethod<Rv, (accountId: AccountId32Like) => Promise<Nonce>>;
186
+ accountNonce: GenericRuntimeApiMethod<(accountId: AccountId32Like) => Promise<Nonce>>;
188
187
 
189
188
  /**
190
189
  * Generic runtime api call
191
190
  **/
192
- [method: string]: GenericRuntimeApiMethod<Rv>;
191
+ [method: string]: GenericRuntimeApiMethod;
193
192
  };
194
193
  /**
195
194
  * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
@@ -203,7 +202,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
203
202
  * @param {OpaqueExtrinsicLike} uxt
204
203
  * @param {number} len
205
204
  **/
206
- queryInfo: GenericRuntimeApiMethod<Rv, (uxt: OpaqueExtrinsicLike, len: number) => Promise<RuntimeDispatchInfo>>;
205
+ queryInfo: GenericRuntimeApiMethod<(uxt: OpaqueExtrinsicLike, len: number) => Promise<RuntimeDispatchInfo>>;
207
206
 
208
207
  /**
209
208
  * The transaction fee details
@@ -212,7 +211,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
212
211
  * @param {OpaqueExtrinsicLike} uxt
213
212
  * @param {number} len
214
213
  **/
215
- queryFeeDetails: GenericRuntimeApiMethod<Rv, (uxt: OpaqueExtrinsicLike, len: number) => Promise<FeeDetails>>;
214
+ queryFeeDetails: GenericRuntimeApiMethod<(uxt: OpaqueExtrinsicLike, len: number) => Promise<FeeDetails>>;
216
215
 
217
216
  /**
218
217
  * Query the output of the current LengthToFee given some input
@@ -220,7 +219,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
220
219
  * @callname: TransactionPaymentApi_query_length_to_fee
221
220
  * @param {number} length
222
221
  **/
223
- queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<Balance>>;
222
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<Balance>>;
224
223
 
225
224
  /**
226
225
  * Query the output of the current WeightToFee given some input
@@ -228,12 +227,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
228
227
  * @callname: TransactionPaymentApi_query_weight_to_fee
229
228
  * @param {Weight} weight
230
229
  **/
231
- queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: Weight) => Promise<Balance>>;
230
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: Weight) => Promise<Balance>>;
232
231
 
233
232
  /**
234
233
  * Generic runtime api call
235
234
  **/
236
- [method: string]: GenericRuntimeApiMethod<Rv>;
235
+ [method: string]: GenericRuntimeApiMethod;
237
236
  };
238
237
  /**
239
238
  * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
@@ -248,7 +247,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
248
247
  *
249
248
  * @callname: GenesisBuilder_create_default_config
250
249
  **/
251
- createDefaultConfig: GenericRuntimeApiMethod<Rv, () => Promise<Bytes>>;
250
+ createDefaultConfig: GenericRuntimeApiMethod<() => Promise<Bytes>>;
252
251
 
253
252
  /**
254
253
  * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
@@ -262,11 +261,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
262
261
  * @callname: GenesisBuilder_build_config
263
262
  * @param {BytesLike} json
264
263
  **/
265
- buildConfig: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], Text>>>;
264
+ buildConfig: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], Text>>>;
266
265
 
267
266
  /**
268
267
  * Generic runtime api call
269
268
  **/
270
- [method: string]: GenericRuntimeApiMethod<Rv>;
269
+ [method: string]: GenericRuntimeApiMethod;
271
270
  };
272
271
  }