@dedot/chaintypes 0.67.0 → 0.68.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.
package/paseo/query.d.ts CHANGED
@@ -86,23 +86,25 @@ import type {
86
86
  PalletNominationPoolsSubPools,
87
87
  PalletNominationPoolsClaimPermission,
88
88
  PalletFastUnstakeUnstakeRequest,
89
+ PalletDelegatedStakingDelegation,
90
+ PalletDelegatedStakingAgentLedger,
89
91
  PolkadotRuntimeParachainsConfigurationHostConfiguration,
90
- PolkadotPrimitivesV7ValidatorIndex,
91
- PolkadotPrimitivesV7ValidatorAppPublic,
92
+ PolkadotPrimitivesV8ValidatorIndex,
93
+ PolkadotPrimitivesV8ValidatorAppPublic,
92
94
  PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
93
95
  PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
94
96
  PolkadotParachainPrimitivesPrimitivesId,
95
- PolkadotPrimitivesV7ScrapedOnChainVotes,
97
+ PolkadotPrimitivesV8ScrapedOnChainVotes,
96
98
  PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
97
- PolkadotPrimitivesV7CoreIndex,
99
+ PolkadotPrimitivesV8CoreIndex,
98
100
  PolkadotRuntimeParachainsSchedulerPalletParasEntry,
99
101
  PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
100
102
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
101
103
  PolkadotRuntimeParachainsParasParaLifecycle,
102
104
  PolkadotParachainPrimitivesPrimitivesHeadData,
103
105
  PolkadotRuntimeParachainsParasParaPastCodeMeta,
104
- PolkadotPrimitivesV7UpgradeGoAhead,
105
- PolkadotPrimitivesV7UpgradeRestriction,
106
+ PolkadotPrimitivesV8UpgradeGoAhead,
107
+ PolkadotPrimitivesV8UpgradeRestriction,
106
108
  PolkadotRuntimeParachainsParasParaGenesisArgs,
107
109
  PolkadotParachainPrimitivesPrimitivesValidationCode,
108
110
  PolkadotRuntimeParachainsInitializerBufferedSessionChange,
@@ -111,14 +113,14 @@ import type {
111
113
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
112
114
  PolkadotRuntimeParachainsHrmpHrmpChannel,
113
115
  PolkadotCorePrimitivesInboundHrmpMessage,
114
- PolkadotPrimitivesV7AssignmentAppPublic,
115
- PolkadotPrimitivesV7SessionInfo,
116
- PolkadotPrimitivesV7ExecutorParams,
117
- PolkadotPrimitivesV7DisputeState,
116
+ PolkadotPrimitivesV8AssignmentAppPublic,
117
+ PolkadotPrimitivesV8SessionInfo,
118
+ PolkadotPrimitivesV8ExecutorParams,
119
+ PolkadotPrimitivesV8DisputeState,
118
120
  PolkadotCorePrimitivesCandidateHash,
119
- PolkadotPrimitivesV7SlashingPendingSlashes,
120
- PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount,
121
- PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType,
121
+ PolkadotPrimitivesV8SlashingPendingSlashes,
122
+ PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount,
123
+ PolkadotRuntimeParachainsOnDemandTypesQueueStatusType,
122
124
  BinaryHeapEnqueuedOrder,
123
125
  PolkadotRuntimeParachainsAssignerCoretimeSchedule,
124
126
  PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
@@ -2228,6 +2230,56 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2228
2230
  **/
2229
2231
  [storage: string]: GenericStorageQuery<Rv>;
2230
2232
  };
2233
+ /**
2234
+ * Pallet `DelegatedStaking`'s storage queries
2235
+ **/
2236
+ delegatedStaking: {
2237
+ /**
2238
+ * Map of Delegators to their `Delegation`.
2239
+ *
2240
+ * Implementation note: We are not using a double map with `delegator` and `agent` account
2241
+ * as keys since we want to restrict delegators to delegate only to one account at a time.
2242
+ *
2243
+ * @param {AccountId32Like} arg
2244
+ * @param {Callback<PalletDelegatedStakingDelegation | undefined> =} callback
2245
+ **/
2246
+ delegators: GenericStorageQuery<
2247
+ Rv,
2248
+ (arg: AccountId32Like) => PalletDelegatedStakingDelegation | undefined,
2249
+ AccountId32
2250
+ >;
2251
+
2252
+ /**
2253
+ * Counter for the related counted storage map
2254
+ *
2255
+ * @param {Callback<number> =} callback
2256
+ **/
2257
+ counterForDelegators: GenericStorageQuery<Rv, () => number>;
2258
+
2259
+ /**
2260
+ * Map of `Agent` to their `Ledger`.
2261
+ *
2262
+ * @param {AccountId32Like} arg
2263
+ * @param {Callback<PalletDelegatedStakingAgentLedger | undefined> =} callback
2264
+ **/
2265
+ agents: GenericStorageQuery<
2266
+ Rv,
2267
+ (arg: AccountId32Like) => PalletDelegatedStakingAgentLedger | undefined,
2268
+ AccountId32
2269
+ >;
2270
+
2271
+ /**
2272
+ * Counter for the related counted storage map
2273
+ *
2274
+ * @param {Callback<number> =} callback
2275
+ **/
2276
+ counterForAgents: GenericStorageQuery<Rv, () => number>;
2277
+
2278
+ /**
2279
+ * Generic pallet storage query
2280
+ **/
2281
+ [storage: string]: GenericStorageQuery<Rv>;
2282
+ };
2231
2283
  /**
2232
2284
  * Pallet `Configuration`'s storage queries
2233
2285
  **/
@@ -2283,17 +2335,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2283
2335
  * All the validators actively participating in parachain consensus.
2284
2336
  * Indices are into the broader validator set.
2285
2337
  *
2286
- * @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex>> =} callback
2338
+ * @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex>> =} callback
2287
2339
  **/
