@dedot/chaintypes 0.247.0 → 0.249.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 (35) hide show
  1. package/package.json +2 -2
  2. package/paseo-asset-hub/consts.d.ts +87 -0
  3. package/paseo-asset-hub/errors.d.ts +170 -0
  4. package/paseo-asset-hub/events.d.ts +359 -6
  5. package/paseo-asset-hub/index.d.ts +3 -1
  6. package/paseo-asset-hub/query.d.ts +261 -17
  7. package/paseo-asset-hub/runtime.d.ts +11 -6
  8. package/paseo-asset-hub/tx.d.ts +729 -1
  9. package/paseo-asset-hub/types.d.ts +1426 -155
  10. package/paseo-asset-hub/view-functions.d.ts +195 -2
  11. package/polkadot/errors.d.ts +5 -0
  12. package/polkadot/events.d.ts +94 -16
  13. package/polkadot/index.d.ts +1 -1
  14. package/polkadot/query.d.ts +85 -46
  15. package/polkadot/runtime.d.ts +90 -79
  16. package/polkadot/tx.d.ts +81 -32
  17. package/polkadot/types.d.ts +278 -209
  18. package/polkadot-asset-hub/consts.d.ts +87 -0
  19. package/polkadot-asset-hub/errors.d.ts +170 -0
  20. package/polkadot-asset-hub/events.d.ts +359 -6
  21. package/polkadot-asset-hub/index.d.ts +3 -1
  22. package/polkadot-asset-hub/query.d.ts +261 -17
  23. package/polkadot-asset-hub/runtime.d.ts +11 -6
  24. package/polkadot-asset-hub/tx.d.ts +729 -1
  25. package/polkadot-asset-hub/types.d.ts +1426 -155
  26. package/polkadot-asset-hub/view-functions.d.ts +195 -2
  27. package/polkadot-people/consts.d.ts +75 -0
  28. package/polkadot-people/errors.d.ts +170 -0
  29. package/polkadot-people/events.d.ts +377 -3
  30. package/polkadot-people/index.d.ts +5 -4
  31. package/polkadot-people/query.d.ts +169 -16
  32. package/polkadot-people/runtime.d.ts +9 -5
  33. package/polkadot-people/tx.d.ts +1316 -2
  34. package/polkadot-people/types.d.ts +1857 -182
  35. package/polkadot-people/view-functions.d.ts +46 -1
