@dedot/chaintypes 0.63.0 → 0.64.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/package.json +2 -2
- package/polkadot/errors.d.ts +12 -0
- package/polkadot/index.d.ts +1 -1
- package/polkadot/tx.d.ts +27 -2
- package/polkadot/types.d.ts +38 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.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": "976fd31eb84b6e942bb11ac23bbe4ad46eba4bd9",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -439,6 +439,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
439
439
|
**/
|
|
440
440
|
VirtualStakerNotAllowed: GenericPalletError<Rv>;
|
|
441
441
|
|
|
442
|
+
/**
|
|
443
|
+
* Account is restricted from participation in staking. This may happen if the account is
|
|
444
|
+
* staking in another way already, such as via pool.
|
|
445
|
+
**/
|
|
446
|
+
Restricted: GenericPalletError<Rv>;
|
|
447
|
+
|
|
442
448
|
/**
|
|
443
449
|
* Generic pallet error
|
|
444
450
|
**/
|
|
@@ -1373,6 +1379,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1373
1379
|
**/
|
|
1374
1380
|
NotSupported: GenericPalletError<Rv>;
|
|
1375
1381
|
|
|
1382
|
+
/**
|
|
1383
|
+
* Account is restricted from participation in pools. This may happen if the account is
|
|
1384
|
+
* staking in another way already.
|
|
1385
|
+
**/
|
|
1386
|
+
Restricted: GenericPalletError<Rv>;
|
|
1387
|
+
|
|
1376
1388
|
/**
|
|
1377
1389
|
* Generic pallet error
|
|
1378
1390
|
**/
|
package/polkadot/index.d.ts
CHANGED
package/polkadot/tx.d.ts
CHANGED
|
@@ -2263,6 +2263,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2263
2263
|
>
|
|
2264
2264
|
>;
|
|
2265
2265
|
|
|
2266
|
+
/**
|
|
2267
|
+
* Adjusts the staking ledger by withdrawing any excess staked amount.
|
|
2268
|
+
*
|
|
2269
|
+
* This function corrects cases where a user's recorded stake in the ledger
|
|
2270
|
+
* exceeds their actual staked funds. This situation can arise due to cases such as
|
|
2271
|
+
* external slashing by another pallet, leading to an inconsistency between the ledger
|
|
2272
|
+
* and the actual stake.
|
|
2273
|
+
*
|
|
2274
|
+
* @param {AccountId32Like} stash
|
|
2275
|
+
**/
|
|
2276
|
+
withdrawOverstake: GenericTxCall<
|
|
2277
|
+
Rv,
|
|
2278
|
+
(stash: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
2279
|
+
Rv,
|
|
2280
|
+
{
|
|
2281
|
+
pallet: 'Staking';
|
|
2282
|
+
palletCall: {
|
|
2283
|
+
name: 'WithdrawOverstake';
|
|
2284
|
+
params: { stash: AccountId32Like };
|
|
2285
|
+
};
|
|
2286
|
+
}
|
|
2287
|
+
>
|
|
2288
|
+
>;
|
|
2289
|
+
|
|
2266
2290
|
/**
|
|
2267
2291
|
* Generic pallet tx call
|
|
2268
2292
|
**/
|
|
@@ -5324,8 +5348,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5324
5348
|
**/
|
|
5325
5349
|
nominationPools: {
|
|
5326
5350
|
/**
|
|
5327
|
-
* Stake funds with a pool. The amount to bond is
|
|
5328
|
-
*
|
|
5351
|
+
* Stake funds with a pool. The amount to bond is delegated (or transferred based on
|
|
5352
|
+
* [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
|
|
5353
|
+
* increases the pool's bond.
|
|
5329
5354
|
*
|
|
5330
5355
|
* The method of transferring the amount to the pool account is determined by
|
|
5331
5356
|
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
package/polkadot/types.d.ts
CHANGED
|
@@ -2479,7 +2479,16 @@ export type PalletStakingPalletCall =
|
|
|
2479
2479
|
maybeTotal?: bigint | undefined;
|
|
2480
2480
|
maybeUnlocking?: Array<PalletStakingUnlockChunk> | undefined;
|
|
2481
2481
|
};
|
|
2482
|
-
}
|
|
2482
|
+
}
|
|
2483
|
+
/**
|
|
2484
|
+
* Adjusts the staking ledger by withdrawing any excess staked amount.
|
|
2485
|
+
*
|
|
2486
|
+
* This function corrects cases where a user's recorded stake in the ledger
|
|
2487
|
+
* exceeds their actual staked funds. This situation can arise due to cases such as
|
|
2488
|
+
* external slashing by another pallet, leading to an inconsistency between the ledger
|
|
2489
|
+
* and the actual stake.
|
|
2490
|
+
**/
|
|
2491
|
+
| { name: 'WithdrawOverstake'; params: { stash: AccountId32 } };
|
|
2483
2492
|
|
|
2484
2493
|
export type PalletStakingPalletCallLike =
|
|
2485
2494
|
/**
|
|
@@ -2925,7 +2934,16 @@ export type PalletStakingPalletCallLike =
|
|
|
2925
2934
|
maybeTotal?: bigint | undefined;
|
|
2926
2935
|
maybeUnlocking?: Array<PalletStakingUnlockChunk> | undefined;
|
|
2927
2936
|
};
|
|
2928
|
-
}
|
|
2937
|
+
}
|
|
2938
|
+
/**
|
|
2939
|
+
* Adjusts the staking ledger by withdrawing any excess staked amount.
|
|
2940
|
+
*
|
|
2941
|
+
* This function corrects cases where a user's recorded stake in the ledger
|
|
2942
|
+
* exceeds their actual staked funds. This situation can arise due to cases such as
|
|
2943
|
+
* external slashing by another pallet, leading to an inconsistency between the ledger
|
|
2944
|
+
* and the actual stake.
|
|
2945
|
+
**/
|
|
2946
|
+
| { name: 'WithdrawOverstake'; params: { stash: AccountId32Like } };
|
|
2929
2947
|
|
|
2930
2948
|
export type PalletStakingPalletConfigOp = { type: 'Noop' } | { type: 'Set'; value: bigint } | { type: 'Remove' };
|
|
2931
2949
|
|
|
@@ -6026,8 +6044,9 @@ export type PalletBagsListCallLike =
|
|
|
6026
6044
|
**/
|
|
6027
6045
|
export type PalletNominationPoolsCall =
|
|
6028
6046
|
/**
|
|
6029
|
-
* Stake funds with a pool. The amount to bond is
|
|
6030
|
-
*
|
|
6047
|
+
* Stake funds with a pool. The amount to bond is delegated (or transferred based on
|
|
6048
|
+
* [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
|
|
6049
|
+
* increases the pool's bond.
|
|
6031
6050
|
*
|
|
6032
6051
|
* The method of transferring the amount to the pool account is determined by
|
|
6033
6052
|
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
|
@@ -6382,8 +6401,9 @@ export type PalletNominationPoolsCall =
|
|
|
6382
6401
|
|
|
6383
6402
|
export type PalletNominationPoolsCallLike =
|
|
6384
6403
|
/**
|
|
6385
|
-
* Stake funds with a pool. The amount to bond is
|
|
6386
|
-
*
|
|
6404
|
+
* Stake funds with a pool. The amount to bond is delegated (or transferred based on
|
|
6405
|
+
* [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
|
|
6406
|
+
* increases the pool's bond.
|
|
6387
6407
|
*
|
|
6388
6408
|
* The method of transferring the amount to the pool account is determined by
|
|
6389
6409
|
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
|
@@ -12179,7 +12199,12 @@ export type PalletStakingPalletError =
|
|
|
12179
12199
|
/**
|
|
12180
12200
|
* Operation not allowed for virtual stakers.
|
|
12181
12201
|
**/
|
|
12182
|
-
| 'VirtualStakerNotAllowed'
|
|
12202
|
+
| 'VirtualStakerNotAllowed'
|
|
12203
|
+
/**
|
|
12204
|
+
* Account is restricted from participation in staking. This may happen if the account is
|
|
12205
|
+
* staking in another way already, such as via pool.
|
|
12206
|
+
**/
|
|
12207
|
+
| 'Restricted';
|
|
12183
12208
|
|
|
12184
12209
|
export type SpStakingOffenceOffenceDetails = {
|
|
12185
12210
|
offender: [AccountId32, SpStakingExposure];
|
|
@@ -13116,7 +13141,12 @@ export type PalletNominationPoolsError =
|
|
|
13116
13141
|
/**
|
|
13117
13142
|
* This call is not allowed in the current state of the pallet.
|
|
13118
13143
|
**/
|
|
13119
|
-
| { name: 'NotSupported' }
|
|
13144
|
+
| { name: 'NotSupported' }
|
|
13145
|
+
/**
|
|
13146
|
+
* Account is restricted from participation in pools. This may happen if the account is
|
|
13147
|
+
* staking in another way already.
|
|
13148
|
+
**/
|
|
13149
|
+
| { name: 'Restricted' };
|
|
13120
13150
|
|
|
13121
13151
|
export type PalletNominationPoolsDefensiveError =
|
|
13122
13152
|
| 'NotEnoughSpaceInUnbondPool'
|