@polkadot/api-augment 10.1.4 → 10.2.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.
package/kusama/query.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import '@polkadot/api-base/types/storage';
2
2
  import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
3
3
  import type { Data } from '@polkadot/types';
4
- import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
4
+ import type { BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
- import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
- import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
+ import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeHoldReason, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4AssignmentAppPublic, PolkadotPrimitivesV4CandidateCommitments, PolkadotPrimitivesV4CoreOccupied, PolkadotPrimitivesV4DisputeState, PolkadotPrimitivesV4ExecutorParams, PolkadotPrimitivesV4ScrapedOnChainVotes, PolkadotPrimitivesV4SessionInfo, PolkadotPrimitivesV4UpgradeGoAhead, PolkadotPrimitivesV4UpgradeRestriction, PolkadotPrimitivesV4ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsDisputesSlashingPendingSlashes, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
9
9
  import type { Observable } from '@polkadot/types/types';
10
10
  export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
11
11
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -191,6 +191,17 @@ declare module '@polkadot/api-base/types/storage' {
191
191
  * NOTE: This is only used in the case that this pallet is used to store balances.
192
192
  **/
193
193
  account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
194
+ /**
195
+ * Freeze locks on account balances.
196
+ **/
197
+ freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
198
+ /**
199
+ * Holds on account balances.
200
+ **/
201
+ holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
202
+ readonly id: KusamaRuntimeHoldReason;
203
+ readonly amount: u128;
204
+ } & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
194
205
  /**
195
206
  * The total units of outstanding deactivated balance in the system.
196
207
  **/
@@ -327,36 +338,6 @@ declare module '@polkadot/api-base/types/storage' {
327
338
  **/
328
339
  [key: string]: QueryableStorageEntry<ApiType>;
329
340
  };
330
- council: {
331
- /**
332
- * The current members of the collective. This is stored sorted (just by value).
333
- **/
334
- members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
335
- /**
336
- * The prime member that helps determine the default vote behavior in case of absentations.
337
- **/
338
- prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
339
- /**
340
- * Proposals so far.
341
- **/
342
- proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
343
- /**
344
- * Actual proposal for a given hash, if it's current.
345
- **/
346
- proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
347
- /**
348
- * The hashes of the active proposals.
349
- **/
350
- proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
351
- /**
352
- * Votes on a given proposal, if it is ongoing.
353
- **/
354
- voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
355
- /**
356
- * Generic query
357
- **/
358
- [key: string]: QueryableStorageEntry<ApiType>;
359
- };
360
341
  crowdloan: {
361
342
  /**
362
343
  * The number of auctions that have entered into their ending period so far.
@@ -380,84 +361,6 @@ declare module '@polkadot/api-base/types/storage' {
380
361
  **/
381
362
  [key: string]: QueryableStorageEntry<ApiType>;
382
363
  };
383
- democracy: {
384
- /**
385
- * A record of who vetoed what. Maps proposal hash to a possible existent block number
386
- * (until when it may not be resubmitted) and who vetoed it.
387
- **/
388
- blacklist: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<ITuple<[u32, Vec<AccountId32>]>>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
389
- /**
390
- * Record of all proposals that have been subject to emergency cancellation.
391
- **/
392
- cancellations: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<bool>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
393
- /**
394
- * Those who have locked a deposit.
395
- *
396
- * TWOX-NOTE: Safe, as increasing integer keys are safe.
397
- **/
398
- depositOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[Vec<AccountId32>, u128]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
399
- /**
400
- * True if the last referendum tabled was submitted externally. False if it was a public
401
- * proposal.
402
- **/
403
- lastTabledWasExternal: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
404
- /**
405
- * The lowest referendum index representing an unbaked referendum. Equal to
406
- * `ReferendumCount` if there isn't a unbaked referendum.
407
- **/
408
- lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
409
- /**
410
- * General information concerning any proposal or referendum.
411
- * The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
412
- * dump or IPFS hash of a JSON file.
413
- *
414
- * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
415
- * large preimages.
416
- **/
417
- metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | {
418
- External: any;
419
- } | {
420
- Proposal: any;
421
- } | {
422
- Referendum: any;
423
- } | string | Uint8Array) => Observable<Option<H256>>, [PalletDemocracyMetadataOwner]> & QueryableStorageEntry<ApiType, [PalletDemocracyMetadataOwner]>;
424
- /**
425
- * The referendum to be tabled whenever it would be valid to table an external proposal.
426
- * This happens when a referendum needs to be tabled and one of two conditions are met:
427
- * - `LastTabledWasExternal` is `false`; or
428
- * - `PublicProps` is empty.
429
- **/
430
- nextExternal: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold]>>>, []> & QueryableStorageEntry<ApiType, []>;
431
- /**
432
- * The number of (public) proposals that have been made so far.
433
- **/
434
- publicPropCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
435
- /**
436
- * The public proposals. Unsorted. The second item is the proposal.
437
- **/
438
- publicProps: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, FrameSupportPreimagesBounded, AccountId32]>>>, []> & QueryableStorageEntry<ApiType, []>;
439
- /**
440
- * The next free referendum index, aka the number of referenda started so far.
441
- **/
442
- referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
443
- /**
444
- * Information concerning any given referendum.
445
- *
446
- * TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
447
- **/
448
- referendumInfoOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletDemocracyReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
449
- /**
450
- * All votes for a particular voter. We store the balance for the number of votes that we
451
- * have recorded. The second item is the total amount of delegations, that will be added.
452
- *
453
- * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
454
- **/
455
- votingOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletDemocracyVoteVoting>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
456
- /**
457
- * Generic query
458
- **/
459
- [key: string]: QueryableStorageEntry<ApiType>;
460
- };
461
364
  dmp: {
462
365
  /**
463
366
  * A mapping that stores the downward message queue MQC head for each para.
@@ -952,6 +855,14 @@ declare module '@polkadot/api-base/types/storage' {
952
855
  * NOTE: This is only used in the case that this pallet is used to store balances.
953
856
  **/
954
857
  account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
858
+ /**
859
+ * Freeze locks on account balances.
860
+ **/
861
+ freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
862
+ /**
863
+ * Holds on account balances.
864
+ **/
865
+ holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
955
866
  /**
956
867
  * The total units of outstanding deactivated balance in the system.
957
868
  **/
@@ -1007,6 +918,12 @@ declare module '@polkadot/api-base/types/storage' {
1007
918
  * Counter for the related counted storage map
1008
919
  **/
1009
920
  counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
921
+ /**
922
+ * The maximum commission that can be charged by a pool. Used on commission payouts to bound
923
+ * pool commissions that are > `GlobalMaxCommission`, necessary if a future
924
+ * `GlobalMaxCommission` is lower than some current pool commissions.
925
+ **/
926
+ globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, []> & QueryableStorageEntry<ApiType, []>;
1010
927
  /**
1011
928
  * Ever increasing number of all pools created so far.
1012
929
  **/
@@ -1058,13 +975,13 @@ declare module '@polkadot/api-base/types/storage' {
1058
975
  **/
1059
976
  reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1060
977
  /**
1061
- * Reward pools. This is where there rewards for each pool accumulate. When a members payout
1062
- * is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
978
+ * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
979
+ * claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
1063
980
  **/
1064
981
  rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1065
982
  /**
1066
- * Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
1067
- * hence the name sub-pools. Keyed by the bonded pools account.
983
+ * Groups of unbonding pools. Each group of unbonding pools belongs to a
984
+ * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
1068
985
  **/
1069
986
  subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1070
987
  /**
@@ -1107,7 +1024,7 @@ declare module '@polkadot/api-base/types/storage' {
1107
1024
  /**
1108
1025
  * The commitments of candidates pending availability, by `ParaId`.
1109
1026
  **/
1110
- pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1027
+ pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1111
1028
  /**
1112
1029
  * Generic query
1113
1030
  **/
@@ -1126,7 +1043,7 @@ declare module '@polkadot/api-base/types/storage' {
1126
1043
  /**
1127
1044
  * Scraped on chain data for extracting resolved disputes as well as backing votes.
1128
1045
  **/
1129
- onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV2ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
1046
+ onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV4ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
1130
1047
  /**
1131
1048
  * Generic query
1132
1049
  **/
@@ -1244,7 +1161,7 @@ declare module '@polkadot/api-base/types/storage' {
1244
1161
  * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
1245
1162
  * the format will require migration of parachains.
1246
1163
  **/
1247
- upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1164
+ upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1248
1165
  /**
1249
1166
  * This is used by the relay-chain to communicate that there are restrictions for performing
1250
1167
  * an upgrade for this parachain.
@@ -1256,7 +1173,7 @@ declare module '@polkadot/api-base/types/storage' {
1256
1173
  * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
1257
1174
  * the format will require migration of parachains.
1258
1175
  **/
1259
- upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1176
+ upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1260
1177
  /**
1261
1178
  * Generic query
1262
1179
  **/
@@ -1273,7 +1190,7 @@ declare module '@polkadot/api-base/types/storage' {
1273
1190
  * * The number of parachains and parathread multiplexers
1274
1191
  * * The number of validators divided by `configuration.max_validators_per_core`.
1275
1192
  **/
1276
- availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV2CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
1193
+ availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV4CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
1277
1194
  /**
1278
1195
  * An index used to ensure that only one claim on a parathread exists in the queue or is
1279
1196
  * currently being handled by an occupied core.
@@ -1329,7 +1246,7 @@ declare module '@polkadot/api-base/types/storage' {
1329
1246
  /**
1330
1247
  * All ongoing or concluded disputes for the last several sessions.
1331
1248
  **/
1332
- disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV2DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1249
+ disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV4DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1333
1250
  /**
1334
1251
  * Whether the chain is frozen. Starts as `None`. When this is `Some`,
1335
1252
  * the chain will not accept any new parachain blocks for backing or inclusion,
@@ -1362,7 +1279,7 @@ declare module '@polkadot/api-base/types/storage' {
1362
1279
  * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
1363
1280
  * When in doubt, use `Sessions` API instead.
1364
1281
  **/
1365
- assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1282
+ assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1366
1283
  /**
1367
1284
  * The earliest session for which previous session info is stored.
1368
1285
  **/
@@ -1370,13 +1287,13 @@ declare module '@polkadot/api-base/types/storage' {
1370
1287
  /**
1371
1288
  * Executor parameter set for a given session index
1372
1289
  **/
1373
- sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1290
+ sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1374
1291
  /**
1375
1292
  * Session information in a rolling window.
1376
1293
  * Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
1377
1294
  * Does not have any entries before the session index in the first session change notification.
1378
1295
  **/
1379
- sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1296
+ sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1380
1297
  /**
1381
1298
  * Generic query
1382
1299
  **/
@@ -1392,7 +1309,7 @@ declare module '@polkadot/api-base/types/storage' {
1392
1309
  * The parachain attestation keys of the validators actively participating in parachain consensus.
1393
1310
  * This should be the same length as `ActiveValidatorIndices`.
1394
1311
  **/
1395
- activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1312
+ activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1396
1313
  /**
1397
1314
  * The current session index.
1398
1315
  **/
@@ -1402,39 +1319,15 @@ declare module '@polkadot/api-base/types/storage' {
1402
1319
  **/
1403
1320
  [key: string]: QueryableStorageEntry<ApiType>;
1404
1321
  };
1405
- phragmenElection: {
1406
- /**
1407
- * The present candidate list. A current member or runner-up can never enter this vector
1408
- * and is always implicitly assumed to be a candidate.
1409
- *
1410
- * Second element is the deposit.
1411
- *
1412
- * Invariant: Always sorted based on account id.
1413
- **/
1414
- candidates: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, u128]>>>, []> & QueryableStorageEntry<ApiType, []>;
1322
+ parasSlashing: {
1415
1323
  /**
1416
- * The total number of vote rounds that have happened, excluding the upcoming one.
1324
+ * Validators pending dispute slashes.
1417
1325
  **/
1418
- electionRounds: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1326
+ unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsDisputesSlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1419
1327
  /**
1420
- * The current elected members.
1421
- *
1422
- * Invariant: Always sorted based on account id.
1328
+ * `ValidatorSetCount` per session.
1423
1329
  **/
1424
- members: AugmentedQuery<ApiType, () => Observable<Vec<PalletElectionsPhragmenSeatHolder>>, []> & QueryableStorageEntry<ApiType, []>;
1425
- /**
1426
- * The current reserved runners-up.
1427
- *
1428
- * Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the
1429
- * last (i.e. _best_) runner-up will be replaced.
1430
- **/
1431
- runnersUp: AugmentedQuery<ApiType, () => Observable<Vec<PalletElectionsPhragmenSeatHolder>>, []> & QueryableStorageEntry<ApiType, []>;
1432
- /**
1433
- * Votes and locked stake of a particular voter.
1434
- *
1435
- * TWOX-NOTE: SAFE as `AccountId` is a crypto hash.
1436
- **/
1437
- voting: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletElectionsPhragmenVoter>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1330
+ validatorSetCounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1438
1331
  /**
1439
1332
  * Generic query
1440
1333
  **/
@@ -2021,50 +1914,6 @@ declare module '@polkadot/api-base/types/storage' {
2021
1914
  **/
2022
1915
  [key: string]: QueryableStorageEntry<ApiType>;
2023
1916
  };
2024
- technicalCommittee: {
2025
- /**
2026
- * The current members of the collective. This is stored sorted (just by value).
2027
- **/
2028
- members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
2029
- /**
2030
- * The prime member that helps determine the default vote behavior in case of absentations.
2031
- **/
2032
- prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
2033
- /**
2034
- * Proposals so far.
2035
- **/
2036
- proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
2037
- /**
2038
- * Actual proposal for a given hash, if it's current.
2039
- **/
2040
- proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
2041
- /**
2042
- * The hashes of the active proposals.
2043
- **/
2044
- proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
2045
- /**
2046
- * Votes on a given proposal, if it is ongoing.
2047
- **/
2048
- voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
2049
- /**
2050
- * Generic query
2051
- **/
2052
- [key: string]: QueryableStorageEntry<ApiType>;
2053
- };
2054
- technicalMembership: {
2055
- /**
2056
- * The current membership, stored as an ordered Vec.
2057
- **/
2058
- members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
2059
- /**
2060
- * The current prime member, if one exists.
2061
- **/
2062
- prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
2063
- /**
2064
- * Generic query
2065
- **/
2066
- [key: string]: QueryableStorageEntry<ApiType>;
2067
- };
2068
1917
  timestamp: {
2069
1918
  /**
2070
1919
  * Did the timestamp get updated in this block?
@@ -2079,23 +1928,6 @@ declare module '@polkadot/api-base/types/storage' {
2079
1928
  **/
2080
1929
  [key: string]: QueryableStorageEntry<ApiType>;
2081
1930
  };
2082
- tips: {
2083
- /**
2084
- * Simple preimage lookup from the reason's hash to the original data. Again, has an
2085
- * insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
2086
- **/
2087
- reasons: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
2088
- /**
2089
- * TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value.
2090
- * This has the insecure enumerable hash function since the key itself is already
2091
- * guaranteed to be a secure hash.
2092
- **/
2093
- tips: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletTipsOpenTip>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
2094
- /**
2095
- * Generic query
2096
- **/
2097
- [key: string]: QueryableStorageEntry<ApiType>;
2098
- };
2099
1931
  transactionPayment: {
2100
1932
  nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
2101
1933
  storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
@@ -10,9 +10,9 @@ import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
10
10
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
11
11
  import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
12
12
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
- import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
13
+ import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
14
14
  import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
15
- import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
15
+ import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
16
16
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
17
17
  import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
18
18
  import type { SessionIndex } from '@polkadot/types/interfaces/session';
@@ -192,12 +192,20 @@ declare module '@polkadot/api-base/types/calls' {
192
192
  **/
193
193
  [key: string]: DecoratedCallBase<ApiType>;
194
194
  };
195
- /** 0x37e397fc7c91f5e4/1 */
195
+ /** 0x37e397fc7c91f5e4/2 */
196
196
  metadata: {
197
197
  /**
198
198
  * Returns the metadata of a runtime
199
199
  **/
200
200
  metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
201
+ /**
202
+ * Returns the metadata at a given version.
203
+ **/
204
+ metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
205
+ /**
206
+ * Returns the supported metadata versions.
207
+ **/
208
+ metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
201
209
  /**
202
210
  * Generic call
203
211
  **/
@@ -206,46 +214,26 @@ declare module '@polkadot/api-base/types/calls' {
206
214
  /** 0x91d5df18b0d2cf58/2 */
207
215
  mmrApi: {
208
216
  /**
209
- * Generate MMR proof for a series of leaves under given indices.
210
- **/
211
- generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
212
- /**
213
- * Generate MMR proof for a leaf under given index.
217
+ * Generate MMR proof for the given block numbers.
214
218
  **/
215
- generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
219
+ generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
216
220
  /**
217
221
  * Return the on-chain MMR root hash.
218
222
  **/
219
- mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
220
- /**
221
- * Verify MMR proof against on-chain MMR for a batch of leaves.
222
- **/
223
- verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
224
- leafIndices?: any;
225
- leafCount?: any;
226
- items?: any;
227
- } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
228
- /**
229
- * Verify MMR proof against given root hash or a batch of leaves.
230
- **/
231
- verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
232
- leafIndices?: any;
233
- leafCount?: any;
234
- items?: any;
235
- } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
223
+ root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
236
224
  /**
237
225
  * Verify MMR proof against on-chain MMR.
238
226
  **/
239
- verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | {
240
- leafIndex?: any;
227
+ verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
228
+ leafIndices?: any;
241
229
  leafCount?: any;
242
230
  items?: any;
243
231
  } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
244
232
  /**
245
233
  * Verify MMR proof against given root hash.
246
234
  **/
247
- verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | {
248
- leafIndex?: any;
235
+ verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
236
+ leafIndices?: any;
249
237
  leafCount?: any;
250
238
  items?: any;
251
239
  } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
@@ -290,7 +278,7 @@ declare module '@polkadot/api-base/types/calls' {
290
278
  **/
291
279
  [key: string]: DecoratedCallBase<ApiType>;
292
280
  };
293
- /** 0xaf2c0297a23e6d3d/2 */
281
+ /** 0xaf2c0297a23e6d3d/4 */
294
282
  parachainHost: {
295
283
  /**
296
284
  * Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
@@ -319,6 +307,10 @@ declare module '@polkadot/api-base/types/calls' {
319
307
  processedDownwardMessages?: any;
320
308
  hrmpWatermark?: any;
321
309
  } | string | Uint8Array) => Observable<bool>>;
310
+ /**
311
+ * Returns all onchain disputes.
312
+ **/
313
+ disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
322
314
  /**
323
315
  * Get all the pending inbound messages in the downward message queue for a para.
324
316
  **/
@@ -339,6 +331,10 @@ declare module '@polkadot/api-base/types/calls' {
339
331
  * Returns code hashes of PVFs that require pre-checking by validators in the active set.
340
332
  **/
341
333
  pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
334
+ /**
335
+ * Returns execution parameters for the session.
336
+ **/
337
+ sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
342
338
  /**
343
339
  * Returns the session index expected at a child of the block.
344
340
  **/