@@ -94,13 +94,13 @@ import type {
94
94
  PalletStakingAsyncRcClientSessionReport,
95
95
  PalletStakingAsyncRcClientOffence,
96
96
  PolkadotRuntimeParachainsConfigurationHostConfiguration,
97
- PolkadotPrimitivesV8ValidatorIndex,
98
- PolkadotPrimitivesV8ValidatorAppPublic,
97
+ PolkadotPrimitivesV9ValidatorIndex,
98
+ PolkadotPrimitivesV9ValidatorAppPublic,
99
99
  PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
100
100
  PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
101
101
  PolkadotParachainPrimitivesPrimitivesId,
102
- PolkadotPrimitivesVstagingScrapedOnChainVotes,
103
- PolkadotPrimitivesV8CoreIndex,
102
+ PolkadotPrimitivesV9ScrapedOnChainVotes,
103
+ PolkadotPrimitivesV9CoreIndex,
104
104
  PolkadotRuntimeParachainsSchedulerCommonAssignment,
105
105
  PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
106
106
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
@@ -108,8 +108,8 @@ import type {
108
108
  PolkadotParachainPrimitivesPrimitivesHeadData,
109
109
  PolkadotRuntimeParachainsParasParaPastCodeMeta,
110
110
  PolkadotRuntimeParachainsParasAuthorizedCodeHashAndExpiry,
111
- PolkadotPrimitivesV8UpgradeGoAhead,
112
- PolkadotPrimitivesV8UpgradeRestriction,
111
+ PolkadotPrimitivesV9UpgradeGoAhead,
112
+ PolkadotPrimitivesV9UpgradeRestriction,
113
113
  PolkadotRuntimeParachainsParasParaGenesisArgs,
114
114
  PolkadotParachainPrimitivesPrimitivesValidationCode,
115
115
  PolkadotRuntimeParachainsInitializerBufferedSessionChange,
@@ -118,12 +118,12 @@ import type {
118
118
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
119
119
  PolkadotRuntimeParachainsHrmpHrmpChannel,
120
120
  PolkadotCorePrimitivesInboundHrmpMessage,
121
- PolkadotPrimitivesV8AssignmentAppPublic,
122
- PolkadotPrimitivesV8SessionInfo,
123
- PolkadotPrimitivesV8ExecutorParams,
124
- PolkadotPrimitivesV8DisputeState,
121
+ PolkadotPrimitivesV9AssignmentAppPublic,
122
+ PolkadotPrimitivesV9SessionInfo,
123
+ PolkadotPrimitivesV9ExecutorParams,
124
+ PolkadotPrimitivesV9DisputeState,
125
125
  PolkadotCorePrimitivesCandidateHash,
126
- PolkadotPrimitivesVstagingPendingSlashes,
126
+ PolkadotPrimitivesV9SlashingPendingSlashes,
127
127
  PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount,
128
128
  PolkadotRuntimeParachainsOnDemandTypesQueueStatusType,
129
129
  BinaryHeapEnqueuedOrder,
@@ -1331,6 +1331,17 @@ export interface ChainStorage extends GenericChainStorage {
1331
1331
  [SpCoreCryptoKeyTypeId, Bytes]
1332
1332
  >;
1333
1333
 
1334
+ /**
1335
+ * Accounts whose keys were set via `SessionInterface` (external path) without
1336
+ * incrementing the consumer reference or placing a key deposit. `do_purge_keys`
1337
+ * only decrements consumers for accounts that were registered through the local
1338
+ * session pallet.
1339
+ *
1340
+ * @param {AccountId32Like} arg
1341
+ * @param {Callback<[] | undefined> =} callback
1342
+ **/
1343
+ externallySetKeys: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
1344
+
1334
1345
  /**
1335
1346
  * Generic pallet storage query
1336
1347
  **/
@@ -2008,6 +2019,34 @@ export interface ChainStorage extends GenericChainStorage {
2008
2019
  **/
2009
2020
  lock: GenericStorageQuery<() => [] | undefined>;
2010
2021
 
2022
+ /**
2023
+ * Accounts that failed to be inserted into the bags-list due to locking.
2024
+ * These accounts will be processed with priority in `on_idle` or via `rebag` extrinsic.
2025
+ *
2026
+ * Note: This storage is intentionally unbounded. The following factors make bounding
2027
+ * unnecessary:
2028
+ * 1. The storage usage is temporary - accounts are processed and removed in `on_idle`
2029
+ * 2. The pallet is only locked during snapshot generation, which is weight-limited
2030
+ * 3. Processing happens at multiple accounts per block, clearing even large backlogs quickly
2031
+ * 4. An artificial limit could be exhausted by an attacker, preventing legitimate
2032
+ * auto-rebagging from putting accounts in the correct position
2033
+ *
2034
+ * We don't store the score here - it's always fetched from `ScoreProvider` when processing,
2035
+ * ensuring we use the most up-to-date score (accounts may have been slashed, rewarded, etc.
2036
+ * while waiting in the queue).
2037
+ *
2038
+ * @param {AccountId32Like} arg
2039
+ * @param {Callback<[] | undefined> =} callback
2040
+ **/
2041
+ pendingRebag: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
2042
+
2043
+ /**
2044
+ * Counter for the related counted storage map
2045
+ *
2046
+ * @param {Callback<number> =} callback
2047
+ **/
2048
+ counterForPendingRebag: GenericStorageQuery<() => number>;
2049
+
2011
2050
  /**
2012
2051
  * Generic pallet storage query
2013
2052
  **/
@@ -2445,17 +2484,17 @@ export interface ChainStorage extends GenericChainStorage {
2445
2484
  * All the validators actively participating in parachain consensus.
2446
2485
  * Indices are into the broader validator set.
2447
2486
  *
2448
- * @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex>> =} callback
2487
+ * @param {Callback<Array<PolkadotPrimitivesV9ValidatorIndex>> =} callback
2449
2488
  **/
2450
- activeValidatorIndices: GenericStorageQuery<() => Array<PolkadotPrimitivesV8ValidatorIndex>>;
2489
+ activeValidatorIndices: GenericStorageQuery<() => Array<PolkadotPrimitivesV9ValidatorIndex>>;
2451
2490
 
2452
2491
  /**
2453
2492
  * The parachain attestation keys of the validators actively participating in parachain
2454
2493
  * consensus. This should be the same length as `ActiveValidatorIndices`.
2455
2494
  *
2456
- * @param {Callback<Array<PolkadotPrimitivesV8ValidatorAppPublic>> =} callback
2495
+ * @param {Callback<Array<PolkadotPrimitivesV9ValidatorAppPublic>> =} callback
2457
2496
  **/
2458
- activeValidatorKeys: GenericStorageQuery<() => Array<PolkadotPrimitivesV8ValidatorAppPublic>>;
2497
+ activeValidatorKeys: GenericStorageQuery<() => Array<PolkadotPrimitivesV9ValidatorAppPublic>>;
2459
2498
 
2460
2499
  /**
2461
2500
  * All allowed relay-parents.
@@ -2514,9 +2553,9 @@ export interface ChainStorage extends GenericChainStorage {
2514
2553
  /**
2515
2554
  * Scraped on chain data for extracting resolved disputes as well as backing votes.
2516
2555
  *
2517
- * @param {Callback<PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined> =} callback
2556
+ * @param {Callback<PolkadotPrimitivesV9ScrapedOnChainVotes | undefined> =} callback
2518
2557
  **/
2519
- onChainVotes: GenericStorageQuery<() => PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined>;
2558
+ onChainVotes: GenericStorageQuery<() => PolkadotPrimitivesV9ScrapedOnChainVotes | undefined>;
2520
2559
 
2521
2560
  /**
2522
2561
  * Generic pallet storage query
@@ -2536,9 +2575,9 @@ export interface ChainStorage extends GenericChainStorage {
2536
2575
  * multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
2537
2576
  * upper bound at 10k.
2538
2577
  *
2539
- * @param {Callback<Array<Array<PolkadotPrimitivesV8ValidatorIndex>>> =} callback
2578
+ * @param {Callback<Array<Array<PolkadotPrimitivesV9ValidatorIndex>>> =} callback
2540
2579
  **/
2541
- validatorGroups: GenericStorageQuery<() => Array<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
2580
+ validatorGroups: GenericStorageQuery<() => Array<Array<PolkadotPrimitivesV9ValidatorIndex>>>;
2542
2581
 
2543
2582
  /**
2544
2583
  * The block number where the session start occurred. Used to track how many group rotations
@@ -2557,10 +2596,10 @@ export interface ChainStorage extends GenericChainStorage {
2557
2596
  * One entry for each availability core. The `VecDeque` represents the assignments to be
2558
2597
  * scheduled on that core.
2559
2598
  *
2560
- * @param {Callback<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>> =} callback
2599
+ * @param {Callback<Array<[PolkadotPrimitivesV9CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>> =} callback
2561
2600
  **/
2562
2601
  claimQueue: GenericStorageQuery<
2563
- () => Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>
2602
+ () => Array<[PolkadotPrimitivesV9CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>
2564
2603
  >;
2565
2604
 
2566
2605
  /**
@@ -2763,10 +2802,10 @@ export interface ChainStorage extends GenericChainStorage {
2763
2802
  * the format will require migration of parachains.
2764
2803
  *
2765
2804
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2766
- * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
2805
+ * @param {Callback<PolkadotPrimitivesV9UpgradeGoAhead | undefined> =} callback
2767
2806
  **/
2768
2807
  upgradeGoAheadSignal: GenericStorageQuery<
2769
- (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeGoAhead | undefined,
2808
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV9UpgradeGoAhead | undefined,
2770
2809
  PolkadotParachainPrimitivesPrimitivesId
2771
2810
  >;
2772
2811
 
@@ -2782,10 +2821,10 @@ export interface ChainStorage extends GenericChainStorage {
2782
2821
  * the format will require migration of parachains.
2783
2822
  *
2784
2823
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2785
- * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
2824
+ * @param {Callback<PolkadotPrimitivesV9UpgradeRestriction | undefined> =} callback
2786
2825
  **/
2787
2826
  upgradeRestrictionSignal: GenericStorageQuery<
2788
- (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeRestriction | undefined,
2827
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV9UpgradeRestriction | undefined,
2789
2828
  PolkadotParachainPrimitivesPrimitivesId
2790
2829
  >;
2791
2830
 
@@ -3127,9 +3166,9 @@ export interface ChainStorage extends GenericChainStorage {
3127
3166
  * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
3128
3167
  * When in doubt, use `Sessions` API instead.
3129
3168
  *
3130
- * @param {Callback<Array<PolkadotPrimitivesV8AssignmentAppPublic>> =} callback
3169
+ * @param {Callback<Array<PolkadotPrimitivesV9AssignmentAppPublic>> =} callback
3131
3170
  **/
3132
- assignmentKeysUnsafe: GenericStorageQuery<() => Array<PolkadotPrimitivesV8AssignmentAppPublic>>;
3171
+ assignmentKeysUnsafe: GenericStorageQuery<() => Array<PolkadotPrimitivesV9AssignmentAppPublic>>;
3133
3172
 
3134
3173
  /**
3135
3174
  * The earliest session for which previous session info is stored.
@@ -3144,9 +3183,9 @@ export interface ChainStorage extends GenericChainStorage {
3144
3183
  * Does not have any entries before the session index in the first session change notification.
3145
3184
  *
3146
3185
  * @param {number} arg
3147
- * @param {Callback<PolkadotPrimitivesV8SessionInfo | undefined> =} callback
3186
+ * @param {Callback<PolkadotPrimitivesV9SessionInfo | undefined> =} callback
3148
3187
  **/
3149
- sessions: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV8SessionInfo | undefined, number>;
3188
+ sessions: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV9SessionInfo | undefined, number>;
3150
3189
 
3151
3190
  /**
3152
3191
  * The validator account keys of the validators actively participating in parachain consensus.
@@ -3160,9 +3199,9 @@ export interface ChainStorage extends GenericChainStorage {
3160
3199
  * Executor parameter set for a given session index
3161
3200
  *
3162
3201
  * @param {number} arg
3163
- * @param {Callback<PolkadotPrimitivesV8ExecutorParams | undefined> =} callback
3202
+ * @param {Callback<PolkadotPrimitivesV9ExecutorParams | undefined> =} callback
3164
3203
  **/
3165
- sessionExecutorParams: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV8ExecutorParams | undefined, number>;
3204
+ sessionExecutorParams: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV9ExecutorParams | undefined, number>;
3166
3205
 
3167
3206
  /**
3168
3207
  * Generic pallet storage query
@@ -3185,10 +3224,10 @@ export interface ChainStorage extends GenericChainStorage {
3185
3224
  * All ongoing or concluded disputes for the last several sessions.
3186
3225
  *
3187
3226
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3188
- * @param {Callback<PolkadotPrimitivesV8DisputeState | undefined> =} callback
3227
+ * @param {Callback<PolkadotPrimitivesV9DisputeState | undefined> =} callback
3189
3228
  **/
3190
3229
  disputes: GenericStorageQuery<
3191
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV8DisputeState | undefined,
3230
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV9DisputeState | undefined,
3192
3231
  [number, PolkadotCorePrimitivesCandidateHash]
3193
3232
  >;
3194
3233
 
@@ -3197,10 +3236,10 @@ export interface ChainStorage extends GenericChainStorage {
3197
3236
  * This storage is used for slashing.
3198
3237
  *
3199
3238
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3200
- * @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex> | undefined> =} callback
3239
+ * @param {Callback<Array<PolkadotPrimitivesV9ValidatorIndex> | undefined> =} callback
3201
3240
  **/
3202
3241
  backersOnDisputes: GenericStorageQuery<
3203
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV8ValidatorIndex> | undefined,
3242
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV9ValidatorIndex> | undefined,
3204
3243
  [number, PolkadotCorePrimitivesCandidateHash]
3205
3244
  >;
3206
3245
 
@@ -3239,10 +3278,10 @@ export interface ChainStorage extends GenericChainStorage {
3239
3278
  * Validators pending dispute slashes.
3240
3279
  *
3241
3280
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3242
- * @param {Callback<PolkadotPrimitivesVstagingPendingSlashes | undefined> =} callback
3281
+ * @param {Callback<PolkadotPrimitivesV9SlashingPendingSlashes | undefined> =} callback
3243
3282
  **/
3244
3283
  unappliedSlashes: GenericStorageQuery<
3245
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesVstagingPendingSlashes | undefined,
3284
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV9SlashingPendingSlashes | undefined,
3246
3285
  [number, PolkadotCorePrimitivesCandidateHash]
3247
3286
  >;
3248
3287
 
@@ -3295,12 +3334,12 @@ export interface ChainStorage extends GenericChainStorage {
3295
3334
  /**
3296
3335
  * Queue entries that are currently bound to a particular core due to core affinity.
3297
3336
  *
3298
- * @param {PolkadotPrimitivesV8CoreIndex} arg
3337
+ * @param {PolkadotPrimitivesV9CoreIndex} arg
3299
3338
  * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3300
3339
  **/
3301
3340
  affinityEntries: GenericStorageQuery<
3302
- (arg: PolkadotPrimitivesV8CoreIndex) => BinaryHeapEnqueuedOrder,
3303
- PolkadotPrimitivesV8CoreIndex
3341
+ (arg: PolkadotPrimitivesV9CoreIndex) => BinaryHeapEnqueuedOrder,
3342
+ PolkadotPrimitivesV9CoreIndex
3304
3343
  >;
3305
3344
 
3306
3345
  /**
@@ -3333,12 +3372,12 @@ export interface ChainStorage extends GenericChainStorage {
3333
3372
  * Assignments as of the given block number. They will go into state once the block number is
3334
3373
  * reached (and replace whatever was in there before).
3335
3374
  *
3336
- * @param {[number, PolkadotPrimitivesV8CoreIndex]} arg
3375
+ * @param {[number, PolkadotPrimitivesV9CoreIndex]} arg
3337
3376
  * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
3338
3377
  **/
3339
3378
  coreSchedules: GenericStorageQuery<
3340
- (arg: [number, PolkadotPrimitivesV8CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3341
- [number, PolkadotPrimitivesV8CoreIndex]
3379
+ (arg: [number, PolkadotPrimitivesV9CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3380
+ [number, PolkadotPrimitivesV9CoreIndex]
3342
3381
  >;
3343
3382
 
3344
3383
  /**
@@ -3347,12 +3386,12 @@ export interface ChainStorage extends GenericChainStorage {
3347
3386
  * They will be picked from `PendingAssignments` once we reach the scheduled block number in
3348
3387
  * `PendingAssignments`.
3349
3388
  *
3350
- * @param {PolkadotPrimitivesV8CoreIndex} arg
3389
+ * @param {PolkadotPrimitivesV9CoreIndex} arg
3351
3390
  * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
3352
3391
  **/
3353
3392
  coreDescriptors: GenericStorageQuery<
3354
- (arg: PolkadotPrimitivesV8CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3355
- PolkadotPrimitivesV8CoreIndex
3393
+ (arg: PolkadotPrimitivesV9CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3394
+ PolkadotPrimitivesV9CoreIndex
3356
3395
  >;
3357
3396
 
3358
3397
  /**