2288
- activeValidatorIndices: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorIndex>>;
2340
+ activeValidatorIndices: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV8ValidatorIndex>>;
2289
2341
 
2290
2342
  /**
2291
2343
  * The parachain attestation keys of the validators actively participating in parachain
2292
2344
  * consensus. This should be the same length as `ActiveValidatorIndices`.
2293
2345
  *
2294
- * @param {Callback<Array<PolkadotPrimitivesV7ValidatorAppPublic>> =} callback
2346
+ * @param {Callback<Array<PolkadotPrimitivesV8ValidatorAppPublic>> =} callback
2295
2347
  **/
2296
- activeValidatorKeys: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorAppPublic>>;
2348
+ activeValidatorKeys: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV8ValidatorAppPublic>>;
2297
2349
 
2298
2350
  /**
2299
2351
  * All allowed relay-parents.
@@ -2353,9 +2405,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2353
2405
  /**
2354
2406
  * Scraped on chain data for extracting resolved disputes as well as backing votes.
2355
2407
  *
2356
- * @param {Callback<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined> =} callback
2408
+ * @param {Callback<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined> =} callback
2357
2409
  **/
2358
- onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>;
2410
+ onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>;
2359
2411
 
2360
2412
  /**
2361
2413
  * Generic pallet storage query
@@ -2375,9 +2427,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2375
2427
  * multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
2376
2428
  * upper bound at 10k.
2377
2429
  *
2378
- * @param {Callback<Array<Array<PolkadotPrimitivesV7ValidatorIndex>>> =} callback
2430
+ * @param {Callback<Array<Array<PolkadotPrimitivesV8ValidatorIndex>>> =} callback
2379
2431
  **/
2380
- validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
2432
+ validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
2381
2433
 
2382
2434
  /**
2383
2435
  * One entry for each availability core. The i'th parachain belongs to the i'th core, with the
@@ -2409,11 +2461,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2409
2461
  * scheduled on that core. The value contained here will not be valid after the end of
2410
2462
  * a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
2411
2463
  *
2412
- * @param {Callback<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2464
+ * @param {Callback<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2413
2465
  **/
2414
2466
  claimQueue: GenericStorageQuery<
2415
2467
  Rv,
2416
- () => Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2468
+ () => Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2417
2469
  >;
2418
2470
 
2419
2471
  /**
@@ -2612,11 +2664,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2612
2664
  * the format will require migration of parachains.
2613
2665
  *
2614
2666
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2615
- * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
2667
+ * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
2616
2668
  **/
2617
2669
  upgradeGoAheadSignal: GenericStorageQuery<
2618
2670
  Rv,
