@polkadot/api-augment 10.12.2 → 10.12.3
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/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +66 -52
- package/kusama/errors.d.ts +239 -25
- package/kusama/events.d.ts +325 -92
- package/kusama/query.d.ts +247 -90
- package/kusama/runtime.d.ts +2 -120
- package/kusama/tx.d.ts +402 -132
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +68 -47
- package/polkadot/errors.d.ts +186 -24
- package/polkadot/events.d.ts +267 -85
- package/polkadot/query.d.ts +276 -87
- package/polkadot/runtime.d.ts +16 -1
- package/polkadot/tx.d.ts +355 -90
- package/substrate/runtime.d.ts +4 -4
package/polkadot/query.d.ts
CHANGED
|
@@ -1,16 +1,32 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/storage';
|
|
2
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
3
3
|
import type { Data } from '@polkadot/types';
|
|
4
|
-
import type { BTreeMap, BTreeSet, Bytes, Null, Option,
|
|
4
|
+
import type { BTreeMap, BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock,
|
|
8
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6DisputeState, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
|
9
9
|
import type { Observable } from '@polkadot/types/types';
|
|
10
10
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
11
11
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
12
12
|
declare module '@polkadot/api-base/types/storage' {
|
|
13
13
|
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
14
|
+
assetRate: {
|
|
15
|
+
/**
|
|
16
|
+
* Maps an asset to its fixed point representation in the native balance.
|
|
17
|
+
*
|
|
18
|
+
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
|
|
19
|
+
**/
|
|
20
|
+
conversionRateToNative: AugmentedQuery<ApiType, (arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset | {
|
|
21
|
+
V3: any;
|
|
22
|
+
} | {
|
|
23
|
+
V4: any;
|
|
24
|
+
} | string | Uint8Array) => Observable<Option<u128>>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]>;
|
|
25
|
+
/**
|
|
26
|
+
* Generic query
|
|
27
|
+
**/
|
|
28
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
29
|
+
};
|
|
14
30
|
auctions: {
|
|
15
31
|
/**
|
|
16
32
|
* Number of auctions started so far.
|
|
@@ -40,6 +56,20 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
40
56
|
**/
|
|
41
57
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
42
58
|
};
|
|
59
|
+
authorityDiscovery: {
|
|
60
|
+
/**
|
|
61
|
+
* Keys of the current authority set.
|
|
62
|
+
**/
|
|
63
|
+
keys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
64
|
+
/**
|
|
65
|
+
* Keys of the next authority set.
|
|
66
|
+
**/
|
|
67
|
+
nextKeys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
68
|
+
/**
|
|
69
|
+
* Generic query
|
|
70
|
+
**/
|
|
71
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
72
|
+
};
|
|
43
73
|
authorship: {
|
|
44
74
|
/**
|
|
45
75
|
* Author of current block.
|
|
@@ -194,14 +224,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
194
224
|
/**
|
|
195
225
|
* Freeze locks on account balances.
|
|
196
226
|
**/
|
|
197
|
-
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<
|
|
227
|
+
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
198
228
|
/**
|
|
199
229
|
* Holds on account balances.
|
|
200
230
|
**/
|
|
201
|
-
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<
|
|
202
|
-
readonly id: PolkadotRuntimeRuntimeHoldReason;
|
|
203
|
-
readonly amount: u128;
|
|
204
|
-
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
231
|
+
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
205
232
|
/**
|
|
206
233
|
* The total units of outstanding deactivated balance in the system.
|
|
207
234
|
**/
|
|
@@ -224,6 +251,59 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
224
251
|
**/
|
|
225
252
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
226
253
|
};
|
|
254
|
+
beefy: {
|
|
255
|
+
/**
|
|
256
|
+
* The current authorities set
|
|
257
|
+
**/
|
|
258
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
259
|
+
/**
|
|
260
|
+
* Block number where BEEFY consensus is enabled/started.
|
|
261
|
+
* By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
|
|
262
|
+
* restarted from the newly set block number.
|
|
263
|
+
**/
|
|
264
|
+
genesisBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
265
|
+
/**
|
|
266
|
+
* Authorities set scheduled to be used with the next session
|
|
267
|
+
**/
|
|
268
|
+
nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
269
|
+
/**
|
|
270
|
+
* A mapping from BEEFY set ID to the index of the *most recent* session for which its
|
|
271
|
+
* members were responsible.
|
|
272
|
+
*
|
|
273
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
274
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
275
|
+
* together sessions and BEEFY set ids, i.e. we need to validate that a validator
|
|
276
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
277
|
+
* during that session.
|
|
278
|
+
*
|
|
279
|
+
* TWOX-NOTE: `ValidatorSetId` is not under user control.
|
|
280
|
+
**/
|
|
281
|
+
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
282
|
+
/**
|
|
283
|
+
* The current validator set id
|
|
284
|
+
**/
|
|
285
|
+
validatorSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
286
|
+
/**
|
|
287
|
+
* Generic query
|
|
288
|
+
**/
|
|
289
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
290
|
+
};
|
|
291
|
+
beefyMmrLeaf: {
|
|
292
|
+
/**
|
|
293
|
+
* Details of current BEEFY authority set.
|
|
294
|
+
**/
|
|
295
|
+
beefyAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
|
296
|
+
/**
|
|
297
|
+
* Details of next BEEFY authority set.
|
|
298
|
+
*
|
|
299
|
+
* This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
|
|
300
|
+
**/
|
|
301
|
+
beefyNextAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
|
302
|
+
/**
|
|
303
|
+
* Generic query
|
|
304
|
+
**/
|
|
305
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
306
|
+
};
|
|
227
307
|
bounties: {
|
|
228
308
|
/**
|
|
229
309
|
* Bounties that have been made.
|
|
@@ -363,7 +443,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
363
443
|
};
|
|
364
444
|
dmp: {
|
|
365
445
|
/**
|
|
366
|
-
* The
|
|
446
|
+
* The factor to multiply the base delivery fee by.
|
|
367
447
|
**/
|
|
368
448
|
deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
369
449
|
/**
|
|
@@ -394,6 +474,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
394
474
|
* Desired number of targets to elect for this round.
|
|
395
475
|
*
|
|
396
476
|
* Only exists when [`Snapshot`] is present.
|
|
477
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
397
478
|
**/
|
|
398
479
|
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
399
480
|
/**
|
|
@@ -453,12 +534,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
453
534
|
* Snapshot data of the round.
|
|
454
535
|
*
|
|
455
536
|
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
|
|
537
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
456
538
|
**/
|
|
457
539
|
snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
458
540
|
/**
|
|
459
541
|
* The metadata of the [`RoundSnapshot`]
|
|
460
542
|
*
|
|
461
543
|
* Only exists when [`Snapshot`] is present.
|
|
544
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
462
545
|
**/
|
|
463
546
|
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
464
547
|
/**
|
|
@@ -500,6 +583,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
500
583
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
501
584
|
};
|
|
502
585
|
grandpa: {
|
|
586
|
+
/**
|
|
587
|
+
* The current list of authorities.
|
|
588
|
+
**/
|
|
589
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
503
590
|
/**
|
|
504
591
|
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
505
592
|
* in the "set" of Grandpa validators from genesis.
|
|
@@ -539,6 +626,20 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
539
626
|
**/
|
|
540
627
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
541
628
|
};
|
|
629
|
+
historical: {
|
|
630
|
+
/**
|
|
631
|
+
* Mapping from historical session indices to session-data root hash and validator count.
|
|
632
|
+
**/
|
|
633
|
+
historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
634
|
+
/**
|
|
635
|
+
* The range of historical sessions we store. [first, last)
|
|
636
|
+
**/
|
|
637
|
+
storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
638
|
+
/**
|
|
639
|
+
* Generic query
|
|
640
|
+
**/
|
|
641
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
642
|
+
};
|
|
542
643
|
hrmp: {
|
|
543
644
|
/**
|
|
544
645
|
* This mapping tracks how many open channel requests were accepted by a given recipient para.
|
|
@@ -550,10 +651,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
550
651
|
* Storage for the messages for each channel.
|
|
551
652
|
* Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`.
|
|
552
653
|
**/
|
|
553
|
-
hrmpChannelContents: AugmentedQuery<ApiType, (arg:
|
|
654
|
+
hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | {
|
|
554
655
|
sender?: any;
|
|
555
656
|
recipient?: any;
|
|
556
|
-
} | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [
|
|
657
|
+
} | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
|
|
557
658
|
/**
|
|
558
659
|
* Maintains a mapping that can be used to answer the question: What paras sent a message at
|
|
559
660
|
* the given block number for a given receiver. Invariants:
|
|
@@ -568,10 +669,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
568
669
|
* Invariant:
|
|
569
670
|
* - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session.
|
|
570
671
|
**/
|
|
571
|
-
hrmpChannels: AugmentedQuery<ApiType, (arg:
|
|
672
|
+
hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | {
|
|
572
673
|
sender?: any;
|
|
573
674
|
recipient?: any;
|
|
574
|
-
} | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [
|
|
675
|
+
} | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
|
|
575
676
|
/**
|
|
576
677
|
* A set of pending HRMP close channel requests that are going to be closed during the session
|
|
577
678
|
* change. Used for checking if a given channel is registered for closure.
|
|
@@ -581,11 +682,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
581
682
|
* Invariant:
|
|
582
683
|
* - There are no channels that exists in list but not in the set and vice versa.
|
|
583
684
|
**/
|
|
584
|
-
hrmpCloseChannelRequests: AugmentedQuery<ApiType, (arg:
|
|
685
|
+
hrmpCloseChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | {
|
|
585
686
|
sender?: any;
|
|
586
687
|
recipient?: any;
|
|
587
|
-
} | string | Uint8Array) => Observable<Option<Null>>, [
|
|
588
|
-
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<
|
|
688
|
+
} | string | Uint8Array) => Observable<Option<Null>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
|
|
689
|
+
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
589
690
|
hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
590
691
|
/**
|
|
591
692
|
* Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
|
|
@@ -617,11 +718,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
617
718
|
* Invariant:
|
|
618
719
|
* - There are no channels that exists in list but not in the set and vice versa.
|
|
619
720
|
**/
|
|
620
|
-
hrmpOpenChannelRequests: AugmentedQuery<ApiType, (arg:
|
|
721
|
+
hrmpOpenChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | {
|
|
621
722
|
sender?: any;
|
|
622
723
|
recipient?: any;
|
|
623
|
-
} | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest>>, [
|
|
624
|
-
hrmpOpenChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<
|
|
724
|
+
} | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
|
|
725
|
+
hrmpOpenChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
625
726
|
/**
|
|
626
727
|
* The HRMP watermark associated with each para.
|
|
627
728
|
* Invariant:
|
|
@@ -636,11 +737,29 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
636
737
|
};
|
|
637
738
|
identity: {
|
|
638
739
|
/**
|
|
639
|
-
*
|
|
740
|
+
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
|
|
741
|
+
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
|
|
742
|
+
*
|
|
743
|
+
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
|
|
744
|
+
* primary username.
|
|
745
|
+
**/
|
|
746
|
+
accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
|
747
|
+
/**
|
|
748
|
+
* Information that is pertinent to identify the entity behind an account. First item is the
|
|
749
|
+
* registration, second is the account's primary username.
|
|
640
750
|
*
|
|
641
751
|
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
642
752
|
**/
|
|
643
|
-
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityRegistration
|
|
753
|
+
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
754
|
+
/**
|
|
755
|
+
* Usernames that an authority has granted, but that the account controller has not confirmed
|
|
756
|
+
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
|
|
757
|
+
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
|
|
758
|
+
* [`Call::accept_username`].
|
|
759
|
+
*
|
|
760
|
+
* First tuple item is the account and second is the acceptance deadline.
|
|
761
|
+
**/
|
|
762
|
+
pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
|
644
763
|
/**
|
|
645
764
|
* The set of registrars. Not expected to get very big as can only be added through a
|
|
646
765
|
* special origin (likely a council motion).
|
|
@@ -662,38 +781,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
662
781
|
**/
|
|
663
782
|
superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
664
783
|
/**
|
|
665
|
-
*
|
|
666
|
-
**/
|
|
667
|
-
[key: string]: QueryableStorageEntry<ApiType>;
|
|
668
|
-
};
|
|
669
|
-
imOnline: {
|
|
670
|
-
/**
|
|
671
|
-
* For each session index, we keep a mapping of `ValidatorId<T>` to the
|
|
672
|
-
* number of blocks authored by the given authority.
|
|
784
|
+
* A map of the accounts who are authorized to grant usernames.
|
|
673
785
|
**/
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* The block number after which it's ok to send heartbeats in the current
|
|
677
|
-
* session.
|
|
678
|
-
*
|
|
679
|
-
* At the beginning of each session we set this to a value that should fall
|
|
680
|
-
* roughly in the middle of the session duration. The idea is to first wait for
|
|
681
|
-
* the validators to produce a block in the current session, so that the
|
|
682
|
-
* heartbeat later on will not be necessary.
|
|
683
|
-
*
|
|
684
|
-
* This value will only be used as a fallback if we fail to get a proper session
|
|
685
|
-
* progress estimate from `NextSessionRotation`, as those estimates should be
|
|
686
|
-
* more accurate then the value we calculate for `HeartbeatAfter`.
|
|
687
|
-
**/
|
|
688
|
-
heartbeatAfter: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
689
|
-
/**
|
|
690
|
-
* The current set of keys that may issue a heartbeat.
|
|
691
|
-
**/
|
|
692
|
-
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
693
|
-
/**
|
|
694
|
-
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
|
|
695
|
-
**/
|
|
696
|
-
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
786
|
+
usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
697
787
|
/**
|
|
698
788
|
* Generic query
|
|
699
789
|
**/
|
|
@@ -758,6 +848,27 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
758
848
|
**/
|
|
759
849
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
760
850
|
};
|
|
851
|
+
mmr: {
|
|
852
|
+
/**
|
|
853
|
+
* Hashes of the nodes in the MMR.
|
|
854
|
+
*
|
|
855
|
+
* Note this collection only contains MMR peaks, the inner nodes (and leaves)
|
|
856
|
+
* are pruned and only stored in the Offchain DB.
|
|
857
|
+
**/
|
|
858
|
+
nodes: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
859
|
+
/**
|
|
860
|
+
* Current size of the MMR (number of leaves).
|
|
861
|
+
**/
|
|
862
|
+
numberOfLeaves: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
863
|
+
/**
|
|
864
|
+
* Latest MMR Root hash.
|
|
865
|
+
**/
|
|
866
|
+
rootHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
|
|
867
|
+
/**
|
|
868
|
+
* Generic query
|
|
869
|
+
**/
|
|
870
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
871
|
+
};
|
|
761
872
|
multisig: {
|
|
762
873
|
/**
|
|
763
874
|
* The set of open multisig operations.
|
|
@@ -867,6 +978,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
867
978
|
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
|
|
868
979
|
**/
|
|
869
980
|
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
981
|
+
/**
|
|
982
|
+
* The sum of funds across all pools.
|
|
983
|
+
*
|
|
984
|
+
* This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
|
|
985
|
+
* because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
|
|
986
|
+
* `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
|
|
987
|
+
**/
|
|
988
|
+
totalValueLocked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
870
989
|
/**
|
|
871
990
|
* Generic query
|
|
872
991
|
**/
|
|
@@ -898,7 +1017,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
898
1017
|
/**
|
|
899
1018
|
* The commitments of candidates pending availability, by `ParaId`.
|
|
900
1019
|
**/
|
|
901
|
-
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
1020
|
+
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
902
1021
|
/**
|
|
903
1022
|
* Generic query
|
|
904
1023
|
**/
|
|
@@ -917,7 +1036,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
917
1036
|
/**
|
|
918
1037
|
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
|
919
1038
|
**/
|
|
920
|
-
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<
|
|
1039
|
+
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV6ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
921
1040
|
/**
|
|
922
1041
|
* Generic query
|
|
923
1042
|
**/
|
|
@@ -1041,7 +1160,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1041
1160
|
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
|
1042
1161
|
* the format will require migration of parachains.
|
|
1043
1162
|
**/
|
|
1044
|
-
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
1163
|
+
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1045
1164
|
/**
|
|
1046
1165
|
* This is used by the relay-chain to communicate that there are restrictions for performing
|
|
1047
1166
|
* an upgrade for this parachain.
|
|
@@ -1053,7 +1172,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1053
1172
|
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
|
1054
1173
|
* the format will require migration of parachains.
|
|
1055
1174
|
**/
|
|
1056
|
-
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
1175
|
+
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1057
1176
|
/**
|
|
1058
1177
|
* Generic query
|
|
1059
1178
|
**/
|
|
@@ -1070,7 +1189,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1070
1189
|
* * The number of parachains and parathread multiplexers
|
|
1071
1190
|
* * The number of validators divided by `configuration.max_validators_per_core`.
|
|
1072
1191
|
**/
|
|
1073
|
-
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<
|
|
1192
|
+
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1074
1193
|
/**
|
|
1075
1194
|
* One entry for each availability core. The `VecDeque` represents the assignments to be
|
|
1076
1195
|
* scheduled on that core. `None` is used to signal to not schedule the next para of the core
|
|
@@ -1078,7 +1197,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1078
1197
|
* `CoreState` in the runtime API. The value contained here will not be valid after the end of
|
|
1079
1198
|
* a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
|
|
1080
1199
|
**/
|
|
1081
|
-
claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<
|
|
1200
|
+
claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<PolkadotRuntimeParachainsSchedulerPalletParasEntry>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1082
1201
|
/**
|
|
1083
1202
|
* The block number where the session start occurred. Used to track how many group rotations
|
|
1084
1203
|
* have occurred.
|
|
@@ -1113,7 +1232,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1113
1232
|
/**
|
|
1114
1233
|
* All ongoing or concluded disputes for the last several sessions.
|
|
1115
1234
|
**/
|
|
1116
|
-
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<
|
|
1235
|
+
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
|
1117
1236
|
/**
|
|
1118
1237
|
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
|
|
1119
1238
|
* the chain will not accept any new parachain blocks for backing or inclusion,
|
|
@@ -1146,7 +1265,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1146
1265
|
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
|
1147
1266
|
* When in doubt, use `Sessions` API instead.
|
|
1148
1267
|
**/
|
|
1149
|
-
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<
|
|
1268
|
+
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1150
1269
|
/**
|
|
1151
1270
|
* The earliest session for which previous session info is stored.
|
|
1152
1271
|
**/
|
|
@@ -1154,13 +1273,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1154
1273
|
/**
|
|
1155
1274
|
* Executor parameter set for a given session index
|
|
1156
1275
|
**/
|
|
1157
|
-
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
1276
|
+
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1158
1277
|
/**
|
|
1159
1278
|
* Session information in a rolling window.
|
|
1160
1279
|
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
|
1161
1280
|
* Does not have any entries before the session index in the first session change notification.
|
|
1162
1281
|
**/
|
|
1163
|
-
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
1282
|
+
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1164
1283
|
/**
|
|
1165
1284
|
* Generic query
|
|
1166
1285
|
**/
|
|
@@ -1176,7 +1295,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1176
1295
|
* The parachain attestation keys of the validators actively participating in parachain
|
|
1177
1296
|
* consensus. This should be the same length as `ActiveValidatorIndices`.
|
|
1178
1297
|
**/
|
|
1179
|
-
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<
|
|
1298
|
+
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1180
1299
|
/**
|
|
1181
1300
|
* All allowed relay-parents.
|
|
1182
1301
|
**/
|
|
@@ -1194,7 +1313,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1194
1313
|
/**
|
|
1195
1314
|
* Validators pending dispute slashes.
|
|
1196
1315
|
**/
|
|
1197
|
-
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<
|
|
1316
|
+
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
|
1198
1317
|
/**
|
|
1199
1318
|
* `ValidatorSetCount` per session.
|
|
1200
1319
|
**/
|
|
@@ -1209,7 +1328,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1209
1328
|
/**
|
|
1210
1329
|
* The request status of a given hash.
|
|
1211
1330
|
**/
|
|
1212
|
-
|
|
1331
|
+
requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1332
|
+
/**
|
|
1333
|
+
* The request status of a given hash.
|
|
1334
|
+
**/
|
|
1335
|
+
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1213
1336
|
/**
|
|
1214
1337
|
* Generic query
|
|
1215
1338
|
**/
|
|
@@ -1237,7 +1360,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1237
1360
|
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
1238
1361
|
/**
|
|
1239
1362
|
* The metadata is a general information concerning the referendum.
|
|
1240
|
-
* The `
|
|
1363
|
+
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
1241
1364
|
* dump or IPFS hash of a JSON file.
|
|
1242
1365
|
*
|
|
1243
1366
|
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
@@ -1400,6 +1523,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1400
1523
|
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
|
|
1401
1524
|
**/
|
|
1402
1525
|
chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1526
|
+
/**
|
|
1527
|
+
* History of claimed paged rewards by era and validator.
|
|
1528
|
+
*
|
|
1529
|
+
* This is keyed by era and validator stash which maps to the set of page indexes which have
|
|
1530
|
+
* been claimed.
|
|
1531
|
+
*
|
|
1532
|
+
* It is removed after [`Config::HistoryDepth`] eras.
|
|
1533
|
+
**/
|
|
1534
|
+
claimedRewards: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1403
1535
|
/**
|
|
1404
1536
|
* Counter for the related counted storage map
|
|
1405
1537
|
**/
|
|
@@ -1422,7 +1554,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1422
1554
|
**/
|
|
1423
1555
|
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1424
1556
|
/**
|
|
1425
|
-
* Rewards for the last `
|
|
1557
|
+
* Rewards for the last [`Config::HistoryDepth`] eras.
|
|
1426
1558
|
* If reward hasn't been set or has been removed then 0 reward is returned.
|
|
1427
1559
|
**/
|
|
1428
1560
|
erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
@@ -1431,33 +1563,64 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1431
1563
|
*
|
|
1432
1564
|
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
1433
1565
|
*
|
|
1434
|
-
* Is it removed after `
|
|
1566
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
1435
1567
|
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
1568
|
+
*
|
|
1569
|
+
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
|
1436
1570
|
**/
|
|
1437
|
-
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<
|
|
1571
|
+
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1438
1572
|
/**
|
|
1439
1573
|
* Clipped Exposure of validator at era.
|
|
1440
1574
|
*
|
|
1575
|
+
* Note: This is deprecated, should be used as read-only and will be removed in the future.
|
|
1576
|
+
* New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
|
|
1577
|
+
*
|
|
1441
1578
|
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
|
|
1442
|
-
* `T::
|
|
1579
|
+
* `T::MaxExposurePageSize` biggest stakers.
|
|
1443
1580
|
* (Note: the field `total` and `own` of the exposure remains unchanged).
|
|
1444
1581
|
* This is used to limit the i/o cost for the nominator payout.
|
|
1445
1582
|
*
|
|
1446
1583
|
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
|
|
1447
1584
|
*
|
|
1448
|
-
*
|
|
1585
|
+
* It is removed after [`Config::HistoryDepth`] eras.
|
|
1449
1586
|
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
1587
|
+
*
|
|
1588
|
+
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
|
1589
|
+
**/
|
|
1590
|
+
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1591
|
+
/**
|
|
1592
|
+
* Summary of validator exposure at a given era.
|
|
1593
|
+
*
|
|
1594
|
+
* This contains the total stake in support of the validator and their own stake. In addition,
|
|
1595
|
+
* it can also be used to get the number of nominators backing this validator and the number of
|
|
1596
|
+
* exposure pages they are divided into. The page count is useful to determine the number of
|
|
1597
|
+
* pages of rewards that needs to be claimed.
|
|
1598
|
+
*
|
|
1599
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
1600
|
+
* Should only be accessed through `EraInfo`.
|
|
1601
|
+
*
|
|
1602
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
1603
|
+
* If stakers hasn't been set or has been removed then empty overview is returned.
|
|
1450
1604
|
**/
|
|
1451
|
-
|
|
1605
|
+
erasStakersOverview: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<SpStakingPagedExposureMetadata>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1452
1606
|
/**
|
|
1453
|
-
*
|
|
1607
|
+
* Paginated exposure of a validator at given era.
|
|
1608
|
+
*
|
|
1609
|
+
* This is keyed first by the era index to allow bulk deletion, then stash account and finally
|
|
1610
|
+
* the page. Should only be accessed through `EraInfo`.
|
|
1611
|
+
*
|
|
1612
|
+
* This is cleared after [`Config::HistoryDepth`] eras.
|
|
1613
|
+
**/
|
|
1614
|
+
erasStakersPaged: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<SpStakingExposurePage>>, [u32, AccountId32, u32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, u32]>;
|
|
1615
|
+
/**
|
|
1616
|
+
* The session index at which the era start for the last [`Config::HistoryDepth`] eras.
|
|
1454
1617
|
*
|
|
1455
1618
|
* Note: This tracks the starting session (i.e. session index when era start being active)
|
|
1456
1619
|
* for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
|
|
1457
1620
|
**/
|
|
1458
1621
|
erasStartSessionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1459
1622
|
/**
|
|
1460
|
-
* The total amount staked for the last `
|
|
1623
|
+
* The total amount staked for the last [`Config::HistoryDepth`] eras.
|
|
1461
1624
|
* If total hasn't been set or has been removed then 0 stake is returned.
|
|
1462
1625
|
**/
|
|
1463
1626
|
erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
@@ -1466,11 +1629,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1466
1629
|
*
|
|
1467
1630
|
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
1468
1631
|
*
|
|
1469
|
-
* Is it removed after `
|
|
1632
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
1470
1633
|
**/
|
|
1471
1634
|
erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1472
1635
|
/**
|
|
1473
|
-
* The total validator era payout for the last `
|
|
1636
|
+
* The total validator era payout for the last [`Config::HistoryDepth`] eras.
|
|
1474
1637
|
*
|
|
1475
1638
|
* Eras that haven't finished yet or has been removed doesn't have reward.
|
|
1476
1639
|
**/
|
|
@@ -1487,6 +1650,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1487
1650
|
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1488
1651
|
/**
|
|
1489
1652
|
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
|
1653
|
+
*
|
|
1654
|
+
* Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
|
|
1655
|
+
* by [`StakingLedger`] to ensure data and lock consistency.
|
|
1490
1656
|
**/
|
|
1491
1657
|
ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1492
1658
|
/**
|
|
@@ -1566,7 +1732,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1566
1732
|
*
|
|
1567
1733
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1568
1734
|
**/
|
|
1569
|
-
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination
|
|
1735
|
+
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingRewardDestination>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1570
1736
|
/**
|
|
1571
1737
|
* Slashing spans for stash accounts.
|
|
1572
1738
|
**/
|
|
@@ -1615,6 +1781,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1615
1781
|
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
1616
1782
|
**/
|
|
1617
1783
|
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1784
|
+
/**
|
|
1785
|
+
* `Some` if a code upgrade has been authorized.
|
|
1786
|
+
**/
|
|
1787
|
+
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1618
1788
|
/**
|
|
1619
1789
|
* Map of block numbers to block hashes.
|
|
1620
1790
|
**/
|
|
@@ -1694,11 +1864,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1694
1864
|
};
|
|
1695
1865
|
timestamp: {
|
|
1696
1866
|
/**
|
|
1697
|
-
*
|
|
1867
|
+
* Whether the timestamp has been updated in this block.
|
|
1868
|
+
*
|
|
1869
|
+
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
|
1870
|
+
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
|
1698
1871
|
**/
|
|
1699
1872
|
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1700
1873
|
/**
|
|
1701
|
-
*
|
|
1874
|
+
* The current time for the current block.
|
|
1702
1875
|
**/
|
|
1703
1876
|
now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1704
1877
|
/**
|
|
@@ -1731,6 +1904,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1731
1904
|
* Proposals that have been made.
|
|
1732
1905
|
**/
|
|
1733
1906
|
proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryProposal>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1907
|
+
/**
|
|
1908
|
+
* The count of spends that have been made.
|
|
1909
|
+
**/
|
|
1910
|
+
spendCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1911
|
+
/**
|
|
1912
|
+
* Spends that have been approved and being processed.
|
|
1913
|
+
**/
|
|
1914
|
+
spends: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasurySpendStatus>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1734
1915
|
/**
|
|
1735
1916
|
* Generic query
|
|
1736
1917
|
**/
|
|
@@ -1785,7 +1966,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1785
1966
|
/**
|
|
1786
1967
|
* The existing asset traps.
|
|
1787
1968
|
*
|
|
1788
|
-
* Key is the blake2 256 hash of (origin, versioned `
|
|
1969
|
+
* Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
|
|
1789
1970
|
* times this pair has been trapped (usually just 1 if it exists at all).
|
|
1790
1971
|
**/
|
|
1791
1972
|
assetTraps: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
@@ -1796,7 +1977,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1796
1977
|
/**
|
|
1797
1978
|
* Fungible assets which we know are locked on this chain.
|
|
1798
1979
|
**/
|
|
1799
|
-
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128,
|
|
1980
|
+
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1800
1981
|
/**
|
|
1801
1982
|
* The ongoing queries.
|
|
1802
1983
|
**/
|
|
@@ -1810,6 +1991,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1810
1991
|
**/
|
|
1811
1992
|
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | {
|
|
1812
1993
|
V3: any;
|
|
1994
|
+
} | {
|
|
1995
|
+
V4: any;
|
|
1813
1996
|
} | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
|
|
1814
1997
|
/**
|
|
1815
1998
|
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
|
@@ -1819,34 +2002,40 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1819
2002
|
/**
|
|
1820
2003
|
* The Latest versions that we know various locations support.
|
|
1821
2004
|
**/
|
|
1822
|
-
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2:
|
|
2005
|
+
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
1823
2006
|
V2: any;
|
|
1824
2007
|
} | {
|
|
1825
2008
|
V3: any;
|
|
1826
|
-
} |
|
|
2009
|
+
} | {
|
|
2010
|
+
V4: any;
|
|
2011
|
+
} | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
1827
2012
|
/**
|
|
1828
2013
|
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
|
1829
2014
|
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
|
1830
2015
|
* which is used as a prioritization.
|
|
1831
2016
|
**/
|
|
1832
|
-
versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[
|
|
2017
|
+
versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[XcmVersionedLocation, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1833
2018
|
/**
|
|
1834
2019
|
* All locations that we have requested version notifications from.
|
|
1835
2020
|
**/
|
|
1836
|
-
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2:
|
|
2021
|
+
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
1837
2022
|
V2: any;
|
|
1838
2023
|
} | {
|
|
1839
2024
|
V3: any;
|
|
1840
|
-
} |
|
|
2025
|
+
} | {
|
|
2026
|
+
V4: any;
|
|
2027
|
+
} | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
1841
2028
|
/**
|
|
1842
2029
|
* The target locations that are subscribed to our version changes, as well as the most recent
|
|
1843
2030
|
* of our versions we informed them of.
|
|
1844
2031
|
**/
|
|
1845
|
-
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2:
|
|
2032
|
+
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
1846
2033
|
V2: any;
|
|
1847
2034
|
} | {
|
|
1848
2035
|
V3: any;
|
|
1849
|
-
} |
|
|
2036
|
+
} | {
|
|
2037
|
+
V4: any;
|
|
2038
|
+
} | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
1850
2039
|
/**
|
|
1851
2040
|
* Global suspension state of the XCM executor.
|
|
1852
2041
|
**/
|