@dedot/chaintypes 0.0.1-alpha.22

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 (280) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/aleph/consts.d.ts +533 -0
  4. package/aleph/consts.js +2 -0
  5. package/aleph/errors.d.ts +822 -0
  6. package/aleph/errors.js +2 -0
  7. package/aleph/events.d.ts +997 -0
  8. package/aleph/events.js +2 -0
  9. package/aleph/index.d.ts +19 -0
  10. package/aleph/index.js +3 -0
  11. package/aleph/query.d.ts +1271 -0
  12. package/aleph/query.js +2 -0
  13. package/aleph/rpc.d.ts +575 -0
  14. package/aleph/rpc.js +2 -0
  15. package/aleph/runtime.d.ts +410 -0
  16. package/aleph/runtime.js +2 -0
  17. package/aleph/tx.d.ts +2206 -0
  18. package/aleph/tx.js +2 -0
  19. package/aleph/types.d.ts +5560 -0
  20. package/aleph/types.js +2 -0
  21. package/astar/consts.d.ts +679 -0
  22. package/astar/consts.js +2 -0
  23. package/astar/errors.d.ts +1317 -0
  24. package/astar/errors.js +2 -0
  25. package/astar/events.d.ts +1707 -0
  26. package/astar/events.js +2 -0
  27. package/astar/index.d.ts +19 -0
  28. package/astar/index.js +3 -0
  29. package/astar/query.d.ts +1474 -0
  30. package/astar/query.js +2 -0
  31. package/astar/rpc.d.ts +775 -0
  32. package/astar/rpc.js +2 -0
  33. package/astar/runtime.d.ts +262 -0
  34. package/astar/runtime.js +2 -0
  35. package/astar/tx.d.ts +4810 -0
  36. package/astar/tx.js +2 -0
  37. package/astar/types.d.ts +12338 -0
  38. package/astar/types.js +2 -0
  39. package/cjs/aleph/consts.js +3 -0
  40. package/cjs/aleph/errors.js +3 -0
  41. package/cjs/aleph/events.js +3 -0
  42. package/cjs/aleph/index.js +19 -0
  43. package/cjs/aleph/query.js +3 -0
  44. package/cjs/aleph/rpc.js +3 -0
  45. package/cjs/aleph/runtime.js +3 -0
  46. package/cjs/aleph/tx.js +3 -0
  47. package/cjs/aleph/types.js +3 -0
  48. package/cjs/astar/consts.js +3 -0
  49. package/cjs/astar/errors.js +3 -0
  50. package/cjs/astar/events.js +3 -0
  51. package/cjs/astar/index.js +19 -0
  52. package/cjs/astar/query.js +3 -0
  53. package/cjs/astar/rpc.js +3 -0
  54. package/cjs/astar/runtime.js +3 -0
  55. package/cjs/astar/tx.js +3 -0
  56. package/cjs/astar/types.js +3 -0
  57. package/cjs/index.js +2 -0
  58. package/cjs/kusama/consts.js +3 -0
  59. package/cjs/kusama/errors.js +3 -0
  60. package/cjs/kusama/events.js +3 -0
  61. package/cjs/kusama/index.js +19 -0
  62. package/cjs/kusama/query.js +3 -0
  63. package/cjs/kusama/rpc.js +3 -0
  64. package/cjs/kusama/runtime.js +3 -0
  65. package/cjs/kusama/tx.js +3 -0
  66. package/cjs/kusama/types.js +3 -0
  67. package/cjs/kusamaAssetHub/consts.js +3 -0
  68. package/cjs/kusamaAssetHub/errors.js +3 -0
  69. package/cjs/kusamaAssetHub/events.js +3 -0
  70. package/cjs/kusamaAssetHub/index.js +19 -0
  71. package/cjs/kusamaAssetHub/query.js +3 -0
  72. package/cjs/kusamaAssetHub/rpc.js +3 -0
  73. package/cjs/kusamaAssetHub/runtime.js +3 -0
  74. package/cjs/kusamaAssetHub/tx.js +3 -0
  75. package/cjs/kusamaAssetHub/types.js +3 -0
  76. package/cjs/moonbeam/consts.js +3 -0
  77. package/cjs/moonbeam/errors.js +3 -0
  78. package/cjs/moonbeam/events.js +3 -0
  79. package/cjs/moonbeam/index.js +19 -0
  80. package/cjs/moonbeam/query.js +3 -0
  81. package/cjs/moonbeam/rpc.js +3 -0
  82. package/cjs/moonbeam/runtime.js +3 -0
  83. package/cjs/moonbeam/tx.js +3 -0
  84. package/cjs/moonbeam/types.js +3 -0
  85. package/cjs/package.json +1 -0
  86. package/cjs/packageInfo.js +5 -0
  87. package/cjs/polkadot/consts.js +3 -0
  88. package/cjs/polkadot/errors.js +3 -0
  89. package/cjs/polkadot/events.js +3 -0
  90. package/cjs/polkadot/index.js +19 -0
  91. package/cjs/polkadot/query.js +3 -0
  92. package/cjs/polkadot/rpc.js +3 -0
  93. package/cjs/polkadot/runtime.js +3 -0
  94. package/cjs/polkadot/tx.js +3 -0
  95. package/cjs/polkadot/types.js +3 -0
  96. package/cjs/polkadotAssetHub/consts.js +3 -0
  97. package/cjs/polkadotAssetHub/errors.js +3 -0
  98. package/cjs/polkadotAssetHub/events.js +3 -0
  99. package/cjs/polkadotAssetHub/index.js +19 -0
  100. package/cjs/polkadotAssetHub/query.js +3 -0
  101. package/cjs/polkadotAssetHub/rpc.js +3 -0
  102. package/cjs/polkadotAssetHub/runtime.js +3 -0
  103. package/cjs/polkadotAssetHub/tx.js +3 -0
  104. package/cjs/polkadotAssetHub/types.js +3 -0
  105. package/cjs/rococoAssetHub/consts.js +3 -0
  106. package/cjs/rococoAssetHub/errors.js +3 -0
  107. package/cjs/rococoAssetHub/events.js +3 -0
  108. package/cjs/rococoAssetHub/index.js +19 -0
  109. package/cjs/rococoAssetHub/query.js +3 -0
  110. package/cjs/rococoAssetHub/rpc.js +3 -0
  111. package/cjs/rococoAssetHub/runtime.js +3 -0
  112. package/cjs/rococoAssetHub/tx.js +3 -0
  113. package/cjs/rococoAssetHub/types.js +3 -0
  114. package/cjs/substrate/consts.js +3 -0
  115. package/cjs/substrate/errors.js +3 -0
  116. package/cjs/substrate/events.js +3 -0
  117. package/cjs/substrate/index.js +19 -0
  118. package/cjs/substrate/query.js +3 -0
  119. package/cjs/substrate/rpc.js +3 -0
  120. package/cjs/substrate/runtime.js +3 -0
  121. package/cjs/substrate/tx.js +3 -0
  122. package/cjs/substrate/types.js +3 -0
  123. package/cjs/westendAssetHub/consts.js +3 -0
  124. package/cjs/westendAssetHub/errors.js +3 -0
  125. package/cjs/westendAssetHub/events.js +3 -0
  126. package/cjs/westendAssetHub/index.js +19 -0
  127. package/cjs/westendAssetHub/query.js +3 -0
  128. package/cjs/westendAssetHub/rpc.js +3 -0
  129. package/cjs/westendAssetHub/runtime.js +3 -0
  130. package/cjs/westendAssetHub/tx.js +3 -0
  131. package/cjs/westendAssetHub/types.js +3 -0
  132. package/index.d.ts +5 -0
  133. package/index.js +1 -0
  134. package/kusama/consts.d.ts +1427 -0
  135. package/kusama/consts.js +2 -0
  136. package/kusama/errors.d.ts +2494 -0
  137. package/kusama/errors.js +2 -0
  138. package/kusama/events.d.ts +2960 -0
  139. package/kusama/events.js +2 -0
  140. package/kusama/index.d.ts +19 -0
  141. package/kusama/index.js +3 -0
  142. package/kusama/query.d.ts +3251 -0
  143. package/kusama/query.js +2 -0
  144. package/kusama/rpc.d.ts +726 -0
  145. package/kusama/rpc.js +2 -0
  146. package/kusama/runtime.d.ts +844 -0
  147. package/kusama/runtime.js +2 -0
  148. package/kusama/tx.d.ts +6014 -0
  149. package/kusama/tx.js +2 -0
  150. package/kusama/types.d.ts +15903 -0
  151. package/kusama/types.js +2 -0
  152. package/kusamaAssetHub/consts.d.ts +632 -0
  153. package/kusamaAssetHub/consts.js +2 -0
  154. package/kusamaAssetHub/errors.d.ts +1164 -0
  155. package/kusamaAssetHub/errors.js +2 -0
  156. package/kusamaAssetHub/events.d.ts +2162 -0
  157. package/kusamaAssetHub/events.js +2 -0
  158. package/kusamaAssetHub/index.d.ts +19 -0
  159. package/kusamaAssetHub/index.js +3 -0
  160. package/kusamaAssetHub/query.d.ts +1301 -0
  161. package/kusamaAssetHub/query.js +2 -0
  162. package/kusamaAssetHub/rpc.d.ts +590 -0
  163. package/kusamaAssetHub/rpc.js +2 -0
  164. package/kusamaAssetHub/runtime.d.ts +402 -0
  165. package/kusamaAssetHub/runtime.js +2 -0
  166. package/kusamaAssetHub/tx.d.ts +4217 -0
  167. package/kusamaAssetHub/tx.js +2 -0
  168. package/kusamaAssetHub/types.d.ts +10418 -0
  169. package/kusamaAssetHub/types.js +2 -0
  170. package/moonbeam/consts.d.ts +961 -0
  171. package/moonbeam/consts.js +2 -0
  172. package/moonbeam/errors.d.ts +1797 -0
  173. package/moonbeam/errors.js +2 -0
  174. package/moonbeam/events.d.ts +2840 -0
  175. package/moonbeam/events.js +2 -0
  176. package/moonbeam/index.d.ts +19 -0
  177. package/moonbeam/index.js +3 -0
  178. package/moonbeam/query.d.ts +2027 -0
  179. package/moonbeam/query.js +2 -0
  180. package/moonbeam/rpc.d.ts +809 -0
  181. package/moonbeam/rpc.js +2 -0
  182. package/moonbeam/runtime.d.ts +506 -0
  183. package/moonbeam/runtime.js +2 -0
  184. package/moonbeam/tx.d.ts +5205 -0
  185. package/moonbeam/tx.js +2 -0
  186. package/moonbeam/types.d.ts +12349 -0
  187. package/moonbeam/types.js +2 -0
  188. package/package.json +33 -0
  189. package/packageInfo.d.ts +4 -0
  190. package/packageInfo.js +3 -0
  191. package/polkadot/consts.d.ts +1160 -0
  192. package/polkadot/consts.js +2 -0
  193. package/polkadot/errors.d.ts +2020 -0
  194. package/polkadot/errors.js +2 -0
  195. package/polkadot/events.d.ts +2235 -0
  196. package/polkadot/events.js +2 -0
  197. package/polkadot/index.d.ts +19 -0
  198. package/polkadot/index.js +3 -0
  199. package/polkadot/query.d.ts +2811 -0
  200. package/polkadot/query.js +2 -0
  201. package/polkadot/rpc.d.ts +726 -0
  202. package/polkadot/rpc.js +2 -0
  203. package/polkadot/runtime.d.ts +844 -0
  204. package/polkadot/runtime.js +2 -0
  205. package/polkadot/tx.d.ts +5009 -0
  206. package/polkadot/tx.js +2 -0
  207. package/polkadot/types.d.ts +13729 -0
  208. package/polkadot/types.js +2 -0
  209. package/polkadotAssetHub/consts.d.ts +524 -0
  210. package/polkadotAssetHub/consts.js +2 -0
  211. package/polkadotAssetHub/errors.d.ts +925 -0
  212. package/polkadotAssetHub/errors.js +2 -0
  213. package/polkadotAssetHub/events.d.ts +1787 -0
  214. package/polkadotAssetHub/events.js +2 -0
  215. package/polkadotAssetHub/index.d.ts +19 -0
  216. package/polkadotAssetHub/index.js +3 -0
  217. package/polkadotAssetHub/query.d.ts +1222 -0
  218. package/polkadotAssetHub/query.js +2 -0
  219. package/polkadotAssetHub/rpc.d.ts +590 -0
  220. package/polkadotAssetHub/rpc.js +2 -0
  221. package/polkadotAssetHub/runtime.d.ts +359 -0
  222. package/polkadotAssetHub/runtime.js +2 -0
  223. package/polkadotAssetHub/tx.d.ts +3492 -0
  224. package/polkadotAssetHub/tx.js +2 -0
  225. package/polkadotAssetHub/types.d.ts +9164 -0
  226. package/polkadotAssetHub/types.js +2 -0
  227. package/rococoAssetHub/consts.d.ts +658 -0
  228. package/rococoAssetHub/consts.js +2 -0
  229. package/rococoAssetHub/errors.d.ts +1231 -0
  230. package/rococoAssetHub/errors.js +2 -0
  231. package/rococoAssetHub/events.d.ts +2172 -0
  232. package/rococoAssetHub/events.js +2 -0
  233. package/rococoAssetHub/index.d.ts +19 -0
  234. package/rococoAssetHub/index.js +3 -0
  235. package/rococoAssetHub/query.d.ts +1269 -0
  236. package/rococoAssetHub/query.js +2 -0
  237. package/rococoAssetHub/rpc.d.ts +590 -0
  238. package/rococoAssetHub/rpc.js +2 -0
  239. package/rococoAssetHub/runtime.d.ts +428 -0
  240. package/rococoAssetHub/runtime.js +2 -0
  241. package/rococoAssetHub/tx.d.ts +4307 -0
  242. package/rococoAssetHub/tx.js +2 -0
  243. package/rococoAssetHub/types.d.ts +11066 -0
  244. package/rococoAssetHub/types.js +2 -0
  245. package/substrate/consts.d.ts +1971 -0
  246. package/substrate/consts.js +2 -0
  247. package/substrate/errors.d.ts +3337 -0
  248. package/substrate/errors.js +2 -0
  249. package/substrate/events.d.ts +4777 -0
  250. package/substrate/events.js +2 -0
  251. package/substrate/index.d.ts +19 -0
  252. package/substrate/index.js +3 -0
  253. package/substrate/query.d.ts +3350 -0
  254. package/substrate/query.js +2 -0
  255. package/substrate/rpc.d.ts +718 -0
  256. package/substrate/rpc.js +2 -0
  257. package/substrate/runtime.d.ts +708 -0
  258. package/substrate/runtime.js +2 -0
  259. package/substrate/tx.d.ts +8800 -0
  260. package/substrate/tx.js +2 -0
  261. package/substrate/types.d.ts +20332 -0
  262. package/substrate/types.js +2 -0
  263. package/westendAssetHub/consts.d.ts +658 -0
  264. package/westendAssetHub/consts.js +2 -0
  265. package/westendAssetHub/errors.d.ts +1231 -0
  266. package/westendAssetHub/errors.js +2 -0
  267. package/westendAssetHub/events.d.ts +2172 -0
  268. package/westendAssetHub/events.js +2 -0
  269. package/westendAssetHub/index.d.ts +19 -0
  270. package/westendAssetHub/index.js +3 -0
  271. package/westendAssetHub/query.d.ts +1269 -0
  272. package/westendAssetHub/query.js +2 -0
  273. package/westendAssetHub/rpc.d.ts +590 -0
  274. package/westendAssetHub/rpc.js +2 -0
  275. package/westendAssetHub/runtime.d.ts +456 -0
  276. package/westendAssetHub/runtime.js +2 -0
  277. package/westendAssetHub/tx.d.ts +4307 -0
  278. package/westendAssetHub/tx.js +2 -0
  279. package/westendAssetHub/types.d.ts +11062 -0
  280. package/westendAssetHub/types.js +2 -0