2619
- (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeGoAhead | undefined,
2671
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeGoAhead | undefined,
2620
2672
  PolkadotParachainPrimitivesPrimitivesId
2621
2673
  >;
2622
2674
 
@@ -2632,11 +2684,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2632
2684
  * the format will require migration of parachains.
2633
2685
  *
2634
2686
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2635
- * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
2687
+ * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
2636
2688
  **/
2637
2689
  upgradeRestrictionSignal: GenericStorageQuery<
2638
2690
  Rv,
2639
- (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeRestriction | undefined,
2691
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeRestriction | undefined,
2640
2692
  PolkadotParachainPrimitivesPrimitivesId
2641
2693
  >;
2642
2694
 
@@ -3003,9 +3055,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3003
3055
  * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
3004
3056
  * When in doubt, use `Sessions` API instead.
3005
3057
  *
3006
- * @param {Callback<Array<PolkadotPrimitivesV7AssignmentAppPublic>> =} callback
3058
+ * @param {Callback<Array<PolkadotPrimitivesV8AssignmentAppPublic>> =} callback
3007
3059
  **/
3008
- assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7AssignmentAppPublic>>;
3060
+ assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV8AssignmentAppPublic>>;
3009
3061
 
3010
3062
  /**
3011
3063
  * The earliest session for which previous session info is stored.
@@ -3020,9 +3072,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3020
3072
  * Does not have any entries before the session index in the first session change notification.
3021
3073
  *
3022
3074
  * @param {number} arg
3023
- * @param {Callback<PolkadotPrimitivesV7SessionInfo | undefined> =} callback
3075
+ * @param {Callback<PolkadotPrimitivesV8SessionInfo | undefined> =} callback
3024
3076
  **/
3025
- sessions: GenericStorageQuery<Rv, (arg: number) => PolkadotPrimitivesV7SessionInfo | undefined, number>;
3077
+ sessions: GenericStorageQuery<Rv, (arg: number) => PolkadotPrimitivesV8SessionInfo | undefined, number>;
3026
3078
 
3027
3079
  /**
3028
3080
  * The validator account keys of the validators actively participating in parachain consensus.
@@ -3036,11 +3088,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3036
3088
  * Executor parameter set for a given session index
3037
3089
  *
3038
3090
  * @param {number} arg
3039
- * @param {Callback<PolkadotPrimitivesV7ExecutorParams | undefined> =} callback
3091
+ * @param {Callback<PolkadotPrimitivesV8ExecutorParams | undefined> =} callback
3040
3092
  **/
3041
3093
  sessionExecutorParams: GenericStorageQuery<
3042
3094
  Rv,
3043
- (arg: number) => PolkadotPrimitivesV7ExecutorParams | undefined,
3095
+ (arg: number) => PolkadotPrimitivesV8ExecutorParams | undefined,
3044
3096
  number
3045
3097
  >;
3046
3098
 
@@ -3065,11 +3117,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3065
3117
  * All ongoing or concluded disputes for the last several sessions.
3066
3118
  *
3067
3119
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3068
- * @param {Callback<PolkadotPrimitivesV7DisputeState | undefined> =} callback
3120
+ * @param {Callback<PolkadotPrimitivesV8DisputeState | undefined> =} callback
3069
3121
  **/
3070
3122
  disputes: GenericStorageQuery<
3071
3123
  Rv,
3072
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7DisputeState | undefined,
3124
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV8DisputeState | undefined,
3073
3125
  [number, PolkadotCorePrimitivesCandidateHash]
3074
3126
  >;
3075
3127
 
@@ -3078,11 +3130,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3078
3130
  * This storage is used for slashing.
3079
3131
  *
3080
3132
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3081
- * @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex> | undefined> =} callback
3133
+ * @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex> | undefined> =} callback
3082
3134
  **/
3083
3135
  backersOnDisputes: GenericStorageQuery<
3084
3136
  Rv,
3085
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV7ValidatorIndex> | undefined,
3137
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV8ValidatorIndex> | undefined,
3086
3138
  [number, PolkadotCorePrimitivesCandidateHash]
3087
3139
  >;
3088
3140
 
@@ -3122,11 +3174,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3122
3174
  * Validators pending dispute slashes.
3123
3175
  *
