@dedot/chaintypes 0.231.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/package.json +2 -2
- package/paseo/consts.d.ts +19 -0
- package/paseo/errors.d.ts +107 -12
- package/paseo/events.d.ts +83 -13
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +99 -52
- package/paseo/runtime.d.ts +138 -63
- package/paseo/tx.d.ts +185 -40
- package/paseo/types.d.ts +473 -205
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
|
-
|
|
91
|
-
|
|
92
|
+
PolkadotPrimitivesV8ValidatorIndex,
|
|
93
|
+
PolkadotPrimitivesV8ValidatorAppPublic,
|
|
92
94
|
PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
|
|
93
95
|
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
|
|
94
96
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
95
|
-
|
|
97
|
+
PolkadotPrimitivesV8ScrapedOnChainVotes,
|
|
96
98
|
PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
|
|
97
|
-
|
|
99
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
98
100
|
PolkadotRuntimeParachainsSchedulerPalletParasEntry,
|
|
99
101
|
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
|
|
100
102
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
101
103
|
PolkadotRuntimeParachainsParasParaLifecycle,
|
|
102
104
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
103
105
|
PolkadotRuntimeParachainsParasParaPastCodeMeta,
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
PolkadotPrimitivesV8AssignmentAppPublic,
|
|
117
|
+
PolkadotPrimitivesV8SessionInfo,
|
|
118
|
+
PolkadotPrimitivesV8ExecutorParams,
|
|
119
|
+
PolkadotPrimitivesV8DisputeState,
|
|
118
120
|
PolkadotCorePrimitivesCandidateHash,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
PolkadotPrimitivesV8SlashingPendingSlashes,
|
|
122
|
+
PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount,
|
|
123
|
+
PolkadotRuntimeParachainsOnDemandTypesQueueStatusType,
|
|
122
124
|
BinaryHeapEnqueuedOrder,
|
|
123
125
|
PolkadotRuntimeParachainsAssignerCoretimeSchedule,
|
|
124
126
|
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
|
|
@@ -2186,6 +2188,51 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2186
2188
|
**/
|
|
2187
2189
|
[storage: string]: GenericStorageQuery;
|
|
2188
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
|
+
};
|
|
2189
2236
|
/**
|
|
2190
2237
|
* Pallet `Configuration`'s storage queries
|
|
2191
2238
|
**/
|
|
@@ -2238,17 +2285,17 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2238
2285
|
* All the validators actively participating in parachain consensus.
|
|
2239
2286
|
* Indices are into the broader validator set.
|
|
2240
2287
|
*
|
|
2241
|
-
* @param {Callback<Array<
|
|
2288
|
+
* @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex>> =} callback
|
|
2242
2289
|
**/
|
|
2243
|
-
activeValidatorIndices: GenericStorageQuery<() => Array<
|
|
2290
|
+
activeValidatorIndices: GenericStorageQuery<() => Array<PolkadotPrimitivesV8ValidatorIndex>>;
|
|
2244
2291
|
|
|
2245
2292
|
/**
|
|
2246
2293
|
* The parachain attestation keys of the validators actively participating in parachain
|
|
2247
2294
|
* consensus. This should be the same length as `ActiveValidatorIndices`.
|
|
2248
2295
|
*
|
|
2249
|
-
* @param {Callback<Array<
|
|
2296
|
+
* @param {Callback<Array<PolkadotPrimitivesV8ValidatorAppPublic>> =} callback
|
|
2250
2297
|
**/
|
|
2251
|
-
activeValidatorKeys: GenericStorageQuery<() => Array<
|
|
2298
|
+
activeValidatorKeys: GenericStorageQuery<() => Array<PolkadotPrimitivesV8ValidatorAppPublic>>;
|
|
2252
2299
|
|
|
2253
2300
|
/**
|
|
2254
2301
|
* All allowed relay-parents.
|
|
@@ -2307,9 +2354,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2307
2354
|
/**
|
|
2308
2355
|
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
|
2309
2356
|
*
|
|
2310
|
-
* @param {Callback<
|
|
2357
|
+
* @param {Callback<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined> =} callback
|
|
2311
2358
|
**/
|
|
2312
|
-
onChainVotes: GenericStorageQuery<() =>
|
|
2359
|
+
onChainVotes: GenericStorageQuery<() => PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>;
|
|
2313
2360
|
|
|
2314
2361
|
/**
|
|
2315
2362
|
* Generic pallet storage query
|
|
@@ -2329,9 +2376,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2329
2376
|
* multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
|
|
2330
2377
|
* upper bound at 10k.
|
|
2331
2378
|
*
|
|
2332
|
-
* @param {Callback<Array<Array<
|
|
2379
|
+
* @param {Callback<Array<Array<PolkadotPrimitivesV8ValidatorIndex>>> =} callback
|
|
2333
2380
|
**/
|
|
2334
|
-
validatorGroups: GenericStorageQuery<() => Array<Array<
|
|
2381
|
+
validatorGroups: GenericStorageQuery<() => Array<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
|
|
2335
2382
|
|
|
2336
2383
|
/**
|
|
2337
2384
|
* One entry for each availability core. The i'th parachain belongs to the i'th core, with the
|
|
@@ -2363,10 +2410,10 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2363
2410
|
* scheduled on that core. The value contained here will not be valid after the end of
|
|
2364
2411
|
* a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
|
|
2365
2412
|
*
|
|
2366
|
-
* @param {Callback<Array<[
|
|
2413
|
+
* @param {Callback<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
|
|
2367
2414
|
**/
|
|
2368
2415
|
claimQueue: GenericStorageQuery<
|
|
2369
|
-
() => Array<[
|
|
2416
|
+
() => Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
|
|
2370
2417
|
>;
|
|
2371
2418
|
|
|
2372
2419
|
/**
|
|
@@ -2556,10 +2603,10 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2556
2603
|
* the format will require migration of parachains.
|
|
2557
2604
|
*
|
|
2558
2605
|
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2559
|
-
* @param {Callback<
|
|
2606
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
|
|
2560
2607
|
**/
|
|
2561
2608
|
upgradeGoAheadSignal: GenericStorageQuery<
|
|
2562
|
-
(arg: PolkadotParachainPrimitivesPrimitivesId) =>
|
|
2609
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeGoAhead | undefined,
|
|
2563
2610
|
PolkadotParachainPrimitivesPrimitivesId
|
|
2564
2611
|
>;
|
|
2565
2612
|
|
|
@@ -2575,10 +2622,10 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2575
2622
|
* the format will require migration of parachains.
|
|
2576
2623
|
*
|
|
2577
2624
|
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2578
|
-
* @param {Callback<
|
|
2625
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
|
|
2579
2626
|
**/
|
|
2580
2627
|
upgradeRestrictionSignal: GenericStorageQuery<
|
|
2581
|
-
(arg: PolkadotParachainPrimitivesPrimitivesId) =>
|
|
2628
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeRestriction | undefined,
|
|
2582
2629
|
PolkadotParachainPrimitivesPrimitivesId
|
|
2583
2630
|
>;
|
|
2584
2631
|
|
|
@@ -2920,9 +2967,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2920
2967
|
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
|
2921
2968
|
* When in doubt, use `Sessions` API instead.
|
|
2922
2969
|
*
|
|
2923
|
-
* @param {Callback<Array<
|
|
2970
|
+
* @param {Callback<Array<PolkadotPrimitivesV8AssignmentAppPublic>> =} callback
|
|
2924
2971
|
**/
|
|
2925
|
-
assignmentKeysUnsafe: GenericStorageQuery<() => Array<
|
|
2972
|
+
assignmentKeysUnsafe: GenericStorageQuery<() => Array<PolkadotPrimitivesV8AssignmentAppPublic>>;
|
|
2926
2973
|
|
|
2927
2974
|
/**
|
|
2928
2975
|
* The earliest session for which previous session info is stored.
|
|
@@ -2937,9 +2984,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2937
2984
|
* Does not have any entries before the session index in the first session change notification.
|
|
2938
2985
|
*
|
|
2939
2986
|
* @param {number} arg
|
|
2940
|
-
* @param {Callback<
|
|
2987
|
+
* @param {Callback<PolkadotPrimitivesV8SessionInfo | undefined> =} callback
|
|
2941
2988
|
**/
|
|
2942
|
-
sessions: GenericStorageQuery<(arg: number) =>
|
|
2989
|
+
sessions: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV8SessionInfo | undefined, number>;
|
|
2943
2990
|
|
|
2944
2991
|
/**
|
|
2945
2992
|
* The validator account keys of the validators actively participating in parachain consensus.
|
|
@@ -2953,9 +3000,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2953
3000
|
* Executor parameter set for a given session index
|
|
2954
3001
|
*
|
|
2955
3002
|
* @param {number} arg
|
|
2956
|
-
* @param {Callback<
|
|
3003
|
+
* @param {Callback<PolkadotPrimitivesV8ExecutorParams | undefined> =} callback
|
|
2957
3004
|
**/
|
|
2958
|
-
sessionExecutorParams: GenericStorageQuery<(arg: number) =>
|
|
3005
|
+
sessionExecutorParams: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV8ExecutorParams | undefined, number>;
|
|
2959
3006
|
|
|
2960
3007
|
/**
|
|
2961
3008
|
* Generic pallet storage query
|
|
@@ -2978,10 +3025,10 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2978
3025
|
* All ongoing or concluded disputes for the last several sessions.
|
|
2979
3026
|
*
|
|
2980
3027
|
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
2981
|
-
* @param {Callback<
|
|
3028
|
+
* @param {Callback<PolkadotPrimitivesV8DisputeState | undefined> =} callback
|
|
2982
3029
|
**/
|
|
2983
3030
|
disputes: GenericStorageQuery<
|
|
2984
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) =>
|
|
3031
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV8DisputeState | undefined,
|
|
2985
3032
|
[number, PolkadotCorePrimitivesCandidateHash]
|
|
2986
3033
|
>;
|
|
2987
3034
|
|
|
@@ -2990,10 +3037,10 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2990
3037
|
* This storage is used for slashing.
|
|
2991
3038
|
*
|
|
2992
3039
|
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
2993
|
-
* @param {Callback<Array<
|
|
3040
|
+
* @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex> | undefined> =} callback
|
|
2994
3041
|
**/
|
|
2995
3042
|
backersOnDisputes: GenericStorageQuery<
|
|
2996
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<
|
|
3043
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV8ValidatorIndex> | undefined,
|
|
2997
3044
|
[number, PolkadotCorePrimitivesCandidateHash]
|
|
2998
3045
|
>;
|
|
2999
3046
|
|
|
@@ -3032,10 +3079,10 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
3032
3079
|
* Validators pending dispute slashes.
|
|
3033
3080
|
*
|
|
3034
3081
|
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
3035
|
-
* @param {Callback<
|
|
3082
|
+
* @param {Callback<PolkadotPrimitivesV8SlashingPendingSlashes | undefined> =} callback
|
|
3036
3083
|
**/
|
|
3037
3084
|
unappliedSlashes: GenericStorageQuery<
|
|
3038
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) =>
|
|
3085
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV8SlashingPendingSlashes | undefined,
|
|
3039
3086
|
[number, PolkadotCorePrimitivesCandidateHash]
|
|
3040
3087
|
>;
|
|
3041
3088
|
|
|
@@ -3062,21 +3109,21 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
3062
3109
|
* `ParaId` on two or more `CoreIndex`es.
|
|
3063
3110
|
*
|
|
3064
3111
|
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
3065
|
-
* @param {Callback<
|
|
3112
|
+
* @param {Callback<PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined> =} callback
|
|
3066
3113
|
**/
|
|
3067
3114
|
paraIdAffinity: GenericStorageQuery<
|
|
3068
3115
|
(
|
|
3069
3116
|
arg: PolkadotParachainPrimitivesPrimitivesId,
|
|
3070
|
-
) =>
|
|
3117
|
+
) => PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined,
|
|
3071
3118
|
PolkadotParachainPrimitivesPrimitivesId
|
|
3072
3119
|
>;
|
|
3073
3120
|
|
|
3074
3121
|
/**
|
|
3075
3122
|
* Overall status of queue (both free + affinity entries)
|
|
3076
3123
|
*
|
|
3077
|
-
* @param {Callback<
|
|
3124
|
+
* @param {Callback<PolkadotRuntimeParachainsOnDemandTypesQueueStatusType> =} callback
|
|
3078
3125
|
**/
|
|
3079
|
-
queueStatus: GenericStorageQuery<() =>
|
|
3126
|
+
queueStatus: GenericStorageQuery<() => PolkadotRuntimeParachainsOnDemandTypesQueueStatusType>;
|
|
3080
3127
|
|
|
3081
3128
|
/**
|
|
3082
3129
|
* Priority queue for all orders which don't yet (or not any more) have any core affinity.
|
|
@@ -3088,12 +3135,12 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
3088
3135
|
/**
|
|
3089
3136
|
* Queue entries that are currently bound to a particular core due to core affinity.
|
|
3090
3137
|
*
|
|
3091
|
-
* @param {
|
|
3138
|
+
* @param {PolkadotPrimitivesV8CoreIndex} arg
|
|
3092
3139
|
* @param {Callback<BinaryHeapEnqueuedOrder> =} callback
|
|
3093
3140
|
**/
|
|
3094
3141
|
affinityEntries: GenericStorageQuery<
|
|
3095
|
-
(arg:
|
|
3096
|
-
|
|
3142
|
+
(arg: PolkadotPrimitivesV8CoreIndex) => BinaryHeapEnqueuedOrder,
|
|
3143
|
+
PolkadotPrimitivesV8CoreIndex
|
|
3097
3144
|
>;
|
|
3098
3145
|
|
|
3099
3146
|
/**
|
|
@@ -3118,12 +3165,12 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
3118
3165
|
* Assignments as of the given block number. They will go into state once the block number is
|
|
3119
3166
|
* reached (and replace whatever was in there before).
|
|
3120
3167
|
*
|
|
3121
|
-
* @param {[number,
|
|
3168
|
+
* @param {[number, PolkadotPrimitivesV8CoreIndex]} arg
|
|
3122
3169
|
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
|
|
3123
3170
|
**/
|
|
3124
3171
|
coreSchedules: GenericStorageQuery<
|
|
3125
|
-
(arg: [number,
|
|
3126
|
-
[number,
|
|
3172
|
+
(arg: [number, PolkadotPrimitivesV8CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
|
|
3173
|
+
[number, PolkadotPrimitivesV8CoreIndex]
|
|
3127
3174
|
>;
|
|
3128
3175
|
|
|
3129
3176
|
/**
|
|
@@ -3132,12 +3179,12 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
3132
3179
|
* They will be picked from `PendingAssignments` once we reach the scheduled block number in
|
|
3133
3180
|
* `PendingAssignments`.
|
|
3134
3181
|
*
|
|
3135
|
-
* @param {
|
|
3182
|
+
* @param {PolkadotPrimitivesV8CoreIndex} arg
|
|
3136
3183
|
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
|
|
3137
3184
|
**/
|
|
3138
3185
|
coreDescriptors: GenericStorageQuery<
|
|
3139
|
-
(arg:
|
|
3140
|
-
|
|
3186
|
+
(arg: PolkadotPrimitivesV8CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
|
|
3187
|
+
PolkadotPrimitivesV8CoreIndex
|
|
3141
3188
|
>;
|
|
3142
3189
|
|
|
3143
3190
|
/**
|