2869 Commits

Author SHA1 Message Date
binarybaron
67530839e6
test 2024-08-28 15:23:58 +02:00
binarybaron
50539fed08
Merge pull request #37 from UnstoppableSwap/tauri-feature-flag
Introducing a feature flag in the swap crate that conditionally enables the tauri depencendy. This allows compiling the swap crate without the heavy tauri dependency. This also enables us to build arm binaries in the CI again.

This closes #32 and #34
2024-08-28 14:32:18 +02:00
binarybaron
b10694f331
wip: released event attach error 2024-08-28 14:19:10 +02:00
binarybaron
9f1d58d944
Merge pull request #40 from UnstoppableSwap/change-electrum-server-testnet-default-cli
feat(cli): Change default electrum testnet server
2024-08-28 13:56:40 +02:00
binarybaron
8208b2f8cc
feat(cli): Change default electrum testnet server 2024-08-28 13:55:15 +02:00
Einliterflasche
6121eb1df7
feat(ci): build arm binaries in ci pipeline 2024-08-28 12:54:17 +02:00
Einliterflasche
f4ada78929
refactor(cli): introduce tauri feature flag to allow the project to be compiled without tauri 2024-08-28 12:54:16 +02:00
binarybaron
aac366ffc9
Merge pull request #36 from UnstoppableSwap/fix-rpc-tests
refactor(cli): Refactor RPC server and fix tests
2024-08-28 12:25:53 +02:00
binarybaron
66d1e7d72f
chore(monero, monero_harness): bump tracing-subscriber to 0.3 2024-08-28 12:18:58 +02:00
binarybaron
57c153de99
refactor(cli): Refactor RPC server and fix tests
- Use the Request trait introduced in https://github.com/UnstoppableSwap/xmr-btc-swap/pull/10 for the RPC server
- Delegate deserialization of RPC server method parameters to serde by using structs like BuyXmrArgs
- Remove `get_raw_states` RPC server method because it's not used
- Fix RPC server tests including removing test for the "log reference id" feature which was removed as part of https://github.com/UnstoppableSwap/xmr-btc-swap/pull/10
- Rename GetCurrentSwap struct to GetCurrentSwapArgs
2024-08-28 12:18:58 +02:00
binarybaron
ca25e0454f fix(tauri, gui): Allow Tauri command to be called with empty arguments
- Allow Tauri command to be called with empty arguments
- Add struct for GetSwapInfosAllArgs
2024-08-27 22:34:21 +02:00
binarybaron
de1f77bf80 fix(tauri_bindings): Emit swap id with WaitingForBtcDeposit event 2024-08-27 22:34:21 +02:00
binarybaron
88cfd6bc3e
chore(ci): Temporarily disable armv7 cross compilation (#35) 2024-08-27 20:27:54 +02:00
binarybaron
2131500c7d chore: downgrade rust toolchain to 1.79 2024-08-27 18:07:49 +02:00
binarybaron
b2475763a7 chore(swap): Remove redundant clone of BidQuote 2024-08-27 17:55:30 +02:00
Einliterflasche
c562e352f2 refactor(cli): Builder pattern for constructing Context 2024-08-27 17:55:03 +02:00
binarybaron
015c956273 fix(swap): Clippy errors (too many arguments, redundant clone) 2024-08-26 18:03:04 +02:00
binarybaron
dc3c937333 fix(swap): Unit test compilation errors 2024-08-26 18:03:04 +02:00
Einliterflasche
a57e3aff75
clean: use dprint 2024-08-26 16:19:11 +02:00
binarybaron
e3547fbec2
Merge pull request #10 from UnstoppableSwap/tauri-events
feat: Send progress events from Host to Guest
2024-08-26 16:14:29 +02:00
binarybaron
26f0f54864
Merge branch 'master' into tauri-events 2024-08-26 16:10:28 +02:00
binarybaron
349035d321
refactor(tauri, swap): move rpc api to cli/api 2024-08-26 15:41:00 +02:00
binarybaron
5425a83871
bump: Rust version to 1.80 2024-08-26 15:39:59 +02:00
binarybaron
cf641bc8bb
feat(gui): Migrate to Tauri events
- Replace Electron IPC with Tauri invoke() for API calls
- Implement TauriSwapProgressEvent for state management
- Remove IpcInvokeButton, replace with PromiseInvokeButton
- Update models: new tauriModel.ts, refactor rpcModel.ts
- Simplify SwapSlice state, remove processRunning flag
- Refactor SwapStatePage to use TauriSwapProgressEvent
- Update HistoryRow and HistoryRowActions for new data structures
- Remove unused Electron-specific components (e.g., RpcStatusAlert)
- Update dependencies: React 18, Material-UI v4 to v5
- Implement typeshare for Rust/TypeScript type synchronization
- Add BobStateName enum for more precise swap state tracking
- Refactor utility functions for Tauri compatibility
- Remove JSONStream and other Electron-specific dependencies
2024-08-26 15:32:28 +02:00
binarybaron
d54f5c6c77
refactor(tauri): Use macro and new Request trait for command generation 2024-08-26 15:26:21 +02:00
binarybaron
9b0023174b
feat(gui): Add typeshare definitions 2024-08-26 15:23:46 +02:00
binarybaron
4939d63524
refactor(swap, tauri_bindings): Overhaul API architecture and introduce Tauri events
- Implement trait-based request handling in api/request.rs
- Add Tauri bindings and event system in api/tauri_bindings.rs
- Refactor CLI command parsing and execution in cli/command.rs
- Update RPC methods to use new request handling approach
- Emit Tauri events in swap/src/protocol/bob/swap.rs
- Add typescript type bindings use typeshare crate
2024-08-26 15:18:11 +02:00
binarybaron
fea1e66c64
chore(gui): Upgrade @tauri-apps/api and add eslint 2024-08-26 15:04:22 +02:00
binarybaron
6088bd18b4
chore: Add prettier plugin to dprint config 2024-08-26 15:03:03 +02:00
binarybaron
956a26d181
refactor(gui): Reorganize imports 2024-08-26 15:02:26 +02:00
Einliterflasche
5962effa50
docs: update READMEs (#25) 2024-08-23 13:26:10 +02:00
binarybaron
ef7c1abcaf
CI: Install dependencies required by Tauri (ci.yml) (#23) 2024-08-19 07:27:40 +02:00
Einliterflasche
c897c4c6e9 Fix swap/src/bin/swap.rs import issue 2024-08-12 11:29:05 +02:00
Einliterflasche
3135e58187 Merge remote-tracking branch 'repo-b/kill-monero-wallet-rpc-on-quit' 2024-08-10 21:33:29 +02:00
Einliterflasche
bf62cec81d Merge remote-tracking branch 'repo-b/main' 2024-08-10 21:30:48 +02:00
binarybaron
718132b8b4
feat: Kill monero-wallet-rpc on GUI exit 2024-08-10 12:56:19 +02:00
binarybaron
acdb0231b5
chore: Remove unused dependencies 2024-08-10 12:53:16 +02:00
binarybaron
191a25f941
fix: Make spinner on PromiseInvokeButton same size as icon 2024-08-10 12:52:53 +02:00
binarybaron
116d9c0f4f
fix: Prevent overscroll bounce 2024-08-09 20:27:47 +02:00
binarybaron
06f2a16715
feat: Add custom Icon 2024-08-09 20:14:06 +02:00
binarybaron
3d16ff6d5c
wip: WithdrawDialog migrated to Tauri IPC 2024-08-09 19:46:58 +02:00
binarybaron
47821cbe79
wip: WithdrawDialog migrated to Tauri IPC 2024-08-09 19:03:28 +02:00
binarybaron
92034a5be8
refactor: remover Arc for start_daemon 2024-08-09 16:38:07 +02:00
binarybaron
630f4c6f23
chore: Add description to Cargo.toml for GUI 2024-08-09 15:26:26 +02:00
binarybaron
8cb1e8aff0
wip: use trait to convert Result<T, Err> into Result<T, String> for Tauri command response 2024-08-09 14:41:26 +02:00
binarybaron
b769251665
wip: remove Request struct, imports failing 2024-08-09 12:42:22 +02:00
binarybaron
693f4297c5
wip: remove Request for object and call functions like buy_xmr directly 2024-08-09 01:30:45 +02:00
binarybaron
4f336e98a1
chore: Refactor tauri commands 2024-08-08 12:28:33 +02:00
binarybaron
2e1b6f6b43
feat: swap history tauri connector 2024-08-08 12:02:59 +02:00
binarybaron
cdd6635c8f
chore: Add author names to Cargo.toml 2024-08-08 11:19:25 +02:00