AthanorLabs / atomic-swap

💫 ETH-XMR atomic swap implementation
GNU Lesser General Public License v3.0
341 stars 44 forks source link

fix: add `Claimed` log watcher to xmrmaker #459

Closed noot closed 1 year ago

noot commented 1 year ago

updates xmrmaker to exit the swap when it sees a Claimed log, meaning it successfully claimed the ETH.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 63.41% and project coverage change: -0.14 :warning:

Comparison is base (e1b51b0) 58.64% compared to head (c5a2e91) 58.50%.

:exclamation: Current head c5a2e91 differs from pull request most recent head 58ba05b. Consider uploading reports for the commit 58ba05b to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #459 +/- ## ========================================== - Coverage 58.64% 58.50% -0.14% ========================================== Files 124 124 Lines 11633 11665 +32 ========================================== + Hits 6822 6825 +3 - Misses 4084 4114 +30 + Partials 727 726 -1 ``` | [Impacted Files](https://app.codecov.io/gh/AthanorLabs/atomic-swap/pull/459?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [protocol/xmrmaker/event.go](https://app.codecov.io/gh/AthanorLabs/atomic-swap/pull/459?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-cHJvdG9jb2wveG1ybWFrZXIvZXZlbnQuZ28=) | `68.70% <ø> (-2.82%)` | :arrow_down: | | [rpc/swap.go](https://app.codecov.io/gh/AthanorLabs/atomic-swap/pull/459?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-cnBjL3N3YXAuZ28=) | `22.74% <ø> (-0.90%)` | :arrow_down: | | [protocol/xmrmaker/watcher.go](https://app.codecov.io/gh/AthanorLabs/atomic-swap/pull/459?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-cHJvdG9jb2wveG1ybWFrZXIvd2F0Y2hlci5nbw==) | `56.25% <56.00%> (-5.57%)` | :arrow_down: | | [protocol/xmrmaker/swap\_state.go](https://app.codecov.io/gh/AthanorLabs/atomic-swap/pull/459?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-cHJvdG9jb2wveG1ybWFrZXIvc3dhcF9zdGF0ZS5nbw==) | `67.56% <75.00%> (+1.05%)` | :arrow_up: | ... and [13 files with indirect coverage changes](https://app.codecov.io/gh/AthanorLabs/atomic-swap/pull/459/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.