@dedot/chaintypes 0.149.0 → 0.151.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.
@@ -25,7 +25,7 @@ export interface VersionedBasiliskApi<Rv extends RpcVersion> extends GenericSubs
25
25
 
26
26
  /**
27
27
  * @name: BasiliskApi
28
- * @specVersion: 126
28
+ * @specVersion: 127
29
29
  **/
30
30
  export interface BasiliskApi {
31
31
  legacy: VersionedBasiliskApi<RpcLegacy>;
@@ -269,6 +269,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
269
269
  **/
270
270
  maxExposurePageSize: number;
271
271
 
272
+ /**
273
+ * The absolute maximum of winner validators this pallet should return.
274
+ **/
275
+ maxValidatorSet: number;
276
+
272
277
  /**
273
278
  * The maximum number of `unlocking` chunks a [`StakingLedger`] can
274
279
  * have. Effectively determines how many unique eras a staker may be
@@ -310,6 +315,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
310
315
  * Pallet `Session`'s constants
311
316
  **/
312
317
  session: {
318
+ /**
319
+ * The amount to be held when setting keys.
320
+ **/
321
+ keyDeposit: bigint;
322
+
313
323
  /**
314
324
  * Generic pallet constant
315
325
  **/
@@ -941,12 +951,18 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
941
951
  signedDepositWeight: bigint;
942
952
 
943
953
  /**
944
- * The maximum number of winners that can be elected by this `ElectionProvider`
945
- * implementation.
954
+ * Maximum number of winners that an election supports.
946
955
  *
947
956
  * Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
948
957
  **/
949
958
  maxWinners: number;
959
+
960
+ /**
961
+ * Maximum number of voters that can support a winner in an election solution.
962
+ *
963
+ * This is needed to ensure election computation is bounded.
964
+ **/
965
+ maxBackersPerWinner: number;
950
966
  minerMaxLength: number;
951
967
  minerMaxWeight: SpWeightsWeightV2Weight;
952
968
  minerMaxVotesPerVoter: number;
@@ -1125,6 +1141,14 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1125
1141
  **/
1126
1142
  bagThresholds: Array<bigint>;
1127
1143
 
1144
+ /**
1145
+ * Maximum number of accounts that may be re-bagged automatically in `on_idle`.
1146
+ *
1147
+ * A value of `0` (obtained by configuring `type MaxAutoRebagPerBlock = ();`) disables
1148
+ * the feature.
1149
+ **/
1150
+ maxAutoRebagPerBlock: number;
1151
+
1128
1152
  /**
1129
1153
  * Generic pallet constant
1130
1154
  **/
@@ -1463,12 +1487,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1463
1487
  * Pallet `XcmPallet`'s constants
1464
1488
  **/
1465
1489
  xcmPallet: {
1490
+ /**
1491
+ * This chain's Universal Location.
1492
+ **/
1493
+ universalLocation: StagingXcmV5Junctions;
1494
+
1466
1495
  /**
1467
1496
  * The latest supported version that we advertise. Generally just set it to
1468
1497
  * `pallet_xcm::CurrentXcmVersion`.
1469
1498
  **/
1470
1499
  advertisedXcmVersion: number;
1471
1500
 
1501
+ /**
1502
+ * The maximum number of local XCM locks that a single account may have.
1503
+ **/
1504
+ maxLockers: number;
1505
+
1506
+ /**
1507
+ * The maximum number of consumers a single remote lock may have.
1508
+ **/
1509
+ maxRemoteLockConsumers: number;
1510
+
1472
1511
  /**
1473
1512
  * Generic pallet constant
1474
1513
  **/
@@ -1066,6 +1066,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1066
1066
  **/
1067
1067
  NoVotes: GenericPalletError<Rv>;
1068
1068
 
1069
+ /**
1070
+ * There is no deposit associated with a bid.
1071
+ **/
1072
+ NoDeposit: GenericPalletError<Rv>;
1073
+
1069
1074
  /**
1070
1075
  * Generic pallet error
1071
1076
  **/
@@ -1467,6 +1472,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1467
1472
  **/
1468
1473
  TooManyQueued: GenericPalletError<Rv>;
1469
1474
 
1475
+ /**
1476
+ * User is not the proposer of the bounty.
1477
+ **/
1478
+ NotProposer: GenericPalletError<Rv>;
1479
+
1470
1480
  /**
1471
1481
  * Generic pallet error
1472
1482
  **/
@@ -1743,6 +1753,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1743
1753
  **/
1744
1754
  List: GenericPalletError<Rv>;
1745
1755
 
1756
+ /**
1757
+ * Could not update a node, because the pallet is locked.
1758
+ **/
1759
+ Locked: GenericPalletError<Rv>;
1760
+
1746
1761
  /**
1747
1762
  * Generic pallet error
1748
1763
  **/
@@ -2281,6 +2296,21 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2281
2296
  **/
2282
2297
  InvalidCode: GenericPalletError<Rv>;
2283
2298
 
2299
+ /**
2300
+ * No upgrade authorized.
2301
+ **/
2302
+ NothingAuthorized: GenericPalletError<Rv>;
2303
+
2304
+ /**
2305
+ * The submitted code is not authorized.
2306
+ **/
2307
+ Unauthorized: GenericPalletError<Rv>;
2308
+
2309
+ /**
2310
+ * Invalid block number.
2311
+ **/
2312
+ InvalidBlockNumber: GenericPalletError<Rv>;
2313
+
2284
2314
  /**
2285
2315
  * Generic pallet error
2286
2316
  **/
@@ -2954,6 +2984,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2954
2984
 
2955
2985
  /**
2956
2986
  * Too many locations authorized to alias origin.
2987
+ *
2988
+ * @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
2957
2989
  **/
2958
2990
  TooManyAuthorizedAliases: GenericPalletError<Rv>;
2959
2991
 
@@ -2967,6 +2999,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2967
2999
  **/
2968
3000
  AliasNotFound: GenericPalletError<Rv>;
2969
3001
 
3002
+ /**
3003
+ * Local XCM execution incomplete with the actual XCM error and the index of the
3004
+ * instruction that caused the error.
3005
+ **/
3006
+ LocalExecutionIncompleteWithError: GenericPalletError<Rv>;
3007
+
2970
3008
  /**
2971
3009
  * Generic pallet error
2972
3010
  **/
@@ -16,6 +16,7 @@ import type {
16
16
  import type {
17
17
  FrameSystemDispatchEventInfo,
18
18
  FrameSupportTokensMiscBalanceStatus,
19
+ PalletBalancesUnexpectedKind,
19
20
  PalletStakingRewardDestination,
20
21
  PalletStakingValidatorPrefs,
21
22
  PalletStakingForcing,
@@ -32,6 +33,7 @@ import type {
32
33
  StagingKusamaRuntimeRuntimeParametersKey,
33
34
  StagingKusamaRuntimeRuntimeParametersValue,
34
35
  PalletSocietyGroupParams,
36
+ PalletRecoveryDepositKind,
35
37
  KusamaRuntimeConstantsProxyProxyType,
36
38
  PalletProxyDepositKind,
37
39
  PalletMultisigTimepoint,
@@ -285,6 +287,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
285
287
  **/
286
288
  TotalIssuanceForced: GenericPalletEvent<Rv, 'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
287
289
 
290
+ /**
291
+ * An unexpected/defensive event was triggered.
292
+ **/
293
+ Unexpected: GenericPalletEvent<Rv, 'Balances', 'Unexpected', PalletBalancesUnexpectedKind>;
294
+
288
295
  /**
289
296
  * Generic pallet event
290
297
  **/
@@ -473,6 +480,25 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
473
480
  **/
474
481
  [prop: string]: GenericPalletEvent<Rv>;
475
482
  };
483
+ /**
484
+ * Pallet `Historical`'s events
485
+ **/
486
+ historical: {
487
+ /**
488
+ * The merkle root of the validators of the said session were stored
489
+ **/
490
+ RootStored: GenericPalletEvent<Rv, 'Historical', 'RootStored', { index: number }>;
491
+
492
+ /**
493
+ * The merkle roots of up to this session index were pruned
494
+ **/
495
+ RootsPruned: GenericPalletEvent<Rv, 'Historical', 'RootsPruned', { upTo: number }>;
496
+
497
+ /**
498
+ * Generic pallet event
499
+ **/
500
+ [prop: string]: GenericPalletEvent<Rv>;
501
+ };
476
502
  /**
477
503
  * Pallet `Session`'s events
478
504
  **/
@@ -483,6 +509,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
483
509
  **/
484
510
  NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
485
511
 
512
+ /**
513
+ * The `NewSession` event in the current block also implies a new validator set to be
514
+ * queued.
515
+ **/
516
+ NewQueued: GenericPalletEvent<Rv, 'Session', 'NewQueued', null>;
517
+
486
518
  /**
487
519
  * Validator has been disabled.
488
520
  **/
@@ -1610,6 +1642,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1610
1642
  **/
1611
1643
  Elevated: GenericPalletEvent<Rv, 'Society', 'Elevated', { member: AccountId32; rank: number }>;
1612
1644
 
1645
+ /**
1646
+ * A deposit was poked / adjusted.
1647
+ **/
1648
+ DepositPoked: GenericPalletEvent<
1649
+ Rv,
1650
+ 'Society',
1651
+ 'DepositPoked',
1652
+ { who: AccountId32; oldDeposit: bigint; newDeposit: bigint }
1653
+ >;
1654
+
1613
1655
  /**
1614
1656
  * Generic pallet event
1615
1657
  **/
@@ -1669,6 +1711,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1669
1711
  **/
1670
1712
  RecoveryRemoved: GenericPalletEvent<Rv, 'Recovery', 'RecoveryRemoved', { lostAccount: AccountId32 }>;
1671
1713
 
1714
+ /**
1715
+ * A deposit has been updated.
1716
+ **/
1717
+ DepositPoked: GenericPalletEvent<
1718
+ Rv,
1719
+ 'Recovery',
1720
+ 'DepositPoked',
1721
+ { who: AccountId32; kind: PalletRecoveryDepositKind; oldDeposit: bigint; newDeposit: bigint }
1722
+ >;
1723
+
1672
1724
  /**
1673
1725
  * Generic pallet event
1674
1726
  **/
@@ -1678,6 +1730,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1678
1730
  * Pallet `Vesting`'s events
1679
1731
  **/
1680
1732
  vesting: {
1733
+ /**
1734
+ * A vesting schedule has been created.
1735
+ **/
1736
+ VestingCreated: GenericPalletEvent<
1737
+ Rv,
1738
+ 'Vesting',
1739
+ 'VestingCreated',
1740
+ { account: AccountId32; scheduleIndex: number }
1741
+ >;
1742
+
1681
1743
  /**
1682
1744
  * The amount vested has been updated. This could indicate a change in funds available.
1683
1745
  * The balance given is the amount which is left unvested (and thus locked).
@@ -1814,6 +1876,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1814
1876
  }
1815
1877
  >;
1816
1878
 
1879
+ /**
1880
+ * A pure proxy was killed by its spawner.
1881
+ **/
1882
+ PureKilled: GenericPalletEvent<
1883
+ Rv,
1884
+ 'Proxy',
1885
+ 'PureKilled',
1886
+ {
1887
+ pure: AccountId32;
1888
+ spawner: AccountId32;
1889
+ proxyType: KusamaRuntimeConstantsProxyProxyType;
1890
+ disambiguationIndex: number;
1891
+ }
1892
+ >;
1893
+
1817
1894
  /**
1818
1895
  * An announcement was placed to make a call in the future.
1819
1896
  **/
@@ -2007,6 +2084,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2007
2084
  **/
2008
2085
  CuratorAccepted: GenericPalletEvent<Rv, 'Bounties', 'CuratorAccepted', { bountyId: number; curator: AccountId32 }>;
2009
2086
 
2087
+ /**
2088
+ * A bounty deposit has been poked.
2089
+ **/
2090
+ DepositPoked: GenericPalletEvent<
2091
+ Rv,
2092
+ 'Bounties',
2093
+ 'DepositPoked',
2094
+ { bountyId: number; proposer: AccountId32; oldDeposit: bigint; newDeposit: bigint }
2095
+ >;
2096
+
2010
2097
  /**
2011
2098
  * Generic pallet event
2012
2099
  **/
@@ -2352,6 +2439,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2352
2439
  { old: bigint; new: bigint }
2353
2440
  >;
2354
2441
 
2442
+ /**
2443
+ * An unexpected/defensive event was triggered.
2444
+ **/
2445
+ Unexpected: GenericPalletEvent<Rv, 'NisCounterpartBalances', 'Unexpected', PalletBalancesUnexpectedKind>;
2446
+
2355
2447
  /**
2356
2448
  * Generic pallet event
2357
2449
  **/
@@ -2849,6 +2941,46 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2849
2941
  [PolkadotParachainPrimitivesPrimitivesValidationCodeHash, PolkadotParachainPrimitivesPrimitivesId]
2850
2942
  >;
2851
2943
 
2944
+ /**
2945
+ * The upgrade cooldown was removed.
2946
+ **/
2947
+ UpgradeCooldownRemoved: GenericPalletEvent<
2948
+ Rv,
2949
+ 'Paras',
2950
+ 'UpgradeCooldownRemoved',
2951
+ {
2952
+ /**
2953
+ * The parachain for which the cooldown got removed.
2954
+ **/
2955
+ paraId: PolkadotParachainPrimitivesPrimitivesId;
2956
+ }
2957
+ >;
2958
+
2959
+ /**
2960
+ * A new code hash has been authorized for a Para.
2961
+ **/
2962
+ CodeAuthorized: GenericPalletEvent<
2963
+ Rv,
2964
+ 'Paras',
2965
+ 'CodeAuthorized',
2966
+ {
2967
+ /**
2968
+ * Para
2969
+ **/
2970
+ paraId: PolkadotParachainPrimitivesPrimitivesId;
2971
+
2972
+ /**
2973
+ * Authorized code hash.
2974
+ **/
2975
+ codeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash;
2976
+
2977
+ /**
2978
+ * Block at which authorization expires and will be removed.
2979
+ **/
2980
+ expireAt: number;
2981
+ }
2982
+ >;
2983
+
2852
2984
  /**
2853
2985
  * Generic pallet event
2854
2986
  **/
package/kusama/index.d.ts CHANGED
@@ -25,7 +25,7 @@ export interface VersionedKusamaApi<Rv extends RpcVersion> extends GenericSubstr
25
25
 
26
26
  /**
27
27
  * @name: KusamaApi
28
- * @specVersion: 1006001
28
+ * @specVersion: 1007001
29
29
  **/
30
30
  export interface KusamaApi {
31
31
  legacy: VersionedKusamaApi<RpcLegacy>;
package/kusama/query.d.ts CHANGED
@@ -121,6 +121,7 @@ import type {
121
121
  PolkadotRuntimeParachainsParasParaLifecycle,
122
122
  PolkadotParachainPrimitivesPrimitivesHeadData,
123
123
  PolkadotRuntimeParachainsParasParaPastCodeMeta,
124
+ PolkadotRuntimeParachainsParasAuthorizedCodeHashAndExpiry,
124
125
  PolkadotPrimitivesV8UpgradeGoAhead,
125
126
  PolkadotPrimitivesV8UpgradeRestriction,
126
127
  PolkadotRuntimeParachainsParasParaGenesisArgs,
@@ -2092,6 +2093,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2092
2093
  *
2093
2094
  * @param {H256} arg
2094
2095
  * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
2096
+ *
2097
+ * @deprecated RequestStatusFor
2095
2098
  **/
2096
2099
  statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
2097
2100
 
@@ -2517,6 +2520,24 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2517
2520
  **/
2518
2521
  listBags: GenericStorageQuery<Rv, (arg: bigint) => PalletBagsListListBag | undefined, bigint>;
2519
2522
 
2523
+ /**
2524
+ * Pointer that remembers the next node that will be auto-rebagged.
2525
+ * When `None`, the next scan will start from the list head again.
2526
+ *
2527
+ * @param {Callback<AccountId32 | undefined> =} callback
2528
+ **/
2529
+ nextNodeAutoRebagged: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
2530
+
2531
+ /**
2532
+ * Lock all updates to this pallet.
2533
+ *
2534
+ * If any nodes needs updating, removal or addition due to a temporary lock, the
2535
+ * [`Call::rebag`] can be used.
2536
+ *
2537
+ * @param {Callback<[] | undefined> =} callback
2538
+ **/
2539
+ lock: GenericStorageQuery<Rv, () => [] | undefined>;
2540
+
2520
2541
  /**
2521
2542
  * Generic pallet storage query
2522
2543
  **/
@@ -3172,6 +3193,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3172
3193
  PolkadotParachainPrimitivesPrimitivesId
3173
3194
  >;
3174
3195
 
3196
+ /**
3197
+ * The code hash authorizations for a para which will expire `expire_at` `BlockNumberFor<T>`.
3198
+ *
3199
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3200
+ * @param {Callback<PolkadotRuntimeParachainsParasAuthorizedCodeHashAndExpiry | undefined> =} callback
3201
+ **/
3202
+ authorizedCodeHash: GenericStorageQuery<
3203
+ Rv,
3204
+ (
3205
+ arg: PolkadotParachainPrimitivesPrimitivesId,
3206
+ ) => PolkadotRuntimeParachainsParasAuthorizedCodeHashAndExpiry | undefined,
3207
+ PolkadotParachainPrimitivesPrimitivesId
3208
+ >;
3209
+
3175
3210
  /**
3176
3211
  * This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade
3177
3212
  * procedure.