@storagehub/api-augment 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/biome.json +2 -9
- package/dist/parachain/index.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-consts.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-errors.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-events.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-query.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-tx.js.map +1 -0
- package/dist/parachain/interfaces/augment-api.js.map +1 -0
- package/dist/parachain/interfaces/augment-types.js.map +1 -0
- package/dist/parachain/interfaces/definitions.js.map +1 -0
- package/dist/parachain/interfaces/index.js.map +1 -0
- package/dist/{interfaces → parachain/interfaces}/lookup.js +1465 -813
- package/dist/parachain/interfaces/lookup.js.map +1 -0
- package/dist/parachain/interfaces/registry.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/parachain/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/parachain/interfaces/types-lookup.js.map +1 -0
- package/dist/parachain/interfaces/types.js.map +1 -0
- package/dist/solochain-evm/index.js +4 -0
- package/dist/solochain-evm/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-consts.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-consts.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-errors.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-errors.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-events.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-events.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-query.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-query.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-rpc.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-runtime.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-tx.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-tx.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api.js +10 -0
- package/dist/solochain-evm/interfaces/augment-api.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-types.js +6 -0
- package/dist/solochain-evm/interfaces/augment-types.js.map +1 -0
- package/dist/solochain-evm/interfaces/definitions.js +2 -0
- package/dist/solochain-evm/interfaces/definitions.js.map +1 -0
- package/dist/solochain-evm/interfaces/index.js +4 -0
- package/dist/solochain-evm/interfaces/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/lookup.js +3744 -0
- package/dist/solochain-evm/interfaces/lookup.js.map +1 -0
- package/dist/solochain-evm/interfaces/registry.js +6 -0
- package/dist/solochain-evm/interfaces/registry.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/solochain-evm/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/index.js +4 -0
- package/dist/solochain-evm/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/types.js +4 -0
- package/dist/solochain-evm/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/solochain-evm/interfaces/types-lookup.js +6 -0
- package/dist/solochain-evm/interfaces/types-lookup.js.map +1 -0
- package/dist/solochain-evm/interfaces/types.js +4 -0
- package/dist/solochain-evm/interfaces/types.js.map +1 -0
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-consts.d.ts +147 -20
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-errors.d.ts +235 -8
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-events.d.ts +542 -118
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-query.d.ts +208 -118
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-rpc.d.ts +61 -4
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-runtime.d.ts +97 -8
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-tx.d.ts +356 -181
- package/dist/types/{interfaces → parachain/interfaces}/augment-types.d.ts +144 -11
- package/dist/types/{interfaces → parachain/interfaces}/lookup.d.ts +1067 -513
- package/dist/types/parachain/interfaces/registry.d.ts +311 -0
- package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/types.d.ts +129 -18
- package/dist/types/{interfaces → parachain/interfaces}/types-lookup.d.ts +1619 -887
- package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +641 -0
- package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +1260 -0
- package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +2058 -0
- package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +1317 -0
- package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +775 -0
- package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +535 -0
- package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +2381 -0
- package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -0
- package/dist/types/solochain-evm/interfaces/augment-types.d.ts +1418 -0
- package/dist/types/solochain-evm/interfaces/index.d.ts +1 -0
- package/dist/types/solochain-evm/interfaces/lookup.d.ts +3363 -0
- package/dist/types/solochain-evm/interfaces/registry.d.ts +252 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/definitions.d.ts +6 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +319 -0
- package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +3577 -0
- package/dist/types/solochain-evm/interfaces/types.d.ts +1 -0
- package/metadata-sh-parachain.json +5 -0
- package/metadata-sh-solochain-evm.json +5 -0
- package/package.json +41 -26
- package/scripts/scrapeMetadata.ts +41 -29
- package/src/parachain/index.ts +3 -0
- package/src/{interfaces → parachain/interfaces}/augment-api-consts.ts +147 -20
- package/src/{interfaces → parachain/interfaces}/augment-api-errors.ts +235 -8
- package/src/{interfaces → parachain/interfaces}/augment-api-events.ts +527 -137
- package/src/{interfaces → parachain/interfaces}/augment-api-query.ts +272 -145
- package/src/{interfaces → parachain/interfaces}/augment-api-rpc.ts +123 -5
- package/src/{interfaces → parachain/interfaces}/augment-api-runtime.ts +183 -8
- package/src/{interfaces → parachain/interfaces}/augment-api-tx.ts +374 -182
- package/src/{interfaces → parachain/interfaces}/augment-types.ts +278 -12
- package/src/parachain/interfaces/definitions.ts +1 -0
- package/src/{interfaces → parachain/interfaces}/lookup.ts +1497 -813
- package/src/{interfaces → parachain/interfaces}/registry.ts +176 -98
- package/src/parachain/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/{interfaces → parachain/interfaces}/storagehubclient/types.ts +158 -18
- package/src/{interfaces → parachain/interfaces}/types-lookup.ts +1970 -896
- package/src/solochain-evm/index.ts +3 -0
- package/src/solochain-evm/interfaces/augment-api-consts.ts +655 -0
- package/src/solochain-evm/interfaces/augment-api-errors.ts +1268 -0
- package/src/solochain-evm/interfaces/augment-api-events.ts +1813 -0
- package/src/solochain-evm/interfaces/augment-api-query.ts +1838 -0
- package/src/solochain-evm/interfaces/augment-api-rpc.ts +1319 -0
- package/src/solochain-evm/interfaces/augment-api-runtime.ts +958 -0
- package/src/solochain-evm/interfaces/augment-api-tx.ts +2818 -0
- package/src/solochain-evm/interfaces/augment-api.ts +10 -0
- package/src/solochain-evm/interfaces/augment-types.ts +2774 -0
- package/src/solochain-evm/interfaces/definitions.ts +1 -0
- package/src/solochain-evm/interfaces/index.ts +4 -0
- package/src/solochain-evm/interfaces/lookup.ts +3788 -0
- package/src/solochain-evm/interfaces/registry.ts +506 -0
- package/src/solochain-evm/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/solochain-evm/interfaces/storagehubclient/index.ts +4 -0
- package/src/solochain-evm/interfaces/storagehubclient/types.ts +391 -0
- package/src/solochain-evm/interfaces/types-lookup.ts +4616 -0
- package/src/solochain-evm/interfaces/types.ts +4 -0
- package/tsconfig.json +17 -20
- package/tsconfig.parachain.json +17 -0
- package/tsconfig.solochain-evm.json +17 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/dist/index.js.map +0 -1
- package/dist/interfaces/augment-api-consts.js.map +0 -1
- package/dist/interfaces/augment-api-errors.js.map +0 -1
- package/dist/interfaces/augment-api-events.js.map +0 -1
- package/dist/interfaces/augment-api-query.js.map +0 -1
- package/dist/interfaces/augment-api-rpc.js.map +0 -1
- package/dist/interfaces/augment-api-runtime.js.map +0 -1
- package/dist/interfaces/augment-api-tx.js.map +0 -1
- package/dist/interfaces/augment-api.js.map +0 -1
- package/dist/interfaces/augment-types.js.map +0 -1
- package/dist/interfaces/definitions.js.map +0 -1
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/lookup.js.map +0 -1
- package/dist/interfaces/registry.js.map +0 -1
- package/dist/interfaces/storagehubclient/definitions.js +0 -7
- package/dist/interfaces/storagehubclient/definitions.js.map +0 -1
- package/dist/interfaces/storagehubclient/index.js.map +0 -1
- package/dist/interfaces/storagehubclient/runtime.js.map +0 -1
- package/dist/interfaces/storagehubclient/types.js.map +0 -1
- package/dist/interfaces/types-lookup.js.map +0 -1
- package/dist/interfaces/types.js.map +0 -1
- package/dist/types/interfaces/registry.d.ts +0 -272
- package/src/interfaces/storagehubclient/definitions.ts +0 -7
- package/storagehub.json +0 -1
- /package/dist/{index.js → parachain/index.js} +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-consts.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-errors.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-events.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-query.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-rpc.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-runtime.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-tx.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-types.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/definitions.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/index.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/registry.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/index.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/runtime.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/types.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/types-lookup.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/types.js +0 -0
- /package/dist/types/{index.d.ts → parachain/index.d.ts} +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/augment-api.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/definitions.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/index.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/definitions.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/index.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/runtime.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/types.d.ts +0 -0
- /package/{src/index.ts → dist/types/solochain-evm/index.d.ts} +0 -0
- /package/{src/interfaces/definitions.ts → dist/types/solochain-evm/interfaces/definitions.d.ts} +0 -0
- /package/src/{interfaces → parachain/interfaces}/augment-api.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/index.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/storagehubclient/index.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/storagehubclient/runtime.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/types.ts +0 -0
|
@@ -187,13 +187,13 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
187
187
|
**/
|
|
188
188
|
BspNotConfirmed: AugmentedError<ApiType>;
|
|
189
189
|
/**
|
|
190
|
-
* BSP
|
|
190
|
+
* BSP cannot volunteer at this current tick.
|
|
191
191
|
**/
|
|
192
|
-
|
|
192
|
+
BspNotEligibleToVolunteer: AugmentedError<ApiType>;
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* BSP has not volunteered to store the given file.
|
|
195
195
|
**/
|
|
196
|
-
|
|
196
|
+
BspNotVolunteered: AugmentedError<ApiType>;
|
|
197
197
|
/**
|
|
198
198
|
* Action not allowed while the bucket is being moved.
|
|
199
199
|
**/
|
|
@@ -202,14 +202,30 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
202
202
|
* Bucket is not private. Call `update_bucket_privacy` to make it private.
|
|
203
203
|
**/
|
|
204
204
|
BucketIsNotPrivate: AugmentedError<ApiType>;
|
|
205
|
+
/**
|
|
206
|
+
* Bucket is not empty.
|
|
207
|
+
**/
|
|
208
|
+
BucketNotEmpty: AugmentedError<ApiType>;
|
|
205
209
|
/**
|
|
206
210
|
* Bucket does not exist
|
|
207
211
|
**/
|
|
208
212
|
BucketNotFound: AugmentedError<ApiType>;
|
|
213
|
+
/**
|
|
214
|
+
* Cannot hold the required deposit from the user
|
|
215
|
+
**/
|
|
216
|
+
CannotHoldDeposit: AugmentedError<ApiType>;
|
|
217
|
+
/**
|
|
218
|
+
* Collection ID was not found.
|
|
219
|
+
**/
|
|
220
|
+
CollectionNotFound: AugmentedError<ApiType>;
|
|
209
221
|
/**
|
|
210
222
|
* Divided by 0
|
|
211
223
|
**/
|
|
212
224
|
DividedByZero: AugmentedError<ApiType>;
|
|
225
|
+
/**
|
|
226
|
+
* Failed to fetch the dynamic-rate payment stream.
|
|
227
|
+
**/
|
|
228
|
+
DynamicRatePaymentStreamNotFound: AugmentedError<ApiType>;
|
|
213
229
|
/**
|
|
214
230
|
* Failed to verify proof: required to provide a proof of inclusion.
|
|
215
231
|
**/
|
|
@@ -218,6 +234,14 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
218
234
|
* Failed to verify proof: required to provide a proof of non-inclusion.
|
|
219
235
|
**/
|
|
220
236
|
ExpectedNonInclusionProof: AugmentedError<ApiType>;
|
|
237
|
+
/**
|
|
238
|
+
* Failed to compute file key
|
|
239
|
+
**/
|
|
240
|
+
FailedToComputeFileKey: AugmentedError<ApiType>;
|
|
241
|
+
/**
|
|
242
|
+
* Failed to create file metadata
|
|
243
|
+
**/
|
|
244
|
+
FailedToCreateFileMetadata: AugmentedError<ApiType>;
|
|
221
245
|
/**
|
|
222
246
|
* Failed to decode threshold.
|
|
223
247
|
**/
|
|
@@ -230,6 +254,18 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
230
254
|
* Failed to encode fingerprint as slice.
|
|
231
255
|
**/
|
|
232
256
|
FailedToEncodeFingerprint: AugmentedError<ApiType>;
|
|
257
|
+
/**
|
|
258
|
+
* Failed to get owner account of ID of provider
|
|
259
|
+
**/
|
|
260
|
+
FailedToGetOwnerAccount: AugmentedError<ApiType>;
|
|
261
|
+
/**
|
|
262
|
+
* Failed to get the payment account of the provider.
|
|
263
|
+
**/
|
|
264
|
+
FailedToGetPaymentAccount: AugmentedError<ApiType>;
|
|
265
|
+
/**
|
|
266
|
+
* Failed to query earliest volunteer tick
|
|
267
|
+
**/
|
|
268
|
+
FailedToQueryEarliestFileVolunteerTick: AugmentedError<ApiType>;
|
|
233
269
|
/**
|
|
234
270
|
* Failed to convert to primitive type.
|
|
235
271
|
**/
|
|
@@ -238,6 +274,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
238
274
|
* File key already pending deletion.
|
|
239
275
|
**/
|
|
240
276
|
FileKeyAlreadyPendingDeletion: AugmentedError<ApiType>;
|
|
277
|
+
/**
|
|
278
|
+
* File key computed from metadata doesn't match the provided file key.
|
|
279
|
+
**/
|
|
280
|
+
FileKeyMismatch: AugmentedError<ApiType>;
|
|
241
281
|
/**
|
|
242
282
|
* File key not found in pending deletion requests.
|
|
243
283
|
**/
|
|
@@ -250,10 +290,22 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
250
290
|
* File size cannot be zero.
|
|
251
291
|
**/
|
|
252
292
|
FileSizeCannotBeZero: AugmentedError<ApiType>;
|
|
293
|
+
/**
|
|
294
|
+
* Failed to fetch the rate for the payment stream.
|
|
295
|
+
**/
|
|
296
|
+
FixedRatePaymentStreamNotFound: AugmentedError<ApiType>;
|
|
297
|
+
/**
|
|
298
|
+
* Forest proof verification failed.
|
|
299
|
+
**/
|
|
300
|
+
ForestProofVerificationFailed: AugmentedError<ApiType>;
|
|
253
301
|
/**
|
|
254
302
|
* Failed to get value when just checked it existed.
|
|
255
303
|
**/
|
|
256
304
|
ImpossibleFailedToGetValue: AugmentedError<ApiType>;
|
|
305
|
+
/**
|
|
306
|
+
* Incomplete storage request not found.
|
|
307
|
+
**/
|
|
308
|
+
IncompleteStorageRequestNotFound: AugmentedError<ApiType>;
|
|
257
309
|
/**
|
|
258
310
|
* Key already exists in mapping when it should not.
|
|
259
311
|
**/
|
|
@@ -271,14 +323,30 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
271
323
|
**/
|
|
272
324
|
InvalidFileKeyMetadata: AugmentedError<ApiType>;
|
|
273
325
|
/**
|
|
274
|
-
*
|
|
275
|
-
* probably stop using this pallet.
|
|
326
|
+
* Invalid provider ID provided.
|
|
276
327
|
**/
|
|
277
|
-
|
|
328
|
+
InvalidProviderID: AugmentedError<ApiType>;
|
|
329
|
+
/**
|
|
330
|
+
* Invalid signature provided for file operation
|
|
331
|
+
**/
|
|
332
|
+
InvalidSignature: AugmentedError<ApiType>;
|
|
333
|
+
/**
|
|
334
|
+
* Invalid signed operation provided.
|
|
335
|
+
**/
|
|
336
|
+
InvalidSignedOperation: AugmentedError<ApiType>;
|
|
278
337
|
/**
|
|
279
338
|
* Maximum threshold cannot be zero.
|
|
280
339
|
**/
|
|
281
340
|
MaximumThresholdCannotBeZero: AugmentedError<ApiType>;
|
|
341
|
+
/**
|
|
342
|
+
* Max replication target cannot be smaller than default replication target.
|
|
343
|
+
**/
|
|
344
|
+
MaxReplicationTargetSmallerThanDefault: AugmentedError<ApiType>;
|
|
345
|
+
/**
|
|
346
|
+
* Error created in 2024. If you see this, you are well beyond the singularity and should
|
|
347
|
+
* probably stop using this pallet.
|
|
348
|
+
**/
|
|
349
|
+
MaxTickNumberReached: AugmentedError<ApiType>;
|
|
282
350
|
/**
|
|
283
351
|
* Max number of user pending deletion requests reached.
|
|
284
352
|
**/
|
|
@@ -303,10 +371,22 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
303
371
|
* Unauthorized operation, signer is not an MSP of the bucket id.
|
|
304
372
|
**/
|
|
305
373
|
MspNotStoringBucket: AugmentedError<ApiType>;
|
|
374
|
+
/**
|
|
375
|
+
* No BSP reputation weight set.
|
|
376
|
+
**/
|
|
377
|
+
NoBspReputationWeightSet: AugmentedError<ApiType>;
|
|
378
|
+
/**
|
|
379
|
+
* No file keys to confirm storing
|
|
380
|
+
**/
|
|
381
|
+
NoFileKeysToConfirm: AugmentedError<ApiType>;
|
|
306
382
|
/**
|
|
307
383
|
* No global reputation weight set.
|
|
308
384
|
**/
|
|
309
385
|
NoGlobalReputationWeightSet: AugmentedError<ApiType>;
|
|
386
|
+
/**
|
|
387
|
+
* Privacy update results in no change
|
|
388
|
+
**/
|
|
389
|
+
NoPrivacyChange: AugmentedError<ApiType>;
|
|
310
390
|
/**
|
|
311
391
|
* Account is not a BSP.
|
|
312
392
|
**/
|
|
@@ -331,6 +411,18 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
331
411
|
* The MSP is trying to confirm to store a file from a storage request is not the one selected to store it.
|
|
332
412
|
**/
|
|
333
413
|
NotSelectedMsp: AugmentedError<ApiType>;
|
|
414
|
+
/**
|
|
415
|
+
* Operations not allowed for insolvent provider
|
|
416
|
+
**/
|
|
417
|
+
OperationNotAllowedForInsolventProvider: AugmentedError<ApiType>;
|
|
418
|
+
/**
|
|
419
|
+
* Operations not allowed while bucket is not being stored by an MSP
|
|
420
|
+
**/
|
|
421
|
+
OperationNotAllowedWhileBucketIsNotStoredByMsp: AugmentedError<ApiType>;
|
|
422
|
+
/**
|
|
423
|
+
* Certain operations (such as issuing new storage requests) are not allowed when interacting with insolvent users.
|
|
424
|
+
**/
|
|
425
|
+
OperationNotAllowedWithInsolventUser: AugmentedError<ApiType>;
|
|
334
426
|
/**
|
|
335
427
|
* Pending stop storing request already exists.
|
|
336
428
|
**/
|
|
@@ -339,6 +431,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
339
431
|
* Pending stop storing request not found.
|
|
340
432
|
**/
|
|
341
433
|
PendingStopStoringRequestNotFound: AugmentedError<ApiType>;
|
|
434
|
+
/**
|
|
435
|
+
* Provider is not storing the file.
|
|
436
|
+
**/
|
|
437
|
+
ProviderNotStoringFile: AugmentedError<ApiType>;
|
|
342
438
|
/**
|
|
343
439
|
* Root of the provider not found.
|
|
344
440
|
**/
|
|
@@ -347,10 +443,18 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
347
443
|
* Replication target cannot be zero.
|
|
348
444
|
**/
|
|
349
445
|
ReplicationTargetCannotBeZero: AugmentedError<ApiType>;
|
|
446
|
+
/**
|
|
447
|
+
* BSPs required for storage request cannot exceed the maximum allowed.
|
|
448
|
+
**/
|
|
449
|
+
ReplicationTargetExceedsMaximum: AugmentedError<ApiType>;
|
|
350
450
|
/**
|
|
351
451
|
* The MSP is trying to confirm to store a file from a storage request that does not have a MSP assigned.
|
|
352
452
|
**/
|
|
353
453
|
RequestWithoutMsp: AugmentedError<ApiType>;
|
|
454
|
+
/**
|
|
455
|
+
* Root was not updated after applying delta
|
|
456
|
+
**/
|
|
457
|
+
RootNotUpdated: AugmentedError<ApiType>;
|
|
354
458
|
/**
|
|
355
459
|
* Storage request already registered for the given file.
|
|
356
460
|
**/
|
|
@@ -364,7 +468,7 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
364
468
|
**/
|
|
365
469
|
StorageRequestExists: AugmentedError<ApiType>;
|
|
366
470
|
/**
|
|
367
|
-
* No slot available found in
|
|
471
|
+
* No slot available found in ticks to insert storage request expiration time.
|
|
368
472
|
**/
|
|
369
473
|
StorageRequestExpiredNoSlotAvailable: AugmentedError<ApiType>;
|
|
370
474
|
/**
|
|
@@ -407,6 +511,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
407
511
|
* A SP tried to stop storing files from a user that was supposedly insolvent, but the user is not insolvent.
|
|
408
512
|
**/
|
|
409
513
|
UserNotInsolvent: AugmentedError<ApiType>;
|
|
514
|
+
/**
|
|
515
|
+
* The selected value proposition is not available in the MSP.
|
|
516
|
+
**/
|
|
517
|
+
ValuePropositionNotAvailable: AugmentedError<ApiType>;
|
|
410
518
|
/**
|
|
411
519
|
* Generic error
|
|
412
520
|
**/
|
|
@@ -730,6 +838,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
730
838
|
* Error thrown when failing to get the payment account of a registered Provider
|
|
731
839
|
**/
|
|
732
840
|
ProviderInconsistencyError: AugmentedError<ApiType>;
|
|
841
|
+
/**
|
|
842
|
+
* Error thrown when a charge is attempted when the provider is marked as insolvent
|
|
843
|
+
**/
|
|
844
|
+
ProviderInsolvent: AugmentedError<ApiType>;
|
|
733
845
|
/**
|
|
734
846
|
* 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)
|
|
735
847
|
**/
|
|
@@ -742,6 +854,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
742
854
|
* Error thrown when trying to update the rate of a fixed-rate payment stream to the same rate as before
|
|
743
855
|
**/
|
|
744
856
|
UpdateRateToSameRate: AugmentedError<ApiType>;
|
|
857
|
+
/**
|
|
858
|
+
* Error thrown when a user tries to clear the flag of being without funds before paying all its remaining debt
|
|
859
|
+
**/
|
|
860
|
+
UserHasRemainingDebt: AugmentedError<ApiType>;
|
|
745
861
|
/**
|
|
746
862
|
* Error thrown when a user that has not been flagged as without funds tries to use the extrinsic to pay its outstanding debt
|
|
747
863
|
**/
|
|
@@ -910,6 +1026,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
910
1026
|
* not sufficient for the challenges made.
|
|
911
1027
|
**/
|
|
912
1028
|
ForestProofVerificationFailed: AugmentedError<ApiType>;
|
|
1029
|
+
/**
|
|
1030
|
+
* The number of key proofs submitted does not match the number of keys proven in the forest proof.
|
|
1031
|
+
**/
|
|
1032
|
+
IncorrectNumberOfKeyProofs: AugmentedError<ApiType>;
|
|
913
1033
|
/**
|
|
914
1034
|
* There is at least one key proven in the forest proof, that does not have a corresponding
|
|
915
1035
|
* key proof.
|
|
@@ -962,6 +1082,11 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
962
1082
|
* The limit of Providers that can submit a proof in a single tick has been reached.
|
|
963
1083
|
**/
|
|
964
1084
|
TooManyValidProofSubmitters: AugmentedError<ApiType>;
|
|
1085
|
+
/**
|
|
1086
|
+
* After successfully applying delta for a set of mutations, the number of mutated keys is
|
|
1087
|
+
* not the same as the number of mutations expected to have been applied.
|
|
1088
|
+
**/
|
|
1089
|
+
UnexpectedNumberOfRemoveMutations: AugmentedError<ApiType>;
|
|
965
1090
|
/**
|
|
966
1091
|
* Provider is submitting a proof when they have a zero root.
|
|
967
1092
|
* Providers with zero roots are not providing any service, so they should not be
|
|
@@ -986,18 +1111,64 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
986
1111
|
* Error thrown when a bucket ID could not be added to the list of buckets of a MSP.
|
|
987
1112
|
**/
|
|
988
1113
|
AppendBucketToMspFailed: AugmentedError<ApiType>;
|
|
1114
|
+
/**
|
|
1115
|
+
* An operation dedicated to BSPs only
|
|
1116
|
+
**/
|
|
1117
|
+
BspOnlyOperation: AugmentedError<ApiType>;
|
|
989
1118
|
/**
|
|
990
1119
|
* Error thrown when a bucket ID already exists in storage.
|
|
991
1120
|
**/
|
|
992
1121
|
BucketAlreadyExists: AugmentedError<ApiType>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Error thrown when a bucket has no value proposition.
|
|
1124
|
+
**/
|
|
1125
|
+
BucketHasNoValueProposition: AugmentedError<ApiType>;
|
|
1126
|
+
/**
|
|
1127
|
+
* Error thrown when an operation requires an MSP to be storing the bucket.
|
|
1128
|
+
**/
|
|
1129
|
+
BucketMustHaveMspForOperation: AugmentedError<ApiType>;
|
|
1130
|
+
/**
|
|
1131
|
+
* Bucket cannot be deleted because it is not empty.
|
|
1132
|
+
**/
|
|
1133
|
+
BucketNotEmpty: AugmentedError<ApiType>;
|
|
993
1134
|
/**
|
|
994
1135
|
* Error thrown when a bucket ID is not found in storage.
|
|
995
1136
|
**/
|
|
996
1137
|
BucketNotFound: AugmentedError<ApiType>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Error thrown when a user exceeded the bucket data limit based on the associated value proposition.
|
|
1140
|
+
**/
|
|
1141
|
+
BucketSizeExceedsLimit: AugmentedError<ApiType>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Error thrown when, after moving all buckets of a MSP when removing it from the system, the amount doesn't match the expected value.
|
|
1144
|
+
**/
|
|
1145
|
+
BucketsMovedAmountMismatch: AugmentedError<ApiType>;
|
|
997
1146
|
/**
|
|
998
1147
|
* Error thrown when the runtime cannot hold the required deposit from the account to register it as a SP or change its capacity.
|
|
999
1148
|
**/
|
|
1000
1149
|
CannotHoldDeposit: AugmentedError<ApiType>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Cannot stop BSP cycles without a default root
|
|
1152
|
+
**/
|
|
1153
|
+
CannotStopCycleWithNonDefaultRoot: AugmentedError<ApiType>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Error thrown when a MSP tries to deactivate its last value proposition.
|
|
1156
|
+
**/
|
|
1157
|
+
CantDeactivateLastValueProp: AugmentedError<ApiType>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Failed to delete a provider due to conditions not being met.
|
|
1160
|
+
*
|
|
1161
|
+
* Call `can_delete_provider` runtime API to check if the provider can be deleted.
|
|
1162
|
+
**/
|
|
1163
|
+
DeleteProviderConditionsNotMet: AugmentedError<ApiType>;
|
|
1164
|
+
/**
|
|
1165
|
+
* Deposit too low to determine capacity.
|
|
1166
|
+
**/
|
|
1167
|
+
DepositTooLow: AugmentedError<ApiType>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Error thrown when a fixed payment stream is not found.
|
|
1170
|
+
**/
|
|
1171
|
+
FixedRatePaymentStreamNotFound: AugmentedError<ApiType>;
|
|
1001
1172
|
/**
|
|
1002
1173
|
* Error thrown when failing to decode the owner Account ID from the received metadata.
|
|
1003
1174
|
**/
|
|
@@ -1010,6 +1181,34 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
1010
1181
|
* Error thrown when a user tries to sign up as a SP but any of the provided multiaddresses is invalid.
|
|
1011
1182
|
**/
|
|
1012
1183
|
InvalidMultiAddress: AugmentedError<ApiType>;
|
|
1184
|
+
/**
|
|
1185
|
+
* Error thrown when a Provider tries to remove the last MultiAddress from its account.
|
|
1186
|
+
**/
|
|
1187
|
+
LastMultiAddressCantBeRemoved: AugmentedError<ApiType>;
|
|
1188
|
+
/**
|
|
1189
|
+
* Congratulations, you either lived long enough or were born late enough to see this error.
|
|
1190
|
+
**/
|
|
1191
|
+
MaxBlockNumberReached: AugmentedError<ApiType>;
|
|
1192
|
+
/**
|
|
1193
|
+
* Error thrown when changing the MSP of a bucket to the same assigned MSP.
|
|
1194
|
+
**/
|
|
1195
|
+
MspAlreadyAssignedToBucket: AugmentedError<ApiType>;
|
|
1196
|
+
/**
|
|
1197
|
+
* An operation dedicated to MSPs only
|
|
1198
|
+
**/
|
|
1199
|
+
MspOnlyOperation: AugmentedError<ApiType>;
|
|
1200
|
+
/**
|
|
1201
|
+
* Error thrown when a Provider tries to add a new MultiAddress to its account but it already exists.
|
|
1202
|
+
**/
|
|
1203
|
+
MultiAddressAlreadyExists: AugmentedError<ApiType>;
|
|
1204
|
+
/**
|
|
1205
|
+
* Error thrown when a Provider tries to add a new MultiAddress to its account but it already has the maximum amount of multiaddresses.
|
|
1206
|
+
**/
|
|
1207
|
+
MultiAddressesMaxAmountReached: AugmentedError<ApiType>;
|
|
1208
|
+
/**
|
|
1209
|
+
* Error thrown when a Provider tries to delete a MultiAddress from its account but it does not have that MultiAddress.
|
|
1210
|
+
**/
|
|
1211
|
+
MultiAddressNotFound: AugmentedError<ApiType>;
|
|
1013
1212
|
/**
|
|
1014
1213
|
* Error thrown when a user tries to change its capacity to zero (there are specific extrinsics to sign off as a SP).
|
|
1015
1214
|
**/
|
|
@@ -1050,6 +1249,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
1050
1249
|
* Error thrown when trying to get a root from a MSP without passing a User ID.
|
|
1051
1250
|
**/
|
|
1052
1251
|
NoUserId: AugmentedError<ApiType>;
|
|
1252
|
+
/**
|
|
1253
|
+
* Operation not allowed for insolvent provider
|
|
1254
|
+
**/
|
|
1255
|
+
OperationNotAllowedForInsolventProvider: AugmentedError<ApiType>;
|
|
1053
1256
|
/**
|
|
1054
1257
|
* Error thrown when trying to update a payment stream that does not exist.
|
|
1055
1258
|
**/
|
|
@@ -1062,6 +1265,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
1062
1265
|
* Error thrown when a user tries to confirm a sign up but the randomness is too fresh to be used yet.
|
|
1063
1266
|
**/
|
|
1064
1267
|
RandomnessNotValidYet: AugmentedError<ApiType>;
|
|
1268
|
+
/**
|
|
1269
|
+
* Error thrown when a user tries to sign off as a BSP but the sign off period has not passed yet.
|
|
1270
|
+
**/
|
|
1271
|
+
SignOffPeriodNotPassed: AugmentedError<ApiType>;
|
|
1065
1272
|
/**
|
|
1066
1273
|
* Error thrown when a user tries to confirm a sign up that was not requested previously.
|
|
1067
1274
|
**/
|
|
@@ -1086,6 +1293,26 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
1086
1293
|
* Error thrown when a user tries to sign up or change its capacity to store less storage than the minimum required by the runtime.
|
|
1087
1294
|
**/
|
|
1088
1295
|
StorageTooLow: AugmentedError<ApiType>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Error thrown when a provider attempts to top up their deposit when not required.
|
|
1298
|
+
**/
|
|
1299
|
+
TopUpNotRequired: AugmentedError<ApiType>;
|
|
1300
|
+
/**
|
|
1301
|
+
* Error thrown when value proposition under a given id already exists.
|
|
1302
|
+
**/
|
|
1303
|
+
ValuePropositionAlreadyExists: AugmentedError<ApiType>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Error thrown when a value proposition is not available.
|
|
1306
|
+
**/
|
|
1307
|
+
ValuePropositionNotAvailable: AugmentedError<ApiType>;
|
|
1308
|
+
/**
|
|
1309
|
+
* Error thrown when the value proposition id is not found.
|
|
1310
|
+
**/
|
|
1311
|
+
ValuePropositionNotFound: AugmentedError<ApiType>;
|
|
1312
|
+
/**
|
|
1313
|
+
* 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.
|
|
1314
|
+
**/
|
|
1315
|
+
ValuePropositionsDeletedAmountMismatch: AugmentedError<ApiType>;
|
|
1089
1316
|
/**
|
|
1090
1317
|
* Generic error
|
|
1091
1318
|
**/
|