@polkadot/api-augment 9.4.2 → 9.5.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.
@@ -5,7 +5,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
5
5
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
7
  import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
- import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
9
9
  import type { Observable } from '@polkadot/types/types';
10
10
  export declare type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
11
11
  export declare type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -535,6 +535,35 @@ declare module '@polkadot/api-base/types/storage' {
535
535
  **/
536
536
  [key: string]: QueryableStorageEntry<ApiType>;
537
537
  };
538
+ fastUnstake: {
539
+ /**
540
+ * Counter for the related counted storage map
541
+ **/
542
+ counterForQueue: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
543
+ /**
544
+ * Number of eras to check per block.
545
+ *
546
+ * If set to 0, this pallet does absolutely nothing.
547
+ *
548
+ * Based on the amount of weight available at `on_idle`, up to this many eras of a single
549
+ * nominator might be checked.
550
+ **/
551
+ erasToCheckPerBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
552
+ /**
553
+ * The current "head of the queue" being unstaked.
554
+ **/
555
+ head: AugmentedQuery<ApiType, () => Observable<Option<PalletFastUnstakeUnstakeRequest>>, []> & QueryableStorageEntry<ApiType, []>;
556
+ /**
557
+ * The map of all accounts wishing to be unstaked.
558
+ *
559
+ * Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
560
+ **/
561
+ queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
562
+ /**
563
+ * Generic query
564
+ **/
565
+ [key: string]: QueryableStorageEntry<ApiType>;
566
+ };
538
567
  grandpa: {
539
568
  /**
540
569
  * The number of changes (both in terms of keys and underlying economic responsibilities)
package/polkadot/tx.d.ts CHANGED
@@ -1612,6 +1612,49 @@ declare module '@polkadot/api-base/types/submittable' {
1612
1612
  **/
1613
1613
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
1614
1614
  };
