Add periodic auto-sync with backend push events, remove refresh button

This commit is contained in:
2026-05-22 12:53:18 +08:00
parent cb55a6fc6b
commit c87e166468
5 changed files with 93 additions and 14 deletions
+12 -2
View File
@@ -98,7 +98,7 @@ export type EvmWalletInfo = {
}
type RPC = {
bun: {
bun: {
requests: {
resetApp: {
params: {}
@@ -149,6 +149,10 @@ type RPC = {
params: {}
response: void
}
setAutoSync: {
params: { address: string; chainid: string } | null
response: void
}
fetchTokenBalances: {
params: {
address: string
@@ -260,7 +264,13 @@ type RPC = {
}
webview: {
requests: {}
messages: {}
messages: {
transfersUpdate: {
count: number
chainid: string
address: string
}
}
}
}