@dedot/chaintypes 0.248.0 → 0.250.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 (45) hide show
  1. package/package.json +2 -2
  2. package/paseo/errors.d.ts +5 -0
  3. package/paseo/events.d.ts +94 -16
  4. package/paseo/index.d.ts +1 -1
  5. package/paseo/json-rpc.d.ts +1 -0
  6. package/paseo/query.d.ts +85 -46
  7. package/paseo/runtime.d.ts +90 -79
  8. package/paseo/tx.d.ts +81 -32
  9. package/paseo/types.d.ts +278 -209
  10. package/paseo-asset-hub/consts.d.ts +87 -0
  11. package/paseo-asset-hub/errors.d.ts +170 -0
  12. package/paseo-asset-hub/events.d.ts +359 -6
  13. package/paseo-asset-hub/index.d.ts +3 -1
  14. package/paseo-asset-hub/json-rpc.d.ts +1 -0
  15. package/paseo-asset-hub/query.d.ts +261 -17
  16. package/paseo-asset-hub/runtime.d.ts +11 -6
  17. package/paseo-asset-hub/tx.d.ts +729 -1
  18. package/paseo-asset-hub/types.d.ts +1426 -155
  19. package/paseo-asset-hub/view-functions.d.ts +195 -2
  20. package/paseo-people/errors.d.ts +5 -0
  21. package/paseo-people/events.d.ts +78 -2
  22. package/paseo-people/index.d.ts +1 -1
  23. package/paseo-people/query.d.ts +44 -16
  24. package/paseo-people/runtime.d.ts +9 -5
  25. package/paseo-people/tx.d.ts +30 -0
  26. package/paseo-people/types.d.ts +107 -25
  27. package/paseo-people/view-functions.d.ts +46 -1
  28. package/polkadot-asset-hub/consts.d.ts +87 -0
  29. package/polkadot-asset-hub/errors.d.ts +170 -0
  30. package/polkadot-asset-hub/events.d.ts +359 -6
  31. package/polkadot-asset-hub/index.d.ts +3 -1
  32. package/polkadot-asset-hub/query.d.ts +261 -17
  33. package/polkadot-asset-hub/runtime.d.ts +11 -6
  34. package/polkadot-asset-hub/tx.d.ts +729 -1
  35. package/polkadot-asset-hub/types.d.ts +1426 -155
  36. package/polkadot-asset-hub/view-functions.d.ts +195 -2
  37. package/polkadot-people/consts.d.ts +75 -0
  38. package/polkadot-people/errors.d.ts +170 -0
  39. package/polkadot-people/events.d.ts +377 -3
  40. package/polkadot-people/index.d.ts +5 -4
  41. package/polkadot-people/query.d.ts +169 -16
  42. package/polkadot-people/runtime.d.ts +9 -5
  43. package/polkadot-people/tx.d.ts +1316 -2
  44. package/polkadot-people/types.d.ts +1857 -182
  45. package/polkadot-people/view-functions.d.ts +46 -1
@@ -1,8 +1,16 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainViewFunctions, GenericViewFunction } from 'dedot/types';
4
- import type { AccountId32Like } from 'dedot/codecs';
5
- import type { AssetHubPolkadotRuntimeRuntimeCallLike, AssetHubPolkadotRuntimeProxyType } from './types.js';
4
+ import type { AccountId32Like, Result } from 'dedot/codecs';
5
+ import type {
6
+ AssetHubPolkadotRuntimeRuntimeCallLike,
7
+ AssetHubPolkadotRuntimeProxyType,
8
+ PalletAssetsAssetDetails,
9
+ PalletAssetsAssetMetadata,
10
+ StagingXcmV5Location,
11
+ AssetsCommonLocalAndForeignAssetsForeignAssetReserveData,
12
+ PalletAssetConversionError,
13
+ } from './types.js';
6
14
 
7
15
  export interface ChainViewFunctions extends GenericChainViewFunctions {
8
16
  /**
@@ -34,6 +42,191 @@ export interface ChainViewFunctions extends GenericChainViewFunctions {
34
42
  **/
35
43
  [name: string]: GenericViewFunction;
36
44
  };
