mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-04 22:43:20 -05:00
feat(tauri): send tauri event on btc balance change (#113)
Closes #43. This PR creates a new event, which is emitted by the watcher daemon when the BTC balance changes. Then, on the guest side, we simply update the balance when this event is received.
This commit is contained in:
parent
ec86fa13cd
commit
639f540876
7 changed files with 532 additions and 115 deletions
|
|
@ -12,7 +12,7 @@ name = "unstoppableswap_gui_rs_lib"
|
|||
crate-type = [ "lib", "cdylib", "staticlib" ]
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "2.0.0-rc.1", features = [ "config-json5" ] }
|
||||
tauri-build = { version = "2.0", features = [ "config-json5" ] }
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
|
|
@ -20,13 +20,13 @@ once_cell = "1"
|
|||
serde = { version = "1", features = [ "derive" ] }
|
||||
serde_json = "1"
|
||||
swap = { path = "../swap", features = [ "tauri" ] }
|
||||
tauri = { version = "2.0.0", features = [ "config-json5" ] }
|
||||
tauri-plugin-clipboard-manager = "2.1.0-beta.7"
|
||||
tauri-plugin-devtools = "2.0.0"
|
||||
tauri-plugin-process = "2.0.0"
|
||||
tauri-plugin-shell = "2.0.0"
|
||||
tauri-plugin-store = "2.0.0"
|
||||
tracing = "0.1.40"
|
||||
tauri = { version = "2.0", features = [ "config-json5" ] }
|
||||
tauri-plugin-clipboard-manager = "2.0"
|
||||
tauri-plugin-devtools = "2.0"
|
||||
tauri-plugin-process = "2.0"
|
||||
tauri-plugin-shell = "2.0"
|
||||
tauri-plugin-store = "2.0"
|
||||
tracing = "0.1"
|
||||
|
||||
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
|
||||
tauri-plugin-cli = "2.0.0"
|
||||
tauri-plugin-cli = "2.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue