add multi-wallet EVM support with evm_wallets DB table

This commit is contained in:
2026-05-20 20:26:40 +08:00
parent c55a33e9ab
commit d4b989c191
5 changed files with 319 additions and 77 deletions
+24
View File
@@ -89,6 +89,14 @@ export type TokenBalanceResult = {
logo?: string
}
export type EvmWalletInfo = {
id: string
name: string
hasPassword: boolean
vaultKey: string
createdAt: string
}
type RPC = {
bun: {
requests: {
@@ -212,6 +220,22 @@ type RPC = {
params: {}
response: string[]
}
evmCreateWallet: {
params: { name: string; phrase: string; passwordHash?: string }
response: { id: string; name: string; createdAt: string }
}
evmListWallets: {
params: {}
response: EvmWalletInfo[]
}
evmGetSeed: {
params: { vaultKey: string }
response: string
}
evmDeleteWallet: {
params: { id: string }
response: void
}
}
messages: {}
}