@dedot/chaintypes 0.14.0 → 0.16.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 (51) hide show
  1. package/kusama/consts.d.ts +48 -30
  2. package/kusama/errors.d.ts +89 -100
  3. package/kusama/events.d.ts +87 -28
  4. package/kusama/index.d.ts +1 -1
  5. package/kusama/query.d.ts +241 -130
  6. package/kusama/runtime.d.ts +347 -95
  7. package/kusama/tx.d.ts +3309 -456
  8. package/kusama/types.d.ts +6341 -1092
  9. package/kusama-asset-hub/consts.d.ts +52 -3
  10. package/kusama-asset-hub/errors.d.ts +30 -5
  11. package/kusama-asset-hub/events.d.ts +61 -1
  12. package/kusama-asset-hub/index.d.ts +1 -1
  13. package/kusama-asset-hub/query.d.ts +100 -18
  14. package/kusama-asset-hub/runtime.d.ts +186 -15
  15. package/kusama-asset-hub/tx.d.ts +3074 -254
  16. package/kusama-asset-hub/types.d.ts +6190 -551
  17. package/package.json +2 -2
  18. package/paseo/index.d.ts +1 -1
  19. package/rococo/errors.d.ts +0 -10
  20. package/rococo/events.d.ts +33 -12
  21. package/rococo/index.d.ts +1 -1
  22. package/rococo/query.d.ts +52 -52
  23. package/rococo/runtime.d.ts +117 -58
  24. package/rococo/tx.d.ts +33 -33
  25. package/rococo/types.d.ts +191 -185
  26. package/rococo-asset-hub/consts.d.ts +2 -2
  27. package/rococo-asset-hub/events.d.ts +87 -80
  28. package/rococo-asset-hub/index.d.ts +1 -1
  29. package/rococo-asset-hub/query.d.ts +66 -54
  30. package/rococo-asset-hub/runtime.d.ts +12 -15
  31. package/rococo-asset-hub/tx.d.ts +250 -241
  32. package/rococo-asset-hub/types.d.ts +353 -404
  33. package/westend/consts.d.ts +9 -0
  34. package/westend/errors.d.ts +0 -10
  35. package/westend/events.d.ts +79 -13
  36. package/westend/index.d.ts +1 -1
  37. package/westend/query.d.ts +75 -52
  38. package/westend/runtime.d.ts +133 -58
  39. package/westend/tx.d.ts +72 -35
  40. package/westend/types.d.ts +308 -190
  41. package/westend-asset-hub/consts.d.ts +2 -2
  42. package/westend-asset-hub/events.d.ts +87 -80
  43. package/westend-asset-hub/index.d.ts +1 -1
  44. package/westend-asset-hub/query.d.ts +66 -54
  45. package/westend-asset-hub/runtime.d.ts +12 -15
  46. package/westend-asset-hub/tx.d.ts +250 -241
  47. package/westend-asset-hub/types.d.ts +353 -404
  48. package/westend-people/index.d.ts +1 -1
  49. package/westend-people/query.d.ts +12 -12
  50. package/westend-people/tx.d.ts +1 -58
  51. package/westend-people/types.d.ts +16 -62
@@ -9,6 +9,7 @@ import type {
9
9
  FrameSupportPalletId,
10
10
  PalletReferendaTrackInfo,
11
11
  SpWeightsWeightV2Weight,
12
+ StagingXcmV4Junctions,
12
13
  } from './types';
13
14
 
14
15
  export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
@@ -37,7 +38,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
37
38
  dbWeight: SpWeightsRuntimeDbWeight;
38
39
 
39
40
  /**
40
- * Get the chain's current version.
41
+ * Get the chain's in-code version.
41
42
  **/
42
43
  version: RuntimeVersion;
43
44
 
@@ -142,11 +143,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
142
143
  /**
143
144
  * The maximum number of locks that should exist on an account.
144
145
  * Not strictly enforced, but used for weight estimation.
146
+ *
147
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
145
148
  **/
146
149
  maxLocks: number;
147
150
 
148
151
  /**
149
152
  * The maximum number of named reserves that can exist on an account.
153
+ *
154
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
150
155
  **/
151
156
  maxReserves: number;
152
157
 
@@ -352,22 +357,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
352
357
  * Pallet `Treasury`'s constants