45
+ /**
46
+ * Pallet `Assets`'s view functions
47
+ **/
48
+ assets: {
49
+ /**
50
+ * Provide the asset details for asset `id`.
51
+ *
52
+ * @param {number} id
53
+ **/
54
+ assetDetails: GenericViewFunction<(id: number) => Promise<PalletAssetsAssetDetails | undefined>>;
55
+
56
+ /**
57
+ * Provide the balance of `who` for asset `id`.
58
+ *
59
+ * @param {AccountId32Like} who
60
+ * @param {number} id
61
+ **/
62
+ balanceOf: GenericViewFunction<(who: AccountId32Like, id: number) => Promise<bigint | undefined>>;
63
+
64
+ /**
65
+ * Provide the configured metadata for asset `id`.
66
+ *
67
+ * @param {number} id
68
+ **/
69
+ getMetadata: GenericViewFunction<(id: number) => Promise<PalletAssetsAssetMetadata | undefined>>;
70
+
71
+ /**
72
+ * Provide the configured reserves data for asset `id`.
73
+ *
74
+ * @param {number} id
75
+ **/
76
+ getReservesData: GenericViewFunction<(id: number) => Promise<Array<[]>>>;
77
+
78
+ /**
79
+ * Generic pallet view function
80
+ **/
81
+ [name: string]: GenericViewFunction;
82
+ };
83
+ /**
84
+ * Pallet `ForeignAssets`'s view functions
85
+ **/
86
+ foreignAssets: {
87
+ /**
88
+ * Provide the asset details for asset `id`.
89
+ *
90
+ * @param {StagingXcmV5Location} id
91
+ **/
92
+ assetDetails: GenericViewFunction<(id: StagingXcmV5Location) => Promise<PalletAssetsAssetDetails | undefined>>;
93
+
94
+ /**
95
+ * Provide the balance of `who` for asset `id`.
96
+ *
97
+ * @param {AccountId32Like} who
98
+ * @param {StagingXcmV5Location} id
99
+ **/
100
+ balanceOf: GenericViewFunction<(who: AccountId32Like, id: StagingXcmV5Location) => Promise<bigint | undefined>>;
101
+
102
+ /**
103
+ * Provide the configured metadata for asset `id`.
104
+ *
105
+ * @param {StagingXcmV5Location} id
106
+ **/
107
+ getMetadata: GenericViewFunction<(id: StagingXcmV5Location) => Promise<PalletAssetsAssetMetadata | undefined>>;
108
+
109
+ /**
110
+ * Provide the configured reserves data for asset `id`.
111
+ *
112
+ * @param {StagingXcmV5Location} id
113
+ **/
114
+ getReservesData: GenericViewFunction<
115
+ (id: StagingXcmV5Location) => Promise<Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>>
116
+ >;
117
+
118
+ /**
119
+ * Generic pallet view function
120
+ **/
121
+ [name: string]: GenericViewFunction;
122
+ };
123
+ /**
124
+ * Pallet `PoolAssets`'s view functions
125
+ **/
126
+ poolAssets: {
127
+ /**
128
+ * Provide the asset details for asset `id`.
129
+ *
130
+ * @param {number} id
131
+ **/
132
+ assetDetails: GenericViewFunction<(id: number) => Promise<PalletAssetsAssetDetails | undefined>>;
133
+
134
+ /**
135
+ * Provide the balance of `who` for asset `id`.
136
+ *
137
+ * @param {AccountId32Like} who
138
+ * @param {number} id
139
+ **/
140
+ balanceOf: GenericViewFunction<(who: AccountId32Like, id: number) => Promise<bigint | undefined>>;
141
+
142
+ /**
143
+ * Provide the configured metadata for asset `id`.
144
+ *
145
+ * @param {number} id
146
+ **/
147
+ getMetadata: GenericViewFunction<(id: number) => Promise<PalletAssetsAssetMetadata | undefined>>;
148
+
149
+ /**
150
+ * Provide the configured reserves data for asset `id`.
151
+ *
152
+ * @param {number} id
153
+ **/
154
+ getReservesData: GenericViewFunction<(id: number) => Promise<Array<[]>>>;
155
+
156
+ /**
157
+ * Generic pallet view function
158
+ **/
159
+ [name: string]: GenericViewFunction;
160
+ };
161
+ /**
162
+ * Pallet `AssetConversion`'s view functions
163
+ **/
164
+ assetConversion: {
165
+ /**
166
+ * Returns the balance of each asset in the pool.
167
+ * The tuple result is in the order requested (not necessarily the same as pool order).
168
+ *
169
+ * @param {StagingXcmV5Location} asset1
170
+ * @param {StagingXcmV5Location} asset2
171
+ **/
172
+ getReserves: GenericViewFunction<
173
+ (
174
+ asset1: StagingXcmV5Location,
175
+ asset2: StagingXcmV5Location,
176
+ ) => Promise<Result<[bigint, bigint], PalletAssetConversionError>>
177
+ >;
178
+
179
+ /**
180
+ * Gets a quote for swapping an exact amount of `asset1` for `asset2`.
181
+ *
182
+ * If `include_fee` is true, the quote will include the liquidity provider fee.
183
+ * If the pool does not exist or has no liquidity, `None` is returned.
184
+ * Note that the price may have changed by the time the transaction is executed.
185
+ * (Use `amount_out_min` to control slippage.)
186
+ * Returns `Some(quoted_amount)` on success.
187
+ *
188
+ * @param {StagingXcmV5Location} asset1
189
+ * @param {StagingXcmV5Location} asset2
190
+ * @param {bigint} amount
191
+ * @param {boolean} includeFee
192
+ **/
193
+ quotePriceExactTokensForTokens: GenericViewFunction<
194
+ (
195
+ asset1: StagingXcmV5Location,
196
+ asset2: StagingXcmV5Location,
197
+ amount: bigint,
198
+ includeFee: boolean,
199
+ ) => Promise<bigint | undefined>
200
+ >;
201
+
202
+ /**
203
+ * Gets a quote for swapping `amount` of `asset1` for an exact amount of `asset2`.
204
+ *
205
+ * If `include_fee` is true, the quote will include the liquidity provider fee.
206
+ * If the pool does not exist or has no liquidity, `None` is returned.
207
+ * Note that the price may have changed by the time the transaction is executed.
208
+ * (Use `amount_in_max` to control slippage.)
209
+ * Returns `Some(quoted_amount)` on success.
210
+ *
211
+ * @param {StagingXcmV5Location} asset1
212
+ * @param {StagingXcmV5Location} asset2
213
+ * @param {bigint} amount
214
+ * @param {boolean} includeFee
215
+ **/
216
+ quotePriceTokensForExactTokens: GenericViewFunction<
217
+ (
218
+ asset1: StagingXcmV5Location,
219
+ asset2: StagingXcmV5Location,
220
+ amount: bigint,
221
+ includeFee: boolean,
222
+ ) => Promise<bigint | undefined>
223
+ >;
224
+
225
+ /**
226
+ * Generic pallet view function
227
+ **/
228
+ [name: string]: GenericViewFunction;
229
+ };
37
230
  /**
38
231
  * Pallet `VoterList`'s view functions
39
232
  **/
