@storagehub/api-augment 0.2.11 → 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 -2871
  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 -2109
  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 +3 -111
  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 -714
  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 +3 -111
  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 -584
  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 +0 -108
  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 -390
  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 -490
  76. package/src/solochain-evm/interfaces/augment-api-errors.ts +0 -108
  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 -340
  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 -440
  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
  **/
@@ -298,10 +266,6 @@ declare module "@polkadot/api-base/types/errors" {
298
266
  * Failed to query earliest volunteer tick
299
267
  **/
300
268
  FailedToQueryEarliestFileVolunteerTick: AugmentedError<ApiType>;
301
- /**
302
- * Failed to convert to primitive type.
303
- **/
304
- FailedTypeConversion: AugmentedError<ApiType>;
305
269
  /**
306
270
  * File has an active storage request and as such is not eligible for deletion.
307
271
  * The user should use the `revoke_storage_request` extrinsic to revoke it first.
@@ -311,18 +275,6 @@ declare module "@polkadot/api-base/types/errors" {
311
275
  * File has an `IncompleteStorageRequest` associated with it and as such is not eligible for a new storage request
312
276
  **/
313
277
  FileHasIncompleteStorageRequest: AugmentedError<ApiType>;
314
- /**
315
- * File key already pending deletion.
316
- **/
317
- FileKeyAlreadyPendingDeletion: AugmentedError<ApiType>;
318
- /**
319
- * File key computed from metadata doesn't match the provided file key.
320
- **/
321
- FileKeyMismatch: AugmentedError<ApiType>;
322
- /**
323
- * File key not found in pending deletion requests.
324
- **/
325
- FileKeyNotPendingDeletion: AugmentedError<ApiType>;
326
278
  /**
327
279
  * The bounded vector that holds file metadata to process it is full but there's still more to process.
328
280
  **/
@@ -335,10 +287,6 @@ declare module "@polkadot/api-base/types/errors" {
335
287
  * Failed to fetch the rate for the payment stream.
336
288
  **/
337
289
  FixedRatePaymentStreamNotFound: AugmentedError<ApiType>;
338
- /**
339
- * Forest proof verification failed.
340
- **/
341
- ForestProofVerificationFailed: AugmentedError<ApiType>;
342
290
  /**
343
291
  * Failed to get value when just checked it existed.
344
292
  **/
@@ -347,10 +295,6 @@ declare module "@polkadot/api-base/types/errors" {
347
295
  * Incomplete storage request not found.
348
296
  **/
349
297
  IncompleteStorageRequestNotFound: AugmentedError<ApiType>;
350
- /**
351
- * Key already exists in mapping when it should not.
352
- **/
353
- InconsistentStateKeyAlreadyExists: AugmentedError<ApiType>;
354
298
  /**
355
299
  * SP does not have enough storage capacity to store the file.
356
300
  **/
@@ -375,23 +319,11 @@ declare module "@polkadot/api-base/types/errors" {
375
319
  * Invalid signed operation provided.
376
320
  **/
377
321
  InvalidSignedOperation: AugmentedError<ApiType>;
378
- /**
379
- * Maximum threshold cannot be zero.
380
- **/
381
- MaximumThresholdCannotBeZero: AugmentedError<ApiType>;
382
- /**
383
- * Max replication target cannot be smaller than default replication target.
384
- **/
385
- MaxReplicationTargetSmallerThanDefault: AugmentedError<ApiType>;
386
322
  /**
387
323
  * Error created in 2024. If you see this, you are well beyond the singularity and should
388
324
  * probably stop using this pallet.
389
325
  **/
390
326
  MaxTickNumberReached: AugmentedError<ApiType>;
391
- /**
392
- * Max number of user pending deletion requests reached.
393
- **/
394
- MaxUserPendingDeletionRequestsReached: AugmentedError<ApiType>;
395
327
  /**
396
328
  * Minimum amount of blocks between the request opening and being able to confirm it not reached.
397
329
  **/
@@ -428,10 +360,6 @@ declare module "@polkadot/api-base/types/errors" {
428
360
  * No global reputation weight set.
429
361
  **/
430
362
  NoGlobalReputationWeightSet: AugmentedError<ApiType>;
431
- /**
432
- * Privacy update results in no change
433
- **/
434
- NoPrivacyChange: AugmentedError<ApiType>;
435
363
  /**
436
364
  * Account is not a BSP.
437
365
  **/
@@ -448,10 +376,6 @@ declare module "@polkadot/api-base/types/errors" {
448
376
  * Operation failed because the account is not the owner of the bucket.
449
377
  **/
450
378
  NotBucketOwner: AugmentedError<ApiType>;
451
- /**
452
- * Unauthorized operation, signer does not own the file.
453
- **/
454
- NotFileOwner: AugmentedError<ApiType>;
455
379
  /**
456
380
  * The MSP is trying to confirm to store a file from a storage request is not the one selected to store it.
457
381
  **/
@@ -460,10 +384,6 @@ declare module "@polkadot/api-base/types/errors" {
460
384
  * Operations not allowed for insolvent provider
461
385
  **/
462
386
  OperationNotAllowedForInsolventProvider: AugmentedError<ApiType>;
463
- /**
464
- * Operations not allowed while bucket is not being stored by an MSP
465
- **/
466
- OperationNotAllowedWhileBucketIsNotStoredByMsp: AugmentedError<ApiType>;
467
387
  /**
468
388
  * Certain operations (such as issuing new storage requests) are not allowed when interacting with insolvent users.
469
389
  **/
@@ -480,10 +400,6 @@ declare module "@polkadot/api-base/types/errors" {
480
400
  * Provider is not storing the file.
481
401
  **/
482
402
  ProviderNotStoringFile: AugmentedError<ApiType>;
483
- /**
484
- * Root of the provider not found.
485
- **/
486
- ProviderRootNotFound: AugmentedError<ApiType>;
487
403
  /**
488
404
  * Replication target cannot be zero.
489
405
  **/
@@ -512,10 +428,6 @@ declare module "@polkadot/api-base/types/errors" {
512
428
  * Operation not allowed while the storage request exists.
513
429
  **/
514
430
  StorageRequestExists: AugmentedError<ApiType>;
515
- /**
516
- * No slot available found in ticks to insert storage request expiration time.
517
- **/
518
- StorageRequestExpiredNoSlotAvailable: AugmentedError<ApiType>;
519
431
  /**
520
432
  * Not authorized to delete the storage request.
521
433
  **/
@@ -524,34 +436,14 @@ declare module "@polkadot/api-base/types/errors" {
524
436
  * Storage request not registered for the given file.
525
437
  **/
526
438
  StorageRequestNotFound: AugmentedError<ApiType>;
527
- /**
528
- * Operation not allowed while the storage request is not being revoked.
529
- **/
530
- StorageRequestNotRevoked: AugmentedError<ApiType>;
531
439
  /**
532
440
  * Arithmetic error in threshold calculation.
533
441
  **/
534
442
  ThresholdArithmeticError: AugmentedError<ApiType>;
535
- /**
536
- * BSPs assignment threshold cannot be below asymptote.
537
- **/
538
- ThresholdBelowAsymptote: AugmentedError<ApiType>;
539
- /**
540
- * Tick range to maximum threshold cannot be zero.
541
- **/
542
- TickRangeToMaximumThresholdCannotBeZero: AugmentedError<ApiType>;
543
- /**
544
- * Too many batch responses to process.
545
- **/
546
- TooManyBatchResponses: AugmentedError<ApiType>;
547
443
  /**
548
444
  * Too many storage request responses.
549
445
  **/
550
446
  TooManyStorageRequestResponses: AugmentedError<ApiType>;
551
- /**
552
- * Number of removed BSPs volunteered from storage request prefix did not match the expected number.
553
- **/
554
- UnexpectedNumberOfRemovedVolunteeredBsps: AugmentedError<ApiType>;
555
447
  /**
556
448
  * A SP tried to stop storing files from a user that was supposedly insolvent, but the user is not insolvent.
557
449
  **/