@polkadot/api-augment 9.3.3 → 9.4.2

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.
@@ -5,7 +5,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
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, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
- import type { FrameSupportWeightsPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
9
9
  import type { Observable } from '@polkadot/types/types';
10
10
  export declare type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
11
11
  export declare type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -1474,16 +1474,6 @@ declare module '@polkadot/api-base/types/storage' {
1474
1474
  * Mode of era forcing.
1475
1475
  **/
1476
1476
  forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingForcing>, []> & QueryableStorageEntry<ApiType, []>;
1477
- /**
1478
- * Number of eras to keep in history.
1479
- *
1480
- * Information is kept for eras in `[current_era - history_depth; current_era]`.
1481
- *
1482
- * Must be more than the number of eras delayed by session otherwise. I.e. active era must
1483
- * always be in history. I.e. `active_era > current_era - history_depth` must be
1484
- * guaranteed.
1485
- **/
1486
- historyDepth: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1487
1477
  /**
1488
1478
  * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
1489
1479
  * easy to initialize and the performance hit is minimal (we expect no more than four
@@ -1623,7 +1613,7 @@ declare module '@polkadot/api-base/types/storage' {
1623
1613
  /**
1624
1614
  * The current weight for the block.
1625
1615
  **/
1626
- blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
1616
+ blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
1627
1617
  /**
1628
1618
  * Digest of the current block, also part of the block header.
1629
1619
  **/
package/polkadot/tx.d.ts CHANGED
@@ -1885,6 +1885,7 @@ declare module '@polkadot/api-base/types/submittable' {
1885
1885
  * - `target`: the account whose identity the judgement is upon. This must be an account
1886
1886
  * with a registered identity.
1887
1887
  * - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
1888
+ * - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided.
1888
1889
  *
1889
1890
  * Emits `JudgementGiven` if successful.
1890
1891
  *
@@ -1920,7 +1921,7 @@ declare module '@polkadot/api-base/types/submittable' {
1920
1921
  LowQuality: any;
1921
1922
  } | {
1922
1923
  Erroneous: any;
1923
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement]>;
1924
+ } | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement, H256]>;
1924
1925
  /**
1925
1926
  * Remove the sender as a sub-account.
1926
1927
  *
@@ -3011,10 +3012,6 @@ declare module '@polkadot/api-base/types/submittable' {
3011
3012
  * - `proxy_type`: The permissions allowed for this proxy account.
3012
3013
  * - `delay`: The announcement period required of the initial proxy. Will generally be
3013
3014
  * zero.
3014
- *
3015
- * # <weight>
3016
- * Weight is a function of the number of proxies the user has (P).
3017
- * # </weight>
3018
3015
  **/
3019
3016
  addProxy: AugmentedSubmittable<(delegate: MultiAddress | {
3020
3017
  Id: any;
@@ -3043,12 +3040,6 @@ declare module '@polkadot/api-base/types/submittable' {
3043
3040
  * Parameters:
3044
3041
  * - `real`: The account that the proxy will make a call on behalf of.
3045
3042
  * - `call_hash`: The hash of the call to be made by the `real` account.
3046
- *
3047
- * # <weight>
3048
- * Weight is a function of:
3049
- * - A: the number of announcements made.
3050
- * - P: the number of proxies the user has.
3051
- * # </weight>
3052
3043
  **/
3053
3044
  announce: AugmentedSubmittable<(real: MultiAddress | {
3054
3045
  Id: any;
@@ -3080,36 +3071,27 @@ declare module '@polkadot/api-base/types/submittable' {
3080
3071
  * same sender, with the same parameters.
3081
3072
  *
3082
3073
  * Fails if there are insufficient funds to pay for deposit.
3083
- *
3084
- * # <weight>
3085
- * Weight is a function of the number of proxies the user has (P).
3086
- * # </weight>
3087
- * TODO: Might be over counting 1 read
3088
3074
  **/
3089
- anonymous: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
3075
+ createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
3090
3076
  /**
3091
- * Removes a previously spawned anonymous proxy.
3077
+ * Removes a previously spawned pure proxy.
3092
3078
  *
3093
3079
  * WARNING: **All access to this account will be lost.** Any funds held in it will be
3094
3080
  * inaccessible.
3095
3081
  *
3096
3082
  * Requires a `Signed` origin, and the sender account must have been created by a call to
3097
- * `anonymous` with corresponding parameters.
3098
- *
3099
- * - `spawner`: The account that originally called `anonymous` to create this account.
3100
- * - `index`: The disambiguation index originally passed to `anonymous`. Probably `0`.
3101
- * - `proxy_type`: The proxy type originally passed to `anonymous`.
3102
- * - `height`: The height of the chain when the call to `anonymous` was processed.
3103
- * - `ext_index`: The extrinsic index in which the call to `anonymous` was processed.
3083
+ * `pure` with corresponding parameters.
3104
3084
  *
3105
- * Fails with `NoPermission` in case the caller is not a previously created anonymous
3106
- * account whose `anonymous` call has corresponding parameters.
3085
+ * - `spawner`: The account that originally called `pure` to create this account.
3086
+ * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
3087
+ * - `proxy_type`: The proxy type originally passed to `pure`.
3088
+ * - `height`: The height of the chain when the call to `pure` was processed.
3089
+ * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
3107
3090
  *
3108
- * # <weight>
3109
- * Weight is a function of the number of proxies the user has (P).
3110
- * # </weight>
3091
+ * Fails with `NoPermission` in case the caller is not a previously created pure
3092
+ * account whose `pure` call has corresponding parameters.
3111
3093
  **/
3112
- killAnonymous: AugmentedSubmittable<(spawner: MultiAddress | {
3094
+ killPure: AugmentedSubmittable<(spawner: MultiAddress | {
3113
3095
  Id: any;
3114
3096
  } | {
3115
3097
  Index: any;
@@ -3132,10 +3114,6 @@ declare module '@polkadot/api-base/types/submittable' {
3132
3114
  * - `real`: The account that the proxy will make a call on behalf of.
3133
3115
  * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
3134
3116
  * - `call`: The call to be made by the `real` account.
3135
- *
3136
- * # <weight>
3137
- * Weight is a function of the number of proxies the user has (P).
3138
- * # </weight>
3139
3117
  **/
3140
3118
  proxy: AugmentedSubmittable<(real: MultiAddress | {
3141
3119
  Id: any;
@@ -3160,12 +3138,6 @@ declare module '@polkadot/api-base/types/submittable' {
3160
3138
  * - `real`: The account that the proxy will make a call on behalf of.
3161
3139
  * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
3162
3140
  * - `call`: The call to be made by the `real` account.
3163
- *
3164
- * # <weight>
3165
- * Weight is a function of:
3166
- * - A: the number of announcements made.
3167
- * - P: the number of proxies the user has.
3168
- * # </weight>
3169
3141
  **/
3170
3142
  proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | {
3171
3143
  Id: any;
@@ -3199,12 +3171,6 @@ declare module '@polkadot/api-base/types/submittable' {
3199
3171
  * Parameters:
3200
3172
  * - `delegate`: The account that previously announced the call.
3201
3173
  * - `call_hash`: The hash of the call to be made.
3202
- *
3203
- * # <weight>
3204
- * Weight is a function of:
3205
- * - A: the number of announcements made.
3206
- * - P: the number of proxies the user has.
3207
- * # </weight>
3208
3174
  **/
3209
3175
  rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | {
3210
3176
  Id: any;
@@ -3228,12 +3194,6 @@ declare module '@polkadot/api-base/types/submittable' {
3228
3194
  * Parameters:
3229
3195
  * - `real`: The account that the proxy will make a call on behalf of.
3230
3196
  * - `call_hash`: The hash of the call to be made by the `real` account.
3231
- *
3232
- * # <weight>
3233
- * Weight is a function of:
3234
- * - A: the number of announcements made.
3235
- * - P: the number of proxies the user has.
3236
- * # </weight>
3237
3197
  **/
3238
3198
  removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | {
3239
3199
  Id: any;
@@ -3251,12 +3211,8 @@ declare module '@polkadot/api-base/types/submittable' {
3251
3211
  *
3252
3212
  * The dispatch origin for this call must be _Signed_.
3253
3213
  *
3254
- * WARNING: This may be called on accounts created by `anonymous`, however if done, then
3214
+ * WARNING: This may be called on accounts created by `pure`, however if done, then
3255
3215
  * the unreserved fees will be inaccessible. **All access to this account will be lost.**
3256
- *
3257
- * # <weight>
3258
- * Weight is a function of the number of proxies the user has (P).
3259
- * # </weight>
3260
3216
  **/
3261
3217
  removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3262
3218
  /**
@@ -3267,10 +3223,6 @@ declare module '@polkadot/api-base/types/submittable' {
3267
3223
  * Parameters:
3268
3224
  * - `proxy`: The account that the `caller` would like to remove as a proxy.
3269
3225
  * - `proxy_type`: The permissions currently enabled for the removed proxy account.
3270
- *
3271
- * # <weight>
3272
- * Weight is a function of the number of proxies the user has (P).
3273
- * # </weight>
3274
3226
  **/
3275
3227
  removeProxy: AugmentedSubmittable<(delegate: MultiAddress | {
3276
3228
  Id: any;
@@ -3815,31 +3767,6 @@ declare module '@polkadot/api-base/types/submittable' {
3815
3767
  } | {
3816
3768
  Address20: any;
3817
3769
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
3818
- /**
3819
- * Set `HistoryDepth` value. This function will delete any history information
3820
- * when `HistoryDepth` is reduced.
3821
- *
3822
- * Parameters:
3823
- * - `new_history_depth`: The new history depth you would like to set.
3824
- * - `era_items_deleted`: The number of items that will be deleted by this dispatch. This
3825
- * should report all the storage items that will be deleted by clearing old era history.
3826
- * Needed to report an accurate weight for the dispatch. Trusted by `Root` to report an
3827
- * accurate number.
3828
- *
3829
- * Origin must be root.
3830
- *
3831
- * # <weight>
3832
- * - E: Number of history depths removed, i.e. 10 -> 7 = 3
3833
- * - Weight: O(E)
3834
- * - DB Weight:
3835
- * - Reads: Current Era, History Depth
3836
- * - Writes: History Depth
3837
- * - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
3838
- * - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake,
3839
- * ErasStartSessionIndex
3840
- * # </weight>
3841
- **/
3842
- setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<u32> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
3843
3770
  /**
3844
3771
  * Set the validators who cannot be slashed (if any).
3845
3772
  *
@@ -3889,7 +3816,7 @@ declare module '@polkadot/api-base/types/submittable' {
3889
3816
  * * `min_commission`: The minimum amount of commission that each validators must maintain.
3890
3817
  * This is checked only upon calling `validate`. Existing validators are not affected.
3891
3818
  *
3892
- * Origin must be Root to call this function.
3819
+ * RuntimeOrigin must be Root to call this function.
3893
3820
  *
3894
3821
  * NOTE: Existing nominators and validators will not be affected by this update.
3895
3822
  * to kick people under the new limits, `chill_other` should be called.
@@ -1,9 +1,9 @@
1
1
  import '@polkadot/api-base/types/consts';
2
2
  import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
3
  import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
- import type { Codec } from '@polkadot/types-codec/types';
4
+ import type { Codec, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { Perbill, Percent, Permill, Weight } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
6
+ import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
7
7
  export declare type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
8
  declare module '@polkadot/api-base/types/consts' {
9
9
  interface AugmentedConsts<ApiType extends ApiTypes> {
@@ -102,58 +102,6 @@ declare module '@polkadot/api-base/types/consts' {
102
102
  **/
103
103
  [key: string]: Codec;
104
104
  };
105
- bagsList: {
106
- /**
107
- * The list of thresholds separating the various bags.
108
- *
109
- * Ids are separated into unsorted bags according to their score. This specifies the
110
- * thresholds separating the bags. An id's bag is the largest bag for which the id's score
111
- * is less than or equal to its upper threshold.
112
- *
113
- * When ids are iterated, higher bags are iterated completely before lower bags. This means
114
- * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
115
- * score, but peer ids within a particular bag are sorted in insertion order.
116
- *
117
- * # Expressing the constant
118
- *
119
- * This constant must be sorted in strictly increasing order. Duplicate items are not
120
- * permitted.
121
- *
122
- * There is an implied upper limit of `Score::MAX`; that value does not need to be
123
- * specified within the bag. For any two threshold lists, if one ends with
124
- * `Score::MAX`, the other one does not, and they are otherwise equal, the two
125
- * lists will behave identically.
126
- *
127
- * # Calculation
128
- *
129
- * It is recommended to generate the set of thresholds in a geometric series, such that
130
- * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
131
- * constant_ratio).max(threshold[k] + 1)` for all `k`.
132
- *
133
- * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
134
- *
135
- * # Examples
136
- *
137
- * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
138
- * iteration is strictly in insertion order.
139
- * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
140
- * the procedure given above, then the constant ratio is equal to 2.
141
- * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
142
- * the procedure given above, then the constant ratio is approximately equal to 1.248.
143
- * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
144
- * into bag 0, an id with score 2 will fall into bag 1, etc.
145
- *
146
- * # Migration
147
- *
148
- * In the event that this list ever changes, a copy of the old bags list must be retained.
149
- * With that `List::migrate` can be called, which will perform the appropriate migration.
150
- **/
151
- bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
152
- /**
153
- * Generic const
154
- **/
155
- [key: string]: Codec;
156
- };
157
105
  balances: {
158
106
  /**
159
107
  * The minimum amount required to keep an account open.
@@ -411,6 +359,9 @@ declare module '@polkadot/api-base/types/consts' {
411
359
  * take place over multiple blocks.
412
360
  **/
413
361
  maxElectingVoters: u32 & AugmentedConst<ApiType>;
362
+ minerMaxLength: u32 & AugmentedConst<ApiType>;
363
+ minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
364
+ minerMaxWeight: Weight & AugmentedConst<ApiType>;
414
365
  /**
415
366
  * The priority of the unsigned transaction submitted in the unsigned-phase
416
367
  **/
@@ -771,6 +722,10 @@ declare module '@polkadot/api-base/types/consts' {
771
722
  * The minimum amount to be used as a deposit for a public referendum proposal.
772
723
  **/
773
724
  submissionDeposit: u128 & AugmentedConst<ApiType>;
725
+ /**
726
+ * Information concerning the different referendum tracks.
727
+ **/
728
+ tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
774
729
  /**
775
730
  * The number of blocks after submission that a referendum must begin being decided by.
776
731
  * Once this passes, then anyone may cancel the referendum.
@@ -836,6 +791,10 @@ declare module '@polkadot/api-base/types/consts' {
836
791
  * The minimum amount to be used as a deposit for a public referendum proposal.
837
792
  **/
838
793
  submissionDeposit: u128 & AugmentedConst<ApiType>;
794
+ /**
795
+ * Information concerning the different referendum tracks.
796
+ **/
797
+ tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
839
798
  /**
840
799
  * The number of blocks after submission that a referendum must begin being decided by.
841
800
  * Once this passes, then anyone may cancel the referendum.
@@ -911,6 +870,28 @@ declare module '@polkadot/api-base/types/consts' {
911
870
  * Number of eras that staked funds must remain bonded for.
912
871
  **/
913
872
  bondingDuration: u32 & AugmentedConst<ApiType>;
873
+ /**
874
+ * Number of eras to keep in history.
875
+ *
876
+ * Following information is kept for eras in `[current_era -
877
+ * HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
878
+ * `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
879
+ * `ErasTotalStake`, `ErasStartSessionIndex`,
880
+ * `StakingLedger.claimed_rewards`.
881
+ *
882
+ * Must be more than the number of eras delayed by session.
883
+ * I.e. active era must always be in history. I.e. `active_era >
884
+ * current_era - history_depth` must be guaranteed.
885
+ *
886
+ * If migrating an existing pallet from storage value to config value,
887
+ * this should be set to same value or greater as in storage.
888
+ *
889
+ * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
890
+ * item `StakingLedger.claimed_rewards`. Setting this value lower than
891
+ * the existing value can lead to inconsistencies and will need to be
892
+ * handled properly in a migration.
893
+ **/
894
+ historyDepth: u32 & AugmentedConst<ApiType>;
914
895
  /**
915
896
  * Maximum number of nominations per nominator.
916
897
  **/
@@ -989,7 +970,7 @@ declare module '@polkadot/api-base/types/consts' {
989
970
  /**
990
971
  * The weight of runtime database operations the runtime can invoke.
991
972
  **/
992
- dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
973
+ dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
993
974
  /**
994
975
  * The designated SS58 prefix of this chain.
995
976
  *
@@ -1175,5 +1156,57 @@ declare module '@polkadot/api-base/types/consts' {
1175
1156
  **/
1176
1157
  [key: string]: Codec;
1177
1158
  };
1159
+ voterBagsList: {
1160
+ /**
1161
+ * The list of thresholds separating the various bags.
1162
+ *
1163
+ * Ids are separated into unsorted bags according to their score. This specifies the
1164
+ * thresholds separating the bags. An id's bag is the largest bag for which the id's score
1165
+ * is less than or equal to its upper threshold.
1166
+ *
1167
+ * When ids are iterated, higher bags are iterated completely before lower bags. This means
1168
+ * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
1169
+ * score, but peer ids within a particular bag are sorted in insertion order.
1170
+ *
1171
+ * # Expressing the constant
1172
+ *
1173
+ * This constant must be sorted in strictly increasing order. Duplicate items are not
1174
+ * permitted.
1175
+ *
1176
+ * There is an implied upper limit of `Score::MAX`; that value does not need to be
1177
+ * specified within the bag. For any two threshold lists, if one ends with
1178
+ * `Score::MAX`, the other one does not, and they are otherwise equal, the two
1179
+ * lists will behave identically.
1180
+ *
1181
+ * # Calculation
1182
+ *
1183
+ * It is recommended to generate the set of thresholds in a geometric series, such that
1184
+ * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
1185
+ * constant_ratio).max(threshold[k] + 1)` for all `k`.
1186
+ *
1187
+ * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
1188
+ *
1189
+ * # Examples
1190
+ *
1191
+ * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
1192
+ * iteration is strictly in insertion order.
1193
+ * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
1194
+ * the procedure given above, then the constant ratio is equal to 2.
1195
+ * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
1196
+ * the procedure given above, then the constant ratio is approximately equal to 1.248.
1197
+ * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
1198
+ * into bag 0, an id with score 2 will fall into bag 1, etc.
1199
+ *
1200
+ * # Migration
1201
+ *
1202
+ * In the event that this list ever changes, a copy of the old bags list must be retained.
1203
+ * With that `List::migrate` can be called, which will perform the appropriate migration.
1204
+ **/
1205
+ bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
1206
+ /**
1207
+ * Generic const
1208
+ **/
1209
+ [key: string]: Codec;
1210
+ };
1178
1211
  }
1179
1212
  }
@@ -284,16 +284,6 @@ declare module '@polkadot/api-base/types/errors' {
284
284
  **/
285
285
  [key: string]: AugmentedError<ApiType>;
286
286
  };
287
- bagsList: {
288
- /**
289
- * A error in the list interface implementation.
290
- **/
291
- List: AugmentedError<ApiType>;
292
- /**
293
- * Generic error
294
- **/
295
- [key: string]: AugmentedError<ApiType>;
296
- };
297
287
  balances: {
298
288
  /**
299
289
  * Beneficiary account must pre-exist
@@ -892,6 +882,34 @@ declare module '@polkadot/api-base/types/errors' {
892
882
  **/
893
883
  [key: string]: AugmentedError<ApiType>;
894
884
  };
885
+ fastUnstake: {
886
+ /**
887
+ * The provided un-staker is already in Head, and cannot deregister.
888
+ **/
889
+ AlreadyHead: AugmentedError<ApiType>;
890
+ /**
891
+ * The bonded account has already been queued.
892
+ **/
893
+ AlreadyQueued: AugmentedError<ApiType>;
894
+ /**
895
+ * The provided Controller account was not found.
896
+ *
897
+ * This means that the given account is not bonded.
898
+ **/
899
+ NotController: AugmentedError<ApiType>;
900
+ /**
901
+ * The bonded account has active unlocking chunks.
902
+ **/
903
+ NotFullyBonded: AugmentedError<ApiType>;
904
+ /**
905
+ * The provided un-staker is not in the `Queue`.
906
+ **/
907
+ NotQueued: AugmentedError<ApiType>;
908
+ /**
909
+ * Generic error
910
+ **/
911
+ [key: string]: AugmentedError<ApiType>;
912
+ };
895
913
  gilt: {
896
914
  /**
897
915
  * The amount of the bid is less than the minimum allowed.
@@ -992,6 +1010,10 @@ declare module '@polkadot/api-base/types/errors' {
992
1010
  * The target is invalid.
993
1011
  **/
994
1012
  InvalidTarget: AugmentedError<ApiType>;
1013
+ /**
1014
+ * The provided judgement was for a different identity.
1015
+ **/
1016
+ JudgementForDifferentIdentity: AugmentedError<ApiType>;
995
1017
  /**
996
1018
  * Judgement given.
997
1019
  **/
@@ -1712,6 +1734,10 @@ declare module '@polkadot/api-base/types/errors' {
1712
1734
  * A nomination target was supplied that was blocked or otherwise not a validator.
1713
1735
  **/
1714
1736
  BadTarget: AugmentedError<ApiType>;
1737
+ /**
1738
+ * Some bound is not met.
1739
+ **/
1740
+ BoundNotMet: AugmentedError<ApiType>;
1715
1741
  /**
1716
1742
  * The user has enough bond and thus cannot be chilled forcefully by an external person.
1717
1743
  **/
@@ -2171,6 +2197,16 @@ declare module '@polkadot/api-base/types/errors' {
2171
2197
  **/
2172
2198
  [key: string]: AugmentedError<ApiType>;
2173
2199
  };
2200
+ voterBagsList: {
2201
+ /**
2202
+ * A error in the list interface implementation.
2203
+ **/
2204
+ List: AugmentedError<ApiType>;
2205
+ /**
2206
+ * Generic error
2207
+ **/
2208
+ [key: string]: AugmentedError<ApiType>;
2209
+ };
2174
2210
  whitelist: {
2175
2211
  /**
2176
2212
  * The call was already whitelisted; No-Op.