@storagehub-sdk/core 0.1.0 → 0.2.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/_wasm_embed.d.ts +1 -1
- package/dist/evm/clients.d.ts +1 -1
- package/dist/evm/storageHubClient.d.ts +14 -14
- package/dist/evm/types.d.ts +1 -1
- package/dist/file-manager.d.ts +1 -1
- package/dist/http/HttpClient.d.ts +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +2 -2
- package/dist/index.d.ts +13 -13
- package/dist/index.node.js +1 -1
- package/dist/index.node.js.map +2 -2
- package/dist/wallet/base.d.ts +1 -1
- package/dist/wallet/eip1193.d.ts +2 -2
- package/dist/wallet/errors.d.ts +1 -1
- package/dist/wallet/local.d.ts +2 -2
- package/dist/wasm.d.ts +1 -1
- package/package.json +6 -13
- package/wasm/pkg/storagehub_wasm_bg.wasm +0 -0
package/dist/wallet/base.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* for retrieving the active account address, sending transactions, and
|
|
7
7
|
* signing arbitrary messages.
|
|
8
8
|
*/
|
|
9
|
-
import type { TransactionRequest } from
|
|
9
|
+
import type { TransactionRequest } from "ethers";
|
|
10
10
|
export declare abstract class WalletBase {
|
|
11
11
|
/**
|
|
12
12
|
* Return the public address for the currently selected account.
|
package/dist/wallet/eip1193.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WalletBase } from
|
|
2
|
-
import { type Eip1193Provider, type TransactionRequest } from
|
|
1
|
+
import { WalletBase } from "./base.js";
|
|
2
|
+
import { type Eip1193Provider, type TransactionRequest } from "ethers";
|
|
3
3
|
declare global {
|
|
4
4
|
/**
|
|
5
5
|
* EIP-1193 injected provider placed on the window object by browser wallets.
|
package/dist/wallet/errors.d.ts
CHANGED
package/dist/wallet/local.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WalletBase } from
|
|
2
|
-
import { type Provider, type TransactionRequest } from
|
|
1
|
+
import { WalletBase } from "./base.js";
|
|
2
|
+
import { type Provider, type TransactionRequest } from "ethers";
|
|
3
3
|
/**
|
|
4
4
|
* A local, in-memory wallet implementation.
|
|
5
5
|
*
|
package/dist/wasm.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FileMetadata, FileTrie } from
|
|
1
|
+
export { FileMetadata, FileTrie } from "../wasm/pkg/storagehub_wasm.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storagehub-sdk/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Core primitives for StorageHub SDK (types, crypto, filemanager, storage, wasm bindings)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.node.js",
|
|
@@ -27,17 +27,10 @@
|
|
|
27
27
|
"@polkadot/types": "^16.4.7",
|
|
28
28
|
"abitype": "^1.0.0",
|
|
29
29
|
"ethers": "^6.15.0",
|
|
30
|
-
"viem": "^2.
|
|
30
|
+
"viem": "^2.37.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@eslint/eslintrc": "2.1.4",
|
|
34
33
|
"@types/node": "^20.11.19",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
|
36
|
-
"@typescript-eslint/parser": "^8.37.0",
|
|
37
|
-
"eslint": "^9.31.0",
|
|
38
|
-
"eslint-config-prettier": "^10.1.5",
|
|
39
|
-
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
40
|
-
"prettier": "^3.6.2",
|
|
41
34
|
"solc": "^0.8.26"
|
|
42
35
|
},
|
|
43
36
|
"engines": {
|
|
@@ -50,10 +43,10 @@
|
|
|
50
43
|
"clean": "rm -rf dist node_modules wasm/pkg/* src/abi/*.abi.json",
|
|
51
44
|
"coverage": "vitest run --coverage",
|
|
52
45
|
"dev": "node ./build.js --watch",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"lint": "
|
|
56
|
-
"lint:fix": "
|
|
46
|
+
"fmt": "biome format .",
|
|
47
|
+
"fmt:fix": "biome format . --write",
|
|
48
|
+
"lint": "biome lint .",
|
|
49
|
+
"lint:fix": "biome lint . --write",
|
|
57
50
|
"prebuild": "pnpm run build:abi",
|
|
58
51
|
"test": "vitest",
|
|
59
52
|
"typecheck": "tsc --noEmit"
|
|
Binary file
|