@dedot/chaintypes 0.194.0 → 0.196.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.
- package/aleph/consts.d.ts +2 -2
- package/aleph/errors.d.ts +228 -228
- package/aleph/events.d.ts +122 -226
- package/aleph/index.d.ts +15 -17
- package/aleph/json-rpc.d.ts +3 -3
- package/aleph/query.d.ts +171 -207
- package/aleph/runtime.d.ts +47 -63
- package/aleph/tx.d.ts +377 -550
- package/aleph/view-functions.d.ts +2 -2
- package/astar/consts.d.ts +2 -2
- package/astar/errors.d.ts +431 -431
- package/astar/events.d.ts +232 -401
- package/astar/index.d.ts +15 -17
- package/astar/json-rpc.d.ts +3 -3
- package/astar/query.d.ts +243 -289
- package/astar/runtime.d.ts +59 -87
- package/astar/tx.d.ts +671 -980
- package/astar/view-functions.d.ts +2 -2
- package/basilisk/consts.d.ts +2 -2
- package/basilisk/errors.d.ts +489 -489
- package/basilisk/events.d.ts +187 -408
- package/basilisk/index.d.ts +15 -17
- package/basilisk/json-rpc.d.ts +3 -3
- package/basilisk/query.d.ts +213 -272
- package/basilisk/runtime.d.ts +27 -28
- package/basilisk/tx.d.ts +579 -842
- package/basilisk/view-functions.d.ts +2 -2
- package/hydration/consts.d.ts +47 -14
- package/hydration/errors.d.ts +827 -737
- package/hydration/events.d.ts +639 -527
- package/hydration/index.d.ts +16 -18
- package/hydration/json-rpc.d.ts +3 -3
- package/hydration/query.d.ts +530 -396
- package/hydration/runtime.d.ts +181 -89
- package/hydration/tx.d.ts +1130 -1167
- package/hydration/types.d.ts +889 -42
- package/hydration/view-functions.d.ts +2 -2
- package/kusama/consts.d.ts +2 -2
- package/kusama/errors.d.ts +571 -571
- package/kusama/events.d.ts +216 -477
- package/kusama/index.d.ts +15 -17
- package/kusama/json-rpc.d.ts +3 -3
- package/kusama/query.d.ts +360 -502
- package/kusama/runtime.d.ts +82 -131
- package/kusama/tx.d.ts +851 -1246
- package/kusama/view-functions.d.ts +7 -12
- package/kusama-asset-hub/consts.d.ts +2 -2
- package/kusama-asset-hub/errors.d.ts +653 -653
- package/kusama-asset-hub/events.d.ts +286 -629
- package/kusama-asset-hub/index.d.ts +16 -17
- package/kusama-asset-hub/json-rpc.d.ts +3 -3
- package/kusama-asset-hub/query.d.ts +316 -448
- package/kusama-asset-hub/runtime.d.ts +74 -111
- package/kusama-asset-hub/tx.d.ts +1059 -1558
- package/kusama-asset-hub/view-functions.d.ts +7 -9
- package/kusama-people/consts.d.ts +2 -2
- package/kusama-people/errors.d.ts +160 -160
- package/kusama-people/events.d.ts +89 -176
- package/kusama-people/index.d.ts +15 -17
- package/kusama-people/json-rpc.d.ts +3 -3
- package/kusama-people/query.d.ts +114 -145
- package/kusama-people/runtime.d.ts +45 -65
- package/kusama-people/tx.d.ts +246 -356
- package/kusama-people/view-functions.d.ts +3 -5
- package/moonbeam/consts.d.ts +2 -2
- package/moonbeam/errors.d.ts +478 -478
- package/moonbeam/events.d.ts +182 -426
- package/moonbeam/index.d.ts +15 -17
- package/moonbeam/json-rpc.d.ts +11 -3
- package/moonbeam/query.d.ts +234 -294
- package/moonbeam/runtime.d.ts +61 -89
- package/moonbeam/tx.d.ts +618 -901
- package/moonbeam/view-functions.d.ts +2 -2
- package/package.json +6 -3
- package/paseo/consts.d.ts +2 -2
- package/paseo/errors.d.ts +513 -513
- package/paseo/events.d.ts +197 -430
- package/paseo/index.d.ts +16 -18
- package/paseo/json-rpc.d.ts +3 -3
- package/paseo/query.d.ts +329 -450
- package/paseo/runtime.d.ts +107 -131
- package/paseo/tx.d.ts +787 -1151
- package/paseo/types.d.ts +7 -0
- package/paseo/view-functions.d.ts +7 -12
- package/paseo-asset-hub/consts.d.ts +2 -2
- package/paseo-asset-hub/errors.d.ts +605 -605
- package/paseo-asset-hub/events.d.ts +268 -600
- package/paseo-asset-hub/index.d.ts +17 -18
- package/paseo-asset-hub/json-rpc.d.ts +3 -3
- package/paseo-asset-hub/query.d.ts +293 -413
- package/paseo-asset-hub/runtime.d.ts +96 -104
- package/paseo-asset-hub/tx.d.ts +997 -1466
- package/paseo-asset-hub/types.d.ts +7 -0
- package/paseo-asset-hub/view-functions.d.ts +7 -9
- package/paseo-hydration/consts.d.ts +13 -3
- package/paseo-hydration/errors.d.ts +756 -745
- package/paseo-hydration/events.d.ts +277 -554
- package/paseo-hydration/index.d.ts +16 -18
- package/paseo-hydration/json-rpc.d.ts +3 -3
- package/paseo-hydration/query.d.ts +321 -411
- package/paseo-hydration/runtime.d.ts +95 -106
- package/paseo-hydration/tx.d.ts +923 -1226
- package/paseo-hydration/types.d.ts +91 -50
- package/paseo-hydration/view-functions.d.ts +2 -2
- package/paseo-people/consts.d.ts +2 -2
- package/paseo-people/errors.d.ts +162 -162
- package/paseo-people/events.d.ts +91 -181
- package/paseo-people/index.d.ts +16 -18
- package/paseo-people/json-rpc.d.ts +3 -3
- package/paseo-people/query.d.ts +116 -143
- package/paseo-people/runtime.d.ts +70 -65
- package/paseo-people/tx.d.ts +257 -372
- package/paseo-people/types.d.ts +7 -0
- package/paseo-people/view-functions.d.ts +3 -5
- package/polkadot/consts.d.ts +2 -2
- package/polkadot/errors.d.ts +501 -501
- package/polkadot/events.d.ts +195 -426
- package/polkadot/index.d.ts +15 -17
- package/polkadot/json-rpc.d.ts +3 -3
- package/polkadot/query.d.ts +329 -450
- package/polkadot/runtime.d.ts +83 -133
- package/polkadot/tx.d.ts +765 -1119
- package/polkadot/view-functions.d.ts +7 -12
- package/polkadot-asset-hub/consts.d.ts +2 -2
- package/polkadot-asset-hub/errors.d.ts +554 -554
- package/polkadot-asset-hub/events.d.ts +261 -585
- package/polkadot-asset-hub/index.d.ts +16 -17
- package/polkadot-asset-hub/json-rpc.d.ts +3 -3
- package/polkadot-asset-hub/query.d.ts +279 -396
- package/polkadot-asset-hub/runtime.d.ts +65 -93
- package/polkadot-asset-hub/tx.d.ts +952 -1400
- package/polkadot-asset-hub/view-functions.d.ts +7 -9
- package/polkadot-people/consts.d.ts +2 -2
- package/polkadot-people/errors.d.ts +160 -160
- package/polkadot-people/events.d.ts +89 -176
- package/polkadot-people/index.d.ts +15 -17
- package/polkadot-people/json-rpc.d.ts +3 -3
- package/polkadot-people/query.d.ts +114 -145
- package/polkadot-people/runtime.d.ts +46 -67
- package/polkadot-people/tx.d.ts +246 -356
- package/polkadot-people/view-functions.d.ts +3 -5
- package/substrate/consts.d.ts +2 -2
- package/substrate/errors.d.ts +909 -909
- package/substrate/events.d.ts +389 -794
- package/substrate/index.d.ts +16 -17
- package/substrate/json-rpc.d.ts +3 -3
- package/substrate/query.d.ts +458 -572
- package/substrate/runtime.d.ts +82 -126
- package/substrate/tx.d.ts +1317 -1936
- package/substrate/view-functions.d.ts +2 -2
- package/vara/consts.d.ts +9 -37
- package/vara/errors.d.ts +402 -382
- package/vara/events.d.ts +172 -310
- package/vara/index.d.ts +16 -18
- package/vara/json-rpc.d.ts +7 -3
- package/vara/query.d.ts +299 -331
- package/vara/runtime.d.ts +61 -79
- package/vara/tx.d.ts +573 -754
- package/vara/types.d.ts +71 -26
- package/vara/view-functions.d.ts +2 -2
- package/westend/consts.d.ts +2 -2
- package/westend/errors.d.ts +532 -532
- package/westend/events.d.ts +205 -462
- package/westend/index.d.ts +15 -17
- package/westend/json-rpc.d.ts +3 -3
- package/westend/query.d.ts +312 -434
- package/westend/runtime.d.ts +83 -135
- package/westend/tx.d.ts +807 -1179
- package/westend/view-functions.d.ts +7 -12
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/errors.d.ts +605 -605
- package/westend-asset-hub/events.d.ts +265 -614
- package/westend-asset-hub/index.d.ts +16 -17
- package/westend-asset-hub/json-rpc.d.ts +3 -3
- package/westend-asset-hub/query.d.ts +293 -418
- package/westend-asset-hub/runtime.d.ts +83 -123
- package/westend-asset-hub/tx.d.ts +918 -1348
- package/westend-asset-hub/view-functions.d.ts +8 -13
- package/westend-people/consts.d.ts +2 -2
- package/westend-people/errors.d.ts +160 -160
- package/westend-people/events.d.ts +93 -186
- package/westend-people/index.d.ts +15 -17
- package/westend-people/json-rpc.d.ts +3 -3
- package/westend-people/query.d.ts +114 -145
- package/westend-people/runtime.d.ts +46 -67
- package/westend-people/tx.d.ts +251 -363
- package/westend-people/view-functions.d.ts +3 -5
package/basilisk/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericRuntimeApis, GenericRuntimeApiMethod
|
|
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
|
|
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<
|
|
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<
|
|
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<
|
|
56
|
+
metadata: GenericRuntimeApiMethod<() => Promise<OpaqueMetadata>>;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Generic runtime api call
|
|
60
60
|
**/
|
|
61
|
-
[method: string]: GenericRuntimeApiMethod
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
94
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* Generic runtime api call
|
|
98
98
|
**/
|
|
99
|
-
[method: string]: GenericRuntimeApiMethod
|
|
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
|
|
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<
|
|
134
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
136
135
|
|
|
137
136
|
/**
|
|
138
137
|
* Generic runtime api call
|
|
139
138
|
**/
|
|
140
|
-
[method: string]: GenericRuntimeApiMethod
|
|
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<
|
|
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<
|
|
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
|
|
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<
|
|
186
|
+
accountNonce: GenericRuntimeApiMethod<(accountId: AccountId32Like) => Promise<Nonce>>;
|
|
188
187
|
|
|
189
188
|
/**
|
|
190
189
|
* Generic runtime api call
|
|
191
190
|
**/
|
|
192
|
-
[method: string]: GenericRuntimeApiMethod
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
230
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: Weight) => Promise<Balance>>;
|
|
232
231
|
|
|
233
232
|
/**
|
|
234
233
|
* Generic runtime api call
|
|
235
234
|
**/
|
|
236
|
-
[method: string]: GenericRuntimeApiMethod
|
|
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<
|
|
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<
|
|
264
|
+
buildConfig: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], Text>>>;
|
|
266
265
|
|
|
267
266
|
/**
|
|
268
267
|
* Generic runtime api call
|
|
269
268
|
**/
|
|
270
|
-
[method: string]: GenericRuntimeApiMethod
|
|
269
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
271
270
|
};
|
|
272
271
|
}
|