migrate from ethers to viem

- Replace HDNodeWallet.fromPhrase with mnemonicToAccount from viem/accounts
- Replace JsonRpcProvider.getBalance with viem createPublicClient + getBalance
- Replace formatEther with viem's formatEther (same API)
- Remove ethers dependency from package.json
- Update README
This commit is contained in:
2026-05-20 14:31:10 +08:00
parent 79f8a26eb3
commit 49f064f8b1
3 changed files with 9 additions and 10 deletions
+1 -2
View File
@@ -67,8 +67,7 @@ apps/desktop/
## Dependencies
- [Ethers](https://docs.ethers.org) — EVM wallet operations
- [Viem](https://viem.sh) — EVM chain RPC calls
- [Viem](https://viem.sh) — EVM chain RPC calls + wallet operations
- [monero-ts](https://github.com/woodser/monero-ts) — Monero RPC client
- [Drizzle ORM](https://orm.drizzle.team) — SQLite schema + queries
- [Svelte 5](https://svelte.dev) — UI framework