@storagehub/api-augment 0.2.10 → 0.2.14

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 (84) hide show
  1. package/dist/parachain/interfaces/augment-api-consts.js +1 -1
  2. package/dist/parachain/interfaces/augment-api-errors.js +1 -1
  3. package/dist/parachain/interfaces/augment-api-events.js +1 -1
  4. package/dist/parachain/interfaces/augment-api-query.js +1 -1
  5. package/dist/parachain/interfaces/augment-api-rpc.js +1 -1
  6. package/dist/parachain/interfaces/augment-api-runtime.js +1 -1
  7. package/dist/parachain/interfaces/augment-api-tx.js +1 -1
  8. package/dist/parachain/interfaces/augment-api.js +7 -7
  9. package/dist/parachain/interfaces/augment-types.js +1 -1
  10. package/dist/parachain/interfaces/index.js +1 -1
  11. package/dist/parachain/interfaces/lookup.js +2406 -2869
  12. package/dist/parachain/interfaces/lookup.js.map +1 -1
  13. package/dist/parachain/interfaces/registry.js +1 -1
  14. package/dist/parachain/interfaces/storagehubclient/index.js +1 -1
  15. package/dist/parachain/interfaces/types-lookup.js +1 -1
  16. package/dist/parachain/interfaces/types.js +1 -1
  17. package/dist/solochain-evm/interfaces/augment-api-consts.js +1 -1
  18. package/dist/solochain-evm/interfaces/augment-api-errors.js +1 -1
  19. package/dist/solochain-evm/interfaces/augment-api-events.js +1 -1
  20. package/dist/solochain-evm/interfaces/augment-api-query.js +1 -1
  21. package/dist/solochain-evm/interfaces/augment-api-rpc.js +1 -1
  22. package/dist/solochain-evm/interfaces/augment-api-runtime.js +1 -1
  23. package/dist/solochain-evm/interfaces/augment-api-tx.js +1 -1
  24. package/dist/solochain-evm/interfaces/augment-api.js +7 -7
  25. package/dist/solochain-evm/interfaces/augment-types.js +1 -1
  26. package/dist/solochain-evm/interfaces/index.js +1 -1
  27. package/dist/solochain-evm/interfaces/lookup.js +1686 -2107
  28. package/dist/solochain-evm/interfaces/lookup.js.map +1 -1
  29. package/dist/solochain-evm/interfaces/registry.js +1 -1
  30. package/dist/solochain-evm/interfaces/storagehubclient/index.js +1 -1
  31. package/dist/solochain-evm/interfaces/types-lookup.js +1 -1
  32. package/dist/solochain-evm/interfaces/types.js +1 -1
  33. package/dist/types/parachain/interfaces/augment-api-consts.d.ts +7 -7
  34. package/dist/types/parachain/interfaces/augment-api-errors.d.ts +8 -107
  35. package/dist/types/parachain/interfaces/augment-api-events.d.ts +185 -917
  36. package/dist/types/parachain/interfaces/augment-api-query.d.ts +112 -319
  37. package/dist/types/parachain/interfaces/augment-api-rpc.d.ts +32 -32
  38. package/dist/types/parachain/interfaces/augment-api-runtime.d.ts +25 -25
  39. package/dist/types/parachain/interfaces/augment-api-tx.d.ts +212 -637
  40. package/dist/types/parachain/interfaces/augment-api.d.ts +7 -7
  41. package/dist/types/parachain/interfaces/augment-types.d.ts +76 -75
  42. package/dist/types/parachain/interfaces/index.d.ts +1 -1
  43. package/dist/types/parachain/interfaces/lookup.d.ts +289 -326
  44. package/dist/types/parachain/interfaces/registry.d.ts +4 -4
  45. package/dist/types/parachain/interfaces/storagehubclient/index.d.ts +1 -1
  46. package/dist/types/parachain/interfaces/storagehubclient/types.d.ts +46 -36
  47. package/dist/types/parachain/interfaces/types-lookup.d.ts +525 -712
  48. package/dist/types/parachain/interfaces/types.d.ts +1 -1
  49. package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +7 -7
  50. package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +8 -107
  51. package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +150 -763
  52. package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +100 -291
  53. package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +32 -32
  54. package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +25 -25
  55. package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +195 -582
  56. package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -7
  57. package/dist/types/solochain-evm/interfaces/augment-types.d.ts +76 -75
  58. package/dist/types/solochain-evm/interfaces/index.d.ts +1 -1
  59. package/dist/types/solochain-evm/interfaces/lookup.d.ts +239 -276
  60. package/dist/types/solochain-evm/interfaces/registry.d.ts +4 -4
  61. package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -1
  62. package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +47 -37
  63. package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +425 -582
  64. package/dist/types/solochain-evm/interfaces/types.d.ts +1 -1
  65. package/metadata-sh-parachain.json +1 -1
  66. package/metadata-sh-solochain-evm.json +1 -1
  67. package/package.json +2 -2
  68. package/src/parachain/interfaces/augment-api-errors.ts +5 -104
  69. package/src/parachain/interfaces/augment-api-events.ts +14 -113
  70. package/src/parachain/interfaces/augment-api-tx.ts +63 -10
  71. package/src/parachain/interfaces/augment-types.ts +2 -0
  72. package/src/parachain/interfaces/lookup.ts +326 -388
  73. package/src/parachain/interfaces/registry.ts +2 -2
  74. package/src/parachain/interfaces/storagehubclient/types.ts +14 -4
  75. package/src/parachain/interfaces/types-lookup.ts +388 -486
  76. package/src/solochain-evm/interfaces/augment-api-errors.ts +5 -104
  77. package/src/solochain-evm/interfaces/augment-api-events.ts +14 -113
  78. package/src/solochain-evm/interfaces/augment-api-tx.ts +63 -10
  79. package/src/solochain-evm/interfaces/augment-types.ts +2 -0
  80. package/src/solochain-evm/interfaces/lookup.ts +276 -338
  81. package/src/solochain-evm/interfaces/registry.ts +2 -2
  82. package/src/solochain-evm/interfaces/storagehubclient/types.ts +14 -4
  83. package/src/solochain-evm/interfaces/types-lookup.ts +338 -436
  84. package/storagehub-api-augment-0.2.14.tgz +0 -0
