@dedot/chaintypes 0.18.0 → 0.20.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/paseo/errors.d.ts CHANGED
@@ -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
  **/
@@ -134,6 +139,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
134
139
  **/
135
140
  TooFew: GenericPalletError<Rv>;
136
141
 
142
+ /**
143
+ * No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
144
+ **/
145
+ NoCost: GenericPalletError<Rv>;
146
+
137
147
  /**
138
148
  * Generic pallet error
139
149
  **/
@@ -419,6 +429,21 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
419
429
  **/
420
430
  CannotRestoreLedger: GenericPalletError<Rv>;
421
431
 
432
+ /**
433
+ * Provided reward destination is not allowed.
434
+ **/
435
+ RewardDestinationRestricted: GenericPalletError<Rv>;
436
+
437
+ /**
438
+ * Not enough funds available to withdraw.
439
+ **/
440
+ NotEnoughFunds: GenericPalletError<Rv>;
441
+
442
+ /**
443
+ * Operation not allowed for virtual stakers.
444
+ **/
445
+ VirtualStakerNotAllowed: GenericPalletError<Rv>;
446
+
422
447
  /**
423
448
  * Generic pallet error
424
449
  **/
@@ -508,11 +533,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
508
533
  * Pallet `Treasury`'s errors
509
534
  **/
510
535
  treasury: {
511
- /**
512
- * Proposer's balance is too low.
513
- **/
514
- InsufficientProposersBalance: GenericPalletError<Rv>;
515
-
516
536
  /**
517
537
  * No proposal, bounty or spend at that index.
518
538
  **/
@@ -605,7 +625,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
605
625
 
606
626
  /**
607
627
  * The account currently has votes attached to it and the operation cannot succeed until
608
- * these are removed, either through `unvote` or `reap_vote`.
628
+ * these are removed through `remove_vote`.
609
629
  **/
610
630
  AlreadyVoting: GenericPalletError<Rv>;
611
631
 
@@ -713,6 +733,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
713
733
  **/
714
734
  PreimageNotExist: GenericPalletError<Rv>;
715
735
 
736
+ /**
737
+ * The preimage is stored with a different length than the one provided.
738
+ **/
739
+ PreimageStoredWithDifferentLength: GenericPalletError<Rv>;
740
+
716
741
  /**
717
742
  * Generic pallet error
718
743
  **/
@@ -841,145 +866,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
841
866
  **/
842
867
  [error: string]: GenericPalletError<Rv>;
843
868
  };
