@polkadot/api-augment 9.10.5 → 9.11.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.
package/base.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
1
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  // for the API, we decorate not only the endpoints, but all types
package/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
1
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import "./substrate/index.js";
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
  var _packageInfo = require("@polkadot/api-base/cjs/packageInfo");
8
8
  var _packageInfo2 = require("@polkadot/types/cjs/packageInfo");
9
9
  var _packageInfo3 = require("@polkadot/types-codec/cjs/packageInfo");
10
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
10
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
  var _default = [_packageInfo.packageInfo, _packageInfo2.packageInfo, _packageInfo3.packageInfo];
13
13
  exports.default = _default;
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  var _util = require("@polkadot/util");
5
5
  var _detectOther = _interopRequireDefault(require("./detectOther"));
6
6
  var _packageInfo = require("./packageInfo");
7
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
7
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
8
8
  // SPDX-License-Identifier: Apache-2.0
9
9
 
10
10
  // Do not edit, auto-generated by @polkadot/dev
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.packageInfo = void 0;
7
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
7
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
8
8
  // SPDX-License-Identifier: Apache-2.0
9
9
 
10
10
  // Do not edit, auto-generated by @polkadot/dev
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@polkadot/api-augment',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '9.10.5'
16
+ version: '9.11.1'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
package/detectOther.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
1
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
package/detectPackage.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
1
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  // Do not edit, auto-generated by @polkadot/dev
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
1
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import "./detectPackage.js";
@@ -2146,6 +2146,13 @@ declare module '@polkadot/api-base/types/events' {
2146
2146
  Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], {
2147
2147
  budgetRemaining: u128;
2148
2148
  }>;
2149
+ /**
2150
+ * The inactive funds of the pallet have been updated.
2151
+ **/
2152
+ UpdatedInactive: AugmentedEvent<ApiType, [reactivated: u128, deactivated: u128], {
2153
+ reactivated: u128;
2154
+ deactivated: u128;
2155
+ }>;
2149
2156
  /**
2150
2157
  * Generic event
2151
2158
  **/
