@storagehub/api-augment 0.1.0 → 0.2.2

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 (190) hide show
  1. package/LICENSE +674 -0
  2. package/biome.json +2 -9
  3. package/dist/parachain/index.js.map +1 -0
  4. package/dist/parachain/interfaces/augment-api-consts.js.map +1 -0
  5. package/dist/parachain/interfaces/augment-api-errors.js.map +1 -0
  6. package/dist/parachain/interfaces/augment-api-events.js.map +1 -0
  7. package/dist/parachain/interfaces/augment-api-query.js.map +1 -0
  8. package/dist/parachain/interfaces/augment-api-rpc.js.map +1 -0
  9. package/dist/parachain/interfaces/augment-api-runtime.js.map +1 -0
  10. package/dist/parachain/interfaces/augment-api-tx.js.map +1 -0
  11. package/dist/parachain/interfaces/augment-api.js.map +1 -0
  12. package/dist/parachain/interfaces/augment-types.js.map +1 -0
  13. package/dist/parachain/interfaces/definitions.js.map +1 -0
  14. package/dist/parachain/interfaces/index.js.map +1 -0
  15. package/dist/{interfaces → parachain/interfaces}/lookup.js +1465 -813
  16. package/dist/parachain/interfaces/lookup.js.map +1 -0
  17. package/dist/parachain/interfaces/registry.js.map +1 -0
  18. package/dist/parachain/interfaces/storagehubclient/definitions.js +7 -0
  19. package/dist/parachain/interfaces/storagehubclient/definitions.js.map +1 -0
  20. package/dist/parachain/interfaces/storagehubclient/index.js.map +1 -0
  21. package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -0
  22. package/dist/parachain/interfaces/storagehubclient/types.js.map +1 -0
  23. package/dist/parachain/interfaces/types-lookup.js.map +1 -0
  24. package/dist/parachain/interfaces/types.js.map +1 -0
  25. package/dist/solochain-evm/index.js +4 -0
  26. package/dist/solochain-evm/index.js.map +1 -0
  27. package/dist/solochain-evm/interfaces/augment-api-consts.js +6 -0
  28. package/dist/solochain-evm/interfaces/augment-api-consts.js.map +1 -0
  29. package/dist/solochain-evm/interfaces/augment-api-errors.js +6 -0
  30. package/dist/solochain-evm/interfaces/augment-api-errors.js.map +1 -0
  31. package/dist/solochain-evm/interfaces/augment-api-events.js +6 -0
  32. package/dist/solochain-evm/interfaces/augment-api-events.js.map +1 -0
  33. package/dist/solochain-evm/interfaces/augment-api-query.js +6 -0
  34. package/dist/solochain-evm/interfaces/augment-api-query.js.map +1 -0
  35. package/dist/solochain-evm/interfaces/augment-api-rpc.js +6 -0
  36. package/dist/solochain-evm/interfaces/augment-api-rpc.js.map +1 -0
  37. package/dist/solochain-evm/interfaces/augment-api-runtime.js +6 -0
  38. package/dist/solochain-evm/interfaces/augment-api-runtime.js.map +1 -0
  39. package/dist/solochain-evm/interfaces/augment-api-tx.js +6 -0
  40. package/dist/solochain-evm/interfaces/augment-api-tx.js.map +1 -0
  41. package/dist/solochain-evm/interfaces/augment-api.js +10 -0
  42. package/dist/solochain-evm/interfaces/augment-api.js.map +1 -0
  43. package/dist/solochain-evm/interfaces/augment-types.js +6 -0
  44. package/dist/solochain-evm/interfaces/augment-types.js.map +1 -0
  45. package/dist/solochain-evm/interfaces/definitions.js +2 -0
  46. package/dist/solochain-evm/interfaces/definitions.js.map +1 -0
  47. package/dist/solochain-evm/interfaces/index.js +4 -0
  48. package/dist/solochain-evm/interfaces/index.js.map +1 -0
  49. package/dist/solochain-evm/interfaces/lookup.js +3744 -0
  50. package/dist/solochain-evm/interfaces/lookup.js.map +1 -0
  51. package/dist/solochain-evm/interfaces/registry.js +6 -0
  52. package/dist/solochain-evm/interfaces/registry.js.map +1 -0
  53. package/dist/solochain-evm/interfaces/storagehubclient/definitions.js +7 -0
  54. package/dist/solochain-evm/interfaces/storagehubclient/definitions.js.map +1 -0
  55. package/dist/solochain-evm/interfaces/storagehubclient/index.js +4 -0
  56. package/dist/solochain-evm/interfaces/storagehubclient/index.js.map +1 -0
  57. package/dist/solochain-evm/interfaces/storagehubclient/types.js +4 -0
  58. package/dist/solochain-evm/interfaces/storagehubclient/types.js.map +1 -0
  59. package/dist/solochain-evm/interfaces/types-lookup.js +6 -0
  60. package/dist/solochain-evm/interfaces/types-lookup.js.map +1 -0
  61. package/dist/solochain-evm/interfaces/types.js +4 -0
  62. package/dist/solochain-evm/interfaces/types.js.map +1 -0
  63. package/dist/types/{interfaces → parachain/interfaces}/augment-api-consts.d.ts +147 -20
  64. package/dist/types/{interfaces → parachain/interfaces}/augment-api-errors.d.ts +235 -8
  65. package/dist/types/{interfaces → parachain/interfaces}/augment-api-events.d.ts +542 -118
  66. package/dist/types/{interfaces → parachain/interfaces}/augment-api-query.d.ts +208 -118
  67. package/dist/types/{interfaces → parachain/interfaces}/augment-api-rpc.d.ts +61 -4
  68. package/dist/types/{interfaces → parachain/interfaces}/augment-api-runtime.d.ts +105 -8
  69. package/dist/types/{interfaces → parachain/interfaces}/augment-api-tx.d.ts +356 -181
  70. package/dist/types/{interfaces → parachain/interfaces}/augment-types.d.ts +145 -11
  71. package/dist/types/{interfaces → parachain/interfaces}/lookup.d.ts +1067 -513
  72. package/dist/types/parachain/interfaces/registry.d.ts +311 -0
  73. package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/types.d.ts +135 -18
  74. package/dist/types/{interfaces → parachain/interfaces}/types-lookup.d.ts +1619 -887
  75. package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +641 -0
  76. package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +1260 -0
  77. package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +2058 -0
  78. package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +1317 -0
  79. package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +775 -0
  80. package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +543 -0
  81. package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +2381 -0
  82. package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -0
  83. package/dist/types/solochain-evm/interfaces/augment-types.d.ts +1419 -0
  84. package/dist/types/solochain-evm/interfaces/index.d.ts +1 -0
  85. package/dist/types/solochain-evm/interfaces/lookup.d.ts +3363 -0
  86. package/dist/types/solochain-evm/interfaces/registry.d.ts +252 -0
  87. package/dist/types/solochain-evm/interfaces/storagehubclient/definitions.d.ts +6 -0
  88. package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -0
  89. package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +325 -0
  90. package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +3577 -0
  91. package/dist/types/solochain-evm/interfaces/types.d.ts +1 -0
  92. package/metadata-sh-parachain.json +5 -0
  93. package/metadata-sh-solochain-evm.json +5 -0
  94. package/package.json +41 -26
  95. package/scripts/scrapeMetadata.ts +41 -29
  96. package/src/parachain/index.ts +3 -0
  97. package/src/{interfaces → parachain/interfaces}/augment-api-consts.ts +147 -20
  98. package/src/{interfaces → parachain/interfaces}/augment-api-errors.ts +235 -8
  99. package/src/{interfaces → parachain/interfaces}/augment-api-events.ts +527 -137
  100. package/src/{interfaces → parachain/interfaces}/augment-api-query.ts +272 -145
  101. package/src/{interfaces → parachain/interfaces}/augment-api-rpc.ts +123 -5
  102. package/src/{interfaces → parachain/interfaces}/augment-api-runtime.ts +202 -8
  103. package/src/{interfaces → parachain/interfaces}/augment-api-tx.ts +374 -182
  104. package/src/{interfaces → parachain/interfaces}/augment-types.ts +280 -12
  105. package/src/parachain/interfaces/definitions.ts +1 -0
  106. package/src/{interfaces → parachain/interfaces}/lookup.ts +1497 -813
  107. package/src/{interfaces → parachain/interfaces}/registry.ts +176 -98
  108. package/src/parachain/interfaces/storagehubclient/definitions.ts +7 -0
  109. package/src/{interfaces → parachain/interfaces}/storagehubclient/types.ts +165 -18
  110. package/src/{interfaces → parachain/interfaces}/types-lookup.ts +1970 -896
  111. package/src/solochain-evm/index.ts +3 -0
  112. package/src/solochain-evm/interfaces/augment-api-consts.ts +655 -0
  113. package/src/solochain-evm/interfaces/augment-api-errors.ts +1268 -0
  114. package/src/solochain-evm/interfaces/augment-api-events.ts +1813 -0
  115. package/src/solochain-evm/interfaces/augment-api-query.ts +1838 -0
  116. package/src/solochain-evm/interfaces/augment-api-rpc.ts +1319 -0
  117. package/src/solochain-evm/interfaces/augment-api-runtime.ts +977 -0
  118. package/src/solochain-evm/interfaces/augment-api-tx.ts +2818 -0
  119. package/src/solochain-evm/interfaces/augment-api.ts +10 -0
  120. package/src/solochain-evm/interfaces/augment-types.ts +2776 -0
  121. package/src/solochain-evm/interfaces/definitions.ts +1 -0
  122. package/src/solochain-evm/interfaces/index.ts +4 -0
  123. package/src/solochain-evm/interfaces/lookup.ts +3788 -0
  124. package/src/solochain-evm/interfaces/registry.ts +506 -0
  125. package/src/solochain-evm/interfaces/storagehubclient/definitions.ts +7 -0
  126. package/src/solochain-evm/interfaces/storagehubclient/index.ts +4 -0
  127. package/src/solochain-evm/interfaces/storagehubclient/types.ts +398 -0
  128. package/src/solochain-evm/interfaces/types-lookup.ts +4616 -0
  129. package/src/solochain-evm/interfaces/types.ts +4 -0
  130. package/tsconfig.json +17 -20
  131. package/tsconfig.parachain.json +17 -0
  132. package/tsconfig.solochain-evm.json +17 -0
  133. package/tsconfig.tsbuildinfo +1 -0
  134. package/dist/index.js.map +0 -1
  135. package/dist/interfaces/augment-api-consts.js.map +0 -1
  136. package/dist/interfaces/augment-api-errors.js.map +0 -1
  137. package/dist/interfaces/augment-api-events.js.map +0 -1
  138. package/dist/interfaces/augment-api-query.js.map +0 -1
  139. package/dist/interfaces/augment-api-rpc.js.map +0 -1
  140. package/dist/interfaces/augment-api-runtime.js.map +0 -1
  141. package/dist/interfaces/augment-api-tx.js.map +0 -1
  142. package/dist/interfaces/augment-api.js.map +0 -1
  143. package/dist/interfaces/augment-types.js.map +0 -1
  144. package/dist/interfaces/definitions.js.map +0 -1
  145. package/dist/interfaces/index.js.map +0 -1
  146. package/dist/interfaces/lookup.js.map +0 -1
  147. package/dist/interfaces/registry.js.map +0 -1
  148. package/dist/interfaces/storagehubclient/definitions.js +0 -7
  149. package/dist/interfaces/storagehubclient/definitions.js.map +0 -1
  150. package/dist/interfaces/storagehubclient/index.js.map +0 -1
  151. package/dist/interfaces/storagehubclient/runtime.js.map +0 -1
  152. package/dist/interfaces/storagehubclient/types.js.map +0 -1
  153. package/dist/interfaces/types-lookup.js.map +0 -1
  154. package/dist/interfaces/types.js.map +0 -1
  155. package/dist/types/interfaces/registry.d.ts +0 -272
  156. package/src/interfaces/storagehubclient/definitions.ts +0 -7
  157. package/storagehub.json +0 -1
  158. /package/dist/{index.js → parachain/index.js} +0 -0
  159. /package/dist/{interfaces → parachain/interfaces}/augment-api-consts.js +0 -0
  160. /package/dist/{interfaces → parachain/interfaces}/augment-api-errors.js +0 -0
  161. /package/dist/{interfaces → parachain/interfaces}/augment-api-events.js +0 -0
  162. /package/dist/{interfaces → parachain/interfaces}/augment-api-query.js +0 -0
  163. /package/dist/{interfaces → parachain/interfaces}/augment-api-rpc.js +0 -0
  164. /package/dist/{interfaces → parachain/interfaces}/augment-api-runtime.js +0 -0
  165. /package/dist/{interfaces → parachain/interfaces}/augment-api-tx.js +0 -0
  166. /package/dist/{interfaces → parachain/interfaces}/augment-api.js +0 -0
  167. /package/dist/{interfaces → parachain/interfaces}/augment-types.js +0 -0
  168. /package/dist/{interfaces → parachain/interfaces}/definitions.js +0 -0
  169. /package/dist/{interfaces → parachain/interfaces}/index.js +0 -0
  170. /package/dist/{interfaces → parachain/interfaces}/registry.js +0 -0
  171. /package/dist/{interfaces → parachain/interfaces}/storagehubclient/index.js +0 -0
  172. /package/dist/{interfaces → parachain/interfaces}/storagehubclient/runtime.js +0 -0
  173. /package/dist/{interfaces → parachain/interfaces}/storagehubclient/types.js +0 -0
  174. /package/dist/{interfaces → parachain/interfaces}/types-lookup.js +0 -0
  175. /package/dist/{interfaces → parachain/interfaces}/types.js +0 -0
  176. /package/dist/types/{index.d.ts → parachain/index.d.ts} +0 -0
  177. /package/dist/types/{interfaces → parachain/interfaces}/augment-api.d.ts +0 -0
  178. /package/dist/types/{interfaces → parachain/interfaces}/definitions.d.ts +0 -0
  179. /package/dist/types/{interfaces → parachain/interfaces}/index.d.ts +0 -0
  180. /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/definitions.d.ts +0 -0
  181. /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/index.d.ts +0 -0
  182. /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/runtime.d.ts +0 -0
  183. /package/dist/types/{interfaces → parachain/interfaces}/types.d.ts +0 -0
  184. /package/{src/index.ts → dist/types/solochain-evm/index.d.ts} +0 -0
  185. /package/{src/interfaces/definitions.ts → dist/types/solochain-evm/interfaces/definitions.d.ts} +0 -0
  186. /package/src/{interfaces → parachain/interfaces}/augment-api.ts +0 -0
  187. /package/src/{interfaces → parachain/interfaces}/index.ts +0 -0
  188. /package/src/{interfaces → parachain/interfaces}/storagehubclient/index.ts +0 -0
  189. /package/src/{interfaces → parachain/interfaces}/storagehubclient/runtime.ts +0 -0
  190. /package/src/{interfaces → parachain/interfaces}/types.ts +0 -0
