@dedot/chaintypes 0.269.0 → 0.271.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 (41) hide show
  1. package/basilisk/consts.d.ts +9 -0
  2. package/basilisk/events.d.ts +15 -0
  3. package/basilisk/index.d.ts +1 -1
  4. package/basilisk/types.d.ts +6 -0
  5. package/hydration/consts.d.ts +0 -5
  6. package/hydration/errors.d.ts +17 -2
  7. package/hydration/events.d.ts +61 -0
  8. package/hydration/index.d.ts +1 -1
  9. package/hydration/query.d.ts +38 -0
  10. package/hydration/tx.d.ts +265 -0
  11. package/hydration/types.d.ts +333 -6
  12. package/moonbeam/index.d.ts +1 -1
  13. package/package.json +2 -2
  14. package/paseo/consts.d.ts +0 -9
  15. package/paseo/errors.d.ts +25 -108
  16. package/paseo/events.d.ts +0 -308
  17. package/paseo/index.d.ts +3 -1
  18. package/paseo/query.d.ts +82 -275
  19. package/paseo/runtime.d.ts +73 -2
  20. package/paseo/tx.d.ts +60 -375
  21. package/paseo/types.d.ts +160 -908
  22. package/paseo/view-functions.d.ts +0 -1
  23. package/paseo-people/consts.d.ts +2 -1
  24. package/paseo-people/events.d.ts +20 -0
  25. package/paseo-people/index.d.ts +3 -1
  26. package/paseo-people/json-rpc.d.ts +1 -0
  27. package/paseo-people/query.d.ts +45 -4
  28. package/paseo-people/runtime.d.ts +6 -2
  29. package/paseo-people/tx.d.ts +22 -13
  30. package/paseo-people/types.d.ts +104 -28
  31. package/paseo-people/view-functions.d.ts +38 -1
  32. package/polkadot-people/index.d.ts +1 -1
  33. package/westend-asset-hub/consts.d.ts +11 -2
  34. package/westend-asset-hub/errors.d.ts +29 -4
  35. package/westend-asset-hub/events.d.ts +60 -13
  36. package/westend-asset-hub/index.d.ts +1 -1
  37. package/westend-asset-hub/query.d.ts +100 -13
  38. package/westend-asset-hub/runtime.d.ts +59 -3
  39. package/westend-asset-hub/tx.d.ts +76 -35
  40. package/westend-asset-hub/types.d.ts +186 -58
  41. package/westend-asset-hub/view-functions.d.ts +59 -1
