@storagehub/api-augment 0.2.14 → 0.4.0

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 (85) 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 +2785 -2373
  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/storagehubclient/runtime.js +5 -0
  16. package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -1
  17. package/dist/parachain/interfaces/types-lookup.js +1 -1
  18. package/dist/parachain/interfaces/types.js +1 -1
  19. package/dist/solochain-evm/interfaces/augment-api-consts.js +1 -1
  20. package/dist/solochain-evm/interfaces/augment-api-errors.js +1 -1
  21. package/dist/solochain-evm/interfaces/augment-api-events.js +1 -1
  22. package/dist/solochain-evm/interfaces/augment-api-query.js +1 -1
  23. package/dist/solochain-evm/interfaces/augment-api-rpc.js +1 -1
  24. package/dist/solochain-evm/interfaces/augment-api-runtime.js +1 -1
  25. package/dist/solochain-evm/interfaces/augment-api-tx.js +1 -1
  26. package/dist/solochain-evm/interfaces/augment-api.js +7 -7
  27. package/dist/solochain-evm/interfaces/augment-types.js +1 -1
  28. package/dist/solochain-evm/interfaces/index.js +1 -1
  29. package/dist/solochain-evm/interfaces/lookup.js +2029 -1659
  30. package/dist/solochain-evm/interfaces/lookup.js.map +1 -1
  31. package/dist/solochain-evm/interfaces/registry.js +1 -1
  32. package/dist/solochain-evm/interfaces/storagehubclient/index.js +1 -1
  33. package/dist/solochain-evm/interfaces/types-lookup.js +1 -1
  34. package/dist/solochain-evm/interfaces/types.js +1 -1
  35. package/dist/types/parachain/interfaces/augment-api-consts.d.ts +7 -7
  36. package/dist/types/parachain/interfaces/augment-api-errors.d.ts +7 -3
  37. package/dist/types/parachain/interfaces/augment-api-events.d.ts +828 -174
  38. package/dist/types/parachain/interfaces/augment-api-query.d.ts +330 -112
  39. package/dist/types/parachain/interfaces/augment-api-rpc.d.ts +32 -32
  40. package/dist/types/parachain/interfaces/augment-api-runtime.d.ts +33 -25
  41. package/dist/types/parachain/interfaces/augment-api-tx.d.ts +639 -149
  42. package/dist/types/parachain/interfaces/augment-api.d.ts +7 -7
  43. package/dist/types/parachain/interfaces/augment-types.d.ts +75 -75
  44. package/dist/types/parachain/interfaces/index.d.ts +1 -1
  45. package/dist/types/parachain/interfaces/lookup.d.ts +227 -217
  46. package/dist/types/parachain/interfaces/registry.d.ts +3 -3
  47. package/dist/types/parachain/interfaces/storagehubclient/index.d.ts +1 -1
  48. package/dist/types/parachain/interfaces/storagehubclient/types.d.ts +34 -34
  49. package/dist/types/parachain/interfaces/types-lookup.d.ts +536 -406
  50. package/dist/types/parachain/interfaces/types.d.ts +1 -1
  51. package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +7 -7
  52. package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +7 -3
  53. package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +674 -139
  54. package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +302 -100
  55. package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +32 -32
  56. package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +33 -25
  57. package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +584 -132
  58. package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -7
  59. package/dist/types/solochain-evm/interfaces/augment-types.d.ts +75 -75
  60. package/dist/types/solochain-evm/interfaces/index.d.ts +1 -1
  61. package/dist/types/solochain-evm/interfaces/lookup.d.ts +183 -173
  62. package/dist/types/solochain-evm/interfaces/registry.d.ts +3 -3
  63. package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -1
  64. package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +35 -35
  65. package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +412 -312
  66. package/dist/types/solochain-evm/interfaces/types.d.ts +1 -1
  67. package/metadata-sh-parachain.json +1 -1
  68. package/metadata-sh-solochain-evm.json +1 -1
  69. package/package.json +2 -2
  70. package/src/parachain/interfaces/augment-api-errors.ts +4 -0
  71. package/src/parachain/interfaces/augment-api-events.ts +8 -0
  72. package/src/parachain/interfaces/augment-api-query.ts +12 -0
  73. package/src/parachain/interfaces/augment-api-runtime.ts +14 -0
  74. package/src/parachain/interfaces/augment-api-tx.ts +13 -0
  75. package/src/parachain/interfaces/lookup.ts +233 -222
  76. package/src/parachain/interfaces/storagehubclient/runtime.ts +5 -0
  77. package/src/parachain/interfaces/types-lookup.ts +237 -224
  78. package/src/solochain-evm/interfaces/augment-api-errors.ts +4 -0
  79. package/src/solochain-evm/interfaces/augment-api-events.ts +8 -0
  80. package/src/solochain-evm/interfaces/augment-api-query.ts +12 -0
  81. package/src/solochain-evm/interfaces/augment-api-runtime.ts +14 -0
  82. package/src/solochain-evm/interfaces/augment-api-tx.ts +13 -0
  83. package/src/solochain-evm/interfaces/lookup.ts +189 -178
  84. package/src/solochain-evm/interfaces/types-lookup.ts +193 -180
  85. package/storagehub-api-augment-0.2.14.tgz +0 -0
