2849 Commits

Author SHA1 Message Date
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
binarybaron
709a2820c4
feat: cargo project at root 2024-08-08 00:49:04 +02:00
binarybaron
aa0c0623ca
feat: cargo project at root 2024-08-08 00:46:04 +02:00
binarybaron
8c4531cfd3
feat: cargo project at root 2024-08-08 00:45:26 +02:00
binarybaron
bde04fbd76
wip: add todo comment 2024-08-07 23:22:40 +02:00
binarybaron
21c244f680
wip: add todo comment 2024-08-07 23:20:19 +02:00
binarybaron
42bbf09a2b
wip: add tracing instrument macro to some request functions 2024-08-07 23:18:37 +02:00
binarybaron
472e3a57b3
wip: refactor request.rs to allow type safety 2024-08-07 22:51:18 +02:00
binarybaron
bc3b35cf7b
fix: Remove .DS_STORE file 2024-07-26 14:44:40 +02:00
binarybaron
39b6ecaa97
Prepare release 0.13.4 2024-07-26 14:42:52 +02:00
UnstoppableSwap Botty
8284bea778 Prepare release 0.13.4 2024-07-25 22:31:14 +00:00
binarybaron
0ad78e4f30
revert: Update CHANGELOG.md 2024-07-26 00:20:17 +02:00
binarybaron
fc6bb336c8
Merge branch 'comit-network:master' into master 2024-07-26 00:19:41 +02:00
COMIT Botty McBotface
33ad3c374a
Prepare release 0.13.4 (#1734) 0.13.4 2024-07-25 23:14:31 +02:00
Einliterflasche
2fe428779a
feat(asb): Retry locking Monero (#1731)
We retry to lock the Monero wallet until we succeed or until the cancel timelock expires.

This is necessary because the monero-wallet-rpc can sometimes error out due to various reasons, such as
- no connection to the daemon
- "failed to get output distribution"

See https://github.com/comit-network/xmr-btc-swap/issues/1726
2024-07-25 23:06:50 +02:00
binarybaron
2eda2476eb
Revert "Merge branch 'master' into master" (#1730)
This reverts commit ce8d3afe60f520523fe6ab6b8d1b3de3d07e2027, reversing
changes made to 75cfc6b0d4169d72f136266af122381a05bb9efe.
2024-07-25 15:01:12 +02:00
binarybaron
aaa52e9559
Merge pull request #8 from comit-network/master
Merge parent repository
2024-07-25 14:04:14 +02:00
binarybaron
ce8d3afe60
Merge branch 'master' into master 2024-07-25 14:03:47 +02:00
binarybaron
75cfc6b0d4
fix(cli): allow bitcoin-change-address to be omitted when making request to rpc server (#1728) 2024-07-25 00:13:15 +02:00
binarybaron
c80bdb2d8c
fix(asb): Allow history command to be run while asb is running (#1724)
Co-authored-by: einliterflasche <einliterflasche@pm.me>
2024-07-23 14:52:01 +02:00
binarybaron
ef49b471d8 docs: add binarybaron.asc 2024-07-23 14:12:44 +02:00