@dedot/chaintypes 0.248.0 → 0.249.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.248.0",
3
+ "version": "0.249.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -25,7 +25,7 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "f740a62a84f658a717070addcdd11094669b5e41",
28
+ "gitHead": "6b72fd5b22cdc9befdc38534ed72790e7cee6701",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -151,6 +151,31 @@ export interface ChainConsts extends GenericChainConsts {
151
151
  **/
152
152
  [name: string]: any;
153
153
  };
154
+ /**
155
+ * Pallet `MultiBlockMigrations`'s constants
156
+ **/
157
+ multiBlockMigrations: {
158
+ /**
159
+ * The maximal length of an encoded cursor.
160
+ *
161
+ * A good default needs to selected such that no migration will ever have a cursor with MEL
162
+ * above this limit. This is statically checked in `integrity_test`.
163
+ **/
164
+ cursorMaxLen: number;
165
+
166
+ /**
167
+ * The maximal length of an encoded identifier.
168
+ *
169
+ * A good default needs to selected such that no migration will ever have an identifier
170
+ * with MEL above this limit. This is statically checked in `integrity_test`.
171
+ **/
172
+ identifierMaxLen: number;
173
+
174
+ /**
175
+ * Generic pallet constant
176
+ **/
177
+ [name: string]: any;
178
+ };
154
179
  /**
155
180
  * Pallet `Balances`'s constants
156
181
  **/
@@ -261,6 +286,23 @@ export interface ChainConsts extends GenericChainConsts {
261
286
  **/
262
287
  [name: string]: any;
263
288
  };
289
+ /**
290
+ * Pallet `Dap`'s constants
291
+ **/
292
+ dap: {
293
+ /**
294
+ * The pallet ID used to derive the buffer account.
295
+ *
296
+ * Each runtime should configure a unique ID to avoid collisions if multiple
297
+ * DAP instances are used.
298
+ **/
299
+ palletId: FrameSupportPalletId;
300
+
301
+ /**
302
+ * Generic pallet constant
303
+ **/
304
+ [name: string]: any;
305
+ };
264
306
  /**
265
307
  * Pallet `Authorship`'s constants
266
308
  **/
@@ -1136,6 +1178,30 @@ export interface ChainConsts extends GenericChainConsts {
1136
1178
  **/
1137
1179
  [name: string]: any;
1138
1180
  };
1181
+ /**
1182
+ * Pallet `MultiAssetBounties`'s constants
1183
+ **/
1184
+ multiAssetBounties: {
1185
+ /**
1186
+ * Minimum value for a bounty.
1187
+ **/
1188
+ bountyValueMinimum: bigint;
1189
+
1190
+ /**
1191
+ * Minimum value for a child-bounty.
1192
+ **/
1193
+ childBountyValueMinimum: bigint;
1194
+
1195
+ /**
1196
+ * Maximum number of child bounties that can be added to a parent bounty.
1197
+ **/
1198
+ maxActiveChildBountyCount: number;
1199
+
1200
+ /**
1201
+ * Generic pallet constant
1202
+ **/
1203
+ [name: string]: any;
1204
+ };
1139
1205
  /**
1140
1206
  * Pallet `StateTrieMigration`'s constants
1141
1207
  **/
