@dedot/chaintypes 0.266.0 → 0.267.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.
@@ -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, Result } from 'dedot/codecs';
4
+ import type { Bytes, AccountId32Like, Result } from 'dedot/codecs';
5
5
  import type {
6
+ PalletMigrationsMbmIsOngoing,
7
+ PalletMigrationsMbmProgress,
8
+ PalletMigrationsMbmStatus,
6
9
  AssetHubPolkadotRuntimeRuntimeCallLike,
7
10
  AssetHubPolkadotRuntimeProxyType,
8
11
  PalletAssetsAssetDetails,
@@ -13,6 +16,40 @@ import type {
13
16
  } from './types.js';
14
17
 
15
18
  export interface ChainViewFunctions extends GenericChainViewFunctions {
19
+ /**
20
+ * Pallet `MultiBlockMigrations`'s view functions
21
+ **/
22
+ multiBlockMigrations: {
23
+ /**
24
+ * Returns the ongoing status of migrations.
25
+ **/
26
+ ongoingStatus: GenericViewFunction<() => Promise<PalletMigrationsMbmIsOngoing>>;
27
+
28
+ /**
29
+ * Returns progress information about the current migration, if any.
30
+ *
31
+ * This function provides detailed information about the current migration's progress,
32
+ * including the number of steps completed and the maximum allowed steps.
33
+ **/
34
+ progress: GenericViewFunction<() => Promise<PalletMigrationsMbmProgress | undefined>>;
35
+
36
+ /**
37
+ * Returns the storage prefixes affected by the current migration.
38
+ *
39
+ * Can be empty if the migration does not know or there are no prefixes.
40
+ **/
41
+ affectedPrefixes: GenericViewFunction<() => Promise<Array<Bytes>>>;
42
+
43
+ /**
44
+ * Returns the comprehensive status of multi-block migrations.
45
+ **/
46
+ status: GenericViewFunction<() => Promise<PalletMigrationsMbmStatus>>;
47
+
48
+ /**
49
+ * Generic pallet view function
50
+ **/
51
+ [name: string]: GenericViewFunction;
52
+ };
16
53
  /**
17
54
  * Pallet `Proxy`'s view functions
18
55
  **/
@@ -237,7 +274,6 @@ export interface ChainViewFunctions extends GenericChainViewFunctions {
237
274
  * Returns `(current, real_score)`, the former being the current score that this pallet is
238
275
  * aware of, which may or may not be up to date, and the latter being the real score, as
239
276
  * provided by
240
- *
241
277
  * If the two differ, it means this node is eligible for [`Call::rebag`].
242
278
  *
243
279
  * @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
  PeoplePolkadotRuntimeRuntimeCall,
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: PeoplePolkadotRuntimeRuntimeCall;
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: PolkadotPeopleApi
53
- * @specVersion: 2001001
55
+ * @specVersion: 2002001
54
56
  **/
55
57
  export interface PolkadotPeopleApi extends GenericSubstrateApi {
56
58
  rpc: ChainJsonRpcApis;
@@ -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 {PeoplePolkadotRuntimeSessionKeys} 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)`.
@@ -2087,14 +2087,16 @@ export type PalletCollatorSelectionCallLike =
2087
2087
  export type PalletSessionCall =
2088
2088
  /**
2089
2089
  * Sets the session key(s) of the function caller to `keys`.
2090
+ *
2090
2091
  * Allows an account to set its session key prior to becoming a validator.
2091
2092
  * This doesn't take effect until the next session.
2092
2093
  *
2093
- * The dispatch origin of this function must be signed.
2094
- *
2095
- * ## Complexity
2096
- * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
2097
- * fixed.
2094
+ * - `origin`: The dispatch origin of this function must be signed.
2095
+ * - `keys`: The new session keys to set. These are the public keys of all sessions keys
2096
+ * setup in the runtime.
2097
+ * - `proof`: The proof that `origin` has access to the private keys of `keys`. See
2098
+ * [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
2099
+ * proof format.
2098
2100
  **/
2099
2101
  | { name: 'SetKeys'; params: { keys: PeoplePolkadotRuntimeSessionKeys; proof: Bytes } }
2100
2102
  /**
@@ -2106,24 +2108,22 @@ export type PalletSessionCall =
2106
2108
  * convertible to a validator ID using the chain's typical addressing system (this usually
2107
2109
  * means being a controller account) or directly convertible into a validator ID (which
2108
2110
  * usually means being a stash account).
2109
- *
2110
- * ## Complexity
2111
- * - `O(1)` in number of key types. Actual cost depends on the number of length of
2112
- * `T::Keys::key_ids()` which is fixed.
2113
2111
  **/
2114
2112
  | { name: 'PurgeKeys' };
2115
2113
 
2116
2114
  export type PalletSessionCallLike =
2117
2115
  /**
2118
2116
  * Sets the session key(s) of the function caller to `keys`.
2117
+ *
2119
2118
  * Allows an account to set its session key prior to becoming a validator.
2120
2119
  * This doesn't take effect until the next session.
2121
2120
  *
2122
- * The dispatch origin of this function must be signed.
2123
- *
2124
- * ## Complexity
2125
- * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
2126
- * fixed.
2121
+ * - `origin`: The dispatch origin of this function must be signed.
2122
+ * - `keys`: The new session keys to set. These are the public keys of all sessions keys
2123
+ * setup in the runtime.
2124
+ * - `proof`: The proof that `origin` has access to the private keys of `keys`. See
2125
+ * [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
2126
+ * proof format.
2127
2127
  **/
2128
2128
  | { name: 'SetKeys'; params: { keys: PeoplePolkadotRuntimeSessionKeys; proof: BytesLike } }
2129
2129
  /**
@@ -2135,10 +2135,6 @@ export type PalletSessionCallLike =
2135
2135
  * convertible to a validator ID using the chain's typical addressing system (this usually
2136
2136
  * means being a controller account) or directly convertible into a validator ID (which
2137
2137
  * usually means being a stash account).
2138
- *
2139
- * ## Complexity
2140
- * - `O(1)` in number of key types. Actual cost depends on the number of length of
2141
- * `T::Keys::key_ids()` which is fixed.
2142
2138
  **/
2143
2139
  | { name: 'PurgeKeys' };
2144
2140
 
@@ -3977,7 +3973,9 @@ export type PalletMultisigCall =
3977
3973
  * Register approval for a dispatch to be made from a deterministic composite account if
3978
3974
  * approved by a total of `threshold - 1` of `other_signatories`.
3979
3975
  *
3980
- * If there are enough, then dispatch the call.
3976
+ * **If the approval threshold is met (including the sender's approval), this will
3977
+ * immediately execute the call.** This is the only way to execute a multisig call -
3978
+ * `approve_as_multi` will never trigger execution.
3981
3979
  *
3982
3980
  * Payment: `DepositBase` will be reserved if this is the first approval, plus
3983
3981
  * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
@@ -3993,8 +3991,9 @@ export type PalletMultisigCall =
3993
3991
  * transaction index) of the first approval transaction.
3994
3992
  * - `call`: The call to be executed.
3995
3993
  *
3996
- * NOTE: Unless this is the final approval, you will generally want to use
3997
- * `approve_as_multi` instead, since it only requires a hash of the call.
3994
+ * NOTE: For intermediate approvals (not the final approval), you should generally use
3995
+ * `approve_as_multi` instead, since it only requires a hash of the call and is more
3996
+ * efficient.
3998
3997
  *
3999
3998
  * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
4000
3999
  * on success, result is `Ok` and the result from the interior call, if it was executed,
@@ -4028,6 +4027,13 @@ export type PalletMultisigCall =
4028
4027
  * Register approval for a dispatch to be made from a deterministic composite account if
4029
4028
  * approved by a total of `threshold - 1` of `other_signatories`.
4030
4029
  *
4030
+ * **This function will NEVER execute the call, even if the approval threshold is
4031
+ * reached.** It only registers approval. To actually execute the call, `as_multi` must
4032
+ * be called with the full call data by any of the signatories.
4033
+ *
4034
+ * This function is more efficient than `as_multi` for intermediate approvals since it
4035
+ * only requires the call hash, not the full call data.
4036
+ *
4031
4037
  * Payment: `DepositBase` will be reserved if this is the first approval, plus
4032
4038
  * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
4033
4039
  * is cancelled.
@@ -4042,7 +4048,8 @@ export type PalletMultisigCall =
4042
4048
  * transaction index) of the first approval transaction.
4043
4049
  * - `call_hash`: The hash of the call to be executed.
4044
4050
  *
4045
- * NOTE: If this is the final approval, you will want to use `as_multi` instead.
4051
+ * NOTE: To execute the call after approvals are gathered, any signatory must call
4052
+ * `as_multi` with the full call data. This function cannot execute the call.
4046
4053
  *
4047
4054
  * ## Complexity
4048
4055
  * - `O(S)`.
@@ -4141,7 +4148,9 @@ export type PalletMultisigCallLike =
4141
4148
  * Register approval for a dispatch to be made from a deterministic composite account if
4142
4149
  * approved by a total of `threshold - 1` of `other_signatories`.
4143
4150
  *
4144
- * If there are enough, then dispatch the call.
4151
+ * **If the approval threshold is met (including the sender's approval), this will
4152
+ * immediately execute the call.** This is the only way to execute a multisig call -
4153
+ * `approve_as_multi` will never trigger execution.
4145
4154
  *
4146
4155
  * Payment: `DepositBase` will be reserved if this is the first approval, plus
4147
4156
  * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
@@ -4157,8 +4166,9 @@ export type PalletMultisigCallLike =
4157
4166
  * transaction index) of the first approval transaction.
4158
4167
  * - `call`: The call to be executed.
4159
4168
  *
4160
- * NOTE: Unless this is the final approval, you will generally want to use
4161
- * `approve_as_multi` instead, since it only requires a hash of the call.
4169
+ * NOTE: For intermediate approvals (not the final approval), you should generally use
4170
+ * `approve_as_multi` instead, since it only requires a hash of the call and is more
4171
+ * efficient.
4162
4172
  *
4163
4173
  * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
4164
4174
  * on success, result is `Ok` and the result from the interior call, if it was executed,
@@ -4192,6 +4202,13 @@ export type PalletMultisigCallLike =
4192
4202
  * Register approval for a dispatch to be made from a deterministic composite account if
4193
4203
  * approved by a total of `threshold - 1` of `other_signatories`.
4194
4204
  *
4205
+ * **This function will NEVER execute the call, even if the approval threshold is
4206
+ * reached.** It only registers approval. To actually execute the call, `as_multi` must
4207
+ * be called with the full call data by any of the signatories.
4208
+ *
4209
+ * This function is more efficient than `as_multi` for intermediate approvals since it
4210
+ * only requires the call hash, not the full call data.
4211
+ *
4195
4212
  * Payment: `DepositBase` will be reserved if this is the first approval, plus
4196
4213
  * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
4197
4214
  * is cancelled.
@@ -4206,7 +4223,8 @@ export type PalletMultisigCallLike =
4206
4223
  * transaction index) of the first approval transaction.
4207
4224
  * - `call_hash`: The hash of the call to be executed.
4208
4225
  *
4209
- * NOTE: If this is the final approval, you will want to use `as_multi` instead.
4226
+ * NOTE: To execute the call after approvals are gathered, any signatory must call
4227
+ * `as_multi` with the full call data. This function cannot execute the call.
4210
4228
  *
4211
4229
  * ## Complexity
4212
4230
  * - `O(S)`.
@@ -5197,6 +5215,8 @@ export type SpRuntimeMultiSignature =
5197
5215
  | { type: 'Ecdsa'; value: FixedBytes<65> }
5198
5216
  | { type: 'Eth'; value: FixedBytes<65> };
5199
5217
 
5218
+ export type FrameSystemExtensionsAuthorizeCall = {};
5219
+
5200
5220
  export type FrameSystemExtensionsCheckNonZeroSender = {};
5201
5221
 
5202
5222
  export type FrameSystemExtensionsCheckSpecVersion = {};
@@ -5774,7 +5794,23 @@ export type PalletAssetsEvent =
5774
5794
  /**
5775
5795
  * Reserve information was removed for `asset_id`.
5776
5796
  **/
5777
- | { name: 'ReservesRemoved'; data: { assetId: StagingXcmV5Location } };
5797
+ | { name: 'ReservesRemoved'; data: { assetId: StagingXcmV5Location } }
5798
+ /**
5799
+ * Some assets were issued as Credit (no owner yet).
5800
+ **/
5801
+ | { name: 'IssuedCredit'; data: { assetId: StagingXcmV5Location; amount: bigint } }
5802
+ /**
5803
+ * Some assets Credit was destroyed.
5804
+ **/
5805
+ | { name: 'BurnedCredit'; data: { assetId: StagingXcmV5Location; amount: bigint } }
5806
+ /**
5807
+ * Some assets were burned and a Debt was created.
5808
+ **/
5809
+ | { name: 'IssuedDebt'; data: { assetId: StagingXcmV5Location; amount: bigint } }
5810
+ /**
5811
+ * Some assets Debt was destroyed (and assets issued).
5812
+ **/
5813
+ | { name: 'BurnedDebt'; data: { assetId: StagingXcmV5Location; amount: bigint } };
5778
5814
 
5779
5815
  /**
5780
5816
  * The `Event` enum of this pallet
@@ -6561,7 +6597,10 @@ export type FrameSystemLimitsWeightsPerClass = {
6561
6597
  reserved?: SpWeightsWeightV2Weight | undefined;
6562
6598
  };
6563
6599
 
6564
- export type FrameSystemLimitsBlockLength = { max: FrameSupportDispatchPerDispatchClassU32 };
6600
+ export type FrameSystemLimitsBlockLength = {
6601
+ max: FrameSupportDispatchPerDispatchClassU32;
6602
+ maxHeaderSize?: number | undefined;
6603
+ };
6565
6604
 
6566
6605
  export type FrameSupportDispatchPerDispatchClassU32 = { normal: number; operational: number; mandatory: number };
6567
6606
 
@@ -6617,6 +6656,7 @@ export type SpRuntimeBlakeTwo256 = {};
6617
6656
  export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
6618
6657
 
6619
6658
  export type CumulusPalletWeightReclaimStorageWeightReclaim = [
6659
+ FrameSystemExtensionsAuthorizeCall,
6620
6660
  FrameSystemExtensionsCheckNonZeroSender,
6621
6661
  FrameSystemExtensionsCheckSpecVersion,
6622
6662
  FrameSystemExtensionsCheckTxVersion,
@@ -6628,6 +6668,14 @@ export type CumulusPalletWeightReclaimStorageWeightReclaim = [
6628
6668
  FrameMetadataHashExtensionCheckMetadataHash,
6629
6669
  ];
6630
6670
 
6671
+ export type CumulusPalletParachainSystemBlockWeightBlockWeightMode =
6672
+ | { type: 'FullCore'; value: { context: number } }
6673
+ | {
6674
+ type: 'PotentialFullCore';
6675
+ value: { context: number; firstTransactionIndex?: number | undefined; targetWeight: SpWeightsWeightV2Weight };
6676
+ }
6677
+ | { type: 'FractionOfCore'; value: { context: number; firstTransactionIndex?: number | undefined } };
6678
+
6631
6679
  export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
6632
6680
  usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
6633
6681
  paraHeadHash?: H256 | undefined;
@@ -6702,6 +6750,14 @@ export type PolkadotCorePrimitivesOutboundHrmpMessage = {
6702
6750
  data: Bytes;
6703
6751
  };
6704
6752
 
6753
+ export type CumulusPalletParachainSystemPoVMessages = {
6754
+ relayStorageRootOrHash: H256;
6755
+ coreSelector: number;
6756
+ bundleIndex: number;
6757
+ umpMsgCount: number;
6758
+ hrmpOutboundCount: number;
6759
+ };
6760
+
6705
6761
  /**
6706
6762
  * The `Error` enum of this pallet.
6707
6763
  **/
@@ -6741,6 +6797,21 @@ export type PalletMigrationsError =
6741
6797
  **/
6742
6798
  'Ongoing';
6743
6799
 
6800
+ export type PalletMigrationsMbmIsOngoing = 'Yes' | 'No' | 'Stuck';
6801
+
6802
+ export type PalletMigrationsMbmProgress = {
6803
+ currentMigration: number;
6804
+ totalMigrations: number;
6805
+ currentMigrationSteps: number;
6806
+ currentMigrationMaxSteps?: number | undefined;
6807
+ };
6808
+
6809
+ export type PalletMigrationsMbmStatus = {
6810
+ ongoing: PalletMigrationsMbmIsOngoing;
6811
+ progress?: PalletMigrationsMbmProgress | undefined;
6812
+ prefixes: Array<Bytes>;
6813
+ };
6814
+
6744
6815
  export type PalletBalancesBalanceLock = { id: FixedBytes<8>; amount: bigint; reasons: PalletBalancesReasons };
6745
6816
 
6746
6817
  export type PalletBalancesReasons = 'Fee' | 'Misc' | 'All';
@@ -7097,10 +7168,13 @@ export type CumulusPalletXcmpQueueOutboundChannelDetails = {
7097
7168
  signalsExist: boolean;
7098
7169
  firstIndex: number;
7099
7170
  lastIndex: number;
7171
+ flags: CumulusPalletXcmpQueueOutboundChannelFlags;
7100
7172
  };
7101
7173
 
7102
7174
  export type CumulusPalletXcmpQueueOutboundState = 'Ok' | 'Suspended';
7103
7175
 
7176
+ export type CumulusPalletXcmpQueueOutboundChannelFlags = { bits: number };
7177
+
7104
7178
  export type CumulusPalletXcmpQueueQueueConfigData = {
7105
7179
  suspendThreshold: number;
7106
7180
  dropThreshold: number;
@@ -7725,6 +7799,8 @@ export type SpRuntimeTransactionValidityValidTransaction = {
7725
7799
  propagate: boolean;
7726
7800
  };
7727
7801
 
7802
+ export type SpSessionRuntimeApiOpaqueGeneratedSessionKeys = { keys: Bytes; proof: Bytes };
7803
+
7728
7804
  export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
7729
7805
 
7730
7806
  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
  **/