844
- /**
845
- * Pallet `Identity`'s errors
846
- **/
847
- identity: {
848
- /**
849
- * Too many subs-accounts.
850
- **/
851
- TooManySubAccounts: GenericPalletError<Rv>;
852
-
853
- /**
854
- * Account isn't found.
855
- **/
856
- NotFound: GenericPalletError<Rv>;
857
-
858
- /**
859
- * Account isn't named.
860
- **/
861
- NotNamed: GenericPalletError<Rv>;
862
-
863
- /**
864
- * Empty index.
865
- **/
866
- EmptyIndex: GenericPalletError<Rv>;
867
-
868
- /**
869
- * Fee is changed.
870
- **/
871
- FeeChanged: GenericPalletError<Rv>;
872
-
873
- /**
874
- * No identity found.
875
- **/
876
- NoIdentity: GenericPalletError<Rv>;
877
-
878
- /**
879
- * Sticky judgement.
880
- **/
881
- StickyJudgement: GenericPalletError<Rv>;
882
-
883
- /**
884
- * Judgement given.
885
- **/
886
- JudgementGiven: GenericPalletError<Rv>;
887
-
888
- /**
889
- * Invalid judgement.
890
- **/
891
- InvalidJudgement: GenericPalletError<Rv>;
892
-
893
- /**
894
- * The index is invalid.
895
- **/
896
- InvalidIndex: GenericPalletError<Rv>;
897
-
898
- /**
899
- * The target is invalid.
900
- **/
901
- InvalidTarget: GenericPalletError<Rv>;
902
-
903
- /**
904
- * Maximum amount of registrars reached. Cannot add any more.
905
- **/
906
- TooManyRegistrars: GenericPalletError<Rv>;
907
-
908
- /**
909
- * Account ID is already named.
910
- **/
911
- AlreadyClaimed: GenericPalletError<Rv>;
912
-
913
- /**
914
- * Sender is not a sub-account.
915
- **/
916
- NotSub: GenericPalletError<Rv>;
917
-
918
- /**
919
- * Sub-account isn't owned by sender.
920
- **/
921
- NotOwned: GenericPalletError<Rv>;
922
-
923
- /**
924
- * The provided judgement was for a different identity.
925
- **/
926
- JudgementForDifferentIdentity: GenericPalletError<Rv>;
927
-
928
- /**
929
- * Error that occurs when there is an issue paying for judgement.
930
- **/
931
- JudgementPaymentFailed: GenericPalletError<Rv>;
932
-
933
- /**
934
- * The provided suffix is too long.
935
- **/
936
- InvalidSuffix: GenericPalletError<Rv>;
937
-
938
- /**
939
- * The sender does not have permission to issue a username.
940
- **/
941
- NotUsernameAuthority: GenericPalletError<Rv>;
942
-
943
- /**
944
- * The authority cannot allocate any more usernames.
945
- **/
946
- NoAllocation: GenericPalletError<Rv>;
947
-
948
- /**
949
- * The signature on a username was not valid.
950
- **/
951
- InvalidSignature: GenericPalletError<Rv>;
952
-
953
- /**
954
- * Setting this username requires a signature, but none was provided.
955
- **/
956
- RequiresSignature: GenericPalletError<Rv>;
957
-
958
- /**
959
- * The username does not meet the requirements.
960
- **/
961
- InvalidUsername: GenericPalletError<Rv>;
962
-
963
- /**
964
- * The username is already taken.
965
- **/
966
- UsernameTaken: GenericPalletError<Rv>;
967
-
968
- /**
969
- * The requested username does not exist.
970
- **/
971
- NoUsername: GenericPalletError<Rv>;
972
-
973
- /**
974
- * The username cannot be forcefully removed because it can still be accepted.
975
- **/
976
- NotExpired: GenericPalletError<Rv>;
977
-
978
- /**
979
- * Generic pallet error
980
- **/
981
- [error: string]: GenericPalletError<Rv>;
982
- };
983
869
  /**
984
870
  * Pallet `Proxy`'s errors
985
871
  **/
@@ -1272,7 +1158,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1272
1158
  TooManyWinners: GenericPalletError<Rv>;
1273
1159
 
1274
1160
  /**
1275
- * Sumission was prepared for a different round.
1161
+ * Submission was prepared for a different round.
1276
1162
  **/
1277
1163
  PreDispatchDifferentRound: GenericPalletError<Rv>;
1278
1164
 
@@ -1467,6 +1353,26 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1467
1353
  **/
1468
1354
  NothingToAdjust: GenericPalletError<Rv>;
1469
1355
 
1356
+ /**
1357
+ * No slash pending that can be applied to the member.
1358
+ **/
1359
+ NothingToSlash: GenericPalletError<Rv>;
1360
+
1361
+ /**
1362
+ * The pool or member delegation has already migrated to delegate stake.
1363
+ **/
1364
+ AlreadyMigrated: GenericPalletError<Rv>;
1365
+
1366
+ /**
1367
+ * The pool or member delegation has not migrated yet to delegate stake.
1368
+ **/
1369
+ NotMigrated: GenericPalletError<Rv>;
1370
+
1371
+ /**
1372
+ * This call is not allowed in the current state of the pallet.
1373
+ **/
1374
+ NotSupported: GenericPalletError<Rv>;
1375
+
1470
1376
  /**
1471
1377
  * Generic pallet error
1472
1378
  **/
@@ -1531,66 +1437,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1531
1437
  * Pallet `ParaInclusion`'s errors
1532
1438
  **/
