@dedot/chaintypes 0.123.0 → 0.132.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 (80) hide show
  1. package/aleph/index.d.ts +2 -0
  2. package/aleph/view-functions.d.ts +5 -0
  3. package/astar/consts.d.ts +0 -9
  4. package/astar/index.d.ts +3 -1
  5. package/astar/query.d.ts +0 -15
  6. package/astar/view-functions.d.ts +5 -0
  7. package/basilisk/index.d.ts +2 -0
  8. package/basilisk/view-functions.d.ts +5 -0
  9. package/hydration/consts.d.ts +29 -0
  10. package/hydration/errors.d.ts +172 -10
  11. package/hydration/events.d.ts +105 -0
  12. package/hydration/index.d.ts +3 -1
  13. package/hydration/json-rpc.d.ts +1 -0
  14. package/hydration/query.d.ts +50 -0
  15. package/hydration/tx.d.ts +408 -0
  16. package/hydration/types.d.ts +695 -12
  17. package/hydration/view-functions.d.ts +5 -0
  18. package/kusama/consts.d.ts +27 -7
  19. package/kusama/errors.d.ts +51 -4
  20. package/kusama/events.d.ts +212 -4
  21. package/kusama/index.d.ts +3 -1
  22. package/kusama/query.d.ts +44 -19
  23. package/kusama/runtime.d.ts +22 -0
  24. package/kusama/tx.d.ts +377 -25
  25. package/kusama/types.d.ts +638 -80
  26. package/kusama/view-functions.d.ts +5 -0
  27. package/kusama-asset-hub/index.d.ts +2 -0
  28. package/kusama-asset-hub/view-functions.d.ts +5 -0
  29. package/kusama-people/index.d.ts +2 -0
  30. package/kusama-people/view-functions.d.ts +5 -0
  31. package/moonbeam/index.d.ts +3 -1
  32. package/moonbeam/view-functions.d.ts +5 -0
  33. package/package.json +3 -3
  34. package/paseo/index.d.ts +2 -0
  35. package/paseo/view-functions.d.ts +5 -0
  36. package/paseo-asset-hub/index.d.ts +2 -0
  37. package/paseo-asset-hub/view-functions.d.ts +5 -0
  38. package/paseo-hydration/index.d.ts +2 -0
  39. package/paseo-hydration/view-functions.d.ts +5 -0
  40. package/paseo-people/index.d.ts +2 -0
  41. package/paseo-people/view-functions.d.ts +5 -0
  42. package/polkadot/consts.d.ts +23 -5
  43. package/polkadot/errors.d.ts +51 -4
  44. package/polkadot/events.d.ts +207 -4
  45. package/polkadot/index.d.ts +3 -1
  46. package/polkadot/query.d.ts +44 -19
  47. package/polkadot/runtime.d.ts +22 -0
  48. package/polkadot/tx.d.ts +376 -24
  49. package/polkadot/types.d.ts +630 -78
  50. package/polkadot/view-functions.d.ts +5 -0
  51. package/polkadot-asset-hub/index.d.ts +2 -0
  52. package/polkadot-asset-hub/view-functions.d.ts +5 -0
  53. package/polkadot-people/index.d.ts +2 -0
  54. package/polkadot-people/view-functions.d.ts +5 -0
  55. package/substrate/index.d.ts +2 -0
  56. package/substrate/runtime.d.ts +11 -11
  57. package/substrate/types.d.ts +8 -1
  58. package/substrate/view-functions.d.ts +5 -0
  59. package/vara/index.d.ts +2 -0
  60. package/vara/view-functions.d.ts +5 -0
  61. package/westend/consts.d.ts +28 -9
  62. package/westend/errors.d.ts +23 -37
  63. package/westend/events.d.ts +25 -49
  64. package/westend/index.d.ts +3 -1
  65. package/westend/query.d.ts +42 -70
  66. package/westend/runtime.d.ts +7 -0
  67. package/westend/tx.d.ts +89 -124
  68. package/westend/types.d.ts +239 -339
  69. package/westend/view-functions.d.ts +84 -0
  70. package/westend-asset-hub/consts.d.ts +41 -14
  71. package/westend-asset-hub/errors.d.ts +14 -96
  72. package/westend-asset-hub/events.d.ts +29 -81
  73. package/westend-asset-hub/index.d.ts +3 -1
  74. package/westend-asset-hub/query.d.ts +63 -125
  75. package/westend-asset-hub/runtime.d.ts +47 -1
  76. package/westend-asset-hub/tx.d.ts +105 -549
  77. package/westend-asset-hub/types.d.ts +569 -1040
  78. package/westend-asset-hub/view-functions.d.ts +82 -0
  79. package/westend-people/index.d.ts +2 -0
  80. package/westend-people/view-functions.d.ts +5 -0
