@qntx/wallet-engine 0.4.0 → 0.6.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.
@@ -0,0 +1,25 @@
1
+ //#region src/networks/registry.d.ts
2
+ /**
3
+ * Built-in EVM network registry: the 8 mainnets from chains.mdx plus their main testnets. Each
4
+ * chain id was checked against the chain's official documentation (source URL per entry).
5
+ * Signing-time chainId always comes from this table, never from an RPC endpoint.
6
+ */
7
+ type NetworkInfo = {
8
+ readonly id: string;
9
+ readonly chainId: number;
10
+ readonly name: string;
11
+ readonly symbol: string;
12
+ readonly multicall3?: string;
13
+ /** CAIP-2 family — `solana:<ref>` networks are validated against genesis-hash, not chainId. */
14
+ readonly family: "evm" | "solana" | "bitcoin";
15
+ readonly genesisHash?: string;
16
+ readonly decimals: number;
17
+ readonly testnet: boolean;
18
+ };
19
+ declare const NETWORKS: ReadonlyArray<NetworkInfo>;
20
+ declare const networkById: (id: string) => NetworkInfo | undefined;
21
+ declare const BITCOIN_NETWORKS: ReadonlyArray<NetworkInfo>;
22
+ declare const SOLANA_NETWORKS: ReadonlyArray<NetworkInfo>;
23
+ //#endregion
24
+ export { networkById as a, SOLANA_NETWORKS as i, NETWORKS as n, NetworkInfo as r, BITCOIN_NETWORKS as t };
25
+ //# sourceMappingURL=registry-9oeWs_yZ.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qntx/wallet-engine",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "qntx/wallet engine primitives: controllers, events and encrypted engine storage",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "author": "QuantX <x@qntx.org>",
@@ -23,6 +23,11 @@
23
23
  "default": "./dist/index.mjs"
24
24
  },
25
25
  "./package.json": "./package.json",
26
+ "./gateway/contract": {
27
+ "types": "./dist/gateway-contract.d.mts",
28
+ "import": "./dist/gateway-contract.mjs",
29
+ "default": "./dist/gateway-contract.mjs"
30
+ },
26
31
  "./idb": {
27
32
  "types": "./dist/idb.d.mts",
28
33
  "import": "./dist/idb.mjs",
@@ -33,29 +38,42 @@
33
38
  "access": "public"
34
39
  },
35
40
  "scripts": {
36
- "build": "vp pack",
41
+ "build": "vp run @qntx/wallet-worker#build && vp pack",
37
42
  "test": "vp test",
38
43
  "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.src.json && tsc --noEmit -p src/idb/tsconfig.json",
39
- "check:pkg": "bun run build && publint && attw --pack . --profile esm-only"
44
+ "check:pkg": "vp pack && bun ../../scripts/check-dist-deps.ts . && publint && attw --pack . --profile esm-only"
40
45
  },
41
46
  "dependencies": {
42
47
  "@noble/ciphers": "^2.4.0",
48
+ "@noble/hashes": "^2.4.0",
43
49
  "@scure/base": "^2.4.0",
50
+ "@scure/btc-signer": "2.4.1",
51
+ "@solana-program/compute-budget": "0.20.0",
52
+ "@solana-program/system": "0.16.0",
53
+ "@solana-program/token": "0.18.0",
54
+ "@solana/kit": "8.5.0",
55
+ "viem": "2.57.8",
56
+ "zod": "^4.6.7",
44
57
  "zustand": "^5.0.15"
45
58
  },
46
59
  "devDependencies": {
60
+ "@arethetypeswrong/cli": "0.18.5",
47
61
  "@noble/hashes": "^2.0.1",
48
- "@qntx/nostr": "0.15.1",
49
- "@qntx/spark": "0.5.0",
50
- "@qntx/spark-wasm": "0.5.0",
51
- "@qntx/wallet": "0.4.0",
52
- "@qntx/wallet-worker": "0.4.0",
53
- "fake-indexeddb": "6.2.6"
62
+ "@qntx/nostr": "0.15.3",
63
+ "@qntx/spark": "0.5.2",
64
+ "@qntx/spark-wasm": "0.5.2",
65
+ "@qntx/wallet": "0.6.0",
66
+ "@qntx/wallet-chains": "0.6.0",
67
+ "@qntx/wallet-worker": "0.6.0",
68
+ "@solana-program/token-2022": "0.20.0",
69
+ "fake-indexeddb": "6.2.6",
70
+ "publint": "0.3.25"
54
71
  },
55
72
  "peerDependencies": {
56
73
  "@qntx/nostr": "^0.15.0",
57
74
  "@qntx/spark": "^0.5.0",
58
- "@qntx/wallet": "0.4.0"
75
+ "@qntx/wallet": "0.6.0",
76
+ "@qntx/wallet-chains": "0.6.0"
59
77
  },
60
78
  "devEngines": {
61
79
  "packageManager": {