@dedot/chaintypes 0.122.0 → 0.131.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.
Files changed (53) hide show
  1. package/astar/consts.d.ts +0 -9
  2. package/astar/index.d.ts +1 -1
  3. package/astar/query.d.ts +0 -15
  4. package/hydration/consts.d.ts +29 -0
  5. package/hydration/errors.d.ts +172 -10
  6. package/hydration/events.d.ts +105 -0
  7. package/hydration/index.d.ts +1 -1
  8. package/hydration/json-rpc.d.ts +1 -0
  9. package/hydration/query.d.ts +50 -0
  10. package/hydration/tx.d.ts +408 -0
  11. package/hydration/types.d.ts +695 -12
  12. package/kusama/consts.d.ts +27 -7
  13. package/kusama/errors.d.ts +51 -4
  14. package/kusama/events.d.ts +212 -4
  15. package/kusama/index.d.ts +1 -1
  16. package/kusama/query.d.ts +44 -19
  17. package/kusama/runtime.d.ts +22 -0
  18. package/kusama/tx.d.ts +377 -25
  19. package/kusama/types.d.ts +638 -80
  20. package/kusama-asset-hub/consts.d.ts +98 -2
  21. package/kusama-asset-hub/errors.d.ts +314 -12
  22. package/kusama-asset-hub/events.d.ts +157 -3
  23. package/kusama-asset-hub/index.d.ts +1 -1
  24. package/kusama-asset-hub/query.d.ts +113 -6
  25. package/kusama-asset-hub/runtime.d.ts +217 -1
  26. package/kusama-asset-hub/tx.d.ts +581 -1
  27. package/kusama-asset-hub/types.d.ts +1086 -26
  28. package/moonbeam/index.d.ts +1 -1
  29. package/package.json +2 -2
  30. package/polkadot/consts.d.ts +23 -5
  31. package/polkadot/errors.d.ts +51 -4
  32. package/polkadot/events.d.ts +207 -4
  33. package/polkadot/index.d.ts +1 -1
  34. package/polkadot/query.d.ts +44 -19
  35. package/polkadot/runtime.d.ts +22 -0
  36. package/polkadot/tx.d.ts +376 -24
  37. package/polkadot/types.d.ts +630 -78
  38. package/westend/consts.d.ts +28 -9
  39. package/westend/errors.d.ts +21 -37
  40. package/westend/events.d.ts +25 -49
  41. package/westend/index.d.ts +1 -1
  42. package/westend/query.d.ts +40 -70
  43. package/westend/runtime.d.ts +7 -0
  44. package/westend/tx.d.ts +77 -124
  45. package/westend/types.d.ts +228 -328
  46. package/westend-asset-hub/consts.d.ts +41 -14
  47. package/westend-asset-hub/errors.d.ts +12 -96
  48. package/westend-asset-hub/events.d.ts +29 -81
  49. package/westend-asset-hub/index.d.ts +1 -1
  50. package/westend-asset-hub/query.d.ts +61 -125
  51. package/westend-asset-hub/runtime.d.ts +47 -1
  52. package/westend-asset-hub/tx.d.ts +97 -549
  53. package/westend-asset-hub/types.d.ts +489 -958
