@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storagehub/api-augment",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@polkadot/types-codec": "^16.4.7",
|
|
35
35
|
"tsx": "4.20.5",
|
|
36
36
|
"typescript": "^5.9.2",
|
|
37
|
-
"@storagehub/types-bundle": "0.
|
|
37
|
+
"@storagehub/types-bundle": "0.4.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"scrape": "pnpm tsx scripts/scrapeMetadata.ts",
|
|
@@ -436,6 +436,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
436
436
|
* A SP tried to stop storing files from a user that was supposedly insolvent, but the user is not insolvent.
|
|
437
437
|
**/
|
|
438
438
|
UserNotInsolvent: AugmentedError<ApiType>;
|
|
439
|
+
/**
|
|
440
|
+
* Operation is currently paused.
|
|
441
|
+
**/
|
|
442
|
+
UserOperationPaused: AugmentedError<ApiType>;
|
|
439
443
|
/**
|
|
440
444
|
* The selected value proposition is not available in the MSP.
|
|
441
445
|
**/
|
|
@@ -708,6 +708,14 @@ declare module "@polkadot/api-base/types/events" {
|
|
|
708
708
|
[actualUsedCapacity: u64],
|
|
709
709
|
{ actualUsedCapacity: u64 }
|
|
710
710
|
>;
|
|
711
|
+
/**
|
|
712
|
+
* Notifies that the user operation pause flags have been updated.
|
|
713
|
+
**/
|
|
714
|
+
UserOperationPauseFlagsUpdated: AugmentedEvent<
|
|
715
|
+
ApiType,
|
|
716
|
+
[old: u32, new_: u32],
|
|
717
|
+
{ old: u32; new_: u32 }
|
|
718
|
+
>;
|
|
711
719
|
/**
|
|
712
720
|
* Generic event
|
|
713
721
|
**/
|
|
@@ -461,6 +461,18 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
461
461
|
[H256]
|
|
462
462
|
> &
|
|
463
463
|
QueryableStorageEntry<ApiType, [H256]>;
|
|
464
|
+
/**
|
|
465
|
+
* Bitmask controlling which user operations are currently paused.
|
|
466
|
+
*
|
|
467
|
+
* When a particular bit is set in this mask, the corresponding user operation in this pallet
|
|
468
|
+
* is considered paused and should fail with [`Error::UserOperationPaused`].
|
|
469
|
+
*
|
|
470
|
+
* By default this is initialised to [`UserOperationPauseFlags::NONE`], meaning no operations
|
|
471
|
+
* are paused. Governance (for example via sudo) can update it using the
|
|
472
|
+
* `set_user_operation_pause_flags` extrinsic.
|
|
473
|
+
**/
|
|
474
|
+
userOperationPauseFlagsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
475
|
+
QueryableStorageEntry<ApiType, []>;
|
|
464
476
|
/**
|
|
465
477
|
* Generic query
|
|
466
478
|
**/
|
|
@@ -312,6 +312,10 @@ declare module "@polkadot/api-base/types/calls" {
|
|
|
312
312
|
encodedEventInfo: Bytes | string | Uint8Array
|
|
313
313
|
) => Observable<Result<BucketId, GenericApplyDeltaEventInfoError>>
|
|
314
314
|
>;
|
|
315
|
+
/**
|
|
316
|
+
* Get the maximum batch size for confirm storage requests.
|
|
317
|
+
**/
|
|
318
|
+
getMaxBatchConfirmStorageRequests: AugmentedCall<ApiType, () => Observable<u32>>;
|
|
315
319
|
/**
|
|
316
320
|
* Check if a storage request is open to volunteers.
|
|
317
321
|
**/
|
|
@@ -393,6 +397,16 @@ declare module "@polkadot/api-base/types/calls" {
|
|
|
393
397
|
fileKey: H256 | string | Uint8Array
|
|
394
398
|
) => Observable<Result<Vec<ChunkId>, QueryMspConfirmChunksToProveForFileError>>
|
|
395
399
|
>;
|
|
400
|
+
/**
|
|
401
|
+
* Query the file keys that a BSP still needs to confirm storing after volunteering.
|
|
402
|
+
**/
|
|
403
|
+
queryPendingBspConfirmStorageRequests: AugmentedCall<
|
|
404
|
+
ApiType,
|
|
405
|
+
(
|
|
406
|
+
bspId: BackupStorageProviderId | string | Uint8Array,
|
|
407
|
+
fileKeys: Vec<H256> | (H256 | string | Uint8Array)[]
|
|
408
|
+
) => Observable<Vec<H256>>
|
|
409
|
+
>;
|
|
396
410
|
/**
|
|
397
411
|
* Get the storage requests for a given MSP.
|
|
398
412
|
**/
|
|
@@ -762,6 +762,19 @@ declare module "@polkadot/api-base/types/submittable" {
|
|
|
762
762
|
(fileKey: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
763
763
|
[H256]
|
|
764
764
|
>;
|
|
765
|
+
/**
|
|
766
|
+
* Set the pause flags that control which user operations are currently allowed.
|
|
767
|
+
*
|
|
768
|
+
* This extrinsic can only be called by `Root` (for example via `pallet-sudo` or governance).
|
|
769
|
+
* Passing [`UserOperationPauseFlags::NONE`] unpauses all operations, while setting one or more
|
|
770
|
+
* bits in the flags pauses the corresponding user operations.
|
|
771
|
+
*
|
|
772
|
+
* This call replaces the entire bitmask in storage with the provided value.
|
|
773
|
+
**/
|
|
774
|
+
setUserOperationPauseFlags: AugmentedSubmittable<
|
|
775
|
+
(newFlags: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
776
|
+
[u32]
|
|
777
|
+
>;
|
|
765
778
|
/**
|
|
766
779
|
* Executed by a SP to stop storing a file from an insolvent user.
|
|
767
780
|
*
|