22/* eslint-disable @typescript-eslint/no-empty-interface */
33
44import { AnyNumber , ITuple } from '@polkadot/types/types' ;
5- import { Linkage , Option , U8aFixed , Vec } from '@polkadot/types/codec' ;
5+ import { Option , U8aFixed , Vec } from '@polkadot/types/codec' ;
66import { Bytes , Data , bool , u32 , u64 } from '@polkadot/types/primitive' ;
77import { UncleEntryItem } from '@polkadot/types/interfaces/authorship' ;
88import { BabeAuthorityWeight , MaybeVrf } from '@polkadot/types/interfaces/babe' ;
@@ -21,7 +21,7 @@ import { AccountId, AccountIndex, Balance, BalanceOf, BlockNumber, Hash, KeyType
2121import { Keys , SessionIndex } from '@polkadot/types/interfaces/session' ;
2222import { Bid , BidKind , SocietyVote , StrikeCount , VouchingStatus } from '@polkadot/types/interfaces/society' ;
2323import { ActiveEraInfo , EraIndex , EraRewardPoints , Exposure , Forcing , Nominations , ReleasesStaking , RewardDestination , SlashingSpans , SpanIndex , SpanRecord , StakingLedger , UnappliedSlash , ValidatorPrefs } from '@polkadot/types/interfaces/staking' ;
24- import { AccountInfo , DigestOf , EventIndex , EventRecord } from '@polkadot/types/interfaces/system' ;
24+ import { AccountInfo , DigestOf , EventIndex , EventRecord , LastRuntimeUpgradeInfo } from '@polkadot/types/interfaces/system' ;
2525import { OpenTip , TreasuryProposal } from '@polkadot/types/interfaces/treasury' ;
2626import { Multiplier } from '@polkadot/types/interfaces/txpayment' ;
2727import { Multisig } from '@polkadot/types/interfaces/utility' ;
@@ -194,7 +194,7 @@ declare module '@polkadot/api/types/storage' {
194194 /**
195195 * Get the account (and lock periods) to which another account is delegating vote.
196196 **/
197- delegations : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < ITuple < [ ITuple < [ AccountId , Conviction ] > , Linkage < AccountId > ] > > > & QueryableStorageEntry < ApiType > ;
197+ delegations : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < ITuple < [ AccountId , Conviction ] > > > & QueryableStorageEntry < ApiType > ;
198198 /**
199199 * Those who have locked a deposit.
200200 **/
@@ -289,7 +289,7 @@ declare module '@polkadot/api/types/storage' {
289289 /**
290290 * Votes of a particular voter, with the round index of the votes.
291291 **/
292- votesOf : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < ITuple < [ Vec < AccountId > , Linkage < AccountId > ] > > > & QueryableStorageEntry < ApiType > ;
292+ votesOf : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < Vec < AccountId > > > & QueryableStorageEntry < ApiType > ;
293293 } ;
294294 grandpa : {
295295 [ index : string ] : QueryableStorageEntry < ApiType > ;
@@ -313,7 +313,8 @@ declare module '@polkadot/api/types/storage' {
313313 **/
314314 pendingChange : AugmentedQuery < ApiType , ( ) => Observable < Option < StoredPendingChange > > > & QueryableStorageEntry < ApiType > ;
315315 /**
316- * A mapping from grandpa set ID to the index of the *most recent* session for which its members were responsible.
316+ * A mapping from grandpa set ID to the index of the *most recent* session for which its
317+ * members were responsible.
317318 **/
318319 setIdSession : AugmentedQuery < ApiType , ( arg : SetId | AnyNumber | Uint8Array ) => Observable < Option < SessionIndex > > > & QueryableStorageEntry < ApiType > ;
319320 /**
@@ -368,8 +369,8 @@ declare module '@polkadot/api/types/storage' {
368369 **/
369370 keys : AugmentedQuery < ApiType , ( ) => Observable < Vec < AuthorityId > > > & QueryableStorageEntry < ApiType > ;
370371 /**
371- * For each session index, we keep a mapping of `AuthIndex`
372- * to `offchain::OpaqueNetworkState`.
372+ * For each session index, we keep a mapping of `AuthIndex` to
373+ * `offchain::OpaqueNetworkState`.
373374 **/
374375 receivedHeartbeats : AugmentedQueryDoubleMap < ApiType , ( key1 : SessionIndex | AnyNumber | Uint8Array , key2 : AuthIndex | AnyNumber | Uint8Array ) => Observable < Option < Bytes > > > & QueryableStorageEntry < ApiType > ;
375376 } ;
@@ -437,17 +438,13 @@ declare module '@polkadot/api/types/storage' {
437438 **/
438439 disabledValidators : AugmentedQuery < ApiType , ( ) => Observable < Vec < u32 > > > & QueryableStorageEntry < ApiType > ;
439440 /**
440- * The owner of a key. The second key is the `KeyTypeId` + the encoded key.
441- * The first key is always `DEDUP_KEY_PREFIX` to have all the data in the same branch of
442- * the trie. Having all data in the same branch should prevent slowing down other queries.
441+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
443442 **/
444- keyOwner : AugmentedQueryDoubleMap < ApiType , ( key1 : Bytes | string | Uint8Array , key2 : ITuple < [ KeyTypeId , Bytes ] > | [ KeyTypeId | AnyNumber | Uint8Array , Bytes | string | Uint8Array ] ) => Observable < Option < ValidatorId > > > & QueryableStorageEntry < ApiType > ;
443+ keyOwner : AugmentedQuery < ApiType , ( arg : ITuple < [ KeyTypeId , Bytes ] > | [ KeyTypeId | AnyNumber | Uint8Array , Bytes | string | Uint8Array ] ) => Observable < Option < ValidatorId > > > & QueryableStorageEntry < ApiType > ;
445444 /**
446445 * The next session keys for a validator.
447- * The first key is always `DEDUP_KEY_PREFIX` to have all the data in the same branch of
448- * the trie. Having all data in the same branch should prevent slowing down other queries.
449446 **/
450- nextKeys : AugmentedQueryDoubleMap < ApiType , ( key1 : Bytes | string | Uint8Array , key2 : ValidatorId | string | Uint8Array ) => Observable < Option < Keys > > > & QueryableStorageEntry < ApiType > ;
447+ nextKeys : AugmentedQuery < ApiType , ( arg : ValidatorId | string | Uint8Array ) => Observable < Option < Keys > > > & QueryableStorageEntry < ApiType > ;
451448 /**
452449 * True if the underlying economic identities or weighting behind the validators
453450 * has changed in the queued validator set.
@@ -580,6 +577,7 @@ declare module '@polkadot/api/types/storage' {
580577 * Clipped Exposure of validator at era.
581578 * This is similar to [`ErasStakers`] but number of nominators exposed is reduce to the
582579 * `T::MaxNominatorRewardedPerValidator` biggest stakers.
580+ * (Note: the field `total` and `own` of the exposure remains unchanged).
583581 * This is used to limit the i/o cost for the nominator payout.
584582 * This is keyed fist by the era index to allow bulk deletion and then the stash account.
585583 * Is it removed after `HISTORY_DEPTH` eras.
@@ -597,7 +595,7 @@ declare module '@polkadot/api/types/storage' {
597595 erasTotalStake : AugmentedQuery < ApiType , ( arg : EraIndex | AnyNumber | Uint8Array ) => Observable < BalanceOf > > & QueryableStorageEntry < ApiType > ;
598596 /**
599597 * Similarly to `ErasStakers` this holds the preferences of validators.
600- * This is keyed fist by the era index to allow bulk deletion and then the stash account.
598+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
601599 * Is it removed after `HISTORY_DEPTH` eras.
602600 **/
603601 erasValidatorPrefs : AugmentedQueryDoubleMap < ApiType , ( key1 : EraIndex | AnyNumber | Uint8Array , key2 : AccountId | string | Uint8Array ) => Observable < ValidatorPrefs > > & QueryableStorageEntry < ApiType > ;
@@ -635,7 +633,7 @@ declare module '@polkadot/api/types/storage' {
635633 /**
636634 * The map from nominator stash key to the set of stash keys of all validators to nominate.
637635 **/
638- nominators : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < ITuple < [ Option < Nominations > , Linkage < AccountId > ] > > > & QueryableStorageEntry < ApiType > ;
636+ nominators : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < Option < Nominations > > > & QueryableStorageEntry < ApiType > ;
639637 /**
640638 * All slashing events on nominators, mapped by era to the highest slash value of the era.
641639 **/
@@ -674,7 +672,7 @@ declare module '@polkadot/api/types/storage' {
674672 /**
675673 * The map from (wannabe) validator stash key to the preferences of that validator.
676674 **/
677- validators : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < ITuple < [ ValidatorPrefs , Linkage < AccountId > ] > > > & QueryableStorageEntry < ApiType > ;
675+ validators : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < ValidatorPrefs > > & QueryableStorageEntry < ApiType > ;
678676 /**
679677 * All slashing events on validators, mapped by era to the highest slash proportion
680678 * and slash value of the era.
@@ -741,6 +739,10 @@ declare module '@polkadot/api/types/storage' {
741739 * Extrinsics root of the current block, also part of the block header.
742740 **/
743741 extrinsicsRoot : AugmentedQuery < ApiType , ( ) => Observable < Hash > > & QueryableStorageEntry < ApiType > ;
742+ /**
743+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
744+ **/
745+ lastRuntimeUpgrade : AugmentedQuery < ApiType , ( ) => Observable < Option < LastRuntimeUpgradeInfo > > > & QueryableStorageEntry < ApiType > ;
744746 /**
745747 * The current block number being processed. Set by `execute_block`.
746748 **/
@@ -749,10 +751,6 @@ declare module '@polkadot/api/types/storage' {
749751 * Hash of the previous block.
750752 **/
751753 parentHash : AugmentedQuery < ApiType , ( ) => Observable < Hash > > & QueryableStorageEntry < ApiType > ;
752- /**
753- * A bool to track if the runtime was upgraded last block.
754- **/
755- runtimeUpgraded : AugmentedQuery < ApiType , ( ) => Observable < bool > > & QueryableStorageEntry < ApiType > ;
756754 } ;
757755 technicalCommittee : {
758756 [ index : string ] : QueryableStorageEntry < ApiType > ;
0 commit comments