AthanorLabs / atomic-swap

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

time index shift #450

Closed dimalinux closed 1 year ago

dimalinux commented 1 year ago

Renames T0/T1 to T1/T2. This way T0 can represent the block timestamp that newSwap was mined into.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 73.80% and project coverage change: +0.12 :tada:

Comparison is base (c131112) 58.35% compared to head (ef5606c) 58.48%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #450 +/- ## ========================================== + Coverage 58.35% 58.48% +0.12% ========================================== Files 123 123 Lines 11576 11576 ========================================== + Hits 6755 6770 +15 + Misses 4103 4085 -18 - Partials 718 721 +3 ``` | [Impacted Files](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [ethereum/check\_swap\_creator\_contract.go](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-ZXRoZXJldW0vY2hlY2tfc3dhcF9jcmVhdG9yX2NvbnRyYWN0Lmdv) | `57.14% <ø> (ø)` | | | [protocol/backend/backend.go](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-cHJvdG9jb2wvYmFja2VuZC9iYWNrZW5kLmdv) | `63.75% <ø> (ø)` | | | [protocol/swap/types.go](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-cHJvdG9jb2wvc3dhcC90eXBlcy5nbw==) | `88.23% <ø> (ø)` | | | [protocol/xmrmaker/errors.go](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-cHJvdG9jb2wveG1ybWFrZXIvZXJyb3JzLmdv) | `40.00% <ø> (ø)` | | | [protocol/xmrmaker/event.go](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-cHJvdG9jb2wveG1ybWFrZXIvZXZlbnQuZ28=) | `71.52% <ø> (ø)` | | | [protocol/xmrtaker/event.go](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-cHJvdG9jb2wveG1ydGFrZXIvZXZlbnQuZ28=) | `69.23% <ø> (ø)` | | | [rpc/swap.go](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-cnBjL3N3YXAuZ28=) | `23.64% <0.00%> (ø)` | | | [cmd/swapcli/main.go](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-Y21kL3N3YXBjbGkvbWFpbi5nbw==) | `43.91% <33.33%> (ø)` | | | [ethereum/swap\_creator.go](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-ZXRoZXJldW0vc3dhcF9jcmVhdG9yLmdv) | `8.02% <33.33%> (ø)` | | | [protocol/xmrmaker/checks.go](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-cHJvdG9jb2wveG1ybWFrZXIvY2hlY2tzLmdv) | `35.71% <55.55%> (ø)` | | | ... and [8 more](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | | ... and [3 files with indirect coverage changes](https://codecov.io/gh/AthanorLabs/atomic-swap/pull/450/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.