add multi-wallet EVM support with evm_wallets DB table
This commit is contained in:
@@ -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: {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user