1533
1439
  paraInclusion: {
1534
- /**
1535
- * Validator indices are out of order or contains duplicates.
1536
- **/
1537
- UnsortedOrDuplicateValidatorIndices: GenericPalletError<Rv>;
1538
-
1539
- /**
1540
- * Dispute statement sets are out of order or contain duplicates.
1541
- **/
1542
- UnsortedOrDuplicateDisputeStatementSet: GenericPalletError<Rv>;
1543
-
1544
- /**
1545
- * Backed candidates are out of order (core index) or contain duplicates.
1546
- **/
1547
- UnsortedOrDuplicateBackedCandidates: GenericPalletError<Rv>;
1548
-
1549
- /**
1550
- * A different relay parent was provided compared to the on-chain stored one.
1551
- **/
1552
- UnexpectedRelayParent: GenericPalletError<Rv>;
1553
-
1554
- /**
1555
- * Availability bitfield has unexpected size.
1556
- **/
1557
- WrongBitfieldSize: GenericPalletError<Rv>;
1558
-
1559
- /**
1560
- * Bitfield consists of zeros only.
1561
- **/
1562
- BitfieldAllZeros: GenericPalletError<Rv>;
1563
-
1564
- /**
1565
- * Multiple bitfields submitted by same validator or validators out of order by index.
1566
- **/
1567
- BitfieldDuplicateOrUnordered: GenericPalletError<Rv>;
1568
-
1569
1440
  /**
1570
1441
  * Validator index out of bounds.
1571
1442
  **/
1572
1443
  ValidatorIndexOutOfBounds: GenericPalletError<Rv>;
1573
1444
 
1574
- /**
1575
- * Invalid signature
1576
- **/
1577
- InvalidBitfieldSignature: GenericPalletError<Rv>;
1578
-
1579
1445
  /**
1580
1446
  * Candidate submitted but para not scheduled.
1581
1447
  **/
1582
1448
  UnscheduledCandidate: GenericPalletError<Rv>;
1583
1449
 
1584
- /**
1585
- * Candidate scheduled despite pending candidate already existing for the para.
1586
- **/
1587
- CandidateScheduledBeforeParaFree: GenericPalletError<Rv>;
1588
-
1589
- /**
1590
- * Scheduled cores out of order.
1591
- **/
1592
- ScheduledOutOfOrder: GenericPalletError<Rv>;
1593
-
1594
1450
  /**
1595
1451
  * Head data exceeds the configured maximum.
1596
1452
  **/
@@ -1674,13 +1530,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1674
1530
  **/
1675
1531
  ParaHeadMismatch: GenericPalletError<Rv>;
1676
1532
 
1677
- /**
1678
- * A bitfield that references a freed core,
1679
- * either intentionally or as part of a concluded
1680
- * invalid dispute.
1681
- **/
1682
- BitfieldReferencesFreedCore: GenericPalletError<Rv>;
1683
-
1684
1533
  /**
1685
1534
  * Generic pallet error
1686
1535
  **/
@@ -1701,35 +1550,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1701
1550
  **/
1702
1551
  InvalidParentHeader: GenericPalletError<Rv>;
1703
1552
 
1704
- /**
1705
- * Disputed candidate that was concluded invalid.
1706
- **/
1707
- CandidateConcludedInvalid: GenericPalletError<Rv>;
1708
-
1709
1553
  /**
1710
1554
  * The data given to the inherent will result in an overweight block.
1711
1555
  **/
1712
1556
  InherentOverweight: GenericPalletError<Rv>;
1713
1557
 
1714
1558
  /**
1715
- * The ordering of dispute statements was invalid.
1716
- **/
1717
- DisputeStatementsUnsortedOrDuplicates: GenericPalletError<Rv>;
1718
-
1719
- /**
1720
- * A dispute statement was invalid.
1721
- **/
1722
- DisputeInvalid: GenericPalletError<Rv>;
1723
-
1724
- /**
1725
- * A candidate was backed by a disabled validator
1559
+ * A candidate was filtered during inherent execution. This should have only been done
1560
+ * during creation.
1726
1561
  **/
1727
- BackedByDisabled: GenericPalletError<Rv>;
1728
-
1729
- /**
1730
- * A candidate was backed even though the paraid was not scheduled.
1731
- **/
1732
- BackedOnUnscheduledCore: GenericPalletError<Rv>;
1562
+ CandidatesFilteredDuringExecution: GenericPalletError<Rv>;
1733
1563
 
1734
1564
  /**
1735
1565
  * Too many candidates supplied.
@@ -1805,6 +1635,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1805
1635
  **/
1806
1636
  CannotUpgradeCode: GenericPalletError<Rv>;
1807
1637
 
1638
+ /**
1639
+ * Invalid validation code size.
1640
+ **/
1641
+ InvalidCode: GenericPalletError<Rv>;
1642
+
1808
1643
  /**
1809
1644
  * Generic pallet error
1810
1645
  **/
@@ -2013,6 +1848,63 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2013
1848
  **/
2014
1849
  [error: string]: GenericPalletError<Rv>;
2015
1850
  };
