@dedot/chaintypes 0.244.0 → 0.245.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.
@@ -26,12 +26,12 @@ import type {
26
26
  SpWeightsWeightV2Weight,
27
27
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
28
28
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
29
- PolkadotPrimitivesV8PersistedValidationData,
30
- PolkadotPrimitivesV8UpgradeRestriction,
31
- PolkadotPrimitivesV8UpgradeGoAhead,
29
+ PolkadotPrimitivesV9PersistedValidationData,
30
+ PolkadotPrimitivesV9UpgradeRestriction,
31
+ PolkadotPrimitivesV9UpgradeGoAhead,
32
32
  SpTrieStorageProof,
33
33
  CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
34
- PolkadotPrimitivesV8AbridgedHostConfiguration,
34
+ PolkadotPrimitivesV9AbridgedHostConfiguration,
35
35
  CumulusPrimitivesParachainInherentMessageQueueChain,
36
36
  PolkadotParachainPrimitivesPrimitivesId,
37
37
  CumulusPalletParachainSystemParachainInherentInboundMessageId,
@@ -94,6 +94,7 @@ import type {
94
94
  PalletNftsCollectionConfig,
95
95
  PalletNftsItemConfig,
96
96
  StagingXcmV5Location,
97
+ AssetsCommonLocalAndForeignAssetsForeignAssetReserveData,
97
98
  PalletNftFractionalizationDetails,
98
99
  PalletAssetConversionPoolInfo,
99
100
  PalletRecoveryRecoveryConfig,
@@ -154,6 +155,9 @@ import type {
154
155
  PalletBountiesBounty,
155
156
  PalletChildBountiesChildBounty,
156
157
  PolkadotRuntimeCommonImplsVersionedLocatableAsset,
158
+ PalletMultiAssetBountiesBounty,
159
+ PalletMultiAssetBountiesChildBounty,
160
+ FrameSupportTokensFungibleHoldConsideration,
157
161
  PalletRcMigratorAccountsAccount,
158
162
  PalletAhMigratorMigrationStage,
159
163
  PalletAhMigratorBalancesBefore,
@@ -381,12 +385,12 @@ export interface ChainStorage extends GenericChainStorage {
381
385
 
382
386
  /**
383
387
  * The [`PersistedValidationData`] set for this block.
384
- * This value is expected to be set only once per block and it's never stored
385
- * in the trie.
386
388
  *
387
- * @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
389
+ * This value is expected to be set only once by the [`Pallet::set_validation_data`] inherent.
390
+ *
391
+ * @param {Callback<PolkadotPrimitivesV9PersistedValidationData | undefined> =} callback
388
392
  **/
389
- validationData: GenericStorageQuery<() => PolkadotPrimitivesV8PersistedValidationData | undefined>;
393
+ validationData: GenericStorageQuery<() => PolkadotPrimitivesV9PersistedValidationData | undefined>;
390
394
 
391
395
  /**
392
396
  * Were the validation data set to notify the relay chain?
@@ -413,9 +417,9 @@ export interface ChainStorage extends GenericChainStorage {
413
417
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
414
418
  * set after the inherent.
415
419
  *
416
- * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
420
+ * @param {Callback<PolkadotPrimitivesV9UpgradeRestriction | undefined> =} callback
417
421
  **/
418
- upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
422
+ upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeRestriction | undefined>;
419
423
 
420
424
  /**
421
425
  * Optional upgrade go-ahead signal from the relay-chain.
@@ -424,9 +428,9 @@ export interface ChainStorage extends GenericChainStorage {
424
428
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
425
429
  * set after the inherent.
426
430
  *
427
- * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
431
+ * @param {Callback<PolkadotPrimitivesV9UpgradeGoAhead | undefined> =} callback
428
432
  **/
429
- upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
433
+ upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeGoAhead | undefined>;
430
434
 
431
435
  /**
432
436
  * The state proof for the last relay parent block.
@@ -463,9 +467,9 @@ export interface ChainStorage extends GenericChainStorage {
463
467
  *
464
468
  * This data is also absent from the genesis.
465
469
  *
466
- * @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
470
+ * @param {Callback<PolkadotPrimitivesV9AbridgedHostConfiguration | undefined> =} callback
467
471
  **/
468
- hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
472
+ hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV9AbridgedHostConfiguration | undefined>;
469
473
 
470
474
  /**
471
475
  * The last downward message queue chain head we have observed.
@@ -539,19 +543,28 @@ export interface ChainStorage extends GenericChainStorage {
539
543
  /**
540
544
  * Upward messages that were sent in a block.
541
545
  *
542
- * This will be cleared in `on_initialize` of each new block.
546
+ * This will be cleared in `on_initialize` for each new block.
543
547
  *
544
548
  * @param {Callback<Array<Bytes>> =} callback
545
549
  **/
546
550
  upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
547
551
 
548
552
  /**
549
- * Upward messages that are still pending and not yet send to the relay chain.
553
+ * Upward messages that are still pending and not yet sent to the relay chain.
550
554
  *
551
555
  * @param {Callback<Array<Bytes>> =} callback
552
556
  **/
553
557
  pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
554
558
 
559
+ /**
560
+ * Upward signals that are still pending and not yet sent to the relay chain.
561
+ *
562
+ * This will be cleared in `on_finalize` for each block.
563
+ *
564
+ * @param {Callback<Array<Bytes>> =} callback
565
+ **/
566
+ pendingUpwardSignals: GenericStorageQuery<() => Array<Bytes>>;
567
+
555
568
  /**
556
569
  * The factor to multiply the base delivery fee by for UMP.
557
570
  *
@@ -1102,6 +1115,17 @@ export interface ChainStorage extends GenericChainStorage {
1102
1115
  [SpCoreCryptoKeyTypeId, Bytes]
1103
1116
  >;
1104
1117
 
1118
+ /**
1119
+ * Accounts whose keys were set via `SessionInterface` (external path) without
1120
+ * incrementing the consumer reference or placing a key deposit. `do_purge_keys`
1121
+ * only decrements consumers for accounts that were registered through the local
1122
+ * session pallet.
1123
+ *
1124
+ * @param {AccountId32Like} arg
1125
+ * @param {Callback<[] | undefined> =} callback
1126
+ **/
1127
+ externallySetKeys: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
1128
+
1105
1129
  /**
1106
1130
  * Generic pallet storage query
1107
1131
  **/
@@ -1591,6 +1615,14 @@ export interface ChainStorage extends GenericChainStorage {
1591
1615
  **/
1592
1616
  metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata, number>;
1593
1617
 
1618
+ /**
1619
+ * Maps an asset to a list of its configured reserve information.
1620
+ *
1621
+ * @param {number} arg
1622
+ * @param {Callback<Array<[]>> =} callback
1623
+ **/
1624
+ reserves: GenericStorageQuery<(arg: number) => Array<[]>, number>;
1625
+
1594
1626
  /**
1595
1627
  * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1596
1628
  * item has no effect.
@@ -1910,6 +1942,17 @@ export interface ChainStorage extends GenericChainStorage {
1910
1942
  **/
1911
1943
  metadata: GenericStorageQuery<(arg: StagingXcmV5Location) => PalletAssetsAssetMetadata, StagingXcmV5Location>;
1912
1944
 
1945
+ /**
1946
+ * Maps an asset to a list of its configured reserve information.
1947
+ *
1948
+ * @param {StagingXcmV5Location} arg
1949
+ * @param {Callback<Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>> =} callback
1950
+ **/
1951
+ reserves: GenericStorageQuery<
1952
+ (arg: StagingXcmV5Location) => Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>,
1953
+ StagingXcmV5Location
1954
+ >;
1955
+
1913
1956
  /**
1914
1957
  * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1915
1958
  * item has no effect.
@@ -1994,6 +2037,14 @@ export interface ChainStorage extends GenericChainStorage {
1994
2037
  **/
1995
2038
  metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata, number>;
1996
2039
 
2040
+ /**
2041
+ * Maps an asset to a list of its configured reserve information.
2042
+ *
2043
+ * @param {number} arg
2044
+ * @param {Callback<Array<[]>> =} callback
2045
+ **/
2046
+ reserves: GenericStorageQuery<(arg: number) => Array<[]>, number>;
2047
+
1997
2048
  /**
1998
2049
  * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1999
2050
  * item has no effect.
@@ -2674,6 +2725,34 @@ export interface ChainStorage extends GenericChainStorage {
2674
2725
  **/
2675
2726
  lock: GenericStorageQuery<() => [] | undefined>;
2676
2727
 
2728
+ /**
2729
+ * Accounts that failed to be inserted into the bags-list due to locking.
2730
+ * These accounts will be processed with priority in `on_idle` or via `rebag` extrinsic.
2731
+ *
2732
+ * Note: This storage is intentionally unbounded. The following factors make bounding
2733
+ * unnecessary:
2734
+ * 1. The storage usage is temporary - accounts are processed and removed in `on_idle`
2735
+ * 2. The pallet is only locked during snapshot generation, which is weight-limited
2736
+ * 3. Processing happens at multiple accounts per block, clearing even large backlogs quickly
2737
+ * 4. An artificial limit could be exhausted by an attacker, preventing legitimate
2738
+ * auto-rebagging from putting accounts in the correct position
2739
+ *
2740
+ * We don't store the score here - it's always fetched from `ScoreProvider` when processing,
2741
+ * ensuring we use the most up-to-date score (accounts may have been slashed, rewarded, etc.
2742
+ * while waiting in the queue).
2743
+ *
2744
+ * @param {AccountId32Like} arg
2745
+ * @param {Callback<[] | undefined> =} callback
2746
+ **/
2747
+ pendingRebag: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
2748
+
2749
+ /**
2750
+ * Counter for the related counted storage map
2751
+ *
2752
+ * @param {Callback<number> =} callback
2753
+ **/
2754
+ counterForPendingRebag: GenericStorageQuery<() => number>;
2755
+
2677
2756
  /**
2678
2757
  * Generic pallet storage query
2679
2758
  **/
@@ -3053,6 +3132,33 @@ export interface ChainStorage extends GenericChainStorage {
3053
3132
  **/
3054
3133
  minCommission: GenericStorageQuery<() => Perbill>;
3055
3134
 
3135
+ /**
3136
+ * Whether nominators are slashable or not.
3137
+ *
3138
+ * - When set to `true` (default), nominators are slashed along with validators and must wait
3139
+ * the full [`Config::BondingDuration`] before withdrawing unbonded funds.
3140
+ * - When set to `false`, nominators are not slashed, and can unbond in
3141
+ * [`Config::NominatorFastUnbondDuration`] eras instead of the full
3142
+ * [`Config::BondingDuration`] (see [`StakingInterface::nominator_bonding_duration`]).
3143
+ *
3144
+ * @param {Callback<boolean> =} callback
3145
+ **/
3146
+ areNominatorsSlashable: GenericStorageQuery<() => boolean>;
3147
+
3148
+ /**
3149
+ * Per-era snapshot of whether nominators are slashable.
3150
+ *
3151
+ * This is copied from [`AreNominatorsSlashable`] at the start of each era. When processing
3152
+ * offences, we use the value from this storage for the offence era to ensure that the
3153
+ * slashing rules at the time of the offence are applied, not the current rules.
3154
+ *
3155
+ * If an entry does not exist for an era, nominators are assumed to be slashable (default).
3156
+ *
3157
+ * @param {number} arg
3158
+ * @param {Callback<boolean | undefined> =} callback
3159
+ **/
3160
+ erasNominatorsSlashable: GenericStorageQuery<(arg: number) => boolean | undefined, number>;
3161
+
3056
3162
  /**
3057
3163
  * Map from all (unlocked) "controller" accounts to the info regarding the staking.
3058
3164
  *
@@ -3103,6 +3209,25 @@ export interface ChainStorage extends GenericChainStorage {
3103
3209
  **/
3104
3210
  maxValidatorsCount: GenericStorageQuery<() => number | undefined>;
3105
3211
 
3212
+ /**
3213
+ * Tracks the last era in which an account was active as a validator (included in the era's
3214
+ * exposure/snapshot).
3215
+ *
3216
+ * This is used to enforce that accounts who were recently validators must wait the full
3217
+ * [`Config::BondingDuration`] before their funds can be withdrawn, even if they switch to
3218
+ * nominator role. This prevents validators from:
3219
+ * 1. Committing a slashable offence in era N
3220
+ * 2. Switching to nominator role
3221
+ * 3. Using the shorter nominator unbonding duration to withdraw funds before being slashed
3222
+ *
3223
+ * Updated when era snapshots are created (in `ErasStakersPaged`/`ErasStakersOverview`).
3224
+ * Cleaned up when the stash is killed (fully withdrawn/reaped).
3225
+ *
3226
+ * @param {AccountId32Like} arg
3227
+ * @param {Callback<number | undefined> =} callback
3228
+ **/
3229
+ lastValidatorEra: GenericStorageQuery<(arg: AccountId32Like) => number | undefined, AccountId32>;
3230
+
3106
3231
  /**
3107
3232
  * The map from nominator stash key to their nomination preferences, namely the validators that
3108
3233
  * they wish to support.
@@ -3776,6 +3901,95 @@ export interface ChainStorage extends GenericChainStorage {
3776
3901
  **/
3777
3902
  [storage: string]: GenericStorageQuery;
3778
3903
  };
3904
+ /**
3905
+ * Pallet `MultiAssetBounties`'s storage queries
3906
+ **/
3907
+ multiAssetBounties: {
3908
+ /**
3909
+ * Number of bounty proposals that have been made.
3910
+ *
3911
+ * @param {Callback<number> =} callback
3912
+ **/
3913
+ bountyCount: GenericStorageQuery<() => number>;
3914
+
3915
+ /**
3916
+ * Bounties that have been made.
3917
+ *
3918
+ * @param {number} arg
3919
+ * @param {Callback<PalletMultiAssetBountiesBounty | undefined> =} callback
3920
+ **/
3921
+ bounties: GenericStorageQuery<(arg: number) => PalletMultiAssetBountiesBounty | undefined, number>;
3922
+
3923
+ /**
3924
+ * Child bounties that have been added.
3925
+ *
3926
+ * Indexed by `(parent_bounty_id, child_bounty_id)`.
3927
+ *
3928
+ * @param {[number, number]} arg
3929
+ * @param {Callback<PalletMultiAssetBountiesChildBounty | undefined> =} callback
3930
+ **/
3931
+ childBounties: GenericStorageQuery<
3932
+ (arg: [number, number]) => PalletMultiAssetBountiesChildBounty | undefined,
3933
+ [number, number]
3934
+ >;
3935
+
3936
+ /**
3937
+ * Number of active child bounties per parent bounty.
3938
+ *
3939
+ * Indexed by `parent_bounty_id`.
3940
+ *
3941
+ * @param {number} arg
3942
+ * @param {Callback<number> =} callback
3943
+ **/
3944
+ childBountiesPerParent: GenericStorageQuery<(arg: number) => number, number>;
3945
+
3946
+ /**
3947
+ * Number of total child bounties per parent bounty, including completed bounties.
3948
+ *
3949
+ * Indexed by `parent_bounty_id`.
3950
+ *
3951
+ * @param {number} arg
3952
+ * @param {Callback<number> =} callback
3953
+ **/
3954
+ totalChildBountiesPerParent: GenericStorageQuery<(arg: number) => number, number>;
3955
+
3956
+ /**
3957
+ * The cumulative child-bounty value for each parent bounty. To be subtracted from the parent
3958
+ * bounty payout when awarding bounty.
3959
+ *
3960
+ * Indexed by `parent_bounty_id`.
3961
+ *
3962
+ * @param {number} arg
3963
+ * @param {Callback<bigint> =} callback
3964
+ **/
3965
+ childBountiesValuePerParent: GenericStorageQuery<(arg: number) => bigint, number>;
3966
+
3967
+ /**
3968
+ * The consideration cost incurred by the child-/bounty curator for committing to the role.
3969
+ *
3970
+ * Determined by [`pallet::Config::Consideration`]. It is created when the curator accepts the
3971
+ * role, and is either burned if the curator misbehaves or consumed upon successful
3972
+ * completion of the child-/bounty.
3973
+ *
3974
+ * Note: If the parent curator is also assigned to the child-bounty,
3975
+ * the consideration cost is charged only once — when the curator
3976
+ * accepts the role for the parent bounty.
3977
+ *
3978
+ * Indexed by `(parent_bounty_id, child_bounty_id)`.
3979
+ *
3980
+ * @param {[number, number | undefined]} arg
3981
+ * @param {Callback<FrameSupportTokensFungibleHoldConsideration | undefined> =} callback
3982
+ **/
3983
+ curatorDeposit: GenericStorageQuery<
3984
+ (arg: [number, number | undefined]) => FrameSupportTokensFungibleHoldConsideration | undefined,
3985
+ [number, number | undefined]
3986
+ >;
3987
+
3988
+ /**
3989
+ * Generic pallet storage query
3990
+ **/
3991
+ [storage: string]: GenericStorageQuery;
3992
+ };
3779
3993
  /**
3780
3994
  * Pallet `AhOps`'s storage queries
3781
3995
  **/
@@ -21,7 +21,7 @@ import type {
21
21
  SpConsensusSlotsSlotDuration,
22
22
  SpConsensusAuraSr25519AppSr25519Public,
23
23
  SpConsensusSlotsSlot,
24
- SpRuntimeBlock,
24
+ SpRuntimeBlockLazyBlock,
25
25
  SpRuntimeExtrinsicInclusionMode,
26
26
  SpCoreOpaqueMetadata,
27
27
  SpRuntimeTransactionValidityTransactionValidityError,
@@ -67,6 +67,7 @@ import type {
67
67
  PalletRevivePrimitivesCodeUploadReturnValue,
68
68
  PalletRevivePrimitivesContractAccessError,
69
69
  PalletReviveEvmApiDebugRpcTypesTrace,
70
+ SpRuntimeBlock,
70
71
  PalletReviveEvmApiDebugRpcTypesTracerType,
71
72
  PalletRevivePrimitivesBalanceConversionError,
72
73
  } from './types.js';
@@ -155,9 +156,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
155
156
  * Execute the given block.
156
157
  *
157
158
  * @callname: Core_execute_block
158
- * @param {SpRuntimeBlock} block
159
+ * @param {SpRuntimeBlockLazyBlock} block
159
160
  **/
160
- executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
161
+ executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlockLazyBlock) => Promise<[]>>;
161
162
 
162
163
  /**
163
164
  * Initialize a block with the given header and return the runtime executive mode.
@@ -248,11 +249,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
248
249
  * Check that the inherents are valid. The inherent data will vary from chain to chain.
249
250
  *
250
251
  * @callname: BlockBuilder_check_inherents
251
- * @param {SpRuntimeBlock} block
252
+ * @param {SpRuntimeBlockLazyBlock} block
252
253
  * @param {SpInherentsInherentData} data
253
254
  **/
254
255
  checkInherents: GenericRuntimeApiMethod<
255
- (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
256
+ (block: SpRuntimeBlockLazyBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
256
257
  >;
257
258
 
258
259
  /**
@@ -588,6 +589,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
588
589
  >;
589
590
 
590
591
  /**
592
+ * Query delivery fees V2.
593
+ *
591
594
  * Get delivery fees for sending a specific `message` to a `destination`.
592
595
  * These always come in a specific asset, defined by the chain.
593
596
  *
@@ -600,11 +603,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
600
603
  * @callname: XcmPaymentApi_query_delivery_fees
601
604
  * @param {XcmVersionedLocation} destination
602
605
  * @param {XcmVersionedXcm} message
606
+ * @param {XcmVersionedAssetId} asset_id
603
607
  **/
604
608
  queryDeliveryFees: GenericRuntimeApiMethod<
605
609
  (
606
610
  destination: XcmVersionedLocation,
607
611
  message: XcmVersionedXcm,
612
+ assetId: XcmVersionedAssetId,
608
613
  ) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
609
614
  >;
610
615
 
@@ -992,7 +997,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
992
997
  erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
993
998
 
994
999
  /**
995
- * Returns true if validator `account` has pages to be claimed for the given era.
1000
+ * Returns true if a validator `account` has pages to be claimed for the given era.
996
1001
  *
997
1002
  * @callname: StakingApi_pending_rewards
998
1003
  * @param {number} era