@@ -1 +1 @@
1
- export * from "./storagehubclient/types.js";
1
+ export * from './storagehubclient/types.js';
@@ -1,11 +1,11 @@
1
- import "@polkadot/api-base/types/consts";
2
- import type { ApiTypes, AugmentedConst } from "@polkadot/api-base/types";
3
- import type { u128, u16, u32, u64, u8 } from "@polkadot/types-codec";
4
- import type { Codec } from "@polkadot/types-codec/types";
5
- import type { AccountId20, H256, Perbill } from "@polkadot/types/interfaces/runtime";
6
- import type { FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from "@polkadot/types/lookup";
1
+ import '@polkadot/api-base/types/consts';
2
+ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
+ import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
+ import type { Codec } from '@polkadot/types-codec/types';
5
+ import type { AccountId20, H256, Perbill } from '@polkadot/types/interfaces/runtime';
6
+ import type { FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
7
  export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
- declare module "@polkadot/api-base/types/consts" {
8
+ declare module '@polkadot/api-base/types/consts' {
9
9
  interface AugmentedConsts<ApiType extends ApiTypes> {
10
10
  babe: {
11
11
  /**
@@ -1,7 +1,7 @@
1
- import "@polkadot/api-base/types/errors";
2
- import type { ApiTypes, AugmentedError } from "@polkadot/api-base/types";
1
+ import '@polkadot/api-base/types/errors';
2
+ import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
3
3
  export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
4
- declare module "@polkadot/api-base/types/errors" {
4
+ declare module '@polkadot/api-base/types/errors' {
5
5
  interface AugmentedErrors<ApiType extends ApiTypes> {
6
6
  babe: {
7
7
  /**
@@ -174,10 +174,6 @@ declare module "@polkadot/api-base/types/errors" {
174
174
  [key: string]: AugmentedError<ApiType>;
175
175
  };
176
176
  fileSystem: {
177
- /**
178
- * BSP did not succeed threshold check.
179
- **/
180
- AboveThreshold: AugmentedError<ApiType>;
181
177
  /**
182
178
  * Batch file deletion must contain files from a single bucket only.
183
179
  **/
@@ -186,18 +182,10 @@ declare module "@polkadot/api-base/types/errors" {
186
182
  * BSP has already confirmed storing the given file.
187
183
  **/
188
184
  BspAlreadyConfirmed: AugmentedError<ApiType>;
189
- /**
190
- * BSP is already a data server for the move bucket request.
191
- **/
192
- BspAlreadyDataServer: AugmentedError<ApiType>;
193
185
  /**
194
186
  * BSP already volunteered to store the given file.
195
187
  **/
196
188
  BspAlreadyVolunteered: AugmentedError<ApiType>;
197
- /**
198
- * Too many registered data servers for the move bucket request.
199
- **/
200
- BspDataServersExceeded: AugmentedError<ApiType>;
201
189
  /**
202
190
  * BSP has not confirmed storing the given file.
203
191
  **/
@@ -214,10 +202,6 @@ declare module "@polkadot/api-base/types/errors" {
214
202
  * Action not allowed while the bucket is being moved.
215
203
  **/
216
204
  BucketIsBeingMoved: AugmentedError<ApiType>;
217
- /**
218
- * Bucket is not private. Call `update_bucket_privacy` to make it private.
219
- **/
220
- BucketIsNotPrivate: AugmentedError<ApiType>;
221
205
  /**
222
206
  * Bucket is not empty.
223
207
  **/
@@ -234,10 +218,6 @@ declare module "@polkadot/api-base/types/errors" {
234
218
  * Collection ID was not found.
235
219
  **/
236
220
  CollectionNotFound: AugmentedError<ApiType>;
237
- /**
238
- * Divided by 0
239
- **/
240
- DividedByZero: AugmentedError<ApiType>;
241
221
  /**
242
222
  * Duplicate file key detected within the same batch deletion request.
243
223
  **/
@@ -262,18 +242,6 @@ declare module "@polkadot/api-base/types/errors" {
262
242
  * Failed to create file metadata
263
243
  **/
264
244
  FailedToCreateFileMetadata: AugmentedError<ApiType>;
265
- /**
266
- * Failed to decode threshold.
267
- **/
268
- FailedToDecodeThreshold: AugmentedError<ApiType>;
269
- /**
270
- * Failed to encode BSP id as slice.
271
- **/
272
- FailedToEncodeBsp: AugmentedError<ApiType>;
273
- /**
274
- * Failed to encode fingerprint as slice.
275
- **/
276
- FailedToEncodeFingerprint: AugmentedError<ApiType>;
277
245
  /**
278
246
  * Failed to get owner account of ID of provider
279
247
  **/
@@ -299,21 +267,14 @@ declare module "@polkadot/api-base/types/errors" {
299
267
  **/
300
268
  FailedToQueryEarliestFileVolunteerTick: AugmentedError<ApiType>;
301
269
  /**
302
- * Failed to convert to primitive type.
303
- **/
304
- FailedTypeConversion: AugmentedError<ApiType>;
305
- /**
306
- * File key already pending deletion.
307
- **/
308
- FileKeyAlreadyPendingDeletion: AugmentedError<ApiType>;
309
- /**
310
- * File key computed from metadata doesn't match the provided file key.
270
+ * File has an active storage request and as such is not eligible for deletion.
271
+ * The user should use the `revoke_storage_request` extrinsic to revoke it first.
311
272
  **/
312
- FileKeyMismatch: AugmentedError<ApiType>;
273
+ FileHasActiveStorageRequest: AugmentedError<ApiType>;
313
274
  /**
314
- * File key not found in pending deletion requests.
275
+ * File has an `IncompleteStorageRequest` associated with it and as such is not eligible for a new storage request
315
276
  **/
316
- FileKeyNotPendingDeletion: AugmentedError<ApiType>;
277
+ FileHasIncompleteStorageRequest: AugmentedError<ApiType>;
317
278
  /**
318
279
  * The bounded vector that holds file metadata to process it is full but there's still more to process.
319
280
  **/
@@ -326,10 +287,6 @@ declare module "@polkadot/api-base/types/errors" {
326
287
  * Failed to fetch the rate for the payment stream.
327
288
  **/
328
289
  FixedRatePaymentStreamNotFound: AugmentedError<ApiType>;
329
- /**
330
- * Forest proof verification failed.
331
- **/
332
- ForestProofVerificationFailed: AugmentedError<ApiType>;
333
290
  /**
334
291
  * Failed to get value when just checked it existed.
335
292
  **/
@@ -338,10 +295,6 @@ declare module "@polkadot/api-base/types/errors" {
338
295
  * Incomplete storage request not found.
339
296
  **/
340
297
  IncompleteStorageRequestNotFound: AugmentedError<ApiType>;
341
- /**
342
- * Key already exists in mapping when it should not.
343
- **/
344
- InconsistentStateKeyAlreadyExists: AugmentedError<ApiType>;
345
298
  /**
346
299
  * SP does not have enough storage capacity to store the file.
347
300
  **/
@@ -366,23 +319,11 @@ declare module "@polkadot/api-base/types/errors" {
366
319
  * Invalid signed operation provided.
367
320
  **/
368
321
  InvalidSignedOperation: AugmentedError<ApiType>;
369
- /**
370
- * Maximum threshold cannot be zero.
371
- **/
372
- MaximumThresholdCannotBeZero: AugmentedError<ApiType>;
373
- /**
374
- * Max replication target cannot be smaller than default replication target.
375
- **/
376
- MaxReplicationTargetSmallerThanDefault: AugmentedError<ApiType>;
377
322
  /**
378
323
  * Error created in 2024. If you see this, you are well beyond the singularity and should
379
324
  * probably stop using this pallet.
380
325
  **/
381
326
  MaxTickNumberReached: AugmentedError<ApiType>;
382
- /**
383
- * Max number of user pending deletion requests reached.
384
- **/
385
- MaxUserPendingDeletionRequestsReached: AugmentedError<ApiType>;
386
327
  /**
387
328
  * Minimum amount of blocks between the request opening and being able to confirm it not reached.
388
329
  **/
@@ -419,10 +360,6 @@ declare module "@polkadot/api-base/types/errors" {
419
360
  * No global reputation weight set.
420
361
  **/
421
362
  NoGlobalReputationWeightSet: AugmentedError<ApiType>;
422
- /**
423
- * Privacy update results in no change
424
- **/
425
- NoPrivacyChange: AugmentedError<ApiType>;
426
363
  /**
427
364
  * Account is not a BSP.
428
365
  **/
@@ -439,10 +376,6 @@ declare module "@polkadot/api-base/types/errors" {
439
376
  * Operation failed because the account is not the owner of the bucket.
440
377
  **/
441
378
  NotBucketOwner: AugmentedError<ApiType>;
442
- /**
443
- * Unauthorized operation, signer does not own the file.
444
- **/
445
- NotFileOwner: AugmentedError<ApiType>;
446
379
  /**
447
380
  * The MSP is trying to confirm to store a file from a storage request is not the one selected to store it.
448
381
  **/
@@ -451,10 +384,6 @@ declare module "@polkadot/api-base/types/errors" {
451
384
  * Operations not allowed for insolvent provider
452
385
  **/
453
386
  OperationNotAllowedForInsolventProvider: AugmentedError<ApiType>;
454
- /**
455
- * Operations not allowed while bucket is not being stored by an MSP
456
- **/
457
- OperationNotAllowedWhileBucketIsNotStoredByMsp: AugmentedError<ApiType>;
458
387
  /**
459
388
  * Certain operations (such as issuing new storage requests) are not allowed when interacting with insolvent users.
460
389
  **/
@@ -471,10 +400,6 @@ declare module "@polkadot/api-base/types/errors" {
471
400
  * Provider is not storing the file.
472
401
  **/
473
402
  ProviderNotStoringFile: AugmentedError<ApiType>;
474
- /**
475
- * Root of the provider not found.
476
- **/
477
- ProviderRootNotFound: AugmentedError<ApiType>;
478
403
  /**
479
404
  * Replication target cannot be zero.
480
405
  **/
@@ -503,10 +428,6 @@ declare module "@polkadot/api-base/types/errors" {
503
428
  * Operation not allowed while the storage request exists.
504
429
  **/
505
430
  StorageRequestExists: AugmentedError<ApiType>;
506
- /**
507
- * No slot available found in ticks to insert storage request expiration time.
508
- **/
509
- StorageRequestExpiredNoSlotAvailable: AugmentedError<ApiType>;
510
431
  /**
511
432
  * Not authorized to delete the storage request.
512
433
  **/
@@ -515,34 +436,14 @@ declare module "@polkadot/api-base/types/errors" {
515
436
  * Storage request not registered for the given file.
516
437
  **/
517
438
  StorageRequestNotFound: AugmentedError<ApiType>;
518
- /**
519
- * Operation not allowed while the storage request is not being revoked.
520
- **/
521
- StorageRequestNotRevoked: AugmentedError<ApiType>;
522
439
  /**
523
440
  * Arithmetic error in threshold calculation.
524
441
  **/
525
442
  ThresholdArithmeticError: AugmentedError<ApiType>;
526
- /**
527
- * BSPs assignment threshold cannot be below asymptote.
528
- **/
529
- ThresholdBelowAsymptote: AugmentedError<ApiType>;
530
- /**
531
- * Tick range to maximum threshold cannot be zero.
532
- **/
533
- TickRangeToMaximumThresholdCannotBeZero: AugmentedError<ApiType>;
534
- /**
535
- * Too many batch responses to process.
536
- **/
537
- TooManyBatchResponses: AugmentedError<ApiType>;
538
443
  /**
539
444
  * Too many storage request responses.
540
445
  **/
541
446
  TooManyStorageRequestResponses: AugmentedError<ApiType>;
542
- /**
543
- * Number of removed BSPs volunteered from storage request prefix did not match the expected number.
544
- **/
545
- UnexpectedNumberOfRemovedVolunteeredBsps: AugmentedError<ApiType>;
546
447
  /**
547
448
  * A SP tried to stop storing files from a user that was supposedly insolvent, but the user is not insolvent.
548
449
  **/