@polkadot/api-augment 11.1.1 → 11.3.1

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.
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.1.1' };
4
+ exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.3.1' };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "11.1.1",
21
+ "version": "11.3.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -211,11 +211,11 @@
211
211
  }
212
212
  },
213
213
  "dependencies": {
214
- "@polkadot/api-base": "11.1.1",
215
- "@polkadot/rpc-augment": "11.1.1",
216
- "@polkadot/types": "11.1.1",
217
- "@polkadot/types-augment": "11.1.1",
218
- "@polkadot/types-codec": "11.1.1",
214
+ "@polkadot/api-base": "11.3.1",
215
+ "@polkadot/rpc-augment": "11.3.1",
216
+ "@polkadot/types": "11.3.1",
217
+ "@polkadot/types-augment": "11.3.1",
218
+ "@polkadot/types-codec": "11.3.1",
219
219
  "@polkadot/util": "^12.6.2",
220
220
  "tslib": "^2.6.2"
221
221
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '11.1.1' };
1
+ export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '11.3.1' };
@@ -391,6 +391,12 @@ declare module '@polkadot/api-base/types/consts' {
391
391
  * The maximum size in bytes submitted evidence is allowed to be.
392
392
  **/
393
393
  evidenceSize: u32 & AugmentedConst<ApiType>;
394
+ /**
395
+ * Represents the highest possible rank in this pallet.
396
+ *
397
+ * Increasing this value is supported, but decreasing it may lead to a broken state.
398
+ **/
399
+ maxRank: u32 & AugmentedConst<ApiType>;
394
400
  /**
395
401
  * Generic const
396
402
  **/
@@ -804,6 +804,10 @@ declare module '@polkadot/api-base/types/errors' {
804
804
  * contract code execution which is not supported.
805
805
  **/
806
806
  ReentranceDenied: AugmentedError<ApiType>;
807
+ /**
808
+ * A contract attempted to invoke a state modifying API while being in read-only mode.
809
+ **/
810
+ StateChangeDenied: AugmentedError<ApiType>;
807
811
  /**
808
812
  * More storage was created than allowed by the storage deposit limit.
809
813
  **/
@@ -1906,6 +1910,10 @@ declare module '@polkadot/api-base/types/errors' {
1906
1910
  * pool at a time.
1907
1911
  **/
1908
1912
  AccountBelongsToOtherPool: AugmentedError<ApiType>;
1913
+ /**
1914
+ * The pool or member delegation has already migrated to delegate stake.
1915
+ **/
1916
+ AlreadyMigrated: AugmentedError<ApiType>;
1909
1917
  /**
1910
1918
  * Bonding extra is restricted to the exact pending reward amount.
1911
1919
  **/
@@ -1997,10 +2005,18 @@ declare module '@polkadot/api-base/types/errors' {
1997
2005
  * No imbalance in the ED deposit for the pool.
1998
2006
  **/
1999
2007
  NothingToAdjust: AugmentedError<ApiType>;
2008
+ /**
2009
+ * No slash pending that can be applied to the member.
2010
+ **/
2011
+ NothingToSlash: AugmentedError<ApiType>;
2000
2012
  /**
2001
2013
  * Either a) the caller cannot make a valid kick or b) the pool is not destroying.
2002
2014
  **/
2003
2015
  NotKickerOrDestroying: AugmentedError<ApiType>;
2016
+ /**
2017
+ * The pool or member delegation has not migrated yet to delegate stake.
2018
+ **/
2019
+ NotMigrated: AugmentedError<ApiType>;
2004
2020
  /**
2005
2021
  * The caller does not have nominating permissions for the pool.
2006
2022
  **/
@@ -2009,6 +2025,10 @@ declare module '@polkadot/api-base/types/errors' {
2009
2025
  * The pool is not open to join
2010
2026
  **/
2011
2027
  NotOpen: AugmentedError<ApiType>;
2028
+ /**
2029
+ * This call is not allowed in the current state of the pallet.
2030
+ **/
2031
+ NotSupported: AugmentedError<ApiType>;
2012
2032
  /**
2013
2033
  * The transaction could not be executed due to overflow risk for the pool.
2014
2034
  **/
@@ -2865,6 +2885,10 @@ declare module '@polkadot/api-base/types/errors' {
2865
2885
  * staking settings to keep things safe for the runtime.
2866
2886
  **/
2867
2887
  TooManyValidators: AugmentedError<ApiType>;
2888
+ /**
2889
+ * Operation not allowed for virtual stakers.
2890
+ **/
2891
+ VirtualStakerNotAllowed: AugmentedError<ApiType>;
2868
2892
  /**
2869
2893
  * Generic error
2870
2894
  **/
@@ -361,6 +361,14 @@ declare module '@polkadot/api-base/types/events' {
361
361
  creator: AccountId32;
362
362
  owner: AccountId32;
363
363
  }>;
364
+ /**
365
+ * Some assets were deposited (e.g. for transaction fees).
366
+ **/
367
+ Deposited: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], {
368
+ assetId: u32;
369
+ who: AccountId32;
370
+ amount: u128;
371
+ }>;
364
372
  /**
365
373
  * An asset class was destroyed.
366
374
  **/
@@ -462,6 +470,14 @@ declare module '@polkadot/api-base/types/events' {
462
470
  destination: AccountId32;
463
471
  amount: u128;
464
472
  }>;
473
+ /**
474
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
475
+ **/
476
+ Withdrawn: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], {
477
+ assetId: u32;
478
+ who: AccountId32;
479
+ amount: u128;
480
+ }>;
465
481
  /**
466
482
  * Generic event
467
483
  **/
@@ -724,13 +740,6 @@ declare module '@polkadot/api-base/types/events' {
724
740
  [key: string]: AugmentedEvent<ApiType>;
725
741
  };
726
742
  broker: {
727
- /**
728
- * Some historical Instantaneous Core Pool payment record has been dropped.
729
- **/
730
- AllowedRenewalDropped: AugmentedEvent<ApiType, [when: u32, core: u16], {
731
- when: u32;
732
- core: u16;
733
- }>;
734
743
  /**
735
744
  * A Region has been assigned to a particular task.
736
745
  **/
@@ -839,6 +848,13 @@ declare module '@polkadot/api-base/types/events' {
839
848
  regionId: PalletBrokerRegionId;
840
849
  duration: u32;
841
850
  }>;
851
+ /**
852
+ * Some historical Instantaneous Core Pool payment record has been dropped.
853
+ **/
854
+ PotentialRenewalDropped: AugmentedEvent<ApiType, [when: u32, core: u16], {
855
+ when: u32;
856
+ core: u16;
857
+ }>;
842
858
  /**
843
859
  * A Region of Bulk Coretime has been purchased.
844
860
  **/
@@ -915,11 +931,11 @@ declare module '@polkadot/api-base/types/events' {
915
931
  /**
916
932
  * A new sale has been initialized.
917
933
  **/
918
- SaleInitialized: AugmentedEvent<ApiType, [saleStart: u32, leadinLength: u32, startPrice: u128, regularPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16], {
934
+ SaleInitialized: AugmentedEvent<ApiType, [saleStart: u32, leadinLength: u32, startPrice: u128, endPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16], {
919
935
  saleStart: u32;
920
936
  leadinLength: u32;
921
937
  startPrice: u128;
922
- regularPrice: u128;
938
+ endPrice: u128;
923
939
  regionBegin: u32;
924
940
  regionEnd: u32;
925
941
  idealCoresSold: u16;
@@ -2575,6 +2591,14 @@ declare module '@polkadot/api-base/types/events' {
2575
2591
  creator: AccountId32;
2576
2592
  owner: AccountId32;
2577
2593
  }>;
2594
+ /**
2595
+ * Some assets were deposited (e.g. for transaction fees).
2596
+ **/
2597
+ Deposited: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], {
2598
+ assetId: u32;
2599
+ who: AccountId32;
2600
+ amount: u128;
2601
+ }>;
2578
2602
  /**
2579
2603
  * An asset class was destroyed.
2580
2604
  **/
@@ -2676,6 +2700,14 @@ declare module '@polkadot/api-base/types/events' {
2676
2700
  destination: AccountId32;
2677
2701
  amount: u128;
2678
2702
  }>;
2703
+ /**
2704
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
2705
+ **/
2706
+ Withdrawn: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], {
2707
+ assetId: u32;
2708
+ who: AccountId32;
2709
+ amount: u128;
2710
+ }>;
2679
2711
  /**
2680
2712
  * Generic event
2681
2713
  **/
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
4
4
  import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
7
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
8
8
  import type { Observable } from '@polkadot/types/types';
9
9
  export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
10
10
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -396,13 +396,6 @@ declare module '@polkadot/api-base/types/storage' {
396
396
  [key: string]: QueryableStorageEntry<ApiType>;
397
397
  };
398
398
  broker: {
399
- /**
400
- * Records of allowed renewals.
401
- **/
402
- allowedRenewals: AugmentedQuery<ApiType, (arg: PalletBrokerAllowedRenewalId | {
403
- core?: any;
404
- when?: any;
405
- } | string | Uint8Array) => Observable<Option<PalletBrokerAllowedRenewalRecord>>, [PalletBrokerAllowedRenewalId]> & QueryableStorageEntry<ApiType, [PalletBrokerAllowedRenewalId]>;
406
399
  /**
407
400
  * The current configuration of this pallet.
408
401
  **/
@@ -431,6 +424,15 @@ declare module '@polkadot/api-base/types/storage' {
431
424
  * The Polkadot Core legacy leases.
432
425
  **/
433
426
  leases: AugmentedQuery<ApiType, () => Observable<Vec<PalletBrokerLeaseRecordItem>>, []> & QueryableStorageEntry<ApiType, []>;
427
+ /**
428
+ * Records of potential renewals.
429
+ *
430
+ * Renewals will only actually be allowed if `CompletionStatus` is actually `Complete`.
431
+ **/
432
+ potentialRenewals: AugmentedQuery<ApiType, (arg: PalletBrokerPotentialRenewalId | {
433
+ core?: any;
434
+ when?: any;
435
+ } | string | Uint8Array) => Observable<Option<PalletBrokerPotentialRenewalRecord>>, [PalletBrokerPotentialRenewalId]> & QueryableStorageEntry<ApiType, [PalletBrokerPotentialRenewalId]>;
434
436
  /**
435
437
  * The current (unassigned or provisionally assigend) Regions.
436
438
  **/
@@ -1440,8 +1442,6 @@ declare module '@polkadot/api-base/types/storage' {
1440
1442
  **/
1441
1443
  parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | {
1442
1444
  Storage: any;
1443
- } | {
1444
- Contracts: any;
1445
1445
  } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
1446
1446
  /**
1447
1447
  * Generic query
@@ -1917,6 +1917,16 @@ declare module '@polkadot/api-base/types/storage' {
1917
1917
  * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
1918
1918
  **/
1919
1919
  currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1920
+ /**
1921
+ * Indices of validators that have offended in the active era. The offenders are disabled for a
1922
+ * whole era. For this reason they are kept here - only staking pallet knows about eras. The
1923
+ * implementor of [`DisablingStrategy`] defines if a validator should be disabled which
1924
+ * implicitly means that the implementor also controls the max number of disabled validators.
1925
+ *
1926
+ * The vec is always kept sorted so that we can find whether a given validator has previously
1927
+ * offended using binary search.
1928
+ **/
1929
+ disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1920
1930
  /**
1921
1931
  * Rewards for the last [`Config::HistoryDepth`] eras.
1922
1932
  * If reward hasn't been set or has been removed then 0 reward is returned.
@@ -2085,18 +2095,6 @@ declare module '@polkadot/api-base/types/storage' {
2085
2095
  * All slashing events on nominators, mapped by era to the highest slash value of the era.
2086
2096
  **/
2087
2097
  nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
2088
- /**
2089
- * Indices of validators that have offended in the active era and whether they are currently
2090
- * disabled.
2091
- *
2092
- * This value should be a superset of disabled validators since not all offences lead to the
2093
- * validator being disabled (if there was no slash). This is needed to track the percentage of
2094
- * validators that have offended in the current era, ensuring a new era is forced if
2095
- * `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
2096
- * whether a given validator has previously offended using binary search. It gets cleared when
2097
- * the era ends.
2098
- **/
2099
- offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
2100
2098
  /**
2101
2099
  * Where the reward payment should be made. Keyed by stash.
2102
2100
  *
package/substrate/tx.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
4
4
  import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
8
8
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
9
9
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
10
10
  export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -1282,6 +1282,16 @@ declare module '@polkadot/api-base/types/submittable' {
1282
1282
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
1283
1283
  };
1284
1284
  balances: {
1285
+ /**
1286
+ * Burn the specified liquid free balance from the origin account.
1287
+ *
1288
+ * If the origin's account ends up below the existential deposit as a result
1289
+ * of the burn and `keep_alive` is false, the account will be reaped.
1290
+ *
1291
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
1292
+ * this `burn` operation will reduce total issuance by the amount _burned_.
1293
+ **/
1294
+ burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool]>;
1285
1295
  /**
1286
1296
  * Adjust the total issuance in a saturating way.
1287
1297
  *
@@ -1437,14 +1447,14 @@ declare module '@polkadot/api-base/types/submittable' {
1437
1447
  * against the extracted offender. If both are valid, the offence
1438
1448
  * will be reported.
1439
1449
  **/
1440
- reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | {
1450
+ reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
1441
1451
  first?: any;
1442
1452
  second?: any;
1443
1453
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
1444
1454
  session?: any;
1445
1455
  trieNodes?: any;
1446
1456
  validatorCount?: any;
1447
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
1457
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
1448
1458
  /**
1449
1459
  * Report voter equivocation/misbehavior. This method will verify the
1450
1460
  * equivocation proof and validate the given key ownership proof
@@ -1456,14 +1466,14 @@ declare module '@polkadot/api-base/types/submittable' {
1456
1466
  * if the block author is defined it will be defined as the equivocation
1457
1467
  * reporter.
1458
1468
  **/
1459
- reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | {
1469
+ reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
1460
1470
  first?: any;
1461
1471
  second?: any;
1462
1472
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
1463
1473
  session?: any;
1464
1474
  trieNodes?: any;
1465
1475
  validatorCount?: any;
1466
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
1476
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
1467
1477
  /**
1468
1478
  * Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the
1469
1479
  * future.
@@ -1798,14 +1808,14 @@ declare module '@polkadot/api-base/types/submittable' {
1798
1808
  * Begin the Bulk Coretime sales rotation.
1799
1809
  *
1800
1810
  * - `origin`: Must be Root or pass `AdminOrigin`.
1801
- * - `initial_price`: The price of Bulk Coretime in the first sale.
1811
+ * - `end_price`: The price after the leadin period of Bulk Coretime in the first sale.
1802
1812
  * - `extra_cores`: Number of extra cores that should be requested on top of the cores
1803
1813
  * required for `Reservations` and `Leases`.
1804
1814
  *
1805
1815
  * This will call [`Self::request_core_count`] internally to set the correct core count on
1806
1816
  * the relay chain.
1807
1817
  **/
1808
- startSales: AugmentedSubmittable<(initialPrice: u128 | AnyNumber | Uint8Array, extraCores: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u16]>;
1818
+ startSales: AugmentedSubmittable<(endPrice: u128 | AnyNumber | Uint8Array, extraCores: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u16]>;
1809
1819
  swapLeases: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, other: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
1810
1820
  /**
1811
1821
  * Transfer a Bulk Coretime Region to a new owner.
@@ -5058,6 +5068,26 @@ declare module '@polkadot/api-base/types/submittable' {
5058
5068
  * pool by either topping up the deficit or claiming the excess.
5059
5069
  **/
5060
5070
  adjustPoolDeposit: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5071
+ /**
5072
+ * Apply a pending slash on a member.
5073
+ *
5074
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
5075
+ * [`adapter::StakeStrategyType::Delegate`].
5076
+ *
5077
+ * This call can be dispatched permissionlessly (i.e. by any account). If the member has
5078
+ * slash to be applied, caller may be rewarded with the part of the slash.
5079
+ **/
5080
+ applySlash: AugmentedSubmittable<(memberAccount: MultiAddress | {
5081
+ Id: any;
5082
+ } | {
5083
+ Index: any;
5084
+ } | {
5085
+ Raw: any;
5086
+ } | {
5087
+ Address32: any;
5088
+ } | {
5089
+ Address20: any;
5090
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
5061
5091
  /**
5062
5092
  * Bond `extra` more funds from `origin` into the pool to which they already belong.
5063
5093
  *
@@ -5245,6 +5275,40 @@ declare module '@polkadot/api-base/types/submittable' {
5245
5275
  * * Only a pool with [`PoolState::Open`] can be joined
5246
5276
  **/
5247
5277
  join: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
5278
+ /**
5279
+ * Migrates delegated funds from the pool account to the `member_account`.
5280
+ *
5281
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
5282
+ * [`adapter::StakeStrategyType::Delegate`].
5283
+ *
5284
+ * This is a permission-less call and refunds any fee if claim is successful.
5285
+ *
5286
+ * If the pool has migrated to delegation based staking, the staked tokens of pool members
5287
+ * can be moved and held in their own account. See [`adapter::DelegateStake`]
5288
+ **/
5289
+ migrateDelegation: AugmentedSubmittable<(memberAccount: MultiAddress | {
5290
+ Id: any;
5291
+ } | {
5292
+ Index: any;
5293
+ } | {
5294
+ Raw: any;
5295
+ } | {
5296
+ Address32: any;
5297
+ } | {
5298
+ Address20: any;
5299
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
5300
+ /**
5301
+ * Migrate pool from [`adapter::StakeStrategyType::Transfer`] to
5302
+ * [`adapter::StakeStrategyType::Delegate`].
5303
+ *
5304
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
5305
+ * [`adapter::StakeStrategyType::Delegate`].
5306
+ *
5307
+ * This call can be dispatched permissionlessly, and refunds any fee if successful.
5308
+ *
5309
+ * If the pool has already migrated to delegation based staking, this call will fail.
5310
+ **/
5311
+ migratePoolToDelegateStake: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5248
5312
  /**
5249
5313
  * Nominate on behalf of the pool.
5250
5314
  *
@@ -5477,7 +5541,10 @@ declare module '@polkadot/api-base/types/submittable' {
5477
5541
  *
5478
5542
  * # Note
5479
5543
  *
5480
- * If the target is the depositor, the pool will be destroyed.
5544
+ * - If the target is the depositor, the pool will be destroyed.
5545
+ * - If the pool has any pending slash, we also try to slash the member before letting them
5546
+ * withdraw. This calculation adds some weight overhead and is only defensive. In reality,
5547
+ * pool slashes must have been already applied via permissionless [`Call::apply_slash`].
5481
5548
  **/
5482
5549
  withdrawUnbonded: AugmentedSubmittable<(memberAccount: MultiAddress | {
5483
5550
  Id: any;
@@ -5504,8 +5571,6 @@ declare module '@polkadot/api-base/types/submittable' {
5504
5571
  **/
5505
5572
  setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | {
5506
5573
  Storage: any;
5507
- } | {
5508
- Contracts: any;
5509
5574
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
5510
5575
  /**
5511
5576
  * Generic tx
@@ -7735,7 +7800,8 @@ declare module '@polkadot/api-base/types/submittable' {
7735
7800
  * - Three extra DB entries.
7736
7801
  *
7737
7802
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
7738
- * unless the `origin` falls below _existential deposit_ and gets removed as dust.
7803
+ * unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed
7804
+ * as dust.
7739
7805
  **/
7740
7806
  bond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | {
7741
7807
  Staked: any;
@@ -7986,6 +8052,7 @@ declare module '@polkadot/api-base/types/submittable' {
7986
8052
  *
7987
8053
  * 1. the `total_balance` of the stash is below existential deposit.
7988
8054
  * 2. or, the `ledger.total` of the stash is below existential deposit.
8055
+ * 3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero.
7989
8056
  *
7990
8057
  * The former can happen in cases like a slash; the latter when a fully unbonded account
7991
8058
  * is still receiving staking rewards in `RewardDestination::Staked`.