@storagehub-sdk/core 0.2.0 → 0.3.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/README.md +4 -3
- package/dist/evm/storageHubClient.d.ts +21 -11
- package/dist/evm/types.d.ts +9 -2
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +4 -4
- package/dist/index.d.ts +3 -2
- package/dist/index.node.js +1 -1
- package/dist/index.node.js.map +4 -4
- package/dist/types.d.ts +12 -0
- package/package.json +1 -1
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface FileInfo {
|
|
2
|
+
/** Unique file identifier (32-byte hex string) */
|
|
3
|
+
fileKey: `0x${string}`;
|
|
4
|
+
/** Root of the file content trie (32-byte hex string) */
|
|
5
|
+
fingerprint: `0x${string}`;
|
|
6
|
+
/** Identifier of the bucket that contains the file (32-byte hex string) */
|
|
7
|
+
bucketId: `0x${string}`;
|
|
8
|
+
/** File location/path within the bucket */
|
|
9
|
+
location: string;
|
|
10
|
+
/** File size in bytes (using bigint for blockchain compatibility) */
|
|
11
|
+
size: bigint;
|
|
12
|
+
}
|
package/package.json
CHANGED