@dedot/chaintypes 0.60.0 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/kusama/types.d.ts CHANGED
@@ -2157,7 +2157,16 @@ export type PalletStakingPalletCall =
2157
2157
  maybeTotal?: bigint | undefined;
2158
2158
  maybeUnlocking?: Array<PalletStakingUnlockChunk> | undefined;
2159
2159
  };
2160
- };
2160
+ }
2161
+ /**
2162
+ * Adjusts the staking ledger by withdrawing any excess staked amount.
2163
+ *
2164
+ * This function corrects cases where a user's recorded stake in the ledger
2165
+ * exceeds their actual staked funds. This situation can arise due to cases such as
2166
+ * external slashing by another pallet, leading to an inconsistency between the ledger
2167
+ * and the actual stake.
2168
+ **/
2169
+ | { name: 'WithdrawOverstake'; params: { stash: AccountId32 } };
2161
2170
 
2162
2171
  export type PalletStakingPalletCallLike =
2163
2172
  /**
@@ -2603,7 +2612,16 @@ export type PalletStakingPalletCallLike =
2603
2612
  maybeTotal?: bigint | undefined;
2604
2613
  maybeUnlocking?: Array<PalletStakingUnlockChunk> | undefined;
2605
2614
  };
2606
- };
2615
+ }
2616
+ /**
2617
+ * Adjusts the staking ledger by withdrawing any excess staked amount.
2618
+ *
2619
+ * This function corrects cases where a user's recorded stake in the ledger
2620
+ * exceeds their actual staked funds. This situation can arise due to cases such as
2621
+ * external slashing by another pallet, leading to an inconsistency between the ledger
2622
+ * and the actual stake.
2623
+ **/
2624
+ | { name: 'WithdrawOverstake'; params: { stash: AccountId32Like } };
2607
2625
 
2608
2626
  export type PalletStakingPalletConfigOp = { type: 'Noop' } | { type: 'Set'; value: bigint } | { type: 'Remove' };
2609
2627
 
@@ -7037,8 +7055,9 @@ export type PalletBagsListCallLike =
7037
7055
  **/
7038
7056
  export type PalletNominationPoolsCall =
7039
7057
  /**
7040
- * Stake funds with a pool. The amount to bond is transferred from the member to the pool
7041
- * account and immediately increases the pools bond.
7058
+ * Stake funds with a pool. The amount to bond is delegated (or transferred based on
7059
+ * [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
7060
+ * increases the pool's bond.
7042
7061
  *
7043
7062
  * The method of transferring the amount to the pool account is determined by
7044
7063
  * [`adapter::StakeStrategyType`]. If the pool is configured to use
@@ -7393,8 +7412,9 @@ export type PalletNominationPoolsCall =
7393
7412
 
7394
7413
  export type PalletNominationPoolsCallLike =
7395
7414
  /**
7396
- * Stake funds with a pool. The amount to bond is transferred from the member to the pool
7397
- * account and immediately increases the pools bond.
7415
+ * Stake funds with a pool. The amount to bond is delegated (or transferred based on
7416
+ * [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
7417
+ * increases the pool's bond.
7398
7418
  *
7399
7419
  * The method of transferring the amount to the pool account is determined by
7400
7420
  * [`adapter::StakeStrategyType`]. If the pool is configured to use
@@ -13530,7 +13550,12 @@ export type PalletStakingPalletError =
13530
13550
  /**
13531
13551
  * Operation not allowed for virtual stakers.
13532
13552
  **/
13533
- | 'VirtualStakerNotAllowed';
13553
+ | 'VirtualStakerNotAllowed'
13554
+ /**
13555
+ * Account is restricted from participation in staking. This may happen if the account is
13556
+ * staking in another way already, such as via pool.
13557
+ **/
13558
+ | 'Restricted';
13534
13559
 
13535
13560
  export type SpStakingOffenceOffenceDetails = {
13536
13561
  offender: [AccountId32, SpStakingExposure];
@@ -14960,7 +14985,12 @@ export type PalletNominationPoolsError =
14960
14985
  /**
14961
14986
  * This call is not allowed in the current state of the pallet.
14962
14987
  **/
14963
- | { name: 'NotSupported' };
14988
+ | { name: 'NotSupported' }
14989
+ /**
14990
+ * Account is restricted from participation in pools. This may happen if the account is
14991
+ * staking in another way already.
14992
+ **/
14993
+ | { name: 'Restricted' };
14964
14994
 
14965
14995
  export type PalletNominationPoolsDefensiveError =
14966
14996
  | 'NotEnoughSpaceInUnbondPool'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.60.0",
3
+ "version": "0.62.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "d916eaf23ec3efd20071801017b42b9fd5e50d3c",
22
+ "gitHead": "66764e8f9ab8a8e289b80b64edd49c6765323564",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }