@storagehub/api-augment 0.2.11 → 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/lookup.js +160 -213
- package/dist/parachain/interfaces/lookup.js.map +1 -1
- package/dist/parachain/interfaces/storagehubclient/runtime.js +5 -0
- package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -1
- package/dist/solochain-evm/interfaces/lookup.js +290 -343
- package/dist/solochain-evm/interfaces/lookup.js.map +1 -1
- package/dist/types/parachain/interfaces/augment-api-errors.d.ts +4 -108
- package/dist/types/parachain/interfaces/augment-api-events.d.ts +25 -103
- package/dist/types/parachain/interfaces/augment-api-query.d.ts +11 -0
- package/dist/types/parachain/interfaces/augment-api-runtime.d.ts +8 -0
- package/dist/types/parachain/interfaces/augment-api-tx.d.ts +75 -10
- package/dist/types/parachain/interfaces/augment-types.d.ts +2 -1
- package/dist/types/parachain/interfaces/lookup.d.ts +118 -145
- package/dist/types/parachain/interfaces/registry.d.ts +2 -2
- package/dist/types/parachain/interfaces/storagehubclient/types.d.ts +14 -4
- package/dist/types/parachain/interfaces/types-lookup.d.ts +175 -234
- package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +4 -108
- package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +25 -103
- package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +11 -0
- package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +8 -0
- package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +75 -10
- package/dist/types/solochain-evm/interfaces/augment-types.d.ts +2 -1
- package/dist/types/solochain-evm/interfaces/lookup.d.ts +248 -275
- package/dist/types/solochain-evm/interfaces/registry.d.ts +2 -2
- package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +14 -4
- package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +305 -364
- 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 -108
- package/src/parachain/interfaces/augment-api-events.ts +22 -113
- 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 +76 -10
- package/src/parachain/interfaces/augment-types.ts +2 -0
- package/src/parachain/interfaces/lookup.ts +160 -213
- package/src/parachain/interfaces/registry.ts +2 -2
- package/src/parachain/interfaces/storagehubclient/runtime.ts +5 -0
- package/src/parachain/interfaces/storagehubclient/types.ts +14 -4
- package/src/parachain/interfaces/types-lookup.ts +225 -314
- package/src/solochain-evm/interfaces/augment-api-errors.ts +4 -108
- package/src/solochain-evm/interfaces/augment-api-events.ts +22 -113
- 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 +76 -10
- package/src/solochain-evm/interfaces/augment-types.ts +2 -0
- package/src/solochain-evm/interfaces/lookup.ts +290 -343
- package/src/solochain-evm/interfaces/registry.ts +2 -2
- package/src/solochain-evm/interfaces/storagehubclient/types.ts +14 -4
- package/src/solochain-evm/interfaces/types-lookup.ts +355 -444
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedEvent } from "@polkadot/api-base/types";
|
|
|
3
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u32, u64, u8 } from "@polkadot/types-codec";
|
|
4
4
|
import type { ITuple } from "@polkadot/types-codec/types";
|
|
5
5
|
import type { AccountId32, H256 } from "@polkadot/types/interfaces/runtime";
|
|
6
|
-
import type { CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo,
|
|
6
|
+
import type { CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletFileSystemFileOperationIntention, PalletFileSystemRejectedStorageRequestReason, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletProofsDealerCustomChallenge, PalletProofsDealerProof, PalletStorageProvidersStorageProviderId, PalletStorageProvidersTopUpMetadata, PalletStorageProvidersValueProposition, PalletStorageProvidersValuePropositionWithId, ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey, ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersValue, ShpFileMetadataFileMetadata, ShpTraitsTrieMutation, SpRuntimeDispatchError, SpRuntimeMultiSignature, SpWeightsWeightV2Weight, StagingXcmV5AssetAssets, StagingXcmV5Location, StagingXcmV5Response, StagingXcmV5TraitsOutcome, StagingXcmV5Xcm, XcmV5TraitsError, XcmVersionedAssets, XcmVersionedLocation } from "@polkadot/types/lookup";
|
|
7
7
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
8
8
|
declare module "@polkadot/api-base/types/events" {
|
|
9
9
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -514,45 +514,6 @@ declare module "@polkadot/api-base/types/events" {
|
|
|
514
514
|
collectionId: Option<u32>;
|
|
515
515
|
private: bool;
|
|
516
516
|
}>;
|
|
517
|
-
/**
|
|
518
|
-
* Failed to decrease MSP's used capacity for expired file deletion request
|
|
519
|
-
**/
|
|
520
|
-
FailedToDecreaseMspUsedCapacity: AugmentedEvent<ApiType, [
|
|
521
|
-
user: AccountId32,
|
|
522
|
-
mspId: H256,
|
|
523
|
-
fileKey: H256,
|
|
524
|
-
fileSize: u64,
|
|
525
|
-
error: SpRuntimeDispatchError
|
|
526
|
-
], {
|
|
527
|
-
user: AccountId32;
|
|
528
|
-
mspId: H256;
|
|
529
|
-
fileKey: H256;
|
|
530
|
-
fileSize: u64;
|
|
531
|
-
error: SpRuntimeDispatchError;
|
|
532
|
-
}>;
|
|
533
|
-
/**
|
|
534
|
-
* Failed to get the MSP owner of the bucket for an expired file deletion request
|
|
535
|
-
* This is different from the bucket not having a MSP, which is allowed and won't error
|
|
536
|
-
**/
|
|
537
|
-
FailedToGetMspOfBucket: AugmentedEvent<ApiType, [
|
|
538
|
-
bucketId: H256,
|
|
539
|
-
error: SpRuntimeDispatchError
|
|
540
|
-
], {
|
|
541
|
-
bucketId: H256;
|
|
542
|
-
error: SpRuntimeDispatchError;
|
|
543
|
-
}>;
|
|
544
|
-
/**
|
|
545
|
-
* Notifies that a priority challenge with a trie remove mutation failed to be queued in the `on_idle` hook.
|
|
546
|
-
* This can happen if the priority challenge queue is full, and the failed challenge should be manually
|
|
547
|
-
* queued at a later time.
|
|
548
|
-
**/
|
|
549
|
-
FailedToQueuePriorityChallenge: AugmentedEvent<ApiType, [
|
|
550
|
-
fileKey: H256,
|
|
551
|
-
error: SpRuntimeDispatchError
|
|
552
|
-
], {
|
|
553
|
-
fileKey: H256;
|
|
554
|
-
error: SpRuntimeDispatchError;
|
|
555
|
-
}>;
|
|
556
517
|
/**
|
|
557
518
|
* Event to notify if, in the `on_idle` hook when cleaning up an expired storage request,
|
|
558
519
|
* the return of that storage request's deposit to the user failed.
|
|
@@ -568,41 +529,6 @@ declare module "@polkadot/api-base/types/events" {
|
|
|
568
529
|
amountToReturn: u128;
|
|
569
530
|
error: SpRuntimeDispatchError;
|
|
570
531
|
}>;
|
|
571
|
-
/**
|
|
572
|
-
* Event to notify if, in the `on_idle` hook when cleaning up an expired storage request,
|
|
573
|
-
* the transfer of a part of that storage request's deposit to one of the volunteered BSPs failed.
|
|
574
|
-
**/
|
|
575
|
-
FailedToTransferDepositFundsToBsp: AugmentedEvent<ApiType, [
|
|
576
|
-
fileKey: H256,
|
|
577
|
-
owner: AccountId32,
|
|
578
|
-
bspId: H256,
|
|
579
|
-
amountToTransfer: u128,
|
|
580
|
-
error: SpRuntimeDispatchError
|
|
581
|
-
], {
|
|
582
|
-
fileKey: H256;
|
|
583
|
-
owner: AccountId32;
|
|
584
|
-
bspId: H256;
|
|
585
|
-
amountToTransfer: u128;
|
|
586
|
-
error: SpRuntimeDispatchError;
|
|
587
|
-
}>;
|
|
588
|
-
/**
|
|
589
|
-
* Notifies that a file will be deleted.
|
|
590
|
-
**/
|
|
591
|
-
FileDeletionRequest: AugmentedEvent<ApiType, [
|
|
592
|
-
user: AccountId32,
|
|
593
|
-
fileKey: H256,
|
|
594
|
-
fileSize: u64,
|
|
595
|
-
bucketId: H256,
|
|
596
|
-
mspId: H256,
|
|
597
|
-
proofOfInclusion: bool
|
|
598
|
-
], {
|
|
599
|
-
user: AccountId32;
|
|
600
|
-
fileKey: H256;
|
|
601
|
-
fileSize: u64;
|
|
602
|
-
bucketId: H256;
|
|
603
|
-
mspId: H256;
|
|
604
|
-
proofOfInclusion: bool;
|
|
605
|
-
}>;
|
|
606
532
|
/**
|
|
607
533
|
* Notifies that a file deletion has been requested.
|
|
608
534
|
* Contains a signed intention that allows any actor to execute the actual deletion.
|
|
@@ -623,6 +549,20 @@ declare module "@polkadot/api-base/types/events" {
|
|
|
623
549
|
IncompleteStorageRequest: AugmentedEvent<ApiType, [fileKey: H256], {
|
|
624
550
|
fileKey: H256;
|
|
625
551
|
}>;
|
|
552
|
+
/**
|
|
553
|
+
* Notifies that an incomplete storage request has been fully cleaned up.
|
|
554
|
+
*
|
|
555
|
+
* This event is emitted in two scenarios:
|
|
556
|
+
* 1. When an incomplete storage request is created but there are no providers to clean
|
|
557
|
+
* (e.g., MSP confirmed with inclusion proof and no BSPs confirmed).
|
|
558
|
+
* 2. When the file has been removed from all providers and the incomplete storage
|
|
559
|
+
* request entry is removed from storage.
|
|
560
|
+
**/
|
|
561
|
+
IncompleteStorageRequestCleanedUp: AugmentedEvent<ApiType, [
|
|
562
|
+
fileKey: H256
|
|
563
|
+
], {
|
|
564
|
+
fileKey: H256;
|
|
565
|
+
}>;
|
|
626
566
|
/**
|
|
627
567
|
* Notifies that a bucket has been moved to a new MSP under a new value proposition.
|
|
628
568
|
**/
|
|
@@ -767,34 +707,6 @@ declare module "@polkadot/api-base/types/events" {
|
|
|
767
707
|
peerIds: Vec<Bytes>;
|
|
768
708
|
expiresAt: u32;
|
|
769
709
|
}>;
|
|
770
|
-
/**
|
|
771
|
-
* Notifies that a file key has been queued for a priority challenge for file deletion.
|
|
772
|
-
**/
|
|
773
|
-
PriorityChallengeForFileDeletionQueued: AugmentedEvent<ApiType, [
|
|
774
|
-
issuer: PalletFileSystemEitherAccountIdOrMspId,
|
|
775
|
-
fileKey: H256
|
|
776
|
-
], {
|
|
777
|
-
issuer: PalletFileSystemEitherAccountIdOrMspId;
|
|
778
|
-
fileKey: H256;
|
|
779
|
-
}>;
|
|
780
|
-
/**
|
|
781
|
-
* Notifies that a proof has been submitted for a pending file deletion request.
|
|
782
|
-
**/
|
|
783
|
-
ProofSubmittedForPendingFileDeletionRequest: AugmentedEvent<ApiType, [
|
|
784
|
-
user: AccountId32,
|
|
785
|
-
fileKey: H256,
|
|
786
|
-
fileSize: u64,
|
|
787
|
-
bucketId: H256,
|
|
788
|
-
mspId: H256,
|
|
789
|
-
proofOfInclusion: bool
|
|
790
|
-
], {
|
|
791
|
-
user: AccountId32;
|
|
792
|
-
fileKey: H256;
|
|
793
|
-
fileSize: u64;
|
|
794
|
-
bucketId: H256;
|
|
795
|
-
mspId: H256;
|
|
796
|
-
proofOfInclusion: bool;
|
|
797
|
-
}>;
|
|
798
710
|
/**
|
|
799
711
|
* Notifies that a SP has stopped storing a file because its owner has become insolvent.
|
|
800
712
|
**/
|
|
@@ -861,6 +773,16 @@ declare module "@polkadot/api-base/types/events" {
|
|
|
861
773
|
], {
|
|
862
774
|
actualUsedCapacity: u64;
|
|
863
775
|
}>;
|
|
776
|
+
/**
|
|
777
|
+
* Notifies that the user operation pause flags have been updated.
|
|
778
|
+
**/
|
|
779
|
+
UserOperationPauseFlagsUpdated: AugmentedEvent<ApiType, [
|
|
780
|
+
old: u32,
|
|
781
|
+
new_: u32
|
|
782
|
+
], {
|
|
783
|
+
old: u32;
|
|
784
|
+
new_: u32;
|
|
785
|
+
}>;
|
|
864
786
|
/**
|
|
865
787
|
* Generic event
|
|
866
788
|
**/
|
|
@@ -276,6 +276,17 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
276
276
|
storageRequests: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletFileSystemStorageRequestMetadata>>, [
|
|
277
277
|
H256
|
|
278
278
|
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
279
|
+
/**
|
|
280
|
+
* Bitmask controlling which user operations are currently paused.
|
|
281
|
+
*
|
|
282
|
+
* When a particular bit is set in this mask, the corresponding user operation in this pallet
|
|
283
|
+
* is considered paused and should fail with [`Error::UserOperationPaused`].
|
|
284
|
+
*
|
|
285
|
+
* By default this is initialised to [`UserOperationPauseFlags::NONE`], meaning no operations
|
|
286
|
+
* are paused. Governance (for example via sudo) can update it using the
|
|
287
|
+
* `set_user_operation_pause_flags` extrinsic.
|
|
288
|
+
**/
|
|
289
|
+
userOperationPauseFlagsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
279
290
|
/**
|
|
280
291
|
* Generic query
|
|
281
292
|
**/
|
|
@@ -184,6 +184,10 @@ declare module "@polkadot/api-base/types/calls" {
|
|
|
184
184
|
* Decodes the BucketId expected to be found in the event info of a generic apply delta.
|
|
185
185
|
**/
|
|
186
186
|
decodeGenericApplyDeltaEventInfo: AugmentedCall<ApiType, (encodedEventInfo: Bytes | string | Uint8Array) => Observable<Result<BucketId, GenericApplyDeltaEventInfoError>>>;
|
|
187
|
+
/**
|
|
188
|
+
* Get the maximum batch size for confirm storage requests.
|
|
189
|
+
**/
|
|
190
|
+
getMaxBatchConfirmStorageRequests: AugmentedCall<ApiType, () => Observable<u32>>;
|
|
187
191
|
/**
|
|
188
192
|
* Check if a storage request is open to volunteers.
|
|
189
193
|
**/
|
|
@@ -216,6 +220,10 @@ declare module "@polkadot/api-base/types/calls" {
|
|
|
216
220
|
* Query the chunks that a MSP needs to prove to confirm that it is storing a file.
|
|
217
221
|
**/
|
|
218
222
|
queryMspConfirmChunksToProveForFile: AugmentedCall<ApiType, (mspId: MainStorageProviderId | string | Uint8Array, fileKey: H256 | string | Uint8Array) => Observable<Result<Vec<ChunkId>, QueryMspConfirmChunksToProveForFileError>>>;
|
|
223
|
+
/**
|
|
224
|
+
* Query the file keys that a BSP still needs to confirm storing after volunteering.
|
|
225
|
+
**/
|
|
226
|
+
queryPendingBspConfirmStorageRequests: AugmentedCall<ApiType, (bspId: BackupStorageProviderId | string | Uint8Array, fileKeys: Vec<H256> | (H256 | string | Uint8Array)[]) => Observable<Vec<H256>>>;
|
|
219
227
|
/**
|
|
220
228
|
* Get the storage requests for a given MSP.
|
|
221
229
|
**/
|
|
@@ -342,11 +342,31 @@ declare module "@polkadot/api-base/types/submittable" {
|
|
|
342
342
|
};
|
|
343
343
|
fileSystem: {
|
|
344
344
|
/**
|
|
345
|
-
* Executed by a BSP to confirm
|
|
345
|
+
* Executed by a BSP to confirm stopping storage of a file and remove it from their forest.
|
|
346
346
|
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
*
|
|
347
|
+
* This is the second step of the two-phase stop storing process. The BSP must have previously
|
|
348
|
+
* called [`bsp_request_stop_storing`] to open a pending stop storing request.
|
|
349
|
+
*
|
|
350
|
+
* A minimum waiting period ([`MinWaitForStopStoring`]) must pass between the request and this
|
|
351
|
+
* confirmation. This prevents a BSP from immediately dropping a file when challenged for it,
|
|
352
|
+
* ensuring they can't avoid slashing by quickly calling stop storing upon receiving a challenge.
|
|
353
|
+
*
|
|
354
|
+
* ## What this extrinsic does
|
|
355
|
+
*
|
|
356
|
+
* 1. Verifies the pending stop storing request exists and the minimum wait time has passed
|
|
357
|
+
* 2. Verifies the file is still in the BSP's forest via the inclusion proof
|
|
358
|
+
* 3. **Removes the file from the BSP's forest and updates their root**
|
|
359
|
+
* 4. Decreases the BSP's used capacity
|
|
360
|
+
* 5. Stops challenge/randomness cycles if the BSP has no more files
|
|
361
|
+
*
|
|
362
|
+
* Note: The payment stream was already updated in [`bsp_request_stop_storing`].
|
|
363
|
+
*
|
|
364
|
+
* ## Errors
|
|
365
|
+
*
|
|
366
|
+
* - [`PendingStopStoringRequestNotFound`]: No pending request exists for this BSP and file
|
|
367
|
+
* - [`MinWaitForStopStoringNotReached`]: The minimum waiting period hasn't passed yet
|
|
368
|
+
* - [`OperationNotAllowedWithInsolventUser`]: The file owner is insolvent (the BSP should use
|
|
369
|
+
* [`stop_storing_for_insolvent_user`] instead)
|
|
350
370
|
**/
|
|
351
371
|
bspConfirmStopStoring: AugmentedSubmittable<(fileKey: H256 | string | Uint8Array, inclusionForestProof: SpTrieStorageProofCompactProof | {
|
|
352
372
|
encodedNodes?: any;
|
|
@@ -369,12 +389,45 @@ declare module "@polkadot/api-base/types/submittable" {
|
|
|
369
389
|
/**
|
|
370
390
|
* Executed by a BSP to request to stop storing a file.
|
|
371
391
|
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
* This
|
|
377
|
-
*
|
|
392
|
+
* This is the first step of a two-phase process for a BSP to voluntarily stop storing a file.
|
|
393
|
+
* The BSP must later call [`bsp_confirm_stop_storing`] after a minimum waiting period to
|
|
394
|
+
* complete the process and actually remove the file from their forest.
|
|
395
|
+
*
|
|
396
|
+
* **Important**: This extrinsic does NOT modify the BSP's forest root. The file remains in the
|
|
397
|
+
* BSP's forest until [`bsp_confirm_stop_storing`] is called.
|
|
398
|
+
*
|
|
399
|
+
* The BSP is required to provide the file metadata (bucket_id, location, owner, fingerprint, size)
|
|
400
|
+
* to reconstruct and verify the file key. The BSP can get this metadata from its file storage, but
|
|
401
|
+
* it providing it is not a proof that the BSP actually has the file, since this metadata can be obtained
|
|
402
|
+
* from the original storage request or from the assigned MSP if the storage request no longer exists.
|
|
403
|
+
*
|
|
404
|
+
* ## Behavior based on storage request state
|
|
405
|
+
*
|
|
406
|
+
* 1. **Storage request exists and BSP has confirmed storing it**: The BSP is removed from the
|
|
407
|
+
* storage request's confirmed and volunteered lists and the confirmed/volunteered counts are decremented.
|
|
408
|
+
* The BSP is also removed from the storage request as a data server.
|
|
409
|
+
*
|
|
410
|
+
* 2. **Storage request exists but BSP is not a volunteer**: The `bsps_required` count is
|
|
411
|
+
* incremented to compensate for the BSP leaving.
|
|
412
|
+
*
|
|
413
|
+
* 3. **No storage request exists**: A new storage request is created with `bsps_required = 1`
|
|
414
|
+
* so another BSP can pick up the file and maintain its replication target. If `can_serve` is true,
|
|
415
|
+
* the requesting BSP is added as a data server to help the new volunteer download the file.
|
|
416
|
+
*
|
|
417
|
+
* ## Fees
|
|
418
|
+
*
|
|
419
|
+
* The BSP is charged a penalty fee ([`BspStopStoringFilePenalty`]) which is transferred to the treasury.
|
|
420
|
+
*
|
|
421
|
+
* ## Payment Stream
|
|
422
|
+
*
|
|
423
|
+
* The payment stream with the file owner is **updated immediately** in this extrinsic (not in
|
|
424
|
+
* [`bsp_confirm_stop_storing`]). This removes any financial incentive for the BSP to delay or
|
|
425
|
+
* skip the confirmation, as they stop getting paid as soon as they announce their intent to stop storing.
|
|
426
|
+
*
|
|
427
|
+
* ## Restrictions
|
|
428
|
+
*
|
|
429
|
+
* This extrinsic will fail with [`FileHasIncompleteStorageRequest`] if an `IncompleteStorageRequest`
|
|
430
|
+
* exists for the file key. The BSP must wait until fisherman nodes clean up the incomplete request.
|
|
378
431
|
**/
|
|
379
432
|
bspRequestStopStoring: AugmentedSubmittable<(fileKey: H256 | string | Uint8Array, bucketId: H256 | string | Uint8Array, location: Bytes | string | Uint8Array, owner: AccountId32 | string | Uint8Array, fingerprint: H256 | string | Uint8Array, size: u64 | AnyNumber | Uint8Array, canServe: bool | boolean | Uint8Array, inclusionForestProof: SpTrieStorageProofCompactProof | {
|
|
380
433
|
encodedNodes?: any;
|
|
@@ -570,6 +623,18 @@ declare module "@polkadot/api-base/types/submittable" {
|
|
|
570
623
|
revokeStorageRequest: AugmentedSubmittable<(fileKey: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
571
624
|
H256
|
|
572
625
|
]>;
|
|
626
|
+
/**
|
|
627
|
+
* Set the pause flags that control which user operations are currently allowed.
|
|
628
|
+
*
|
|
629
|
+
* This extrinsic can only be called by `Root` (for example via `pallet-sudo` or governance).
|
|
630
|
+
* Passing [`UserOperationPauseFlags::NONE`] unpauses all operations, while setting one or more
|
|
631
|
+
* bits in the flags pauses the corresponding user operations.
|
|
632
|
+
*
|
|
633
|
+
* This call replaces the entire bitmask in storage with the provided value.
|
|
634
|
+
**/
|
|
635
|
+
setUserOperationPauseFlags: AugmentedSubmittable<(newFlags: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
636
|
+
u32
|
|
637
|
+
]>;
|
|
573
638
|
/**
|
|
574
639
|
* Executed by a SP to stop storing a file from an insolvent user.
|
|
575
640
|
*
|
|
@@ -71,7 +71,7 @@ import type { VestingInfo } from "@polkadot/types/interfaces/vesting";
|
|
|
71
71
|
import type { AssetIdV2, AssetIdV3, AssetIdV4, AssetIdV5, AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, AssetInstanceV3, AssetInstanceV4, AssetInstanceV5, BodyId, BodyIdV2, BodyIdV3, BodyPart, BodyPartV2, BodyPartV3, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, FungibilityV3, FungibilityV4, FungibilityV5, HintV5, InboundStatus, InstructionV2, InstructionV3, InstructionV4, InstructionV5, InteriorMultiLocation, InteriorMultiLocationV2, InteriorMultiLocationV3, InteriorMultiLocationV5, Junction, JunctionV0, JunctionV1, JunctionV2, JunctionV3, JunctionV4, JunctionV5, Junctions, JunctionsV1, JunctionsV2, JunctionsV3, JunctionsV4, JunctionsV5, MaxPalletNameLen, MaxPalletsInfo, MaybeErrorCodeV3, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetFilterV3, MultiAssetFilterV4, MultiAssetFilterV5, MultiAssetTransferFilterV5, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssetV3, MultiAssetV4, MultiAssetV5, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiAssetsV3, MultiAssetsV4, MultiAssetsV5, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, MultiLocationV3, MultiLocationV4, MultiLocationV5, NetworkId, NetworkIdV2, NetworkIdV3, NetworkIdV4, NetworkIdV5, OriginKindV0, OriginKindV1, OriginKindV2, OriginKindV3, OriginKindV4, OutboundStatus, Outcome, OutcomeV4, PalletInfoV3, PalletInfoV4, PalletInfoV5, QueryId, QueryResponseInfoV3, QueryResponseInfoV4, QueryResponseInfoV5, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV3, ResponseV3Error, ResponseV3Result, ResponseV4, ResponseV5, UncheckedFungibilityV4, UncheckedFungibilityV5, VersionMigrationStage, VersionV3, VersionV4, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WeightLimitV3, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildFungibilityV3, WildFungibilityV4, WildFungibilityV5, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, WildMultiAssetV3, WildMultiAssetV4, WildMultiAssetV5, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmErrorV3, XcmErrorV4, XcmErrorV5, XcmOrderV0, XcmOrderV1, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmV3, XcmV4, XcmV5, XcmVersion, XcmpMessageFormat } from "@polkadot/types/interfaces/xcm";
|
|
72
72
|
import type { XcmPaymentApiError } from "@polkadot/types/interfaces/xcmPaymentApi";
|
|
73
73
|
import type { Error } from "@polkadot/types/interfaces/xcmRuntimeApi";
|
|
74
|
-
import type { AddFilesToForestStorageResult, BackupStorageProvider, BackupStorageProviderId, BucketId, CheckpointChallenge, ChunkId, FileMetadata, GenericApplyDeltaEventInfoError, GetBspInfoError, GetChallengePeriodError, GetChallengeSeedError, GetCheckpointChallengesError, GetFileFromFileStorageResult, GetNextDeadlineTickError, GetProofSubmissionRecordError, GetStakeError, GetUsersWithDebtOverThresholdError, GetValuePropositionsResult, IncompleteFileStatus, IncompleteStorageRequestMetadataResponse, IsStorageRequestOpenToVolunteersError, LoadFileInStorageResult, MainStorageProviderId, MerklePatriciaRoot, Multiaddresses, ProviderId, QueryAvailableStorageCapacityError, QueryBspConfirmChunksToProveForFileError, QueryBspsVolunteeredForFileError, QueryBucketsForMspError, QueryBucketsOfUserStoredByMspError, QueryConfirmChunksToProveForFileError, QueryEarliestChangeCapacityBlockError, QueryFileEarliestVolunteerBlockError, QueryIncompleteStorageRequestMetadataError, QueryMspConfirmChunksToProveForFileError, QueryMspIdOfBucketIdError, QueryProviderMultiaddressesError, QueryStorageProviderCapacityError, RandomnessOutput, RemoveFilesFromForestStorageResult, ReputationWeightType, RpcProviderId, SaveFileToDisk, ShouldRemoveFile, StorageDataUnit, StorageProviderId, StorageRequestMetadata, TrieRemoveMutation, ValuePropId, ValueProposition, ValuePropositionWithId } from "@storagehub/api-augment/parachain/interfaces/storagehubclient";
|
|
74
|
+
import type { AddFilesToForestStorageResult, BackupStorageProvider, BackupStorageProviderId, BucketId, CheckpointChallenge, ChunkId, FileMetadata, GenericApplyDeltaEventInfoError, GetBspInfoError, GetChallengePeriodError, GetChallengeSeedError, GetCheckpointChallengesError, GetFileFromFileStorageResult, GetNextDeadlineTickError, GetProofSubmissionRecordError, GetStakeError, GetUsersWithDebtOverThresholdError, GetValuePropositionsResult, IncompleteFileStatus, IncompleteStorageRequestMetadataResponse, IsStorageRequestOpenToVolunteersError, LoadFileInStorageResult, MainStorageProviderId, MerklePatriciaRoot, MspStorageRequestStatus, Multiaddresses, ProviderId, QueryAvailableStorageCapacityError, QueryBspConfirmChunksToProveForFileError, QueryBspsVolunteeredForFileError, QueryBucketsForMspError, QueryBucketsOfUserStoredByMspError, QueryConfirmChunksToProveForFileError, QueryEarliestChangeCapacityBlockError, QueryFileEarliestVolunteerBlockError, QueryIncompleteStorageRequestMetadataError, QueryMspConfirmChunksToProveForFileError, QueryMspIdOfBucketIdError, QueryProviderMultiaddressesError, QueryStorageProviderCapacityError, RandomnessOutput, RemoveFilesFromForestStorageResult, ReputationWeightType, RpcProviderId, SaveFileToDisk, ShouldRemoveFile, StorageDataUnit, StorageProviderId, StorageRequestMetadata, TrieRemoveMutation, ValuePropId, ValueProposition, ValuePropositionWithId } from "@storagehub/api-augment/parachain/interfaces/storagehubclient";
|
|
75
75
|
declare module "@polkadot/types/types/registry" {
|
|
76
76
|
interface InterfaceTypes {
|
|
77
77
|
AbridgedCandidateReceipt: AbridgedCandidateReceipt;
|
|
@@ -778,6 +778,7 @@ declare module "@polkadot/types/types/registry" {
|
|
|
778
778
|
MomentOf: MomentOf;
|
|
779
779
|
MoreAttestations: MoreAttestations;
|
|
780
780
|
MortalEra: MortalEra;
|
|
781
|
+
MspStorageRequestStatus: MspStorageRequestStatus;
|
|
781
782
|
MultiAddress: MultiAddress;
|
|
782
783
|
Multiaddresses: Multiaddresses;
|
|
783
784
|
MultiAsset: MultiAsset;
|