@dedot/chaintypes 0.15.0 → 0.17.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/index.d.ts +1 -1
- package/rococo/errors.d.ts +0 -10
- package/rococo/events.d.ts +33 -12
- package/rococo/index.d.ts +1 -1
- package/rococo/query.d.ts +52 -52
- package/rococo/runtime.d.ts +117 -58
- package/rococo/tx.d.ts +33 -33
- package/rococo/types.d.ts +191 -185
- package/rococo-asset-hub/consts.d.ts +2 -2
- package/rococo-asset-hub/events.d.ts +87 -80
- package/rococo-asset-hub/index.d.ts +1 -1
- package/rococo-asset-hub/query.d.ts +66 -54
- package/rococo-asset-hub/runtime.d.ts +12 -15
- package/rococo-asset-hub/tx.d.ts +250 -241
- package/rococo-asset-hub/types.d.ts +353 -404
- package/westend/consts.d.ts +9 -0
- package/westend/errors.d.ts +0 -10
- package/westend/events.d.ts +79 -13
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +75 -52
- package/westend/runtime.d.ts +133 -58
- package/westend/tx.d.ts +72 -35
- package/westend/types.d.ts +308 -190
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/events.d.ts +87 -80
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +66 -54
- package/westend-asset-hub/runtime.d.ts +12 -15
- package/westend-asset-hub/tx.d.ts +250 -241
- package/westend-asset-hub/types.d.ts +353 -404
- package/westend-people/index.d.ts +1 -1
- package/westend-people/query.d.ts +12 -12
- package/westend-people/tx.d.ts +1 -58
- package/westend-people/types.d.ts +16 -62
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "0f10ec6c66991493c6c953c75a602f1087d8c2a5",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/paseo/index.d.ts
CHANGED
package/rococo/errors.d.ts
CHANGED
|
@@ -1356,11 +1356,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1356
1356
|
**/
|
|
1357
1357
|
TooFew: GenericPalletError<Rv>;
|
|
1358
1358
|
|
|
1359
|
-
/**
|
|
1360
|
-
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
|
|
1361
|
-
**/
|
|
1362
|
-
NoCost: GenericPalletError<Rv>;
|
|
1363
|
-
|
|
1364
1359
|
/**
|
|
1365
1360
|
* Generic pallet error
|
|
1366
1361
|
**/
|
|
@@ -1703,11 +1698,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1703
1698
|
**/
|
|
1704
1699
|
InvalidBacking: GenericPalletError<Rv>;
|
|
1705
1700
|
|
|
1706
|
-
/**
|
|
1707
|
-
* Collator did not sign PoV.
|
|
1708
|
-
**/
|
|
1709
|
-
NotCollatorSigned: GenericPalletError<Rv>;
|
|
1710
|
-
|
|
1711
1701
|
/**
|
|
1712
1702
|
* The validation data hash does not match expected.
|
|
1713
1703
|
**/
|
package/rococo/events.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
SpConsensusGrandpaAppPublic,
|
|
21
21
|
PolkadotRuntimeCommonImplsVersionedLocatableAsset,
|
|
22
22
|
XcmVersionedLocation,
|
|
23
|
+
PalletConvictionVotingVoteAccountVote,
|
|
23
24
|
FrameSupportPreimagesBounded,
|
|
24
25
|
PalletConvictionVotingTally,
|
|
25
26
|
PalletRankedCollectiveVoteRecord,
|
|
@@ -29,10 +30,10 @@ import type {
|
|
|
29
30
|
PalletSocietyGroupParams,
|
|
30
31
|
RococoRuntimeProxyType,
|
|
31
32
|
PalletMultisigTimepoint,
|
|
32
|
-
|
|
33
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
33
34
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
36
|
+
PolkadotPrimitivesV8GroupIndex,
|
|
36
37
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
37
38
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
38
39
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
@@ -480,6 +481,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
480
481
|
**/
|
|
481
482
|
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
|
|
482
483
|
|
|
484
|
+
/**
|
|
485
|
+
* An account that has voted
|
|
486
|
+
**/
|
|
487
|
+
Voted: GenericPalletEvent<
|
|
488
|
+
Rv,
|
|
489
|
+
'ConvictionVoting',
|
|
490
|
+
'Voted',
|
|
491
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
492
|
+
>;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* A vote that been removed
|
|
496
|
+
**/
|
|
497
|
+
VoteRemoved: GenericPalletEvent<
|
|
498
|
+
Rv,
|
|
499
|
+
'ConvictionVoting',
|
|
500
|
+
'VoteRemoved',
|
|
501
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
502
|
+
>;
|
|
503
|
+
|
|
483
504
|
/**
|
|
484
505
|
* Generic pallet event
|
|
485
506
|
**/
|
|
@@ -2208,10 +2229,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2208
2229
|
'ParaInclusion',
|
|
2209
2230
|
'CandidateBacked',
|
|
2210
2231
|
[
|
|
2211
|
-
|
|
2232
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
2212
2233
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
2213
|
-
|
|
2214
|
-
|
|
2234
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
2235
|
+
PolkadotPrimitivesV8GroupIndex,
|
|
2215
2236
|
]
|
|
2216
2237
|
>;
|
|
2217
2238
|
|
|
@@ -2223,10 +2244,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2223
2244
|
'ParaInclusion',
|
|
2224
2245
|
'CandidateIncluded',
|
|
2225
2246
|
[
|
|
2226
|
-
|
|
2247
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
2227
2248
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
2228
|
-
|
|
2229
|
-
|
|
2249
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
2250
|
+
PolkadotPrimitivesV8GroupIndex,
|
|
2230
2251
|
]
|
|
2231
2252
|
>;
|
|
2232
2253
|
|
|
@@ -2238,9 +2259,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2238
2259
|
'ParaInclusion',
|
|
2239
2260
|
'CandidateTimedOut',
|
|
2240
2261
|
[
|
|
2241
|
-
|
|
2262
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
2242
2263
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
2243
|
-
|
|
2264
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
2244
2265
|
]
|
|
2245
2266
|
>;
|
|
2246
2267
|
|
|
@@ -2863,7 +2884,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2863
2884
|
/**
|
|
2864
2885
|
* A core has received a new assignment from the broker chain.
|
|
2865
2886
|
**/
|
|
2866
|
-
CoreAssigned: GenericPalletEvent<Rv, 'Coretime', 'CoreAssigned', { core:
|
|
2887
|
+
CoreAssigned: GenericPalletEvent<Rv, 'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV8CoreIndex }>;
|
|
2867
2888
|
|
|
2868
2889
|
/**
|
|
2869
2890
|
* Generic pallet event
|
package/rococo/index.d.ts
CHANGED
package/rococo/query.d.ts
CHANGED
|
@@ -79,22 +79,22 @@ import type {
|
|
|
79
79
|
PalletNisSummaryRecord,
|
|
80
80
|
PalletNisReceiptRecord,
|
|
81
81
|
PolkadotRuntimeParachainsConfigurationHostConfiguration,
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
PolkadotPrimitivesV8ValidatorIndex,
|
|
83
|
+
PolkadotPrimitivesV8ValidatorAppPublic,
|
|
84
84
|
PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
|
|
85
85
|
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
|
|
86
86
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
87
|
-
|
|
87
|
+
PolkadotPrimitivesV8ScrapedOnChainVotes,
|
|
88
88
|
PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
|
|
89
|
-
|
|
89
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
90
90
|
PolkadotRuntimeParachainsSchedulerPalletParasEntry,
|
|
91
91
|
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
|
|
92
92
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
93
93
|
PolkadotRuntimeParachainsParasParaLifecycle,
|
|
94
94
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
95
95
|
PolkadotRuntimeParachainsParasParaPastCodeMeta,
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
PolkadotPrimitivesV8UpgradeGoAhead,
|
|
97
|
+
PolkadotPrimitivesV8UpgradeRestriction,
|
|
98
98
|
PolkadotRuntimeParachainsParasParaGenesisArgs,
|
|
99
99
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
100
100
|
PolkadotRuntimeParachainsInitializerBufferedSessionChange,
|
|
@@ -103,17 +103,17 @@ import type {
|
|
|
103
103
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
104
104
|
PolkadotRuntimeParachainsHrmpHrmpChannel,
|
|
105
105
|
PolkadotCorePrimitivesInboundHrmpMessage,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
PolkadotPrimitivesV8AssignmentAppPublic,
|
|
107
|
+
PolkadotPrimitivesV8SessionInfo,
|
|
108
|
+
PolkadotPrimitivesV8ExecutorParams,
|
|
109
|
+
PolkadotPrimitivesV8DisputeState,
|
|
110
110
|
PolkadotCorePrimitivesCandidateHash,
|
|
111
|
-
|
|
111
|
+
PolkadotPrimitivesV8SlashingPendingSlashes,
|
|
112
112
|
PalletMessageQueueBookState,
|
|
113
113
|
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
|
|
114
114
|
PalletMessageQueuePage,
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount,
|
|
116
|
+
PolkadotRuntimeParachainsOnDemandTypesQueueStatusType,
|
|
117
117
|
BinaryHeapEnqueuedOrder,
|
|
118
118
|
PolkadotRuntimeParachainsAssignerCoretimeSchedule,
|
|
119
119
|
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
|
|
@@ -1977,17 +1977,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1977
1977
|
* All the validators actively participating in parachain consensus.
|
|
1978
1978
|
* Indices are into the broader validator set.
|
|
1979
1979
|
*
|
|
1980
|
-
* @param {Callback<Array<
|
|
1980
|
+
* @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex>> =} callback
|
|
1981
1981
|
**/
|
|
1982
|
-
activeValidatorIndices: GenericStorageQuery<Rv, () => Array<
|
|
1982
|
+
activeValidatorIndices: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV8ValidatorIndex>>;
|
|
1983
1983
|
|
|
1984
1984
|
/**
|
|
1985
1985
|
* The parachain attestation keys of the validators actively participating in parachain
|
|
1986
1986
|
* consensus. This should be the same length as `ActiveValidatorIndices`.
|
|
1987
1987
|
*
|
|
1988
|
-
* @param {Callback<Array<
|
|
1988
|
+
* @param {Callback<Array<PolkadotPrimitivesV8ValidatorAppPublic>> =} callback
|
|
1989
1989
|
**/
|
|
1990
|
-
activeValidatorKeys: GenericStorageQuery<Rv, () => Array<
|
|
1990
|
+
activeValidatorKeys: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV8ValidatorAppPublic>>;
|
|
1991
1991
|
|
|
1992
1992
|
/**
|
|
1993
1993
|
* All allowed relay-parents.
|
|
@@ -2047,9 +2047,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2047
2047
|
/**
|
|
2048
2048
|
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
|
2049
2049
|
*
|
|
2050
|
-
* @param {Callback<
|
|
2050
|
+
* @param {Callback<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined> =} callback
|
|
2051
2051
|
**/
|
|
2052
|
-
onChainVotes: GenericStorageQuery<Rv, () =>
|
|
2052
|
+
onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>;
|
|
2053
2053
|
|
|
2054
2054
|
/**
|
|
2055
2055
|
* Generic pallet storage query
|
|
@@ -2069,9 +2069,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2069
2069
|
* multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
|
|
2070
2070
|
* upper bound at 10k.
|
|
2071
2071
|
*
|
|
2072
|
-
* @param {Callback<Array<Array<
|
|
2072
|
+
* @param {Callback<Array<Array<PolkadotPrimitivesV8ValidatorIndex>>> =} callback
|
|
2073
2073
|
**/
|
|
2074
|
-
validatorGroups: GenericStorageQuery<Rv, () => Array<Array<
|
|
2074
|
+
validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
|
|
2075
2075
|
|
|
2076
2076
|
/**
|
|
2077
2077
|
* One entry for each availability core. The i'th parachain belongs to the i'th core, with the
|
|
@@ -2103,11 +2103,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2103
2103
|
* scheduled on that core. The value contained here will not be valid after the end of
|
|
2104
2104
|
* a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
|
|
2105
2105
|
*
|
|
2106
|
-
* @param {Callback<Array<[
|
|
2106
|
+
* @param {Callback<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
|
|
2107
2107
|
**/
|
|
2108
2108
|
claimQueue: GenericStorageQuery<
|
|
2109
2109
|
Rv,
|
|
2110
|
-
() => Array<[
|
|
2110
|
+
() => Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
|
|
2111
2111
|
>;
|
|
2112
2112
|
|
|
2113
2113
|
/**
|
|
@@ -2306,11 +2306,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2306
2306
|
* the format will require migration of parachains.
|
|
2307
2307
|
*
|
|
2308
2308
|
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2309
|
-
* @param {Callback<
|
|
2309
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
|
|
2310
2310
|
**/
|
|
2311
2311
|
upgradeGoAheadSignal: GenericStorageQuery<
|
|
2312
2312
|
Rv,
|
|
2313
|
-
(arg: PolkadotParachainPrimitivesPrimitivesId) =>
|
|
2313
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeGoAhead | undefined,
|
|
2314
2314
|
PolkadotParachainPrimitivesPrimitivesId
|
|
2315
2315
|
>;
|
|
2316
2316
|
|
|
@@ -2326,11 +2326,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2326
2326
|
* the format will require migration of parachains.
|
|
2327
2327
|
*
|
|
2328
2328
|
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2329
|
-
* @param {Callback<
|
|
2329
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
|
|
2330
2330
|
**/
|
|
2331
2331
|
upgradeRestrictionSignal: GenericStorageQuery<
|
|
2332
2332
|
Rv,
|
|
2333
|
-
(arg: PolkadotParachainPrimitivesPrimitivesId) =>
|
|
2333
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeRestriction | undefined,
|
|
2334
2334
|
PolkadotParachainPrimitivesPrimitivesId
|
|
2335
2335
|
>;
|
|
2336
2336
|
|
|
@@ -2697,9 +2697,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2697
2697
|
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
|
2698
2698
|
* When in doubt, use `Sessions` API instead.
|
|
2699
2699
|
*
|
|
2700
|
-
* @param {Callback<Array<
|
|
2700
|
+
* @param {Callback<Array<PolkadotPrimitivesV8AssignmentAppPublic>> =} callback
|
|
2701
2701
|
**/
|
|
2702
|
-
assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<
|
|
2702
|
+
assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV8AssignmentAppPublic>>;
|
|
2703
2703
|
|
|
2704
2704
|
/**
|
|
2705
2705
|
* The earliest session for which previous session info is stored.
|
|
@@ -2714,9 +2714,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2714
2714
|
* Does not have any entries before the session index in the first session change notification.
|
|
2715
2715
|
*
|
|
2716
2716
|
* @param {number} arg
|
|
2717
|
-
* @param {Callback<
|
|
2717
|
+
* @param {Callback<PolkadotPrimitivesV8SessionInfo | undefined> =} callback
|
|
2718
2718
|
**/
|
|
2719
|
-
sessions: GenericStorageQuery<Rv, (arg: number) =>
|
|
2719
|
+
sessions: GenericStorageQuery<Rv, (arg: number) => PolkadotPrimitivesV8SessionInfo | undefined, number>;
|
|
2720
2720
|
|
|
2721
2721
|
/**
|
|
2722
2722
|
* The validator account keys of the validators actively participating in parachain consensus.
|
|
@@ -2730,11 +2730,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2730
2730
|
* Executor parameter set for a given session index
|
|
2731
2731
|
*
|
|
2732
2732
|
* @param {number} arg
|
|
2733
|
-
* @param {Callback<
|
|
2733
|
+
* @param {Callback<PolkadotPrimitivesV8ExecutorParams | undefined> =} callback
|
|
2734
2734
|
**/
|
|
2735
2735
|
sessionExecutorParams: GenericStorageQuery<
|
|
2736
2736
|
Rv,
|
|
2737
|
-
(arg: number) =>
|
|
2737
|
+
(arg: number) => PolkadotPrimitivesV8ExecutorParams | undefined,
|
|
2738
2738
|
number
|
|
2739
2739
|
>;
|
|
2740
2740
|
|
|
@@ -2759,11 +2759,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2759
2759
|
* All ongoing or concluded disputes for the last several sessions.
|
|
2760
2760
|
*
|
|
2761
2761
|
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
2762
|
-
* @param {Callback<
|
|
2762
|
+
* @param {Callback<PolkadotPrimitivesV8DisputeState | undefined> =} callback
|
|
2763
2763
|
**/
|
|
2764
2764
|
disputes: GenericStorageQuery<
|
|
2765
2765
|
Rv,
|
|
2766
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) =>
|
|
2766
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV8DisputeState | undefined,
|
|
2767
2767
|
[number, PolkadotCorePrimitivesCandidateHash]
|
|
2768
2768
|
>;
|
|
2769
2769
|
|
|
@@ -2772,11 +2772,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2772
2772
|
* This storage is used for slashing.
|
|
2773
2773
|
*
|
|
2774
2774
|
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
2775
|
-
* @param {Callback<Array<
|
|
2775
|
+
* @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex> | undefined> =} callback
|
|
2776
2776
|
**/
|
|
2777
2777
|
backersOnDisputes: GenericStorageQuery<
|
|
2778
2778
|
Rv,
|
|
2779
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<
|
|
2779
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV8ValidatorIndex> | undefined,
|
|
2780
2780
|
[number, PolkadotCorePrimitivesCandidateHash]
|
|
2781
2781
|
>;
|
|
2782
2782
|
|
|
@@ -2816,11 +2816,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2816
2816
|
* Validators pending dispute slashes.
|
|
2817
2817
|
*
|
|
2818
2818
|
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
2819
|
-
* @param {Callback<
|
|
2819
|
+
* @param {Callback<PolkadotPrimitivesV8SlashingPendingSlashes | undefined> =} callback
|
|
2820
2820
|
**/
|
|
2821
2821
|
unappliedSlashes: GenericStorageQuery<
|
|
2822
2822
|
Rv,
|
|
2823
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) =>
|
|
2823
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV8SlashingPendingSlashes | undefined,
|
|
2824
2824
|
[number, PolkadotCorePrimitivesCandidateHash]
|
|
2825
2825
|
>;
|
|
2826
2826
|
|
|
@@ -2887,22 +2887,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2887
2887
|
* `ParaId` on two or more `CoreIndex`es.
|
|
2888
2888
|
*
|
|
2889
2889
|
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2890
|
-
* @param {Callback<
|
|
2890
|
+
* @param {Callback<PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined> =} callback
|
|
2891
2891
|
**/
|
|
2892
2892
|
paraIdAffinity: GenericStorageQuery<
|
|
2893
2893
|
Rv,
|
|
2894
2894
|
(
|
|
2895
2895
|
arg: PolkadotParachainPrimitivesPrimitivesId,
|
|
2896
|
-
) =>
|
|
2896
|
+
) => PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined,
|
|
2897
2897
|
PolkadotParachainPrimitivesPrimitivesId
|
|
2898
2898
|
>;
|
|
2899
2899
|
|
|
2900
2900
|
/**
|
|
2901
2901
|
* Overall status of queue (both free + affinity entries)
|
|
2902
2902
|
*
|
|
2903
|
-
* @param {Callback<
|
|
2903
|
+
* @param {Callback<PolkadotRuntimeParachainsOnDemandTypesQueueStatusType> =} callback
|
|
2904
2904
|
**/
|
|
2905
|
-
queueStatus: GenericStorageQuery<Rv, () =>
|
|
2905
|
+
queueStatus: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsOnDemandTypesQueueStatusType>;
|
|
2906
2906
|
|
|
2907
2907
|
/**
|
|
2908
2908
|
* Priority queue for all orders which don't yet (or not any more) have any core affinity.
|
|
@@ -2914,13 +2914,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2914
2914
|
/**
|
|
2915
2915
|
* Queue entries that are currently bound to a particular core due to core affinity.
|
|
2916
2916
|
*
|
|
2917
|
-
* @param {
|
|
2917
|
+
* @param {PolkadotPrimitivesV8CoreIndex} arg
|
|
2918
2918
|
* @param {Callback<BinaryHeapEnqueuedOrder> =} callback
|
|
2919
2919
|
**/
|
|
2920
2920
|
affinityEntries: GenericStorageQuery<
|
|
2921
2921
|
Rv,
|
|
2922
|
-
(arg:
|
|
2923
|
-
|
|
2922
|
+
(arg: PolkadotPrimitivesV8CoreIndex) => BinaryHeapEnqueuedOrder,
|
|
2923
|
+
PolkadotPrimitivesV8CoreIndex
|
|
2924
2924
|
>;
|
|
2925
2925
|
|
|
2926
2926
|
/**
|
|
@@ -2945,13 +2945,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2945
2945
|
* Assignments as of the given block number. They will go into state once the block number is
|
|
2946
2946
|
* reached (and replace whatever was in there before).
|
|
2947
2947
|
*
|
|
2948
|
-
* @param {[number,
|
|
2948
|
+
* @param {[number, PolkadotPrimitivesV8CoreIndex]} arg
|
|
2949
2949
|
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
|
|
2950
2950
|
**/
|
|
2951
2951
|
coreSchedules: GenericStorageQuery<
|
|
2952
2952
|
Rv,
|
|
2953
|
-
(arg: [number,
|
|
2954
|
-
[number,
|
|
2953
|
+
(arg: [number, PolkadotPrimitivesV8CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
|
|
2954
|
+
[number, PolkadotPrimitivesV8CoreIndex]
|
|
2955
2955
|
>;
|
|
2956
2956
|
|
|
2957
2957
|
/**
|
|
@@ -2960,13 +2960,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2960
2960
|
* They will be picked from `PendingAssignments` once we reach the scheduled block number in
|
|
2961
2961
|
* `PendingAssignments`.
|
|
2962
2962
|
*
|
|
2963
|
-
* @param {
|
|
2963
|
+
* @param {PolkadotPrimitivesV8CoreIndex} arg
|
|
2964
2964
|
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
|
|
2965
2965
|
**/
|
|
2966
2966
|
coreDescriptors: GenericStorageQuery<
|
|
2967
2967
|
Rv,
|
|
2968
|
-
(arg:
|
|
2969
|
-
|
|
2968
|
+
(arg: PolkadotPrimitivesV8CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
|
|
2969
|
+
PolkadotPrimitivesV8CoreIndex
|
|
2970
2970
|
>;
|
|
2971
2971
|
|
|
2972
2972
|
/**
|