@@ -456,6 +456,10 @@ declare module "@polkadot/api-base/types/errors" {
456
456
  * A SP tried to stop storing files from a user that was supposedly insolvent, but the user is not insolvent.
457
457
  **/
458
458
  UserNotInsolvent: AugmentedError<ApiType>;
459
+ /**
460
+ * Operation is currently paused.
461
+ **/
462
+ UserOperationPaused: AugmentedError<ApiType>;
459
463
  /**
460
464
  * The selected value proposition is not available in the MSP.
461
465
  **/
@@ -647,6 +647,14 @@ declare module "@polkadot/api-base/types/events" {
647
647
  [actualUsedCapacity: u64],
648
648
  { actualUsedCapacity: u64 }
649
649
  >;
650
+ /**
651
+ * Notifies that the user operation pause flags have been updated.
652
+ **/
653
+ UserOperationPauseFlagsUpdated: AugmentedEvent<
654
+ ApiType,
655
+ [old: u32, new_: u32],
656
+ { old: u32; new_: u32 }
657
+ >;
650
658
  /**
651
659
  * Generic event
652
660
  **/
@@ -603,6 +603,18 @@ declare module "@polkadot/api-base/types/storage" {
603
603
  [H256]
604
604
  > &
605
605
  QueryableStorageEntry<ApiType, [H256]>;
606
+ /**
607
+ * Bitmask controlling which user operations are currently paused.
608
+ *
609
+ * When a particular bit is set in this mask, the corresponding user operation in this pallet
610
+ * is considered paused and should fail with [`Error::UserOperationPaused`].
611
+ *
612
+ * By default this is initialised to [`UserOperationPauseFlags::NONE`], meaning no operations
613
+ * are paused. Governance (for example via sudo) can update it using the
614
+ * `set_user_operation_pause_flags` extrinsic.
615
+ **/
616
+ userOperationPauseFlagsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> &
617
+ QueryableStorageEntry<ApiType, []>;
606
618
  /**
607
619
  * Generic query
608
620
  **/
@@ -406,6 +406,10 @@ declare module "@polkadot/api-base/types/calls" {
406
406
  encodedEventInfo: Bytes | string | Uint8Array
407
407
  ) => Observable<Result<BucketId, GenericApplyDeltaEventInfoError>>
408
408
  >;
409
+ /**
410
+ * Get the maximum batch size for confirm storage requests.
411
+ **/
412
+ getMaxBatchConfirmStorageRequests: AugmentedCall<ApiType, () => Observable<u32>>;
409
413
  /**
410
414
  * Check if a storage request is open to volunteers.
411
415
  **/
@@ -487,6 +491,16 @@ declare module "@polkadot/api-base/types/calls" {
487
491
  fileKey: H256 | string | Uint8Array
488
492
  ) => Observable<Result<Vec<ChunkId>, QueryMspConfirmChunksToProveForFileError>>
489
493
  >;
494
+ /**
495
+ * Query the file keys that a BSP still needs to confirm storing after volunteering.
496
+ **/
497
+ queryPendingBspConfirmStorageRequests: AugmentedCall<
498
+ ApiType,
499
+ (
500
+ bspId: BackupStorageProviderId | string | Uint8Array,
501
+ fileKeys: Vec<H256> | (H256 | string | Uint8Array)[]
502
+ ) => Observable<Vec<H256>>
503
+ >;
490
504
  /**
491
505
  * Get the storage requests for a given MSP.
492
506
  **/
@@ -755,6 +755,19 @@ declare module "@polkadot/api-base/types/submittable" {
755
755
  (fileKey: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
756
756
  [H256]
757
757
  >;
758
+ /**
759
+ * Set the pause flags that control which user operations are currently allowed.
760
+ *
761
+ * This extrinsic can only be called by `Root` (for example via `pallet-sudo` or governance).
762
+ * Passing [`UserOperationPauseFlags::NONE`] unpauses all operations, while setting one or more
763
+ * bits in the flags pauses the corresponding user operations.
764
+ *
765
+ * This call replaces the entire bitmask in storage with the provided value.
766
+ **/
767
+ setUserOperationPauseFlags: AugmentedSubmittable<
768
+ (newFlags: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
769
+ [u32]
770
+ >;
758
771
  /**
759
772
  * Executed by a SP to stop storing a file from an insolvent user.
760
773
  *