@storagehub-sdk/core 0.3.4 → 0.3.5-dev.1
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/_wasm_embed.d.ts +1 -1
- package/dist/abi/FileSystem.abi.d.ts +334 -0
- package/dist/evm/storageHubClient.d.ts +11 -21
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +4 -4
- package/dist/index.node.js +1 -1
- package/dist/index.node.js.map +4 -4
- package/package.json +3 -3
- package/wasm/pkg/storagehub_wasm.d.ts +8 -6
- package/wasm/pkg/storagehub_wasm.js +39 -28
- package/wasm/pkg/storagehub_wasm_bg.wasm +0 -0
- package/wasm/pkg/storagehub_wasm_bg.wasm.d.ts +6 -6
- package/dist/abi/filesystem.d.ts +0 -49
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
export declare const filesystemAbi: readonly [{
|
|
2
|
+
readonly anonymous: false;
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly indexed: true;
|
|
5
|
+
readonly internalType: "address";
|
|
6
|
+
readonly name: "who";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
}, {
|
|
9
|
+
readonly indexed: true;
|
|
10
|
+
readonly internalType: "bytes32";
|
|
11
|
+
readonly name: "bucketId";
|
|
12
|
+
readonly type: "bytes32";
|
|
13
|
+
}, {
|
|
14
|
+
readonly indexed: true;
|
|
15
|
+
readonly internalType: "bytes32";
|
|
16
|
+
readonly name: "mspId";
|
|
17
|
+
readonly type: "bytes32";
|
|
18
|
+
}];
|
|
19
|
+
readonly name: "BucketCreated";
|
|
20
|
+
readonly type: "event";
|
|
21
|
+
}, {
|
|
22
|
+
readonly anonymous: false;
|
|
23
|
+
readonly inputs: readonly [{
|
|
24
|
+
readonly indexed: true;
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
readonly name: "who";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly indexed: true;
|
|
30
|
+
readonly internalType: "bytes32";
|
|
31
|
+
readonly name: "bucketId";
|
|
32
|
+
readonly type: "bytes32";
|
|
33
|
+
}];
|
|
34
|
+
readonly name: "BucketDeleted";
|
|
35
|
+
readonly type: "event";
|
|
36
|
+
}, {
|
|
37
|
+
readonly anonymous: false;
|
|
38
|
+
readonly inputs: readonly [{
|
|
39
|
+
readonly indexed: true;
|
|
40
|
+
readonly internalType: "address";
|
|
41
|
+
readonly name: "who";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
}, {
|
|
44
|
+
readonly indexed: true;
|
|
45
|
+
readonly internalType: "bytes32";
|
|
46
|
+
readonly name: "bucketId";
|
|
47
|
+
readonly type: "bytes32";
|
|
48
|
+
}, {
|
|
49
|
+
readonly indexed: true;
|
|
50
|
+
readonly internalType: "bytes32";
|
|
51
|
+
readonly name: "newMspId";
|
|
52
|
+
readonly type: "bytes32";
|
|
53
|
+
}];
|
|
54
|
+
readonly name: "BucketMoveRequested";
|
|
55
|
+
readonly type: "event";
|
|
56
|
+
}, {
|
|
57
|
+
readonly anonymous: false;
|
|
58
|
+
readonly inputs: readonly [{
|
|
59
|
+
readonly indexed: true;
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
readonly name: "who";
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
}, {
|
|
64
|
+
readonly indexed: true;
|
|
65
|
+
readonly internalType: "bytes32";
|
|
66
|
+
readonly name: "bucketId";
|
|
67
|
+
readonly type: "bytes32";
|
|
68
|
+
}, {
|
|
69
|
+
readonly indexed: false;
|
|
70
|
+
readonly internalType: "bool";
|
|
71
|
+
readonly name: "_private";
|
|
72
|
+
readonly type: "bool";
|
|
73
|
+
}];
|
|
74
|
+
readonly name: "BucketPrivacyUpdated";
|
|
75
|
+
readonly type: "event";
|
|
76
|
+
}, {
|
|
77
|
+
readonly anonymous: false;
|
|
78
|
+
readonly inputs: readonly [{
|
|
79
|
+
readonly indexed: true;
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
readonly name: "who";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}, {
|
|
84
|
+
readonly indexed: true;
|
|
85
|
+
readonly internalType: "bytes32";
|
|
86
|
+
readonly name: "bucketId";
|
|
87
|
+
readonly type: "bytes32";
|
|
88
|
+
}, {
|
|
89
|
+
readonly indexed: true;
|
|
90
|
+
readonly internalType: "bytes32";
|
|
91
|
+
readonly name: "collectionId";
|
|
92
|
+
readonly type: "bytes32";
|
|
93
|
+
}];
|
|
94
|
+
readonly name: "CollectionCreated";
|
|
95
|
+
readonly type: "event";
|
|
96
|
+
}, {
|
|
97
|
+
readonly anonymous: false;
|
|
98
|
+
readonly inputs: readonly [{
|
|
99
|
+
readonly indexed: true;
|
|
100
|
+
readonly internalType: "bytes32";
|
|
101
|
+
readonly name: "fileKey";
|
|
102
|
+
readonly type: "bytes32";
|
|
103
|
+
}, {
|
|
104
|
+
readonly indexed: true;
|
|
105
|
+
readonly internalType: "address";
|
|
106
|
+
readonly name: "owner";
|
|
107
|
+
readonly type: "address";
|
|
108
|
+
}];
|
|
109
|
+
readonly name: "FileDeletionRequested";
|
|
110
|
+
readonly type: "event";
|
|
111
|
+
}, {
|
|
112
|
+
readonly anonymous: false;
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly indexed: true;
|
|
115
|
+
readonly internalType: "address";
|
|
116
|
+
readonly name: "who";
|
|
117
|
+
readonly type: "address";
|
|
118
|
+
}, {
|
|
119
|
+
readonly indexed: true;
|
|
120
|
+
readonly internalType: "bytes32";
|
|
121
|
+
readonly name: "fileKey";
|
|
122
|
+
readonly type: "bytes32";
|
|
123
|
+
}, {
|
|
124
|
+
readonly indexed: true;
|
|
125
|
+
readonly internalType: "bytes32";
|
|
126
|
+
readonly name: "bucketId";
|
|
127
|
+
readonly type: "bytes32";
|
|
128
|
+
}];
|
|
129
|
+
readonly name: "StorageRequestIssued";
|
|
130
|
+
readonly type: "event";
|
|
131
|
+
}, {
|
|
132
|
+
readonly anonymous: false;
|
|
133
|
+
readonly inputs: readonly [{
|
|
134
|
+
readonly indexed: true;
|
|
135
|
+
readonly internalType: "bytes32";
|
|
136
|
+
readonly name: "fileKey";
|
|
137
|
+
readonly type: "bytes32";
|
|
138
|
+
}];
|
|
139
|
+
readonly name: "StorageRequestRevoked";
|
|
140
|
+
readonly type: "event";
|
|
141
|
+
}, {
|
|
142
|
+
readonly inputs: readonly [{
|
|
143
|
+
readonly internalType: "bytes32";
|
|
144
|
+
readonly name: "bucketId";
|
|
145
|
+
readonly type: "bytes32";
|
|
146
|
+
}];
|
|
147
|
+
readonly name: "createAndAssociateCollectionWithBucket";
|
|
148
|
+
readonly outputs: readonly [];
|
|
149
|
+
readonly stateMutability: "nonpayable";
|
|
150
|
+
readonly type: "function";
|
|
151
|
+
}, {
|
|
152
|
+
readonly inputs: readonly [{
|
|
153
|
+
readonly internalType: "bytes32";
|
|
154
|
+
readonly name: "mspId";
|
|
155
|
+
readonly type: "bytes32";
|
|
156
|
+
}, {
|
|
157
|
+
readonly internalType: "bytes";
|
|
158
|
+
readonly name: "name";
|
|
159
|
+
readonly type: "bytes";
|
|
160
|
+
}, {
|
|
161
|
+
readonly internalType: "bool";
|
|
162
|
+
readonly name: "_private";
|
|
163
|
+
readonly type: "bool";
|
|
164
|
+
}, {
|
|
165
|
+
readonly internalType: "bytes32";
|
|
166
|
+
readonly name: "valuePropId";
|
|
167
|
+
readonly type: "bytes32";
|
|
168
|
+
}];
|
|
169
|
+
readonly name: "createBucket";
|
|
170
|
+
readonly outputs: readonly [];
|
|
171
|
+
readonly stateMutability: "nonpayable";
|
|
172
|
+
readonly type: "function";
|
|
173
|
+
}, {
|
|
174
|
+
readonly inputs: readonly [{
|
|
175
|
+
readonly internalType: "bytes32";
|
|
176
|
+
readonly name: "bucketId";
|
|
177
|
+
readonly type: "bytes32";
|
|
178
|
+
}];
|
|
179
|
+
readonly name: "deleteBucket";
|
|
180
|
+
readonly outputs: readonly [];
|
|
181
|
+
readonly stateMutability: "nonpayable";
|
|
182
|
+
readonly type: "function";
|
|
183
|
+
}, {
|
|
184
|
+
readonly inputs: readonly [{
|
|
185
|
+
readonly internalType: "address";
|
|
186
|
+
readonly name: "owner";
|
|
187
|
+
readonly type: "address";
|
|
188
|
+
}, {
|
|
189
|
+
readonly internalType: "bytes";
|
|
190
|
+
readonly name: "name";
|
|
191
|
+
readonly type: "bytes";
|
|
192
|
+
}];
|
|
193
|
+
readonly name: "deriveBucketId";
|
|
194
|
+
readonly outputs: readonly [{
|
|
195
|
+
readonly internalType: "bytes32";
|
|
196
|
+
readonly name: "bucketId";
|
|
197
|
+
readonly type: "bytes32";
|
|
198
|
+
}];
|
|
199
|
+
readonly stateMutability: "view";
|
|
200
|
+
readonly type: "function";
|
|
201
|
+
}, {
|
|
202
|
+
readonly inputs: readonly [{
|
|
203
|
+
readonly internalType: "address";
|
|
204
|
+
readonly name: "user";
|
|
205
|
+
readonly type: "address";
|
|
206
|
+
}];
|
|
207
|
+
readonly name: "getPendingFileDeletionRequestsCount";
|
|
208
|
+
readonly outputs: readonly [{
|
|
209
|
+
readonly internalType: "uint32";
|
|
210
|
+
readonly name: "count";
|
|
211
|
+
readonly type: "uint32";
|
|
212
|
+
}];
|
|
213
|
+
readonly stateMutability: "view";
|
|
214
|
+
readonly type: "function";
|
|
215
|
+
}, {
|
|
216
|
+
readonly inputs: readonly [{
|
|
217
|
+
readonly internalType: "bytes32";
|
|
218
|
+
readonly name: "bucketId";
|
|
219
|
+
readonly type: "bytes32";
|
|
220
|
+
}, {
|
|
221
|
+
readonly internalType: "bytes";
|
|
222
|
+
readonly name: "location";
|
|
223
|
+
readonly type: "bytes";
|
|
224
|
+
}, {
|
|
225
|
+
readonly internalType: "bytes32";
|
|
226
|
+
readonly name: "fingerprint";
|
|
227
|
+
readonly type: "bytes32";
|
|
228
|
+
}, {
|
|
229
|
+
readonly internalType: "uint64";
|
|
230
|
+
readonly name: "size";
|
|
231
|
+
readonly type: "uint64";
|
|
232
|
+
}, {
|
|
233
|
+
readonly internalType: "bytes32";
|
|
234
|
+
readonly name: "mspId";
|
|
235
|
+
readonly type: "bytes32";
|
|
236
|
+
}, {
|
|
237
|
+
readonly internalType: "bytes[]";
|
|
238
|
+
readonly name: "peerIds";
|
|
239
|
+
readonly type: "bytes[]";
|
|
240
|
+
}, {
|
|
241
|
+
readonly internalType: "enum FileSystem.ReplicationTarget";
|
|
242
|
+
readonly name: "replicationTarget";
|
|
243
|
+
readonly type: "uint8";
|
|
244
|
+
}, {
|
|
245
|
+
readonly internalType: "uint32";
|
|
246
|
+
readonly name: "customReplicationTarget";
|
|
247
|
+
readonly type: "uint32";
|
|
248
|
+
}];
|
|
249
|
+
readonly name: "issueStorageRequest";
|
|
250
|
+
readonly outputs: readonly [];
|
|
251
|
+
readonly stateMutability: "nonpayable";
|
|
252
|
+
readonly type: "function";
|
|
253
|
+
}, {
|
|
254
|
+
readonly inputs: readonly [{
|
|
255
|
+
readonly components: readonly [{
|
|
256
|
+
readonly internalType: "bytes32";
|
|
257
|
+
readonly name: "fileKey";
|
|
258
|
+
readonly type: "bytes32";
|
|
259
|
+
}, {
|
|
260
|
+
readonly internalType: "enum FileSystem.FileOperation";
|
|
261
|
+
readonly name: "operation";
|
|
262
|
+
readonly type: "uint8";
|
|
263
|
+
}];
|
|
264
|
+
readonly internalType: "struct FileSystem.FileOperationIntention";
|
|
265
|
+
readonly name: "signedIntention";
|
|
266
|
+
readonly type: "tuple";
|
|
267
|
+
}, {
|
|
268
|
+
readonly internalType: "bytes";
|
|
269
|
+
readonly name: "signature";
|
|
270
|
+
readonly type: "bytes";
|
|
271
|
+
}, {
|
|
272
|
+
readonly internalType: "bytes32";
|
|
273
|
+
readonly name: "bucketId";
|
|
274
|
+
readonly type: "bytes32";
|
|
275
|
+
}, {
|
|
276
|
+
readonly internalType: "bytes";
|
|
277
|
+
readonly name: "location";
|
|
278
|
+
readonly type: "bytes";
|
|
279
|
+
}, {
|
|
280
|
+
readonly internalType: "uint64";
|
|
281
|
+
readonly name: "size";
|
|
282
|
+
readonly type: "uint64";
|
|
283
|
+
}, {
|
|
284
|
+
readonly internalType: "bytes32";
|
|
285
|
+
readonly name: "fingerprint";
|
|
286
|
+
readonly type: "bytes32";
|
|
287
|
+
}];
|
|
288
|
+
readonly name: "requestDeleteFile";
|
|
289
|
+
readonly outputs: readonly [];
|
|
290
|
+
readonly stateMutability: "nonpayable";
|
|
291
|
+
readonly type: "function";
|
|
292
|
+
}, {
|
|
293
|
+
readonly inputs: readonly [{
|
|
294
|
+
readonly internalType: "bytes32";
|
|
295
|
+
readonly name: "bucketId";
|
|
296
|
+
readonly type: "bytes32";
|
|
297
|
+
}, {
|
|
298
|
+
readonly internalType: "bytes32";
|
|
299
|
+
readonly name: "newMspId";
|
|
300
|
+
readonly type: "bytes32";
|
|
301
|
+
}, {
|
|
302
|
+
readonly internalType: "bytes32";
|
|
303
|
+
readonly name: "newValuePropId";
|
|
304
|
+
readonly type: "bytes32";
|
|
305
|
+
}];
|
|
306
|
+
readonly name: "requestMoveBucket";
|
|
307
|
+
readonly outputs: readonly [];
|
|
308
|
+
readonly stateMutability: "nonpayable";
|
|
309
|
+
readonly type: "function";
|
|
310
|
+
}, {
|
|
311
|
+
readonly inputs: readonly [{
|
|
312
|
+
readonly internalType: "bytes32";
|
|
313
|
+
readonly name: "fileKey";
|
|
314
|
+
readonly type: "bytes32";
|
|
315
|
+
}];
|
|
316
|
+
readonly name: "revokeStorageRequest";
|
|
317
|
+
readonly outputs: readonly [];
|
|
318
|
+
readonly stateMutability: "nonpayable";
|
|
319
|
+
readonly type: "function";
|
|
320
|
+
}, {
|
|
321
|
+
readonly inputs: readonly [{
|
|
322
|
+
readonly internalType: "bytes32";
|
|
323
|
+
readonly name: "bucketId";
|
|
324
|
+
readonly type: "bytes32";
|
|
325
|
+
}, {
|
|
326
|
+
readonly internalType: "bool";
|
|
327
|
+
readonly name: "_private";
|
|
328
|
+
readonly type: "bool";
|
|
329
|
+
}];
|
|
330
|
+
readonly name: "updateBucketPrivacy";
|
|
331
|
+
readonly outputs: readonly [];
|
|
332
|
+
readonly stateMutability: "nonpayable";
|
|
333
|
+
readonly type: "function";
|
|
334
|
+
}];
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* All arguments are strongly typed. String data (names, paths) are passed as strings and encoded internally.
|
|
8
8
|
* Binary data (signatures) are passed as Uint8Array. Hex values are 0x-prefixed strings (32-byte IDs).
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
10
|
+
import { type Address } from "viem";
|
|
11
|
+
import { filesystemAbi } from "../abi/FileSystem.abi";
|
|
11
12
|
import type { FileInfo } from "../types";
|
|
12
13
|
import type { EvmWriteOptions, StorageHubClientOptions } from "./types";
|
|
13
14
|
import { type ReplicationLevel } from "./types";
|
|
14
|
-
import { type Address } from "viem";
|
|
15
15
|
export { filesystemAbi };
|
|
16
16
|
/**
|
|
17
17
|
* Default precompile address for FileSystem on StorageHub runtimes.
|
|
@@ -27,12 +27,6 @@ export declare class StorageHubClient {
|
|
|
27
27
|
private static readonly MAX_PEER_ID_BYTES;
|
|
28
28
|
private static readonly DEFAULT_GAS_MULTIPLIER;
|
|
29
29
|
private static readonly DEFAULT_GAS_PRICE;
|
|
30
|
-
/**
|
|
31
|
-
* Get write contract instance bound to the wallet client.
|
|
32
|
-
*
|
|
33
|
-
* @returns Contract instance for write operations (transactions)
|
|
34
|
-
*/
|
|
35
|
-
private getWriteContract;
|
|
36
30
|
/**
|
|
37
31
|
* Get read contract instance bound to the public client.
|
|
38
32
|
*
|
|
@@ -64,10 +58,6 @@ export declare class StorageHubClient {
|
|
|
64
58
|
* @returns 0x-prefixed hex string
|
|
65
59
|
*/
|
|
66
60
|
private validateStringLength;
|
|
67
|
-
/**
|
|
68
|
-
* Assert that a value is present (non-null and non-undefined).
|
|
69
|
-
*/
|
|
70
|
-
private assertPresent;
|
|
71
61
|
/**
|
|
72
62
|
* Serialize FileOperationIntention and sign it
|
|
73
63
|
*/
|
|
@@ -87,13 +77,13 @@ export declare class StorageHubClient {
|
|
|
87
77
|
* @param name - bucket name as string (max 100 UTF-8 bytes)
|
|
88
78
|
* @returns bucketId as 0x-prefixed 32-byte hex
|
|
89
79
|
*/
|
|
90
|
-
deriveBucketId(owner: Address, name: string): Promise
|
|
80
|
+
deriveBucketId(owner: Address, name: string): Promise<`0x${string}`>;
|
|
91
81
|
/**
|
|
92
82
|
* Get how many file deletion requests a user currently has pending.
|
|
93
83
|
* @param user - user EVM address
|
|
94
84
|
* @returns count as number
|
|
95
85
|
*/
|
|
96
|
-
getPendingFileDeletionRequestsCount(user: Address): Promise<
|
|
86
|
+
getPendingFileDeletionRequestsCount(user: Address): Promise<number>;
|
|
97
87
|
/**
|
|
98
88
|
* Create a new bucket.
|
|
99
89
|
* @param mspId - 32-byte MSP ID (0x-prefixed hex)
|
|
@@ -102,7 +92,7 @@ export declare class StorageHubClient {
|
|
|
102
92
|
* @param valuePropId - 32-byte value proposition ID (0x-prefixed hex)
|
|
103
93
|
* @param options - optional gas and fee overrides
|
|
104
94
|
*/
|
|
105
|
-
createBucket(mspId: `0x${string}`, name: string, isPrivate: boolean, valuePropId: `0x${string}`, options?: EvmWriteOptions): Promise<`0x${string}
|
|
95
|
+
createBucket(mspId: `0x${string}`, name: string, isPrivate: boolean, valuePropId: `0x${string}`, options?: EvmWriteOptions): Promise<`0x${string}`>;
|
|
106
96
|
/**
|
|
107
97
|
* Request moving a bucket to a new MSP/value proposition.
|
|
108
98
|
* @param bucketId - 32-byte bucket ID
|
|
@@ -110,26 +100,26 @@ export declare class StorageHubClient {
|
|
|
110
100
|
* @param newValuePropId - 32-byte new value proposition ID
|
|
111
101
|
* @param options - optional gas and fee overrides
|
|
112
102
|
*/
|
|
113
|
-
requestMoveBucket(bucketId: `0x${string}`, newMspId: `0x${string}`, newValuePropId: `0x${string}`, options?: EvmWriteOptions): Promise<`0x${string}
|
|
103
|
+
requestMoveBucket(bucketId: `0x${string}`, newMspId: `0x${string}`, newValuePropId: `0x${string}`, options?: EvmWriteOptions): Promise<`0x${string}`>;
|
|
114
104
|
/**
|
|
115
105
|
* Update bucket privacy flag.
|
|
116
106
|
* @param bucketId - 32-byte bucket ID
|
|
117
107
|
* @param isPrivate - true for private
|
|
118
108
|
* @param options - optional gas and fee overrides
|
|
119
109
|
*/
|
|
120
|
-
updateBucketPrivacy(bucketId: `0x${string}`, isPrivate: boolean, options?: EvmWriteOptions): Promise<`0x${string}
|
|
110
|
+
updateBucketPrivacy(bucketId: `0x${string}`, isPrivate: boolean, options?: EvmWriteOptions): Promise<`0x${string}`>;
|
|
121
111
|
/**
|
|
122
112
|
* Create and associate a collection with a bucket.
|
|
123
113
|
* @param bucketId - 32-byte bucket ID
|
|
124
114
|
* @param options - optional gas and fee overrides
|
|
125
115
|
*/
|
|
126
|
-
createAndAssociateCollectionWithBucket(bucketId: `0x${string}`, options?: EvmWriteOptions): Promise<`0x${string}
|
|
116
|
+
createAndAssociateCollectionWithBucket(bucketId: `0x${string}`, options?: EvmWriteOptions): Promise<`0x${string}`>;
|
|
127
117
|
/**
|
|
128
118
|
* Delete an empty bucket.
|
|
129
119
|
* @param bucketId - 32-byte bucket ID
|
|
130
120
|
* @param options - optional gas and fee overrides
|
|
131
121
|
*/
|
|
132
|
-
deleteBucket(bucketId: `0x${string}`, options?: EvmWriteOptions): Promise<`0x${string}
|
|
122
|
+
deleteBucket(bucketId: `0x${string}`, options?: EvmWriteOptions): Promise<`0x${string}`>;
|
|
133
123
|
/**
|
|
134
124
|
* Issue a storage request for a file.
|
|
135
125
|
* @param bucketId - 32-byte bucket ID
|
|
@@ -142,13 +132,13 @@ export declare class StorageHubClient {
|
|
|
142
132
|
* @param replicas - number of replicas (only required for ReplicationLevel.Custom)
|
|
143
133
|
* @param options - optional gas and fee overrides
|
|
144
134
|
*/
|
|
145
|
-
issueStorageRequest(bucketId: `0x${string}`, location: string, fingerprint: `0x${string}`, size: bigint, mspId: `0x${string}`, peerIds: string[], replicationLevel: ReplicationLevel, replicas: number, options?: EvmWriteOptions): Promise<`0x${string}
|
|
135
|
+
issueStorageRequest(bucketId: `0x${string}`, location: string, fingerprint: `0x${string}`, size: bigint, mspId: `0x${string}`, peerIds: string[], replicationLevel: ReplicationLevel, replicas: number, options?: EvmWriteOptions): Promise<`0x${string}`>;
|
|
146
136
|
/**
|
|
147
137
|
* Revoke a pending storage request by file key.
|
|
148
138
|
* @param fileKey - 32-byte file key
|
|
149
139
|
* @param options - optional gas and fee overrides
|
|
150
140
|
*/
|
|
151
|
-
revokeStorageRequest(fileKey: `0x${string}`, options?: EvmWriteOptions): Promise<`0x${string}
|
|
141
|
+
revokeStorageRequest(fileKey: `0x${string}`, options?: EvmWriteOptions): Promise<`0x${string}`>;
|
|
152
142
|
/**
|
|
153
143
|
* Request deletion of a file from the network.
|
|
154
144
|
* @param fileInfo File information containing all required data
|