@@ -0,0 +1,1260 @@
1
+ import "@polkadot/api-base/types/errors";
2
+ import type { ApiTypes, AugmentedError } from "@polkadot/api-base/types";
3
+ export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
4
+ declare module "@polkadot/api-base/types/errors" {
5
+ interface AugmentedErrors<ApiType extends ApiTypes> {
6
+ babe: {
7
+ /**
8
+ * A given equivocation report is valid but already previously reported.
9
+ **/
10
+ DuplicateOffenceReport: AugmentedError<ApiType>;
11
+ /**
12
+ * Submitted configuration is invalid.
13
+ **/
14
+ InvalidConfiguration: AugmentedError<ApiType>;
15
+ /**
16
+ * An equivocation proof provided as part of an equivocation report is invalid.
17
+ **/
18
+ InvalidEquivocationProof: AugmentedError<ApiType>;
19
+ /**
20
+ * A key ownership proof provided as part of an equivocation report is invalid.
21
+ **/
22
+ InvalidKeyOwnershipProof: AugmentedError<ApiType>;
23
+ /**
24
+ * Generic error
25
+ **/
26
+ [key: string]: AugmentedError<ApiType>;
27
+ };
28
+ balances: {
29
+ /**
30
+ * Beneficiary account must pre-exist.
31
+ **/
32
+ DeadAccount: AugmentedError<ApiType>;
33
+ /**
34
+ * The delta cannot be zero.
35
+ **/
36
+ DeltaZero: AugmentedError<ApiType>;
37
+ /**
38
+ * Value too low to create account due to existential deposit.
39
+ **/
40
+ ExistentialDeposit: AugmentedError<ApiType>;
41
+ /**
42
+ * A vesting schedule already exists for this account.
43
+ **/
44
+ ExistingVestingSchedule: AugmentedError<ApiType>;
45
+ /**
46
+ * Transfer/payment would kill account.
47
+ **/
48
+ Expendability: AugmentedError<ApiType>;
49
+ /**
50
+ * Balance too low to send value.
51
+ **/
52
+ InsufficientBalance: AugmentedError<ApiType>;
53
+ /**
54
+ * The issuance cannot be modified since it is already deactivated.
55
+ **/
56
+ IssuanceDeactivated: AugmentedError<ApiType>;
57
+ /**
58
+ * Account liquidity restrictions prevent withdrawal.
59
+ **/
60
+ LiquidityRestrictions: AugmentedError<ApiType>;
61
+ /**
62
+ * Number of freezes exceed `MaxFreezes`.
63
+ **/
64
+ TooManyFreezes: AugmentedError<ApiType>;
65
+ /**
66
+ * Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
67
+ **/
68
+ TooManyHolds: AugmentedError<ApiType>;
69
+ /**
70
+ * Number of named reserves exceed `MaxReserves`.
71
+ **/
72
+ TooManyReserves: AugmentedError<ApiType>;
73
+ /**
74
+ * Vesting balance too high to send value.
75
+ **/
76
+ VestingBalance: AugmentedError<ApiType>;
77
+ /**
78
+ * Generic error
79
+ **/
80
+ [key: string]: AugmentedError<ApiType>;
81
+ };
82
+ bucketNfts: {
83
+ /**
84
+ * Bucket is not private. Call `update_bucket_privacy` from the file system pallet to make it private.
85
+ **/
86
+ BucketIsNotPrivate: AugmentedError<ApiType>;
87
+ /**
88
+ * Failed to convert bytes to `BoundedVec`
89
+ **/
90
+ ConvertBytesToBoundedVec: AugmentedError<ApiType>;
91
+ /**
92
+ * No collection corresponding to the bucket. Call `update_bucket_privacy` from the file system pallet to make it private.
93
+ **/
94
+ NoCorrespondingCollection: AugmentedError<ApiType>;
95
+ /**
96
+ * Account is not the owner of the bucket.
97
+ **/
98
+ NotBucketOwner: AugmentedError<ApiType>;
99
+ /**
100
+ * Generic error
101
+ **/
102
+ [key: string]: AugmentedError<ApiType>;
103
+ };
104
+ ethereum: {
105
+ /**
106
+ * Signature is invalid.
107
+ **/
108
+ InvalidSignature: AugmentedError<ApiType>;
109
+ /**
110
+ * Pre-log is present, therefore transact is not allowed.
111
+ **/
112
+ PreLogExists: AugmentedError<ApiType>;
113
+ /**
114
+ * Generic error
115
+ **/
116
+ [key: string]: AugmentedError<ApiType>;
117
+ };
118
+ evm: {
119
+ /**
120
+ * Not enough balance to perform action
121
+ **/
122
+ BalanceLow: AugmentedError<ApiType>;
123
+ /**
124
+ * Calculating total fee overflowed
125
+ **/
126
+ FeeOverflow: AugmentedError<ApiType>;
127
+ /**
128
+ * Gas limit is too high.
129
+ **/
130
+ GasLimitTooHigh: AugmentedError<ApiType>;
131
+ /**
132
+ * Gas limit is too low.
133
+ **/
134
+ GasLimitTooLow: AugmentedError<ApiType>;
135
+ /**
136
+ * Gas price is too low.
137
+ **/
138
+ GasPriceTooLow: AugmentedError<ApiType>;
139
+ /**
140
+ * The chain id is invalid.
141
+ **/
142
+ InvalidChainId: AugmentedError<ApiType>;
143
+ /**
144
+ * Nonce is invalid
145
+ **/
146
+ InvalidNonce: AugmentedError<ApiType>;
147
+ /**
148
+ * the signature is invalid.
149
+ **/
150
+ InvalidSignature: AugmentedError<ApiType>;
151
+ /**
152
+ * Calculating total payment overflowed
153
+ **/
154
+ PaymentOverflow: AugmentedError<ApiType>;
155
+ /**
156
+ * EVM reentrancy
157
+ **/
158
+ Reentrancy: AugmentedError<ApiType>;
159
+ /**
160
+ * EIP-3607,
161
+ **/
162
+ TransactionMustComeFromEOA: AugmentedError<ApiType>;
163
+ /**
164
+ * Undefined error.
165
+ **/
166
+ Undefined: AugmentedError<ApiType>;
167
+ /**
168
+ * Withdraw fee failed
169
+ **/
170
+ WithdrawFailed: AugmentedError<ApiType>;
171
+ /**
172
+ * Generic error
173
+ **/
174
+ [key: string]: AugmentedError<ApiType>;
175
+ };
176
+ fileSystem: {
177
+ /**
178
+ * BSP did not succeed threshold check.
179
+ **/
180
+ AboveThreshold: AugmentedError<ApiType>;
181
+ /**
182
+ * BSP has already confirmed storing the given file.
183
+ **/
184
+ BspAlreadyConfirmed: AugmentedError<ApiType>;
185
+ /**
186
+ * BSP is already a data server for the move bucket request.
187
+ **/
188
+ BspAlreadyDataServer: AugmentedError<ApiType>;
189
+ /**
190
+ * BSP already volunteered to store the given file.
191
+ **/
192
+ BspAlreadyVolunteered: AugmentedError<ApiType>;
193
+ /**
194
+ * Too many registered data servers for the move bucket request.
195
+ **/
196
+ BspDataServersExceeded: AugmentedError<ApiType>;
197
+ /**
198
+ * BSP has not confirmed storing the given file.
199
+ **/
200
+ BspNotConfirmed: AugmentedError<ApiType>;
201
+ /**
202
+ * BSP cannot volunteer at this current tick.
203
+ **/
204
+ BspNotEligibleToVolunteer: AugmentedError<ApiType>;
205
+ /**
206
+ * BSP has not volunteered to store the given file.
207
+ **/
208
+ BspNotVolunteered: AugmentedError<ApiType>;
209
+ /**
210
+ * Action not allowed while the bucket is being moved.
211
+ **/
212
+ BucketIsBeingMoved: AugmentedError<ApiType>;
213
+ /**
214
+ * Bucket is not private. Call `update_bucket_privacy` to make it private.
215
+ **/
216
+ BucketIsNotPrivate: AugmentedError<ApiType>;
217
+ /**
218
+ * Bucket is not empty.
219
+ **/
220
+ BucketNotEmpty: AugmentedError<ApiType>;
221
+ /**
222
+ * Bucket does not exist
223
+ **/
224
+ BucketNotFound: AugmentedError<ApiType>;
225
+ /**
226
+ * Cannot hold the required deposit from the user
227
+ **/
228
+ CannotHoldDeposit: AugmentedError<ApiType>;
229
+ /**
230
+ * Collection ID was not found.
231
+ **/
232
+ CollectionNotFound: AugmentedError<ApiType>;
233
+ /**
234
+ * Divided by 0
235
+ **/
236
+ DividedByZero: AugmentedError<ApiType>;
237
+ /**
238
+ * Failed to fetch the dynamic-rate payment stream.
239
+ **/
240
+ DynamicRatePaymentStreamNotFound: AugmentedError<ApiType>;
241
+ /**
242
+ * Failed to verify proof: required to provide a proof of inclusion.
243
+ **/
244
+ ExpectedInclusionProof: AugmentedError<ApiType>;
245
+ /**
246
+ * Failed to verify proof: required to provide a proof of non-inclusion.
247
+ **/
248
+ ExpectedNonInclusionProof: AugmentedError<ApiType>;
249
+ /**
250
+ * Failed to compute file key
251
+ **/
252
+ FailedToComputeFileKey: AugmentedError<ApiType>;
253
+ /**
254
+ * Failed to create file metadata
255
+ **/
256
+ FailedToCreateFileMetadata: AugmentedError<ApiType>;
257
+ /**
258
+ * Failed to decode threshold.
259
+ **/
260
+ FailedToDecodeThreshold: AugmentedError<ApiType>;
261
+ /**
262
+ * Failed to encode BSP id as slice.
263
+ **/
264
+ FailedToEncodeBsp: AugmentedError<ApiType>;
265
+ /**
266
+ * Failed to encode fingerprint as slice.
267
+ **/
268
+ FailedToEncodeFingerprint: AugmentedError<ApiType>;
269
+ /**
270
+ * Failed to get owner account of ID of provider
271
+ **/
272
+ FailedToGetOwnerAccount: AugmentedError<ApiType>;
273
+ /**
274
+ * Failed to get the payment account of the provider.
275
+ **/
276
+ FailedToGetPaymentAccount: AugmentedError<ApiType>;
277
+ /**
278
+ * Failed to query earliest volunteer tick
279
+ **/
280
+ FailedToQueryEarliestFileVolunteerTick: AugmentedError<ApiType>;
281
+ /**
282
+ * Failed to convert to primitive type.
283
+ **/
284
+ FailedTypeConversion: AugmentedError<ApiType>;
285
+ /**
286
+ * File key already pending deletion.
287
+ **/
288
+ FileKeyAlreadyPendingDeletion: AugmentedError<ApiType>;
289
+ /**
290
+ * File key computed from metadata doesn't match the provided file key.
291
+ **/
292
+ FileKeyMismatch: AugmentedError<ApiType>;
293
+ /**
294
+ * File key not found in pending deletion requests.
295
+ **/
296
+ FileKeyNotPendingDeletion: AugmentedError<ApiType>;
297
+ /**
298
+ * The bounded vector that holds file metadata to process it is full but there's still more to process.
299
+ **/
300
+ FileMetadataProcessingQueueFull: AugmentedError<ApiType>;
301
+ /**
302
+ * File size cannot be zero.
303
+ **/
304
+ FileSizeCannotBeZero: AugmentedError<ApiType>;
305
+ /**
306
+ * Failed to fetch the rate for the payment stream.
307
+ **/
308
+ FixedRatePaymentStreamNotFound: AugmentedError<ApiType>;
309
+ /**
310
+ * Forest proof verification failed.
311
+ **/
312
+ ForestProofVerificationFailed: AugmentedError<ApiType>;
313
+ /**
314
+ * Failed to get value when just checked it existed.
315
+ **/
316
+ ImpossibleFailedToGetValue: AugmentedError<ApiType>;
317
+ /**
318
+ * Incomplete storage request not found.
319
+ **/
320
+ IncompleteStorageRequestNotFound: AugmentedError<ApiType>;
321
+ /**
322
+ * Key already exists in mapping when it should not.
323
+ **/
324
+ InconsistentStateKeyAlreadyExists: AugmentedError<ApiType>;
325
+ /**
326
+ * SP does not have enough storage capacity to store the file.
327
+ **/
328
+ InsufficientAvailableCapacity: AugmentedError<ApiType>;
329
+ /**
330
+ * Bucket id and file key pair is invalid.
331
+ **/
332
+ InvalidBucketIdFileKeyPair: AugmentedError<ApiType>;
333
+ /**
334
+ * Metadata does not correspond to expected file key.
335
+ **/
336
+ InvalidFileKeyMetadata: AugmentedError<ApiType>;
337
+ /**
338
+ * Invalid provider ID provided.
339
+ **/
340
+ InvalidProviderID: AugmentedError<ApiType>;
341
+ /**
342
+ * Invalid signature provided for file operation
343
+ **/
344
+ InvalidSignature: AugmentedError<ApiType>;
345
+ /**
346
+ * Invalid signed operation provided.
347
+ **/
348
+ InvalidSignedOperation: AugmentedError<ApiType>;
349
+ /**
350
+ * Maximum threshold cannot be zero.
351
+ **/
352
+ MaximumThresholdCannotBeZero: AugmentedError<ApiType>;
353
+ /**
354
+ * Max replication target cannot be smaller than default replication target.
355
+ **/
356
+ MaxReplicationTargetSmallerThanDefault: AugmentedError<ApiType>;
357
+ /**
358
+ * Error created in 2024. If you see this, you are well beyond the singularity and should
359
+ * probably stop using this pallet.
360
+ **/
361
+ MaxTickNumberReached: AugmentedError<ApiType>;
362
+ /**
363
+ * Max number of user pending deletion requests reached.
364
+ **/
365
+ MaxUserPendingDeletionRequestsReached: AugmentedError<ApiType>;
366
+ /**
367
+ * Minimum amount of blocks between the request opening and being able to confirm it not reached.
368
+ **/
369
+ MinWaitForStopStoringNotReached: AugmentedError<ApiType>;
370
+ /**
371
+ * Move bucket request not found in storage.
372
+ **/
373
+ MoveBucketRequestNotFound: AugmentedError<ApiType>;
374
+ /**
375
+ * The MSP is trying to confirm to store a file from a storage request that it has already confirmed to store.
376
+ **/
377
+ MspAlreadyConfirmed: AugmentedError<ApiType>;
378
+ /**
379
+ * The MSP is already storing the bucket.
380
+ **/
381
+ MspAlreadyStoringBucket: AugmentedError<ApiType>;
382
+ /**
383
+ * Unauthorized operation, signer is not an MSP of the bucket id.
384
+ **/
385
+ MspNotStoringBucket: AugmentedError<ApiType>;
386
+ /**
387
+ * No BSP reputation weight set.
388
+ **/
389
+ NoBspReputationWeightSet: AugmentedError<ApiType>;
390
+ /**
391
+ * No file keys to confirm storing
392
+ **/
393
+ NoFileKeysToConfirm: AugmentedError<ApiType>;
394
+ /**
395
+ * No global reputation weight set.
396
+ **/
397
+ NoGlobalReputationWeightSet: AugmentedError<ApiType>;
398
+ /**
399
+ * Privacy update results in no change
400
+ **/
401
+ NoPrivacyChange: AugmentedError<ApiType>;
402
+ /**
403
+ * Account is not a BSP.
404
+ **/
405
+ NotABsp: AugmentedError<ApiType>;
406
+ /**
407
+ * Account is not a MSP.
408
+ **/
409
+ NotAMsp: AugmentedError<ApiType>;
410
+ /**
411
+ * Account is not a SP.
412
+ **/
413
+ NotASp: AugmentedError<ApiType>;
414
+ /**
415
+ * Operation failed because the account is not the owner of the bucket.
416
+ **/
417
+ NotBucketOwner: AugmentedError<ApiType>;
418
+ /**
419
+ * Unauthorized operation, signer does not own the file.
420
+ **/
421
+ NotFileOwner: AugmentedError<ApiType>;
422
+ /**
423
+ * The MSP is trying to confirm to store a file from a storage request is not the one selected to store it.
424
+ **/
425
+ NotSelectedMsp: AugmentedError<ApiType>;
426
+ /**
427
+ * Operations not allowed for insolvent provider
428
+ **/
429
+ OperationNotAllowedForInsolventProvider: AugmentedError<ApiType>;
430
+ /**
431
+ * Operations not allowed while bucket is not being stored by an MSP
432
+ **/
433
+ OperationNotAllowedWhileBucketIsNotStoredByMsp: AugmentedError<ApiType>;
434
+ /**
435
+ * Certain operations (such as issuing new storage requests) are not allowed when interacting with insolvent users.
436
+ **/
437
+ OperationNotAllowedWithInsolventUser: AugmentedError<ApiType>;
438
+ /**
439
+ * Pending stop storing request already exists.
440
+ **/
441
+ PendingStopStoringRequestAlreadyExists: AugmentedError<ApiType>;
442
+ /**
443
+ * Pending stop storing request not found.
444
+ **/
445
+ PendingStopStoringRequestNotFound: AugmentedError<ApiType>;
446
+ /**
447
+ * Provider is not storing the file.
448
+ **/
449
+ ProviderNotStoringFile: AugmentedError<ApiType>;
450
+ /**
451
+ * Root of the provider not found.
452
+ **/
453
+ ProviderRootNotFound: AugmentedError<ApiType>;
454
+ /**
455
+ * Replication target cannot be zero.
456
+ **/
457
+ ReplicationTargetCannotBeZero: AugmentedError<ApiType>;
458
+ /**
459
+ * BSPs required for storage request cannot exceed the maximum allowed.
460
+ **/
461
+ ReplicationTargetExceedsMaximum: AugmentedError<ApiType>;
462
+ /**
463
+ * The MSP is trying to confirm to store a file from a storage request that does not have a MSP assigned.
464
+ **/
465
+ RequestWithoutMsp: AugmentedError<ApiType>;
466
+ /**
467
+ * Root was not updated after applying delta
468
+ **/
469
+ RootNotUpdated: AugmentedError<ApiType>;
470
+ /**
471
+ * Storage request already registered for the given file.
472
+ **/
473
+ StorageRequestAlreadyRegistered: AugmentedError<ApiType>;
474
+ /**
475
+ * Number of BSPs required for storage request has been reached.
476
+ **/
477
+ StorageRequestBspsRequiredFulfilled: AugmentedError<ApiType>;
478
+ /**
479
+ * Operation not allowed while the storage request exists.
480
+ **/
481
+ StorageRequestExists: AugmentedError<ApiType>;
482
+ /**
483
+ * No slot available found in ticks to insert storage request expiration time.
484
+ **/
485
+ StorageRequestExpiredNoSlotAvailable: AugmentedError<ApiType>;
486
+ /**
487
+ * Not authorized to delete the storage request.
488
+ **/
489
+ StorageRequestNotAuthorized: AugmentedError<ApiType>;
490
+ /**
491
+ * Storage request not registered for the given file.
492
+ **/
493
+ StorageRequestNotFound: AugmentedError<ApiType>;
494
+ /**
495
+ * Operation not allowed while the storage request is not being revoked.
496
+ **/
497
+ StorageRequestNotRevoked: AugmentedError<ApiType>;
498
+ /**
499
+ * Arithmetic error in threshold calculation.
500
+ **/
501
+ ThresholdArithmeticError: AugmentedError<ApiType>;
502
+ /**
503
+ * BSPs assignment threshold cannot be below asymptote.
504
+ **/
505
+ ThresholdBelowAsymptote: AugmentedError<ApiType>;
506
+ /**
507
+ * Tick range to maximum threshold cannot be zero.
508
+ **/
509
+ TickRangeToMaximumThresholdCannotBeZero: AugmentedError<ApiType>;
510
+ /**
511
+ * Too many batch responses to process.
512
+ **/
513
+ TooManyBatchResponses: AugmentedError<ApiType>;
514
+ /**
515
+ * Too many storage request responses.
516
+ **/
517
+ TooManyStorageRequestResponses: AugmentedError<ApiType>;
518
+ /**
519
+ * Number of removed BSPs volunteered from storage request prefix did not match the expected number.
520
+ **/
521
+ UnexpectedNumberOfRemovedVolunteeredBsps: AugmentedError<ApiType>;
522
+ /**
523
+ * A SP tried to stop storing files from a user that was supposedly insolvent, but the user is not insolvent.
524
+ **/
525
+ UserNotInsolvent: AugmentedError<ApiType>;
526
+ /**
527
+ * The selected value proposition is not available in the MSP.
528
+ **/
529
+ ValuePropositionNotAvailable: AugmentedError<ApiType>;
530
+ /**
531
+ * Generic error
532
+ **/
533
+ [key: string]: AugmentedError<ApiType>;
534
+ };
535
+ grandpa: {
536
+ /**
537
+ * Attempt to signal GRANDPA change with one already pending.
538
+ **/
539
+ ChangePending: AugmentedError<ApiType>;
540
+ /**
541
+ * A given equivocation report is valid but already previously reported.
542
+ **/
543
+ DuplicateOffenceReport: AugmentedError<ApiType>;
544
+ /**
545
+ * An equivocation proof provided as part of an equivocation report is invalid.
546
+ **/
547
+ InvalidEquivocationProof: AugmentedError<ApiType>;
548
+ /**
549
+ * A key ownership proof provided as part of an equivocation report is invalid.
550
+ **/
551
+ InvalidKeyOwnershipProof: AugmentedError<ApiType>;
552
+ /**
553
+ * Attempt to signal GRANDPA pause when the authority set isn't live
554
+ * (either paused or already pending pause).
555
+ **/
556
+ PauseFailed: AugmentedError<ApiType>;
557
+ /**
558
+ * Attempt to signal GRANDPA resume when the authority set isn't paused
559
+ * (either live or already pending resume).
560
+ **/
561
+ ResumeFailed: AugmentedError<ApiType>;
562
+ /**
563
+ * Cannot signal forced change so soon after last.
564
+ **/
565
+ TooSoon: AugmentedError<ApiType>;
566
+ /**
567
+ * Generic error
568
+ **/
569
+ [key: string]: AugmentedError<ApiType>;
570
+ };
571
+ nfts: {
572
+ /**
573
+ * The provided Item was already used for claiming.
574
+ **/
575
+ AlreadyClaimed: AugmentedError<ApiType>;
576
+ /**
577
+ * The item ID has already been used for an item.
578
+ **/
579
+ AlreadyExists: AugmentedError<ApiType>;
580
+ /**
581
+ * The approval had a deadline that expired, so the approval isn't valid anymore.
582
+ **/
583
+ ApprovalExpired: AugmentedError<ApiType>;
584
+ /**
585
+ * The provided attribute can't be found.
586
+ **/
587
+ AttributeNotFound: AugmentedError<ApiType>;
588
+ /**
589
+ * The witness data given does not match the current state of the chain.
590
+ **/
591
+ BadWitness: AugmentedError<ApiType>;
592
+ /**
593
+ * The provided bid is too low.
594
+ **/
595
+ BidTooLow: AugmentedError<ApiType>;
596
+ /**
597
+ * Collection ID is already taken.
598
+ **/
599
+ CollectionIdInUse: AugmentedError<ApiType>;
600
+ /**
601
+ * Can't delete non-empty collections.
602
+ **/
603
+ CollectionNotEmpty: AugmentedError<ApiType>;
604
+ /**
605
+ * The deadline has already expired.
606
+ **/
607
+ DeadlineExpired: AugmentedError<ApiType>;
608
+ /**
609
+ * Item's config already exists and should be equal to the provided one.
610
+ **/
611
+ InconsistentItemConfig: AugmentedError<ApiType>;
612
+ /**
613
+ * The provided data is incorrect.
614
+ **/
615
+ IncorrectData: AugmentedError<ApiType>;
616
+ /**
617
+ * The provided metadata might be too long.
618
+ **/
619
+ IncorrectMetadata: AugmentedError<ApiType>;
620
+ /**
621
+ * The item is locked (non-transferable).
622
+ **/
623
+ ItemLocked: AugmentedError<ApiType>;
624
+ /**
625
+ * Items within that collection are non-transferable.
626
+ **/
627
+ ItemsNonTransferable: AugmentedError<ApiType>;
628
+ /**
629
+ * Collection's attributes are locked.
630
+ **/
631
+ LockedCollectionAttributes: AugmentedError<ApiType>;
632
+ /**
633
+ * Collection's metadata is locked.
634
+ **/
635
+ LockedCollectionMetadata: AugmentedError<ApiType>;
636
+ /**
637
+ * Item's attributes are locked.
638
+ **/
639
+ LockedItemAttributes: AugmentedError<ApiType>;
640
+ /**
641
+ * Item's metadata is locked.
642
+ **/
643
+ LockedItemMetadata: AugmentedError<ApiType>;
644
+ /**
645
+ * Can't set more attributes per one call.
646
+ **/
647
+ MaxAttributesLimitReached: AugmentedError<ApiType>;
648
+ /**
649
+ * The max supply is locked and can't be changed.
650
+ **/
651
+ MaxSupplyLocked: AugmentedError<ApiType>;
652
+ /**
653
+ * All items have been minted.
654
+ **/
655
+ MaxSupplyReached: AugmentedError<ApiType>;
656
+ /**
657
+ * The provided max supply is less than the number of items a collection already has.
658
+ **/
659
+ MaxSupplyTooSmall: AugmentedError<ApiType>;
660
+ /**
661
+ * The given item has no metadata set.
662
+ **/
663
+ MetadataNotFound: AugmentedError<ApiType>;
664
+ /**
665
+ * The method is disabled by system settings.
666
+ **/
667
+ MethodDisabled: AugmentedError<ApiType>;
668
+ /**
669
+ * Mint has already ended.
670
+ **/
671
+ MintEnded: AugmentedError<ApiType>;
672
+ /**
673
+ * Mint has not started yet.
674
+ **/
675
+ MintNotStarted: AugmentedError<ApiType>;
676
+ /**
677
+ * Config for a collection or an item can't be found.
678
+ **/
679
+ NoConfig: AugmentedError<ApiType>;
680
+ /**
681
+ * The signing account has no permission to do the operation.
682
+ **/
683
+ NoPermission: AugmentedError<ApiType>;
684
+ /**
685
+ * The provided account is not a delegate.
686
+ **/
687
+ NotDelegate: AugmentedError<ApiType>;
688
+ /**
689
+ * Item is not for sale.
690
+ **/
691
+ NotForSale: AugmentedError<ApiType>;
692
+ /**
693
+ * The item has reached its approval limit.
694
+ **/
695
+ ReachedApprovalLimit: AugmentedError<ApiType>;
696
+ /**
697
+ * Some roles were not cleared.
698
+ **/
699
+ RolesNotCleared: AugmentedError<ApiType>;
700
+ /**
701
+ * The named owner has not signed ownership acceptance of the collection.
702
+ **/
703
+ Unaccepted: AugmentedError<ApiType>;
704
+ /**
705
+ * No approval exists that would allow the transfer.
706
+ **/
707
+ Unapproved: AugmentedError<ApiType>;
708
+ /**
709
+ * The given item ID is unknown.
710
+ **/
711
+ UnknownCollection: AugmentedError<ApiType>;
712
+ /**
713
+ * The given item ID is unknown.
714
+ **/
715
+ UnknownItem: AugmentedError<ApiType>;
716
+ /**
717
+ * Swap doesn't exist.
718
+ **/
719
+ UnknownSwap: AugmentedError<ApiType>;
720
+ /**
721
+ * The witness data should be provided.
722
+ **/
723
+ WitnessRequired: AugmentedError<ApiType>;
724
+ /**
725
+ * The delegate turned out to be different to what was expected.
726
+ **/
727
+ WrongDelegate: AugmentedError<ApiType>;
728
+ /**
729
+ * The duration provided should be less than or equal to `MaxDeadlineDuration`.
730
+ **/
731
+ WrongDuration: AugmentedError<ApiType>;
732
+ /**
733
+ * The provided namespace isn't supported in this call.
734
+ **/
735
+ WrongNamespace: AugmentedError<ApiType>;
736
+ /**
737
+ * The extrinsic was sent by the wrong origin.
738
+ **/
739
+ WrongOrigin: AugmentedError<ApiType>;
740
+ /**
741
+ * The owner turned out to be different to what was expected.
742
+ **/
743
+ WrongOwner: AugmentedError<ApiType>;
744
+ /**
745
+ * The provided setting can't be set.
746
+ **/
747
+ WrongSetting: AugmentedError<ApiType>;
748
+ /**
749
+ * The provided signature is incorrect.
750
+ **/
751
+ WrongSignature: AugmentedError<ApiType>;
752
+ /**
753
+ * Generic error
754
+ **/
755
+ [key: string]: AugmentedError<ApiType>;
756
+ };
757
+ paymentStreams: {
758
+ /**
759
+ * Error thrown when trying to create a new dynamic-rate payment stream with amount provided 0 or update the amount provided of an existing one to 0 (should use remove_dynamic_rate_payment_stream instead)
760
+ **/
761
+ AmountProvidedCantBeZero: AugmentedError<ApiType>;
762
+ /**
763
+ * Error thrown when the system can't hold funds from the User as a deposit for creating a new payment stream
764
+ **/
765
+ CannotHoldDeposit: AugmentedError<ApiType>;
766
+ /**
767
+ * Error thrown when charging a payment stream would result in an overflow of the balance type
768
+ **/
769
+ ChargeOverflow: AugmentedError<ApiType>;
770
+ /**
771
+ * Error thrown when a user tries to clear the flag of being without funds before the cooldown period has passed
772
+ **/
773
+ CooldownPeriodNotPassed: AugmentedError<ApiType>;
774
+ /**
775
+ * Error thrown when the new last chargeable tick number that is trying to be set is greater than the current tick number or smaller than the previous last chargeable tick number
776
+ **/
777
+ InvalidLastChargeableBlockNumber: AugmentedError<ApiType>;
778
+ /**
779
+ * Error thrown when the new last chargeable price index that is trying to be set is greater than the current price index or smaller than the previous last chargeable price index
780
+ **/
781
+ InvalidLastChargeablePriceIndex: AugmentedError<ApiType>;
782
+ /**
783
+ * Error thrown when the tick number of when the payment stream was last charged is greater than the tick number of the last chargeable tick
784
+ **/
785
+ LastChargedGreaterThanLastChargeable: AugmentedError<ApiType>;
786
+ /**
787
+ * Error thrown when a user tries to charge a payment stream and it's not a registered Provider
788
+ **/
789
+ NotAProvider: AugmentedError<ApiType>;
790
+ /**
791
+ * Error thrown when a user of this pallet tries to add a payment stream that already exists.
792
+ **/
793
+ PaymentStreamAlreadyExists: AugmentedError<ApiType>;
794
+ /**
795
+ * Error thrown when a user of this pallet tries to update, remove or charge a payment stream that does not exist.
796
+ **/
797
+ PaymentStreamNotFound: AugmentedError<ApiType>;
798
+ /**
799
+ * Error thrown when failing to get the payment account of a registered Provider
800
+ **/
801
+ ProviderInconsistencyError: AugmentedError<ApiType>;
802
+ /**
803
+ * Error thrown when a charge is attempted when the provider is marked as insolvent
804
+ **/
805
+ ProviderInsolvent: AugmentedError<ApiType>;
806
+ /**
807
+ * Error thrown when trying to create a new fixed-rate payment stream with rate 0 or update the rate of an existing one to 0 (should use remove_fixed_rate_payment_stream instead)
808
+ **/
809
+ RateCantBeZero: AugmentedError<ApiType>;
810
+ /**
811
+ * Error thrown when trying to update the amount provided of a dynamic-rate payment stream to the same amount as before
812
+ **/
813
+ UpdateAmountToSameAmount: AugmentedError<ApiType>;
814
+ /**
815
+ * Error thrown when trying to update the rate of a fixed-rate payment stream to the same rate as before
816
+ **/
817
+ UpdateRateToSameRate: AugmentedError<ApiType>;
818
+ /**
819
+ * Error thrown when a user tries to clear the flag of being without funds before paying all its remaining debt
820
+ **/
821
+ UserHasRemainingDebt: AugmentedError<ApiType>;
822
+ /**
823
+ * Error thrown when a user that has not been flagged as without funds tries to use the extrinsic to pay its outstanding debt
824
+ **/
825
+ UserNotFlaggedAsWithoutFunds: AugmentedError<ApiType>;
826
+ /**
827
+ * Error thrown when trying to operate when the User has been flagged for not having enough funds.
828
+ **/
829
+ UserWithoutFunds: AugmentedError<ApiType>;
830
+ /**
831
+ * Generic error
832
+ **/
833
+ [key: string]: AugmentedError<ApiType>;
834
+ };
835
+ proofsDealer: {
836
+ /**
837
+ * `challenge` extrinsic errors
838
+ * The ChallengesQueue is full. No more manual challenges can be made
839
+ * until some of the challenges in the queue are dispatched.
840
+ **/
841
+ ChallengesQueueOverflow: AugmentedError<ApiType>;
842
+ /**
843
+ * Provider is submitting a proof for a tick in the future.
844
+ **/
845
+ ChallengesTickNotReached: AugmentedError<ApiType>;
846
+ /**
847
+ * Provider is submitting a proof for a tick too late, i.e. that the challenges tick
848
+ * is greater or equal than `challenges_tick` + `T::ChallengeTicksTolerance::get()`.
849
+ **/
850
+ ChallengesTickTooLate: AugmentedError<ApiType>;
851
+ /**
852
+ * Provider is submitting a proof for a tick before the last tick this pallet registers
853
+ * challenges for.
854
+ **/
855
+ ChallengesTickTooOld: AugmentedError<ApiType>;
856
+ /**
857
+ * Checkpoint challenges not found in block.
858
+ * This should only be possible if `TickToCheckpointChallenges` is dereferenced for a tick
859
+ * that is not a checkpoint tick.
860
+ **/
861
+ CheckpointChallengesNotFound: AugmentedError<ApiType>;
862
+ /**
863
+ * `submit_proof` extrinsic errors
864
+ * There are no key proofs submitted.
865
+ **/
866
+ EmptyKeyProofs: AugmentedError<ApiType>;
867
+ /**
868
+ * Failed to apply delta to the forest proof partial trie.
869
+ **/
870
+ FailedToApplyDelta: AugmentedError<ApiType>;
871
+ /**
872
+ * Failed to update the provider after a key removal mutation.
873
+ **/
874
+ FailedToUpdateProviderAfterKeyRemoval: AugmentedError<ApiType>;
875
+ /**
876
+ * The fee for submitting a challenge could not be charged.
877
+ **/
878
+ FeeChargeFailed: AugmentedError<ApiType>;
879
+ /**
880
+ * The forest proof submitted by the Provider is invalid.
881
+ * This could be because the proof is not valid for the root, or because the proof is
882
+ * not sufficient for the challenges made.
883
+ **/
884
+ ForestProofVerificationFailed: AugmentedError<ApiType>;
885
+ /**
886
+ * The number of key proofs submitted does not match the number of keys proven in the forest proof.
887
+ **/
888
+ IncorrectNumberOfKeyProofs: AugmentedError<ApiType>;
889
+ /**
890
+ * There is at least one key proven in the forest proof, that does not have a corresponding
891
+ * key proof.
892
+ **/
893
+ KeyProofNotFound: AugmentedError<ApiType>;
894
+ /**
895
+ * A key proof submitted by the Provider is invalid.
896
+ * This could be because the proof is not valid for the root of that key, or because the proof
897
+ * is not sufficient for the challenges made.
898
+ **/
899
+ KeyProofVerificationFailed: AugmentedError<ApiType>;
900
+ /**
901
+ * Provider is submitting a proof but there is no record of the last tick they
902
+ * submitted a proof for.
903
+ * Providers who are required to submit proofs should always have a record of the
904
+ * last tick they submitted a proof for, otherwise it means they haven't started
905
+ * providing service for any user yet.
906
+ **/
907
+ NoRecordOfLastSubmittedProof: AugmentedError<ApiType>;
908
+ /**
909
+ * General errors
910
+ * The proof submitter is not a registered Provider.
911
+ **/
912
+ NotProvider: AugmentedError<ApiType>;
913
+ /**
914
+ * The PriorityChallengesQueue is full. No more priority challenges can be made
915
+ * until some of the challenges in the queue are dispatched.
916
+ **/
917
+ PriorityChallengesQueueOverflow: AugmentedError<ApiType>;
918
+ /**
919
+ * The root for the Provider could not be found.
920
+ **/
921
+ ProviderRootNotFound: AugmentedError<ApiType>;
922
+ /**
923
+ * The provider stake could not be found.
924
+ **/
925
+ ProviderStakeNotFound: AugmentedError<ApiType>;
926
+ /**
927
+ * The seed for the tick could not be found.
928
+ * This should not be possible for a tick within the `ChallengeHistoryLength` range, as
929
+ * seeds are generated for all ticks, and stored within this range.
930
+ **/
931
+ SeedNotFound: AugmentedError<ApiType>;
932
+ /**
933
+ * The staked balance of the Provider could not be converted to `u128`.
934
+ * This should not be possible, as the `Balance` type should be an unsigned integer type.
935
+ **/
936
+ StakeCouldNotBeConverted: AugmentedError<ApiType>;
937
+ /**
938
+ * The limit of Providers that can submit a proof in a single tick has been reached.
939
+ **/
940
+ TooManyValidProofSubmitters: AugmentedError<ApiType>;
941
+ /**
942
+ * After successfully applying delta for a set of mutations, the number of mutated keys is
943
+ * not the same as the number of mutations expected to have been applied.
944
+ **/
945
+ UnexpectedNumberOfRemoveMutations: AugmentedError<ApiType>;
946
+ /**
947
+ * Provider is submitting a proof when they have a zero root.
948
+ * Providers with zero roots are not providing any service, so they should not be
949
+ * submitting proofs.
950
+ **/
951
+ ZeroRoot: AugmentedError<ApiType>;
952
+ /**
953
+ * Provider is submitting a proof but their stake is zero.
954
+ **/
955
+ ZeroStake: AugmentedError<ApiType>;
956
+ /**
957
+ * Generic error
958
+ **/
959
+ [key: string]: AugmentedError<ApiType>;
960
+ };
961
+ providers: {
962
+ /**
963
+ * Error thrown when a user tries to sign up as a SP but is already registered as a MSP or BSP.
964
+ **/
965
+ AlreadyRegistered: AugmentedError<ApiType>;
966
+ /**
967
+ * Error thrown when a bucket ID could not be added to the list of buckets of a MSP.
968
+ **/
969
+ AppendBucketToMspFailed: AugmentedError<ApiType>;
970
+ /**
971
+ * An operation dedicated to BSPs only
972
+ **/
973
+ BspOnlyOperation: AugmentedError<ApiType>;
974
+ /**
975
+ * Error thrown when a bucket ID already exists in storage.
976
+ **/
977
+ BucketAlreadyExists: AugmentedError<ApiType>;
978
+ /**
979
+ * Error thrown when a bucket has no value proposition.
980
+ **/
981
+ BucketHasNoValueProposition: AugmentedError<ApiType>;
982
+ /**
983
+ * Error thrown when an operation requires an MSP to be storing the bucket.
984
+ **/
985
+ BucketMustHaveMspForOperation: AugmentedError<ApiType>;
986
+ /**
987
+ * Bucket cannot be deleted because it is not empty.
988
+ **/
989
+ BucketNotEmpty: AugmentedError<ApiType>;
990
+ /**
991
+ * Error thrown when a bucket ID is not found in storage.
992
+ **/
993
+ BucketNotFound: AugmentedError<ApiType>;
994
+ /**
995
+ * Error thrown when a user exceeded the bucket data limit based on the associated value proposition.
996
+ **/
997
+ BucketSizeExceedsLimit: AugmentedError<ApiType>;
998
+ /**
999
+ * Error thrown when, after moving all buckets of a MSP when removing it from the system, the amount doesn't match the expected value.
1000
+ **/
1001
+ BucketsMovedAmountMismatch: AugmentedError<ApiType>;
1002
+ /**
1003
+ * Error thrown when the runtime cannot hold the required deposit from the account to register it as a SP or change its capacity.
1004
+ **/
1005
+ CannotHoldDeposit: AugmentedError<ApiType>;
1006
+ /**
1007
+ * Cannot stop BSP cycles without a default root
1008
+ **/
1009
+ CannotStopCycleWithNonDefaultRoot: AugmentedError<ApiType>;
1010
+ /**
1011
+ * Error thrown when a MSP tries to deactivate its last value proposition.
1012
+ **/
1013
+ CantDeactivateLastValueProp: AugmentedError<ApiType>;
1014
+ /**
1015
+ * Failed to delete a provider due to conditions not being met.
1016
+ *
1017
+ * Call `can_delete_provider` runtime API to check if the provider can be deleted.
1018
+ **/
1019
+ DeleteProviderConditionsNotMet: AugmentedError<ApiType>;
1020
+ /**
1021
+ * Deposit too low to determine capacity.
1022
+ **/
1023
+ DepositTooLow: AugmentedError<ApiType>;
1024
+ /**
1025
+ * Error thrown when a fixed payment stream is not found.
1026
+ **/
1027
+ FixedRatePaymentStreamNotFound: AugmentedError<ApiType>;
1028
+ /**
1029
+ * Error thrown when failing to decode the owner Account ID from the received metadata.
1030
+ **/
1031
+ InvalidEncodedAccountId: AugmentedError<ApiType>;
1032
+ /**
1033
+ * Error thrown when failing to decode the metadata from a received trie value that was removed.
1034
+ **/
1035
+ InvalidEncodedFileMetadata: AugmentedError<ApiType>;
1036
+ /**
1037
+ * Error thrown when a user tries to sign up as a SP but any of the provided multiaddresses is invalid.
1038
+ **/
1039
+ InvalidMultiAddress: AugmentedError<ApiType>;
1040
+ /**
1041
+ * Error thrown when a Provider tries to remove the last MultiAddress from its account.
1042
+ **/
1043
+ LastMultiAddressCantBeRemoved: AugmentedError<ApiType>;
1044
+ /**
1045
+ * Congratulations, you either lived long enough or were born late enough to see this error.
1046
+ **/
1047
+ MaxBlockNumberReached: AugmentedError<ApiType>;
1048
+ /**
1049
+ * Error thrown when changing the MSP of a bucket to the same assigned MSP.
1050
+ **/
1051
+ MspAlreadyAssignedToBucket: AugmentedError<ApiType>;
1052
+ /**
1053
+ * An operation dedicated to MSPs only
1054
+ **/
1055
+ MspOnlyOperation: AugmentedError<ApiType>;
1056
+ /**
1057
+ * Error thrown when a Provider tries to add a new MultiAddress to its account but it already exists.
1058
+ **/
1059
+ MultiAddressAlreadyExists: AugmentedError<ApiType>;
1060
+ /**
1061
+ * Error thrown when a Provider tries to add a new MultiAddress to its account but it already has the maximum amount of multiaddresses.
1062
+ **/
1063
+ MultiAddressesMaxAmountReached: AugmentedError<ApiType>;
1064
+ /**
1065
+ * Error thrown when a Provider tries to delete a MultiAddress from its account but it does not have that MultiAddress.
1066
+ **/
1067
+ MultiAddressNotFound: AugmentedError<ApiType>;
1068
+ /**
1069
+ * Error thrown when a user tries to change its capacity to zero (there are specific extrinsics to sign off as a SP).
1070
+ **/
1071
+ NewCapacityCantBeZero: AugmentedError<ApiType>;
1072
+ /**
1073
+ * Error thrown when a user tries to change its capacity to the same value it already has.
1074
+ **/
1075
+ NewCapacityEqualsCurrentCapacity: AugmentedError<ApiType>;
1076
+ /**
1077
+ * Error thrown when a user tries to change its capacity to less than its used storage.
1078
+ **/
1079
+ NewCapacityLessThanUsedStorage: AugmentedError<ApiType>;
1080
+ /**
1081
+ * Error thrown when a SP tries to change its capacity but the new capacity is not enough to store the used storage.
1082
+ **/
1083
+ NewUsedCapacityExceedsStorageCapacity: AugmentedError<ApiType>;
1084
+ /**
1085
+ * Error thrown when trying to get a root from a MSP without passing a Bucket ID.
1086
+ **/
1087
+ NoBucketId: AugmentedError<ApiType>;
1088
+ /**
1089
+ * Error thrown when a user tries to sign up without any multiaddress.
1090
+ **/
1091
+ NoMultiAddress: AugmentedError<ApiType>;
1092
+ /**
1093
+ * Error thrown when a user does not have enough balance to pay the deposit that it would incur by signing up as a SP or changing its capacity.
1094
+ **/
1095
+ NotEnoughBalance: AugmentedError<ApiType>;
1096
+ /**
1097
+ * Error thrown when a SP tries to change its capacity but it has not been enough time since the last time it changed it.
1098
+ **/
1099
+ NotEnoughTimePassed: AugmentedError<ApiType>;
1100
+ /**
1101
+ * Error thrown when a user tries to interact as a SP but is not registered as a MSP or BSP.
1102
+ **/
1103
+ NotRegistered: AugmentedError<ApiType>;
1104
+ /**
1105
+ * Error thrown when trying to get a root from a MSP without passing a User ID.
1106
+ **/
1107
+ NoUserId: AugmentedError<ApiType>;
1108
+ /**
1109
+ * Operation not allowed for insolvent provider
1110
+ **/
1111
+ OperationNotAllowedForInsolventProvider: AugmentedError<ApiType>;
1112
+ /**
1113
+ * Error thrown when trying to update a payment stream that does not exist.
1114
+ **/
1115
+ PaymentStreamNotFound: AugmentedError<ApiType>;
1116
+ /**
1117
+ * Error thrown when an attempt was made to slash an unslashable Storage Provider.
1118
+ **/
1119
+ ProviderNotSlashable: AugmentedError<ApiType>;
1120
+ /**
1121
+ * Error thrown when a user tries to confirm a sign up but the randomness is too fresh to be used yet.
1122
+ **/
1123
+ RandomnessNotValidYet: AugmentedError<ApiType>;
1124
+ /**
1125
+ * Error thrown when a user tries to sign off as a BSP but the sign off period has not passed yet.
1126
+ **/
1127
+ SignOffPeriodNotPassed: AugmentedError<ApiType>;
1128
+ /**
1129
+ * Error thrown when a user tries to confirm a sign up that was not requested previously.
1130
+ **/
1131
+ SignUpNotRequested: AugmentedError<ApiType>;
1132
+ /**
1133
+ * Error thrown when a user tries to confirm a sign up but too much time has passed since the request.
1134
+ **/
1135
+ SignUpRequestExpired: AugmentedError<ApiType>;
1136
+ /**
1137
+ * Error thrown when a user tries to request to sign up when it already has a sign up request pending.
1138
+ **/
1139
+ SignUpRequestPending: AugmentedError<ApiType>;
1140
+ /**
1141
+ * Error thrown when a user has a SP ID assigned to it but the SP data does not exist in storage (Inconsistency error).
1142
+ **/
1143
+ SpRegisteredButDataNotFound: AugmentedError<ApiType>;
1144
+ /**
1145
+ * Error thrown when a user tries to sign off as a SP but still has used storage.
1146
+ **/
1147
+ StorageStillInUse: AugmentedError<ApiType>;
1148
+ /**
1149
+ * Error thrown when a user tries to sign up or change its capacity to store less storage than the minimum required by the runtime.
1150
+ **/
1151
+ StorageTooLow: AugmentedError<ApiType>;
1152
+ /**
1153
+ * Error thrown when a provider attempts to top up their deposit when not required.
1154
+ **/
1155
+ TopUpNotRequired: AugmentedError<ApiType>;
1156
+ /**
1157
+ * Error thrown when value proposition under a given id already exists.
1158
+ **/
1159
+ ValuePropositionAlreadyExists: AugmentedError<ApiType>;
1160
+ /**
1161
+ * Error thrown when a value proposition is not available.
1162
+ **/
1163
+ ValuePropositionNotAvailable: AugmentedError<ApiType>;
1164
+ /**
1165
+ * Error thrown when the value proposition id is not found.
1166
+ **/
1167
+ ValuePropositionNotFound: AugmentedError<ApiType>;
1168
+ /**
1169
+ * Error thrown when, after deleting all value propositions of a MSP when removing it from the system, the amount doesn't match the expected value.
1170
+ **/
1171
+ ValuePropositionsDeletedAmountMismatch: AugmentedError<ApiType>;
1172
+ /**
1173
+ * Generic error
1174
+ **/
1175
+ [key: string]: AugmentedError<ApiType>;
1176
+ };
1177
+ session: {
1178
+ /**
1179
+ * Registered duplicate key.
1180
+ **/
1181
+ DuplicatedKey: AugmentedError<ApiType>;
1182
+ /**
1183
+ * Invalid ownership proof.
1184
+ **/
1185
+ InvalidProof: AugmentedError<ApiType>;
1186
+ /**
1187
+ * Key setting account is not live, so it's impossible to associate keys.
1188
+ **/
1189
+ NoAccount: AugmentedError<ApiType>;
1190
+ /**
1191
+ * No associated validator ID for account.
1192
+ **/
1193
+ NoAssociatedValidatorId: AugmentedError<ApiType>;
1194
+ /**
1195
+ * No keys are associated with this account.
1196
+ **/
1197
+ NoKeys: AugmentedError<ApiType>;
1198
+ /**
1199
+ * Generic error
1200
+ **/
1201
+ [key: string]: AugmentedError<ApiType>;
1202
+ };
1203
+ sudo: {
1204
+ /**
1205
+ * Sender must be the Sudo account.
1206
+ **/
1207
+ RequireSudo: AugmentedError<ApiType>;
1208
+ /**
1209
+ * Generic error
1210
+ **/
1211
+ [key: string]: AugmentedError<ApiType>;
1212
+ };
1213
+ system: {
1214
+ /**
1215
+ * The origin filter prevent the call to be dispatched.
1216
+ **/
1217
+ CallFiltered: AugmentedError<ApiType>;
1218
+ /**
1219
+ * Failed to extract the runtime version from the new runtime.
1220
+ *
1221
+ * Either calling `Core_version` or decoding `RuntimeVersion` failed.
1222
+ **/
1223
+ FailedToExtractRuntimeVersion: AugmentedError<ApiType>;
1224
+ /**
1225
+ * The name of specification does not match between the current runtime
1226
+ * and the new runtime.
1227
+ **/
1228
+ InvalidSpecName: AugmentedError<ApiType>;
1229
+ /**
1230
+ * A multi-block migration is ongoing and prevents the current code from being replaced.
1231
+ **/
1232
+ MultiBlockMigrationsOngoing: AugmentedError<ApiType>;
1233
+ /**
1234
+ * Suicide called when the account has non-default composite data.
1235
+ **/
1236
+ NonDefaultComposite: AugmentedError<ApiType>;
1237
+ /**
1238
+ * There is a non-zero reference count preventing the account from being purged.
1239
+ **/
1240
+ NonZeroRefCount: AugmentedError<ApiType>;
1241
+ /**
1242
+ * No upgrade authorized.
1243
+ **/
1244
+ NothingAuthorized: AugmentedError<ApiType>;
1245
+ /**
1246
+ * The specification version is not allowed to decrease between the current runtime
1247
+ * and the new runtime.
1248
+ **/
1249
+ SpecVersionNeedsToIncrease: AugmentedError<ApiType>;
1250
+ /**
1251
+ * The submitted code is not authorized.
1252
+ **/
1253
+ Unauthorized: AugmentedError<ApiType>;
1254
+ /**
1255
+ * Generic error
1256
+ **/
1257
+ [key: string]: AugmentedError<ApiType>;
1258
+ };
1259
+ }
1260
+ }