package/kusama/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
1
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import "../base.js";
package/kusama/query.d.ts CHANGED
@@ -5,7 +5,7 @@ import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16
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, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, 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, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, 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, 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, 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 type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
11
11
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -1854,13 +1854,6 @@ declare module '@polkadot/api-base/types/storage' {
1854
1854
  * as well as how much reward has been paid out.
1855
1855
  **/
1856
1856
  spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
1857
- /**
1858
- * True if network has been upgraded to this version.
1859
- * Storage version of the pallet.
1860
- *
1861
- * This is set to v7.0.0 for new networks.
1862
- **/
1863
- storageVersion: AugmentedQuery<ApiType, () => Observable<PalletStakingReleases>, []> & QueryableStorageEntry<ApiType, []>;
1864
1857
  /**
1865
1858
  * All unapplied slashes that are queued for later.
1866
1859
  **/
@@ -2060,7 +2053,7 @@ declare module '@polkadot/api-base/types/storage' {
2060
2053
  /**
2061
2054
  * The amount which has been reported as inactive to Currency.
2062
2055
  **/
2063
- inactive: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
2056
+ deactivated: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
2064
2057
  /**
2065
2058
  * Number of proposals that have been made.
2066
2059
  **/
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
1
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import '@polkadot/types-augment/registry/substrate';
package/kusama/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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
- import type { AccountId32, Call, H256, MultiAddress, Percent } from '@polkadot/types/interfaces/runtime';
7
+ import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
8
  import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
9
9
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
10
10
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -3340,9 +3340,12 @@ declare module '@polkadot/api-base/types/submittable' {
3340
3340
  * # Note
3341
3341
  *
3342
3342
  * If there are too many unlocking chunks to unbond with the pool account,
3343
- * [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks. If
3344
- * there are too many unlocking chunks, the result of this call will likely be the
3345
- * `NoMoreChunks` error from the staking system.
3343
+ * [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks.
3344
+ * The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]
3345
+ * to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks
3346
+ * are available). However, it may not be possible to release the current unlocking chunks,
3347
+ * in which case, the result of this call will likely be the `NoMoreChunks` error from the
3348
+ * staking system.
3346
3349
  **/
3347
3350
  unbond: AugmentedSubmittable<(memberAccount: MultiAddress | {
3348
3351
  Id: any;
@@ -4895,7 +4898,7 @@ declare module '@polkadot/api-base/types/submittable' {
4895
4898
  /**
4896
4899
  * Cancel enactment of a deferred slash.
4897
4900
  *
4898
- * Can be called by the `T::SlashCancelOrigin`.
4901
+ * Can be called by the `T::AdminOrigin`.
4899
4902
  *
4900
4903
  * Parameters: era and indices of the slashes for that era to kill.
4901
4904
  **/
@@ -5160,6 +5163,13 @@ declare module '@polkadot/api-base/types/submittable' {
5160
5163
  * The dispatch origin must be Root.
5161
5164
  **/
5162
5165
  setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
5166
+ /**
5167
+ * Sets the minimum amount of commission that each validators must maintain.
5168
+ *
5169
+ * This call has lower privilege requirements than `set_staking_config` and can be called
5170
+ * by the `T::AdminOrigin`. Root can always call this.
5171
+ **/
5172
+ setMinCommission: AugmentedSubmittable<(updated: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
5163
5173
  /**
5164
5174
  * (Re-)set the payment target for a controller.
5165
5175
  *
@@ -5267,8 +5277,8 @@ declare module '@polkadot/api-base/types/submittable' {
5267
5277
  * the funds out of management ready for transfer.
5268
5278
  *
5269
5279
  * No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)
5270
- * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
5271
- * to be called first to remove some of the chunks (if possible).
5280
+ * can co-exists at the same time. If there are no unlocking chunks slots available
5281
+ * [`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible).
5272
5282
  *
5273
5283
  * If a user encounters the `InsufficientBond` error when calling this extrinsic,
5274
5284
  * they should call `chill` first in order to free up their bonded funds.
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "9.10.5",
23
+ "version": "9.11.1",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -185,12 +185,12 @@
185
185
  }
186
186
  },
187
187
  "dependencies": {
188
- "@babel/runtime": "^7.20.6",
189
- "@polkadot/api-base": "9.10.5",
190
- "@polkadot/rpc-augment": "9.10.5",
191
- "@polkadot/types": "9.10.5",
192
- "@polkadot/types-augment": "9.10.5",
193
- "@polkadot/types-codec": "9.10.5",
194
- "@polkadot/util": "^10.2.1"
188
+ "@babel/runtime": "^7.20.7",
189
+ "@polkadot/api-base": "9.11.1",
190
+ "@polkadot/rpc-augment": "9.11.1",
191
+ "@polkadot/types": "9.11.1",
192
+ "@polkadot/types-augment": "9.11.1",
193
+ "@polkadot/types-codec": "9.11.1",
194
+ "@polkadot/util": "^10.2.3"
195
195
  }
196
196
  }
package/packageInfo.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
1
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  // Do not edit, auto-generated by @polkadot/dev
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@polkadot/api-augment',
8
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
9
9
  type: 'esm',
10
- version: '9.10.5'
10
+ version: '9.11.1'
11
11
  };
@@ -1588,6 +1588,13 @@ declare module '@polkadot/api-base/types/events' {
1588
1588
  Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], {
1589
1589
  budgetRemaining: u128;
1590
1590
  }>;
1591
+ /**
1592
+ * The inactive funds of the pallet have been updated.
1593
+ **/
1594
+ UpdatedInactive: AugmentedEvent<ApiType, [reactivated: u128, deactivated: u128], {
1595
+ reactivated: u128;
1596
+ deactivated: u128;
1597
+ }>;
1591
1598
  /**
1592
1599
  * Generic event
1593
1600
  **/
package/polkadot/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
1
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import "../base.js";
@@ -5,7 +5,7 @@ import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32
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, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, 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, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, 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 type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
11
11
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -1588,13 +1588,6 @@ declare module '@polkadot/api-base/types/storage' {
1588
1588
  * as well as how much reward has been paid out.
1589
1589
  **/
1590
1590
  spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
1591
- /**
1592
- * True if network has been upgraded to this version.
1593
- * Storage version of the pallet.
1594
- *
1595
- * This is set to v7.0.0 for new networks.
1596
- **/
1597
- storageVersion: AugmentedQuery<ApiType, () => Observable<PalletStakingReleases>, []> & QueryableStorageEntry<ApiType, []>;
1598
1591
  /**
1599
1592
  * All unapplied slashes that are queued for later.
1600
1593
  **/
@@ -1794,7 +1787,7 @@ declare module '@polkadot/api-base/types/storage' {
1794
1787
  /**
1795
1788
  * The amount which has been reported as inactive to Currency.
1796
1789
  **/
1797
- inactive: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1790
+ deactivated: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1798
1791
  /**
1799
1792
  * Number of proposals that have been made.
1800
1793
  **/
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-augment authors & contributors
1
+ // Copyright 2017-2023 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import '@polkadot/types-augment/registry/substrate';
package/polkadot/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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
- import type { AccountId32, Call, H256, MultiAddress, Percent } from '@polkadot/types/interfaces/runtime';
7
+ import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
8
  import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
9
9
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
10
10
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -2752,9 +2752,12 @@ declare module '@polkadot/api-base/types/submittable' {
2752
2752
  * # Note
2753
2753
  *
2754
2754
  * If there are too many unlocking chunks to unbond with the pool account,
2755
- * [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks. If
2756
- * there are too many unlocking chunks, the result of this call will likely be the
2757
- * `NoMoreChunks` error from the staking system.
2755
+ * [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks.
2756
+ * The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]
2757
+ * to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks
2758
+ * are available). However, it may not be possible to release the current unlocking chunks,
2759
+ * in which case, the result of this call will likely be the `NoMoreChunks` error from the
2760
+ * staking system.
2758
2761
  **/
2759
2762
  unbond: AugmentedSubmittable<(memberAccount: MultiAddress | {
2760
2763
  Id: any;
@@ -3604,7 +3607,7 @@ declare module '@polkadot/api-base/types/submittable' {
3604
3607
  /**
3605
3608
  * Cancel enactment of a deferred slash.
3606
3609
  *
3607
- * Can be called by the `T::SlashCancelOrigin`.
3610
+ * Can be called by the `T::AdminOrigin`.
3608
3611
  *
3609
3612
  * Parameters: era and indices of the slashes for that era to kill.
3610
3613
  **/
@@ -3869,6 +3872,13 @@ declare module '@polkadot/api-base/types/submittable' {
3869
3872
  * The dispatch origin must be Root.
3870
3873
  **/
3871
3874
  setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
3875
+ /**
3876
+ * Sets the minimum amount of commission that each validators must maintain.
3877
+ *
3878
+ * This call has lower privilege requirements than `set_staking_config` and can be called
3879
+ * by the `T::AdminOrigin`. Root can always call this.
3880
+ **/
3881
+ setMinCommission: AugmentedSubmittable<(updated: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
3872
3882
  /**
3873
3883
  * (Re-)set the payment target for a controller.
3874
3884
  *
@@ -3976,8 +3986,8 @@ declare module '@polkadot/api-base/types/submittable' {
3976
3986
  * the funds out of management ready for transfer.
3977
3987
  *
3978
3988
  * No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)
3979
- * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
3980
- * to be called first to remove some of the chunks (if possible).
3989
+ * can co-exists at the same time. If there are no unlocking chunks slots available
3990
+ * [`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible).
3981
3991
  *
3982
3992
  * If a user encounters the `InsufficientBond` error when calling this extrinsic,
3983
3993
  * they should call `chill` first in order to free up their bonded funds.
@@ -650,6 +650,65 @@ declare module '@polkadot/api-base/types/consts' {
650
650
  **/
651
651
  [key: string]: Codec;
652
652
  };
653
+ nfts: {
654
+ /**
655
+ * The maximum approvals an item could have.
656
+ **/
657
+ approvalsLimit: u32 & AugmentedConst<ApiType>;
658
+ /**
659
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
660
+ **/
661
+ attributeDepositBase: u128 & AugmentedConst<ApiType>;
662
+ /**
663
+ * The basic amount of funds that must be reserved for collection.
664
+ **/
665
+ collectionDeposit: u128 & AugmentedConst<ApiType>;
666
+ /**
667
+ * The additional funds that must be reserved for the number of bytes store in metadata,
668
+ * either "normal" metadata or attribute metadata.
669
+ **/
670
+ depositPerByte: u128 & AugmentedConst<ApiType>;
671
+ /**
672
+ * Disables some of pallet's features.
673
+ **/
674
+ features: u64 & AugmentedConst<ApiType>;
675
+ /**
676
+ * The maximum attributes approvals an item could have.
677
+ **/
678
+ itemAttributesApprovalsLimit: u32 & AugmentedConst<ApiType>;
679
+ /**
680
+ * The basic amount of funds that must be reserved for an item.
681
+ **/
682
+ itemDeposit: u128 & AugmentedConst<ApiType>;
683
+ /**
684
+ * The maximum length of an attribute key.
685
+ **/
686
+ keyLimit: u32 & AugmentedConst<ApiType>;
687
+ /**
688
+ * The max duration in blocks for deadlines.
689
+ **/
690
+ maxDeadlineDuration: u32 & AugmentedConst<ApiType>;
691
+ /**
692
+ * The max number of tips a user could send.
693
+ **/
694
+ maxTips: u32 & AugmentedConst<ApiType>;
695
+ /**
696
+ * The basic amount of funds that must be reserved when adding metadata to your item.
697
+ **/
698
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
699
+ /**
700
+ * The maximum length of data stored on-chain.
701
+ **/
702
+ stringLimit: u32 & AugmentedConst<ApiType>;
703
+ /**
704
+ * The maximum length of an attribute value.
705
+ **/
706
+ valueLimit: u32 & AugmentedConst<ApiType>;
707
+ /**
708
+ * Generic const
709
+ **/
710
+ [key: string]: Codec;
711
+ };
653
712
  nis: {
654
713
  /**
655
714
  * The base period for the duration queues. This is the common multiple across all
@@ -738,6 +797,20 @@ declare module '@polkadot/api-base/types/consts' {
738
797
  **/
739
798
  [key: string]: Codec;
740
799
  };
800
+ preimage: {
801
+ /**
802
+ * The base deposit for placing a preimage on chain.
803
+ **/
804
+ baseDeposit: u128 & AugmentedConst<ApiType>;
805
+ /**
806
+ * The per-byte deposit for placing a preimage on chain.
807
+ **/
808
+ byteDeposit: u128 & AugmentedConst<ApiType>;
809
+ /**
810
+ * Generic const
811
+ **/
812
+ [key: string]: Codec;
813
+ };
741
814
  proxy: {
742
815
  /**
743
816
  * The base amount of currency needed to reserve for creating an announcement.