@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.
- package/dist/parachain/interfaces/augment-api-consts.js +1 -1
- package/dist/parachain/interfaces/augment-api-errors.js +1 -1
- package/dist/parachain/interfaces/augment-api-events.js +1 -1
- package/dist/parachain/interfaces/augment-api-query.js +1 -1
- package/dist/parachain/interfaces/augment-api-rpc.js +1 -1
- package/dist/parachain/interfaces/augment-api-runtime.js +1 -1
- package/dist/parachain/interfaces/augment-api-tx.js +1 -1
- package/dist/parachain/interfaces/augment-api.js +7 -7
- package/dist/parachain/interfaces/augment-types.js +1 -1
- package/dist/parachain/interfaces/index.js +1 -1
- package/dist/parachain/interfaces/lookup.js +2785 -2373
- package/dist/parachain/interfaces/lookup.js.map +1 -1
- package/dist/parachain/interfaces/registry.js +1 -1
- package/dist/parachain/interfaces/storagehubclient/index.js +1 -1
- package/dist/parachain/interfaces/storagehubclient/runtime.js +5 -0
- package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -1
- package/dist/parachain/interfaces/types-lookup.js +1 -1
- package/dist/parachain/interfaces/types.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-consts.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-errors.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-events.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-query.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-rpc.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-runtime.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-tx.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api.js +7 -7
- package/dist/solochain-evm/interfaces/augment-types.js +1 -1
- package/dist/solochain-evm/interfaces/index.js +1 -1
- package/dist/solochain-evm/interfaces/lookup.js +2029 -1659
- package/dist/solochain-evm/interfaces/lookup.js.map +1 -1
- package/dist/solochain-evm/interfaces/registry.js +1 -1
- package/dist/solochain-evm/interfaces/storagehubclient/index.js +1 -1
- package/dist/solochain-evm/interfaces/types-lookup.js +1 -1
- package/dist/solochain-evm/interfaces/types.js +1 -1
- package/dist/types/parachain/interfaces/augment-api-consts.d.ts +7 -7
- package/dist/types/parachain/interfaces/augment-api-errors.d.ts +7 -3
- package/dist/types/parachain/interfaces/augment-api-events.d.ts +828 -174
- package/dist/types/parachain/interfaces/augment-api-query.d.ts +330 -112
- package/dist/types/parachain/interfaces/augment-api-rpc.d.ts +32 -32
- package/dist/types/parachain/interfaces/augment-api-runtime.d.ts +33 -25
- package/dist/types/parachain/interfaces/augment-api-tx.d.ts +639 -149
- package/dist/types/parachain/interfaces/augment-api.d.ts +7 -7
- package/dist/types/parachain/interfaces/augment-types.d.ts +75 -75
- package/dist/types/parachain/interfaces/index.d.ts +1 -1
- package/dist/types/parachain/interfaces/lookup.d.ts +227 -217
- package/dist/types/parachain/interfaces/registry.d.ts +3 -3
- package/dist/types/parachain/interfaces/storagehubclient/index.d.ts +1 -1
- package/dist/types/parachain/interfaces/storagehubclient/types.d.ts +34 -34
- package/dist/types/parachain/interfaces/types-lookup.d.ts +536 -406
- package/dist/types/parachain/interfaces/types.d.ts +1 -1
- package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +7 -7
- package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +7 -3
- package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +674 -139
- package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +302 -100
- package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +32 -32
- package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +33 -25
- package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +584 -132
- package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -7
- package/dist/types/solochain-evm/interfaces/augment-types.d.ts +75 -75
- package/dist/types/solochain-evm/interfaces/index.d.ts +1 -1
- package/dist/types/solochain-evm/interfaces/lookup.d.ts +183 -173
- package/dist/types/solochain-evm/interfaces/registry.d.ts +3 -3
- package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -1
- package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +35 -35
- package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +412 -312
- package/dist/types/solochain-evm/interfaces/types.d.ts +1 -1
- package/metadata-sh-parachain.json +1 -1
- package/metadata-sh-solochain-evm.json +1 -1
- package/package.json +2 -2
- package/src/parachain/interfaces/augment-api-errors.ts +4 -0
- package/src/parachain/interfaces/augment-api-events.ts +8 -0
- package/src/parachain/interfaces/augment-api-query.ts +12 -0
- package/src/parachain/interfaces/augment-api-runtime.ts +14 -0
- package/src/parachain/interfaces/augment-api-tx.ts +13 -0
- package/src/parachain/interfaces/lookup.ts +233 -222
- package/src/parachain/interfaces/storagehubclient/runtime.ts +5 -0
- package/src/parachain/interfaces/types-lookup.ts +237 -224
- package/src/solochain-evm/interfaces/augment-api-errors.ts +4 -0
- package/src/solochain-evm/interfaces/augment-api-events.ts +8 -0
- package/src/solochain-evm/interfaces/augment-api-query.ts +12 -0
- package/src/solochain-evm/interfaces/augment-api-runtime.ts +14 -0
- package/src/solochain-evm/interfaces/augment-api-tx.ts +13 -0
- package/src/solochain-evm/interfaces/lookup.ts +189 -178
- package/src/solochain-evm/interfaces/types-lookup.ts +193 -180
- 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
|
*
|