@dedot/chaintypes 0.230.0 → 0.232.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
@@ -62,6 +62,8 @@ import type {
62
62
  PalletTreasurySpendStatus,
63
63
  PalletConvictionVotingVoteVoting,
64
64
  PalletReferendaReferendumInfo,
65
+ PaseoRuntimeRuntimeParametersValue,
66
+ PaseoRuntimeRuntimeParametersKey,
65
67
  PolkadotRuntimeCommonClaimsStatementKind,
66
68
  PalletVestingVestingInfo,
67
69
  PalletVestingReleases,
@@ -84,23 +86,25 @@ import type {
84
86
  PalletNominationPoolsSubPools,
85
87
  PalletNominationPoolsClaimPermission,
86
88
  PalletFastUnstakeUnstakeRequest,
89
+ PalletDelegatedStakingDelegation,
90
+ PalletDelegatedStakingAgentLedger,
87
91
  PolkadotRuntimeParachainsConfigurationHostConfiguration,
88
- PolkadotPrimitivesV7ValidatorIndex,
89
- PolkadotPrimitivesV7ValidatorAppPublic,
92
+ PolkadotPrimitivesV8ValidatorIndex,
93
+ PolkadotPrimitivesV8ValidatorAppPublic,
90
94
  PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
91
95
  PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
92
96
  PolkadotParachainPrimitivesPrimitivesId,
93
- PolkadotPrimitivesV7ScrapedOnChainVotes,
97
+ PolkadotPrimitivesV8ScrapedOnChainVotes,
94
98
  PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
95
- PolkadotPrimitivesV7CoreIndex,
99
+ PolkadotPrimitivesV8CoreIndex,
96
100
  PolkadotRuntimeParachainsSchedulerPalletParasEntry,
97
101
  PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
98
102
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
99
103
  PolkadotRuntimeParachainsParasParaLifecycle,
100
104
  PolkadotParachainPrimitivesPrimitivesHeadData,
101
105
  PolkadotRuntimeParachainsParasParaPastCodeMeta,
102
- PolkadotPrimitivesV7UpgradeGoAhead,
103
- PolkadotPrimitivesV7UpgradeRestriction,
106
+ PolkadotPrimitivesV8UpgradeGoAhead,
107
+ PolkadotPrimitivesV8UpgradeRestriction,
104
108
  PolkadotRuntimeParachainsParasParaGenesisArgs,
105
109
  PolkadotParachainPrimitivesPrimitivesValidationCode,
106
110
  PolkadotRuntimeParachainsInitializerBufferedSessionChange,
@@ -109,14 +113,14 @@ import type {
109
113
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
110
114
  PolkadotRuntimeParachainsHrmpHrmpChannel,
111
115
  PolkadotCorePrimitivesInboundHrmpMessage,
112
- PolkadotPrimitivesV7AssignmentAppPublic,
113
- PolkadotPrimitivesV7SessionInfo,
114
- PolkadotPrimitivesV7ExecutorParams,
115
- PolkadotPrimitivesV7DisputeState,
116
+ PolkadotPrimitivesV8AssignmentAppPublic,
117
+ PolkadotPrimitivesV8SessionInfo,
118
+ PolkadotPrimitivesV8ExecutorParams,
119
+ PolkadotPrimitivesV8DisputeState,
116
120
  PolkadotCorePrimitivesCandidateHash,
117
- PolkadotPrimitivesV7SlashingPendingSlashes,
118
- PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount,
119
- PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType,
121
+ PolkadotPrimitivesV8SlashingPendingSlashes,
122
+ PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount,
123
+ PolkadotRuntimeParachainsOnDemandTypesQueueStatusType,
120
124
  BinaryHeapEnqueuedOrder,
121
125
  PolkadotRuntimeParachainsAssignerCoretimeSchedule,
122
126
  PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
@@ -1555,6 +1559,26 @@ export interface ChainStorage extends GenericChainStorage {
1555
1559
  **/
1556
1560
  [storage: string]: GenericStorageQuery;
1557
1561
  };
1562
+ /**
1563
+ * Pallet `Parameters`'s storage queries
1564
+ **/
1565
+ parameters: {
1566
+ /**
1567
+ * Stored parameters.
1568
+ *
1569
+ * @param {PaseoRuntimeRuntimeParametersKey} arg
1570
+ * @param {Callback<PaseoRuntimeRuntimeParametersValue | undefined> =} callback
1571
+ **/
1572
+ parameters: GenericStorageQuery<
1573
+ (arg: PaseoRuntimeRuntimeParametersKey) => PaseoRuntimeRuntimeParametersValue | undefined,
1574
+ PaseoRuntimeRuntimeParametersKey
1575
+ >;
1576
+
1577
+ /**
1578
+ * Generic pallet storage query
1579
+ **/
1580
+ [storage: string]: GenericStorageQuery;
1581
+ };
1558
1582
  /**
1559
1583
  * Pallet `Claims`'s storage queries
1560
1584
  **/
@@ -2164,6 +2188,51 @@ export interface ChainStorage extends GenericChainStorage {
2164
2188
  **/
2165
2189
  [storage: string]: GenericStorageQuery;
2166
2190
  };
2191
+ /**
2192
+ * Pallet `DelegatedStaking`'s storage queries
2193
+ **/
2194
+ delegatedStaking: {
2195
+ /**
2196
+ * Map of Delegators to their `Delegation`.
2197
+ *
2198
+ * Implementation note: We are not using a double map with `delegator` and `agent` account
2199
+ * as keys since we want to restrict delegators to delegate only to one account at a time.
2200
+ *
2201
+ * @param {AccountId32Like} arg
2202
+ * @param {Callback<PalletDelegatedStakingDelegation | undefined> =} callback
2203
+ **/
2204
+ delegators: GenericStorageQuery<
2205
+ (arg: AccountId32Like) => PalletDelegatedStakingDelegation | undefined,
2206
+ AccountId32
2207
+ >;
2208
+
2209
+ /**
2210
+ * Counter for the related counted storage map
2211
+ *
2212
+ * @param {Callback<number> =} callback
2213
+ **/
2214
+ counterForDelegators: GenericStorageQuery<() => number>;
2215
+
2216
+ /**
2217
+ * Map of `Agent` to their `Ledger`.
2218
+ *
2219
+ * @param {AccountId32Like} arg
2220
+ * @param {Callback<PalletDelegatedStakingAgentLedger | undefined> =} callback
2221
+ **/
2222
+ agents: GenericStorageQuery<(arg: AccountId32Like) => PalletDelegatedStakingAgentLedger | undefined, AccountId32>;
2223
+
2224
+ /**
2225
+ * Counter for the related counted storage map
2226
+ *
2227
+ * @param {Callback<number> =} callback
2228
+ **/
2229
+ counterForAgents: GenericStorageQuery<() => number>;
2230
+
2231
+ /**
2232
+ * Generic pallet storage query
2233
+ **/
2234
+ [storage: string]: GenericStorageQuery;
2235
+ };
2167
2236
  /**
2168
2237
  * Pallet `Configuration`'s storage queries
2169
2238
  **/
@@ -2216,17 +2285,17 @@ export interface ChainStorage extends GenericChainStorage {
2216
2285
  * All the validators actively participating in parachain consensus.
2217
2286
  * Indices are into the broader validator set.
2218
2287
  *
2219
- * @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex>> =} callback
2288
+ * @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex>> =} callback
2220
2289
  **/
2221
- activeValidatorIndices: GenericStorageQuery<() => Array<PolkadotPrimitivesV7ValidatorIndex>>;
2290
+ activeValidatorIndices: GenericStorageQuery<() => Array<PolkadotPrimitivesV8ValidatorIndex>>;
2222
2291
 
2223
2292
  /**
2224
2293
  * The parachain attestation keys of the validators actively participating in parachain
2225
2294
  * consensus. This should be the same length as `ActiveValidatorIndices`.
2226
2295
  *
2227
- * @param {Callback<Array<PolkadotPrimitivesV7ValidatorAppPublic>> =} callback
2296
+ * @param {Callback<Array<PolkadotPrimitivesV8ValidatorAppPublic>> =} callback
2228
2297
  **/
2229
- activeValidatorKeys: GenericStorageQuery<() => Array<PolkadotPrimitivesV7ValidatorAppPublic>>;
2298
+ activeValidatorKeys: GenericStorageQuery<() => Array<PolkadotPrimitivesV8ValidatorAppPublic>>;
2230
2299
 
2231
2300
  /**
2232
2301
  * All allowed relay-parents.
@@ -2285,9 +2354,9 @@ export interface ChainStorage extends GenericChainStorage {
2285
2354
  /**
2286
2355
  * Scraped on chain data for extracting resolved disputes as well as backing votes.
2287
2356
  *
2288
- * @param {Callback<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined> =} callback
2357
+ * @param {Callback<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined> =} callback
2289
2358
  **/
2290
- onChainVotes: GenericStorageQuery<() => PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>;
2359
+ onChainVotes: GenericStorageQuery<() => PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>;
2291
2360
 
2292
2361
  /**
2293
2362
  * Generic pallet storage query
@@ -2307,9 +2376,9 @@ export interface ChainStorage extends GenericChainStorage {
2307
2376
  * multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
2308
2377
  * upper bound at 10k.
2309
2378
  *
2310
- * @param {Callback<Array<Array<PolkadotPrimitivesV7ValidatorIndex>>> =} callback
2379
+ * @param {Callback<Array<Array<PolkadotPrimitivesV8ValidatorIndex>>> =} callback
2311
2380
  **/
2312
- validatorGroups: GenericStorageQuery<() => Array<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
2381
+ validatorGroups: GenericStorageQuery<() => Array<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
2313
2382
 
2314
2383
  /**
2315
2384
  * One entry for each availability core. The i'th parachain belongs to the i'th core, with the
@@ -2341,10 +2410,10 @@ export interface ChainStorage extends GenericChainStorage {
2341
2410
  * scheduled on that core. The value contained here will not be valid after the end of
2342
2411
  * a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
2343
2412
  *
2344
- * @param {Callback<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2413
+ * @param {Callback<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2345
2414
  **/
2346
2415
  claimQueue: GenericStorageQuery<
2347
- () => Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2416
+ () => Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2348
2417
  >;
2349
2418
 
2350
2419
  /**
@@ -2534,10 +2603,10 @@ export interface ChainStorage extends GenericChainStorage {
2534
2603
  * the format will require migration of parachains.
2535
2604
  *
2536
2605
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2537
- * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
2606
+ * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
2538
2607
  **/
2539
2608
  upgradeGoAheadSignal: GenericStorageQuery<
2540
- (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeGoAhead | undefined,
2609
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeGoAhead | undefined,
2541
2610
  PolkadotParachainPrimitivesPrimitivesId
2542
2611
  >;
2543
2612
 
@@ -2553,10 +2622,10 @@ export interface ChainStorage extends GenericChainStorage {
2553
2622
  * the format will require migration of parachains.
2554
2623
  *
2555
2624
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2556
- * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
2625
+ * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
2557
2626
  **/
2558
2627
  upgradeRestrictionSignal: GenericStorageQuery<
2559
- (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeRestriction | undefined,
2628
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeRestriction | undefined,
2560
2629
  PolkadotParachainPrimitivesPrimitivesId
2561
2630
  >;
2562
2631
 
@@ -2898,9 +2967,9 @@ export interface ChainStorage extends GenericChainStorage {
2898
2967
  * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
2899
2968
  * When in doubt, use `Sessions` API instead.
2900
2969
  *
2901
- * @param {Callback<Array<PolkadotPrimitivesV7AssignmentAppPublic>> =} callback
2970
+ * @param {Callback<Array<PolkadotPrimitivesV8AssignmentAppPublic>> =} callback
2902
2971
  **/
2903
- assignmentKeysUnsafe: GenericStorageQuery<() => Array<PolkadotPrimitivesV7AssignmentAppPublic>>;
2972
+ assignmentKeysUnsafe: GenericStorageQuery<() => Array<PolkadotPrimitivesV8AssignmentAppPublic>>;
2904
2973
 
2905
2974
  /**
2906
2975
  * The earliest session for which previous session info is stored.
@@ -2915,9 +2984,9 @@ export interface ChainStorage extends GenericChainStorage {
2915
2984
  * Does not have any entries before the session index in the first session change notification.
2916
2985
  *
2917
2986
  * @param {number} arg
2918
- * @param {Callback<PolkadotPrimitivesV7SessionInfo | undefined> =} callback
2987
+ * @param {Callback<PolkadotPrimitivesV8SessionInfo | undefined> =} callback
2919
2988
  **/
2920
- sessions: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV7SessionInfo | undefined, number>;
2989
+ sessions: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV8SessionInfo | undefined, number>;
2921
2990
 
2922
2991
  /**
2923
2992
  * The validator account keys of the validators actively participating in parachain consensus.
@@ -2931,9 +3000,9 @@ export interface ChainStorage extends GenericChainStorage {
2931
3000
  * Executor parameter set for a given session index
2932
3001
  *
2933
3002
  * @param {number} arg
2934
- * @param {Callback<PolkadotPrimitivesV7ExecutorParams | undefined> =} callback
3003
+ * @param {Callback<PolkadotPrimitivesV8ExecutorParams | undefined> =} callback
2935
3004
  **/
2936
- sessionExecutorParams: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV7ExecutorParams | undefined, number>;
3005
+ sessionExecutorParams: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV8ExecutorParams | undefined, number>;
2937
3006
 
2938
3007
  /**
2939
3008
  * Generic pallet storage query
@@ -2956,10 +3025,10 @@ export interface ChainStorage extends GenericChainStorage {
2956
3025
  * All ongoing or concluded disputes for the last several sessions.
2957
3026
  *
2958
3027
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
2959
- * @param {Callback<PolkadotPrimitivesV7DisputeState | undefined> =} callback
3028
+ * @param {Callback<PolkadotPrimitivesV8DisputeState | undefined> =} callback
2960
3029
  **/
2961
3030
  disputes: GenericStorageQuery<
2962
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7DisputeState | undefined,
3031
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV8DisputeState | undefined,
2963
3032
  [number, PolkadotCorePrimitivesCandidateHash]
2964
3033
  >;
2965
3034
 
@@ -2968,10 +3037,10 @@ export interface ChainStorage extends GenericChainStorage {
2968
3037
  * This storage is used for slashing.
2969
3038
  *
2970
3039
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
2971
- * @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex> | undefined> =} callback
3040
+ * @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex> | undefined> =} callback
2972
3041
  **/
2973
3042
  backersOnDisputes: GenericStorageQuery<
2974
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV7ValidatorIndex> | undefined,
3043
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV8ValidatorIndex> | undefined,
2975
3044
  [number, PolkadotCorePrimitivesCandidateHash]
2976
3045
  >;
2977
3046
 
@@ -3010,10 +3079,10 @@ export interface ChainStorage extends GenericChainStorage {
3010
3079
  * Validators pending dispute slashes.
3011
3080
  *
3012
3081
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3013
- * @param {Callback<PolkadotPrimitivesV7SlashingPendingSlashes | undefined> =} callback
3082
+ * @param {Callback<PolkadotPrimitivesV8SlashingPendingSlashes | undefined> =} callback
3014
3083
  **/
3015
3084
  unappliedSlashes: GenericStorageQuery<
3016
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7SlashingPendingSlashes | undefined,
3085
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV8SlashingPendingSlashes | undefined,
3017
3086
  [number, PolkadotCorePrimitivesCandidateHash]
3018
3087
  >;
3019
3088
 
@@ -3040,21 +3109,21 @@ export interface ChainStorage extends GenericChainStorage {
3040
3109
  * `ParaId` on two or more `CoreIndex`es.
3041
3110
  *
3042
3111
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3043
- * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined> =} callback
3112
+ * @param {Callback<PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined> =} callback
3044
3113
  **/
3045
3114
  paraIdAffinity: GenericStorageQuery<
3046
3115
  (
3047
3116
  arg: PolkadotParachainPrimitivesPrimitivesId,
3048
- ) => PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined,
3117
+ ) => PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined,
3049
3118
  PolkadotParachainPrimitivesPrimitivesId
3050
3119
  >;
3051
3120
 
3052
3121
  /**
3053
3122
  * Overall status of queue (both free + affinity entries)
3054
3123
  *
3055
- * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType> =} callback
3124
+ * @param {Callback<PolkadotRuntimeParachainsOnDemandTypesQueueStatusType> =} callback
3056
3125
  **/
3057
- queueStatus: GenericStorageQuery<() => PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>;
3126
+ queueStatus: GenericStorageQuery<() => PolkadotRuntimeParachainsOnDemandTypesQueueStatusType>;
3058
3127
 
3059
3128
  /**
3060
3129
  * Priority queue for all orders which don't yet (or not any more) have any core affinity.
@@ -3066,12 +3135,12 @@ export interface ChainStorage extends GenericChainStorage {
3066
3135
  /**
3067
3136
  * Queue entries that are currently bound to a particular core due to core affinity.
3068
3137
  *
3069
- * @param {PolkadotPrimitivesV7CoreIndex} arg
3138
+ * @param {PolkadotPrimitivesV8CoreIndex} arg
3070
3139
  * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3071
3140
  **/
3072
3141
  affinityEntries: GenericStorageQuery<
3073
- (arg: PolkadotPrimitivesV7CoreIndex) => BinaryHeapEnqueuedOrder,
3074
- PolkadotPrimitivesV7CoreIndex
3142
+ (arg: PolkadotPrimitivesV8CoreIndex) => BinaryHeapEnqueuedOrder,
3143
+ PolkadotPrimitivesV8CoreIndex
3075
3144
  >;
3076
3145
 
3077
3146
  /**
@@ -3096,12 +3165,12 @@ export interface ChainStorage extends GenericChainStorage {
3096
3165
  * Assignments as of the given block number. They will go into state once the block number is
3097
3166
  * reached (and replace whatever was in there before).
3098
3167
  *
3099
- * @param {[number, PolkadotPrimitivesV7CoreIndex]} arg
3168
+ * @param {[number, PolkadotPrimitivesV8CoreIndex]} arg
3100
3169
  * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
3101
3170
  **/
3102
3171
  coreSchedules: GenericStorageQuery<
3103
- (arg: [number, PolkadotPrimitivesV7CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3104
- [number, PolkadotPrimitivesV7CoreIndex]
3172
+ (arg: [number, PolkadotPrimitivesV8CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3173
+ [number, PolkadotPrimitivesV8CoreIndex]
3105
3174
  >;
3106
3175
 
3107
3176
  /**
@@ -3110,12 +3179,12 @@ export interface ChainStorage extends GenericChainStorage {
3110
3179
  * They will be picked from `PendingAssignments` once we reach the scheduled block number in
3111
3180
  * `PendingAssignments`.
3112
3181
  *
3113
- * @param {PolkadotPrimitivesV7CoreIndex} arg
3182
+ * @param {PolkadotPrimitivesV8CoreIndex} arg
3114
3183
  * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
3115
3184
  **/
3116
3185
  coreDescriptors: GenericStorageQuery<
3117
- (arg: PolkadotPrimitivesV7CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3118
- PolkadotPrimitivesV7CoreIndex
3186
+ (arg: PolkadotPrimitivesV8CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3187
+ PolkadotPrimitivesV8CoreIndex
3119
3188
  >;
3120
3189
 
3121
3190
  /**