@storagehub/api-augment 0.2.9 → 0.2.11
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 +5 -1
- package/dist/parachain/interfaces/lookup.js.map +1 -1
- package/dist/solochain-evm/interfaces/lookup.js +5 -1
- package/dist/solochain-evm/interfaces/lookup.js.map +1 -1
- package/dist/types/parachain/interfaces/augment-api-errors.d.ts +9 -0
- package/dist/types/parachain/interfaces/augment-api-events.d.ts +4 -0
- package/dist/types/parachain/interfaces/lookup.d.ts +2 -0
- package/dist/types/parachain/interfaces/types-lookup.d.ts +5 -1
- package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +9 -0
- package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +4 -0
- package/dist/types/solochain-evm/interfaces/lookup.d.ts +2 -0
- package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +5 -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 +9 -0
- package/src/parachain/interfaces/augment-api-events.ts +12 -2
- package/src/parachain/interfaces/lookup.ts +5 -1
- package/src/parachain/interfaces/types-lookup.ts +7 -1
- package/src/solochain-evm/interfaces/augment-api-errors.ts +9 -0
- package/src/solochain-evm/interfaces/augment-api-events.ts +12 -2
- package/src/solochain-evm/interfaces/lookup.ts +5 -1
- package/src/solochain-evm/interfaces/types-lookup.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storagehub/api-augment",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
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.2.
|
|
37
|
+
"@storagehub/types-bundle": "0.2.8"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"scrape": "pnpm tsx scripts/scrapeMetadata.ts",
|
|
@@ -290,6 +290,15 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
290
290
|
* Failed to convert to primitive type.
|
|
291
291
|
**/
|
|
292
292
|
FailedTypeConversion: AugmentedError<ApiType>;
|
|
293
|
+
/**
|
|
294
|
+
* File has an active storage request and as such is not eligible for deletion.
|
|
295
|
+
* The user should use the `revoke_storage_request` extrinsic to revoke it first.
|
|
296
|
+
**/
|
|
297
|
+
FileHasActiveStorageRequest: AugmentedError<ApiType>;
|
|
298
|
+
/**
|
|
299
|
+
* File has an `IncompleteStorageRequest` associated with it and as such is not eligible for a new storage request
|
|
300
|
+
**/
|
|
301
|
+
FileHasIncompleteStorageRequest: AugmentedError<ApiType>;
|
|
293
302
|
/**
|
|
294
303
|
* File key already pending deletion.
|
|
295
304
|
**/
|
|
@@ -780,8 +780,18 @@ declare module "@polkadot/api-base/types/events" {
|
|
|
780
780
|
**/
|
|
781
781
|
StorageRequestRejected: AugmentedEvent<
|
|
782
782
|
ApiType,
|
|
783
|
-
[
|
|
784
|
-
|
|
783
|
+
[
|
|
784
|
+
fileKey: H256,
|
|
785
|
+
mspId: H256,
|
|
786
|
+
bucketId: H256,
|
|
787
|
+
reason: PalletFileSystemRejectedStorageRequestReason
|
|
788
|
+
],
|
|
789
|
+
{
|
|
790
|
+
fileKey: H256;
|
|
791
|
+
mspId: H256;
|
|
792
|
+
bucketId: H256;
|
|
793
|
+
reason: PalletFileSystemRejectedStorageRequestReason;
|
|
794
|
+
}
|
|
785
795
|
>;
|
|
786
796
|
/**
|
|
787
797
|
* Notifies that a storage request has been revoked by the user who initiated it.
|
|
@@ -1596,6 +1596,8 @@ export default {
|
|
|
1596
1596
|
},
|
|
1597
1597
|
StorageRequestRejected: {
|
|
1598
1598
|
fileKey: "H256",
|
|
1599
|
+
mspId: "H256",
|
|
1600
|
+
bucketId: "H256",
|
|
1599
1601
|
reason: "PalletFileSystemRejectedStorageRequestReason"
|
|
1600
1602
|
},
|
|
1601
1603
|
BspRequestedToStopStoring: {
|
|
@@ -4911,7 +4913,9 @@ export default {
|
|
|
4911
4913
|
"InvalidProviderID",
|
|
4912
4914
|
"InvalidSignedOperation",
|
|
4913
4915
|
"FileKeyMismatch",
|
|
4914
|
-
"IncompleteStorageRequestNotFound"
|
|
4916
|
+
"IncompleteStorageRequestNotFound",
|
|
4917
|
+
"FileHasActiveStorageRequest",
|
|
4918
|
+
"FileHasIncompleteStorageRequest"
|
|
4915
4919
|
]
|
|
4916
4920
|
},
|
|
4917
4921
|
/**
|
|
@@ -2099,6 +2099,8 @@ declare module "@polkadot/types/lookup" {
|
|
|
2099
2099
|
readonly isStorageRequestRejected: boolean;
|
|
2100
2100
|
readonly asStorageRequestRejected: {
|
|
2101
2101
|
readonly fileKey: H256;
|
|
2102
|
+
readonly mspId: H256;
|
|
2103
|
+
readonly bucketId: H256;
|
|
2102
2104
|
readonly reason: PalletFileSystemRejectedStorageRequestReason;
|
|
2103
2105
|
} & Struct;
|
|
2104
2106
|
readonly isBspRequestedToStopStoring: boolean;
|
|
@@ -6266,6 +6268,8 @@ declare module "@polkadot/types/lookup" {
|
|
|
6266
6268
|
readonly isInvalidSignedOperation: boolean;
|
|
6267
6269
|
readonly isFileKeyMismatch: boolean;
|
|
6268
6270
|
readonly isIncompleteStorageRequestNotFound: boolean;
|
|
6271
|
+
readonly isFileHasActiveStorageRequest: boolean;
|
|
6272
|
+
readonly isFileHasIncompleteStorageRequest: boolean;
|
|
6269
6273
|
readonly type:
|
|
6270
6274
|
| "StorageRequestAlreadyRegistered"
|
|
6271
6275
|
| "StorageRequestNotFound"
|
|
@@ -6360,7 +6364,9 @@ declare module "@polkadot/types/lookup" {
|
|
|
6360
6364
|
| "InvalidProviderID"
|
|
6361
6365
|
| "InvalidSignedOperation"
|
|
6362
6366
|
| "FileKeyMismatch"
|
|
6363
|
-
| "IncompleteStorageRequestNotFound"
|
|
6367
|
+
| "IncompleteStorageRequestNotFound"
|
|
6368
|
+
| "FileHasActiveStorageRequest"
|
|
6369
|
+
| "FileHasIncompleteStorageRequest";
|
|
6364
6370
|
}
|
|
6365
6371
|
|
|
6366
6372
|
/** @name PalletProofsDealerProofSubmissionRecord (498) */
|
|
@@ -310,6 +310,15 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
310
310
|
* Failed to convert to primitive type.
|
|
311
311
|
**/
|
|
312
312
|
FailedTypeConversion: AugmentedError<ApiType>;
|
|
313
|
+
/**
|
|
314
|
+
* File has an active storage request and as such is not eligible for deletion.
|
|
315
|
+
* The user should use the `revoke_storage_request` extrinsic to revoke it first.
|
|
316
|
+
**/
|
|
317
|
+
FileHasActiveStorageRequest: AugmentedError<ApiType>;
|
|
318
|
+
/**
|
|
319
|
+
* File has an `IncompleteStorageRequest` associated with it and as such is not eligible for a new storage request
|
|
320
|
+
**/
|
|
321
|
+
FileHasIncompleteStorageRequest: AugmentedError<ApiType>;
|
|
313
322
|
/**
|
|
314
323
|
* File key already pending deletion.
|
|
315
324
|
**/
|
|
@@ -719,8 +719,18 @@ declare module "@polkadot/api-base/types/events" {
|
|
|
719
719
|
**/
|
|
720
720
|
StorageRequestRejected: AugmentedEvent<
|
|
721
721
|
ApiType,
|
|
722
|
-
[
|
|
723
|
-
|
|
722
|
+
[
|
|
723
|
+
fileKey: H256,
|
|
724
|
+
mspId: H256,
|
|
725
|
+
bucketId: H256,
|
|
726
|
+
reason: PalletFileSystemRejectedStorageRequestReason
|
|
727
|
+
],
|
|
728
|
+
{
|
|
729
|
+
fileKey: H256;
|
|
730
|
+
mspId: H256;
|
|
731
|
+
bucketId: H256;
|
|
732
|
+
reason: PalletFileSystemRejectedStorageRequestReason;
|
|
733
|
+
}
|
|
724
734
|
>;
|
|
725
735
|
/**
|
|
726
736
|
* Notifies that a storage request has been revoked by the user who initiated it.
|
|
@@ -937,6 +937,8 @@ export default {
|
|
|
937
937
|
},
|
|
938
938
|
StorageRequestRejected: {
|
|
939
939
|
fileKey: "H256",
|
|
940
|
+
mspId: "H256",
|
|
941
|
+
bucketId: "H256",
|
|
940
942
|
reason: "PalletFileSystemRejectedStorageRequestReason"
|
|
941
943
|
},
|
|
942
944
|
BspRequestedToStopStoring: {
|
|
@@ -3508,7 +3510,9 @@ export default {
|
|
|
3508
3510
|
"InvalidProviderID",
|
|
3509
3511
|
"InvalidSignedOperation",
|
|
3510
3512
|
"FileKeyMismatch",
|
|
3511
|
-
"IncompleteStorageRequestNotFound"
|
|
3513
|
+
"IncompleteStorageRequestNotFound",
|
|
3514
|
+
"FileHasActiveStorageRequest",
|
|
3515
|
+
"FileHasIncompleteStorageRequest"
|
|
3512
3516
|
]
|
|
3513
3517
|
},
|
|
3514
3518
|
/**
|
|
@@ -1165,6 +1165,8 @@ declare module "@polkadot/types/lookup" {
|
|
|
1165
1165
|
readonly isStorageRequestRejected: boolean;
|
|
1166
1166
|
readonly asStorageRequestRejected: {
|
|
1167
1167
|
readonly fileKey: H256;
|
|
1168
|
+
readonly mspId: H256;
|
|
1169
|
+
readonly bucketId: H256;
|
|
1168
1170
|
readonly reason: PalletFileSystemRejectedStorageRequestReason;
|
|
1169
1171
|
} & Struct;
|
|
1170
1172
|
readonly isBspRequestedToStopStoring: boolean;
|
|
@@ -4188,6 +4190,8 @@ declare module "@polkadot/types/lookup" {
|
|
|
4188
4190
|
readonly isInvalidSignedOperation: boolean;
|
|
4189
4191
|
readonly isFileKeyMismatch: boolean;
|
|
4190
4192
|
readonly isIncompleteStorageRequestNotFound: boolean;
|
|
4193
|
+
readonly isFileHasActiveStorageRequest: boolean;
|
|
4194
|
+
readonly isFileHasIncompleteStorageRequest: boolean;
|
|
4191
4195
|
readonly type:
|
|
4192
4196
|
| "StorageRequestAlreadyRegistered"
|
|
4193
4197
|
| "StorageRequestNotFound"
|
|
@@ -4282,7 +4286,9 @@ declare module "@polkadot/types/lookup" {
|
|
|
4282
4286
|
| "InvalidProviderID"
|
|
4283
4287
|
| "InvalidSignedOperation"
|
|
4284
4288
|
| "FileKeyMismatch"
|
|
4285
|
-
| "IncompleteStorageRequestNotFound"
|
|
4289
|
+
| "IncompleteStorageRequestNotFound"
|
|
4290
|
+
| "FileHasActiveStorageRequest"
|
|
4291
|
+
| "FileHasIncompleteStorageRequest";
|
|
4286
4292
|
}
|
|
4287
4293
|
|
|
4288
4294
|
/** @name PalletProofsDealerProofSubmissionRecord (361) */
|