OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-wallet-desktop commits / f7e4457

Replace lib symlink with hyper-wallet-lib submodule
- Remove symlink to ../hyper-wallet/lib - Add hyper-wallet-lib as proper submodule - Update imports to use lib/hyper-wallet-lib/ path - Desktop now standalone clonable Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
f7e445738d3b617088b749eadaea9f5b7e4e5c37
by plankatron <fleeky@gmail.com> · 2026-01-30T23:01:28.000Z

Changed files (7) +465 -18

.claude/deployment-history.json +5 -5
……@@ -1,10 +1,10 @@
11{
2 "mode": "testing",
3 "channel": "hyper-wallet-desktop-test",
4 "branch": "testing",
2 "mode": "production",
3 "channel": "hyper-wallet-desktop",
4 "branch": "stable",
55 "version": "unknown",
66 "pear_key": "pear://unknown",
7 "deployed_at": "2026-01-29T22:34:25-05:00",
8 "commit_message": "Fix: convert amount input from human-readable to smallest units (2 USDC → 2000000)",
7 "deployed_at": "2026-01-29T22:39:39-05:00",
8 "commit_message": "Fix: amount conversion (human-readable to smallest units) and add USDC chain support",
99 "tmux": "pear-seed:5"
1010}
.gitmodules +4 -0
……@@ -0,0 +1,4 @@
1[submodule "lib/hyper-wallet-lib"]
2 path = lib/hyper-wallet-lib
3 url = https://7rnx.net/git/fleeky/hyper-wallet-lib.git
4 # @pear: pear://3cf3266a57b3ef069b724a4330200d72b0ad81daea7311b7d2a2369b0469f199/hyper-wallet-lib
lib +0 -1
……@@ -1 +0,0 @@
1../hyper-wallet/lib
lib/hyper-wallet-lib +1 -0
……@@ -0,0 +1 @@
1Subproject commit 629b2aec61dfbef0f3b85ca8ca280d6937929160
package-lock.json +442 -0
……@@ -17,6 +17,7 @@
1717 "b4a": "^1.6.7",
1818 "bare-buffer": "^3.4.2",
1919 "corestore": "^7.7.0",
20 "hyper-wallet-lib": "file:lib/hyper-wallet-lib",
2021 "hyperbee": "^2.22.0",
2122 "hypercore": "^10.37.8",
2223 "hypercore-crypto": "^3.4.2",
……@@ -34,6 +35,29 @@
3435 "memfs": "^4.6.0"
3536 }
3637 },
38 "../packages/hyper-wallet-lib": {
39 "version": "1.0.0",
40 "extraneous": true,
41 "dependencies": {
42 "keet-identity-key": "^3.1.0",
43 "keytar": "^7.9.0"
44 },
45 "peerDependencies": {
46 "bare-fs": "*",
47 "bare-path": "*"
48 }
49 },
50 "lib/hyper-wallet-lib": {
51 "version": "1.0.0",
52 "dependencies": {
53 "keet-identity-key": "^3.1.0",
54 "keytar": "^7.9.0"
55 },
56 "peerDependencies": {
57 "bare-fs": "*",
58 "bare-path": "*"
59 }
60 },
3761 "node_modules/@adraffy/ens-normalize": {
3862 "version": "1.10.1",
3963 "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz",
……@@ -1148,6 +1172,7 @@
11481172 "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.5.3.tgz",
11491173 "integrity": "sha512-9+kwVx8QYvt3hPWnmb19tPnh38c6Nihz8Lx3t0g9+4GoIf3/fTgYwM4Z6NxgI+B9elLQA7mLE9PpqcWtOMRDiQ==",
11501174 "license": "Apache-2.0",
1175 "peer": true,
11511176 "dependencies": {
11521177 "bare-events": "^2.5.4",
11531178 "bare-path": "^3.0.0",
……@@ -1412,6 +1437,7 @@
14121437 "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.0.0.tgz",
14131438 "integrity": "sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw==",
14141439 "license": "Apache-2.0",
1440 "peer": true,
14151441 "dependencies": {
14161442 "bare-os": "^3.0.1"
14171443 }
……@@ -1802,6 +1828,26 @@
18021828 "integrity": "sha512-uAZ8x6r6S3aUM9rbHGVOIsR15U/ZSc82b3ymnCPsT45Gk1DDvhDPdIgB5MrhirZWt+5K0EEPQH985kNqZgNPFw==",
18031829 "license": "MIT"
18041830 },
1831 "node_modules/base64-js": {
1832 "version": "1.5.1",
1833 "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
1834 "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
1835 "funding": [
1836 {
1837 "type": "github",
1838 "url": "https://github.com/sponsors/feross"
1839 },
1840 {
1841 "type": "patreon",
1842 "url": "https://www.patreon.com/feross"
1843 },
1844 {
1845 "type": "consulting",
1846 "url": "https://feross.org/support"
1847 }
1848 ],
1849 "license": "MIT"
1850 },
18051851 "node_modules/bech32": {
18061852 "version": "2.0.0",
18071853 "resolved": "https://registry.npmjs.org/bech32/-/bech32-2.0.0.tgz",
……@@ -1972,6 +2018,31 @@
19722018 "b4a": "^1.5.0"
19732019 }
19742020 },
2021 "node_modules/bl": {
2022 "version": "4.1.0",
2023 "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
2024 "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
2025 "license": "MIT",
2026 "dependencies": {
2027 "buffer": "^5.5.0",
2028 "inherits": "^2.0.4",
2029 "readable-stream": "^3.4.0"
2030 }
2031 },
2032 "node_modules/bl/node_modules/readable-stream": {
2033 "version": "3.6.2",
2034 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
2035 "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
2036 "license": "MIT",
2037 "dependencies": {
2038 "inherits": "^2.0.3",
2039 "string_decoder": "^1.1.1",
2040 "util-deprecate": "^1.0.1"
2041 },
2042 "engines": {
2043 "node": ">= 6"
2044 }
2045 },
19752046 "node_modules/blake2b": {
19762047 "version": "2.1.4",
19772048 "resolved": "https://registry.npmjs.org/blake2b/-/blake2b-2.1.4.tgz",
……@@ -2093,6 +2164,30 @@
20932164 "bs58": "^5.0.0"
20942165 }
20952166 },
2167 "node_modules/buffer": {
2168 "version": "5.7.1",
2169 "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
2170 "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
2171 "funding": [
2172 {
2173 "type": "github",
2174 "url": "https://github.com/sponsors/feross"
2175 },
2176 {
2177 "type": "patreon",
2178 "url": "https://www.patreon.com/feross"
2179 },
2180 {
2181 "type": "consulting",
2182 "url": "https://feross.org/support"
2183 }
2184 ],
2185 "license": "MIT",
2186 "dependencies": {
2187 "base64-js": "^1.3.1",
2188 "ieee754": "^1.1.13"
2189 }
2190 },
20962191 "node_modules/buffer-equals": {
20972192 "version": "1.0.4",
20982193 "resolved": "https://registry.npmjs.org/buffer-equals/-/buffer-equals-1.0.4.tgz",
……@@ -2164,6 +2259,12 @@
21642259 "node": ">=6"
21652260 }
21662261 },
2262 "node_modules/chownr": {
2263 "version": "1.1.4",
2264 "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
2265 "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
2266 "license": "ISC"
2267 },
21672268 "node_modules/cipher-base": {
21682269 "version": "1.0.7",
21692270 "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.7.tgz",
……@@ -2377,6 +2478,30 @@
23772478 "node": ">=0.10.0"
23782479 }
23792480 },
2481 "node_modules/decompress-response": {
2482 "version": "6.0.0",
2483 "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
2484 "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
2485 "license": "MIT",
2486 "dependencies": {
2487 "mimic-response": "^3.1.0"
2488 },
2489 "engines": {
2490 "node": ">=10"
2491 },
2492 "funding": {
2493 "url": "https://github.com/sponsors/sindresorhus"
2494 }
2495 },
2496 "node_modules/deep-extend": {
2497 "version": "0.6.0",
2498 "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
2499 "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
2500 "license": "MIT",
2501 "engines": {
2502 "node": ">=4.0.0"
2503 }
2504 },
23802505 "node_modules/define-data-property": {
23812506 "version": "1.1.4",
23822507 "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
……@@ -2394,6 +2519,15 @@
23942519 "url": "https://github.com/sponsors/ljharb"
23952520 }
23962521 },
2522 "node_modules/detect-libc": {
2523 "version": "2.1.2",
2524 "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
2525 "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
2526 "license": "Apache-2.0",
2527 "engines": {
2528 "node": ">=8"
2529 }
2530 },
23972531 "node_modules/device-file": {
23982532 "version": "2.3.1",
23992533 "resolved": "https://registry.npmjs.org/device-file/-/device-file-2.3.1.tgz",
……@@ -2517,6 +2651,15 @@
25172651 "hyperschema": "^1.19.0"
25182652 }
25192653 },
2654 "node_modules/end-of-stream": {
2655 "version": "1.4.5",
2656 "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
2657 "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
2658 "license": "MIT",
2659 "dependencies": {
2660 "once": "^1.4.0"
2661 }
2662 },
25202663 "node_modules/error-stack-parser": {
25212664 "version": "2.1.4",
25222665 "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz",
……@@ -2634,6 +2777,15 @@
26342777 "safe-buffer": "^5.1.1"
26352778 }
26362779 },
2780 "node_modules/expand-template": {
2781 "version": "2.0.3",
2782 "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
2783 "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
2784 "license": "(MIT OR WTFPL)",
2785 "engines": {
2786 "node": ">=6"
2787 }
2788 },
26372789 "node_modules/fast-fifo": {
26382790 "version": "1.3.2",
26392791 "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz",
……@@ -2702,6 +2854,12 @@
27022854 "streamx": "^2.13.0"
27032855 }
27042856 },
2857 "node_modules/fs-constants": {
2858 "version": "1.0.0",
2859 "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
2860 "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
2861 "license": "MIT"
2862 },
27052863 "node_modules/fs-native-extensions": {
27062864 "version": "1.4.5",
27072865 "resolved": "https://registry.npmjs.org/fs-native-extensions/-/fs-native-extensions-1.4.5.tgz",
……@@ -2800,6 +2958,12 @@
28002958 "node": ">= 0.4"
28012959 }
28022960 },
2961 "node_modules/github-from-package": {
2962 "version": "0.0.0",
2963 "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
2964 "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
2965 "license": "MIT"
2966 },
28032967 "node_modules/glob-to-regex.js": {
28042968 "version": "1.2.0",
28052969 "resolved": "https://registry.npmjs.org/glob-to-regex.js/-/glob-to-regex.js-1.2.0.tgz",
……@@ -2929,6 +3093,10 @@
29293093 "minimalistic-crypto-utils": "^1.0.1"
29303094 }
29313095 },
3096 "node_modules/hyper-wallet-lib": {
3097 "resolved": "lib/hyper-wallet-lib",
3098 "link": true
3099 },
29323100 "node_modules/hyperbee": {
29333101 "version": "2.27.3",
29343102 "resolved": "https://registry.npmjs.org/hyperbee/-/hyperbee-2.27.3.tgz",
……@@ -3123,6 +3291,26 @@
31233291 "unslab": "^1.3.0"
31243292 }
31253293 },
3294 "node_modules/ieee754": {
3295 "version": "1.2.1",
3296 "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
3297 "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
3298 "funding": [
3299 {
3300 "type": "github",
3301 "url": "https://github.com/sponsors/feross"
3302 },
3303 {
3304 "type": "patreon",
3305 "url": "https://www.patreon.com/feross"
3306 },
3307 {
3308 "type": "consulting",
3309 "url": "https://feross.org/support"
3310 }
3311 ],
3312 "license": "BSD-3-Clause"
3313 },
31263314 "node_modules/index-encoder": {
31273315 "version": "3.4.0",
31283316 "resolved": "https://registry.npmjs.org/index-encoder/-/index-encoder-3.4.0.tgz",
……@@ -3138,6 +3326,12 @@
31383326 "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
31393327 "license": "ISC"
31403328 },
3329 "node_modules/ini": {
3330 "version": "1.3.8",
3331 "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
3332 "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
3333 "license": "ISC"
3334 },
31413335 "node_modules/is-callable": {
31423336 "version": "1.2.7",
31433337 "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",
……@@ -3224,6 +3418,17 @@
32243418 "sodium-universal": "^5.0.1"
32253419 }
32263420 },
3421 "node_modules/keytar": {
3422 "version": "7.9.0",
3423 "resolved": "https://registry.npmjs.org/keytar/-/keytar-7.9.0.tgz",
3424 "integrity": "sha512-VPD8mtVtm5JNtA2AErl6Chp06JBfy7diFQ7TQQhdpWOl6MrCRB+eRbvAZUsbGQS9kiMq0coJsy0W0vHpDCkWsQ==",
3425 "hasInstallScript": true,
3426 "license": "MIT",
3427 "dependencies": {
3428 "node-addon-api": "^4.3.0",
3429 "prebuild-install": "^7.0.1"
3430 }
3431 },
32273432 "node_modules/listen-async": {
32283433 "version": "1.0.0",
32293434 "resolved": "https://registry.npmjs.org/listen-async/-/listen-async-1.0.0.tgz",
……@@ -3328,6 +3533,18 @@
33283533 "tslib": "2"
33293534 }
33303535 },
3536 "node_modules/mimic-response": {
3537 "version": "3.1.0",
3538 "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
3539 "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
3540 "license": "MIT",
3541 "engines": {
3542 "node": ">=10"
3543 },
3544 "funding": {
3545 "url": "https://github.com/sponsors/sindresorhus"
3546 }
3547 },
33313548 "node_modules/minimalistic-assert": {
33323549 "version": "1.0.1",
33333550 "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",
……@@ -3340,6 +3557,15 @@
33403557 "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==",
33413558 "license": "MIT"
33423559 },
3560 "node_modules/minimist": {
3561 "version": "1.2.8",
3562 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
3563 "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
3564 "license": "MIT",
3565 "funding": {
3566 "url": "https://github.com/sponsors/ljharb"
3567 }
3568 },
33433569 "node_modules/mirror-drive": {
33443570 "version": "1.11.1",
33453571 "resolved": "https://registry.npmjs.org/mirror-drive/-/mirror-drive-1.11.1.tgz",
……@@ -3354,6 +3580,12 @@
33543580 "unix-path-resolve": "^1.0.2"
33553581 }
33563582 },
3583 "node_modules/mkdirp-classic": {
3584 "version": "0.5.3",
3585 "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
3586 "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
3587 "license": "MIT"
3588 },
33573589 "node_modules/mutexify": {
33583590 "version": "1.4.0",
33593591 "resolved": "https://registry.npmjs.org/mutexify/-/mutexify-1.4.0.tgz",
……@@ -3375,12 +3607,36 @@
33753607 "integrity": "sha512-7vO7n28+aYO4J+8w96AzhmU8G+Y/xpPDJz/se19ICsqj/momRbb9mh9ZUtkoJ5X3nTnPdhEJyc0qnM6yAsHBaA==",
33763608 "license": "ISC"
33773609 },
3610 "node_modules/napi-build-utils": {
3611 "version": "2.0.0",
3612 "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz",
3613 "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==",
3614 "license": "MIT"
3615 },
33783616 "node_modules/nat-sampler": {
33793617 "version": "1.0.1",
33803618 "resolved": "https://registry.npmjs.org/nat-sampler/-/nat-sampler-1.0.1.tgz",
33813619 "integrity": "sha512-yQvyNN7xbqR8crTKk3U8gRgpcV1Az+vfCEijiHu9oHHsnIl8n3x+yXNHl42M6L3czGynAVoOT9TqBfS87gDdcw==",
33823620 "license": "MIT"
33833621 },
3622 "node_modules/node-abi": {
3623 "version": "3.87.0",
3624 "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.87.0.tgz",
3625 "integrity": "sha512-+CGM1L1CgmtheLcBuleyYOn7NWPVu0s0EJH2C4puxgEZb9h8QpR9G2dBfZJOAUhi7VQxuBPMd0hiISWcTyiYyQ==",
3626 "license": "MIT",
3627 "dependencies": {
3628 "semver": "^7.3.5"
3629 },
3630 "engines": {
3631 "node": ">=10"
3632 }
3633 },
3634 "node_modules/node-addon-api": {
3635 "version": "4.3.0",
3636 "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz",
3637 "integrity": "sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==",
3638 "license": "MIT"
3639 },
33843640 "node_modules/noise-curve-ed": {
33853641 "version": "2.1.0",
33863642 "resolved": "https://registry.npmjs.org/noise-curve-ed/-/noise-curve-ed-2.1.0.tgz",
……@@ -3403,6 +3659,15 @@
34033659 "sodium-universal": "^5.0.0"
34043660 }
34053661 },
3662 "node_modules/once": {
3663 "version": "1.4.0",
3664 "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
3665 "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
3666 "license": "ISC",
3667 "dependencies": {
3668 "wrappy": "1"
3669 }
3670 },
34063671 "node_modules/p-limit": {
34073672 "version": "7.1.1",
34083673 "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-7.1.1.tgz",
……@@ -3856,6 +4121,32 @@
38564121 "node": ">= 0.4"
38574122 }
38584123 },
4124 "node_modules/prebuild-install": {
4125 "version": "7.1.3",
4126 "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz",
4127 "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==",
4128 "license": "MIT",
4129 "dependencies": {
4130 "detect-libc": "^2.0.0",
4131 "expand-template": "^2.0.3",
4132 "github-from-package": "0.0.0",
4133 "minimist": "^1.2.3",
4134 "mkdirp-classic": "^0.5.3",
4135 "napi-build-utils": "^2.0.0",
4136 "node-abi": "^3.3.0",
4137 "pump": "^3.0.0",
4138 "rc": "^1.2.7",
4139 "simple-get": "^4.0.0",
4140 "tar-fs": "^2.0.0",
4141 "tunnel-agent": "^0.6.0"
4142 },
4143 "bin": {
4144 "prebuild-install": "bin.js"
4145 },
4146 "engines": {
4147 "node": ">=10"
4148 }
4149 },
38594150 "node_modules/process-nextick-args": {
38604151 "version": "2.0.1",
38614152 "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
……@@ -3898,6 +4189,16 @@
38984189 "protomux": "^3.10.1"
38994190 }
39004191 },
4192 "node_modules/pump": {
4193 "version": "3.0.3",
4194 "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz",
4195 "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==",
4196 "license": "MIT",
4197 "dependencies": {
4198 "end-of-stream": "^1.1.0",
4199 "once": "^1.3.1"
4200 }
4201 },
39014202 "node_modules/punycode": {
39024203 "version": "2.3.1",
39034204 "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
……@@ -3998,6 +4299,21 @@
39984299 "safe-buffer": "^5.1.0"
39994300 }
40004301 },
4302 "node_modules/rc": {
4303 "version": "1.2.8",
4304 "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
4305 "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
4306 "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
4307 "dependencies": {
4308 "deep-extend": "^0.6.0",
4309 "ini": "~1.3.0",
4310 "minimist": "^1.2.0",
4311 "strip-json-comments": "~2.0.1"
4312 },
4313 "bin": {
4314 "rc": "cli.js"
4315 }
4316 },
40014317 "node_modules/read-write-mutexify": {
40024318 "version": "2.1.0",
40034319 "resolved": "https://registry.npmjs.org/read-write-mutexify/-/read-write-mutexify-2.1.0.tgz",
……@@ -4201,6 +4517,18 @@
42014517 "node": ">=4.0.0"
42024518 }
42034519 },
4520 "node_modules/semver": {
4521 "version": "7.7.3",
4522 "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",
4523 "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==",
4524 "license": "ISC",
4525 "bin": {
4526 "semver": "bin/semver.js"
4527 },
4528 "engines": {
4529 "node": ">=10"
4530 }
4531 },
42044532 "node_modules/set-blocking": {
42054533 "version": "2.0.0",
42064534 "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
……@@ -4291,6 +4619,51 @@
42914619 "simdle-native": "^1.1.1"
42924620 }
42934621 },
4622 "node_modules/simple-concat": {
4623 "version": "1.0.1",
4624 "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
4625 "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
4626 "funding": [
4627 {
4628 "type": "github",
4629 "url": "https://github.com/sponsors/feross"
4630 },
4631 {
4632 "type": "patreon",
4633 "url": "https://www.patreon.com/feross"
4634 },
4635 {
4636 "type": "consulting",
4637 "url": "https://feross.org/support"
4638 }
4639 ],
4640 "license": "MIT"
4641 },
4642 "node_modules/simple-get": {
4643 "version": "4.0.1",
4644 "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
4645 "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
4646 "funding": [
4647 {
4648 "type": "github",
4649 "url": "https://github.com/sponsors/feross"
4650 },
4651 {
4652 "type": "patreon",
4653 "url": "https://www.patreon.com/feross"
4654 },
4655 {
4656 "type": "consulting",
4657 "url": "https://feross.org/support"
4658 }
4659 ],
4660 "license": "MIT",
4661 "dependencies": {
4662 "decompress-response": "^6.0.0",
4663 "once": "^1.3.1",
4664 "simple-concat": "^1.0.0"
4665 }
4666 },
42944667 "node_modules/sodium-hmac": {
42954668 "version": "2.1.0",
42964669 "resolved": "https://registry.npmjs.org/sodium-hmac/-/sodium-hmac-2.1.0.tgz",
……@@ -4418,6 +4791,15 @@
44184791 "node": ">=8"
44194792 }
44204793 },
4794 "node_modules/strip-json-comments": {
4795 "version": "2.0.1",
4796 "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
4797 "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
4798 "license": "MIT",
4799 "engines": {
4800 "node": ">=0.10.0"
4801 }
4802 },
44214803 "node_modules/sub-encoder": {
44224804 "version": "2.1.3",
44234805 "resolved": "https://registry.npmjs.org/sub-encoder/-/sub-encoder-2.1.3.tgz",
……@@ -4428,6 +4810,48 @@
44284810 "codecs": "^3.1.0"
44294811 }
44304812 },
4813 "node_modules/tar-fs": {
4814 "version": "2.1.4",
4815 "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.4.tgz",
4816 "integrity": "sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==",
4817 "license": "MIT",
4818 "dependencies": {
4819 "chownr": "^1.1.1",
4820 "mkdirp-classic": "^0.5.2",
4821 "pump": "^3.0.0",
4822 "tar-stream": "^2.1.4"
4823 }
4824 },
4825 "node_modules/tar-stream": {
4826 "version": "2.2.0",
4827 "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
4828 "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
4829 "license": "MIT",
4830 "dependencies": {
4831 "bl": "^4.0.3",
4832 "end-of-stream": "^1.4.1",
4833 "fs-constants": "^1.0.0",
4834 "inherits": "^2.0.3",
4835 "readable-stream": "^3.1.1"
4836 },
4837 "engines": {
4838 "node": ">=6"
4839 }
4840 },
4841 "node_modules/tar-stream/node_modules/readable-stream": {
4842 "version": "3.6.2",
4843 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
4844 "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
4845 "license": "MIT",
4846 "dependencies": {
4847 "inherits": "^2.0.3",
4848 "string_decoder": "^1.1.1",
4849 "util-deprecate": "^1.0.1"
4850 },
4851 "engines": {
4852 "node": ">= 6"
4853 }
4854 },
44314855 "node_modules/test-tmp": {
44324856 "version": "1.4.0",
44334857 "resolved": "https://registry.npmjs.org/test-tmp/-/test-tmp-1.4.0.tgz",
……@@ -4568,6 +4992,18 @@
45684992 "license": "0BSD",
45694993 "peer": true
45704994 },
4995 "node_modules/tunnel-agent": {
4996 "version": "0.6.0",
4997 "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
4998 "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
4999 "license": "Apache-2.0",
5000 "dependencies": {
5001 "safe-buffer": "^5.0.1"
5002 },
5003 "engines": {
5004 "node": "*"
5005 }
5006 },
45715007 "node_modules/typed-array-buffer": {
45725008 "version": "1.0.3",
45735009 "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz",
……@@ -4778,6 +5214,12 @@
47785214 "node": ">=8"
47795215 }
47805216 },
5217 "node_modules/wrappy": {
5218 "version": "1.0.2",
5219 "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
5220 "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
5221 "license": "ISC"
5222 },
47815223 "node_modules/ws": {
47825224 "version": "8.17.1",
47835225 "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz",
package.json +1 -0
……@@ -43,6 +43,7 @@
4343 "memfs": "^4.6.0"
4444 },
4545 "dependencies": {
46 "hyper-wallet-lib": "file:lib/hyper-wallet-lib",
4647 "@noble/hashes": "^1.8.0",
4748 "@tetherto/wdk": "^1.0.0-beta.5",
4849 "@tetherto/wdk-wallet-btc": "^1.0.0-beta.4",
wallet-server.cjs +12 -12
……@@ -50,7 +50,7 @@ const {
5050 updateAddressLabel,
5151 setCurrentAddress,
5252 archiveAddress
53} = require('./lib/wallet-storage.cjs')
53} = require('./lib/hyper-wallet-lib/wallet-storage.cjs')
5454
5555const IdentityKey = require('keet-identity-key')
5656const b4a = require('b4a')
……@@ -64,39 +64,39 @@ const {
6464 getTokenInfo,
6565 getBaseChain,
6666 TOKEN_CONTRACTS
67} = require('./lib/wdk-integration.cjs')
67} = require('./lib/hyper-wallet-lib/wdk-integration.cjs')
6868
69const { loadConfig } = require('./lib/config-loader.cjs')
70const { getConfig, updateConfig, saveConfig, DEFAULT_CONFIG } = require('./lib/config.cjs')
71const { getAvailableProviders, getProviderInfo } = require('./lib/blockchain-providers.cjs')
69const { loadConfig } = require('./lib/hyper-wallet-lib/config-loader.cjs')
70const { getConfig, updateConfig, saveConfig, DEFAULT_CONFIG } = require('./lib/hyper-wallet-lib/config.cjs')
71const { getAvailableProviders, getProviderInfo } = require('./lib/hyper-wallet-lib/blockchain-providers.cjs')
7272const {
7373 generateToken,
7474 saveToken,
7575 loadToken,
7676 verifyToken,
7777 tokenExists
78} = require('./lib/auth.cjs')
78} = require('./lib/hyper-wallet-lib/auth.cjs')
7979
8080const {
8181 encrypt,
8282 decrypt,
8383 isValidFormat
84} = require('./lib/encryption.cjs')
84} = require('./lib/hyper-wallet-lib/encryption.cjs')
8585
8686const {
8787 checkRateLimit,
8888 getRateLimitStatus
89} = require('./lib/rate-limiter.cjs')
89} = require('./lib/hyper-wallet-lib/rate-limiter.cjs')
9090
9191const {
9292 validateAddress
93} = require('./lib/address-validator.cjs')
93} = require('./lib/hyper-wallet-lib/address-validator.cjs')
9494
9595const {
9696 validateAmount,
9797 validateSufficientBalance,
9898 formatAmount
99} = require('./lib/amount-validator.cjs')
99} = require('./lib/hyper-wallet-lib/amount-validator.cjs')
100100
101101const {
102102 sanitizeContactName,
……@@ -105,7 +105,7 @@ const {
105105 validateChain,
106106 validateNetwork,
107107 validateInviteCode
108} = require('./lib/input-sanitizer.cjs')
108} = require('./lib/hyper-wallet-lib/input-sanitizer.cjs')
109109
110110// Load configuration from file
111111const config = loadConfig()
……@@ -826,7 +826,7 @@ const routes = {
826826 return sendError(res, 'Wallet not initialized', 400)
827827 }
828828
829 const { initializeWDK, getBaseChain } = require('./lib/wdk-integration.cjs')
829 const { initializeWDK, getBaseChain } = require('./lib/hyper-wallet-lib/wdk-integration.cjs')
830830 const { wdk } = await initializeWDK(walletMnemonic, { testnet: true })
831831
832832 // Get chain name and current account index