@dedot/chaintypes 0.0.1-next.f5bf4fc2.1 → 0.1.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/README.md +3 -1
- package/aleph/consts.d.ts +94 -13
- package/aleph/errors.d.ts +251 -182
- package/aleph/events.d.ts +319 -102
- package/aleph/index.d.ts +16 -11
- package/aleph/json-rpc.d.ts +76 -0
- package/aleph/query.d.ts +261 -168
- package/aleph/runtime.d.ts +90 -39
- package/aleph/tx.d.ts +1822 -1052
- package/aleph/types.d.ts +458 -138
- package/astar/consts.d.ts +112 -116
- package/astar/errors.d.ts +342 -409
- package/astar/events.d.ts +449 -358
- package/astar/index.d.ts +16 -11
- package/astar/json-rpc.d.ts +131 -0
- package/astar/query.d.ts +459 -367
- package/astar/runtime.d.ts +591 -98
- package/astar/tx.d.ts +2485 -3430
- package/astar/types.d.ts +1530 -4436
- package/index.d.ts +3 -0
- package/index.ts +3 -0
- package/kusama/consts.d.ts +54 -115
- package/kusama/errors.d.ts +696 -682
- package/kusama/events.d.ts +592 -407
- package/kusama/index.d.ts +16 -11
- package/kusama/json-rpc.d.ts +103 -0
- package/kusama/query.d.ts +840 -538
- package/kusama/runtime.d.ts +136 -65
- package/kusama/tx.d.ts +4557 -3051
- package/kusama/types.d.ts +1437 -1161
- package/kusamaAssetHub/consts.d.ts +66 -20
- package/kusamaAssetHub/errors.d.ts +428 -308
- package/kusamaAssetHub/events.d.ts +497 -305
- package/kusamaAssetHub/index.d.ts +16 -11
- package/kusamaAssetHub/json-rpc.d.ts +89 -0
- package/kusamaAssetHub/query.d.ts +376 -253
- package/kusamaAssetHub/runtime.d.ts +82 -41
- package/kusamaAssetHub/tx.d.ts +3264 -1955
- package/kusamaAssetHub/types.d.ts +1262 -726
- package/moonbeam/consts.d.ts +115 -170
- package/moonbeam/errors.d.ts +564 -787
- package/moonbeam/events.d.ts +583 -746
- package/moonbeam/index.d.ts +16 -11
- package/moonbeam/json-rpc.d.ts +137 -0
- package/moonbeam/query.d.ts +507 -607
- package/moonbeam/runtime.d.ts +132 -47
- package/moonbeam/tx.d.ts +3309 -3268
- package/moonbeam/types.d.ts +1484 -1375
- package/package.json +4 -14
- package/paseo/consts.d.ts +1331 -0
- package/paseo/errors.d.ts +2644 -0
- package/paseo/events.d.ts +2821 -0
- package/paseo/index.d.ts +27 -0
- package/paseo/json-rpc.d.ts +103 -0
- package/paseo/query.d.ts +3709 -0
- package/paseo/runtime.d.ts +1205 -0
- package/paseo/tx.d.ts +8024 -0
- package/paseo/types.d.ts +10194 -0
- package/polkadot/consts.d.ts +95 -50
- package/polkadot/errors.d.ts +619 -468
- package/polkadot/events.d.ts +582 -257
- package/polkadot/index.d.ts +16 -11
- package/polkadot/json-rpc.d.ts +103 -0
- package/polkadot/query.d.ts +770 -399
- package/polkadot/runtime.d.ts +136 -65
- package/polkadot/tx.d.ts +4268 -2368
- package/polkadot/types.d.ts +1570 -745
- package/polkadotAssetHub/consts.d.ts +154 -15
- package/polkadotAssetHub/errors.d.ts +615 -234
- package/polkadotAssetHub/events.d.ts +829 -270
- package/polkadotAssetHub/index.d.ts +16 -11
- package/polkadotAssetHub/json-rpc.d.ts +89 -0
- package/polkadotAssetHub/query.d.ts +438 -243
- package/polkadotAssetHub/runtime.d.ts +147 -40
- package/polkadotAssetHub/tx.d.ts +3747 -1643
- package/polkadotAssetHub/types.d.ts +2096 -806
- package/rococo/consts.d.ts +51 -32
- package/rococo/errors.d.ts +549 -605
- package/rococo/events.d.ts +447 -238
- package/rococo/index.d.ts +16 -11
- package/rococo/json-rpc.d.ts +103 -0
- package/rococo/query.d.ts +724 -426
- package/rococo/runtime.d.ts +366 -144
- package/rococo/tx.d.ts +6850 -3079
- package/rococo/types.d.ts +5959 -1619
- package/rococoAssetHub/consts.d.ts +92 -7
- package/rococoAssetHub/errors.d.ts +381 -285
- package/rococoAssetHub/events.d.ts +461 -140
- package/rococoAssetHub/index.d.ts +16 -11
- package/rococoAssetHub/json-rpc.d.ts +89 -0
- package/rococoAssetHub/query.d.ts +487 -174
- package/rococoAssetHub/runtime.d.ts +235 -51
- package/rococoAssetHub/tx.d.ts +6005 -2163
- package/rococoAssetHub/types.d.ts +6683 -1003
- package/substrate/consts.d.ts +233 -52
- package/substrate/errors.d.ts +966 -781
- package/substrate/events.d.ts +1226 -381
- package/substrate/index.d.ts +16 -11
- package/substrate/json-rpc.d.ts +103 -0
- package/substrate/query.d.ts +1090 -460
- package/substrate/runtime.d.ts +274 -71
- package/substrate/tx.d.ts +12313 -4510
- package/substrate/types.d.ts +11036 -1432
- package/westend/consts.d.ts +1349 -0
- package/westend/errors.d.ts +2736 -0
- package/westend/events.d.ts +2906 -0
- package/westend/index.d.ts +27 -0
- package/westend/json-rpc.d.ts +103 -0
- package/westend/query.d.ts +3855 -0
- package/westend/runtime.d.ts +1437 -0
- package/westend/tx.d.ts +10248 -0
- package/westend/types.d.ts +14769 -0
- package/westendAssetHub/consts.d.ts +126 -7
- package/westendAssetHub/errors.d.ts +426 -285
- package/westendAssetHub/events.d.ts +498 -140
- package/westendAssetHub/index.d.ts +16 -11
- package/westendAssetHub/json-rpc.d.ts +89 -0
- package/westendAssetHub/query.d.ts +526 -174
- package/westendAssetHub/runtime.d.ts +245 -56
- package/westendAssetHub/tx.d.ts +6196 -2166
- package/westendAssetHub/types.d.ts +6913 -1002
- package/westendPeople/consts.d.ts +434 -0
- package/westendPeople/errors.d.ts +769 -0
- package/westendPeople/events.d.ts +1082 -0
- package/westendPeople/index.d.ts +27 -0
- package/westendPeople/json-rpc.d.ts +89 -0
- package/westendPeople/query.d.ts +1209 -0
- package/westendPeople/runtime.d.ts +636 -0
- package/westendPeople/tx.d.ts +2891 -0
- package/westendPeople/types.d.ts +4984 -0
- package/aleph/rpc.d.ts +0 -727
- package/astar/rpc.d.ts +0 -974
- package/kusama/rpc.d.ts +0 -904
- package/kusamaAssetHub/rpc.d.ts +0 -746
- package/moonbeam/rpc.d.ts +0 -1015
- package/packageInfo.d.ts +0 -4
- package/packageInfo.js +0 -2
- package/packageInfo.ts +0 -3
- package/polkadot/rpc.d.ts +0 -904
- package/polkadotAssetHub/rpc.d.ts +0 -746
- package/rococo/rpc.d.ts +0 -904
- package/rococoAssetHub/rpc.d.ts +0 -746
- package/substrate/rpc.d.ts +0 -894
- package/westendAssetHub/rpc.d.ts +0 -746
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
// Generated by
|
|
1
|
+
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '
|
|
3
|
+
import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
|
|
4
4
|
import type {
|
|
5
|
+
H256,
|
|
5
6
|
RuntimeVersion,
|
|
6
7
|
Header,
|
|
7
8
|
DispatchError,
|
|
8
9
|
Result,
|
|
9
10
|
UncheckedExtrinsicLike,
|
|
10
11
|
UncheckedExtrinsic,
|
|
11
|
-
H256,
|
|
12
12
|
Bytes,
|
|
13
13
|
BytesLike,
|
|
14
14
|
AccountId32Like,
|
|
15
|
-
} from '
|
|
15
|
+
} from 'dedot/codecs';
|
|
16
16
|
import type {
|
|
17
17
|
SpConsensusSlotsSlotDuration,
|
|
18
18
|
SpConsensusAuraEd25519AppEd25519Public,
|
|
19
|
+
SpConsensusSlotsSlot,
|
|
19
20
|
SpRuntimeBlock,
|
|
20
21
|
SpCoreOpaqueMetadata,
|
|
21
22
|
SpRuntimeTransactionValidityTransactionValidityError,
|
|
@@ -28,12 +29,13 @@ import type {
|
|
|
28
29
|
PalletTransactionPaymentFeeDetails,
|
|
29
30
|
SpWeightsWeightV2Weight,
|
|
30
31
|
AssetHubPolkadotRuntimeRuntimeCallLike,
|
|
31
|
-
|
|
32
|
+
XcmVersionedAssets,
|
|
32
33
|
AssetsCommonRuntimeApiFungiblesAccessError,
|
|
33
34
|
CumulusPrimitivesCoreCollationInfo,
|
|
35
|
+
StagingXcmV3MultilocationMultiLocation,
|
|
34
36
|
} from './types';
|
|
35
37
|
|
|
36
|
-
export interface RuntimeApis extends GenericRuntimeApis {
|
|
38
|
+
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
37
39
|
/**
|
|
38
40
|
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
39
41
|
**/
|
|
@@ -45,19 +47,46 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
45
47
|
*
|
|
46
48
|
* @callname: AuraApi_slot_duration
|
|
47
49
|
**/
|
|
48
|
-
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
50
|
+
slotDuration: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusSlotsSlotDuration>>;
|
|
49
51
|
|
|
50
52
|
/**
|
|
51
53
|
* Return the current set of authorities.
|
|
52
54
|
*
|
|
53
55
|
* @callname: AuraApi_authorities
|
|
54
56
|
**/
|
|
55
|
-
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraEd25519AppEd25519Public>>>;
|
|
57
|
+
authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpConsensusAuraEd25519AppEd25519Public>>>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Generic runtime api call
|
|
61
|
+
**/
|
|
62
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
66
|
+
**/
|
|
67
|
+
auraUnincludedSegmentApi: {
|
|
68
|
+
/**
|
|
69
|
+
* Whether it is legal to extend the chain, assuming the given block is the most
|
|
70
|
+
* recently included one as-of the relay parent that will be built against, and
|
|
71
|
+
* the given slot.
|
|
72
|
+
*
|
|
73
|
+
* This should be consistent with the logic the runtime uses when validating blocks to
|
|
74
|
+
* avoid issues.
|
|
75
|
+
*
|
|
76
|
+
* When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block
|
|
77
|
+
* whose state we are querying against, this must always return `true` as long as the slot
|
|
78
|
+
* is more recent than the included block itself.
|
|
79
|
+
*
|
|
80
|
+
* @callname: AuraUnincludedSegmentApi_can_build_upon
|
|
81
|
+
* @param {H256} included_hash
|
|
82
|
+
* @param {SpConsensusSlotsSlot} slot
|
|
83
|
+
**/
|
|
84
|
+
canBuildUpon: GenericRuntimeApiMethod<Rv, (includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
56
85
|
|
|
57
86
|
/**
|
|
58
87
|
* Generic runtime api call
|
|
59
88
|
**/
|
|
60
|
-
[method: string]: GenericRuntimeApiMethod
|
|
89
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
61
90
|
};
|
|
62
91
|
/**
|
|
63
92
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
@@ -68,7 +97,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
68
97
|
*
|
|
69
98
|
* @callname: Core_version
|
|
70
99
|
**/
|
|
71
|
-
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
100
|
+
version: GenericRuntimeApiMethod<Rv, () => Promise<RuntimeVersion>>;
|
|
72
101
|
|
|
73
102
|
/**
|
|
74
103
|
* Execute the given block.
|
|
@@ -76,7 +105,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
76
105
|
* @callname: Core_execute_block
|
|
77
106
|
* @param {SpRuntimeBlock} block
|
|
78
107
|
**/
|
|
79
|
-
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
108
|
+
executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
|
|
80
109
|
|
|
81
110
|
/**
|
|
82
111
|
* Initialize a block with the given header.
|
|
@@ -84,12 +113,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
84
113
|
* @callname: Core_initialize_block
|
|
85
114
|
* @param {Header} header
|
|
86
115
|
**/
|
|
87
|
-
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
116
|
+
initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
|
|
88
117
|
|
|
89
118
|
/**
|
|
90
119
|
* Generic runtime api call
|
|
91
120
|
**/
|
|
92
|
-
[method: string]: GenericRuntimeApiMethod
|
|
121
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
93
122
|
};
|
|
94
123
|
/**
|
|
95
124
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -100,7 +129,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
100
129
|
*
|
|
101
130
|
* @callname: Metadata_metadata
|
|
102
131
|
**/
|
|
103
|
-
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
132
|
+
metadata: GenericRuntimeApiMethod<Rv, () => Promise<SpCoreOpaqueMetadata>>;
|
|
104
133
|
|
|
105
134
|
/**
|
|
106
135
|
* Returns the metadata at a given version.
|
|
@@ -111,7 +140,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
111
140
|
* @callname: Metadata_metadata_at_version
|
|
112
141
|
* @param {number} version
|
|
113
142
|
**/
|
|
114
|
-
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
143
|
+
metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
115
144
|
|
|
116
145
|
/**
|
|
117
146
|
* Returns the supported metadata versions.
|
|
@@ -120,12 +149,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
120
149
|
*
|
|
121
150
|
* @callname: Metadata_metadata_versions
|
|
122
151
|
**/
|
|
123
|
-
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
152
|
+
metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
|
|
124
153
|
|
|
125
154
|
/**
|
|
126
155
|
* Generic runtime api call
|
|
127
156
|
**/
|
|
128
|
-
[method: string]: GenericRuntimeApiMethod
|
|
157
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
129
158
|
};
|
|
130
159
|
/**
|
|
131
160
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -141,6 +170,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
141
170
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
142
171
|
**/
|
|
143
172
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
173
|
+
Rv,
|
|
144
174
|
(
|
|
145
175
|
extrinsic: UncheckedExtrinsicLike,
|
|
146
176
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -151,7 +181,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
151
181
|
*
|
|
152
182
|
* @callname: BlockBuilder_finalize_block
|
|
153
183
|
**/
|
|
154
|
-
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
184
|
+
finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
|
|
155
185
|
|
|
156
186
|
/**
|
|
157
187
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -160,6 +190,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
160
190
|
* @param {SpInherentsInherentData} inherent
|
|
161
191
|
**/
|
|
162
192
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
193
|
+
Rv,
|
|
163
194
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
164
195
|
>;
|
|
165
196
|
|
|
@@ -171,13 +202,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
171
202
|
* @param {SpInherentsInherentData} data
|
|
172
203
|
**/
|
|
173
204
|
checkInherents: GenericRuntimeApiMethod<
|
|
205
|
+
Rv,
|
|
174
206
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
175
207
|
>;
|
|
176
208
|
|
|
177
209
|
/**
|
|
178
210
|
* Generic runtime api call
|
|
179
211
|
**/
|
|
180
|
-
[method: string]: GenericRuntimeApiMethod
|
|
212
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
181
213
|
};
|
|
182
214
|
/**
|
|
183
215
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -200,6 +232,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
200
232
|
* @param {H256} block_hash
|
|
201
233
|
**/
|
|
202
234
|
validateTransaction: GenericRuntimeApiMethod<
|
|
235
|
+
Rv,
|
|
203
236
|
(
|
|
204
237
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
205
238
|
tx: UncheckedExtrinsicLike,
|
|
@@ -212,7 +245,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
212
245
|
/**
|
|
213
246
|
* Generic runtime api call
|
|
214
247
|
**/
|
|
215
|
-
[method: string]: GenericRuntimeApiMethod
|
|
248
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
216
249
|
};
|
|
217
250
|
/**
|
|
218
251
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -224,12 +257,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
224
257
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
225
258
|
* @param {Header} header
|
|
226
259
|
**/
|
|
227
|
-
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
260
|
+
offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
|
|
228
261
|
|
|
229
262
|
/**
|
|
230
263
|
* Generic runtime api call
|
|
231
264
|
**/
|
|
232
|
-
[method: string]: GenericRuntimeApiMethod
|
|
265
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
233
266
|
};
|
|
234
267
|
/**
|
|
235
268
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -247,7 +280,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
247
280
|
* @callname: SessionKeys_generate_session_keys
|
|
248
281
|
* @param {BytesLike | undefined} seed
|
|
249
282
|
**/
|
|
250
|
-
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
283
|
+
generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
251
284
|
|
|
252
285
|
/**
|
|
253
286
|
* Decode the given public session keys.
|
|
@@ -258,13 +291,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
258
291
|
* @param {BytesLike} encoded
|
|
259
292
|
**/
|
|
260
293
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
294
|
+
Rv,
|
|
261
295
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
262
296
|
>;
|
|
263
297
|
|
|
264
298
|
/**
|
|
265
299
|
* Generic runtime api call
|
|
266
300
|
**/
|
|
267
|
-
[method: string]: GenericRuntimeApiMethod
|
|
301
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
268
302
|
};
|
|
269
303
|
/**
|
|
270
304
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -276,12 +310,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
276
310
|
* @callname: AccountNonceApi_account_nonce
|
|
277
311
|
* @param {AccountId32Like} account
|
|
278
312
|
**/
|
|
279
|
-
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
313
|
+
accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
|
|
280
314
|
|
|
281
315
|
/**
|
|
282
316
|
* Generic runtime api call
|
|
283
317
|
**/
|
|
284
|
-
[method: string]: GenericRuntimeApiMethod
|
|
318
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
285
319
|
};
|
|
286
320
|
/**
|
|
287
321
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -294,6 +328,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
294
328
|
* @param {number} len
|
|
295
329
|
**/
|
|
296
330
|
queryInfo: GenericRuntimeApiMethod<
|
|
331
|
+
Rv,
|
|
297
332
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
298
333
|
>;
|
|
299
334
|
|
|
@@ -304,6 +339,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
304
339
|
* @param {number} len
|
|
305
340
|
**/
|
|
306
341
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
342
|
+
Rv,
|
|
307
343
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
308
344
|
>;
|
|
309
345
|
|
|
@@ -312,19 +348,19 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
312
348
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
313
349
|
* @param {SpWeightsWeightV2Weight} weight
|
|
314
350
|
**/
|
|
315
|
-
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
351
|
+
queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
316
352
|
|
|
317
353
|
/**
|
|
318
354
|
*
|
|
319
355
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
320
356
|
* @param {number} length
|
|
321
357
|
**/
|
|
322
|
-
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
358
|
+
queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
|
|
323
359
|
|
|
324
360
|
/**
|
|
325
361
|
* Generic runtime api call
|
|
326
362
|
**/
|
|
327
|
-
[method: string]: GenericRuntimeApiMethod
|
|
363
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
328
364
|
};
|
|
329
365
|
/**
|
|
330
366
|
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
@@ -338,6 +374,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
338
374
|
* @param {number} len
|
|
339
375
|
**/
|
|
340
376
|
queryCallInfo: GenericRuntimeApiMethod<
|
|
377
|
+
Rv,
|
|
341
378
|
(
|
|
342
379
|
call: AssetHubPolkadotRuntimeRuntimeCallLike,
|
|
343
380
|
len: number,
|
|
@@ -352,6 +389,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
352
389
|
* @param {number} len
|
|
353
390
|
**/
|
|
354
391
|
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
392
|
+
Rv,
|
|
355
393
|
(call: AssetHubPolkadotRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
356
394
|
>;
|
|
357
395
|
|
|
@@ -361,7 +399,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
361
399
|
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
362
400
|
* @param {SpWeightsWeightV2Weight} weight
|
|
363
401
|
**/
|
|
364
|
-
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
402
|
+
queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
365
403
|
|
|
366
404
|
/**
|
|
367
405
|
* Query the output of the current `LengthToFee` given some input.
|
|
@@ -369,31 +407,32 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
369
407
|
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
370
408
|
* @param {number} length
|
|
371
409
|
**/
|
|
372
|
-
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
410
|
+
queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
|
|
373
411
|
|
|
374
412
|
/**
|
|
375
413
|
* Generic runtime api call
|
|
376
414
|
**/
|
|
377
|
-
[method: string]: GenericRuntimeApiMethod
|
|
415
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
378
416
|
};
|
|
379
417
|
/**
|
|
380
418
|
* @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
|
|
381
419
|
**/
|
|
382
420
|
fungiblesApi: {
|
|
383
421
|
/**
|
|
384
|
-
* Returns the list of all [`
|
|
422
|
+
* Returns the list of all [`Asset`] that an `AccountId` has.
|
|
385
423
|
*
|
|
386
424
|
* @callname: FungiblesApi_query_account_balances
|
|
387
425
|
* @param {AccountId32Like} account
|
|
388
426
|
**/
|
|
389
427
|
queryAccountBalances: GenericRuntimeApiMethod<
|
|
390
|
-
|
|
428
|
+
Rv,
|
|
429
|
+
(account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
|
|
391
430
|
>;
|
|
392
431
|
|
|
393
432
|
/**
|
|
394
433
|
* Generic runtime api call
|
|
395
434
|
**/
|
|
396
|
-
[method: string]: GenericRuntimeApiMethod
|
|
435
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
397
436
|
};
|
|
398
437
|
/**
|
|
399
438
|
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
@@ -408,12 +447,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
408
447
|
* @callname: CollectCollationInfo_collect_collation_info
|
|
409
448
|
* @param {Header} header
|
|
410
449
|
**/
|
|
411
|
-
collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
450
|
+
collectCollationInfo: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
412
451
|
|
|
413
452
|
/**
|
|
414
453
|
* Generic runtime api call
|
|
415
454
|
**/
|
|
416
|
-
[method: string]: GenericRuntimeApiMethod
|
|
455
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
417
456
|
};
|
|
418
457
|
/**
|
|
419
458
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -427,7 +466,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
427
466
|
*
|
|
428
467
|
* @callname: GenesisBuilder_create_default_config
|
|
429
468
|
**/
|
|
430
|
-
createDefaultConfig: GenericRuntimeApiMethod<() => Promise<Bytes>>;
|
|
469
|
+
createDefaultConfig: GenericRuntimeApiMethod<Rv, () => Promise<Bytes>>;
|
|
431
470
|
|
|
432
471
|
/**
|
|
433
472
|
* Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
|
@@ -441,11 +480,79 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
441
480
|
* @callname: GenesisBuilder_build_config
|
|
442
481
|
* @param {BytesLike} json
|
|
443
482
|
**/
|
|
444
|
-
buildConfig: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
483
|
+
buildConfig: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Generic runtime api call
|
|
487
|
+
**/
|
|
488
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
* @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
|
|
492
|
+
**/
|
|
493
|
+
assetConversionApi: {
|
|
494
|
+
/**
|
|
495
|
+
* Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
|
|
496
|
+
*
|
|
497
|
+
* Note that the price may have changed by the time the transaction is executed.
|
|
498
|
+
* (Use `amount_in_max` to control slippage.)
|
|
499
|
+
*
|
|
500
|
+
* @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
|
|
501
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset1
|
|
502
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset2
|
|
503
|
+
* @param {bigint} amount
|
|
504
|
+
* @param {boolean} include_fee
|
|
505
|
+
**/
|
|
506
|
+
quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
|
|
507
|
+
Rv,
|
|
508
|
+
(
|
|
509
|
+
asset1: StagingXcmV3MultilocationMultiLocation,
|
|
510
|
+
asset2: StagingXcmV3MultilocationMultiLocation,
|
|
511
|
+
amount: bigint,
|
|
512
|
+
includeFee: boolean,
|
|
513
|
+
) => Promise<bigint | undefined>
|
|
514
|
+
>;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
|
|
518
|
+
*
|
|
519
|
+
* Note that the price may have changed by the time the transaction is executed.
|
|
520
|
+
* (Use `amount_out_min` to control slippage.)
|
|
521
|
+
*
|
|
522
|
+
* @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
|
|
523
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset1
|
|
524
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset2
|
|
525
|
+
* @param {bigint} amount
|
|
526
|
+
* @param {boolean} include_fee
|
|
527
|
+
**/
|
|
528
|
+
quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
|
|
529
|
+
Rv,
|
|
530
|
+
(
|
|
531
|
+
asset1: StagingXcmV3MultilocationMultiLocation,
|
|
532
|
+
asset2: StagingXcmV3MultilocationMultiLocation,
|
|
533
|
+
amount: bigint,
|
|
534
|
+
includeFee: boolean,
|
|
535
|
+
) => Promise<bigint | undefined>
|
|
536
|
+
>;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Returns the size of the liquidity pool for the given asset pair.
|
|
540
|
+
*
|
|
541
|
+
* @callname: AssetConversionApi_get_reserves
|
|
542
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset1
|
|
543
|
+
* @param {StagingXcmV3MultilocationMultiLocation} asset2
|
|
544
|
+
**/
|
|
545
|
+
getReserves: GenericRuntimeApiMethod<
|
|
546
|
+
Rv,
|
|
547
|
+
(
|
|
548
|
+
asset1: StagingXcmV3MultilocationMultiLocation,
|
|
549
|
+
asset2: StagingXcmV3MultilocationMultiLocation,
|
|
550
|
+
) => Promise<[bigint, bigint] | undefined>
|
|
551
|
+
>;
|
|
445
552
|
|
|
446
553
|
/**
|
|
447
554
|
* Generic runtime api call
|
|
448
555
|
**/
|
|
449
|
-
[method: string]: GenericRuntimeApiMethod
|
|
556
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
450
557
|
};
|
|
451
558
|
}
|