@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.
@@ -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 'ethers';
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.
@@ -1,5 +1,5 @@
1
- import { WalletBase } from './base.js';
2
- import { type Eip1193Provider, type TransactionRequest } from 'ethers';
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.
@@ -1,4 +1,4 @@
1
- export type WalletErrorCode = 'InvalidPrivateKey' | 'InvalidMnemonic';
1
+ export type WalletErrorCode = "InvalidPrivateKey" | "InvalidMnemonic";
2
2
  export declare class WalletError extends Error {
3
3
  readonly name = "WalletError";
4
4
  readonly code: WalletErrorCode;
@@ -1,5 +1,5 @@
1
- import { WalletBase } from './base.js';
2
- import { type Provider, type TransactionRequest } from 'ethers';
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 '../wasm/pkg/storagehub_wasm.js';
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.1.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.9.20"
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
- "format": "prettier --write \"{src/**/*.ts,src/**/*.tsx}\"",
54
- "format:check": "prettier --check \"{src/**/*.ts,src/**/*.tsx}\"",
55
- "lint": "eslint \"{src/**/*.ts,src/**/*.tsx}\"",
56
- "lint:fix": "eslint \"{src/**/*.ts,src/**/*.tsx}\" --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