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
View File
@@ -19,7 +19,6 @@
"@koins/utils": "workspace:*",
"drizzle-orm": "^1.0.0-beta.22",
"electrobun": "^1.18.1",
"ethers": "^6.16.0",
"mode-watcher": "^1.1.0",
"monero-ts": "^0.11.8",
"qrcode": "^1.5.4",