@@ -0,0 +1,84 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+ import type { AccountId32Like } from 'dedot/codecs';
5
+ import type {
6
+ WestendRuntimeRuntimeCallLike,
7
+ WestendRuntimeProxyType,
8
+ PolkadotParachainPrimitivesPrimitivesId,
9
+ } from './types.js';
10
+
11
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
12
+ /**
13
+ * Pallet `Proxy`'s view functions
14
+ **/
15
+ proxy: {
16
+ /**
17
+ * Check if a `RuntimeCall` is allowed for a given `ProxyType`.
18
+ *
19
+ * @param {WestendRuntimeRuntimeCallLike} call
20
+ * @param {WestendRuntimeProxyType} proxyType
21
+ **/
22
+ checkPermissions: GenericViewFunction<
23
+ Rv,
24
+ (call: WestendRuntimeRuntimeCallLike, proxyType: WestendRuntimeProxyType) => Promise<boolean>
25
+ >;
26
+
27
+ /**
28
+ * Check if one `ProxyType` is a subset of another `ProxyType`.
29
+ *
30
+ * @param {WestendRuntimeProxyType} toCheck
31
+ * @param {WestendRuntimeProxyType} against
32
+ **/
33
+ isSuperset: GenericViewFunction<
34
+ Rv,
35
+ (toCheck: WestendRuntimeProxyType, against: WestendRuntimeProxyType) => Promise<boolean>
36
+ >;
37
+
38
+ /**
39
+ * Generic pallet view function
40
+ **/
41
+ [name: string]: GenericViewFunction<Rv>;
42
+ };
43
+ /**
44
+ * Pallet `VoterList`'s view functions
45
+ **/
46
+ voterList: {
47
+ /**
48
+ * Get the current `score` of a given account.
49
+ *
50
+ * Returns `(current, real_score)`, the former being the current score that this pallet is
51
+ * aware of, which may or may not be up to date, and the latter being the real score, as
52
+ * provided by
53
+ *
54
+ * If the two differ, it means this node is eligible for [`Call::rebag`].
55
+ *
56
+ * @param {AccountId32Like} who
57
+ **/
58
+ scores: GenericViewFunction<Rv, (who: AccountId32Like) => Promise<[bigint | undefined, bigint | undefined]>>;
59
+
60
+ /**
61
+ * Generic pallet view function
62
+ **/
63
+ [name: string]: GenericViewFunction<Rv>;
64
+ };
65
+ /**
66
+ * Pallet `Paras`'s view functions
67
+ **/
68
+ paras: {
69
+ /**
70
+ * Returns the cost for removing an upgrade cooldown for the given `para`.
71
+ *
72
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para
73
+ **/
74
+ removeUpgradeCooldownCost: GenericViewFunction<
75
+ Rv,
76
+ (para: PolkadotParachainPrimitivesPrimitivesId) => Promise<bigint>
77
+ >;
78
+
79
+ /**
80
+ * Generic pallet view function
81
+ **/
82
+ [name: string]: GenericViewFunction<Rv>;
83
+ };
84
+ }
@@ -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
  }
@@ -607,6 +607,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
607
607
 
608
608
  /**
609
609
  * Too many locations authorized to alias origin.
610
+ *
611
+ * @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
610
612
  **/
611
613
  TooManyAuthorizedAliases: GenericPalletError<Rv>;
612
614
 
@@ -620,6 +622,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
620
622
  **/
621
623
  AliasNotFound: GenericPalletError<Rv>;
622
624
 
625
+ /**
626
+ * Local XCM execution incomplete with the actual XCM error and the index of the
627
+ * instruction that caused the error.
628
+ **/
629
+ LocalExecutionIncompleteWithError: GenericPalletError<Rv>;
630
+
623
631
  /**
624
632
  * Generic pallet error
625
633
  **/
@@ -1951,11 +1959,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1951
1959
  **/
1952
1960
  TooManyTopics: GenericPalletError<Rv>;
1953
1961
 
1954
- /**
1955
- * Failed to decode the XCM program.
1956
- **/
1957
- XcmDecodeFailed: GenericPalletError<Rv>;
1958
-
1959
1962
  /**
1960
1963
  * A contract with the same AccountId already exists.
1961
1964
  **/
@@ -2267,7 +2270,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2267
2270
  InvalidSlashRecord: GenericPalletError<Rv>;
2268
2271
 
2269
2272
  /**
2270
- * Cannot have a validator or nominator role, with value less than the minimum defined by
2273
+ * Cannot bond, nominate or validate with value less than the minimum defined by
2271
2274
  * governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the
2272
2275
  * intention, `chill` first to remove one's role as validator/nominator.
2273
2276
  **/
@@ -2747,20 +2750,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2747
2750
  **/
2748
2751
  [error: string]: GenericPalletError<Rv>;
2749
2752
  };
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
2753
  /**
2765
2754
  * Pallet `MultiBlockElection`'s errors
2766
2755
  **/
@@ -2829,6 +2818,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2829
2818
  **/
2830
2819
  BadWitnessData: GenericPalletError<Rv>;
2831
2820
 
2821
+ /**
2822
+ * Too many invulnerable accounts are provided,
2823
+ **/
2824
+ TooManyInvulnerables: GenericPalletError<Rv>;
2825
+
2832
2826
  /**
2833
2827
  * Generic pallet error
2834
2828
  **/
@@ -3234,82 +3228,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3234
3228
  **/
3235
3229
  AccountIdentical: GenericPalletError<Rv>;
3236
3230
 
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
3231
  /**
3314
3232
  * Generic pallet error
3315
3233
  **/
@@ -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
  **/
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,12 +19,13 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
24
26
  /**
25
27
  * @name: WestendAssetHubApi
26
- * @specVersion: 1018012
28
+ * @specVersion: 1018013
27
29
  **/
28
30
  export interface WestendAssetHubApi {
29
31
  legacy: VersionedWestendAssetHubApi<RpcLegacy>;