@@ -48,7 +48,6 @@ export interface ChainViewFunctions extends GenericChainViewFunctions {
48
48
  * Returns `(current, real_score)`, the former being the current score that this pallet is
49
49
  * aware of, which may or may not be up to date, and the latter being the real score, as
50
50
  * provided by
51
- *
52
51
  * If the two differ, it means this node is eligible for [`Call::rebag`].
53
52
  *
54
53
  * @param {AccountId32Like} who
@@ -350,7 +350,8 @@ export interface ChainConsts extends GenericChainConsts {
350
350
  aura: {
351
351
  /**
352
352
  * The slot duration Aura should run with, expressed in milliseconds.
353
- * The effective value of this type should not change while the chain is running.
353
+ *
354
+ * The effective value of this type can be changed with a runtime upgrade.
354
355
  *
355
356
  * For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
356
357
  **/
@@ -681,6 +681,26 @@ export interface ChainEvents extends GenericChainEvents {
681
681
  **/
682
682
  ReservesRemoved: GenericPalletEvent<'Assets', 'ReservesRemoved', { assetId: StagingXcmV5Location }>;
683
683
 
684
+ /**
685
+ * Some assets were issued as Credit (no owner yet).
686
+ **/
687
+ IssuedCredit: GenericPalletEvent<'Assets', 'IssuedCredit', { assetId: StagingXcmV5Location; amount: bigint }>;
688
+
689
+ /**
690
+ * Some assets Credit was destroyed.
691
+ **/
692
+ BurnedCredit: GenericPalletEvent<'Assets', 'BurnedCredit', { assetId: StagingXcmV5Location; amount: bigint }>;
693
+
694
+ /**
695
+ * Some assets were burned and a Debt was created.
696
+ **/
697
+ IssuedDebt: GenericPalletEvent<'Assets', 'IssuedDebt', { assetId: StagingXcmV5Location; amount: bigint }>;
698
+
699
+ /**
700
+ * Some assets Debt was destroyed (and assets issued).
701
+ **/
702
+ BurnedDebt: GenericPalletEvent<'Assets', 'BurnedDebt', { assetId: StagingXcmV5Location; amount: bigint }>;
703
+
684
704
  /**
685
705
  * Generic pallet event
686
706
  **/
@@ -6,6 +6,7 @@ import type {
6
6
  FrameSystemEventRecord,
7
7
  PeoplePaseoRuntimeRuntimeCall,
8
8
  SpRuntimeMultiSignature,
9
+ FrameSystemExtensionsAuthorizeCall,
9
10
  FrameSystemExtensionsCheckNonZeroSender,
10
11
  FrameSystemExtensionsCheckSpecVersion,
11
12
  FrameSystemExtensionsCheckTxVersion,
@@ -33,6 +34,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
33
34
  Signature: SpRuntimeMultiSignature;
34
35
  RuntimeCall: PeoplePaseoRuntimeRuntimeCall;
35
36
  Extra: [
37
+ FrameSystemExtensionsAuthorizeCall,
36
38
  FrameSystemExtensionsCheckNonZeroSender,
37
39
  FrameSystemExtensionsCheckSpecVersion,
38
40
  FrameSystemExtensionsCheckTxVersion,
@@ -50,7 +52,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
50
52
 
51
53
  /**
52
54
  * @name: PaseoPeopleApi
53
- * @specVersion: 2001001
55
+ * @specVersion: 2002002
54
56
  **/
55
57
  export interface PaseoPeopleApi extends GenericSubstrateApi {
56
58
  rpc: ChainJsonRpcApis;
@@ -20,6 +20,7 @@ export type ChainJsonRpcApis = Pick<
20
20
  | 'author_pendingExtrinsics'
21
21
  | 'author_removeExtrinsic'
22
22
  | 'author_rotateKeys'
23
+ | 'author_rotateKeysWithOwner'
23
24
  | 'author_submitAndWatchExtrinsic'
24
25
  | 'author_submitExtrinsic'
25
26
  | 'chainHead_v1_body'
@@ -20,6 +20,7 @@ import type {
20
20
  FrameSystemLastRuntimeUpgradeInfo,
21
21
  FrameSystemCodeUpgradeAuthorization,
22
22
  SpWeightsWeightV2Weight,
23
+ CumulusPalletParachainSystemBlockWeightBlockWeightMode,
23
24
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
24
25
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
25
26
  PolkadotPrimitivesV9PersistedValidationData,
@@ -32,6 +33,7 @@ import type {
32
33
  PolkadotParachainPrimitivesPrimitivesId,
33
34
  CumulusPalletParachainSystemParachainInherentInboundMessageId,
34
35
  PolkadotCorePrimitivesOutboundHrmpMessage,
36
+ CumulusPalletParachainSystemPoVMessages,
35
37
  PalletMigrationsMigrationCursor,
36
38
  PalletBalancesAccountData,
37
39
  PalletBalancesBalanceLock,
@@ -108,11 +110,13 @@ export interface ChainStorage extends GenericChainStorage {
108
110
  blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
109
111
 
110
112
  /**
111
- * Total length (in bytes) for all extrinsics put together, for the current block.
113
+ * Total size (in bytes) of the current block.
114
+ *
115
+ * Tracks the size of the header and all extrinsics.
112
116
  *
113
117
  * @param {Callback<number | undefined> =} callback
114
118
  **/
115
- allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
119
+ blockSize: GenericStorageQuery<() => number | undefined>;
116
120
 
117
121
  /**
118
122
  * Map of block numbers to block hashes.
@@ -195,6 +199,13 @@ export interface ChainStorage extends GenericChainStorage {
195
199
  **/
196
200
  lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
197
201
 
202
+ /**
203
+ * Number of blocks till the pending code upgrade is applied.
204
+ *
205
+ * @param {Callback<number | undefined> =} callback
206
+ **/
207
+ blocksTillUpgrade: GenericStorageQuery<() => number | undefined>;
208
+
198
209
  /**
199
210
  * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
200
211
  *
@@ -246,6 +257,27 @@ export interface ChainStorage extends GenericChainStorage {
246
257
  * Pallet `ParachainSystem`'s storage queries
247
258
  **/
248
259
  parachainSystem: {
260
+ /**
261
+ * The current block weight mode.
262
+ *
263
+ * This is used to determine what is the maximum allowed block weight, for more information see
264
+ * [`block_weight`].
265
+ *
266
+ * Killed in [`Self::on_initialize`] and set by the [`block_weight`] logic.
267
+ *
268
+ * @param {Callback<CumulusPalletParachainSystemBlockWeightBlockWeightMode | undefined> =} callback
269
+ **/
270
+ blockWeightMode: GenericStorageQuery<() => CumulusPalletParachainSystemBlockWeightBlockWeightMode | undefined>;
271
+
272
+ /**
273
+ * The core count available to the parachain in the previous block.
274
+ *
275
+ * This is mainly used for offchain functionality to calculate the correct target block weight.
276
+ *
277
+ * @param {Callback<number | undefined> =} callback
278
+ **/
279
+ previousCoreCount: GenericStorageQuery<() => number | undefined>;
280
+
249
281
  /**
250
282
  * Latest included block descendants the runtime accepted. In other words, these are
251
283
  * ancestors of the currently executing block which have not been included in the observed
@@ -274,8 +306,8 @@ export interface ChainStorage extends GenericChainStorage {
274
306
  * applied.
275
307
  *
276
308
  * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
277
- * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
278
- * with the new validation code. This concludes the upgrade process.
309
+ * [`:pending_code`][sp_core::storage::well_known_keys::PENDING_CODE] which will result the
310
+ * next block to be processed with the new validation code. This concludes the upgrade process.
279
311
  *
280
312
  * @param {Callback<Bytes> =} callback
281
313
  **/
@@ -514,6 +546,15 @@ export interface ChainStorage extends GenericChainStorage {
514
546
  **/
515
547
  customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
516
548
 
549
+ /**
550
+ * Tracks cumulative `UMP` and `HRMP` messages sent across blocks in the current `PoV`.
551
+ *
552
+ * Across different candidates/PoVs the budgets are tracked by [`AggregatedUnincludedSegment`].
553
+ *
554
+ * @param {Callback<CumulusPalletParachainSystemPoVMessages | undefined> =} callback
555
+ **/
556
+ poVMessagesTracker: GenericStorageQuery<() => CumulusPalletParachainSystemPoVMessages | undefined>;
557
+
517
558
  /**
518
559
  * Generic pallet storage query
519
560
  **/
@@ -9,8 +9,8 @@ import type {
9
9
  Result,
10
10
  UncheckedExtrinsicLike,
11
11
  UncheckedExtrinsic,
12
- Bytes,
13
12
  BytesLike,
13
+ Bytes,
14
14
  AccountId32Like,
15
15
  AccountId32,
16
16
  } from 'dedot/codecs';
@@ -26,6 +26,7 @@ import type {
26
26
  SpInherentsCheckInherentsResult,
27
27
  SpRuntimeTransactionValidityValidTransaction,
28
28
  SpRuntimeTransactionValidityTransactionSource,
29
+ SpSessionRuntimeApiOpaqueGeneratedSessionKeys,
29
30
  SpCoreCryptoKeyTypeId,
30
31
  FrameSupportViewFunctionsViewFunctionDispatchError,
31
32
  FrameSupportViewFunctionsViewFunctionId,
@@ -306,9 +307,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
306
307
  * Returns the concatenated SCALE encoded public keys.
307
308
  *
308
309
  * @callname: SessionKeys_generate_session_keys
310
+ * @param {BytesLike} owner
309
311
  * @param {BytesLike | undefined} seed
310
312
  **/
311
- generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
313
+ generateSessionKeys: GenericRuntimeApiMethod<
314
+ (owner: BytesLike, seed?: BytesLike | undefined) => Promise<SpSessionRuntimeApiOpaqueGeneratedSessionKeys>
315
+ >;
312
316
 
313
317
  /**
314
318
  * Decode the given public session keys.
@@ -2289,14 +2289,16 @@ export interface ChainTx<
2289
2289
  session: {
2290
2290
  /**
2291
2291
  * Sets the session key(s) of the function caller to `keys`.
2292
+ *
2292
2293
  * Allows an account to set its session key prior to becoming a validator.
2293
2294
  * This doesn't take effect until the next session.
2294
2295
  *
2295
- * The dispatch origin of this function must be signed.
2296
- *
2297
- * ## Complexity
2298
- * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
2299
- * fixed.
2296
+ * - `origin`: The dispatch origin of this function must be signed.
2297
+ * - `keys`: The new session keys to set. These are the public keys of all sessions keys
2298
+ * setup in the runtime.
2299
+ * - `proof`: The proof that `origin` has access to the private keys of `keys`. See
2300
+ * [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
2301
+ * proof format.
2300
2302
  *
2301
2303
  * @param {PeoplePaseoRuntimeSessionKeys} keys
2302
2304
  * @param {BytesLike} proof
@@ -2327,10 +2329,6 @@ export interface ChainTx<
2327
2329
  * means being a controller account) or directly convertible into a validator ID (which
2328
2330
  * usually means being a stash account).
2329
2331
  *
2330
- * ## Complexity
2331
- * - `O(1)` in number of key types. Actual cost depends on the number of length of
2332
- * `T::Keys::key_ids()` which is fixed.
2333
- *
2334
2332
  **/
2335
2333
  purgeKeys: GenericTxCall<
2336
2334
  () => ChainSubmittableExtrinsic<
@@ -3495,7 +3493,9 @@ export interface ChainTx<
3495
3493
  * Register approval for a dispatch to be made from a deterministic composite account if
3496
3494
  * approved by a total of `threshold - 1` of `other_signatories`.
3497
3495
  *
3498
- * If there are enough, then dispatch the call.
3496
+ * **If the approval threshold is met (including the sender's approval), this will
3497
+ * immediately execute the call.** This is the only way to execute a multisig call -
3498
+ * `approve_as_multi` will never trigger execution.
3499
3499
  *
3500
3500
  * Payment: `DepositBase` will be reserved if this is the first approval, plus
3501
3501
  * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
@@ -3511,8 +3511,9 @@ export interface ChainTx<
3511
3511
  * transaction index) of the first approval transaction.
3512
3512
  * - `call`: The call to be executed.
3513
3513
  *
3514
- * NOTE: Unless this is the final approval, you will generally want to use
3515
- * `approve_as_multi` instead, since it only requires a hash of the call.
3514
+ * NOTE: For intermediate approvals (not the final approval), you should generally use
3515
+ * `approve_as_multi` instead, since it only requires a hash of the call and is more
3516
+ * efficient.
3516
3517
  *
3517
3518
  * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
3518
3519
  * on success, result is `Ok` and the result from the interior call, if it was executed,
@@ -3567,6 +3568,13 @@ export interface ChainTx<
3567
3568
  * Register approval for a dispatch to be made from a deterministic composite account if
3568
3569
  * approved by a total of `threshold - 1` of `other_signatories`.
3569
3570
  *
3571
+ * **This function will NEVER execute the call, even if the approval threshold is
3572
+ * reached.** It only registers approval. To actually execute the call, `as_multi` must
3573
+ * be called with the full call data by any of the signatories.
3574
+ *
3575
+ * This function is more efficient than `as_multi` for intermediate approvals since it
3576
+ * only requires the call hash, not the full call data.
3577
+ *
3570
3578
  * Payment: `DepositBase` will be reserved if this is the first approval, plus
3571
3579
  * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
3572
3580
  * is cancelled.
@@ -3581,7 +3589,8 @@ export interface ChainTx<
3581
3589
  * transaction index) of the first approval transaction.
3582
3590
  * - `call_hash`: The hash of the call to be executed.
3583
3591
  *
3584
- * NOTE: If this is the final approval, you will want to use `as_multi` instead.
3592
+ * NOTE: To execute the call after approvals are gathered, any signatory must call
3593
+ * `as_multi` with the full call data. This function cannot execute the call.
3585
3594
  *
3586
3595
  * ## Complexity
3587
3596
  * - `O(S)`.
@@ -2089,14 +2089,16 @@ export type PalletCollatorSelectionCallLike =
2089
2089
  export type PalletSessionCall =
2090
2090
  /**
2091
2091
  * Sets the session key(s) of the function caller to `keys`.
2092
+ *
2092
2093
  * Allows an account to set its session key prior to becoming a validator.
2093
2094
  * This doesn't take effect until the next session.
2094
2095
  *
2095
- * The dispatch origin of this function must be signed.
2096
- *
2097
- * ## Complexity
2098
- * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
2099
- * fixed.
2096
+ * - `origin`: The dispatch origin of this function must be signed.
2097
+ * - `keys`: The new session keys to set. These are the public keys of all sessions keys
2098
+ * setup in the runtime.
2099
+ * - `proof`: The proof that `origin` has access to the private keys of `keys`. See
2100
+ * [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
2101
+ * proof format.
2100
2102
  **/
2101
2103
  | { name: 'SetKeys'; params: { keys: PeoplePaseoRuntimeSessionKeys; proof: Bytes } }
2102
2104
  /**
@@ -2108,24 +2110,22 @@ export type PalletSessionCall =
2108
2110
  * convertible to a validator ID using the chain's typical addressing system (this usually
2109
2111
  * means being a controller account) or directly convertible into a validator ID (which
2110
2112
  * usually means being a stash account).
2111
- *
2112
- * ## Complexity
2113
- * - `O(1)` in number of key types. Actual cost depends on the number of length of
2114
- * `T::Keys::key_ids()` which is fixed.
2115
2113
  **/
2116
2114
  | { name: 'PurgeKeys' };
2117
2115
 
2118
2116
  export type PalletSessionCallLike =
2119
2117
  /**
2120
2118
  * Sets the session key(s) of the function caller to `keys`.
2119
+ *
2121
2120
  * Allows an account to set its session key prior to becoming a validator.
2122
2121
  * This doesn't take effect until the next session.
2123
2122
  *
2124
- * The dispatch origin of this function must be signed.
2125
- *
2126
- * ## Complexity
2127
- * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
2128
- * fixed.
2123
+ * - `origin`: The dispatch origin of this function must be signed.
2124
+ * - `keys`: The new session keys to set. These are the public keys of all sessions keys
2125
+ * setup in the runtime.
2126
+ * - `proof`: The proof that `origin` has access to the private keys of `keys`. See
2127
+ * [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
2128
+ * proof format.
2129
2129
  **/
2130
2130
  | { name: 'SetKeys'; params: { keys: PeoplePaseoRuntimeSessionKeys; proof: BytesLike } }
2131
2131
  /**
@@ -2137,10 +2137,6 @@ export type PalletSessionCallLike =
2137
2137
  * convertible to a validator ID using the chain's typical addressing system (this usually
2138
2138
  * means being a controller account) or directly convertible into a validator ID (which
2139
2139
  * usually means being a stash account).
2140
- *
2141
- * ## Complexity
2142
- * - `O(1)` in number of key types. Actual cost depends on the number of length of
2143
- * `T::Keys::key_ids()` which is fixed.
2144
2140
  **/
2145
2141
  | { name: 'PurgeKeys' };
2146
2142
 
@@ -3970,7 +3966,9 @@ export type PalletMultisigCall =
3970
3966
  * Register approval for a dispatch to be made from a deterministic composite account if
3971
3967
  * approved by a total of `threshold - 1` of `other_signatories`.
3972
3968
  *
3973
- * If there are enough, then dispatch the call.
3969
+ * **If the approval threshold is met (including the sender's approval), this will
3970
+ * immediately execute the call.** This is the only way to execute a multisig call -
3971
+ * `approve_as_multi` will never trigger execution.
3974
3972
  *
3975
3973
  * Payment: `DepositBase` will be reserved if this is the first approval, plus
3976
3974
  * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
@@ -3986,8 +3984,9 @@ export type PalletMultisigCall =
3986
3984
  * transaction index) of the first approval transaction.
3987
3985
  * - `call`: The call to be executed.
3988
3986
  *
3989
- * NOTE: Unless this is the final approval, you will generally want to use
3990
- * `approve_as_multi` instead, since it only requires a hash of the call.
3987
+ * NOTE: For intermediate approvals (not the final approval), you should generally use
3988
+ * `approve_as_multi` instead, since it only requires a hash of the call and is more
3989
+ * efficient.
3991
3990
  *
3992
3991
  * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
3993
3992
  * on success, result is `Ok` and the result from the interior call, if it was executed,
@@ -4021,6 +4020,13 @@ export type PalletMultisigCall =
4021
4020
  * Register approval for a dispatch to be made from a deterministic composite account if
4022
4021
  * approved by a total of `threshold - 1` of `other_signatories`.
4023
4022
  *
4023
+ * **This function will NEVER execute the call, even if the approval threshold is
4024
+ * reached.** It only registers approval. To actually execute the call, `as_multi` must
4025
+ * be called with the full call data by any of the signatories.
4026
+ *
4027
+ * This function is more efficient than `as_multi` for intermediate approvals since it
4028
+ * only requires the call hash, not the full call data.
4029
+ *
4024
4030
  * Payment: `DepositBase` will be reserved if this is the first approval, plus
4025
4031
  * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
4026
4032
  * is cancelled.
@@ -4035,7 +4041,8 @@ export type PalletMultisigCall =
4035
4041
  * transaction index) of the first approval transaction.
4036
4042
  * - `call_hash`: The hash of the call to be executed.
4037
4043
  *
4038
- * NOTE: If this is the final approval, you will want to use `as_multi` instead.
4044
+ * NOTE: To execute the call after approvals are gathered, any signatory must call
4045
+ * `as_multi` with the full call data. This function cannot execute the call.
4039
4046
  *
4040
4047
  * ## Complexity
4041
4048
  * - `O(S)`.
@@ -4134,7 +4141,9 @@ export type PalletMultisigCallLike =
4134
4141
  * Register approval for a dispatch to be made from a deterministic composite account if
4135
4142
  * approved by a total of `threshold - 1` of `other_signatories`.
4136
4143
  *
4137
- * If there are enough, then dispatch the call.
4144
+ * **If the approval threshold is met (including the sender's approval), this will
4145
+ * immediately execute the call.** This is the only way to execute a multisig call -
4146
+ * `approve_as_multi` will never trigger execution.
4138
4147
  *
4139
4148
  * Payment: `DepositBase` will be reserved if this is the first approval, plus
4140
4149
  * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
@@ -4150,8 +4159,9 @@ export type PalletMultisigCallLike =
4150
4159
  * transaction index) of the first approval transaction.
4151
4160
  * - `call`: The call to be executed.
4152
4161
  *
4153
- * NOTE: Unless this is the final approval, you will generally want to use
4154
- * `approve_as_multi` instead, since it only requires a hash of the call.
4162
+ * NOTE: For intermediate approvals (not the final approval), you should generally use
4163
+ * `approve_as_multi` instead, since it only requires a hash of the call and is more
4164
+ * efficient.
4155
4165
  *
4156
4166
  * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
4157
4167
  * on success, result is `Ok` and the result from the interior call, if it was executed,
@@ -4185,6 +4195,13 @@ export type PalletMultisigCallLike =
4185
4195
  * Register approval for a dispatch to be made from a deterministic composite account if
4186
4196
  * approved by a total of `threshold - 1` of `other_signatories`.
4187
4197
  *
4198
+ * **This function will NEVER execute the call, even if the approval threshold is
4199
+ * reached.** It only registers approval. To actually execute the call, `as_multi` must
4200
+ * be called with the full call data by any of the signatories.
4201
+ *
4202
+ * This function is more efficient than `as_multi` for intermediate approvals since it
4203
+ * only requires the call hash, not the full call data.
4204
+ *
4188
4205
  * Payment: `DepositBase` will be reserved if this is the first approval, plus
4189
4206
  * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
4190
4207
  * is cancelled.
@@ -4199,7 +4216,8 @@ export type PalletMultisigCallLike =
4199
4216
  * transaction index) of the first approval transaction.
4200
4217
  * - `call_hash`: The hash of the call to be executed.
4201
4218
  *
4202
- * NOTE: If this is the final approval, you will want to use `as_multi` instead.
4219
+ * NOTE: To execute the call after approvals are gathered, any signatory must call
4220
+ * `as_multi` with the full call data. This function cannot execute the call.
4203
4221
  *
4204
4222
  * ## Complexity
4205
4223
  * - `O(S)`.
@@ -5254,6 +5272,8 @@ export type PalletSudoCallLike =
5254
5272
  **/
5255
5273
  | { name: 'RemoveKey' };
5256
5274
 
5275
+ export type FrameSystemExtensionsAuthorizeCall = {};
5276
+
5257
5277
  export type FrameSystemExtensionsCheckNonZeroSender = {};
5258
5278
 
5259
5279
  export type FrameSystemExtensionsCheckSpecVersion = {};
@@ -5832,7 +5852,23 @@ export type PalletAssetsEvent =
5832
5852
  /**
5833
5853
  * Reserve information was removed for `asset_id`.
5834
5854
  **/
5835
- | { name: 'ReservesRemoved'; data: { assetId: StagingXcmV5Location } };
5855
+ | { name: 'ReservesRemoved'; data: { assetId: StagingXcmV5Location } }
5856
+ /**
5857
+ * Some assets were issued as Credit (no owner yet).
5858
+ **/
5859
+ | { name: 'IssuedCredit'; data: { assetId: StagingXcmV5Location; amount: bigint } }
5860
+ /**
5861
+ * Some assets Credit was destroyed.
5862
+ **/
5863
+ | { name: 'BurnedCredit'; data: { assetId: StagingXcmV5Location; amount: bigint } }
5864
+ /**
5865
+ * Some assets were burned and a Debt was created.
5866
+ **/
5867
+ | { name: 'IssuedDebt'; data: { assetId: StagingXcmV5Location; amount: bigint } }
5868
+ /**
5869
+ * Some assets Debt was destroyed (and assets issued).
5870
+ **/
5871
+ | { name: 'BurnedDebt'; data: { assetId: StagingXcmV5Location; amount: bigint } };
5836
5872
 
5837
5873
  /**
5838
5874
  * The `Event` enum of this pallet
@@ -6659,7 +6695,10 @@ export type FrameSystemLimitsWeightsPerClass = {
6659
6695
  reserved?: SpWeightsWeightV2Weight | undefined;
6660
6696
  };
6661
6697
 
6662
- export type FrameSystemLimitsBlockLength = { max: FrameSupportDispatchPerDispatchClassU32 };
6698
+ export type FrameSystemLimitsBlockLength = {
6699
+ max: FrameSupportDispatchPerDispatchClassU32;
6700
+ maxHeaderSize?: number | undefined;
6701
+ };
6663
6702
 
6664
6703
  export type FrameSupportDispatchPerDispatchClassU32 = { normal: number; operational: number; mandatory: number };
6665
6704
 
@@ -6715,6 +6754,7 @@ export type SpRuntimeBlakeTwo256 = {};
6715
6754
  export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
6716
6755
 
6717
6756
  export type CumulusPalletWeightReclaimStorageWeightReclaim = [
6757
+ FrameSystemExtensionsAuthorizeCall,
6718
6758
  FrameSystemExtensionsCheckNonZeroSender,
6719
6759
  FrameSystemExtensionsCheckSpecVersion,
6720
6760
  FrameSystemExtensionsCheckTxVersion,
@@ -6726,6 +6766,14 @@ export type CumulusPalletWeightReclaimStorageWeightReclaim = [
6726
6766
  FrameMetadataHashExtensionCheckMetadataHash,
6727
6767
  ];
6728
6768
 
6769
+ export type CumulusPalletParachainSystemBlockWeightBlockWeightMode =
6770
+ | { type: 'FullCore'; value: { context: number } }
6771
+ | {
6772
+ type: 'PotentialFullCore';
6773
+ value: { context: number; firstTransactionIndex?: number | undefined; targetWeight: SpWeightsWeightV2Weight };
6774
+ }
6775
+ | { type: 'FractionOfCore'; value: { context: number; firstTransactionIndex?: number | undefined } };
6776
+
6729
6777
  export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
6730
6778
  usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
6731
6779
  paraHeadHash?: H256 | undefined;
@@ -6800,6 +6848,14 @@ export type PolkadotCorePrimitivesOutboundHrmpMessage = {
6800
6848
  data: Bytes;
6801
6849
  };
6802
6850
 
6851
+ export type CumulusPalletParachainSystemPoVMessages = {
6852
+ relayStorageRootOrHash: H256;
6853
+ coreSelector: number;
6854
+ bundleIndex: number;
6855
+ umpMsgCount: number;
6856
+ hrmpOutboundCount: number;
6857
+ };
6858
+
6803
6859
  /**
6804
6860
  * The `Error` enum of this pallet.
6805
6861
  **/
@@ -6839,6 +6895,21 @@ export type PalletMigrationsError =
6839
6895
  **/
6840
6896
  'Ongoing';
6841
6897
 
6898
+ export type PalletMigrationsMbmIsOngoing = 'Yes' | 'No' | 'Stuck';
6899
+
6900
+ export type PalletMigrationsMbmProgress = {
6901
+ currentMigration: number;
6902
+ totalMigrations: number;
6903
+ currentMigrationSteps: number;
6904
+ currentMigrationMaxSteps?: number | undefined;
6905
+ };
6906
+
6907
+ export type PalletMigrationsMbmStatus = {
6908
+ ongoing: PalletMigrationsMbmIsOngoing;
6909
+ progress?: PalletMigrationsMbmProgress | undefined;
6910
+ prefixes: Array<Bytes>;
6911
+ };
6912
+
6842
6913
  export type PalletBalancesBalanceLock = { id: FixedBytes<8>; amount: bigint; reasons: PalletBalancesReasons };
6843
6914
 
6844
6915
  export type PalletBalancesReasons = 'Fee' | 'Misc' | 'All';
@@ -7195,10 +7266,13 @@ export type CumulusPalletXcmpQueueOutboundChannelDetails = {
7195
7266
  signalsExist: boolean;
7196
7267
  firstIndex: number;
7197
7268
  lastIndex: number;
7269
+ flags: CumulusPalletXcmpQueueOutboundChannelFlags;
7198
7270
  };
7199
7271
 
7200
7272
  export type CumulusPalletXcmpQueueOutboundState = 'Ok' | 'Suspended';
7201
7273
 
7274
+ export type CumulusPalletXcmpQueueOutboundChannelFlags = { bits: number };
7275
+
7202
7276
  export type CumulusPalletXcmpQueueQueueConfigData = {
7203
7277
  suspendThreshold: number;
7204
7278
  dropThreshold: number;
@@ -7832,6 +7906,8 @@ export type SpRuntimeTransactionValidityValidTransaction = {
7832
7906
  propagate: boolean;
7833
7907
  };
7834
7908
 
7909
+ export type SpSessionRuntimeApiOpaqueGeneratedSessionKeys = { keys: Bytes; proof: Bytes };
7910
+
7835
7911
  export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
7836
7912
 
7837
7913
  export type FrameSupportViewFunctionsViewFunctionDispatchError =
@@ -1,8 +1,11 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainViewFunctions, GenericViewFunction } from 'dedot/types';
4
- import type { AccountId32Like } from 'dedot/codecs';
4
+ import type { Bytes, AccountId32Like } from 'dedot/codecs';
5
5
  import type {
6
+ PalletMigrationsMbmIsOngoing,
7
+ PalletMigrationsMbmProgress,
8
+ PalletMigrationsMbmStatus,
6
9
  StagingXcmV5Location,
7
10
  PalletAssetsAssetDetails,
8
11
  PalletAssetsAssetMetadata,
@@ -11,6 +14,40 @@ import type {
11
14
  } from './types.js';
12
15
 
13
16
  export interface ChainViewFunctions extends GenericChainViewFunctions {
17
+ /**
18
+ * Pallet `MultiBlockMigrations`'s view functions
19
+ **/
20
+ multiBlockMigrations: {
21
+ /**
22
+ * Returns the ongoing status of migrations.
23
+ **/
24
+ ongoingStatus: GenericViewFunction<() => Promise<PalletMigrationsMbmIsOngoing>>;
25
+
26
+ /**
27
+ * Returns progress information about the current migration, if any.
28
+ *
29
+ * This function provides detailed information about the current migration's progress,
30
+ * including the number of steps completed and the maximum allowed steps.
31
+ **/
32
+ progress: GenericViewFunction<() => Promise<PalletMigrationsMbmProgress | undefined>>;
33
+
34
+ /**
35
+ * Returns the storage prefixes affected by the current migration.
36
+ *
37
+ * Can be empty if the migration does not know or there are no prefixes.
38
+ **/
39
+ affectedPrefixes: GenericViewFunction<() => Promise<Array<Bytes>>>;
40
+
41
+ /**
42
+ * Returns the comprehensive status of multi-block migrations.
43
+ **/
44
+ status: GenericViewFunction<() => Promise<PalletMigrationsMbmStatus>>;
45
+
46
+ /**
47
+ * Generic pallet view function
48
+ **/
49
+ [name: string]: GenericViewFunction;
50
+ };
14
51
  /**
15
52
  * Pallet `Assets`'s view functions
16
53
  **/
@@ -52,7 +52,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
52
52
 
53
53
  /**
54
54
  * @name: PolkadotPeopleApi
55
- * @specVersion: 2002001
55
+ * @specVersion: 2002002
56
56
  **/
57
57
  export interface PolkadotPeopleApi extends GenericSubstrateApi {
58
58
  rpc: ChainJsonRpcApis;
@@ -275,6 +275,15 @@ export interface ChainConsts extends GenericChainConsts {
275
275
  **/
276
276
  [name: string]: any;
277
277
  };
278
+ /**
279
+ * Pallet `PgasAllowance`'s constants
280
+ **/
281
+ pgasAllowance: {
282
+ /**
283
+ * Generic pallet constant
284
+ **/
285
+ [name: string]: any;
286
+ };
278
287
  /**
279
288
  * Pallet `Authorship`'s constants
280
289
  **/
@@ -956,9 +965,9 @@ export interface ChainConsts extends GenericChainConsts {
956
965
  **/
957
966
  assetConversion: {
958
967
  /**
959
- * A % the liquidity providers will take of every swap. Represents 10ths of a percent.
968
+ * The fraction of every swap that the liquidity providers take as a fee.
960
969
  **/
961
- lpFee: number;
970
+ lpFee: Permill;
962
971
 
963
972
  /**
964
973
  * A one-time fee to setup the pool.