@dedot/chaintypes 0.60.0 → 0.61.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/errors.d.ts +12 -0
- package/kusama/index.d.ts +1 -1
- package/kusama/tx.d.ts +27 -2
- package/kusama/types.d.ts +38 -8
- package/package.json +2 -2
package/kusama/errors.d.ts
CHANGED
|
@@ -356,6 +356,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
356
356
|
**/
|
|
357
357
|
VirtualStakerNotAllowed: GenericPalletError<Rv>;
|
|
358
358
|
|
|
359
|
+
/**
|
|
360
|
+
* Account is restricted from participation in staking. This may happen if the account is
|
|
361
|
+
* staking in another way already, such as via pool.
|
|
362
|
+
**/
|
|
363
|
+
Restricted: GenericPalletError<Rv>;
|
|
364
|
+
|
|
359
365
|
/**
|
|
360
366
|
* Generic pallet error
|
|
361
367
|
**/
|
|
@@ -1928,6 +1934,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1928
1934
|
**/
|
|
1929
1935
|
NotSupported: GenericPalletError<Rv>;
|
|
1930
1936
|
|
|
1937
|
+
/**
|
|
1938
|
+
* Account is restricted from participation in pools. This may happen if the account is
|
|
1939
|
+
* staking in another way already.
|
|
1940
|
+
**/
|
|
1941
|
+
Restricted: GenericPalletError<Rv>;
|
|
1942
|
+
|
|
1931
1943
|
/**
|
|
1932
1944
|
* Generic pallet error
|
|
1933
1945
|
**/
|
package/kusama/index.d.ts
CHANGED
package/kusama/tx.d.ts
CHANGED
|
@@ -1848,6 +1848,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1848
1848
|
>
|
|
1849
1849
|
>;
|
|
1850
1850
|
|
|
1851
|
+
/**
|
|
1852
|
+
* Adjusts the staking ledger by withdrawing any excess staked amount.
|
|
1853
|
+
*
|
|
1854
|
+
* This function corrects cases where a user's recorded stake in the ledger
|
|
1855
|
+
* exceeds their actual staked funds. This situation can arise due to cases such as
|
|
1856
|
+
* external slashing by another pallet, leading to an inconsistency between the ledger
|
|
1857
|
+
* and the actual stake.
|
|
1858
|
+
*
|
|
1859
|
+
* @param {AccountId32Like} stash
|
|
1860
|
+
**/
|
|
1861
|
+
withdrawOverstake: GenericTxCall<
|
|
1862
|
+
Rv,
|
|
1863
|
+
(stash: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
1864
|
+
Rv,
|
|
1865
|
+
{
|
|
1866
|
+
pallet: 'Staking';
|
|
1867
|
+
palletCall: {
|
|
1868
|
+
name: 'WithdrawOverstake';
|
|
1869
|
+
params: { stash: AccountId32Like };
|
|
1870
|
+
};
|
|
1871
|
+
}
|
|
1872
|
+
>
|
|
1873
|
+
>;
|
|
1874
|
+
|
|
1851
1875
|
/**
|
|
1852
1876
|
* Generic pallet tx call
|
|
1853
1877
|
**/
|
|
@@ -7073,8 +7097,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7073
7097
|
**/
|
|
7074
7098
|
nominationPools: {
|
|
7075
7099
|
/**
|
|
7076
|
-
* Stake funds with a pool. The amount to bond is
|
|
7077
|
-
*
|
|
7100
|
+
* Stake funds with a pool. The amount to bond is delegated (or transferred based on
|
|
7101
|
+
* [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
|
|
7102
|
+
* increases the pool's bond.
|
|
7078
7103
|
*
|
|
7079
7104
|
* The method of transferring the amount to the pool account is determined by
|
|
7080
7105
|
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
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
|
|
7041
|
-
*
|
|
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
|
|
7397
|
-
*
|
|
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.
|
|
3
|
+
"version": "0.61.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": "
|
|
22
|
+
"gitHead": "9744f17440020a96d35bcf33686b00e9ac779666",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|