1851
+ /**
1852
+ * Pallet `OnDemand`'s errors
1853
+ **/
1854
+ onDemand: {
1855
+ /**
1856
+ * The order queue is full, `place_order` will not continue.
1857
+ **/
1858
+ QueueFull: GenericPalletError<Rv>;
1859
+
1860
+ /**
1861
+ * The current spot price is higher than the max amount specified in the `place_order`
1862
+ * call, making it invalid.
1863
+ **/
1864
+ SpotPriceHigherThanMaxAmount: GenericPalletError<Rv>;
1865
+
1866
+ /**
1867
+ * Generic pallet error
1868
+ **/
1869
+ [error: string]: GenericPalletError<Rv>;
1870
+ };
1871
+ /**
1872
+ * Pallet `CoretimeAssignmentProvider`'s errors
1873
+ **/
1874
+ coretimeAssignmentProvider: {
1875
+ AssignmentsEmpty: GenericPalletError<Rv>;
1876
+
1877
+ /**
1878
+ * Assignments together exceeded 57600.
1879
+ **/
1880
+ OverScheduled: GenericPalletError<Rv>;
1881
+
1882
+ /**
1883
+ * Assignments together less than 57600
1884
+ **/
1885
+ UnderScheduled: GenericPalletError<Rv>;
1886
+
1887
+ /**
1888
+ * assign_core is only allowed to append new assignments at the end of already existing
1889
+ * ones.
1890
+ **/
1891
+ DisallowedInsert: GenericPalletError<Rv>;
1892
+
1893
+ /**
1894
+ * Tried to insert a schedule for the same core and block number as an existing schedule
1895
+ **/
1896
+ DuplicateInsert: GenericPalletError<Rv>;
1897
+
1898
+ /**
1899
+ * Tried to add an unsorted set of assignments
1900
+ **/
1901
+ AssignmentsNotSorted: GenericPalletError<Rv>;
1902
+
1903
+ /**
1904
+ * Generic pallet error
1905
+ **/
1906
+ [error: string]: GenericPalletError<Rv>;
1907
+ };
2016
1908
  /**
2017
1909
  * Pallet `Registrar`'s errors
2018
1910
  **/
@@ -2079,9 +1971,9 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2079
1971
  NotReserved: GenericPalletError<Rv>;
2080
1972
 
2081
1973
  /**
2082
- * Registering parachain with empty code is not allowed.
1974
+ * The validation code is invalid.
2083
1975
  **/
2084
- EmptyCode: GenericPalletError<Rv>;
1976
+ InvalidCode: GenericPalletError<Rv>;
2085
1977
 
2086
1978
  /**
2087
1979
  * Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras
@@ -2282,6 +2174,31 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2282
2174
  **/
2283
2175
  [error: string]: GenericPalletError<Rv>;
2284
2176
  };
2177
+ /**
2178
+ * Pallet `Coretime`'s errors
2179
+ **/
2180
+ coretime: {
2181
+ /**
2182
+ * The paraid making the call is not the coretime brokerage system parachain.
2183
+ **/
2184
+ NotBroker: GenericPalletError<Rv>;
2185
+
2186
+ /**
2187
+ * Requested revenue information `when` parameter was in the future from the current
2188
+ * block height.
2189
+ **/
2190
+ RequestedFutureRevenue: GenericPalletError<Rv>;
2191
+
2192
+ /**
2193
+ * Failed to transfer assets to the coretime chain
2194
+ **/
2195
+ AssetTransferFailed: GenericPalletError<Rv>;
2196
+
2197
+ /**
2198
+ * Generic pallet error
2199
+ **/
2200
+ [error: string]: GenericPalletError<Rv>;
2201
+ };
2285
2202
  /**
2286
2203
  * Pallet `StateTrieMigration`'s errors
2287
2204
  **/
@@ -2434,11 +2351,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2434
2351
  **/
2435
2352
  InUse: GenericPalletError<Rv>;
2436
2353
 
2437
- /**
2438
- * Invalid non-concrete asset.
2439
- **/
2440
- InvalidAssetNotConcrete: GenericPalletError<Rv>;
2441
-
2442
2354
  /**
2443
2355
  * Invalid asset, reserve chain could not be determined for it.
2444
2356
  **/
@@ -2538,6 +2450,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2538
2450
  **/
2539
2451
  AlreadyExists: GenericPalletError<Rv>;
2540
2452
 
2453
+ /**
2454
+ * Overflow ocurred when calculating the inverse rate.
2455
+ **/
2456
+ Overflow: GenericPalletError<Rv>;
2457
+
2541
2458
  /**
2542
2459
  * Generic pallet error
2543
2460
  **/