@@ -306,6 +306,11 @@ export interface ChainErrors extends GenericChainErrors {
306
306
  **/
307
307
  ContainsHolds: GenericPalletError;
308
308
 
309
+ /**
310
+ * Tried setting too many reserves.
311
+ **/
312
+ TooManyReserves: GenericPalletError;
313
+
309
314
  /**
310
315
  * Generic pallet error
311
316
  **/
@@ -6,9 +6,9 @@ import type {
6
6
  FrameSystemDispatchEventInfo,
7
7
  SpWeightsWeightV2Weight,
8
8
  FrameSupportTokensMiscBalanceStatus,
9
+ PeoplePaseoRuntimeRuntimeHoldReason,
9
10
  PalletBalancesUnexpectedKind,
10
11
  StagingXcmV5Location,
11
- PeoplePaseoRuntimeRuntimeHoldReason,
12
12
  StagingXcmV5TraitsOutcome,
13
13
  StagingXcmV5Xcm,
14
14
  XcmV3TraitsSendError,
@@ -327,11 +327,21 @@ export interface ChainEvents extends GenericChainEvents {
327
327
  **/
328
328
  Minted: GenericPalletEvent<'Balances', 'Minted', { who: AccountId32; amount: bigint }>;
329
329
 
330
+ /**
331
+ * Some credit was balanced and added to the TotalIssuance.
332
+ **/
333
+ MintedCredit: GenericPalletEvent<'Balances', 'MintedCredit', { amount: bigint }>;
334
+
330
335
  /**
331
336
  * Some amount was burned from an account.
332
337
  **/
333
338
  Burned: GenericPalletEvent<'Balances', 'Burned', { who: AccountId32; amount: bigint }>;
334
339
 
340
+ /**
341
+ * Some debt has been dropped from the Total Issuance.
342
+ **/
343
+ BurnedDebt: GenericPalletEvent<'Balances', 'BurnedDebt', { amount: bigint }>;
344
+
335
345
  /**
336
346
  * Some amount was suspended from an account (it can be restored later).
337
347
  **/
@@ -382,6 +392,51 @@ export interface ChainEvents extends GenericChainEvents {
382
392
  **/
383
393
  TotalIssuanceForced: GenericPalletEvent<'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
384
394
 
395
+ /**
396
+ * Some balance was placed on hold.
397
+ **/
398
+ Held: GenericPalletEvent<
399
+ 'Balances',
400
+ 'Held',
401
+ { reason: PeoplePaseoRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
402
+ >;
403
+
404
+ /**
405
+ * Held balance was burned from an account.
406
+ **/
407
+ BurnedHeld: GenericPalletEvent<
408
+ 'Balances',
409
+ 'BurnedHeld',
410
+ { reason: PeoplePaseoRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
411
+ >;
412
+
413
+ /**
414
+ * A transfer of `amount` on hold from `source` to `dest` was initiated.
415
+ **/
416
+ TransferOnHold: GenericPalletEvent<
417
+ 'Balances',
418
+ 'TransferOnHold',
419
+ { reason: PeoplePaseoRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; amount: bigint }
420
+ >;
421
+
422
+ /**
423
+ * The `transferred` balance is placed on hold at the `dest` account.
424
+ **/
425
+ TransferAndHold: GenericPalletEvent<
426
+ 'Balances',
427
+ 'TransferAndHold',
428
+ { reason: PeoplePaseoRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; transferred: bigint }
429
+ >;
430
+
431
+ /**
432
+ * Some balance was released from hold.
433
+ **/
434
+ Released: GenericPalletEvent<
435
+ 'Balances',
436
+ 'Released',
437
+ { reason: PeoplePaseoRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
438
+ >;
439
+
385
440
  /**
386
441
  * An unexpected/defensive event was triggered.
387
442
  **/
@@ -612,6 +667,20 @@ export interface ChainEvents extends GenericChainEvents {
612
667
  { assetId: StagingXcmV5Location; who: AccountId32; amount: bigint }
613
668
  >;
614
669
 
670
+ /**
671
+ * Reserve information was set or updated for `asset_id`.
672
+ **/
673
+ ReservesUpdated: GenericPalletEvent<
674
+ 'Assets',
675
+ 'ReservesUpdated',
676
+ { assetId: StagingXcmV5Location; reserves: Array<[]> }
677
+ >;
678
+
679
+ /**
680
+ * Reserve information was removed for `asset_id`.
681
+ **/
682
+ ReservesRemoved: GenericPalletEvent<'Assets', 'ReservesRemoved', { assetId: StagingXcmV5Location }>;
683
+
615
684
  /**
616
685
  * Generic pallet event
617
686
  **/
@@ -1405,7 +1474,14 @@ export interface ChainEvents extends GenericChainEvents {
1405
1474
  PureCreated: GenericPalletEvent<
1406
1475
  'Proxy',
1407
1476
  'PureCreated',
1408
- { pure: AccountId32; who: AccountId32; proxyType: PeoplePaseoRuntimeProxyType; disambiguationIndex: number }
1477
+ {
1478
+ pure: AccountId32;
1479
+ who: AccountId32;
1480
+ proxyType: PeoplePaseoRuntimeProxyType;
1481
+ disambiguationIndex: number;
1482
+ at: number;
1483
+ extrinsicIndex: number;
1484
+ }
1409
1485
  >;
1410
1486
 
1411
1487
  /**
@@ -50,7 +50,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
50
50
 
51
51
  /**
52
52
  * @name: PaseoPeopleApi
53
- * @specVersion: 2000006
53
+ * @specVersion: 2001000
54
54
  **/
55
55
  export interface PaseoPeopleApi extends GenericSubstrateApi {
56
56
  rpc: ChainJsonRpcApis;
@@ -22,12 +22,12 @@ import type {
22
22
  SpWeightsWeightV2Weight,
23
23
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
24
24
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
25
- PolkadotPrimitivesV8PersistedValidationData,
26
- PolkadotPrimitivesV8UpgradeRestriction,
27
- PolkadotPrimitivesV8UpgradeGoAhead,
25
+ PolkadotPrimitivesV9PersistedValidationData,
26
+ PolkadotPrimitivesV9UpgradeRestriction,
27
+ PolkadotPrimitivesV9UpgradeGoAhead,
28
28
  SpTrieStorageProof,
29
29
  CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
30
- PolkadotPrimitivesV8AbridgedHostConfiguration,
30
+ PolkadotPrimitivesV9AbridgedHostConfiguration,
31
31
  CumulusPrimitivesParachainInherentMessageQueueChain,
32
32
  PolkadotParachainPrimitivesPrimitivesId,
33
33
  CumulusPalletParachainSystemParachainInherentInboundMessageId,
@@ -294,12 +294,12 @@ export interface ChainStorage extends GenericChainStorage {
294
294
 
295
295
  /**
296
296
  * The [`PersistedValidationData`] set for this block.
297
- * This value is expected to be set only once per block and it's never stored
298
- * in the trie.
299
297
  *
300
- * @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
298
+ * This value is expected to be set only once by the [`Pallet::set_validation_data`] inherent.
299
+ *
300
+ * @param {Callback<PolkadotPrimitivesV9PersistedValidationData | undefined> =} callback
301
301
  **/
302
- validationData: GenericStorageQuery<() => PolkadotPrimitivesV8PersistedValidationData | undefined>;
302
+ validationData: GenericStorageQuery<() => PolkadotPrimitivesV9PersistedValidationData | undefined>;
303
303
 
304
304
  /**
305
305
  * Were the validation data set to notify the relay chain?
@@ -326,9 +326,9 @@ export interface ChainStorage extends GenericChainStorage {
326
326
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
327
327
  * set after the inherent.
328
328
  *
329
- * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
329
+ * @param {Callback<PolkadotPrimitivesV9UpgradeRestriction | undefined> =} callback
330
330
  **/
331
- upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
331
+ upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeRestriction | undefined>;
332
332
 
333
333
  /**
334
334
  * Optional upgrade go-ahead signal from the relay-chain.
@@ -337,9 +337,9 @@ export interface ChainStorage extends GenericChainStorage {
337
337
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
338
338
  * set after the inherent.
339
339
  *
340
- * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
340
+ * @param {Callback<PolkadotPrimitivesV9UpgradeGoAhead | undefined> =} callback
341
341
  **/
342
- upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
342
+ upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeGoAhead | undefined>;
343
343
 
344
344
  /**
345
345
  * The state proof for the last relay parent block.
@@ -376,9 +376,9 @@ export interface ChainStorage extends GenericChainStorage {
376
376
  *
377
377
  * This data is also absent from the genesis.
378
378
  *
379
- * @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
379
+ * @param {Callback<PolkadotPrimitivesV9AbridgedHostConfiguration | undefined> =} callback
380
380
  **/
381
- hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
381
+ hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV9AbridgedHostConfiguration | undefined>;
382
382
 
383
383
  /**
384
384
  * The last downward message queue chain head we have observed.
@@ -452,19 +452,28 @@ export interface ChainStorage extends GenericChainStorage {
452
452
  /**
453
453
  * Upward messages that were sent in a block.
454
454
  *
455
- * This will be cleared in `on_initialize` of each new block.
455
+ * This will be cleared in `on_initialize` for each new block.
456
456
  *
457
457
  * @param {Callback<Array<Bytes>> =} callback
458
458
  **/
459
459
  upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
460
460
 
461
461
  /**
462
- * Upward messages that are still pending and not yet send to the relay chain.
462
+ * Upward messages that are still pending and not yet sent to the relay chain.
463
463
  *
464
464
  * @param {Callback<Array<Bytes>> =} callback
465
465
  **/
466
466
  pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
467
467
 
468
+ /**
469
+ * Upward signals that are still pending and not yet sent to the relay chain.
470
+ *
471
+ * This will be cleared in `on_finalize` for each block.
472
+ *
473
+ * @param {Callback<Array<Bytes>> =} callback
474
+ **/
475
+ pendingUpwardSignals: GenericStorageQuery<() => Array<Bytes>>;
476
+
468
477
  /**
469
478
  * The factor to multiply the base delivery fee by for UMP.
470
479
  *
@@ -748,6 +757,14 @@ export interface ChainStorage extends GenericChainStorage {
748
757
  **/
749
758
  metadata: GenericStorageQuery<(arg: StagingXcmV5Location) => PalletAssetsAssetMetadata, StagingXcmV5Location>;
750
759
 
760
+ /**
761
+ * Maps an asset to a list of its configured reserve information.
762
+ *
763
+ * @param {StagingXcmV5Location} arg
764
+ * @param {Callback<Array<[]>> =} callback
765
+ **/
766
+ reserves: GenericStorageQuery<(arg: StagingXcmV5Location) => Array<[]>, StagingXcmV5Location>;
767
+
751
768
  /**
752
769
  * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
753
770
  * item has no effect.
@@ -954,6 +971,17 @@ export interface ChainStorage extends GenericChainStorage {
954
971
  [SpCoreCryptoKeyTypeId, Bytes]
955
972
  >;
956
973
 
974
+ /**
975
+ * Accounts whose keys were set via `SessionInterface` (external path) without
976
+ * incrementing the consumer reference or placing a key deposit. `do_purge_keys`
977
+ * only decrements consumers for accounts that were registered through the local
978
+ * session pallet.
979
+ *
980
+ * @param {AccountId32Like} arg
981
+ * @param {Callback<[] | undefined> =} callback
982
+ **/
983
+ externallySetKeys: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
984
+
957
985
  /**
958
986
  * Generic pallet storage query
959
987
  **/
@@ -18,7 +18,7 @@ import type {
18
18
  SpConsensusSlotsSlotDuration,
19
19
  SpConsensusAuraSr25519AppSr25519Public,
20
20
  SpConsensusSlotsSlot,
21
- SpRuntimeBlock,
21
+ SpRuntimeBlockLazyBlock,
22
22
  SpRuntimeExtrinsicInclusionMode,
23
23
  SpCoreOpaqueMetadata,
24
24
  SpRuntimeTransactionValidityTransactionValidityError,
@@ -135,9 +135,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
135
135
  * Execute the given block.
136
136
  *
137
137
  * @callname: Core_execute_block
138
- * @param {SpRuntimeBlock} block
138
+ * @param {SpRuntimeBlockLazyBlock} block
139
139
  **/
140
- executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
140
+ executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlockLazyBlock) => Promise<[]>>;
141
141
 
142
142
  /**
143
143
  * Initialize a block with the given header and return the runtime executive mode.
@@ -228,11 +228,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
228
228
  * Check that the inherents are valid. The inherent data will vary from chain to chain.
229
229
  *
230
230
  * @callname: BlockBuilder_check_inherents
231
- * @param {SpRuntimeBlock} block
231
+ * @param {SpRuntimeBlockLazyBlock} block
232
232
  * @param {SpInherentsInherentData} data
233
233
  **/
234
234
  checkInherents: GenericRuntimeApiMethod<
235
- (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
235
+ (block: SpRuntimeBlockLazyBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
236
236
  >;
237
237
 
238
238
  /**
@@ -506,6 +506,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
506
506
  >;
507
507
 
508
508
  /**
509
+ * Query delivery fees V2.
510
+ *
509
511
  * Get delivery fees for sending a specific `message` to a `destination`.
510
512
  * These always come in a specific asset, defined by the chain.
511
513
  *
@@ -518,11 +520,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
518
520
  * @callname: XcmPaymentApi_query_delivery_fees
519
521
  * @param {XcmVersionedLocation} destination
520
522
  * @param {XcmVersionedXcm} message
523
+ * @param {XcmVersionedAssetId} asset_id
521
524
  **/
522
525
  queryDeliveryFees: GenericRuntimeApiMethod<
523
526
  (
524
527
  destination: XcmVersionedLocation,
525
528
  message: XcmVersionedXcm,
529
+ assetId: XcmVersionedAssetId,
526
530
  ) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
527
531
  >;
528
532
 
@@ -1950,6 +1950,36 @@ export interface ChainTx<
1950
1950
  >
1951
1951
  >;
1952
1952
 
1953
+ /**
1954
+ * Sets the trusted reserve information of an asset.
1955
+ *
1956
+ * Origin must be the Owner of the asset `id`. The origin must conform to the configured
1957
+ * `CreateOrigin` or be the signed `owner` configured during asset creation.
1958
+ *
1959
+ * - `id`: The identifier of the asset.
1960
+ * - `reserves`: The full list of trusted reserves information.
1961
+ *
1962
+ * Emits `AssetMinBalanceChanged` event when successful.
1963
+ *
1964
+ * @param {StagingXcmV5Location} id
1965
+ * @param {Array<[]>} reserves
1966
+ **/
1967
+ setReserves: GenericTxCall<
1968
+ (
1969
+ id: StagingXcmV5Location,
1970
+ reserves: Array<[]>,
1971
+ ) => ChainSubmittableExtrinsic<
1972
+ {
1973
+ pallet: 'Assets';
1974
+ palletCall: {
1975
+ name: 'SetReserves';
1976
+ params: { id: StagingXcmV5Location; reserves: Array<[]> };
1977
+ };
1978
+ },
1979
+ ChainKnownTypes
1980
+ >
1981
+ >;
1982
+
1953
1983
  /**
1954
1984
  * Generic pallet tx call
1955
1985
  **/