@@ -0,0 +1,822 @@
1
+ import type { GenericChainErrors, GenericPalletError } from '@dedot/types';
2
+ export interface ChainErrors extends GenericChainErrors {
3
+ /**
4
+ * Pallet `System`'s errors
5
+ **/
6
+ system: {
7
+ /**
8
+ * The name of specification does not match between the current runtime
9
+ * and the new runtime.
10
+ **/
11
+ InvalidSpecName: GenericPalletError;
12
+ /**
13
+ * The specification version is not allowed to decrease between the current runtime
14
+ * and the new runtime.
15
+ **/
16
+ SpecVersionNeedsToIncrease: GenericPalletError;
17
+ /**
18
+ * Failed to extract the runtime version from the new runtime.
19
+ *
20
+ * Either calling `Core_version` or decoding `RuntimeVersion` failed.
21
+ **/
22
+ FailedToExtractRuntimeVersion: GenericPalletError;
23
+ /**
24
+ * Suicide called when the account has non-default composite data.
25
+ **/
26
+ NonDefaultComposite: GenericPalletError;
27
+ /**
28
+ * There is a non-zero reference count preventing the account from being purged.
29
+ **/
30
+ NonZeroRefCount: GenericPalletError;
31
+ /**
32
+ * The origin filter prevent the call to be dispatched.
33
+ **/
34
+ CallFiltered: GenericPalletError;
35
+ /**
36
+ * Generic pallet error
37
+ **/
38
+ [error: string]: GenericPalletError;
39
+ };
40
+ /**
41
+ * Pallet `Scheduler`'s errors
42
+ **/
43
+ scheduler: {
44
+ /**
45
+ * Failed to schedule a call
46
+ **/
47
+ FailedToSchedule: GenericPalletError;
48
+ /**
49
+ * Cannot find the scheduled call.
50
+ **/
51
+ NotFound: GenericPalletError;
52
+ /**
53
+ * Given target block number is in the past.
54
+ **/
55
+ TargetBlockNumberInPast: GenericPalletError;
56
+ /**
57
+ * Reschedule failed because it does not change scheduled time.
58
+ **/
59
+ RescheduleNoChange: GenericPalletError;
60
+ /**
61
+ * Attempt to use a non-named function on a named task.
62
+ **/
63
+ Named: GenericPalletError;
64
+ /**
65
+ * Generic pallet error
66
+ **/
67
+ [error: string]: GenericPalletError;
68
+ };
69
+ /**
70
+ * Pallet `Balances`'s errors
71
+ **/
72
+ balances: {
73
+ /**
74
+ * Vesting balance too high to send value.
75
+ **/
76
+ VestingBalance: GenericPalletError;
77
+ /**
78
+ * Account liquidity restrictions prevent withdrawal.
79
+ **/
80
+ LiquidityRestrictions: GenericPalletError;
81
+ /**
82
+ * Balance too low to send value.
83
+ **/
84
+ InsufficientBalance: GenericPalletError;
85
+ /**
86
+ * Value too low to create account due to existential deposit.
87
+ **/
88
+ ExistentialDeposit: GenericPalletError;
89
+ /**
90
+ * Transfer/payment would kill account.
91
+ **/
92
+ Expendability: GenericPalletError;
93
+ /**
94
+ * A vesting schedule already exists for this account.
95
+ **/
96
+ ExistingVestingSchedule: GenericPalletError;
97
+ /**
98
+ * Beneficiary account must pre-exist.
99
+ **/
100
+ DeadAccount: GenericPalletError;
101
+ /**
102
+ * Number of named reserves exceed `MaxReserves`.
103
+ **/
104
+ TooManyReserves: GenericPalletError;
105
+ /**
106
+ * Number of holds exceed `MaxHolds`.
107
+ **/
108
+ TooManyHolds: GenericPalletError;
109
+ /**
110
+ * Number of freezes exceed `MaxFreezes`.
111
+ **/
112
+ TooManyFreezes: GenericPalletError;
113
+ /**
114
+ * Generic pallet error
115
+ **/
116
+ [error: string]: GenericPalletError;
117
+ };
118
+ /**
119
+ * Pallet `Staking`'s errors
120
+ **/
121
+ staking: {
122
+ /**
123
+ * Not a controller account.
124
+ **/
125
+ NotController: GenericPalletError;
126
+ /**
127
+ * Not a stash account.
128
+ **/
129
+ NotStash: GenericPalletError;
130
+ /**
131
+ * Stash is already bonded.
132
+ **/
133
+ AlreadyBonded: GenericPalletError;
134
+ /**
135
+ * Controller is already paired.
136
+ **/
137
+ AlreadyPaired: GenericPalletError;
138
+ /**
139
+ * Targets cannot be empty.
140
+ **/
141
+ EmptyTargets: GenericPalletError;
142
+ /**
143
+ * Duplicate index.
144
+ **/
145
+ DuplicateIndex: GenericPalletError;
146
+ /**
147
+ * Slash record index out of bounds.
148
+ **/
149
+ InvalidSlashIndex: GenericPalletError;
150
+ /**
151
+ * Cannot have a validator or nominator role, with value less than the minimum defined by
152
+ * governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the
153
+ * intention, `chill` first to remove one's role as validator/nominator.
154
+ **/
155
+ InsufficientBond: GenericPalletError;
156
+ /**
157
+ * Can not schedule more unlock chunks.
158
+ **/
159
+ NoMoreChunks: GenericPalletError;
160
+ /**
161
+ * Can not rebond without unlocking chunks.
162
+ **/
163
+ NoUnlockChunk: GenericPalletError;
164
+ /**
165
+ * Attempting to target a stash that still has funds.
166
+ **/
167
+ FundedTarget: GenericPalletError;
168
+ /**
169
+ * Invalid era to reward.
170
+ **/
171
+ InvalidEraToReward: GenericPalletError;
172
+ /**
173
+ * Invalid number of nominations.
174
+ **/
175
+ InvalidNumberOfNominations: GenericPalletError;
176
+ /**
177
+ * Items are not sorted and unique.
178
+ **/
179
+ NotSortedAndUnique: GenericPalletError;
180
+ /**
181
+ * Rewards for this era have already been claimed for this validator.
182
+ **/
183
+ AlreadyClaimed: GenericPalletError;
184
+ /**
185
+ * Incorrect previous history depth input provided.
186
+ **/
187
+ IncorrectHistoryDepth: GenericPalletError;
188
+ /**
189
+ * Incorrect number of slashing spans provided.
190
+ **/
191
+ IncorrectSlashingSpans: GenericPalletError;
192
+ /**
193
+ * Internal state has become somehow corrupted and the operation cannot continue.
194
+ **/
195
+ BadState: GenericPalletError;
196
+ /**
197
+ * Too many nomination targets supplied.
198
+ **/
199
+ TooManyTargets: GenericPalletError;
200
+ /**
201
+ * A nomination target was supplied that was blocked or otherwise not a validator.
202
+ **/
203
+ BadTarget: GenericPalletError;
204
+ /**
205
+ * The user has enough bond and thus cannot be chilled forcefully by an external person.
206
+ **/
207
+ CannotChillOther: GenericPalletError;
208
+ /**
209
+ * There are too many nominators in the system. Governance needs to adjust the staking
210
+ * settings to keep things safe for the runtime.
211
+ **/
212
+ TooManyNominators: GenericPalletError;
213
+ /**
214
+ * There are too many validator candidates in the system. Governance needs to adjust the
215
+ * staking settings to keep things safe for the runtime.
216
+ **/
217
+ TooManyValidators: GenericPalletError;
218
+ /**
219
+ * Commission is too low. Must be at least `MinCommission`.
220
+ **/
221
+ CommissionTooLow: GenericPalletError;
222
+ /**
223
+ * Some bound is not met.
224
+ **/
225
+ BoundNotMet: GenericPalletError;
226
+ /**
227
+ * Generic pallet error
228
+ **/
229
+ [error: string]: GenericPalletError;
230
+ };
231
+ /**
232
+ * Pallet `Session`'s errors
233
+ **/
234
+ session: {
235
+ /**
236
+ * Invalid ownership proof.
237
+ **/
238
+ InvalidProof: GenericPalletError;
239
+ /**
240
+ * No associated validator ID for account.
241
+ **/
242
+ NoAssociatedValidatorId: GenericPalletError;
243
+ /**
244
+ * Registered duplicate key.
245
+ **/
246
+ DuplicatedKey: GenericPalletError;
247
+ /**
248
+ * No keys are associated with this account.
249
+ **/
250
+ NoKeys: GenericPalletError;
251
+ /**
252
+ * Key setting account is not live, so it's impossible to associate keys.
253
+ **/
254
+ NoAccount: GenericPalletError;
255
+ /**
256
+ * Generic pallet error
257
+ **/
258
+ [error: string]: GenericPalletError;
259
+ };
260
+ /**
261
+ * Pallet `Elections`'s errors
262
+ **/
263
+ elections: {
264
+ NotEnoughValidators: GenericPalletError;
265
+ NotEnoughReservedValidators: GenericPalletError;
266
+ NotEnoughNonReservedValidators: GenericPalletError;
267
+ NonUniqueListOfValidators: GenericPalletError;
268
+ NonReservedFinalitySeatsLargerThanNonReservedSeats: GenericPalletError;
269
+ /**
270
+ * Generic pallet error
271
+ **/
272
+ [error: string]: GenericPalletError;
273
+ };
274
+ /**
275
+ * Pallet `Treasury`'s errors
276
+ **/
277
+ treasury: {
278
+ /**
279
+ * Proposer's balance is too low.
280
+ **/
281
+ InsufficientProposersBalance: GenericPalletError;
282
+ /**
283
+ * No proposal or bounty at that index.
284
+ **/
285
+ InvalidIndex: GenericPalletError;
286
+ /**
287
+ * Too many approvals in the queue.
288
+ **/
289
+ TooManyApprovals: GenericPalletError;
290
+ /**
291
+ * The spend origin is valid but the amount it is allowed to spend is lower than the
292
+ * amount to be spent.
293
+ **/
294
+ InsufficientPermission: GenericPalletError;
295
+ /**
296
+ * Proposal has not been approved.
297
+ **/
298
+ ProposalNotApproved: GenericPalletError;
299
+ /**
300
+ * Generic pallet error
301
+ **/
302
+ [error: string]: GenericPalletError;
303
+ };
304
+ /**
305
+ * Pallet `Vesting`'s errors
306
+ **/
307
+ vesting: {
308
+ /**
309
+ * The account given is not vesting.
310
+ **/
311
+ NotVesting: GenericPalletError;
312
+ /**
313
+ * The account already has `MaxVestingSchedules` count of schedules and thus
314
+ * cannot add another one. Consider merging existing schedules in order to add another.
315
+ **/
316
+ AtMaxVestingSchedules: GenericPalletError;
317
+ /**
318
+ * Amount being transferred is too low to create a vesting schedule.
319
+ **/
320
+ AmountLow: GenericPalletError;
321
+ /**
322
+ * An index was out of bounds of the vesting schedules.
323
+ **/
324
+ ScheduleIndexOutOfBounds: GenericPalletError;
325
+ /**
326
+ * Failed to create a new schedule because some parameter was invalid.
327
+ **/
328
+ InvalidScheduleParams: GenericPalletError;
329
+ /**
330
+ * Generic pallet error
331
+ **/
332
+ [error: string]: GenericPalletError;
333
+ };
334
+ /**
335
+ * Pallet `Utility`'s errors
336
+ **/
337
+ utility: {
338
+ /**
339
+ * Too many calls batched.
340
+ **/
341
+ TooManyCalls: GenericPalletError;
342
+ /**
343
+ * Generic pallet error
344
+ **/
345
+ [error: string]: GenericPalletError;
346
+ };
347
+ /**
348
+ * Pallet `Multisig`'s errors
349
+ **/
350
+ multisig: {
351
+ /**
352
+ * Threshold must be 2 or greater.
353
+ **/
354
+ MinimumThreshold: GenericPalletError;
355
+ /**
356
+ * Call is already approved by this signatory.
357
+ **/
358
+ AlreadyApproved: GenericPalletError;
359
+ /**
360
+ * Call doesn't need any (more) approvals.
361
+ **/
362
+ NoApprovalsNeeded: GenericPalletError;
363
+ /**
364
+ * There are too few signatories in the list.
365
+ **/
366
+ TooFewSignatories: GenericPalletError;
367
+ /**
368
+ * There are too many signatories in the list.
369
+ **/
370
+ TooManySignatories: GenericPalletError;
371
+ /**
372
+ * The signatories were provided out of order; they should be ordered.
373
+ **/
374
+ SignatoriesOutOfOrder: GenericPalletError;
375
+ /**
376
+ * The sender was contained in the other signatories; it shouldn't be.
377
+ **/
378
+ SenderInSignatories: GenericPalletError;
379
+ /**
380
+ * Multisig operation not found when attempting to cancel.
381
+ **/
382
+ NotFound: GenericPalletError;
383
+ /**
384
+ * Only the account that originally created the multisig is able to cancel it.
385
+ **/
386
+ NotOwner: GenericPalletError;
387
+ /**
388
+ * No timepoint was given, yet the multisig operation is already underway.
389
+ **/
390
+ NoTimepoint: GenericPalletError;
391
+ /**
392
+ * A different timepoint was given to the multisig operation that is underway.
393
+ **/
394
+ WrongTimepoint: GenericPalletError;
395
+ /**
396
+ * A timepoint was given, yet no multisig operation is underway.
397
+ **/
398
+ UnexpectedTimepoint: GenericPalletError;
399
+ /**
400
+ * The maximum weight information provided was too low.
401
+ **/
402
+ MaxWeightTooLow: GenericPalletError;
403
+ /**
404
+ * The data to be stored is already stored.
405
+ **/
406
+ AlreadyStored: GenericPalletError;
407
+ /**
408
+ * Generic pallet error
409
+ **/
410
+ [error: string]: GenericPalletError;
411
+ };
412
+ /**
413
+ * Pallet `Sudo`'s errors
414
+ **/
415
+ sudo: {
416
+ /**
417
+ * Sender must be the Sudo account
418
+ **/
419
+ RequireSudo: GenericPalletError;
420
+ /**
421
+ * Generic pallet error
422
+ **/
423
+ [error: string]: GenericPalletError;
424
+ };
425
+ /**
426
+ * Pallet `Contracts`'s errors
427
+ **/
428
+ contracts: {
429
+ /**
430
+ * Invalid schedule supplied, e.g. with zero weight of a basic operation.
431
+ **/
432
+ InvalidSchedule: GenericPalletError;
433
+ /**
434
+ * Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
435
+ **/
436
+ InvalidCallFlags: GenericPalletError;
437
+ /**
438
+ * The executed contract exhausted its gas limit.
439
+ **/
440
+ OutOfGas: GenericPalletError;
441
+ /**
442
+ * The output buffer supplied to a contract API call was too small.
443
+ **/
444
+ OutputBufferTooSmall: GenericPalletError;
445
+ /**
446
+ * Performing the requested transfer failed. Probably because there isn't enough
447
+ * free balance in the sender's account.
448
+ **/
449
+ TransferFailed: GenericPalletError;
450
+ /**
451
+ * Performing a call was denied because the calling depth reached the limit
452
+ * of what is specified in the schedule.
453
+ **/
454
+ MaxCallDepthReached: GenericPalletError;
455
+ /**
456
+ * No contract was found at the specified address.
457
+ **/
458
+ ContractNotFound: GenericPalletError;
459
+ /**
460
+ * The code supplied to `instantiate_with_code` exceeds the limit specified in the
461
+ * current schedule.
462
+ **/
463
+ CodeTooLarge: GenericPalletError;
464
+ /**
465
+ * No code could be found at the supplied code hash.
466
+ **/
467
+ CodeNotFound: GenericPalletError;
468
+ /**
469
+ * No code info could be found at the supplied code hash.
470
+ **/
471
+ CodeInfoNotFound: GenericPalletError;
472
+ /**
473
+ * A buffer outside of sandbox memory was passed to a contract API function.
474
+ **/
475
+ OutOfBounds: GenericPalletError;
476
+ /**
477
+ * Input passed to a contract API function failed to decode as expected type.
478
+ **/
479
+ DecodingFailed: GenericPalletError;
480
+ /**
481
+ * Contract trapped during execution.
482
+ **/
483
+ ContractTrapped: GenericPalletError;
484
+ /**
485
+ * The size defined in `T::MaxValueSize` was exceeded.
486
+ **/
487
+ ValueTooLarge: GenericPalletError;
488
+ /**
489
+ * Termination of a contract is not allowed while the contract is already
490
+ * on the call stack. Can be triggered by `seal_terminate`.
491
+ **/
492
+ TerminatedWhileReentrant: GenericPalletError;
493
+ /**
494
+ * `seal_call` forwarded this contracts input. It therefore is no longer available.
495
+ **/
496
+ InputForwarded: GenericPalletError;
497
+ /**
498
+ * The subject passed to `seal_random` exceeds the limit.
499
+ **/
500
+ RandomSubjectTooLong: GenericPalletError;
501
+ /**
502
+ * The amount of topics passed to `seal_deposit_events` exceeds the limit.
503
+ **/
504
+ TooManyTopics: GenericPalletError;
505
+ /**
506
+ * The chain does not provide a chain extension. Calling the chain extension results
507
+ * in this error. Note that this usually shouldn't happen as deploying such contracts
508
+ * is rejected.
509
+ **/
510
+ NoChainExtension: GenericPalletError;
511
+ /**
512
+ * A contract with the same AccountId already exists.
513
+ **/
514
+ DuplicateContract: GenericPalletError;
515
+ /**
516
+ * A contract self destructed in its constructor.
517
+ *
518
+ * This can be triggered by a call to `seal_terminate`.
519
+ **/
520
+ TerminatedInConstructor: GenericPalletError;
521
+ /**
522
+ * A call tried to invoke a contract that is flagged as non-reentrant.
523
+ * The only other cause is that a call from a contract into the runtime tried to call back
524
+ * into `pallet-contracts`. This would make the whole pallet reentrant with regard to
525
+ * contract code execution which is not supported.
526
+ **/
527
+ ReentranceDenied: GenericPalletError;
528
+ /**
529
+ * Origin doesn't have enough balance to pay the required storage deposits.
530
+ **/
531
+ StorageDepositNotEnoughFunds: GenericPalletError;
532
+ /**
533
+ * More storage was created than allowed by the storage deposit limit.
534
+ **/
535
+ StorageDepositLimitExhausted: GenericPalletError;
536
+ /**
537
+ * Code removal was denied because the code is still in use by at least one contract.
538
+ **/
539
+ CodeInUse: GenericPalletError;
540
+ /**
541
+ * The contract ran to completion but decided to revert its storage changes.
542
+ * Please note that this error is only returned from extrinsics. When called directly
543
+ * or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
544
+ * to determine whether a reversion has taken place.
545
+ **/
546
+ ContractReverted: GenericPalletError;
547
+ /**
548
+ * The contract's code was found to be invalid during validation.
549
+ *
550
+ * The most likely cause of this is that an API was used which is not supported by the
551
+ * node. This happens if an older node is used with a new version of ink!. Try updating
552
+ * your node to the newest available version.
553
+ *
554
+ * A more detailed error can be found on the node console if debug messages are enabled
555
+ * by supplying `-lruntime::contracts=debug`.
556
+ **/
557
+ CodeRejected: GenericPalletError;
558
+ /**
559
+ * An indetermistic code was used in a context where this is not permitted.
560
+ **/
561
+ Indeterministic: GenericPalletError;
562
+ /**
563
+ * A pending migration needs to complete before the extrinsic can be called.
564
+ **/
565
+ MigrationInProgress: GenericPalletError;
566
+ /**
567
+ * Migrate dispatch call was attempted but no migration was performed.
568
+ **/
569
+ NoMigrationPerformed: GenericPalletError;
570
+ /**
571
+ * Generic pallet error
572
+ **/
573
+ [error: string]: GenericPalletError;
574
+ };
575
+ /**
576
+ * Pallet `NominationPools`'s errors
577
+ **/
578
+ nominationPools: {
579
+ /**
580
+ * A (bonded) pool id does not exist.
581
+ **/
582
+ PoolNotFound: GenericPalletError;
583
+ /**
584
+ * An account is not a member.
585
+ **/
586
+ PoolMemberNotFound: GenericPalletError;
587
+ /**
588
+ * A reward pool does not exist. In all cases this is a system logic error.
589
+ **/
590
+ RewardPoolNotFound: GenericPalletError;
591
+ /**
592
+ * A sub pool does not exist.
593
+ **/
594
+ SubPoolsNotFound: GenericPalletError;
595
+ /**
596
+ * An account is already delegating in another pool. An account may only belong to one
597
+ * pool at a time.
598
+ **/
599
+ AccountBelongsToOtherPool: GenericPalletError;
600
+ /**
601
+ * The member is fully unbonded (and thus cannot access the bonded and reward pool
602
+ * anymore to, for example, collect rewards).
603
+ **/
604
+ FullyUnbonding: GenericPalletError;
605
+ /**
606
+ * The member cannot unbond further chunks due to reaching the limit.
607
+ **/
608
+ MaxUnbondingLimit: GenericPalletError;
609
+ /**
610
+ * None of the funds can be withdrawn yet because the bonding duration has not passed.
611
+ **/
612
+ CannotWithdrawAny: GenericPalletError;
613
+ /**
614
+ * The amount does not meet the minimum bond to either join or create a pool.
615
+ *
616
+ * The depositor can never unbond to a value less than
617
+ * `Pallet::depositor_min_bond`. The caller does not have nominating
618
+ * permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
619
+ **/
620
+ MinimumBondNotMet: GenericPalletError;
621
+ /**
622
+ * The transaction could not be executed due to overflow risk for the pool.
623
+ **/
624
+ OverflowRisk: GenericPalletError;
625
+ /**
626
+ * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
627
+ * other members to be permissionlessly unbonded.
628
+ **/
629
+ NotDestroying: GenericPalletError;
630
+ /**
631
+ * The caller does not have nominating permissions for the pool.
632
+ **/
633
+ NotNominator: GenericPalletError;
634
+ /**
635
+ * Either a) the caller cannot make a valid kick or b) the pool is not destroying.
636
+ **/
637
+ NotKickerOrDestroying: GenericPalletError;
638
+ /**
639
+ * The pool is not open to join
640
+ **/
641
+ NotOpen: GenericPalletError;
642
+ /**
643
+ * The system is maxed out on pools.
644
+ **/
645
+ MaxPools: GenericPalletError;
646
+ /**
647
+ * Too many members in the pool or system.
648
+ **/
649
+ MaxPoolMembers: GenericPalletError;
650
+ /**
651
+ * The pools state cannot be changed.
652
+ **/
653
+ CanNotChangeState: GenericPalletError;
654
+ /**
655
+ * The caller does not have adequate permissions.
656
+ **/
657
+ DoesNotHavePermission: GenericPalletError;
658
+ /**
659
+ * Metadata exceeds [`Config::MaxMetadataLen`]
660
+ **/
661
+ MetadataExceedsMaxLen: GenericPalletError;
662
+ /**
663
+ * Some error occurred that should never happen. This should be reported to the
664
+ * maintainers.
665
+ **/
666
+ Defensive: GenericPalletError;
667
+ /**
668
+ * Partial unbonding now allowed permissionlessly.
669
+ **/
670
+ PartialUnbondNotAllowedPermissionlessly: GenericPalletError;
671
+ /**
672
+ * The pool's max commission cannot be set higher than the existing value.
673
+ **/
674
+ MaxCommissionRestricted: GenericPalletError;
675
+ /**
676
+ * The supplied commission exceeds the max allowed commission.
677
+ **/
678
+ CommissionExceedsMaximum: GenericPalletError;
679
+ /**
680
+ * The supplied commission exceeds global maximum commission.
681
+ **/
682
+ CommissionExceedsGlobalMaximum: GenericPalletError;
683
+ /**
684
+ * Not enough blocks have surpassed since the last commission update.
685
+ **/
686
+ CommissionChangeThrottled: GenericPalletError;
687
+ /**
688
+ * The submitted changes to commission change rate are not allowed.
689
+ **/
690
+ CommissionChangeRateNotAllowed: GenericPalletError;
691
+ /**
692
+ * There is no pending commission to claim.
693
+ **/
694
+ NoPendingCommission: GenericPalletError;
695
+ /**
696
+ * No commission current has been set.
697
+ **/
698
+ NoCommissionCurrentSet: GenericPalletError;
699
+ /**
700
+ * Pool id currently in use.
701
+ **/
702
+ PoolIdInUse: GenericPalletError;
703
+ /**
704
+ * Pool id provided is not correct/usable.
705
+ **/
706
+ InvalidPoolId: GenericPalletError;
707
+ /**
708
+ * Bonding extra is restricted to the exact pending reward amount.
709
+ **/
710
+ BondExtraRestricted: GenericPalletError;
711
+ /**
712
+ * Generic pallet error
713
+ **/
714
+ [error: string]: GenericPalletError;
715
+ };
716
+ /**
717
+ * Pallet `Identity`'s errors
718
+ **/
719
+ identity: {
720
+ /**
721
+ * Too many subs-accounts.
722
+ **/
723
+ TooManySubAccounts: GenericPalletError;
724
+ /**
725
+ * Account isn't found.
726
+ **/
727
+ NotFound: GenericPalletError;
728
+ /**
729
+ * Account isn't named.
730
+ **/
731
+ NotNamed: GenericPalletError;
732
+ /**
733
+ * Empty index.
734
+ **/
735
+ EmptyIndex: GenericPalletError;
736
+ /**
737
+ * Fee is changed.
738
+ **/
739
+ FeeChanged: GenericPalletError;
740
+ /**
741
+ * No identity found.
742
+ **/
743
+ NoIdentity: GenericPalletError;
744
+ /**
745
+ * Sticky judgement.
746
+ **/
747
+ StickyJudgement: GenericPalletError;
748
+ /**
749
+ * Judgement given.
750
+ **/
751
+ JudgementGiven: GenericPalletError;
752
+ /**
753
+ * Invalid judgement.
754
+ **/
755
+ InvalidJudgement: GenericPalletError;
756
+ /**
757
+ * The index is invalid.
758
+ **/
759
+ InvalidIndex: GenericPalletError;
760
+ /**
761
+ * The target is invalid.
762
+ **/
763
+ InvalidTarget: GenericPalletError;
764
+ /**
765
+ * Too many additional fields.
766
+ **/
767
+ TooManyFields: GenericPalletError;
768
+ /**
769
+ * Maximum amount of registrars reached. Cannot add any more.
770
+ **/
771
+ TooManyRegistrars: GenericPalletError;
772
+ /**
773
+ * Account ID is already named.
774
+ **/
775
+ AlreadyClaimed: GenericPalletError;
776
+ /**
777
+ * Sender is not a sub-account.
778
+ **/
779
+ NotSub: GenericPalletError;
780
+ /**
781
+ * Sub-account isn't owned by sender.
782
+ **/
783
+ NotOwned: GenericPalletError;
784
+ /**
785
+ * The provided judgement was for a different identity.
786
+ **/
787
+ JudgementForDifferentIdentity: GenericPalletError;
788
+ /**
789
+ * Error that occurs when there is an issue paying for judgement.
790
+ **/
791
+ JudgementPaymentFailed: GenericPalletError;
792
+ /**
793
+ * Generic pallet error
794
+ **/
795
+ [error: string]: GenericPalletError;
796
+ };
797
+ /**
798
+ * Pallet `CommitteeManagement`'s errors
799
+ **/
800
+ committeeManagement: {
801
+ /**
802
+ * Raised in any scenario [`BanConfig`] is invalid
803
+ * * `performance_ratio_threshold` must be a number in range [0; 100]
804
+ * * `underperformed_session_count_threshold` must be a positive number,
805
+ * * `clean_session_counter_delay` must be a positive number.
806
+ **/
807
+ InvalidBanConfig: GenericPalletError;
808
+ /**
809
+ * Ban reason is too big, ie given vector of bytes is greater than
810
+ * [`primitives::DEFAULT_BAN_REASON_LENGTH`]
811
+ **/
812
+ BanReasonTooBig: GenericPalletError;
813
+ /**
814
+ * Lenient threshold not in [0-100] range
815
+ **/
816
+ InvalidLenientThreshold: GenericPalletError;
817
+ /**
818
+ * Generic pallet error
819
+ **/
820
+ [error: string]: GenericPalletError;
821
+ };
822
+ }