@@ -1292,6 +1358,11 @@ export interface ChainConsts extends GenericChainConsts {
1292
1358
  * Pallet `StakingRcClient`'s constants
1293
1359
  **/
1294
1360
  stakingRcClient: {
1361
+ /**
1362
+ * Deposit held when a validator sets session keys. Released on `purge_keys`.
1363
+ **/
1364
+ keyDeposit: bigint;
1365
+
1295
1366
  /**
1296
1367
  * Generic pallet constant
1297
1368
  **/
@@ -1444,9 +1515,25 @@ export interface ChainConsts extends GenericChainConsts {
1444
1515
 
1445
1516
  /**
1446
1517
  * Number of eras that staked funds must remain bonded for.
1518
+ *
1519
+ * This is the bonding duration for validators. Nominators may have a shorter bonding
1520
+ * duration when [`AreNominatorsSlashable`] is set to `false` (see
1521
+ * [`StakingInterface::nominator_bonding_duration`]).
1447
1522
  **/
1448
1523
  bondingDuration: number;
1449
1524
 
1525
+ /**
1526
+ * Number of eras nominators must wait to unbond when they are not slashable.
1527
+ *
1528
+ * This duration is used for nominators when [`AreNominatorsSlashable`] is `false`.
1529
+ * When nominators are slashable, they use the full [`Config::BondingDuration`] to ensure
1530
+ * slashes can be applied during the unbonding period.
1531
+ *
1532
+ * Setting this to a lower value (e.g., 1 era) allows for faster withdrawals when
1533
+ * nominators are not subject to slashing risk.
1534
+ **/
1535
+ nominatorFastUnbondDuration: number;
1536
+
1450
1537
  /**
1451
1538
  * Number of eras that slashes are deferred by, after computation.
1452
1539
  *
@@ -194,6 +194,20 @@ export interface ChainErrors extends GenericChainErrors {
194
194
  **/
195
195
  [error: string]: GenericPalletError;
196
196
  };
197
+ /**
198
+ * Pallet `MultiBlockMigrations`'s errors
199
+ **/
200
+ multiBlockMigrations: {
201
+ /**
202
+ * The operation cannot complete since some MBMs are ongoing.
203
+ **/
204
+ Ongoing: GenericPalletError;
205
+
206
+ /**
207
+ * Generic pallet error
208
+ **/
209
+ [error: string]: GenericPalletError;
210
+ };
197
211
  /**
198
212
  * Pallet `Balances`'s errors
199
213
  **/
@@ -1089,6 +1103,11 @@ export interface ChainErrors extends GenericChainErrors {
1089
1103
  **/
1090
1104
  ContainsHolds: GenericPalletError;
1091
1105
 
1106
+ /**
1107
+ * Tried setting too many reserves.
1108
+ **/
1109
+ TooManyReserves: GenericPalletError;
1110
+
1092
1111
  /**
1093
1112
  * Generic pallet error
1094
1113
  **/
@@ -1569,6 +1588,11 @@ export interface ChainErrors extends GenericChainErrors {
1569
1588
  **/
1570
1589
  ContainsHolds: GenericPalletError;
1571
1590
 
1591
+ /**
1592
+ * Tried setting too many reserves.
1593
+ **/
1594
+ TooManyReserves: GenericPalletError;
1595
+
1572
1596
  /**
1573
1597
  * Generic pallet error
1574
1598
  **/
@@ -1696,6 +1720,11 @@ export interface ChainErrors extends GenericChainErrors {
1696
1720
  **/
1697
1721
  ContainsHolds: GenericPalletError;
1698
1722
 
1723
+ /**
1724
+ * Tried setting too many reserves.
1725
+ **/
1726
+ TooManyReserves: GenericPalletError;
1727
+
1699
1728
  /**
1700
1729
  * Generic pallet error
1701
1730
  **/
@@ -2194,6 +2223,104 @@ export interface ChainErrors extends GenericChainErrors {
2194
2223
  **/
2195
2224
  [error: string]: GenericPalletError;
2196
2225
  };
2226
+ /**
2227
+ * Pallet `MultiAssetBounties`'s errors
2228
+ **/
2229
+ multiAssetBounties: {
2230
+ /**
2231
+ * No child-/bounty at that index.
2232
+ **/
2233
+ InvalidIndex: GenericPalletError;
2234
+
2235
+ /**
2236
+ * The reason given is just too big.
2237
+ **/
2238
+ ReasonTooBig: GenericPalletError;
2239
+
2240
+ /**
2241
+ * Invalid child-/bounty value.
2242
+ **/
2243
+ InvalidValue: GenericPalletError;
2244
+
2245
+ /**
2246
+ * The balance of the asset kind is not convertible to the balance of the native asset for
2247
+ * asserting the origin permissions.
2248
+ **/
2249
+ FailedToConvertBalance: GenericPalletError;
2250
+
2251
+ /**
2252
+ * The child-/bounty status is unexpected.
2253
+ **/
2254
+ UnexpectedStatus: GenericPalletError;
2255
+
2256
+ /**
2257
+ * Require child-/bounty curator.
2258
+ **/
2259
+ RequireCurator: GenericPalletError;
2260
+
2261
+ /**
2262
+ * The spend origin is valid but the amount it is allowed to spend is lower than the
2263
+ * requested amount.
2264
+ **/
2265
+ InsufficientPermission: GenericPalletError;
2266
+
2267
+ /**
2268
+ * There was issue with funding the child-/bounty.
2269
+ **/
2270
+ FundingError: GenericPalletError;
2271
+
2272
+ /**
2273
+ * There was issue with refunding the child-/bounty.
2274
+ **/
2275
+ RefundError: GenericPalletError;
2276
+ PayoutError: GenericPalletError;
2277
+
2278
+ /**
2279
+ * Child-/bounty funding has not concluded yet.
2280
+ **/
2281
+ FundingInconclusive: GenericPalletError;
2282
+
2283
+ /**
2284
+ * Child-/bounty refund has not concluded yet.
2285
+ **/
2286
+ RefundInconclusive: GenericPalletError;
2287
+
2288
+ /**
2289
+ * Child-/bounty payout has not concluded yet.
2290
+ **/
2291
+ PayoutInconclusive: GenericPalletError;
2292
+
2293
+ /**
2294
+ * The child-/bounty or funding source account could not be derived from the indexes and
2295
+ * asset kind.
2296
+ **/
2297
+ FailedToConvertSource: GenericPalletError;
2298
+
2299
+ /**
2300
+ * The parent bounty cannot be closed because it has active child bounties.
2301
+ **/
2302
+ HasActiveChildBounty: GenericPalletError;
2303
+
2304
+ /**
2305
+ * Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
2306
+ **/
2307
+ TooManyChildBounties: GenericPalletError;
2308
+
2309
+ /**
2310
+ * The parent bounty value is not enough to add new child-bounty.
2311
+ **/
2312
+ InsufficientBountyValue: GenericPalletError;
2313
+
2314
+ /**
2315
+ * The preimage does not exist.
2316
+ **/
2317
+ PreimageNotExist: GenericPalletError;
2318
+
2319
+ /**
2320
+ * Generic pallet error
2321
+ **/
2322
+ [error: string]: GenericPalletError;
2323
+ };
2197
2324
  /**
2198
2325
  * Pallet `StateTrieMigration`'s errors
2199
2326
  **/
@@ -2539,6 +2666,44 @@ export interface ChainErrors extends GenericChainErrors {
2539
2666
  **/
2540
2667
  [error: string]: GenericPalletError;
2541
2668
  };
2669
+ /**
2670
+ * Pallet `StakingRcClient`'s errors
2671
+ **/
2672
+ stakingRcClient: {
2673
+ /**
2674
+ * Failed to send XCM message to the Relay Chain.
2675
+ **/
2676
+ XcmSendFailed: GenericPalletError;
2677
+
2678
+ /**
2679
+ * The origin account is not a registered validator.
2680
+ *
2681
+ * Only accounts that have called `validate()` can set or purge session keys. When called
2682
+ * via a staking proxy, the origin is the delegating account (stash), which must be a
2683
+ * registered validator.
2684
+ **/
2685
+ NotValidator: GenericPalletError;
2686
+
2687
+ /**
2688
+ * The session keys could not be decoded as the expected RelayChainSessionKeys type.
2689
+ **/
2690
+ InvalidKeys: GenericPalletError;
2691
+
2692
+ /**
2693
+ * The ownership proof for the session keys is invalid.
2694
+ **/
2695
+ InvalidProof: GenericPalletError;
2696
+
2697
+ /**
2698
+ * Delivery fees exceeded the specified maximum.
2699
+ **/
2700
+ FeesExceededMax: GenericPalletError;
2701
+
2702
+ /**
2703
+ * Generic pallet error
2704
+ **/
2705
+ [error: string]: GenericPalletError;
2706
+ };
2542
2707
  /**
2543
2708
  * Pallet `MultiBlockElection`'s errors
2544
2709
  **/
@@ -3120,6 +3285,11 @@ export interface ChainErrors extends GenericChainErrors {
3120
3285
  **/
3121
3286
  PrecompileDelegateDenied: GenericPalletError;
3122
3287
 
3288
+ /**
3289
+ * ECDSA public key recovery failed. Most probably wrong recovery id or signature.
3290
+ **/
3291
+ EcdsaRecoveryFailed: GenericPalletError;
3292
+
3123
3293
  /**
3124
3294
  * Generic pallet error
3125
3295
  **/