353
358
  **/
354
359
  treasury: {
355
- /**
356
- * Fraction of a proposal's value that should be bonded in order to place the proposal.
357
- * An accepted proposal gets these back. A rejected proposal does not.
358
- **/
359
- proposalBond: Permill;
360
-
361
- /**
362
- * Minimum amount of funds that should be placed in a deposit for making a proposal.
363
- **/
364
- proposalBondMinimum: bigint;
365
-
366
- /**
367
- * Maximum amount of funds that should be placed in a deposit for making a proposal.
368
- **/
369
- proposalBondMaximum: bigint | undefined;
370
-
371
360
  /**
372
361
  * Period between successive spends.
373
362
  **/
@@ -526,6 +515,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
526
515
  **/
527
516
  [name: string]: any;
528
517
  };
518
+ /**
519
+ * Pallet `Parameters`'s constants
520
+ **/
521
+ parameters: {
522
+ /**
523
+ * Generic pallet constant
524
+ **/
525
+ [name: string]: any;
526
+ };
529
527
  /**
530
528
  * Pallet `Claims`'s constants
531
529
  **/
@@ -866,16 +864,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
866
864
  * Pallet `ElectionProviderMultiPhase`'s constants
867
865
  **/
868
866
  electionProviderMultiPhase: {
869
- /**
870
- * Duration of the unsigned phase.
871
- **/
872
- unsignedPhase: number;
873
-
874
- /**
875
- * Duration of the signed phase.
876
- **/
877
- signedPhase: number;
878
-
879
867
  /**
880
868
  * The minimum amount of improvement to the solution score that defines a solution as
881
869
  * "better" in the Signed phase.
@@ -1047,11 +1035,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1047
1035
  /**
1048
1036
  * The maximum number of locks that should exist on an account.
1049
1037
  * Not strictly enforced, but used for weight estimation.
1038
+ *
1039
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
1050
1040
  **/
1051
1041
  maxLocks: number;
1052
1042
 
1053
1043
  /**
1054
1044
  * The maximum number of named reserves that can exist on an account.
1045
+ *
1046
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
1055
1047
  **/
1056
1048
  maxReserves: number;
1057
1049
 
@@ -1299,6 +1291,17 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1299
1291
  **/
1300
1292
  trafficDefaultValue: FixedU128;
1301
1293
 
1294
+ /**
1295
+ * The maximum number of blocks some historical revenue
1296
+ * information stored for.
1297
+ **/
1298
+ maxHistoricalRevenue: number;
1299
+
1300
+ /**
1301
+ * Identifier for the internal revenue balance.
1302
+ **/
1303
+ palletId: FrameSupportPalletId;
1304
+
1302
1305
  /**
1303
1306
  * Generic pallet constant
1304
1307
  **/
@@ -1406,10 +1409,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1406
1409
  **/
1407
1410
  coretime: {
1408
1411
  /**
1409
- * The ParaId of the broker system parachain.
1412
+ * The ParaId of the coretime chain.
1410
1413
  **/
1411
1414
  brokerId: number;
1412
1415
 
1416
+ /**
1417
+ * The coretime chain pot location.
1418
+ **/
1419
+ brokerPotLocation: StagingXcmV4Junctions;
1420
+
1413
1421
  /**
1414
1422
  * Generic pallet constant
1415
1423
  **/
@@ -1446,13 +1454,23 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1446
1454
 
1447
1455
  /**
1448
1456
  * The amount of weight (if any) which should be provided to the message queue for
1449
- * servicing enqueued items.
1457
+ * servicing enqueued items `on_initialize`.
1450
1458
  *
1451
1459
  * This may be legitimately `None` in the case that you will call
1452
- * `ServiceQueues::service_queues` manually.
1460
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
1461
+ * it run in `on_idle`.
1453
1462
  **/
1454
1463
  serviceWeight: SpWeightsWeightV2Weight | undefined;
1455
1464
 
1465
+ /**
1466
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
1467
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
1468
+ * Useful for parachains to process messages at the same block they are received.
1469
+ *
1470
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
1471
+ **/
1472
+ idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
1473
+
1456
1474
  /**
1457
1475
  * Generic pallet constant
1458
1476
  **/
@@ -41,6 +41,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
41
41
  **/
42
42
  CallFiltered: GenericPalletError<Rv>;
43
43
 
44
+ /**
45
+ * A multi-block migration is ongoing and prevents the current code from being replaced.
46
+ **/
47
+ MultiBlockMigrationsOngoing: GenericPalletError<Rv>;
48
+
44
49
  /**
45
50
  * No upgrade authorized.
46
51
  **/
@@ -336,6 +341,21 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
336
341
  **/
337
342
  CannotRestoreLedger: GenericPalletError<Rv>;
338
343
 
344
+ /**
345
+ * Provided reward destination is not allowed.
346
+ **/
347
+ RewardDestinationRestricted: GenericPalletError<Rv>;
348
+
349
+ /**
350
+ * Not enough funds available to withdraw.
351
+ **/
352
+ NotEnoughFunds: GenericPalletError<Rv>;
353
+
354
+ /**
355
+ * Operation not allowed for virtual stakers.
356
+ **/
357
+ VirtualStakerNotAllowed: GenericPalletError<Rv>;
358
+
339
359
  /**
340
360
  * Generic pallet error
341
361
  **/
@@ -425,11 +445,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
425
445
  * Pallet `Treasury`'s errors
426
446
  **/
427
447
  treasury: {
428
- /**
429
- * Proposer's balance is too low.
430
- **/
431
- InsufficientProposersBalance: GenericPalletError<Rv>;
432
-
433
448
  /**
434
449
  * No proposal, bounty or spend at that index.
435
450
  **/
@@ -522,7 +537,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
522
537
 
523
538
  /**
524
539
  * The account currently has votes attached to it and the operation cannot succeed until
525
- * these are removed, either through `unvote` or `reap_vote`.
540
+ * these are removed through `remove_vote`.
526
541
  **/
527
542
  AlreadyVoting: GenericPalletError<Rv>;
528
543
 
@@ -630,6 +645,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
630
645
  **/
631
646
  PreimageNotExist: GenericPalletError<Rv>;
632
647
 
648
+ /**
649
+ * The preimage is stored with a different length than the one provided.
650
+ **/
651
+ PreimageStoredWithDifferentLength: GenericPalletError<Rv>;
652
+
633
653
  /**
634
654
  * Generic pallet error
635
655
  **/
@@ -689,6 +709,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
689
709
  **/
690
710
  SameMember: GenericPalletError<Rv>;
691
711
 
712
+ /**
713
+ * The max member count for the rank has been reached.
714
+ **/
715
+ TooManyMembers: GenericPalletError<Rv>;
716
+
692
717
  /**
693
718
  * Generic pallet error
694
719
  **/
@@ -763,6 +788,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
763
788
  **/
764
789
  PreimageNotExist: GenericPalletError<Rv>;
765
790
 
791
+ /**
792
+ * The preimage is stored with a different length than the one provided.
793
+ **/
794
+ PreimageStoredWithDifferentLength: GenericPalletError<Rv>;
795
+
766
796
  /**
767
797
  * Generic pallet error
768
798
  **/
@@ -1355,6 +1385,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1355
1385
  **/
1356
1386
  TooFew: GenericPalletError<Rv>;
1357
1387
 
1388
+ /**
1389
+ * No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
1390
+ **/
1391
+ NoCost: GenericPalletError<Rv>;
1392
+
1358
1393
  /**
1359
1394
  * Generic pallet error
1360
1395
  **/
@@ -1524,7 +1559,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1524
1559
  TooManyWinners: GenericPalletError<Rv>;
1525
1560
 
1526
1561
  /**
1527
- * Sumission was prepared for a different round.
1562
+ * Submission was prepared for a different round.
1528
1563
  **/
1529
1564
  PreDispatchDifferentRound: GenericPalletError<Rv>;
1530
1565
 
@@ -1599,7 +1634,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1599
1634
  Throttled: GenericPalletError<Rv>;
1600
1635
 
1601
1636
  /**
1602
- * The operation would result in a receipt worth an insignficant value.
1637
+ * The operation would result in a receipt worth an insignificant value.
1603
1638
  **/
1604
1639
  MakesDust: GenericPalletError<Rv>;
1605
1640
 
@@ -1873,6 +1908,26 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1873
1908
  **/
1874
1909
  NothingToAdjust: GenericPalletError<Rv>;
1875
1910
 
1911
+ /**
1912
+ * No slash pending that can be applied to the member.
1913
+ **/
1914
+ NothingToSlash: GenericPalletError<Rv>;
1915
+
1916
+ /**
1917
+ * The pool or member delegation has already migrated to delegate stake.
1918
+ **/
1919
+ AlreadyMigrated: GenericPalletError<Rv>;
1920
+
1921
+ /**
1922
+ * The pool or member delegation has not migrated yet to delegate stake.
1923
+ **/
1924
+ NotMigrated: GenericPalletError<Rv>;
1925
+
1926
+ /**
1927
+ * This call is not allowed in the current state of the pallet.
1928
+ **/
1929
+ NotSupported: GenericPalletError<Rv>;
1930
+
1876
1931
  /**
1877
1932
  * Generic pallet error
1878
1933
  **/
@@ -1937,66 +1992,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1937
1992
  * Pallet `ParaInclusion`'s errors
1938
1993
  **/
1939
1994
  paraInclusion: {
1940
- /**
1941
- * Validator indices are out of order or contains duplicates.
1942
- **/
1943
- UnsortedOrDuplicateValidatorIndices: GenericPalletError<Rv>;
1944
-
1945
- /**
1946
- * Dispute statement sets are out of order or contain duplicates.
1947
- **/
1948
- UnsortedOrDuplicateDisputeStatementSet: GenericPalletError<Rv>;
1949
-
1950
- /**
1951
- * Backed candidates are out of order (core index) or contain duplicates.
1952
- **/
1953
- UnsortedOrDuplicateBackedCandidates: GenericPalletError<Rv>;
1954
-
1955
- /**
1956
- * A different relay parent was provided compared to the on-chain stored one.
1957
- **/
1958
- UnexpectedRelayParent: GenericPalletError<Rv>;
1959
-
1960
- /**
1961
- * Availability bitfield has unexpected size.
1962
- **/
1963
- WrongBitfieldSize: GenericPalletError<Rv>;
1964
-
1965
- /**
1966
- * Bitfield consists of zeros only.
1967
- **/
1968
- BitfieldAllZeros: GenericPalletError<Rv>;
1969
-
1970
- /**
1971
- * Multiple bitfields submitted by same validator or validators out of order by index.
1972
- **/
1973
- BitfieldDuplicateOrUnordered: GenericPalletError<Rv>;
1974
-
1975
1995
  /**
1976
1996
  * Validator index out of bounds.
1977
1997
  **/
1978
1998
  ValidatorIndexOutOfBounds: GenericPalletError<Rv>;
1979
1999
 
1980
- /**
1981
- * Invalid signature
1982
- **/
1983
- InvalidBitfieldSignature: GenericPalletError<Rv>;
1984
-
1985
2000
  /**
1986
2001
  * Candidate submitted but para not scheduled.
1987
2002
  **/
1988
2003
  UnscheduledCandidate: GenericPalletError<Rv>;
1989
2004
 
1990
- /**
1991
- * Candidate scheduled despite pending candidate already existing for the para.
1992
- **/
1993
- CandidateScheduledBeforeParaFree: GenericPalletError<Rv>;
1994
-
1995
- /**
1996
- * Scheduled cores out of order.
1997
- **/
1998
- ScheduledOutOfOrder: GenericPalletError<Rv>;
1999
-
2000
2005
  /**
2001
2006
  * Head data exceeds the configured maximum.
2002
2007
  **/
@@ -2080,13 +2085,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2080
2085
  **/
2081
2086
  ParaHeadMismatch: GenericPalletError<Rv>;
2082
2087
 
2083
- /**
2084
- * A bitfield that references a freed core,
2085
- * either intentionally or as part of a concluded
2086
- * invalid dispute.
2087
- **/
2088
- BitfieldReferencesFreedCore: GenericPalletError<Rv>;
2089
-
2090
2088
  /**
2091
2089
  * Generic pallet error
2092
2090
  **/
@@ -2107,35 +2105,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2107
2105
  **/
2108
2106
  InvalidParentHeader: GenericPalletError<Rv>;
2109
2107
 
2110
- /**
2111
- * Disputed candidate that was concluded invalid.
2112
- **/
2113
- CandidateConcludedInvalid: GenericPalletError<Rv>;
2114
-
2115
2108
  /**
2116
2109
  * The data given to the inherent will result in an overweight block.
2117
2110
  **/
2118
2111
  InherentOverweight: GenericPalletError<Rv>;
2119
2112
 
2120
2113
  /**
2121
- * The ordering of dispute statements was invalid.
2122
- **/
2123
- DisputeStatementsUnsortedOrDuplicates: GenericPalletError<Rv>;
2124
-
2125
- /**
2126
- * A dispute statement was invalid.
2114
+ * A candidate was filtered during inherent execution. This should have only been done
2115
+ * during creation.
2127
2116
  **/
2128
- DisputeInvalid: GenericPalletError<Rv>;
2129
-
2130
- /**
2131
- * A candidate was backed by a disabled validator
2132
- **/
2133
- BackedByDisabled: GenericPalletError<Rv>;
2134
-
2135
- /**
2136
- * A candidate was backed even though the paraid was not scheduled.
2137
- **/
2138
- BackedOnUnscheduledCore: GenericPalletError<Rv>;
2117
+ CandidatesFilteredDuringExecution: GenericPalletError<Rv>;
2139
2118
 
2140
2119
  /**
2141
2120
  * Too many candidates supplied.
@@ -2211,6 +2190,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2211
2190
  **/
2212
2191
  CannotUpgradeCode: GenericPalletError<Rv>;
2213
2192
 
2193
+ /**
2194
+ * Invalid validation code size.
2195
+ **/
2196
+ InvalidCode: GenericPalletError<Rv>;
2197
+
2214
2198
  /**
2215
2199
  * Generic pallet error
2216
2200
  **/
@@ -2423,12 +2407,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2423
2407
  * Pallet `OnDemandAssignmentProvider`'s errors
2424
2408
  **/
2425
2409
  onDemandAssignmentProvider: {
2426
- /**
2427
- * The `ParaId` supplied to the `place_order` call is not a valid `ParaThread`, making the
2428
- * call is invalid.
2429
- **/
2430
- InvalidParaId: GenericPalletError<Rv>;
2431
-
2432
2410
  /**
2433
2411
  * The order queue is full, `place_order` will not continue.
2434
2412
  **/
@@ -2548,9 +2526,9 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2548
2526
  NotReserved: GenericPalletError<Rv>;
2549
2527
 
2550
2528
  /**
2551
- * Registering parachain with empty code is not allowed.
2529
+ * The validation code is invalid.
2552
2530
  **/
2553
- EmptyCode: GenericPalletError<Rv>;
2531
+ InvalidCode: GenericPalletError<Rv>;
2554
2532
 
2555
2533
  /**
2556
2534
  * Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras
@@ -2760,6 +2738,17 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2760
2738
  **/
2761
2739
  NotBroker: GenericPalletError<Rv>;
2762
2740
 
2741
+ /**
2742
+ * Requested revenue information `when` parameter was in the future from the current
2743
+ * block height.
2744
+ **/
2745
+ RequestedFutureRevenue: GenericPalletError<Rv>;
2746
+
2747
+ /**
2748
+ * Failed to transfer assets to the coretime chain
2749
+ **/
2750
+ AssetTransferFailed: GenericPalletError<Rv>;
2751
+
2763
2752
  /**
2764
2753
  * Generic pallet error
2765
2754
  **/
@@ -2872,11 +2861,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2872
2861
  **/
2873
2862
  InUse: GenericPalletError<Rv>;
2874
2863
 
2875
- /**
2876
- * Invalid non-concrete asset.
2877
- **/
2878
- InvalidAssetNotConcrete: GenericPalletError<Rv>;
2879
-
2880
2864
  /**
2881
2865
  * Invalid asset, reserve chain could not be determined for it.
2882
2866
  **/
@@ -2976,6 +2960,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2976
2960
  **/
2977
2961
  AlreadyExists: GenericPalletError<Rv>;
2978
2962
 
2963
+ /**
2964
+ * Overflow ocurred when calculating the inverse rate.
2965
+ **/
2966
+ Overflow: GenericPalletError<Rv>;
2967
+
2979
2968
  /**
2980
2969
  * Generic pallet error
2981
2970
  **/