@dedot/chaintypes 0.41.0 → 0.43.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/astar/errors.d.ts CHANGED
@@ -342,6 +342,40 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
342
342
  **/
343
343
  [error: string]: GenericPalletError<Rv>;
344
344
  };
345
+ /**
346
+ * Pallet `Scheduler`'s errors
347
+ **/
348
+ scheduler: {
349
+ /**
350
+ * Failed to schedule a call
351
+ **/
352
+ FailedToSchedule: GenericPalletError<Rv>;
353
+
354
+ /**
355
+ * Cannot find the scheduled call.
356
+ **/
357
+ NotFound: GenericPalletError<Rv>;
358
+
359
+ /**
360
+ * Given target block number is in the past.
361
+ **/
362
+ TargetBlockNumberInPast: GenericPalletError<Rv>;
363
+
364
+ /**
365
+ * Reschedule failed because it does not change scheduled time.
366
+ **/
367
+ RescheduleNoChange: GenericPalletError<Rv>;
368
+
369
+ /**
370
+ * Attempt to use a non-named function on a named task.
371
+ **/
372
+ Named: GenericPalletError<Rv>;
373
+
374
+ /**
375
+ * Generic pallet error
376
+ **/
377
+ [error: string]: GenericPalletError<Rv>;
378
+ };
345
379
  /**
346
380
  * Pallet `ParachainSystem`'s errors
347
381
  **/
@@ -691,11 +725,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
691
725
  **/
692
726
  ForceNotAllowed: GenericPalletError<Rv>;
693
727
 
694
- /**
695
- * Account doesn't have the freeze inconsistency
696
- **/
697
- AccountNotInconsistent: GenericPalletError<Rv>;
698
-
699
728
  /**
700
729
  * Generic pallet error
701
730
  **/
@@ -808,6 +837,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
808
837
  **/
809
838
  CallbackFailed: GenericPalletError<Rv>;
810
839
 
840
+ /**
841
+ * The asset ID must be equal to the [`NextAssetId`].
842
+ **/
843
+ BadAssetId: GenericPalletError<Rv>;
844
+
811
845
  /**
812
846
  * Generic pallet error
813
847
  **/
@@ -978,6 +1012,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
978
1012
  **/
979
1013
  AlreadyResumed: GenericPalletError<Rv>;
980
1014
 
1015
+ /**
1016
+ * There are too many active outbound channels.
1017
+ **/
1018
+ TooManyActiveOutboundChannels: GenericPalletError<Rv>;
1019
+
1020
+ /**
1021
+ * The message is too big.
1022
+ **/
1023
+ TooBig: GenericPalletError<Rv>;
1024
+
981
1025
  /**
982
1026
  * Generic pallet error
983
1027
  **/
@@ -1548,6 +1592,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1548
1592
  **/
1549
1593
  ReentranceDenied: GenericPalletError<Rv>;
1550
1594
 
1595
+ /**
1596
+ * A contract attempted to invoke a state modifying API while being in read-only mode.
1597
+ **/
1598
+ StateChangeDenied: GenericPalletError<Rv>;
1599
+
1551
1600
  /**
1552
1601
  * Origin doesn't have enough balance to pay the required storage deposits.
1553
1602
  **/
@@ -1618,6 +1667,65 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1618
1667
  **/
1619
1668
  CannotAddSelfAsDelegateDependency: GenericPalletError<Rv>;
1620
1669
 
