@polkadot/api-augment 7.10.2-6 → 7.10.2-9

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.
@@ -704,6 +704,10 @@ declare module '@polkadot/api-base/types/consts' {
704
704
  * Number of eras that staked funds must remain bonded for.
705
705
  **/
706
706
  bondingDuration: u32 & AugmentedConst<ApiType>;
707
+ /**
708
+ * Maximum number of nominations per nominator.
709
+ **/
710
+ maxNominations: u32 & AugmentedConst<ApiType>;
707
711
  /**
708
712
  * The maximum number of nominators rewarded for each validator.
709
713
  *
@@ -711,6 +715,11 @@ declare module '@polkadot/api-base/types/consts' {
711
715
  * claim their reward. This used to limit the i/o cost for the nominator payout.
712
716
  **/
713
717
  maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
718
+ /**
719
+ * The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively
720
+ * determines how many unique eras a staker may be unbonding in.
721
+ **/
722
+ maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
714
723
  /**
715
724
  * Number of sessions per era.
716
725
  **/
package/kusama/tx.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u1
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
7
+ import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
8
8
  declare module '@polkadot/api-base/types/submittable' {
9
9
  interface AugmentedSubmittables<ApiType extends ApiTypes> {
10
10
  auctions: {
@@ -1359,16 +1359,12 @@ declare module '@polkadot/api-base/types/submittable' {
1359
1359
  *
1360
1360
  * A deposit is reserved and recorded for the solution. Based on the outcome, the solution
1361
1361
  * might be rewarded, slashed, or get all or a part of the deposit back.
1362
- *
1363
- * # <weight>
1364
- * Queue size must be provided as witness data.
1365
- * # </weight>
1366
1362
  **/
1367
1363
  submit: AugmentedSubmittable<(rawSolution: PalletElectionProviderMultiPhaseRawSolution | {
1368
1364
  solution?: any;
1369
1365
  score?: any;
1370
1366
  round?: any;
1371
- } | string | Uint8Array, numSignedSubmissions: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution, u32]>;
1367
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution]>;
1372
1368
  /**
1373
1369
  * Submit a solution for the unsigned phase.
1374
1370
  *
@@ -3732,7 +3728,7 @@ declare module '@polkadot/api-base/types/submittable' {
3732
3728
  *
3733
3729
  * # <weight>
3734
3730
  * - Time complexity: O(L), where L is unlocking chunks
3735
- * - Bounded by `MAX_UNLOCKING_CHUNKS`.
3731
+ * - Bounded by `MaxUnlockingChunks`.
3736
3732
  * - Storage changes: Can't increase storage, only decrease it.
3737
3733
  * # </weight>
3738
3734
  **/
@@ -3855,7 +3851,43 @@ declare module '@polkadot/api-base/types/submittable' {
3855
3851
  * NOTE: Existing nominators and validators will not be affected by this update.
3856
3852
  * to kick people under the new limits, `chill_other` should be called.
3857
3853
  **/
3858
- setStakingConfigs: AugmentedSubmittable<(minNominatorBond: u128 | AnyNumber | Uint8Array, minValidatorBond: u128 | AnyNumber | Uint8Array, maxNominatorCount: Option<u32> | null | object | string | Uint8Array, maxValidatorCount: Option<u32> | null | object | string | Uint8Array, chillThreshold: Option<Percent> | null | object | string | Uint8Array, minCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u128, Option<u32>, Option<u32>, Option<Percent>, Perbill]>;
3854
+ setStakingConfigs: AugmentedSubmittable<(minNominatorBond: PalletStakingPalletConfigOpU128 | {
3855
+ Noop: any;
3856
+ } | {
3857
+ Set: any;
3858
+ } | {
3859
+ Remove: any;
3860
+ } | string | Uint8Array, minValidatorBond: PalletStakingPalletConfigOpU128 | {
3861
+ Noop: any;
3862
+ } | {
3863
+ Set: any;
3864
+ } | {
3865
+ Remove: any;
3866
+ } | string | Uint8Array, maxNominatorCount: PalletStakingPalletConfigOpU32 | {
3867
+ Noop: any;
3868
+ } | {
3869
+ Set: any;
3870
+ } | {
3871
+ Remove: any;
3872
+ } | string | Uint8Array, maxValidatorCount: PalletStakingPalletConfigOpU32 | {
3873
+ Noop: any;
3874
+ } | {
3875
+ Set: any;
3876
+ } | {
3877
+ Remove: any;
3878
+ } | string | Uint8Array, chillThreshold: PalletStakingPalletConfigOpPercent | {
3879
+ Noop: any;
3880
+ } | {
3881
+ Set: any;
3882
+ } | {
3883
+ Remove: any;
3884
+ } | string | Uint8Array, minCommission: PalletStakingPalletConfigOpPerbill | {
3885
+ Noop: any;
3886
+ } | {
3887
+ Set: any;
3888
+ } | {
3889
+ Remove: any;
3890
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpPerbill]>;
3859
3891
  /**
3860
3892
  * Sets the ideal number of validators.
3861
3893
  *
@@ -3877,7 +3909,7 @@ declare module '@polkadot/api-base/types/submittable' {
3877
3909
  * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
3878
3910
  * the funds out of management ready for transfer.
3879
3911
  *
3880
- * No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)
3912
+ * No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)
3881
3913
  * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
3882
3914
  * to be called first to remove some of the chunks (if possible).
3883
3915
  *
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "7.10.2-6",
23
+ "version": "7.10.2-9",
24
24
  "main": "index.cjs",
25
25
  "module": "index.js",
26
26
  "types": "index.d.ts",
@@ -151,11 +151,11 @@
151
151
  },
152
152
  "dependencies": {
153
153
  "@babel/runtime": "^7.17.2",
154
- "@polkadot/api-base": "7.10.2-6",
155
- "@polkadot/rpc-augment": "7.10.2-6",
156
- "@polkadot/types": "7.10.2-6",
157
- "@polkadot/types-augment": "7.10.2-6",
158
- "@polkadot/types-codec": "7.10.2-6",
154
+ "@polkadot/api-base": "7.10.2-9",
155
+ "@polkadot/rpc-augment": "7.10.2-9",
156
+ "@polkadot/types": "7.10.2-9",
157
+ "@polkadot/types-augment": "7.10.2-9",
158
+ "@polkadot/types-codec": "7.10.2-9",
159
159
  "@polkadot/util": "^8.4.1"
160
160
  }
161
161
  }
package/packageInfo.cjs CHANGED
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/api-augment',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '7.10.2-6'
14
+ version: '7.10.2-9'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/api-augment',
6
6
  path: new URL('.', import.meta.url).pathname,
7
7
  type: 'esm',
8
- version: '7.10.2-6'
8
+ version: '7.10.2-9'
9
9
  };
@@ -571,6 +571,10 @@ declare module '@polkadot/api-base/types/consts' {
571
571
  * Number of eras that staked funds must remain bonded for.
572
572
  **/
573
573
  bondingDuration: u32 & AugmentedConst<ApiType>;
574
+ /**
575
+ * Maximum number of nominations per nominator.
576
+ **/
577
+ maxNominations: u32 & AugmentedConst<ApiType>;
574
578
  /**
575
579
  * The maximum number of nominators rewarded for each validator.
576
580
  *
@@ -578,6 +582,11 @@ declare module '@polkadot/api-base/types/consts' {
578
582
  * claim their reward. This used to limit the i/o cost for the nominator payout.
579
583
  **/
580
584
  maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
585
+ /**
586
+ * The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively
587
+ * determines how many unique eras a staker may be unbonding in.
588
+ **/
589
+ maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
581
590
  /**
582
591
  * Number of sessions per era.
583
592
  **/
@@ -1053,6 +1053,40 @@ declare module '@polkadot/api-base/types/errors' {
1053
1053
  **/
1054
1054
  [key: string]: AugmentedError<ApiType>;
1055
1055
  };
1056
+ parasDisputes: {
1057
+ /**
1058
+ * Ancient dispute statement provided.
1059
+ **/
1060
+ AncientDisputeStatement: AugmentedError<ApiType>;
1061
+ /**
1062
+ * Duplicate dispute statement sets provided.
1063
+ **/
1064
+ DuplicateDisputeStatementSets: AugmentedError<ApiType>;
1065
+ /**
1066
+ * Validator vote submitted more than once to dispute.
1067
+ **/
1068
+ DuplicateStatement: AugmentedError<ApiType>;
1069
+ /**
1070
+ * Invalid signature on statement.
1071
+ **/
1072
+ InvalidSignature: AugmentedError<ApiType>;
1073
+ /**
1074
+ * Too many spam slots used by some specific validator.
1075
+ **/
1076
+ PotentialSpam: AugmentedError<ApiType>;
1077
+ /**
1078
+ * A dispute where there are only votes on one side.
1079
+ **/
1080
+ SingleSidedDispute: AugmentedError<ApiType>;
1081
+ /**
1082
+ * Validator index on statement is out of bounds for session.
1083
+ **/
1084
+ ValidatorIndexOutOfBounds: AugmentedError<ApiType>;
1085
+ /**
1086
+ * Generic error
1087
+ **/
1088
+ [key: string]: AugmentedError<ApiType>;
1089
+ };
1056
1090
  phragmenElection: {
1057
1091
  /**
1058
1092
  * Duplicated candidate submission.
@@ -3,7 +3,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
3
3
  import type { ITuple } from '@polkadot/types-codec/types';
4
4
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
5
5
  import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV1CandidateReceipt, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
6
+ import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV1CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
7
  declare module '@polkadot/api-base/types/events' {
8
8
  interface AugmentedEvents<ApiType extends ApiTypes> {
9
9
  auctions: {
@@ -568,6 +568,33 @@ declare module '@polkadot/api-base/types/events' {
568
568
  **/
569
569
  [key: string]: AugmentedEvent<ApiType>;
570
570
  };
571
+ parasDisputes: {
572
+ /**
573
+ * A dispute has concluded for or against a candidate.
574
+ * `\[para id, candidate hash, dispute result\]`
575
+ **/
576
+ DisputeConcluded: AugmentedEvent<ApiType, [H256, PolkadotRuntimeParachainsDisputesDisputeResult]>;
577
+ /**
578
+ * A dispute has been initiated. \[candidate hash, dispute location\]
579
+ **/
580
+ DisputeInitiated: AugmentedEvent<ApiType, [H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
581
+ /**
582
+ * A dispute has timed out due to insufficient participation.
583
+ * `\[para id, candidate hash\]`
584
+ **/
585
+ DisputeTimedOut: AugmentedEvent<ApiType, [H256]>;
586
+ /**
587
+ * A dispute has concluded with supermajority against a candidate.
588
+ * Block authors should no longer build on top of this head and should
589
+ * instead revert the block at the given height. This should be the
590
+ * number of the child of the last known valid block in the chain.
591
+ **/
592
+ Revert: AugmentedEvent<ApiType, [u32]>;
593
+ /**
594
+ * Generic event
595
+ **/
596
+ [key: string]: AugmentedEvent<ApiType>;
597
+ };
571
598
  phragmenElection: {
572
599
  /**
573
600
  * A candidate was slashed by amount due to failing to obtain a seat as member or
@@ -4,7 +4,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, 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, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
+ import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, 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, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1DisputeState, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
8
  import type { Observable } from '@polkadot/types/types';
9
9
  declare module '@polkadot/api-base/types/storage' {
10
10
  interface AugmentedQueries<ApiType extends ApiTypes> {
@@ -1023,6 +1023,41 @@ declare module '@polkadot/api-base/types/storage' {
1023
1023
  **/
1024
1024
  [key: string]: QueryableStorageEntry<ApiType>;
1025
1025
  };
1026
+ parasDisputes: {
1027
+ /**
1028
+ * All ongoing or concluded disputes for the last several sessions.
1029
+ **/
1030
+ disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV1DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1031
+ /**
1032
+ * Whether the chain is frozen. Starts as `None`. When this is `Some`,
1033
+ * the chain will not accept any new parachain blocks for backing or inclusion,
1034
+ * and its value indicates the last valid block number in the chain.
1035
+ * It can only be set back to `None` by governance intervention.
1036
+ **/
1037
+ frozen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1038
+ /**
1039
+ * All included blocks on the chain, as well as the block number in this chain that
1040
+ * should be reverted back to if the candidate is disputed and determined to be invalid.
1041
+ **/
1042
+ included: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<u32>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1043
+ /**
1044
+ * The last pruned session, if any. All data stored by this module
1045
+ * references sessions.
1046
+ **/
1047
+ lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1048
+ /**
1049
+ * Maps session indices to a vector indicating the number of potentially-spam disputes
1050
+ * each validator is participating in. Potentially-spam disputes are remote disputes which have
1051
+ * fewer than `byzantine_threshold + 1` validators.
1052
+ *
1053
+ * The i'th entry of the vector corresponds to the i'th validator in the session.
1054
+ **/
1055
+ spamSlots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1056
+ /**
1057
+ * Generic query
1058
+ **/
1059
+ [key: string]: QueryableStorageEntry<ApiType>;
1060
+ };
1026
1061
  paraSessionInfo: {
1027
1062
  /**
1028
1063
  * Assignment keys for the current session.
package/polkadot/tx.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u1
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
7
+ import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
8
8
  declare module '@polkadot/api-base/types/submittable' {
9
9
  interface AugmentedSubmittables<ApiType extends ApiTypes> {
10
10
  auctions: {
@@ -1359,16 +1359,12 @@ declare module '@polkadot/api-base/types/submittable' {
1359
1359
  *
1360
1360
  * A deposit is reserved and recorded for the solution. Based on the outcome, the solution
1361
1361
  * might be rewarded, slashed, or get all or a part of the deposit back.
1362
- *
1363
- * # <weight>
1364
- * Queue size must be provided as witness data.
1365
- * # </weight>
1366
1362
  **/
1367
1363
  submit: AugmentedSubmittable<(rawSolution: PalletElectionProviderMultiPhaseRawSolution | {
1368
1364
  solution?: any;
1369
1365
  score?: any;
1370
1366
  round?: any;
1371
- } | string | Uint8Array, numSignedSubmissions: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution, u32]>;
1367
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution]>;
1372
1368
  /**
1373
1369
  * Submit a solution for the unsigned phase.
1374
1370
  *
@@ -2282,6 +2278,13 @@ declare module '@polkadot/api-base/types/submittable' {
2282
2278
  **/
2283
2279
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
2284
2280
  };
2281
+ parasDisputes: {
2282
+ forceUnfreeze: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2283
+ /**
2284
+ * Generic tx
2285
+ **/
2286
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2287
+ };
2285
2288
  parasShared: {
2286
2289
  /**
2287
2290
  * Generic tx
@@ -3130,7 +3133,7 @@ declare module '@polkadot/api-base/types/submittable' {
3130
3133
  *
3131
3134
  * # <weight>
3132
3135
  * - Time complexity: O(L), where L is unlocking chunks
3133
- * - Bounded by `MAX_UNLOCKING_CHUNKS`.
3136
+ * - Bounded by `MaxUnlockingChunks`.
3134
3137
  * - Storage changes: Can't increase storage, only decrease it.
3135
3138
  * # </weight>
3136
3139
  **/
@@ -3253,7 +3256,43 @@ declare module '@polkadot/api-base/types/submittable' {
3253
3256
  * NOTE: Existing nominators and validators will not be affected by this update.
3254
3257
  * to kick people under the new limits, `chill_other` should be called.
3255
3258
  **/
3256
- setStakingConfigs: AugmentedSubmittable<(minNominatorBond: u128 | AnyNumber | Uint8Array, minValidatorBond: u128 | AnyNumber | Uint8Array, maxNominatorCount: Option<u32> | null | object | string | Uint8Array, maxValidatorCount: Option<u32> | null | object | string | Uint8Array, chillThreshold: Option<Percent> | null | object | string | Uint8Array, minCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u128, Option<u32>, Option<u32>, Option<Percent>, Perbill]>;
3259
+ setStakingConfigs: AugmentedSubmittable<(minNominatorBond: PalletStakingPalletConfigOpU128 | {
3260
+ Noop: any;
3261
+ } | {
3262
+ Set: any;
3263
+ } | {
3264
+ Remove: any;
3265
+ } | string | Uint8Array, minValidatorBond: PalletStakingPalletConfigOpU128 | {
3266
+ Noop: any;
3267
+ } | {
3268
+ Set: any;
3269
+ } | {
3270
+ Remove: any;
3271
+ } | string | Uint8Array, maxNominatorCount: PalletStakingPalletConfigOpU32 | {
3272
+ Noop: any;
3273
+ } | {
3274
+ Set: any;
3275
+ } | {
3276
+ Remove: any;
3277
+ } | string | Uint8Array, maxValidatorCount: PalletStakingPalletConfigOpU32 | {
3278
+ Noop: any;
3279
+ } | {
3280
+ Set: any;
3281
+ } | {
3282
+ Remove: any;
3283
+ } | string | Uint8Array, chillThreshold: PalletStakingPalletConfigOpPercent | {
3284
+ Noop: any;
3285
+ } | {
3286
+ Set: any;
3287
+ } | {
3288
+ Remove: any;
3289
+ } | string | Uint8Array, minCommission: PalletStakingPalletConfigOpPerbill | {
3290
+ Noop: any;
3291
+ } | {
3292
+ Set: any;
3293
+ } | {
3294
+ Remove: any;
3295
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpPerbill]>;
3257
3296
  /**
3258
3297
  * Sets the ideal number of validators.
3259
3298
  *
@@ -3275,7 +3314,7 @@ declare module '@polkadot/api-base/types/submittable' {
3275
3314
  * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
3276
3315
  * the funds out of management ready for transfer.
3277
3316
  *
3278
- * No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)
3317
+ * No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)
3279
3318
  * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
3280
3319
  * to be called first to remove some of the chunks (if possible).
3281
3320
  *
@@ -2,7 +2,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
2
2
  import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
3
  import type { Codec } from '@polkadot/types-codec/types';
4
4
  import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
5
- import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
5
+ import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletStateTrieMigrationMigrationLimits, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
6
6
  declare module '@polkadot/api-base/types/consts' {
7
7
  interface AugmentedConsts<ApiType extends ApiTypes> {
8
8
  assets: {
@@ -793,6 +793,10 @@ declare module '@polkadot/api-base/types/consts' {
793
793
  * Number of eras that staked funds must remain bonded for.
794
794
  **/
795
795
  bondingDuration: u32 & AugmentedConst<ApiType>;
796
+ /**
797
+ * Maximum number of nominations per nominator.
798
+ **/
799
+ maxNominations: u32 & AugmentedConst<ApiType>;
796
800
  /**
797
801
  * The maximum number of nominators rewarded for each validator.
798
802
  *
@@ -800,6 +804,11 @@ declare module '@polkadot/api-base/types/consts' {
800
804
  * claim their reward. This used to limit the i/o cost for the nominator payout.
801
805
  **/
802
806
  maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
807
+ /**
808
+ * The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively
809
+ * determines how many unique eras a staker may be unbonding in.
810
+ **/
811
+ maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
803
812
  /**
804
813
  * Number of sessions per era.
805
814
  **/
@@ -816,6 +825,16 @@ declare module '@polkadot/api-base/types/consts' {
816
825
  **/
817
826
  [key: string]: Codec;
818
827
  };
828
+ stateTrieMigration: {
829
+ /**
830
+ * The maximum limits that the signed migration could use.
831
+ **/
832
+ signedMigrationMaxLimits: PalletStateTrieMigrationMigrationLimits & AugmentedConst<ApiType>;
833
+ /**
834
+ * Generic const
835
+ **/
836
+ [key: string]: Codec;
837
+ };
819
838
  system: {
820
839
  /**
821
840
  * Maximum number of block number to block hash mappings to keep (oldest pruned first).
@@ -1434,6 +1434,28 @@ declare module '@polkadot/api-base/types/errors' {
1434
1434
  **/
1435
1435
  [key: string]: AugmentedError<ApiType>;
1436
1436
  };
1437
+ stateTrieMigration: {
1438
+ /**
1439
+ * bad witness data provided.
1440
+ **/
1441
+ BadWitness: AugmentedError<ApiType>;
1442
+ /**
1443
+ * max signed limits not respected.
1444
+ **/
1445
+ MaxSignedLimits: AugmentedError<ApiType>;
1446
+ /**
1447
+ * submitter does not have enough funds.
1448
+ **/
1449
+ NotEnoughFunds: AugmentedError<ApiType>;
1450
+ /**
1451
+ * upper bound of size is exceeded,
1452
+ **/
1453
+ SizeUpperBoundExceeded: AugmentedError<ApiType>;
1454
+ /**
1455
+ * Generic error
1456
+ **/
1457
+ [key: string]: AugmentedError<ApiType>;
1458
+ };
1437
1459
  sudo: {
1438
1460
  /**
1439
1461
  * Sender must be the Sudo account
@@ -1727,5 +1749,31 @@ declare module '@polkadot/api-base/types/errors' {
1727
1749
  **/
1728
1750
  [key: string]: AugmentedError<ApiType>;
1729
1751
  };
1752
+ whitelist: {
1753
+ /**
1754
+ * The call was already whitelisted; No-Op.
1755
+ **/
1756
+ CallAlreadyWhitelisted: AugmentedError<ApiType>;
1757
+ /**
1758
+ * The call was not whitelisted.
1759
+ **/
1760
+ CallIsNotWhitelisted: AugmentedError<ApiType>;
1761
+ /**
1762
+ * The weight of the decoded call was higher than the witness.
1763
+ **/
1764
+ InvalidCallWeightWitness: AugmentedError<ApiType>;
1765
+ /**
1766
+ * The preimage of the call hash could not be loaded.
1767
+ **/
1768
+ UnavailablePreImage: AugmentedError<ApiType>;
1769
+ /**
1770
+ * The call could not be decoded.
1771
+ **/
1772
+ UndecodableCall: AugmentedError<ApiType>;
1773
+ /**
1774
+ * Generic error
1775
+ **/
1776
+ [key: string]: AugmentedError<ApiType>;
1777
+ };
1730
1778
  }
1731
1779
  }
@@ -2,7 +2,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
2
2
  import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
3
  import type { ITuple } from '@polkadot/types-codec/types';
4
4
  import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
5
- import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
5
+ import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
6
6
  declare module '@polkadot/api-base/types/events' {
7
7
  interface AugmentedEvents<ApiType extends ApiTypes> {
8
8
  assets: {
@@ -915,6 +915,29 @@ declare module '@polkadot/api-base/types/events' {
915
915
  **/
916
916
  [key: string]: AugmentedEvent<ApiType>;
917
917
  };
918
+ stateTrieMigration: {
919
+ /**
920
+ * The auto migration task finished.
921
+ **/
922
+ AutoMigrationFinished: AugmentedEvent<ApiType, []>;
923
+ /**
924
+ * Migration got halted.
925
+ **/
926
+ Halted: AugmentedEvent<ApiType, []>;
927
+ /**
928
+ * Given number of `(top, child)` keys were migrated respectively, with the given
929
+ * `compute`.
930
+ **/
931
+ Migrated: AugmentedEvent<ApiType, [u32, u32, PalletStateTrieMigrationMigrationCompute]>;
932
+ /**
933
+ * Some account got slashed by the given amount.
934
+ **/
935
+ Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
936
+ /**
937
+ * Generic event
938
+ **/
939
+ [key: string]: AugmentedEvent<ApiType>;
940
+ };
918
941
  sudo: {
919
942
  /**
920
943
  * The \[sudoer\] just switched identity; the old key is supplied if one existed.
@@ -1241,5 +1264,14 @@ declare module '@polkadot/api-base/types/events' {
1241
1264
  **/
1242
1265
  [key: string]: AugmentedEvent<ApiType>;
1243
1266
  };
1267
+ whitelist: {
1268
+ CallWhitelisted: AugmentedEvent<ApiType, [H256]>;
1269
+ WhitelistedCallDispatched: AugmentedEvent<ApiType, [H256, Result<FrameSupportWeightsPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>]>;
1270
+ WhitelistedCallRemoved: AugmentedEvent<ApiType, [H256]>;
1271
+ /**
1272
+ * Generic event
1273
+ **/
1274
+ [key: string]: AugmentedEvent<ApiType>;
1275
+ };
1244
1276
  }
1245
1277
  }
@@ -3,7 +3,7 @@ import type { Data } from '@polkadot/types';
3
3
  import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, 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 } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
6
+ import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
7
7
  import type { Observable } from '@polkadot/types/types';
8
8
  declare module '@polkadot/api-base/types/storage' {
9
9
  interface AugmentedQueries<ApiType extends ApiTypes> {
@@ -1245,6 +1245,25 @@ declare module '@polkadot/api-base/types/storage' {
1245
1245
  **/
1246
1246
  [key: string]: QueryableStorageEntry<ApiType>;
1247
1247
  };
1248
+ stateTrieMigration: {
1249
+ /**
1250
+ * The limits that are imposed on automatic migrations.
1251
+ *
1252
+ * If set to None, then no automatic migration happens.
1253
+ **/
1254
+ autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
1255
+ /**
1256
+ * Migration progress.
1257
+ *
1258
+ * This stores the snapshot of the last migrated keys. It can be set into motion and move
1259
+ * forward by any of the means provided by this pallet.
1260
+ **/
1261
+ migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
1262
+ /**
1263
+ * Generic query
1264
+ **/
1265
+ [key: string]: QueryableStorageEntry<ApiType>;
1266
+ };
1248
1267
  sudo: {
1249
1268
  /**
1250
1269
  * The `AccountId` of the sudo key.
@@ -1531,5 +1550,12 @@ declare module '@polkadot/api-base/types/storage' {
1531
1550
  **/
1532
1551
  [key: string]: QueryableStorageEntry<ApiType>;
1533
1552
  };
1553
+ whitelist: {
1554
+ whitelistedCall: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Null>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1555
+ /**
1556
+ * Generic query
1557
+ **/
1558
+ [key: string]: QueryableStorageEntry<ApiType>;
1559
+ };
1534
1560
  }
1535
1561
  }
package/substrate/tx.d.ts CHANGED
@@ -3,7 +3,7 @@ import type { Data } from '@polkadot/types';
3
3
  import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, 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, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletReferendaAtOrAfter, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
6
+ import type { FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletReferendaAtOrAfter, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
7
7
  declare module '@polkadot/api-base/types/submittable' {
8
8
  interface AugmentedSubmittables<ApiType extends ApiTypes> {
9
9
  assets: {
@@ -2040,16 +2040,12 @@ declare module '@polkadot/api-base/types/submittable' {
2040
2040
  *
2041
2041
  * A deposit is reserved and recorded for the solution. Based on the outcome, the solution
2042
2042
  * might be rewarded, slashed, or get all or a part of the deposit back.
2043
- *
2044
- * # <weight>
2045
- * Queue size must be provided as witness data.
2046
- * # </weight>
2047
2043
  **/
2048
2044
  submit: AugmentedSubmittable<(rawSolution: PalletElectionProviderMultiPhaseRawSolution | {
2049
2045
  solution?: any;
2050
2046
  score?: any;
2051
2047
  round?: any;
2052
- } | string | Uint8Array, numSignedSubmissions: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution, u32]>;
2048
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution]>;
2053
2049
  /**
2054
2050
  * Submit a solution for the unsigned phase.
2055
2051
  *
@@ -4264,7 +4260,7 @@ declare module '@polkadot/api-base/types/submittable' {
4264
4260
  *
4265
4261
  * # <weight>
4266
4262
  * - Time complexity: O(L), where L is unlocking chunks
4267
- * - Bounded by `MAX_UNLOCKING_CHUNKS`.
4263
+ * - Bounded by `MaxUnlockingChunks`.
4268
4264
  * - Storage changes: Can't increase storage, only decrease it.
4269
4265
  * # </weight>
4270
4266
  **/
@@ -4387,7 +4383,43 @@ declare module '@polkadot/api-base/types/submittable' {
4387
4383
  * NOTE: Existing nominators and validators will not be affected by this update.
4388
4384
  * to kick people under the new limits, `chill_other` should be called.
4389
4385
  **/
4390
- setStakingConfigs: AugmentedSubmittable<(minNominatorBond: u128 | AnyNumber | Uint8Array, minValidatorBond: u128 | AnyNumber | Uint8Array, maxNominatorCount: Option<u32> | null | object | string | Uint8Array, maxValidatorCount: Option<u32> | null | object | string | Uint8Array, chillThreshold: Option<Percent> | null | object | string | Uint8Array, minCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u128, Option<u32>, Option<u32>, Option<Percent>, Perbill]>;
4386
+ setStakingConfigs: AugmentedSubmittable<(minNominatorBond: PalletStakingPalletConfigOpU128 | {
4387
+ Noop: any;
4388
+ } | {
4389
+ Set: any;
4390
+ } | {
4391
+ Remove: any;
4392
+ } | string | Uint8Array, minValidatorBond: PalletStakingPalletConfigOpU128 | {
4393
+ Noop: any;
4394
+ } | {
4395
+ Set: any;
4396
+ } | {
4397
+ Remove: any;
4398
+ } | string | Uint8Array, maxNominatorCount: PalletStakingPalletConfigOpU32 | {
4399
+ Noop: any;
4400
+ } | {
4401
+ Set: any;
4402
+ } | {
4403
+ Remove: any;
4404
+ } | string | Uint8Array, maxValidatorCount: PalletStakingPalletConfigOpU32 | {
4405
+ Noop: any;
4406
+ } | {
4407
+ Set: any;
4408
+ } | {
4409
+ Remove: any;
4410
+ } | string | Uint8Array, chillThreshold: PalletStakingPalletConfigOpPercent | {
4411
+ Noop: any;
4412
+ } | {
4413
+ Set: any;
4414
+ } | {
4415
+ Remove: any;
4416
+ } | string | Uint8Array, minCommission: PalletStakingPalletConfigOpPerbill | {
4417
+ Noop: any;
4418
+ } | {
4419
+ Set: any;
4420
+ } | {
4421
+ Remove: any;
4422
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpPerbill]>;
4391
4423
  /**
4392
4424
  * Sets the ideal number of validators.
4393
4425
  *
@@ -4409,7 +4441,7 @@ declare module '@polkadot/api-base/types/submittable' {
4409
4441
  * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
4410
4442
  * the funds out of management ready for transfer.
4411
4443
  *
4412
- * No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)
4444
+ * No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)
4413
4445
  * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
4414
4446
  * to be called first to remove some of the chunks (if possible).
4415
4447
  *
@@ -4455,6 +4487,68 @@ declare module '@polkadot/api-base/types/submittable' {
4455
4487
  **/
4456
4488
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
4457
4489
  };
4490
+ stateTrieMigration: {
4491
+ /**
4492
+ * Continue the migration for the given `limits`.
4493
+ *
4494
+ * The dispatch origin of this call can be any signed account.
4495
+ *
4496
+ * This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,
4497
+ * Upon successful execution, the transaction fee is returned.
4498
+ *
4499
+ * The (potentially over-estimated) of the byte length of all the data read must be
4500
+ * provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing
4501
+ * that executing the current `MigrationTask` with the given `limits` will not exceed
4502
+ * `real_size_upper` bytes of read data.
4503
+ *
4504
+ * The `witness_task` is merely a helper to prevent the caller from being slashed or
4505
+ * generally trigger a migration that they do not intend. This parameter is just a message
4506
+ * from caller, saying that they believed `witness_task` was the last state of the
4507
+ * migration, and they only wish for their transaction to do anything, if this assumption
4508
+ * holds. In case `witness_task` does not match, the transaction fails.
4509
+ *
4510
+ * Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the
4511
+ * recommended way of doing this is to pass a `limit` that only bounds `count`, as the
4512
+ * `size` limit can always be overwritten.
4513
+ **/
4514
+ continueMigrate: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | {
4515
+ size_?: any;
4516
+ item?: any;
4517
+ } | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | {
4518
+ lastTop?: any;
4519
+ lastChild?: any;
4520
+ prevTickChild?: any;
4521
+ size_?: any;
4522
+ topItems?: any;
4523
+ childItems?: any;
4524
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>;
4525
+ /**
4526
+ * Control the automatic migration.
4527
+ *
4528
+ * The dispatch origin of this call must be [`Config::ControlOrigin`].
4529
+ **/
4530
+ controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
4531
+ /**
4532
+ * Migrate the list of child keys by iterating each of them one by one.
4533
+ *
4534
+ * All of the given child keys must be present under one `child_root`.
4535
+ *
4536
+ * This does not affect the global migration process tracker ([`MigrationProcess`]), and
4537
+ * should only be used in case any keys are leftover due to a bug.
4538
+ **/
4539
+ migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Vec<Bytes>, u32]>;
4540
+ /**
4541
+ * Migrate the list of top keys by iterating each of them one by one.
4542
+ *
4543
+ * This does not affect the global migration process tracker ([`MigrationProcess`]), and
4544
+ * should only be used in case any keys are leftover due to a bug.
4545
+ **/
4546
+ migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
4547
+ /**
4548
+ * Generic tx
4549
+ **/
4550
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
4551
+ };
4458
4552
  sudo: {
4459
4553
  /**
4460
4554
  * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
@@ -5827,5 +5921,18 @@ declare module '@polkadot/api-base/types/submittable' {
5827
5921
  **/
5828
5922
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
5829
5923
  };
5924
+ whitelist: {
5925
+ dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u64]>;
5926
+ dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | {
5927
+ callIndex?: any;
5928
+ args?: any;
5929
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
5930
+ removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
5931
+ whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
5932
+ /**
5933
+ * Generic tx
5934
+ **/
5935
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
5936
+ };
5830
5937
  }
5831
5938
  }