@polymeshassociation/polymesh-types 6.2.0 → 7.0.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/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +1 -0
- package/CHANGELOG.md +7 -2
- package/README.md +120 -0
- package/generated/types.d.ts +44 -9
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +38 -1
- package/generated/types.js.map +1 -1
- package/package.json +10 -6
- package/polkadot/augment-api-consts.d.ts +128 -91
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +191 -48
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +469 -128
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +267 -70
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-rpc.d.ts +4 -0
- package/polkadot/augment-api-rpc.d.ts.map +1 -1
- package/polkadot/augment-api-runtime.d.ts +180 -154
- package/polkadot/augment-api-runtime.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +477 -150
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-types.d.ts +131 -9
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/lookup.d.ts +1303 -665
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +1409 -699
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/polymesh/definitions.d.ts +4 -0
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +4 -0
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +13 -1
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/registry.d.ts +66 -19
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/schema.d.ts +4 -0
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +4 -0
- package/polkadot/schema.js.map +1 -1
- package/polkadot/types-lookup.d.ts +1334 -726
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/polkadot/types.d.ts +1 -0
- package/polkadot/types.d.ts.map +1 -1
- package/types/8.0.x.json +662 -0
- package/types/index.d.ts.map +1 -1
- package/types/index.js +2 -0
- package/types/index.js.map +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/storage';
|
|
2
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
3
|
-
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec,
|
|
3
|
+
import type { BTreeSet, Bytes, Null, Option, Struct, Text, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H256, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetAssetDetails, PalletAssetTickerRegistration, PalletAssetTickerRegistrationConfig, PalletBalancesBalanceLock, PalletCommitteePolymeshVotes, PalletContractsStorageContractInfo,
|
|
6
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetAssetDetails, PalletAssetTickerRegistration, PalletAssetTickerRegistrationConfig, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCommitteePolymeshVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCorporateAction, PalletCorporateActionsDistribution, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityClaim1stKey, PalletIdentityClaim2ndKey, PalletImOnlineSr25519AppSr25519Public, PalletPipsDepositInfo, PalletPipsPip, PalletPipsPipsMetadata, PalletPipsProposalState, PalletPipsSnapshotMetadata, PalletPipsSnapshottedPip, PalletPipsVote, PalletPipsVotingResult, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletRelayerSubsidy, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStoFundraiser, PalletTransactionPaymentReleases, PalletValidatorsPermissionedIdentityPrefs, PalletValidatorsSlashingSwitch, PolymeshCommonUtilitiesCheckpointNextCheckpoints, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsApi, PolymeshContractsApiCodeHash, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAuthorization, PolymeshPrimitivesComplianceManagerAssetCompliance, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesGroupInactiveMember, PolymeshPrimitivesIdentityClaim, PolymeshPrimitivesIdentityDidRecord, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesMultisigProposalState, PolymeshPrimitivesMultisigProposalVoteCount, PolymeshPrimitivesNftNftCollection, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyKeyRecord, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationStatus, PolymeshPrimitivesSettlementInstruction, PolymeshPrimitivesSettlementInstructionStatus, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementLegStatus, PolymeshPrimitivesSettlementMediatorAffirmationStatus, PolymeshPrimitivesSettlementVenue, PolymeshPrimitivesStatisticsStat1stKey, PolymeshPrimitivesStatisticsStat2ndKey, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesSubsetSubsetRestrictionAssetId, PolymeshPrimitivesSubsetSubsetRestrictionPortfolioId, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceAssetTransferCompliance, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeRuntimeHoldReason, PolymeshRuntimeDevelopRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
7
|
import type { Observable } from '@polkadot/types/types';
|
|
8
8
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
9
9
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -222,6 +222,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
222
222
|
PolymeshPrimitivesTicker
|
|
223
223
|
]>;
|
|
224
224
|
};
|
|
225
|
+
authorityDiscovery: {
|
|
226
|
+
/**
|
|
227
|
+
* Keys of the current authority set.
|
|
228
|
+
**/
|
|
229
|
+
keys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []>;
|
|
230
|
+
/**
|
|
231
|
+
* Keys of the next authority set.
|
|
232
|
+
**/
|
|
233
|
+
nextKeys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []>;
|
|
234
|
+
};
|
|
225
235
|
authorship: {
|
|
226
236
|
/**
|
|
227
237
|
* Author of current block.
|
|
@@ -346,13 +356,71 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
346
356
|
]>;
|
|
347
357
|
};
|
|
348
358
|
balances: {
|
|
359
|
+
/**
|
|
360
|
+
* The Balances pallet example of storing the balance of an account.
|
|
361
|
+
*
|
|
362
|
+
* # Example
|
|
363
|
+
*
|
|
364
|
+
* ```nocompile
|
|
365
|
+
* impl pallet_balances::Config for Runtime {
|
|
366
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
367
|
+
* }
|
|
368
|
+
* ```
|
|
369
|
+
*
|
|
370
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
371
|
+
*
|
|
372
|
+
* # Example
|
|
373
|
+
*
|
|
374
|
+
* ```nocompile
|
|
375
|
+
* impl pallet_balances::Config for Runtime {
|
|
376
|
+
* type AccountStore = System
|
|
377
|
+
* }
|
|
378
|
+
* ```
|
|
379
|
+
*
|
|
380
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
381
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
382
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
383
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
384
|
+
**/
|
|
385
|
+
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [
|
|
386
|
+
AccountId32
|
|
387
|
+
]>;
|
|
388
|
+
/**
|
|
389
|
+
* Freeze locks on account balances.
|
|
390
|
+
**/
|
|
391
|
+
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmount>>, [
|
|
392
|
+
AccountId32
|
|
393
|
+
]>;
|
|
394
|
+
/**
|
|
395
|
+
* Holds on account balances.
|
|
396
|
+
**/
|
|
397
|
+
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
|
|
398
|
+
readonly id: PolymeshRuntimeDevelopRuntimeRuntimeHoldReason;
|
|
399
|
+
readonly amount: u128;
|
|
400
|
+
} & Struct>>, [
|
|
401
|
+
AccountId32
|
|
402
|
+
]>;
|
|
403
|
+
/**
|
|
404
|
+
* The total units of outstanding deactivated balance in the system.
|
|
405
|
+
**/
|
|
406
|
+
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
349
407
|
/**
|
|
350
408
|
* Any liquidity locks on some account balances.
|
|
351
409
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
410
|
+
*
|
|
411
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
352
412
|
**/
|
|
353
413
|
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [
|
|
354
414
|
AccountId32
|
|
355
415
|
]>;
|
|
416
|
+
/**
|
|
417
|
+
* Named reserves on some account balances.
|
|
418
|
+
*
|
|
419
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
420
|
+
**/
|
|
421
|
+
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [
|
|
422
|
+
AccountId32
|
|
423
|
+
]>;
|
|
356
424
|
/**
|
|
357
425
|
* The total units issued in the system.
|
|
358
426
|
**/
|
|
@@ -548,9 +616,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
548
616
|
};
|
|
549
617
|
contracts: {
|
|
550
618
|
/**
|
|
551
|
-
* A mapping
|
|
619
|
+
* A mapping from a contract's code hash to its code info.
|
|
552
620
|
**/
|
|
553
|
-
|
|
621
|
+
codeInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmCodeInfo>>, [
|
|
554
622
|
H256
|
|
555
623
|
]>;
|
|
556
624
|
/**
|
|
@@ -565,10 +633,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
565
633
|
* Evicted contracts that await child trie deletion.
|
|
566
634
|
*
|
|
567
635
|
* Child trie deletion is a heavy operation depending on the amount of storage items
|
|
568
|
-
* stored in said trie. Therefore this operation is performed lazily in `
|
|
636
|
+
* stored in said trie. Therefore this operation is performed lazily in `on_idle`.
|
|
569
637
|
**/
|
|
570
|
-
deletionQueue: AugmentedQuery<ApiType, () => Observable<
|
|
638
|
+
deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
|
|
639
|
+
u32
|
|
571
640
|
]>;
|
|
641
|
+
/**
|
|
642
|
+
* A pair of monotonic counters used to track the latest contract marked for deletion
|
|
643
|
+
* and the latest deleted contract in queue.
|
|
644
|
+
**/
|
|
645
|
+
deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletContractsStorageDeletionQueueManager>, [
|
|
646
|
+
]>;
|
|
647
|
+
/**
|
|
648
|
+
* A migration can span across multiple blocks. This storage defines a cursor to track the
|
|
649
|
+
* progress of the migration, enabling us to resume from the last completed position.
|
|
650
|
+
**/
|
|
651
|
+
migrationInProgress: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []>;
|
|
572
652
|
/**
|
|
573
653
|
* This is a **monotonic** counter incremented on contract instantiation.
|
|
574
654
|
*
|
|
@@ -595,13 +675,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
595
675
|
**/
|
|
596
676
|
nonce: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
597
677
|
/**
|
|
598
|
-
* A mapping
|
|
599
|
-
**/
|
|
600
|
-
ownerInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmOwnerInfo>>, [
|
|
601
|
-
H256
|
|
602
|
-
]>;
|
|
603
|
-
/**
|
|
604
|
-
* A mapping from an original code hash to the original code, untouched by instrumentation.
|
|
678
|
+
* A mapping from a contract's code hash to its code.
|
|
605
679
|
**/
|
|
606
680
|
pristineCode: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [
|
|
607
681
|
H256
|
|
@@ -793,6 +867,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
793
867
|
* Desired number of targets to elect for this round.
|
|
794
868
|
*
|
|
795
869
|
* Only exists when [`Snapshot`] is present.
|
|
870
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
796
871
|
**/
|
|
797
872
|
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
798
873
|
/**
|
|
@@ -805,6 +880,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
805
880
|
]>;
|
|
806
881
|
/**
|
|
807
882
|
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
|
883
|
+
*
|
|
884
|
+
* Always sorted by score.
|
|
808
885
|
**/
|
|
809
886
|
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, [
|
|
810
887
|
]>;
|
|
@@ -855,6 +932,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
855
932
|
* Snapshot data of the round.
|
|
856
933
|
*
|
|
857
934
|
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
|
|
935
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
858
936
|
**/
|
|
859
937
|
snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, [
|
|
860
938
|
]>;
|
|
@@ -862,6 +940,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
862
940
|
* The metadata of the [`RoundSnapshot`]
|
|
863
941
|
*
|
|
864
942
|
* Only exists when [`Snapshot`] is present.
|
|
943
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
865
944
|
**/
|
|
866
945
|
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, [
|
|
867
946
|
]>;
|
|
@@ -909,6 +988,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
909
988
|
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
910
989
|
};
|
|
911
990
|
grandpa: {
|
|
991
|
+
/**
|
|
992
|
+
* The current list of authorities.
|
|
993
|
+
**/
|
|
994
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>, [
|
|
995
|
+
]>;
|
|
912
996
|
/**
|
|
913
997
|
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
914
998
|
* in the "set" of Grandpa validators from genesis.
|
|
@@ -947,6 +1031,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
947
1031
|
**/
|
|
948
1032
|
state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []>;
|
|
949
1033
|
};
|
|
1034
|
+
historical: {
|
|
1035
|
+
/**
|
|
1036
|
+
* Mapping from historical session indices to session-data root hash and validator count.
|
|
1037
|
+
**/
|
|
1038
|
+
historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [
|
|
1039
|
+
u32
|
|
1040
|
+
]>;
|
|
1041
|
+
/**
|
|
1042
|
+
* The range of historical sessions we store. [first, last)
|
|
1043
|
+
**/
|
|
1044
|
+
storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []>;
|
|
1045
|
+
};
|
|
950
1046
|
identity: {
|
|
951
1047
|
/**
|
|
952
1048
|
* How many "strong" references to the account key.
|
|
@@ -1136,10 +1232,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1136
1232
|
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, [
|
|
1137
1233
|
]>;
|
|
1138
1234
|
/**
|
|
1139
|
-
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex
|
|
1140
|
-
* `WrapperOpaque<BoundedOpaqueNetworkState>`.
|
|
1235
|
+
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
|
|
1141
1236
|
**/
|
|
1142
|
-
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
1237
|
+
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [
|
|
1143
1238
|
u32,
|
|
1144
1239
|
u32
|
|
1145
1240
|
]>;
|
|
@@ -1343,17 +1438,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1343
1438
|
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [
|
|
1344
1439
|
H256
|
|
1345
1440
|
]>;
|
|
1441
|
+
};
|
|
1442
|
+
permissions: {
|
|
1346
1443
|
/**
|
|
1347
|
-
*
|
|
1348
|
-
*
|
|
1349
|
-
* All reports are sorted by the time of offence.
|
|
1350
|
-
*
|
|
1351
|
-
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
|
|
1352
|
-
* different types are not supported at the moment so we are doing the manual serialization.
|
|
1444
|
+
* The name of the current function (aka extrinsic).
|
|
1353
1445
|
**/
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1446
|
+
currentDispatchableName: AugmentedQuery<ApiType, () => Observable<Text>, []>;
|
|
1447
|
+
/**
|
|
1448
|
+
* The name of the current pallet (aka module name).
|
|
1449
|
+
**/
|
|
1450
|
+
currentPalletName: AugmentedQuery<ApiType, () => Observable<Text>, []>;
|
|
1357
1451
|
};
|
|
1358
1452
|
pips: {
|
|
1359
1453
|
/**
|
|
@@ -1679,7 +1773,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1679
1773
|
/**
|
|
1680
1774
|
* The request status of a given hash.
|
|
1681
1775
|
**/
|
|
1682
|
-
|
|
1776
|
+
requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [
|
|
1777
|
+
H256
|
|
1778
|
+
]>;
|
|
1779
|
+
/**
|
|
1780
|
+
* The request status of a given hash.
|
|
1781
|
+
**/
|
|
1782
|
+
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [
|
|
1683
1783
|
H256
|
|
1684
1784
|
]>;
|
|
1685
1785
|
};
|
|
@@ -1723,6 +1823,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1723
1823
|
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [
|
|
1724
1824
|
u32
|
|
1725
1825
|
]>;
|
|
1826
|
+
/**
|
|
1827
|
+
* Block number at which the agenda began incomplete execution.
|
|
1828
|
+
**/
|
|
1726
1829
|
incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
1727
1830
|
/**
|
|
1728
1831
|
* Lookup from a name to the block number and index of the task.
|
|
@@ -1733,6 +1836,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1733
1836
|
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [
|
|
1734
1837
|
U8aFixed
|
|
1735
1838
|
]>;
|
|
1839
|
+
/**
|
|
1840
|
+
* Retry configurations for items to be executed, indexed by task address.
|
|
1841
|
+
**/
|
|
1842
|
+
retries: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletSchedulerRetryConfig>>, [
|
|
1843
|
+
ITuple<[u32, u32]>
|
|
1844
|
+
]>;
|
|
1736
1845
|
};
|
|
1737
1846
|
session: {
|
|
1738
1847
|
/**
|
|
@@ -1746,7 +1855,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1746
1855
|
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
1747
1856
|
* a new set of identities.
|
|
1748
1857
|
**/
|
|
1749
|
-
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32
|
|
1858
|
+
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, Perbill]>>>, [
|
|
1859
|
+
]>;
|
|
1750
1860
|
/**
|
|
1751
1861
|
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
1752
1862
|
**/
|
|
@@ -1969,6 +2079,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1969
2079
|
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
|
|
1970
2080
|
**/
|
|
1971
2081
|
chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []>;
|
|
2082
|
+
/**
|
|
2083
|
+
* History of claimed paged rewards by era and validator.
|
|
2084
|
+
*
|
|
2085
|
+
* This is keyed by era and validator stash which maps to the set of page indexes which have
|
|
2086
|
+
* been claimed.
|
|
2087
|
+
*
|
|
2088
|
+
* It is removed after [`Config::HistoryDepth`] eras.
|
|
2089
|
+
**/
|
|
2090
|
+
claimedRewards: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>, [
|
|
2091
|
+
u32,
|
|
2092
|
+
AccountId32
|
|
2093
|
+
]>;
|
|
1972
2094
|
/**
|
|
1973
2095
|
* Counter for the related counted storage map
|
|
1974
2096
|
**/
|
|
@@ -1977,6 +2099,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1977
2099
|
* Counter for the related counted storage map
|
|
1978
2100
|
**/
|
|
1979
2101
|
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2102
|
+
/**
|
|
2103
|
+
* Counter for the related counted storage map
|
|
2104
|
+
**/
|
|
2105
|
+
counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1980
2106
|
/**
|
|
1981
2107
|
* The current era index.
|
|
1982
2108
|
*
|
|
@@ -1991,7 +2117,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1991
2117
|
**/
|
|
1992
2118
|
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1993
2119
|
/**
|
|
1994
|
-
* Rewards for the last `
|
|
2120
|
+
* Rewards for the last [`Config::HistoryDepth`] eras.
|
|
1995
2121
|
* If reward hasn't been set or has been removed then 0 reward is returned.
|
|
1996
2122
|
**/
|
|
1997
2123
|
erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [
|
|
@@ -2002,32 +2128,70 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2002
2128
|
*
|
|
2003
2129
|
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
2004
2130
|
*
|
|
2005
|
-
* Is it removed after `
|
|
2131
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
2006
2132
|
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
2133
|
+
*
|
|
2134
|
+
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
|
2007
2135
|
**/
|
|
2008
|
-
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<
|
|
2136
|
+
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [
|
|
2009
2137
|
u32,
|
|
2010
2138
|
AccountId32
|
|
2011
2139
|
]>;
|
|
2012
2140
|
/**
|
|
2013
2141
|
* Clipped Exposure of validator at era.
|
|
2014
2142
|
*
|
|
2143
|
+
* Note: This is deprecated, should be used as read-only and will be removed in the future.
|
|
2144
|
+
* New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
|
|
2145
|
+
*
|
|
2015
2146
|
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
|
|
2016
|
-
* `T::
|
|
2147
|
+
* `T::MaxExposurePageSize` biggest stakers.
|
|
2017
2148
|
* (Note: the field `total` and `own` of the exposure remains unchanged).
|
|
2018
2149
|
* This is used to limit the i/o cost for the nominator payout.
|
|
2019
2150
|
*
|
|
2020
2151
|
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
|
|
2021
2152
|
*
|
|
2022
|
-
*
|
|
2153
|
+
* It is removed after [`Config::HistoryDepth`] eras.
|
|
2023
2154
|
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
2155
|
+
*
|
|
2156
|
+
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
|
2024
2157
|
**/
|
|
2025
|
-
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<
|
|
2158
|
+
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [
|
|
2026
2159
|
u32,
|
|
2027
2160
|
AccountId32
|
|
2028
2161
|
]>;
|
|
2029
2162
|
/**
|
|
2030
|
-
*
|
|
2163
|
+
* Summary of validator exposure at a given era.
|
|
2164
|
+
*
|
|
2165
|
+
* This contains the total stake in support of the validator and their own stake. In addition,
|
|
2166
|
+
* it can also be used to get the number of nominators backing this validator and the number of
|
|
2167
|
+
* exposure pages they are divided into. The page count is useful to determine the number of
|
|
2168
|
+
* pages of rewards that needs to be claimed.
|
|
2169
|
+
*
|
|
2170
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
2171
|
+
* Should only be accessed through `EraInfo`.
|
|
2172
|
+
*
|
|
2173
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
2174
|
+
* If stakers hasn't been set or has been removed then empty overview is returned.
|
|
2175
|
+
**/
|
|
2176
|
+
erasStakersOverview: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<SpStakingPagedExposureMetadata>>, [
|
|
2177
|
+
u32,
|
|
2178
|
+
AccountId32
|
|
2179
|
+
]>;
|
|
2180
|
+
/**
|
|
2181
|
+
* Paginated exposure of a validator at given era.
|
|
2182
|
+
*
|
|
2183
|
+
* This is keyed first by the era index to allow bulk deletion, then stash account and finally
|
|
2184
|
+
* the page. Should only be accessed through `EraInfo`.
|
|
2185
|
+
*
|
|
2186
|
+
* This is cleared after [`Config::HistoryDepth`] eras.
|
|
2187
|
+
**/
|
|
2188
|
+
erasStakersPaged: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<SpStakingExposurePage>>, [
|
|
2189
|
+
u32,
|
|
2190
|
+
AccountId32,
|
|
2191
|
+
u32
|
|
2192
|
+
]>;
|
|
2193
|
+
/**
|
|
2194
|
+
* The session index at which the era start for the last [`Config::HistoryDepth`] eras.
|
|
2031
2195
|
*
|
|
2032
2196
|
* Note: This tracks the starting session (i.e. session index when era start being active)
|
|
2033
2197
|
* for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
|
|
@@ -2036,7 +2200,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2036
2200
|
u32
|
|
2037
2201
|
]>;
|
|
2038
2202
|
/**
|
|
2039
|
-
* The total amount staked for the last `
|
|
2203
|
+
* The total amount staked for the last [`Config::HistoryDepth`] eras.
|
|
2040
2204
|
* If total hasn't been set or has been removed then 0 stake is returned.
|
|
2041
2205
|
**/
|
|
2042
2206
|
erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [
|
|
@@ -2047,14 +2211,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2047
2211
|
*
|
|
2048
2212
|
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
2049
2213
|
*
|
|
2050
|
-
* Is it removed after `
|
|
2214
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
2051
2215
|
**/
|
|
2052
2216
|
erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [
|
|
2053
2217
|
u32,
|
|
2054
2218
|
AccountId32
|
|
2055
2219
|
]>;
|
|
2056
2220
|
/**
|
|
2057
|
-
* The total validator era payout for the last `
|
|
2221
|
+
* The total validator era payout for the last [`Config::HistoryDepth`] eras.
|
|
2058
2222
|
*
|
|
2059
2223
|
* Eras that haven't finished yet or has been removed doesn't have reward.
|
|
2060
2224
|
**/
|
|
@@ -2073,6 +2237,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2073
2237
|
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []>;
|
|
2074
2238
|
/**
|
|
2075
2239
|
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
|
2240
|
+
*
|
|
2241
|
+
* Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
|
|
2242
|
+
* by [`StakingLedger`] to ensure data and lock consistency.
|
|
2076
2243
|
**/
|
|
2077
2244
|
ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [
|
|
2078
2245
|
AccountId32
|
|
@@ -2083,6 +2250,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2083
2250
|
* When this value is not set, no limits are enforced.
|
|
2084
2251
|
**/
|
|
2085
2252
|
maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
2253
|
+
/**
|
|
2254
|
+
* Maximum staked rewards, i.e. the percentage of the era inflation that
|
|
2255
|
+
* is used for stake rewards.
|
|
2256
|
+
* See [Era payout](./index.html#era-payout).
|
|
2257
|
+
**/
|
|
2258
|
+
maxStakedRewards: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []>;
|
|
2086
2259
|
/**
|
|
2087
2260
|
* The maximum validator count before we stop allowing new validators to join.
|
|
2088
2261
|
*
|
|
@@ -2116,7 +2289,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2116
2289
|
* they wish to support.
|
|
2117
2290
|
*
|
|
2118
2291
|
* Note that the keys of this storage map might become non-decodable in case the
|
|
2119
|
-
* [`
|
|
2292
|
+
* account's [`NominationsQuota::MaxNominations`] configuration is decreased.
|
|
2293
|
+
* In this rare case, these nominators
|
|
2120
2294
|
* are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
|
|
2121
2295
|
* indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
|
|
2122
2296
|
* nominators will effectively not-exist, until they re-submit their preferences such that it
|
|
@@ -2141,38 +2315,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2141
2315
|
u32,
|
|
2142
2316
|
AccountId32
|
|
2143
2317
|
]>;
|
|
2144
|
-
/**
|
|
2145
|
-
* Indices of validators that have offended in the active era and whether they are currently
|
|
2146
|
-
* disabled.
|
|
2147
|
-
*
|
|
2148
|
-
* This value should be a superset of disabled validators since not all offences lead to the
|
|
2149
|
-
* validator being disabled (if there was no slash). This is needed to track the percentage of
|
|
2150
|
-
* validators that have offended in the current era, ensuring a new era is forced if
|
|
2151
|
-
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
|
|
2152
|
-
* whether a given validator has previously offended using binary search. It gets cleared when
|
|
2153
|
-
* the era ends.
|
|
2154
|
-
**/
|
|
2155
|
-
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []>;
|
|
2156
2318
|
/**
|
|
2157
2319
|
* Where the reward payment should be made. Keyed by stash.
|
|
2158
2320
|
*
|
|
2159
2321
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
2160
2322
|
**/
|
|
2161
|
-
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination
|
|
2323
|
+
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingRewardDestination>>, [
|
|
2162
2324
|
AccountId32
|
|
2163
2325
|
]>;
|
|
2164
|
-
/**
|
|
2165
|
-
* Entities that are allowed to run operator/validator nodes.
|
|
2166
|
-
**/
|
|
2167
|
-
permissionedIdentity: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Option<PalletStakingPermissionedIdentityPrefs>>, [
|
|
2168
|
-
PolymeshPrimitivesIdentityId
|
|
2169
|
-
]>;
|
|
2170
|
-
polymeshStorageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
2171
|
-
/**
|
|
2172
|
-
* Slashing switch for validators & Nominators.
|
|
2173
|
-
**/
|
|
2174
|
-
slashingAllowedFor: AugmentedQuery<ApiType, () => Observable<PalletStakingSlashingSwitch>, [
|
|
2175
|
-
]>;
|
|
2176
2326
|
/**
|
|
2177
2327
|
* Slashing spans for stash accounts.
|
|
2178
2328
|
**/
|
|
@@ -2198,10 +2348,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2198
2348
|
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [
|
|
2199
2349
|
u32
|
|
2200
2350
|
]>;
|
|
2201
|
-
/**
|
|
2202
|
-
* Allows flexibility in commission. Every validator has commission that should be in the range [0, Cap].
|
|
2203
|
-
**/
|
|
2204
|
-
validatorCommissionCap: AugmentedQuery<ApiType, () => Observable<Perbill>, []>;
|
|
2205
2351
|
/**
|
|
2206
2352
|
* The ideal number of active validators.
|
|
2207
2353
|
**/
|
|
@@ -2222,6 +2368,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2222
2368
|
u32,
|
|
2223
2369
|
AccountId32
|
|
2224
2370
|
]>;
|
|
2371
|
+
/**
|
|
2372
|
+
* Stakers whose funds are managed by other pallets.
|
|
2373
|
+
*
|
|
2374
|
+
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
|
|
2375
|
+
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
|
|
2376
|
+
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
|
|
2377
|
+
* via low level apis. We keep track of them to do minimal integrity checks.
|
|
2378
|
+
**/
|
|
2379
|
+
virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [
|
|
2380
|
+
AccountId32
|
|
2381
|
+
]>;
|
|
2225
2382
|
};
|
|
2226
2383
|
statistics: {
|
|
2227
2384
|
/**
|
|
@@ -2318,6 +2475,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2318
2475
|
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
2319
2476
|
**/
|
|
2320
2477
|
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
2478
|
+
/**
|
|
2479
|
+
* `Some` if a code upgrade has been authorized.
|
|
2480
|
+
**/
|
|
2481
|
+
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, [
|
|
2482
|
+
]>;
|
|
2321
2483
|
/**
|
|
2322
2484
|
* Map of block numbers to block hashes.
|
|
2323
2485
|
**/
|
|
@@ -2355,7 +2517,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2355
2517
|
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
2356
2518
|
* in case of changes fetch the list of events of interest.
|
|
2357
2519
|
*
|
|
2358
|
-
* The value has the type `(T
|
|
2520
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
2359
2521
|
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
2360
2522
|
* no notification will be triggered thus the event might be lost.
|
|
2361
2523
|
**/
|
|
@@ -2376,6 +2538,21 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2376
2538
|
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [
|
|
2377
2539
|
u32
|
|
2378
2540
|
]>;
|
|
2541
|
+
/**
|
|
2542
|
+
* The weight reclaimed for the extrinsic.
|
|
2543
|
+
*
|
|
2544
|
+
* This information is available until the end of the extrinsic execution.
|
|
2545
|
+
* More precisely this information is removed in `note_applied_extrinsic`.
|
|
2546
|
+
*
|
|
2547
|
+
* Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
|
|
2548
|
+
* reduction.
|
|
2549
|
+
**/
|
|
2550
|
+
extrinsicWeightReclaimed: AugmentedQuery<ApiType, () => Observable<SpWeightsWeightV2Weight>, [
|
|
2551
|
+
]>;
|
|
2552
|
+
/**
|
|
2553
|
+
* Whether all inherents have been applied.
|
|
2554
|
+
**/
|
|
2555
|
+
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
2379
2556
|
/**
|
|
2380
2557
|
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
2381
2558
|
**/
|
|
@@ -2455,11 +2632,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2455
2632
|
};
|
|
2456
2633
|
timestamp: {
|
|
2457
2634
|
/**
|
|
2458
|
-
*
|
|
2635
|
+
* Whether the timestamp has been updated in this block.
|
|
2636
|
+
*
|
|
2637
|
+
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
|
2638
|
+
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
|
2459
2639
|
**/
|
|
2460
2640
|
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
2461
2641
|
/**
|
|
2462
|
-
*
|
|
2642
|
+
* The current time for the current block.
|
|
2463
2643
|
**/
|
|
2464
2644
|
now: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
2465
2645
|
};
|
|
@@ -2531,6 +2711,23 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2531
2711
|
AccountId32
|
|
2532
2712
|
]>;
|
|
2533
2713
|
};
|
|
2714
|
+
validators: {
|
|
2715
|
+
/**
|
|
2716
|
+
* Entities that are allowed to run operator/validator nodes.
|
|
2717
|
+
**/
|
|
2718
|
+
permissionedIdentity: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Option<PalletValidatorsPermissionedIdentityPrefs>>, [
|
|
2719
|
+
PolymeshPrimitivesIdentityId
|
|
2720
|
+
]>;
|
|
2721
|
+
/**
|
|
2722
|
+
* Slashing switch for validators & Nominators.
|
|
2723
|
+
**/
|
|
2724
|
+
slashingAllowedFor: AugmentedQuery<ApiType, () => Observable<PalletValidatorsSlashingSwitch>, [
|
|
2725
|
+
]>;
|
|
2726
|
+
/**
|
|
2727
|
+
* Allows flexibility in commission. Every validator has commission that should be in the range [0, Cap].
|
|
2728
|
+
**/
|
|
2729
|
+
validatorCommissionCap: AugmentedQuery<ApiType, () => Observable<Perbill>, []>;
|
|
2730
|
+
};
|
|
2534
2731
|
}
|
|
2535
2732
|
}
|
|
2536
2733
|
//# sourceMappingURL=augment-api-query.d.ts.map
|