1670
+ /**
1671
+ * Can not add more data to transient storage.
1672
+ **/
1673
+ OutOfTransientStorage: GenericPalletError<Rv>;
1674
+
1675
+ /**
1676
+ * Generic pallet error
1677
+ **/
1678
+ [error: string]: GenericPalletError<Rv>;
1679
+ };
1680
+ /**
1681
+ * Pallet `Preimage`'s errors
1682
+ **/
1683
+ preimage: {
1684
+ /**
1685
+ * Preimage is too large to store on-chain.
1686
+ **/
1687
+ TooBig: GenericPalletError<Rv>;
1688
+
1689
+ /**
1690
+ * Preimage has already been noted on-chain.
1691
+ **/
1692
+ AlreadyNoted: GenericPalletError<Rv>;
1693
+
1694
+ /**
1695
+ * The user is not authorized to perform this action.
1696
+ **/
1697
+ NotAuthorized: GenericPalletError<Rv>;
1698
+
1699
+ /**
1700
+ * The preimage cannot be removed since it has not yet been noted.
1701
+ **/
1702
+ NotNoted: GenericPalletError<Rv>;
1703
+
1704
+ /**
1705
+ * A preimage may not be removed when there are outstanding requests.
1706
+ **/
1707
+ Requested: GenericPalletError<Rv>;
1708
+
1709
+ /**
1710
+ * The preimage request cannot be removed since no outstanding requests exist.
1711
+ **/
1712
+ NotRequested: GenericPalletError<Rv>;
1713
+
1714
+ /**
1715
+ * More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
1716
+ **/
1717
+ TooMany: GenericPalletError<Rv>;
1718
+
1719
+ /**
1720
+ * Too few hashes were requested to be upgraded (i.e. zero).
1721
+ **/
1722
+ TooFew: GenericPalletError<Rv>;
1723
+
1724
+ /**
1725
+ * No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
1726
+ **/
1727
+ NoCost: GenericPalletError<Rv>;
1728
+
1621
1729
  /**
1622
1730
  * Generic pallet error
1623
1731
  **/
@@ -1632,6 +1740,554 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1632
1740
  **/
1633
1741
  RequireSudo: GenericPalletError<Rv>;
1634
1742
 
1743
+ /**
1744
+ * Generic pallet error
1745
+ **/
1746
+ [error: string]: GenericPalletError<Rv>;
1747
+ };
1748
+ /**
1749
+ * Pallet `CouncilMembership`'s errors
1750
+ **/
1751
+ councilMembership: {
1752
+ /**
1753
+ * Already a member.
1754
+ **/
1755
+ AlreadyMember: GenericPalletError<Rv>;
1756
+
1757
+ /**
1758
+ * Not a member.
1759
+ **/
1760
+ NotMember: GenericPalletError<Rv>;
1761
+
1762
+ /**
1763
+ * Too many members.
1764
+ **/
1765
+ TooManyMembers: GenericPalletError<Rv>;
1766
+
1767
+ /**
1768
+ * Generic pallet error
1769
+ **/
1770
+ [error: string]: GenericPalletError<Rv>;
1771
+ };
1772
+ /**
1773
+ * Pallet `TechnicalCommitteeMembership`'s errors
1774
+ **/
1775
+ technicalCommitteeMembership: {
1776
+ /**
1777
+ * Already a member.
1778
+ **/
1779
+ AlreadyMember: GenericPalletError<Rv>;
1780
+
1781
+ /**
1782
+ * Not a member.
1783
+ **/
1784
+ NotMember: GenericPalletError<Rv>;
1785
+
1786
+ /**
1787
+ * Too many members.
1788
+ **/
1789
+ TooManyMembers: GenericPalletError<Rv>;
1790
+
1791
+ /**
1792
+ * Generic pallet error
1793
+ **/
1794
+ [error: string]: GenericPalletError<Rv>;
1795
+ };
1796
+ /**
1797
+ * Pallet `CommunityCouncilMembership`'s errors
1798
+ **/
1799
+ communityCouncilMembership: {
1800
+ /**
1801
+ * Already a member.
1802
+ **/
1803
+ AlreadyMember: GenericPalletError<Rv>;
1804
+
1805
+ /**
1806
+ * Not a member.
1807
+ **/
1808
+ NotMember: GenericPalletError<Rv>;
1809
+
1810
+ /**
1811
+ * Too many members.
1812
+ **/
1813
+ TooManyMembers: GenericPalletError<Rv>;
1814
+
1815
+ /**
1816
+ * Generic pallet error
1817
+ **/
1818
+ [error: string]: GenericPalletError<Rv>;
1819
+ };
1820
+ /**
1821
+ * Pallet `Council`'s errors
1822
+ **/
1823
+ council: {
1824
+ /**
1825
+ * Account is not a member
1826
+ **/
1827
+ NotMember: GenericPalletError<Rv>;
1828
+
1829
+ /**
1830
+ * Duplicate proposals not allowed
1831
+ **/
1832
+ DuplicateProposal: GenericPalletError<Rv>;
1833
+
1834
+ /**
1835
+ * Proposal must exist
1836
+ **/
1837
+ ProposalMissing: GenericPalletError<Rv>;
1838
+
1839
+ /**
1840
+ * Mismatched index
1841
+ **/
1842
+ WrongIndex: GenericPalletError<Rv>;
1843
+
1844
+ /**
1845
+ * Duplicate vote ignored
1846
+ **/
1847
+ DuplicateVote: GenericPalletError<Rv>;
1848
+
1849
+ /**
1850
+ * Members are already initialized!
1851
+ **/
1852
+ AlreadyInitialized: GenericPalletError<Rv>;
1853
+
1854
+ /**
1855
+ * The close call was made too early, before the end of the voting.
1856
+ **/
1857
+ TooEarly: GenericPalletError<Rv>;
1858
+
1859
+ /**
1860
+ * There can only be a maximum of `MaxProposals` active proposals.
1861
+ **/
1862
+ TooManyProposals: GenericPalletError<Rv>;
1863
+
1864
+ /**
1865
+ * The given weight bound for the proposal was too low.
1866
+ **/
1867
+ WrongProposalWeight: GenericPalletError<Rv>;
1868
+
1869
+ /**
1870
+ * The given length bound for the proposal was too low.
1871
+ **/
1872
+ WrongProposalLength: GenericPalletError<Rv>;
1873
+
1874
+ /**
1875
+ * Prime account is not a member
1876
+ **/
1877
+ PrimeAccountNotMember: GenericPalletError<Rv>;
1878
+
1879
+ /**
1880
+ * Generic pallet error
1881
+ **/
1882
+ [error: string]: GenericPalletError<Rv>;
1883
+ };
1884
+ /**
1885
+ * Pallet `TechnicalCommittee`'s errors
1886
+ **/
1887
+ technicalCommittee: {
1888
+ /**
1889
+ * Account is not a member
1890
+ **/
1891
+ NotMember: GenericPalletError<Rv>;
1892
+
1893
+ /**
1894
+ * Duplicate proposals not allowed
1895
+ **/
1896
+ DuplicateProposal: GenericPalletError<Rv>;
1897
+
1898
+ /**
1899
+ * Proposal must exist
1900
+ **/
1901
+ ProposalMissing: GenericPalletError<Rv>;
1902
+
1903
+ /**
1904
+ * Mismatched index
1905
+ **/
1906
+ WrongIndex: GenericPalletError<Rv>;
1907
+
1908
+ /**
1909
+ * Duplicate vote ignored
1910
+ **/
1911
+ DuplicateVote: GenericPalletError<Rv>;
1912
+
1913
+ /**
1914
+ * Members are already initialized!
1915
+ **/
1916
+ AlreadyInitialized: GenericPalletError<Rv>;
1917
+
1918
+ /**
1919
+ * The close call was made too early, before the end of the voting.
1920
+ **/
1921
+ TooEarly: GenericPalletError<Rv>;
1922
+
1923
+ /**
1924
+ * There can only be a maximum of `MaxProposals` active proposals.
1925
+ **/
1926
+ TooManyProposals: GenericPalletError<Rv>;
1927
+
1928
+ /**
1929
+ * The given weight bound for the proposal was too low.
1930
+ **/
1931
+ WrongProposalWeight: GenericPalletError<Rv>;
1932
+
1933
+ /**
1934
+ * The given length bound for the proposal was too low.
1935
+ **/
1936
+ WrongProposalLength: GenericPalletError<Rv>;
1937
+
1938
+ /**
1939
+ * Prime account is not a member
1940
+ **/
1941
+ PrimeAccountNotMember: GenericPalletError<Rv>;
1942
+
1943
+ /**
1944
+ * Generic pallet error
1945
+ **/
1946
+ [error: string]: GenericPalletError<Rv>;
1947
+ };
1948
+ /**
1949
+ * Pallet `CommunityCouncil`'s errors
1950
+ **/
1951
+ communityCouncil: {
1952
+ /**
1953
+ * Account is not a member
1954
+ **/
1955
+ NotMember: GenericPalletError<Rv>;
1956
+
1957
+ /**
1958
+ * Duplicate proposals not allowed
1959
+ **/
1960
+ DuplicateProposal: GenericPalletError<Rv>;
1961
+
1962
+ /**
1963
+ * Proposal must exist
1964
+ **/
1965
+ ProposalMissing: GenericPalletError<Rv>;
1966
+
1967
+ /**
1968
+ * Mismatched index
1969
+ **/
1970
+ WrongIndex: GenericPalletError<Rv>;
1971
+
1972
+ /**
1973
+ * Duplicate vote ignored
1974
+ **/
1975
+ DuplicateVote: GenericPalletError<Rv>;
1976
+
1977
+ /**
1978
+ * Members are already initialized!
1979
+ **/
1980
+ AlreadyInitialized: GenericPalletError<Rv>;
1981
+
1982
+ /**
1983
+ * The close call was made too early, before the end of the voting.
1984
+ **/
1985
+ TooEarly: GenericPalletError<Rv>;
1986
+
1987
+ /**
1988
+ * There can only be a maximum of `MaxProposals` active proposals.
1989
+ **/
1990
+ TooManyProposals: GenericPalletError<Rv>;
1991
+
1992
+ /**
1993
+ * The given weight bound for the proposal was too low.
1994
+ **/
1995
+ WrongProposalWeight: GenericPalletError<Rv>;
1996
+
1997
+ /**
1998
+ * The given length bound for the proposal was too low.
1999
+ **/
2000
+ WrongProposalLength: GenericPalletError<Rv>;
2001
+
2002
+ /**
2003
+ * Prime account is not a member
2004
+ **/
2005
+ PrimeAccountNotMember: GenericPalletError<Rv>;
2006
+
2007
+ /**
2008
+ * Generic pallet error
2009
+ **/
2010
+ [error: string]: GenericPalletError<Rv>;
2011
+ };
2012
+ /**
2013
+ * Pallet `Democracy`'s errors
2014
+ **/
2015
+ democracy: {
2016
+ /**
2017
+ * Value too low
2018
+ **/
2019
+ ValueLow: GenericPalletError<Rv>;
2020
+
2021
+ /**
2022
+ * Proposal does not exist
2023
+ **/
2024
+ ProposalMissing: GenericPalletError<Rv>;
2025
+
2026
+ /**
2027
+ * Cannot cancel the same proposal twice
2028
+ **/
2029
+ AlreadyCanceled: GenericPalletError<Rv>;
2030
+
2031
+ /**
2032
+ * Proposal already made
2033
+ **/
2034
+ DuplicateProposal: GenericPalletError<Rv>;
2035
+
2036
+ /**
2037
+ * Proposal still blacklisted
2038
+ **/
2039
+ ProposalBlacklisted: GenericPalletError<Rv>;
2040
+
2041
+ /**
2042
+ * Next external proposal not simple majority
2043
+ **/
2044
+ NotSimpleMajority: GenericPalletError<Rv>;
2045
+
2046
+ /**
2047
+ * Invalid hash
2048
+ **/
2049
+ InvalidHash: GenericPalletError<Rv>;
2050
+
2051
+ /**
2052
+ * No external proposal
2053
+ **/
2054
+ NoProposal: GenericPalletError<Rv>;
2055
+
2056
+ /**
2057
+ * Identity may not veto a proposal twice
2058
+ **/
2059
+ AlreadyVetoed: GenericPalletError<Rv>;
2060
+
2061
+ /**
2062
+ * Vote given for invalid referendum
2063
+ **/
2064
+ ReferendumInvalid: GenericPalletError<Rv>;
2065
+
2066
+ /**
2067
+ * No proposals waiting
2068
+ **/
2069
+ NoneWaiting: GenericPalletError<Rv>;
2070
+
2071
+ /**
2072
+ * The given account did not vote on the referendum.
2073
+ **/
2074
+ NotVoter: GenericPalletError<Rv>;
2075
+
2076
+ /**
2077
+ * The actor has no permission to conduct the action.
2078
+ **/
2079
+ NoPermission: GenericPalletError<Rv>;
2080
+
2081
+ /**
2082
+ * The account is already delegating.
2083
+ **/
2084
+ AlreadyDelegating: GenericPalletError<Rv>;
2085
+
2086
+ /**
2087
+ * Too high a balance was provided that the account cannot afford.
2088
+ **/
2089
+ InsufficientFunds: GenericPalletError<Rv>;
2090
+
2091
+ /**
2092
+ * The account is not currently delegating.
2093
+ **/
2094
+ NotDelegating: GenericPalletError<Rv>;
2095
+
2096
+ /**
2097
+ * The account currently has votes attached to it and the operation cannot succeed until
2098
+ * these are removed, either through `unvote` or `reap_vote`.
2099
+ **/
2100
+ VotesExist: GenericPalletError<Rv>;
2101
+
2102
+ /**
2103
+ * The instant referendum origin is currently disallowed.
2104
+ **/
2105
+ InstantNotAllowed: GenericPalletError<Rv>;
2106
+
2107
+ /**
2108
+ * Delegation to oneself makes no sense.
2109
+ **/
2110
+ Nonsense: GenericPalletError<Rv>;
2111
+
2112
+ /**
2113
+ * Invalid upper bound.
2114
+ **/
2115
+ WrongUpperBound: GenericPalletError<Rv>;
2116
+
2117
+ /**
2118
+ * Maximum number of votes reached.
2119
+ **/
2120
+ MaxVotesReached: GenericPalletError<Rv>;
2121
+
2122
+ /**
2123
+ * Maximum number of items reached.
2124
+ **/
2125
+ TooMany: GenericPalletError<Rv>;
2126
+
2127
+ /**
2128
+ * Voting period too low
2129
+ **/
2130
+ VotingPeriodLow: GenericPalletError<Rv>;
2131
+
2132
+ /**
2133
+ * The preimage does not exist.
2134
+ **/
2135
+ PreimageNotExist: GenericPalletError<Rv>;
2136
+
2137
+ /**
2138
+ * Generic pallet error
2139
+ **/
2140
+ [error: string]: GenericPalletError<Rv>;
2141
+ };
2142
+ /**
2143
+ * Pallet `Treasury`'s errors
2144
+ **/
2145
+ treasury: {
2146
+ /**
2147
+ * Proposer's balance is too low.
2148
+ **/
2149
+ InsufficientProposersBalance: GenericPalletError<Rv>;
2150
+
2151
+ /**
2152
+ * No proposal, bounty or spend at that index.
2153
+ **/
2154
+ InvalidIndex: GenericPalletError<Rv>;
2155
+
2156
+ /**
2157
+ * Too many approvals in the queue.
2158
+ **/
2159
+ TooManyApprovals: GenericPalletError<Rv>;
2160
+
2161
+ /**
2162
+ * The spend origin is valid but the amount it is allowed to spend is lower than the
2163
+ * amount to be spent.
2164
+ **/
2165
+ InsufficientPermission: GenericPalletError<Rv>;
2166
+
2167
+ /**
2168
+ * Proposal has not been approved.
2169
+ **/
2170
+ ProposalNotApproved: GenericPalletError<Rv>;
2171
+
2172
+ /**
2173
+ * The balance of the asset kind is not convertible to the balance of the native asset.
2174
+ **/
2175
+ FailedToConvertBalance: GenericPalletError<Rv>;
2176
+
2177
+ /**
2178
+ * The spend has expired and cannot be claimed.
2179
+ **/
2180
+ SpendExpired: GenericPalletError<Rv>;
2181
+
2182
+ /**
2183
+ * The spend is not yet eligible for payout.
2184
+ **/
2185
+ EarlyPayout: GenericPalletError<Rv>;
2186
+
2187
+ /**
2188
+ * The payment has already been attempted.
2189
+ **/
2190
+ AlreadyAttempted: GenericPalletError<Rv>;
2191
+
2192
+ /**
2193
+ * There was some issue with the mechanism of payment.
2194
+ **/
2195
+ PayoutError: GenericPalletError<Rv>;
2196
+
2197
+ /**
2198
+ * The payout was not yet attempted/claimed.
2199
+ **/
2200
+ NotAttempted: GenericPalletError<Rv>;
2201
+
2202
+ /**
2203
+ * The payment has neither failed nor succeeded yet.
2204
+ **/
2205
+ Inconclusive: GenericPalletError<Rv>;
2206
+
2207
+ /**
2208
+ * Generic pallet error
2209
+ **/
2210
+ [error: string]: GenericPalletError<Rv>;
2211
+ };
2212
+ /**
2213
+ * Pallet `CommunityTreasury`'s errors
2214
+ **/
2215
+ communityTreasury: {
2216
+ /**
2217
+ * Proposer's balance is too low.
2218
+ **/
2219
+ InsufficientProposersBalance: GenericPalletError<Rv>;
2220
+
2221
+ /**
2222
+ * No proposal, bounty or spend at that index.
2223
+ **/
2224
+ InvalidIndex: GenericPalletError<Rv>;
2225
+
2226
+ /**
2227
+ * Too many approvals in the queue.
2228
+ **/
2229
+ TooManyApprovals: GenericPalletError<Rv>;
2230
+
2231
+ /**
2232
+ * The spend origin is valid but the amount it is allowed to spend is lower than the
2233
+ * amount to be spent.
2234
+ **/
2235
+ InsufficientPermission: GenericPalletError<Rv>;
2236
+
2237
+ /**
2238
+ * Proposal has not been approved.
2239
+ **/
2240
+ ProposalNotApproved: GenericPalletError<Rv>;
2241
+
2242
+ /**
2243
+ * The balance of the asset kind is not convertible to the balance of the native asset.
2244
+ **/
2245
+ FailedToConvertBalance: GenericPalletError<Rv>;
2246
+
2247
+ /**
2248
+ * The spend has expired and cannot be claimed.
2249
+ **/
2250
+ SpendExpired: GenericPalletError<Rv>;
2251
+
2252
+ /**
2253
+ * The spend is not yet eligible for payout.
2254
+ **/
2255
+ EarlyPayout: GenericPalletError<Rv>;
2256
+
2257
+ /**
2258
+ * The payment has already been attempted.
2259
+ **/
2260
+ AlreadyAttempted: GenericPalletError<Rv>;
2261
+
2262
+ /**
2263
+ * There was some issue with the mechanism of payment.
2264
+ **/
2265
+ PayoutError: GenericPalletError<Rv>;
2266
+
2267
+ /**
2268
+ * The payout was not yet attempted/claimed.
2269
+ **/
2270
+ NotAttempted: GenericPalletError<Rv>;
2271
+
2272
+ /**
2273
+ * The payment has neither failed nor succeeded yet.
2274
+ **/
2275
+ Inconclusive: GenericPalletError<Rv>;
2276
+
2277
+ /**
2278
+ * Generic pallet error
2279
+ **/
2280
+ [error: string]: GenericPalletError<Rv>;
2281
+ };
2282
+ /**
2283
+ * Pallet `MultiBlockMigrations`'s errors
2284
+ **/
2285
+ multiBlockMigrations: {
2286
+ /**
2287
+ * The operation cannot complete since some MBMs are ongoing.
2288
+ **/
2289
+ Ongoing: GenericPalletError<Rv>;
2290
+
1635
2291
  /**
1636
2292
  * Generic pallet error
1637
2293
  **/