3124
3176
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3125
- * @param {Callback<PolkadotPrimitivesV7SlashingPendingSlashes | undefined> =} callback
3177
+ * @param {Callback<PolkadotPrimitivesV8SlashingPendingSlashes | undefined> =} callback
3126
3178
  **/
3127
3179
  unappliedSlashes: GenericStorageQuery<
3128
3180
  Rv,
3129
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7SlashingPendingSlashes | undefined,
3181
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV8SlashingPendingSlashes | undefined,
3130
3182
  [number, PolkadotCorePrimitivesCandidateHash]
3131
3183
  >;
3132
3184
 
@@ -3153,22 +3205,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3153
3205
  * `ParaId` on two or more `CoreIndex`es.
3154
3206
  *
3155
3207
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3156
- * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined> =} callback
3208
+ * @param {Callback<PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined> =} callback
3157
3209
  **/
3158
3210
  paraIdAffinity: GenericStorageQuery<
3159
3211
  Rv,
3160
3212
  (
3161
3213
  arg: PolkadotParachainPrimitivesPrimitivesId,
3162
- ) => PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined,
3214
+ ) => PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined,
3163
3215
  PolkadotParachainPrimitivesPrimitivesId
3164
3216
  >;
3165
3217
 
3166
3218
  /**
3167
3219
  * Overall status of queue (both free + affinity entries)
3168
3220
  *
3169
- * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType> =} callback
3221
+ * @param {Callback<PolkadotRuntimeParachainsOnDemandTypesQueueStatusType> =} callback
3170
3222
  **/
3171
- queueStatus: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>;
3223
+ queueStatus: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsOnDemandTypesQueueStatusType>;
3172
3224
 
3173
3225
  /**
3174
3226
  * Priority queue for all orders which don't yet (or not any more) have any core affinity.
@@ -3180,13 +3232,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3180
3232
  /**
3181
3233
  * Queue entries that are currently bound to a particular core due to core affinity.
3182
3234
  *
3183
- * @param {PolkadotPrimitivesV7CoreIndex} arg
3235
+ * @param {PolkadotPrimitivesV8CoreIndex} arg
3184
3236
  * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3185
3237
  **/
3186
3238
  affinityEntries: GenericStorageQuery<
3187
3239
  Rv,
3188
- (arg: PolkadotPrimitivesV7CoreIndex) => BinaryHeapEnqueuedOrder,
3189
- PolkadotPrimitivesV7CoreIndex
3240
+ (arg: PolkadotPrimitivesV8CoreIndex) => BinaryHeapEnqueuedOrder,
3241
+ PolkadotPrimitivesV8CoreIndex
3190
3242
  >;
3191
3243
 
3192
3244
  /**
@@ -3211,13 +3263,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3211
3263
  * Assignments as of the given block number. They will go into state once the block number is
3212
3264
  * reached (and replace whatever was in there before).
3213
3265
  *
3214
- * @param {[number, PolkadotPrimitivesV7CoreIndex]} arg
3266
+ * @param {[number, PolkadotPrimitivesV8CoreIndex]} arg
3215
3267
  * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
3216
3268
  **/
3217
3269
  coreSchedules: GenericStorageQuery<
3218
3270
  Rv,
3219
- (arg: [number, PolkadotPrimitivesV7CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3220
- [number, PolkadotPrimitivesV7CoreIndex]
3271
+ (arg: [number, PolkadotPrimitivesV8CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3272
+ [number, PolkadotPrimitivesV8CoreIndex]
3221
3273
  >;
3222
3274
 
3223
3275
  /**
@@ -3226,13 +3278,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3226
3278
  * They will be picked from `PendingAssignments` once we reach the scheduled block number in
3227
3279
  * `PendingAssignments`.
3228
3280
  *
3229
- * @param {PolkadotPrimitivesV7CoreIndex} arg
3281
+ * @param {PolkadotPrimitivesV8CoreIndex} arg
3230
3282
  * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
3231
3283
  **/
3232
3284
  coreDescriptors: GenericStorageQuery<
3233
3285
  Rv,
3234
- (arg: PolkadotPrimitivesV7CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3235
- PolkadotPrimitivesV7CoreIndex
3286
+ (arg: PolkadotPrimitivesV8CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3287
+ PolkadotPrimitivesV8CoreIndex
3236
3288
  >;
3237
3289
 
3238
3290
  /**