Commit graph

3083 commits

Author SHA1 Message Date
Raphael
e8084d65ec
feat(gui): Review logs before sending feedback (#301)
* add review buttons that open the attached logs before submitting feedback
* add redact switches to redact transaction id's from attached logs
2025-04-23 15:09:19 +02:00
Raphael
3fa31ba139
feat(gui): Tor toggle (#300)
* re-add tor info box, show switch for toggling tor

* add use_tor to TauriSettings, only initialize tor client when it's true

* add warning log message when not using tor client

* change the label text of the switch, fail to align switch with SettingsBox icons

* move Tor settings to SettingsBox
2025-04-22 16:36:09 +02:00
unstoppableswap-botty
ffe103cb49
Prepare release 1.0.0-rc.17 (#297)
Co-authored-by: UnstoppableSwap Botty <help@unstoppableswap.net>
2025-04-18 02:06:09 +02:00
Mohan
75f37a987b
fix(gui): Accept integrated Monero addresses 2025-04-18 02:01:25 +02:00
Mohan
9ddf2daafe
feat(gui): Approve dialog before publishing Bitcoin lock transaction (#291)
This diff introduces a new "approvals" mechanism that alters the swap flow by requiring explicit user intervention before the Bitcoin lock transaction is broadcast. Previously, the Bitcoin lock was executed automatically without any user prompt. Now, the backend defines `ApprovalRequestType` (e.g. a `PreBtcLock` variant with details like `btc_lock_amount`, `btc_network_fee`, and `xmr_receive_amount`) and `ApprovalEvent` (with statuses such as `Pending`, `Resolved`, and `Rejected`). The method `request_approval()` in the `TauriHandle` struct uses a oneshot channel and concurrent timeout handling via `tokio::select!` to wait for the user's decision. Based on the outcome—explicit approval or timeout/rejection—the approval event is emitted through the `emit_approval()` helper, thereby gating the subsequent broadcast of the Bitcoin lock transaction.

On the UI side, changes have been made to reflect the new flow; the modal (for example, in `SwapSetupInflightPage.tsx`) now displays the swap details along with explicit action buttons that call `resolveApproval()` via RPC when clicked. The Redux store, selectors, and hooks like `usePendingPreBtcLockApproval()` have been updated to track and display these approval events. As a result, the overall functionality now requires the user to explicitly approve the swap offer before proceeding, ensuring they are aware of the swap's key parameters and that the locking of funds occurs only after their confirmation.
2025-04-18 01:51:55 +02:00
unstoppableswap-botty
ab5f93ff44
Prepare release 1.0.0-rc.16 (#294) 2025-04-17 22:00:52 +02:00
Mohan
49af378467
fix: Move changelog entry for asb quote caches to correct section 2025-04-17 20:22:48 +02:00
Mohan
b3559421ae
feat(asb): Cache quotes (#288) 2025-04-17 16:22:30 +02:00
unstoppableswap-botty
8d4f714015
Prepare release 1.0.0-rc.14 (#290)
Co-authored-by: UnstoppableSwap Botty <help@unstoppableswap.net>
2025-04-16 15:10:24 +02:00
Raphael
24cfa71932
cli: log the reason we can't find tx_cancel (#289)
* cli: log the reason we can't find tx_cancel

When we can't find tx_cancel even though the cancel timelock
expired, we publish it ourselves.

However, some users had a problem where the tx_cancel wasn't
found even though it was already published.
This leads to the cli getting stuck in `CancelTimelockExpired`
when it should go to `BtcCancelled`.
This commit introduces an additional log statement that will
help us narrow down why that is.

* gui: update the documentation icon
2025-04-16 13:44:37 +02:00
Mohan
b9609b979b
dev: Add code2prompt scripts to extract entire codebase into single file (#285) 2025-04-15 14:59:38 +02:00
Mohan
7023a186b1
fix(swap): Error handling for fallback during Monero tx monitoring (#278) 2025-03-17 15:58:51 +01:00
Mohan
80ef31c3e9
docs: Add backup rendezvous server to maker documentation (#277) 2025-03-17 15:16:59 +01:00
Byron Hambly
7e8bfd4f02
Merge pull request #276 from UnstoppableSwap/gui/add-docs-icon
gui: add an icon that links to the documentation
2025-03-15 18:53:46 +02:00
Einliterflasche
012131c267
gui: add an icon that links to the documentation 2025-03-14 12:38:04 +01:00
Raphael
315272b50d
gui: update social media links (remove reddit, discord; add matrix) (#273) 2025-02-28 21:14:23 +01:00
einliterflasche
54670ab839
docs: update changelog to include updated rust version 2025-02-27 19:23:44 +01:00
einliterflasche
86ddda4207
fix(ci): upgrade rust toolchain to 1.80 2025-02-27 19:10:57 +01:00
einliterflasche
25cc97660a
fix(ci): update our ci toolchain to resolve toolchain conflicts 2025-02-27 18:52:28 +01:00
einliterflasche
bee547ef68
fix ci for windows 2025-02-22 23:40:15 +01:00
Byron Hambly
2ec90384f4
Merge pull request #270 from ikmckenz/master
Run cargo fmt in src-tauri
2025-02-19 11:03:19 +02:00
Ian McKenzie
7debdeabb0 Run cargo fmt in src-tauri 2025-02-18 18:42:56 -08:00
Dimitris Apostolou
ad86a80098
deps: fix crate vulnerabilities (#269) 2025-02-18 17:19:42 +01:00
Raphael
504eb0d014
ci: fix spurious network erros (#268)
Occasionally our ci jobs would fail due to network errors.
This is a known issue which is worked around by disabling
http multiplexing, for now. Hopefully.
2025-02-15 22:26:04 +01:00
unstoppableswap-botty
dfe1a28267
Prepare release 1.0.0-rc.13 (#259) 2025-01-24 02:54:38 +01:00
Mohan
c9d3536f36
fix(gui): Button to open data directory (#256) 2025-01-22 16:29:11 +01:00
Einliterflasche
9e27c6548b
docs: generally improve docs and add maker page (#242)
* improve introduction and installation docs

* add some maker documentation

* improve maker docs

* Add network section, explain multiaddr, move docker commands into table

* Finally fix src-gui/.gitignore

* Fix .env.development

* Refine cancel, refund, punish explanation

* Add to changelog

* Make donation addresses copyable

* Apply suggestions
2025-01-21 16:05:05 +01:00
binarybaron
29da23ea60
fix(asb): Would silently fail if Monero refund transaction publish failed (#254) 2025-01-21 14:01:57 +01:00
unstoppableswap-botty
3e6b25a0c8
Prepare release 1.0.0-rc.12 (#252) 2025-01-16 11:46:02 +01:00
binarybaron
5e9240b628
fix(cli): Correctly check for available nodes, remove dead nodes (#251)
There was an issue before we were falsely applying a default node to use and not actually iterating through our list and checking for availiability. This commit fixes this issue and removes a few dead nodes.
2025-01-14 23:23:33 +01:00
Byron Hambly
37d97e5f2f
Merge pull request #248 from HammerPavel/master
docs: added note about increasing gap limit
2025-01-09 17:08:53 +02:00
hp
3affb18925 docs: added note about increasing gap limit 2025-01-09 15:56:17 +03:00
Einliterflasche
799eb15411
GUI: warn against replace-by-fee for deposit transactions (#243)
* add alert in deposit page to warn against replace-by-fee
2025-01-07 12:15:43 +01:00
binarybaron
c9431d80f7
docs: Refer to asb-docker-compoe 2025-01-02 20:40:39 +01:00
binarybaron
cf20891638
fix(gui): Fetch balance after swap is released, re-fetch database after progress event, change wording in progress page (#237) 2024-12-23 11:59:40 +01:00
unstoppableswap-botty
27e8467ac5
Prepare release 1.0.0-rc.11 (#236) 2024-12-23 00:33:51 +01:00
binarybaron
a138f29d67
bump: arti to 0.25.0 (#233) 2024-12-20 12:15:29 +01:00
binarybaron
b7929ca0c4
feat(asb): Print more information when history command is invoked (#218) 2024-12-20 12:00:56 +01:00
unstoppableswap-botty
b7631d2d47
Prepare release 1.0.0-rc.10 (#226) 2024-12-05 17:16:15 +01:00
Binarybaron
23ccee1436 Revert "Prepare release 1.0.0-rc.9 (#224)"
This reverts commit e11dbed14d.
2024-12-05 16:51:37 +01:00
Binarybaron
b7c82669f6 fix(ci): Build using macos-13 due to macos-12 being deprecated 2024-12-05 16:51:18 +01:00
unstoppableswap-botty
e11dbed14d
Prepare release 1.0.0-rc.9 (#224) 2024-12-04 18:48:42 +01:00
binarybaron
8105602697
fix(docs): Links to inline PlantUML diagrams 2024-12-04 18:42:20 +01:00
Binarybaron
07e61f2bfe fix: Move changelog entries from 1.0.0-rc.7 into -rc.8 to purge broken release 2024-12-04 18:18:44 +01:00
Binarybaron
fd953b201b fix(gui): Incorrect entry in yarn.loc 2024-12-04 18:18:43 +01:00
Binarybaron
2a14add01a fix(gui): Incorrect entry in yarn.loc 2024-12-04 18:14:25 +01:00
unstoppableswap-botty
1dca3b852b
Prepare release 1.0.0-rc.8 (#223)
Co-authored-by: UnstoppableSwap Botty <help@unstoppableswap.net>
2024-12-04 16:23:29 +01:00
binarybaron
57bfd3a529
fix(CHANGELOG): Move entries regarding onion service feature into unreleased section 2024-12-04 15:25:21 +01:00
binarybaron
c5894eacdc
feat(asb): Retry publishing Bitcoin redeem transaction (#221) 2024-12-04 15:24:10 +01:00
binarybaron
13c7bf8a04
docs: Refer to maker/taker docs on main page 2024-12-04 00:22:09 +01:00