@polkadot/api-augment 11.2.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.2.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.2.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.2.1",
215
- "@polkadot/rpc-augment": "11.2.1",
216
- "@polkadot/types": "11.2.1",
217
- "@polkadot/types-augment": "11.2.1",
218
- "@polkadot/types-codec": "11.2.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.2.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
  **/
@@ -740,13 +740,6 @@ declare module '@polkadot/api-base/types/events' {
740
740
  [key: string]: AugmentedEvent<ApiType>;
741
741
  };
742
742
  broker: {
743
- /**
744
- * Some historical Instantaneous Core Pool payment record has been dropped.
745
- **/
746
- AllowedRenewalDropped: AugmentedEvent<ApiType, [when: u32, core: u16], {
747
- when: u32;
748
- core: u16;
749
- }>;
750
743
  /**
751
744
  * A Region has been assigned to a particular task.
752
745
  **/
@@ -855,6 +848,13 @@ declare module '@polkadot/api-base/types/events' {
855
848
  regionId: PalletBrokerRegionId;
856
849
  duration: u32;
857
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
+ }>;
858
858
  /**
859
859
  * A Region of Bulk Coretime has been purchased.
860
860
  **/
@@ -931,11 +931,11 @@ declare module '@polkadot/api-base/types/events' {
931
931
  /**
932
932
  * A new sale has been initialized.
933
933
  **/
934
- 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], {
935
935
  saleStart: u32;
936
936
  leadinLength: u32;
937
937
  startPrice: u128;
938
- regularPrice: u128;
938
+ endPrice: u128;
939
939
  regionBegin: u32;
940
940
  regionEnd: u32;
941
941
  idealCoresSold: u16;
@@ -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
package/substrate/tx.d.ts CHANGED
@@ -1808,14 +1808,14 @@ declare module '@polkadot/api-base/types/submittable' {
1808
1808
  * Begin the Bulk Coretime sales rotation.
1809
1809
  *
1810
1810
  * - `origin`: Must be Root or pass `AdminOrigin`.
1811
- * - `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.
1812
1812
  * - `extra_cores`: Number of extra cores that should be requested on top of the cores
1813
1813
  * required for `Reservations` and `Leases`.
1814
1814
  *
1815
1815
  * This will call [`Self::request_core_count`] internally to set the correct core count on
1816
1816
  * the relay chain.
1817
1817
  **/
1818
- 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]>;
1819
1819
  swapLeases: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, other: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
1820
1820
  /**
1821
1821
  * Transfer a Bulk Coretime Region to a new owner.
@@ -5068,6 +5068,26 @@ declare module '@polkadot/api-base/types/submittable' {
5068
5068
  * pool by either topping up the deficit or claiming the excess.
5069
5069
  **/
5070
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]>;
5071
5091
  /**
5072
5092
  * Bond `extra` more funds from `origin` into the pool to which they already belong.
5073
5093
  *
@@ -5255,6 +5275,40 @@ declare module '@polkadot/api-base/types/submittable' {
5255
5275
  * * Only a pool with [`PoolState::Open`] can be joined
5256
5276
  **/
5257
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]>;
5258
5312
  /**
5259
5313
  * Nominate on behalf of the pool.
5260
5314
  *
@@ -5487,7 +5541,10 @@ declare module '@polkadot/api-base/types/submittable' {
5487
5541
  *
5488
5542
  * # Note
5489
5543
  *
5490
- * 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`].
5491
5548
  **/
5492
5549
  withdrawUnbonded: AugmentedSubmittable<(memberAccount: MultiAddress | {
5493
5550
  Id: any;
@@ -5514,8 +5571,6 @@ declare module '@polkadot/api-base/types/submittable' {
5514
5571
  **/
5515
5572
  setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | {
5516
5573
  Storage: any;
5517
- } | {
5518
- Contracts: any;
5519
5574
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
5520
5575
  /**
5521
5576
  * Generic tx