@dedot/chaintypes 0.249.0 → 0.251.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/hydration/consts.d.ts +0 -5
- package/hydration/errors.d.ts +40 -2
- package/hydration/events.d.ts +20 -0
- package/hydration/index.d.ts +1 -1
- package/hydration/query.d.ts +10 -0
- package/hydration/tx.d.ts +79 -1
- package/hydration/types.d.ts +11497 -11322
- package/hydration/view-functions.d.ts +32 -1
- package/package.json +2 -2
- package/paseo/errors.d.ts +5 -0
- package/paseo/events.d.ts +94 -16
- package/paseo/index.d.ts +1 -1
- package/paseo/json-rpc.d.ts +1 -0
- package/paseo/query.d.ts +85 -46
- package/paseo/runtime.d.ts +90 -79
- package/paseo/tx.d.ts +81 -32
- package/paseo/types.d.ts +278 -209
- package/paseo-asset-hub/json-rpc.d.ts +1 -0
- package/paseo-people/errors.d.ts +5 -0
- package/paseo-people/events.d.ts +78 -2
- package/paseo-people/index.d.ts +1 -1
- package/paseo-people/json-rpc.d.ts +1 -0
- package/paseo-people/query.d.ts +44 -16
- package/paseo-people/runtime.d.ts +9 -5
- package/paseo-people/tx.d.ts +30 -0
- package/paseo-people/types.d.ts +107 -25
- package/paseo-people/view-functions.d.ts +46 -1
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainViewFunctions, GenericViewFunction } from 'dedot/types';
|
|
4
|
+
import type { HydradxRuntimeRuntimeCallLike, HydradxRuntimeSystemProxyType } from './types.js';
|
|
4
5
|
|
|
5
|
-
export interface ChainViewFunctions extends GenericChainViewFunctions {
|
|
6
|
+
export interface ChainViewFunctions extends GenericChainViewFunctions {
|
|
7
|
+
/**
|
|
8
|
+
* Pallet `Proxy`'s view functions
|
|
9
|
+
**/
|
|
10
|
+
proxy: {
|
|
11
|
+
/**
|
|
12
|
+
* Check if a `RuntimeCall` is allowed for a given `ProxyType`.
|
|
13
|
+
*
|
|
14
|
+
* @param {HydradxRuntimeRuntimeCallLike} call
|
|
15
|
+
* @param {HydradxRuntimeSystemProxyType} proxyType
|
|
16
|
+
**/
|
|
17
|
+
checkPermissions: GenericViewFunction<
|
|
18
|
+
(call: HydradxRuntimeRuntimeCallLike, proxyType: HydradxRuntimeSystemProxyType) => Promise<boolean>
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Check if one `ProxyType` is a subset of another `ProxyType`.
|
|
23
|
+
*
|
|
24
|
+
* @param {HydradxRuntimeSystemProxyType} toCheck
|
|
25
|
+
* @param {HydradxRuntimeSystemProxyType} against
|
|
26
|
+
**/
|
|
27
|
+
isSuperset: GenericViewFunction<
|
|
28
|
+
(toCheck: HydradxRuntimeSystemProxyType, against: HydradxRuntimeSystemProxyType) => Promise<boolean>
|
|
29
|
+
>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Generic pallet view function
|
|
33
|
+
**/
|
|
34
|
+
[name: string]: GenericViewFunction;
|
|
35
|
+
};
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.251.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "70d692bb3d62d37033921ab92cd55727b73f1c8a",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
package/paseo/errors.d.ts
CHANGED
|
@@ -2622,6 +2622,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2622
2622
|
**/
|
|
2623
2623
|
InvalidEquivocationProofSession: GenericPalletError;
|
|
2624
2624
|
|
|
2625
|
+
/**
|
|
2626
|
+
* The session of the equivocation proof is not in the mapping (anymore)
|
|
2627
|
+
**/
|
|
2628
|
+
InvalidEquivocationProofSessionMember: GenericPalletError;
|
|
2629
|
+
|
|
2625
2630
|
/**
|
|
2626
2631
|
* A given equivocation report is valid but already previously reported.
|
|
2627
2632
|
**/
|
package/paseo/events.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import type {
|
|
|
15
15
|
import type {
|
|
16
16
|
FrameSystemDispatchEventInfo,
|
|
17
17
|
FrameSupportTokensMiscBalanceStatus,
|
|
18
|
+
PaseoRuntimeRuntimeHoldReason,
|
|
18
19
|
PalletBalancesUnexpectedKind,
|
|
19
20
|
PalletStakingRewardDestination,
|
|
20
21
|
PalletStakingValidatorPrefs,
|
|
@@ -38,10 +39,11 @@ import type {
|
|
|
38
39
|
PalletNominationPoolsCommissionClaimPermission,
|
|
39
40
|
PalletNominationPoolsClaimPermission,
|
|
40
41
|
PalletStakingAsyncAhClientUnexpectedKind,
|
|
41
|
-
|
|
42
|
+
PalletStakingAsyncAhClientSessionKeysUpdate,
|
|
43
|
+
PolkadotPrimitivesV9CandidateReceiptV2,
|
|
42
44
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
PolkadotPrimitivesV9CoreIndex,
|
|
46
|
+
PolkadotPrimitivesV9GroupIndex,
|
|
45
47
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
46
48
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
47
49
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
@@ -335,11 +337,21 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
335
337
|
**/
|
|
336
338
|
Minted: GenericPalletEvent<'Balances', 'Minted', { who: AccountId32; amount: bigint }>;
|
|
337
339
|
|
|
340
|
+
/**
|
|
341
|
+
* Some credit was balanced and added to the TotalIssuance.
|
|
342
|
+
**/
|
|
343
|
+
MintedCredit: GenericPalletEvent<'Balances', 'MintedCredit', { amount: bigint }>;
|
|
344
|
+
|
|
338
345
|
/**
|
|
339
346
|
* Some amount was burned from an account.
|
|
340
347
|
**/
|
|
341
348
|
Burned: GenericPalletEvent<'Balances', 'Burned', { who: AccountId32; amount: bigint }>;
|
|
342
349
|
|
|
350
|
+
/**
|
|
351
|
+
* Some debt has been dropped from the Total Issuance.
|
|
352
|
+
**/
|
|
353
|
+
BurnedDebt: GenericPalletEvent<'Balances', 'BurnedDebt', { amount: bigint }>;
|
|
354
|
+
|
|
343
355
|
/**
|
|
344
356
|
* Some amount was suspended from an account (it can be restored later).
|
|
345
357
|
**/
|
|
@@ -390,6 +402,51 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
390
402
|
**/
|
|
391
403
|
TotalIssuanceForced: GenericPalletEvent<'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
|
|
392
404
|
|
|
405
|
+
/**
|
|
406
|
+
* Some balance was placed on hold.
|
|
407
|
+
**/
|
|
408
|
+
Held: GenericPalletEvent<
|
|
409
|
+
'Balances',
|
|
410
|
+
'Held',
|
|
411
|
+
{ reason: PaseoRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
412
|
+
>;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Held balance was burned from an account.
|
|
416
|
+
**/
|
|
417
|
+
BurnedHeld: GenericPalletEvent<
|
|
418
|
+
'Balances',
|
|
419
|
+
'BurnedHeld',
|
|
420
|
+
{ reason: PaseoRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
421
|
+
>;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* A transfer of `amount` on hold from `source` to `dest` was initiated.
|
|
425
|
+
**/
|
|
426
|
+
TransferOnHold: GenericPalletEvent<
|
|
427
|
+
'Balances',
|
|
428
|
+
'TransferOnHold',
|
|
429
|
+
{ reason: PaseoRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; amount: bigint }
|
|
430
|
+
>;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* The `transferred` balance is placed on hold at the `dest` account.
|
|
434
|
+
**/
|
|
435
|
+
TransferAndHold: GenericPalletEvent<
|
|
436
|
+
'Balances',
|
|
437
|
+
'TransferAndHold',
|
|
438
|
+
{ reason: PaseoRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; transferred: bigint }
|
|
439
|
+
>;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Some balance was released from hold.
|
|
443
|
+
**/
|
|
444
|
+
Released: GenericPalletEvent<
|
|
445
|
+
'Balances',
|
|
446
|
+
'Released',
|
|
447
|
+
{ reason: PaseoRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
448
|
+
>;
|
|
449
|
+
|
|
393
450
|
/**
|
|
394
451
|
* An unexpected/defensive event was triggered.
|
|
395
452
|
**/
|
|
@@ -733,12 +790,12 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
733
790
|
/**
|
|
734
791
|
* An account has delegated their vote to another account. \[who, target\]
|
|
735
792
|
**/
|
|
736
|
-
Delegated: GenericPalletEvent<'ConvictionVoting', 'Delegated', [AccountId32, AccountId32]>;
|
|
793
|
+
Delegated: GenericPalletEvent<'ConvictionVoting', 'Delegated', [AccountId32, AccountId32, number]>;
|
|
737
794
|
|
|
738
795
|
/**
|
|
739
796
|
* An \[account\] has cancelled a previous delegation operation.
|
|
740
797
|
**/
|
|
741
|
-
Undelegated: GenericPalletEvent<'ConvictionVoting', 'Undelegated', AccountId32>;
|
|
798
|
+
Undelegated: GenericPalletEvent<'ConvictionVoting', 'Undelegated', [AccountId32, number]>;
|
|
742
799
|
|
|
743
800
|
/**
|
|
744
801
|
* An account has voted
|
|
@@ -746,7 +803,7 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
746
803
|
Voted: GenericPalletEvent<
|
|
747
804
|
'ConvictionVoting',
|
|
748
805
|
'Voted',
|
|
749
|
-
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
806
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote; pollIndex: number }
|
|
750
807
|
>;
|
|
751
808
|
|
|
752
809
|
/**
|
|
@@ -755,7 +812,7 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
755
812
|
VoteRemoved: GenericPalletEvent<
|
|
756
813
|
'ConvictionVoting',
|
|
757
814
|
'VoteRemoved',
|
|
758
|
-
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
815
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote; pollIndex: number }
|
|
759
816
|
>;
|
|
760
817
|
|
|
761
818
|
/**
|
|
@@ -1219,6 +1276,8 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1219
1276
|
who: AccountId32;
|
|
1220
1277
|
proxyType: PaseoRuntimeConstantsProxyProxyType;
|
|
1221
1278
|
disambiguationIndex: number;
|
|
1279
|
+
at: number;
|
|
1280
|
+
extrinsicIndex: number;
|
|
1222
1281
|
}
|
|
1223
1282
|
>;
|
|
1224
1283
|
|
|
@@ -1868,6 +1927,25 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1868
1927
|
**/
|
|
1869
1928
|
Unexpected: GenericPalletEvent<'StakingAhClient', 'Unexpected', PalletStakingAsyncAhClientUnexpectedKind>;
|
|
1870
1929
|
|
|
1930
|
+
/**
|
|
1931
|
+
* Session keys updated for a validator.
|
|
1932
|
+
**/
|
|
1933
|
+
SessionKeysUpdated: GenericPalletEvent<
|
|
1934
|
+
'StakingAhClient',
|
|
1935
|
+
'SessionKeysUpdated',
|
|
1936
|
+
{ stash: AccountId32; update: PalletStakingAsyncAhClientSessionKeysUpdate }
|
|
1937
|
+
>;
|
|
1938
|
+
|
|
1939
|
+
/**
|
|
1940
|
+
* Session key update from AssetHub failed on the relay chain.
|
|
1941
|
+
* Logged as an event for fail-safe observability.
|
|
1942
|
+
**/
|
|
1943
|
+
SessionKeysUpdateFailed: GenericPalletEvent<
|
|
1944
|
+
'StakingAhClient',
|
|
1945
|
+
'SessionKeysUpdateFailed',
|
|
1946
|
+
{ stash: AccountId32; update: PalletStakingAsyncAhClientSessionKeysUpdate; error: DispatchError }
|
|
1947
|
+
>;
|
|
1948
|
+
|
|
1871
1949
|
/**
|
|
1872
1950
|
* Generic pallet event
|
|
1873
1951
|
**/
|
|
@@ -1884,10 +1962,10 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1884
1962
|
'ParaInclusion',
|
|
1885
1963
|
'CandidateBacked',
|
|
1886
1964
|
[
|
|
1887
|
-
|
|
1965
|
+
PolkadotPrimitivesV9CandidateReceiptV2,
|
|
1888
1966
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1889
|
-
|
|
1890
|
-
|
|
1967
|
+
PolkadotPrimitivesV9CoreIndex,
|
|
1968
|
+
PolkadotPrimitivesV9GroupIndex,
|
|
1891
1969
|
]
|
|
1892
1970
|
>;
|
|
1893
1971
|
|
|
@@ -1898,10 +1976,10 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1898
1976
|
'ParaInclusion',
|
|
1899
1977
|
'CandidateIncluded',
|
|
1900
1978
|
[
|
|
1901
|
-
|
|
1979
|
+
PolkadotPrimitivesV9CandidateReceiptV2,
|
|
1902
1980
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1903
|
-
|
|
1904
|
-
|
|
1981
|
+
PolkadotPrimitivesV9CoreIndex,
|
|
1982
|
+
PolkadotPrimitivesV9GroupIndex,
|
|
1905
1983
|
]
|
|
1906
1984
|
>;
|
|
1907
1985
|
|
|
@@ -1912,9 +1990,9 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1912
1990
|
'ParaInclusion',
|
|
1913
1991
|
'CandidateTimedOut',
|
|
1914
1992
|
[
|
|
1915
|
-
|
|
1993
|
+
PolkadotPrimitivesV9CandidateReceiptV2,
|
|
1916
1994
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1917
|
-
|
|
1995
|
+
PolkadotPrimitivesV9CoreIndex,
|
|
1918
1996
|
]
|
|
1919
1997
|
>;
|
|
1920
1998
|
|
|
@@ -2415,7 +2493,7 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
2415
2493
|
/**
|
|
2416
2494
|
* A core has received a new assignment from the broker chain.
|
|
2417
2495
|
**/
|
|
2418
|
-
CoreAssigned: GenericPalletEvent<'Coretime', 'CoreAssigned', { core:
|
|
2496
|
+
CoreAssigned: GenericPalletEvent<'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV9CoreIndex }>;
|
|
2419
2497
|
|
|
2420
2498
|
/**
|
|
2421
2499
|
* Generic pallet event
|
package/paseo/index.d.ts
CHANGED
package/paseo/json-rpc.d.ts
CHANGED
package/paseo/query.d.ts
CHANGED
|
@@ -94,13 +94,13 @@ import type {
|
|
|
94
94
|
PalletStakingAsyncRcClientSessionReport,
|
|
95
95
|
PalletStakingAsyncRcClientOffence,
|
|
96
96
|
PolkadotRuntimeParachainsConfigurationHostConfiguration,
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
PolkadotPrimitivesV9ValidatorIndex,
|
|
98
|
+
PolkadotPrimitivesV9ValidatorAppPublic,
|
|
99
99
|
PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
|
|
100
100
|
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
|
|
101
101
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
112
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
PolkadotPrimitivesV9AssignmentAppPublic,
|
|
122
|
+
PolkadotPrimitivesV9SessionInfo,
|
|
123
|
+
PolkadotPrimitivesV9ExecutorParams,
|
|
124
|
+
PolkadotPrimitivesV9DisputeState,
|
|
125
125
|
PolkadotCorePrimitivesCandidateHash,
|
|
126
|
-
|
|
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<
|
|
2487
|
+
* @param {Callback<Array<PolkadotPrimitivesV9ValidatorIndex>> =} callback
|
|
2449
2488
|
**/
|
|
2450
|
-
activeValidatorIndices: GenericStorageQuery<() => Array<
|
|
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<
|
|
2495
|
+
* @param {Callback<Array<PolkadotPrimitivesV9ValidatorAppPublic>> =} callback
|
|
2457
2496
|
**/
|
|
2458
|
-
activeValidatorKeys: GenericStorageQuery<() => Array<
|
|
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<
|
|
2556
|
+
* @param {Callback<PolkadotPrimitivesV9ScrapedOnChainVotes | undefined> =} callback
|
|
2518
2557
|
**/
|
|
2519
|
-
onChainVotes: GenericStorageQuery<() =>
|
|
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<
|
|
2578
|
+
* @param {Callback<Array<Array<PolkadotPrimitivesV9ValidatorIndex>>> =} callback
|
|
2540
2579
|
**/
|
|
2541
|
-
validatorGroups: GenericStorageQuery<() => Array<Array<
|
|
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<[
|
|
2599
|
+
* @param {Callback<Array<[PolkadotPrimitivesV9CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>> =} callback
|
|
2561
2600
|
**/
|
|
2562
2601
|
claimQueue: GenericStorageQuery<
|
|
2563
|
-
() => Array<[
|
|
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<
|
|
2805
|
+
* @param {Callback<PolkadotPrimitivesV9UpgradeGoAhead | undefined> =} callback
|
|
2767
2806
|
**/
|
|
2768
2807
|
upgradeGoAheadSignal: GenericStorageQuery<
|
|
2769
|
-
(arg: PolkadotParachainPrimitivesPrimitivesId) =>
|
|
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<
|
|
2824
|
+
* @param {Callback<PolkadotPrimitivesV9UpgradeRestriction | undefined> =} callback
|
|
2786
2825
|
**/
|
|
2787
2826
|
upgradeRestrictionSignal: GenericStorageQuery<
|
|
2788
|
-
(arg: PolkadotParachainPrimitivesPrimitivesId) =>
|
|
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<
|
|
3169
|
+
* @param {Callback<Array<PolkadotPrimitivesV9AssignmentAppPublic>> =} callback
|
|
3131
3170
|
**/
|
|
3132
|
-
assignmentKeysUnsafe: GenericStorageQuery<() => Array<
|
|
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<
|
|
3186
|
+
* @param {Callback<PolkadotPrimitivesV9SessionInfo | undefined> =} callback
|
|
3148
3187
|
**/
|
|
3149
|
-
sessions: GenericStorageQuery<(arg: 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<
|
|
3202
|
+
* @param {Callback<PolkadotPrimitivesV9ExecutorParams | undefined> =} callback
|
|
3164
3203
|
**/
|
|
3165
|
-
sessionExecutorParams: GenericStorageQuery<(arg: 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<
|
|
3227
|
+
* @param {Callback<PolkadotPrimitivesV9DisputeState | undefined> =} callback
|
|
3189
3228
|
**/
|
|
3190
3229
|
disputes: GenericStorageQuery<
|
|
3191
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) =>
|
|
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<
|
|
3239
|
+
* @param {Callback<Array<PolkadotPrimitivesV9ValidatorIndex> | undefined> =} callback
|
|
3201
3240
|
**/
|
|
3202
3241
|
backersOnDisputes: GenericStorageQuery<
|
|
3203
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<
|
|
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<
|
|
3281
|
+
* @param {Callback<PolkadotPrimitivesV9SlashingPendingSlashes | undefined> =} callback
|
|
3243
3282
|
**/
|
|
3244
3283
|
unappliedSlashes: GenericStorageQuery<
|
|
3245
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) =>
|
|
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 {
|
|
3337
|
+
* @param {PolkadotPrimitivesV9CoreIndex} arg
|
|
3299
3338
|
* @param {Callback<BinaryHeapEnqueuedOrder> =} callback
|
|
3300
3339
|
**/
|
|
3301
3340
|
affinityEntries: GenericStorageQuery<
|
|
3302
|
-
(arg:
|
|
3303
|
-
|
|
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,
|
|
3375
|
+
* @param {[number, PolkadotPrimitivesV9CoreIndex]} arg
|
|
3337
3376
|
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
|
|
3338
3377
|
**/
|
|
3339
3378
|
coreSchedules: GenericStorageQuery<
|
|
3340
|
-
(arg: [number,
|
|
3341
|
-
[number,
|
|
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 {
|
|
3389
|
+
* @param {PolkadotPrimitivesV9CoreIndex} arg
|
|
3351
3390
|
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
|
|
3352
3391
|
**/
|
|
3353
3392
|
coreDescriptors: GenericStorageQuery<
|
|
3354
|
-
(arg:
|
|
3355
|
-
|
|
3393
|
+
(arg: PolkadotPrimitivesV9CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
|
|
3394
|
+
PolkadotPrimitivesV9CoreIndex
|
|
3356
3395
|
>;
|
|
3357
3396
|
|
|
3358
3397
|
/**
|