@@ -9,6 +9,7 @@ import type {
9
9
  PolkadotParachainPrimitivesPrimitivesId,
10
10
  SpWeightsWeightV2Weight,
11
11
  FrameSupportPalletId,
12
+ StagingXcmV5Junctions,
12
13
  PalletNftsBitFlagsPalletFeature,
13
14
  StagingXcmV5Location,
14
15
  PalletReferendaTrackDetails,
@@ -326,6 +327,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
326
327
  * Pallet `Session`'s constants
327
328
  **/
328
329
  session: {
330
+ /**
331
+ * The amount to be held when setting keys.
332
+ **/
333
+ keyDeposit: bigint;
334
+
329
335
  /**
330
336
  * Generic pallet constant
331
337
  **/
@@ -400,12 +406,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
400
406
  * Pallet `PolkadotXcm`'s constants
401
407
  **/
402
408
  polkadotXcm: {
409
+ /**
410
+ * This chain's Universal Location.
411
+ **/
412
+ universalLocation: StagingXcmV5Junctions;
413
+
403
414
  /**
404
415
  * The latest supported version that we advertise. Generally just set it to
405
416
  * `pallet_xcm::CurrentXcmVersion`.
406
417
  **/
407
418
  advertisedXcmVersion: number;
408
419
 
420
+ /**
421
+ * The maximum number of local XCM locks that a single account may have.
422
+ **/
423
+ maxLockers: number;
424
+
425
+ /**
426
+ * The maximum number of consumers a single remote lock may have.
427
+ **/
428
+ maxRemoteLockConsumers: number;
429
+
409
430
  /**
410
431
  * Generic pallet constant
411
432
  **/
@@ -1092,7 +1113,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1092
1113
  *
1093
1114
  * Following information is kept for eras in `[current_era -
1094
1115
  * HistoryDepth, current_era]`: `ErasValidatorPrefs`, `ErasValidatorReward`,
1095
- * `ErasRewardPoints`, `ErasTotalStake`, `ErasClaimedRewards`,
1116
+ * `ErasRewardPoints`, `ErasTotalStake`, `ClaimedRewards`,
1096
1117
  * `ErasStakersPaged`, `ErasStakersOverview`.
1097
1118
  *
1098
1119
  * Must be more than the number of eras delayed by session.
@@ -1105,7 +1126,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1105
1126
  historyDepth: number;
1106
1127
 
1107
1128
  /**
1108
- * Number of sessions per era.
1129
+ * Number of sessions per era, as per the preferences of the **relay chain**.
1109
1130
  **/
1110
1131
  sessionsPerEra: number;
1111
1132
 
@@ -1150,7 +1171,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1150
1171
  * `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
1151
1172
  * nominator payout.
1152
1173
  *
1153
- * Note: `MaxExposurePageSize` is used to bound `ErasClaimedRewards` and is unsafe to
1174
+ * Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to
1154
1175
  * reduce without handling it in a migration.
1155
1176
  **/
1156
1177
  maxExposurePageSize: number;
@@ -1183,9 +1204,16 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1183
1204
  maxInvulnerables: number;
1184
1205
 
1185
1206
  /**
1186
- * Maximum number of disabled validators.
1207
+ * Maximum allowed era duration in milliseconds.
1208
+ *
1209
+ * This provides a defensive upper bound to cap the effective era duration, preventing
1210
+ * excessively long eras from causing runaway inflation (e.g., due to bugs). If the actual
1211
+ * era duration exceeds this value, it will be clamped to this maximum.
1212
+ *
1213
+ * Example: For an ideal era duration of 24 hours (86,400,000 ms),
1214
+ * this can be set to 604,800,000 ms (7 days).
1187
1215
  **/
1188
- maxDisabledValidators: number;
1216
+ maxEraDuration: bigint;
1189
1217
 
1190
1218
  /**
1191
1219
  * Generic pallet constant
@@ -1293,6 +1321,14 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1293
1321
  **/
1294
1322
  bagThresholds: Array<bigint>;
1295
1323
 
1324
+ /**
1325
+ * Maximum number of accounts that may be re-bagged automatically in `on_idle`.
1326
+ *
1327
+ * A value of `0` (obtained by configuring `type MaxAutoRebagPerBlock = ();`) disables
1328
+ * the feature.
1329
+ **/
1330
+ maxAutoRebagPerBlock: number;
1331
+
1296
1332
  /**
1297
1333
  * Generic pallet constant
1298
1334
  **/
@@ -1580,13 +1616,4 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1580
1616
  **/
1581
1617
  [name: string]: any;
1582
1618
  };
1583
- /**
1584
- * Pallet `AhMigrator`'s constants
1585
- **/
1586
- ahMigrator: {
1587
- /**
1588
- * Generic pallet constant
1589
- **/
1590
- [name: string]: any;
1591
- };
1592
1619
  }
@@ -620,6 +620,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
620
620
  **/
621
621
  AliasNotFound: GenericPalletError<Rv>;
622
622
 
623
+ /**
624
+ * Local XCM execution incomplete with the actual XCM error and the index of the
625
+ * instruction that caused the error.
626
+ **/
627
+ LocalExecutionIncompleteWithError: GenericPalletError<Rv>;
628
+
623
629
  /**
624
630
  * Generic pallet error
625
631
  **/
@@ -1951,11 +1957,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1951
1957
  **/
1952
1958
  TooManyTopics: GenericPalletError<Rv>;
1953
1959
 
1954
- /**
1955
- * Failed to decode the XCM program.
1956
- **/
1957
- XcmDecodeFailed: GenericPalletError<Rv>;
1958
-
1959
1960
  /**
1960
1961
  * A contract with the same AccountId already exists.
1961
1962
  **/
@@ -2267,7 +2268,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2267
2268
  InvalidSlashRecord: GenericPalletError<Rv>;
2268
2269
 
2269
2270
  /**
2270
- * Cannot have a validator or nominator role, with value less than the minimum defined by
2271
+ * Cannot bond, nominate or validate with value less than the minimum defined by
2271
2272
  * governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the
2272
2273
  * intention, `chill` first to remove one's role as validator/nominator.
2273
2274
  **/
@@ -2747,20 +2748,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2747
2748
  **/
2748
2749
  [error: string]: GenericPalletError<Rv>;
2749
2750
  };
2750
- /**
2751
- * Pallet `StakingRcClient`'s errors
2752
- **/
2753
- stakingRcClient: {
2754
- /**
2755
- * The session report was not valid, due to a bad end index.
2756
- **/
2757
- SessionIndexNotValid: GenericPalletError<Rv>;
2758
-
2759
- /**
2760
- * Generic pallet error
2761
- **/
2762
- [error: string]: GenericPalletError<Rv>;
2763
- };
2764
2751
  /**
2765
2752
  * Pallet `MultiBlockElection`'s errors
2766
2753
  **/
@@ -2829,6 +2816,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2829
2816
  **/
2830
2817
  BadWitnessData: GenericPalletError<Rv>;
2831
2818
 
2819
+ /**
2820
+ * Too many invulnerable accounts are provided,
2821
+ **/
2822
+ TooManyInvulnerables: GenericPalletError<Rv>;
2823
+
2832
2824
  /**
2833
2825
  * Generic pallet error
2834
2826
  **/
@@ -3234,82 +3226,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3234
3226
  **/
3235
3227
  AccountIdentical: GenericPalletError<Rv>;
3236
3228
 
3237
- /**
3238
- * Generic pallet error
3239
- **/
3240
- [error: string]: GenericPalletError<Rv>;
3241
- };
3242
- /**
3243
- * Pallet `AhMigrator`'s errors
3244
- **/
3245
- ahMigrator: {
3246
- /**
3247
- * The error that should to be replaced by something meaningful.
3248
- **/
3249
- Todo: GenericPalletError<Rv>;
3250
- FailedToUnreserveDeposit: GenericPalletError<Rv>;
3251
-
3252
- /**
3253
- * Failed to process an account data from RC.
3254
- **/
3255
- FailedToProcessAccount: GenericPalletError<Rv>;
3256
-
3257
- /**
3258
- * Some item could not be inserted because it already exists.
3259
- **/
3260
- InsertConflict: GenericPalletError<Rv>;
3261
-
3262
- /**
3263
- * Failed to convert RC type to AH type.
3264
- **/
3265
- FailedToConvertType: GenericPalletError<Rv>;
3266
-
3267
- /**
3268
- * Failed to fetch preimage.
3269
- **/
3270
- PreimageNotFound: GenericPalletError<Rv>;
3271
-
3272
- /**
3273
- * Failed to convert RC call to AH call.
3274
- **/
3275
- FailedToConvertCall: GenericPalletError<Rv>;
3276
-
3277
- /**
3278
- * Failed to bound a call.
3279
- **/
3280
- FailedToBoundCall: GenericPalletError<Rv>;
3281
-
3282
- /**
3283
- * Failed to send XCM message.
3284
- **/
3285
- XcmError: GenericPalletError<Rv>;
3286
-
3287
- /**
3288
- * Failed to integrate a vesting schedule.
3289
- **/
3290
- FailedToIntegrateVestingSchedule: GenericPalletError<Rv>;
3291
-
3292
- /**
3293
- * Checking account overflow or underflow.
3294
- **/
3295
- FailedToCalculateCheckingAccount: GenericPalletError<Rv>;
3296
-
3297
- /**
3298
- * Vector did not fit into its compile-time bound.
3299
- **/
3300
- FailedToBoundVector: GenericPalletError<Rv>;
3301
- Unreachable: GenericPalletError<Rv>;
3302
-
3303
- /**
3304
- * No misplaced hold found.
3305
- **/
3306
- NoMisplacedHoldFound: GenericPalletError<Rv>;
3307
-
3308
- /**
3309
- * No free balance to hold.
3310
- **/
3311
- NoFreeBalanceToHold: GenericPalletError<Rv>;
3312
-
3313
3229
  /**
3314
3230
  * Generic pallet error
3315
3231
  **/
@@ -40,6 +40,7 @@ import type {
40
40
  PalletStakingAsyncRewardDestination,
41
41
  PalletStakingAsyncValidatorPrefs,
42
42
  PalletStakingAsyncForcing,
43
+ PalletStakingAsyncPalletUnexpectedKind,
43
44
  PalletNominationPoolsPoolState,
44
45
  PalletNominationPoolsCommissionChangeRate,
45
46
  PalletNominationPoolsCommissionClaimPermission,
@@ -54,9 +55,8 @@ import type {
54
55
  FrameSupportDispatchPostDispatchInfo,
55
56
  SpRuntimeDispatchErrorWithPostInfo,
56
57
  PolkadotRuntimeCommonImplsVersionedLocatableAsset,
58
+ ParachainsCommonPayVersionedLocatableAccount,
57
59
  AssetHubWestendRuntimeRuntimeHoldReason,
58
- PalletAhMigratorMigrationStage,
59
- PalletAhMigratorPalletEventName,
60
60
  } from './types.js';
61
61
 
62
62
  export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
@@ -3149,6 +3149,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3149
3149
  }
3150
3150
  >;
3151
3151
 
3152
+ /**
3153
+ * Contract deployed by deployer at the specified address.
3154
+ **/
3155
+ Instantiated: GenericPalletEvent<Rv, 'Revive', 'Instantiated', { deployer: H160; contract: H160 }>;
3156
+
3152
3157
  /**
3153
3158
  * Generic pallet event
3154
3159
  **/
@@ -3588,6 +3593,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3588
3593
  { startingSession: number; activeEra: number; plannedEra: number }
3589
3594
  >;
3590
3595
 
3596
+ /**
3597
+ * Something occurred that should never happen under normal operation.
3598
+ * Logged as an event for fail-safe observability.
3599
+ **/
3600
+ Unexpected: GenericPalletEvent<Rv, 'Staking', 'Unexpected', PalletStakingAsyncPalletUnexpectedKind>;
3601
+
3591
3602
  /**
3592
3603
  * Generic pallet event
3593
3604
  **/
@@ -4020,6 +4031,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
4020
4031
  }
4021
4032
  >;
4022
4033
 
4034
+ /**
4035
+ * Target snapshot creation failed
4036
+ **/
4037
+ UnexpectedTargetSnapshotFailed: GenericPalletEvent<
4038
+ Rv,
4039
+ 'MultiBlockElection',
4040
+ 'UnexpectedTargetSnapshotFailed',
4041
+ null
4042
+ >;
4043
+
4044
+ /**
4045
+ * Voter snapshot creation failed
4046
+ **/
4047
+ UnexpectedVoterSnapshotFailed: GenericPalletEvent<Rv, 'MultiBlockElection', 'UnexpectedVoterSnapshotFailed', null>;
4048
+
4023
4049
  /**
4024
4050
  * Generic pallet event
4025
4051
  **/
@@ -4029,16 +4055,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
4029
4055
  * Pallet `MultiBlockElectionVerifier`'s events
4030
4056
  **/
4031
4057
  multiBlockElectionVerifier: {
4032
- /**
4033
- * The verification data was unavailable and it could not continue.
4034
- **/
4035
- VerificationDataUnavailable: GenericPalletEvent<
4036
- Rv,
4037
- 'MultiBlockElectionVerifier',
4038
- 'VerificationDataUnavailable',
4039
- null
4040
- >;
4041
-
4042
4058
  /**
4043
4059
  * A verification failed at the given page.
4044
4060
  *
@@ -4585,7 +4601,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
4585
4601
  index: number;
4586
4602
  assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset;
4587
4603
  amount: bigint;
4588
- beneficiary: XcmVersionedLocation;
4604
+ beneficiary: ParachainsCommonPayVersionedLocatableAccount;
4589
4605
  validFrom: number;
4590
4606
  expireAt: number;
4591
4607
  }
@@ -4754,74 +4770,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
4754
4770
  { account: AccountId32; amount: bigint; reason: AssetHubWestendRuntimeRuntimeHoldReason }
4755
4771
  >;
4756
4772
 
4757
- /**
4758
- * Generic pallet event
4759
- **/
4760
- [prop: string]: GenericPalletEvent<Rv>;
4761
- };
4762
- /**
4763
- * Pallet `AhMigrator`'s events
4764
- **/
4765
- ahMigrator: {
4766
- /**
4767
- * A stage transition has occurred.
4768
- **/
4769
- StageTransition: GenericPalletEvent<
4770
- Rv,
4771
- 'AhMigrator',
4772
- 'StageTransition',
4773
- {
4774
- /**
4775
- * The old stage before the transition.
4776
- **/
4777
- old: PalletAhMigratorMigrationStage;
4778
-
4779
- /**
4780
- * The new stage after the transition.
4781
- **/
4782
- new: PalletAhMigratorMigrationStage;
4783
- }
4784
- >;
4785
-
4786
- /**
4787
- * We received a batch of messages that will be integrated into a pallet.
4788
- **/
4789
- BatchReceived: GenericPalletEvent<
4790
- Rv,
4791
- 'AhMigrator',
4792
- 'BatchReceived',
4793
- { pallet: PalletAhMigratorPalletEventName; count: number }
4794
- >;
4795
-
4796
- /**
4797
- * We processed a batch of messages for this pallet.
4798
- **/
4799
- BatchProcessed: GenericPalletEvent<
4800
- Rv,
4801
- 'AhMigrator',
4802
- 'BatchProcessed',
4803
- { pallet: PalletAhMigratorPalletEventName; countGood: number; countBad: number }
4804
- >;
4805
-
4806
- /**
4807
- * The Asset Hub Migration started and is active until `AssetHubMigrationFinished` is
4808
- * emitted.
4809
- *
4810
- * This event is equivalent to `StageTransition { new: DataMigrationOngoing, .. }` but is
4811
- * easier to understand. The activation is immediate and affects all events happening
4812
- * afterwards.
4813
- **/
4814
- AssetHubMigrationStarted: GenericPalletEvent<Rv, 'AhMigrator', 'AssetHubMigrationStarted', null>;
4815
-
4816
- /**
4817
- * The Asset Hub Migration finished.
4818
- *
4819
- * This event is equivalent to `StageTransition { new: MigrationDone, .. }` but is easier
4820
- * to understand. The finishing is immediate and affects all events happening
4821
- * afterwards.
4822
- **/
4823
- AssetHubMigrationFinished: GenericPalletEvent<Rv, 'AhMigrator', 'AssetHubMigrationFinished', null>;
4824
-
4825
4773
  /**
4826
4774
  * Generic pallet event
4827
4775
  **/
@@ -23,7 +23,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
23
23
 
24
24
  /**
25
25
  * @name: WestendAssetHubApi
26
- * @specVersion: 1018012
26
+ * @specVersion: 1018013
27
27
  **/
28
28
  export interface WestendAssetHubApi {
29
29
  legacy: VersionedWestendAssetHubApi<RpcLegacy>;