1615
+ fastUnstake: {
1616
+ /**
1617
+ * Control the operation of this pallet.
1618
+ *
1619
+ * Dispatch origin must be signed by the [`Config::ControlOrigin`].
1620
+ **/
1621
+ control: AugmentedSubmittable<(uncheckedErasToCheck: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1622
+ /**
1623
+ * Deregister oneself from the fast-unstake.
1624
+ *
1625
+ * This is useful if one is registered, they are still waiting, and they change their mind.
1626
+ *
1627
+ * Note that the associated stash is still fully unbonded and chilled as a consequence of
1628
+ * calling `register_fast_unstake`. This should probably be followed by a call to
1629
+ * `Staking::rebond`.
1630
+ **/
1631
+ deregister: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1632
+ /**
1633
+ * Register oneself for fast-unstake.
1634
+ *
1635
+ * The dispatch origin of this call must be signed by the controller account, similar to
1636
+ * `staking::unbond`.
1637
+ *
1638
+ * The stash associated with the origin must have no ongoing unlocking chunks. If
1639
+ * successful, this will fully unbond and chill the stash. Then, it will enqueue the stash
1640
+ * to be checked in further blocks.
1641
+ *
1642
+ * If by the time this is called, the stash is actually eligible for fast-unstake, then
1643
+ * they are guaranteed to remain eligible, because the call will chill them as well.
1644
+ *
1645
+ * If the check works, the entire staking data is removed, i.e. the stash is fully
1646
+ * unstaked.
1647
+ *
1648
+ * If the check fails, the stash remains chilled and waiting for being unbonded as in with
1649
+ * the normal staking system, but they lose part of their unbonding chunks due to consuming
1650
+ * the chain's resources.
1651
+ **/
1652
+ registerFastUnstake: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1653
+ /**
1654
+ * Generic tx
1655
+ **/
1656
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1657
+ };
1615
1658
  grandpa: {
1616
1659
  /**
1617
1660
  * Note that the current authority set of the GRANDPA finality gadget has stalled.
@@ -2,8 +2,8 @@ import '@polkadot/api-base/types/consts';
2
2
  import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
3
  import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { Codec, ITuple } from '@polkadot/types-codec/types';
5
- import type { Perbill, Percent, Permill, Weight } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
5
+ import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
6
+ import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
7
  export declare type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
8
  declare module '@polkadot/api-base/types/consts' {
9
9
  interface AugmentedConsts<ApiType extends ApiTypes> {
@@ -203,7 +203,7 @@ declare module '@polkadot/api-base/types/consts' {
203
203
  *
204
204
  * This is only relevant for parachains. Set to zero in case of a standalone chain.
205
205
  **/
206
- contractAccessWeight: Weight & AugmentedConst<ApiType>;
206
+ contractAccessWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
207
207
  /**
208
208
  * The maximum number of contracts that can be pending for deletion.
209
209
  *
@@ -230,7 +230,7 @@ declare module '@polkadot/api-base/types/consts' {
230
230
  * weight that is left for transactions. See [`Self::DeletionQueueDepth`] for more
231
231
  * information about the deletion queue.
232
232
  **/
233
- deletionWeightLimit: Weight & AugmentedConst<ApiType>;
233
+ deletionWeightLimit: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
234
234
  /**
235
235
  * The amount of balance a caller has to pay for each byte of storage.
236
236
  *
@@ -361,7 +361,7 @@ declare module '@polkadot/api-base/types/consts' {
361
361
  maxElectingVoters: u32 & AugmentedConst<ApiType>;
362
362
  minerMaxLength: u32 & AugmentedConst<ApiType>;
363
363
  minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
364
- minerMaxWeight: Weight & AugmentedConst<ApiType>;
364
+ minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
365
365
  /**
366
366
  * The priority of the unsigned transaction submitted in the unsigned-phase
367
367
  **/
@@ -406,7 +406,7 @@ declare module '@polkadot/api-base/types/consts' {
406
406
  * this pallet), then [`MinerConfig::solution_weight`] is used to compare against
407
407
  * this value.
408
408
  **/
409
- signedMaxWeight: Weight & AugmentedConst<ApiType>;
409
+ signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
410
410
  /**
411
411
  * Duration of the signed phase.
412
412
  **/
@@ -810,7 +810,7 @@ declare module '@polkadot/api-base/types/consts' {
810
810
  * The maximum weight that may be scheduled per block for any dispatchables of less
811
811
  * priority than `schedule::HARD_DEADLINE`.
812
812
  **/
813
- maximumWeight: Weight & AugmentedConst<ApiType>;
813
+ maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
814
814
  /**
815
815
  * The maximum number of scheduled calls in the queue for a single block.
816
816
  * Not strictly enforced, but used for weight estimation.
@@ -888,8 +888,9 @@ declare module '@polkadot/api-base/types/consts' {
888
888
  *
889
889
  * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
890
890
  * item `StakingLedger.claimed_rewards`. Setting this value lower than
891
- * the existing value can lead to inconsistencies and will need to be
892
- * handled properly in a migration.
891
+ * the existing value can lead to inconsistencies in the
892
+ * `StakingLedger` and will need to be handled properly in a migration.
893
+ * The test `reducing_history_depth_abrupt` shows this effect.
893
894
  **/
894
895
  historyDepth: u32 & AugmentedConst<ApiType>;
895
896
  /**
@@ -904,8 +905,16 @@ declare module '@polkadot/api-base/types/consts' {
904
905
  **/
905
906
  maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
906
907
  /**
907
- * The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively
908
- * determines how many unique eras a staker may be unbonding in.
908
+ * The maximum number of `unlocking` chunks a [`StakingLedger`] can
909
+ * have. Effectively determines how many unique eras a staker may be
910
+ * unbonding in.
911
+ *
912
+ * Note: `MaxUnlockingChunks` is used as the upper bound for the
913
+ * `BoundedVec` item `StakingLedger.unlocking`. Setting this value
914
+ * lower than the existing value can lead to inconsistencies in the
915
+ * `StakingLedger` and will need to be handled properly in a runtime
916
+ * migration. The test `reducing_max_unlocking_chunks_abrupt` shows
917
+ * this effect.
909
918
  **/
910
919
  maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
911
920
  /**
@@ -891,6 +891,10 @@ declare module '@polkadot/api-base/types/errors' {
891
891
  * The bonded account has already been queued.
892
892
  **/
893
893
  AlreadyQueued: AugmentedError<ApiType>;
894
+ /**
895
+ * The call is not allowed at this point because the pallet is not active.
896
+ **/
897
+ CallNotAllowed: AugmentedError<ApiType>;
894
898
  /**
895
899
  * The provided Controller account was not found.
896
900
  *
@@ -923,9 +923,8 @@ declare module '@polkadot/api-base/types/events' {
923
923
  /**
924
924
  * A staker was unstaked.
925
925
  **/
926
- Unstaked: AugmentedEvent<ApiType, [stash: AccountId32, maybePoolId: Option<u32>, result: Result<Null, SpRuntimeDispatchError>], {
926
+ Unstaked: AugmentedEvent<ApiType, [stash: AccountId32, result: Result<Null, SpRuntimeDispatchError>], {
927
927
  stash: AccountId32;
928
- maybePoolId: Option<u32>;
929
928
  result: Result<Null, SpRuntimeDispatchError>;
930
929
  }>;
931
930
  /**
@@ -1837,40 +1836,60 @@ declare module '@polkadot/api-base/types/events' {
1837
1836
  * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
1838
1837
  * it will not be emitted for staking rewards when they are added to stake.
1839
1838
  **/
1840
- Bonded: AugmentedEvent<ApiType, [AccountId32, u128]>;
1839
+ Bonded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], {
1840
+ stash: AccountId32;
1841
+ amount: u128;
1842
+ }>;
1841
1843
  /**
1842
1844
  * An account has stopped participating as either a validator or nominator.
1843
- * \[stash\]
1844
1845
  **/
1845
- Chilled: AugmentedEvent<ApiType, [AccountId32]>;
1846
+ Chilled: AugmentedEvent<ApiType, [stash: AccountId32], {
1847
+ stash: AccountId32;
1848
+ }>;
1846
1849
  /**
1847
1850
  * The era payout has been set; the first balance is the validator-payout; the second is
1848
1851
  * the remainder from the maximum amount of reward.
1849
- * \[era_index, validator_payout, remainder\]
1850
1852
  **/
1851
- EraPaid: AugmentedEvent<ApiType, [u32, u128, u128]>;
1853
+ EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], {
1854
+ eraIndex: u32;
1855
+ validatorPayout: u128;
1856
+ remainder: u128;
1857
+ }>;
1852
1858
  /**
1853
- * A nominator has been kicked from a validator. \[nominator, stash\]
1859
+ * A nominator has been kicked from a validator.
1854
1860
  **/
1855
- Kicked: AugmentedEvent<ApiType, [AccountId32, AccountId32]>;
1861
+ Kicked: AugmentedEvent<ApiType, [nominator: AccountId32, stash: AccountId32], {
1862
+ nominator: AccountId32;
1863
+ stash: AccountId32;
1864
+ }>;
1856
1865
  /**
1857
1866
  * An old slashing report from a prior era was discarded because it could
1858
- * not be processed. \[session_index\]
1867
+ * not be processed.
1859
1868
  **/
1860
- OldSlashingReportDiscarded: AugmentedEvent<ApiType, [u32]>;
1869
+ OldSlashingReportDiscarded: AugmentedEvent<ApiType, [sessionIndex: u32], {
1870
+ sessionIndex: u32;
1871
+ }>;
1861
1872
  /**
1862
- * The stakers' rewards are getting paid. \[era_index, validator_stash\]
1873
+ * The stakers' rewards are getting paid.
1863
1874
  **/
1864
- PayoutStarted: AugmentedEvent<ApiType, [u32, AccountId32]>;
1875
+ PayoutStarted: AugmentedEvent<ApiType, [eraIndex: u32, validatorStash: AccountId32], {
1876
+ eraIndex: u32;
1877
+ validatorStash: AccountId32;
1878
+ }>;
1865
1879
  /**
1866
- * The nominator has been rewarded by this amount. \[stash, amount\]
1880
+ * The nominator has been rewarded by this amount.
1867
1881
  **/
1868
- Rewarded: AugmentedEvent<ApiType, [AccountId32, u128]>;
1882
+ Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], {
1883
+ stash: AccountId32;
1884
+ amount: u128;
1885
+ }>;
1869
1886
  /**
1870
1887
  * One staker (and potentially its nominators) has been slashed by the given amount.
1871
- * \[staker, amount\]
1872
1888
  **/
1873
- Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
1889
+ Slashed: AugmentedEvent<ApiType, [staker: AccountId32, amount: u128], {
1890
+ staker: AccountId32;
1891
+ amount: u128;
1892
+ }>;
1874
1893
  /**
1875
1894
  * A new set of stakers was elected.
1876
1895
  **/
@@ -1880,18 +1899,27 @@ declare module '@polkadot/api-base/types/events' {
1880
1899
  **/
1881
1900
  StakingElectionFailed: AugmentedEvent<ApiType, []>;
1882
1901
  /**
1883
- * An account has unbonded this amount. \[stash, amount\]
1902
+ * An account has unbonded this amount.
1884
1903
  **/
1885
- Unbonded: AugmentedEvent<ApiType, [AccountId32, u128]>;
1904
+ Unbonded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], {
1905
+ stash: AccountId32;
1906
+ amount: u128;
1907
+ }>;
1886
1908
  /**
1887
1909
  * A validator has set their preferences.
1888
1910
  **/
1889
- ValidatorPrefsSet: AugmentedEvent<ApiType, [AccountId32, PalletStakingValidatorPrefs]>;
1911
+ ValidatorPrefsSet: AugmentedEvent<ApiType, [stash: AccountId32, prefs: PalletStakingValidatorPrefs], {
1912
+ stash: AccountId32;
1913
+ prefs: PalletStakingValidatorPrefs;
1914
+ }>;
1890
1915
  /**
1891
1916
  * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
1892
- * from the unlocking queue. \[stash, amount\]
1917
+ * from the unlocking queue.
1893
1918
  **/
1894
- Withdrawn: AugmentedEvent<ApiType, [AccountId32, u128]>;
1919
+ Withdrawn: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], {
1920
+ stash: AccountId32;
1921
+ amount: u128;
1922
+ }>;
1895
1923
  /**
1896
1924
  * Generic event
1897
1925
  **/
@@ -653,10 +653,9 @@ declare module '@polkadot/api-base/types/storage' {
653
653
  /**
654
654
  * The map of all accounts wishing to be unstaked.
655
655
  *
656
- * Points the `AccountId` wishing to unstake to the optional `PoolId` they wish to join
657
- * thereafter.
656
+ * Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
658
657
  **/
659
- queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Option<u32>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
658
+ queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
660
659
  /**
661
660
  * Generic query
662
661
  **/
@@ -6,7 +6,7 @@ import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyO
6
6
  import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
7
7
  import type { BlockHash } from '@polkadot/types/interfaces/chain';
8
8
  import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
9
- import type { CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
9
+ import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
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';
@@ -122,7 +122,11 @@ declare module '@polkadot/api-base/types/calls' {
122
122
  /**
123
123
  * Instantiate a new contract.
124
124
  **/
125
- instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
125
+ instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: CodeSource | {
126
+ Upload: any;
127
+ } | {
128
+ Existing: any;
129
+ } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
126
130
  /**
127
131
  * Upload new code without instantiating a contract from it.
128
132
  **/