744: Move Cfd types into the projection actor r=klochowicz a=klochowicz
This is the last stage of cleanup / moving things around, before I tackle the actual logic :)
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
750: Bump vergen from 5.1.17 to 5.1.18 r=thomaseizinger a=dependabot[bot]
Bumps [vergen](https://github.com/rustyhorde/vergen) from 5.1.17 to 5.1.18.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/rustyhorde/vergen/releases">vergen's releases</a>.</em></p>
<blockquote>
<h2>v5.1.18</h2>
<ul>
<li>Added <code>base_dir</code> to git config to allow git root directory configuration.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="9e83651280"><code>9e83651</code></a> version bump for next release</li>
<li><a href="5f298359a4"><code>5f29835</code></a> Added <code>base_dir</code> to git configuration (<a href="https://github-redirect.dependabot.com/rustyhorde/vergen/issues/95">#95</a>)</li>
<li>See full diff in <a href="https://github.com/rustyhorde/vergen/compare/5.1.17...5.1.18">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=vergen&package-manager=cargo&previous-version=5.1.17&new-version=5.1.18)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
751: Bump rust-embed from 6.2.0 to 6.3.0 r=thomaseizinger a=dependabot[bot]
Bumps [rust-embed](https://github.com/pyros2097/rust-embed) from 6.2.0 to 6.3.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/pyros2097/rust-embed/blob/master/changelog.md">rust-embed's changelog</a>.</em></p>
<blockquote>
<h2>[6.3.0] - 2021-11-28</h2>
<ul>
<li>Fixed a security issue in debug mode <a href="https://github-redirect.dependabot.com/pyros2097/rust-embed/issues/159">#159</a>. Thanks to <a href="https://github.com/5225225">5225225</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/pyros2097/rust-embed/commits">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rust-embed&package-manager=cargo&previous-version=6.2.0&new-version=6.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
749: Bump derive_more from 0.99.16 to 0.99.17 r=thomaseizinger a=dependabot[bot]
Bumps [derive_more](https://github.com/JelteF/derive_more) from 0.99.16 to 0.99.17.
<details>
<summary>Commits</summary>
<ul>
<li><a href="718fbb6757"><code>718fbb6</code></a> (cargo-release) version 0.99.17</li>
<li><a href="b363ae036e"><code>b363ae0</code></a> Add documentation for DebugCustom derive (<a href="https://github-redirect.dependabot.com/JelteF/derive_more/issues/172">#172</a>)</li>
<li><a href="efbe8245ab"><code>efbe824</code></a> Check dependencies minimal versions on CI (<a href="https://github-redirect.dependabot.com/JelteF/derive_more/issues/175">#175</a>)</li>
<li><a href="52fe1c9034"><code>52fe1c9</code></a> (cargo-release) start next development iteration 0.99.17-alpha.0</li>
<li>See full diff in <a href="https://github.com/JelteF/derive_more/compare/v0.99.16...v0.99.17">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=derive_more&package-manager=cargo&previous-version=0.99.16&new-version=0.99.17)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Move the logic of creating Cfd representation suitable for UI into the
projection actor
For the time being, keep the logic as free functions that are still used in the
"old" way (inside ToSseEvent)
740: Move more types into projection actor r=klochowicz a=klochowicz
A stepping stone to the PR with incorporating Cfds into the projection actor.
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
739: Remove taker_cfd::CfdAction enum and use `xtra-productivity` r=thomaseizinger a=thomaseizinger
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
738: Introduce `AddressMap` primitive r=thomaseizinger a=thomaseizinger
This should remove some duplication as we will repeat this pattern
a couple of times.
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
734: Workaround tags not being fetched correctly r=thomaseizinger a=thomaseizinger
This results in the version within the container being displayed
incorrectly (always 0.1.1).
Fixes https://github.com/itchysats/itchysats/issues/537.
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
730: Remove deadlock after triggering collaborative settlement r=klochowicz a=klochowicz
Tested locally, after isolating the cause of the deadlock (the initiate settlement message was never sent).
I have started working on an unit test when debugging the issue (#727), after projection actor is completed I will post the test as a separate PR.
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
728: Bump @emotion/react from 11.6.0 to 11.7.0 in /taker-frontend r=thomaseizinger a=dependabot[bot]
Bumps [`@emotion/react](https://github.com/emotion-js/emotion)` from 11.6.0 to 11.7.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/emotion-js/emotion/releases"><code>`@emotion/react</code>'s` releases</a>.</em></p>
<blockquote>
<h2><code>`@emotion/react</code><a` href="https://github.com/11"><code>`@11</code></a>.7.0</h2>`
<h3>Patch Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/emotion-js/emotion/pull/2534">#2534</a> <a href="57be9e8cb2"><code>57be9e8c</code></a> Thanks <a href="https://github.com/srmagura"><code>`@srmagura</code></a>!` - Changed the implementation of the runtime label extraction in elements using the css prop (that only happens in development) to one that should yield more consistent results across browsers. This fixes some minor issues with React reporting hydration mismatches that wouldn't happen in production.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="200bc6a56b"><code>200bc6a</code></a> Version Packages (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2564">#2564</a>)</li>
<li><a href="f046ae40bc"><code>f046ae4</code></a> Add ESLint 8 to the peer dependency range (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2562">#2562</a>)</li>
<li><a href="57be9e8cb2"><code>57be9e8</code></a> Extract, unit test, and improve getLabelFromStackTrace (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2534">#2534</a>)</li>
<li>See full diff in <a href="https://github.com/emotion-js/emotion/compare/`@emotion/react@11.6.0...@emotion/react@11.7.0">compare` view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@emotion/react&package-manager=npm_and_yarn&previous-version=11.6.0&new-version=11.7.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
724: Ack messages r=da-kami a=da-kami
This is a temporary workaround to avoid scenarios described in https://github.com/itchysats/itchysats/issues/364
Once we deal with incomplete DLCs this can go away.
Co-authored-by: Daniel Karzel <daniel@comit.network>
719: Use projection actor for connected takers r=klochowicz a=klochowicz
Last small stage before tackling the Cfd projection
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
This is to avoid going on chain in a scenario where one party finished the rollover, while the other party ran into a timeout after send-/receiving the last message for the revoke-commit.
This is to avoid going on chain in a scenario where one party sent the signed lock transaction, but did not get the signed transaction from the other party before running into the timeout.
With this solution, we fail the setup (on either side) if we don't receive an acknowledgment message at the end of the setup.
The acknoledge message is a temporary fix.
Once we add monitoring for incomplete DLCs (special case of contract-setup / rollover / collaborative-settlement failing) the ack message should be removed.
722: Increase heartbeat timeout interval in debug mode to 45s r=klochowicz a=klochowicz
As we do not process messages concurrently, heartbeat messages are not processed
during lengthy operations, such as contract setup.
The spam in the amount of commit messages is a bit unfortunate, but only failing
tests on various machines can indicate that the timing might cause issues.
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
- running the application inside the container as root is against best practices
- using gcr.io/distroless/cc as smaller minimal image
- add authors label
Our assumption was that we need armv7 for running on an RPi. It turns out that Armv7 is totally outdated and only used on the old RPi 2 model B. The newer model RPi 2 model B v1.2 already uses Armv8
As we do not process messages concurrently, heartbeat messages are not processed
during lengthy operations, such as contract setup.
The spam in the amount of commit messages is a bit unfortunate, but only failing
tests on various machines can indicate that the timing might cause issues.
707: Contract setup `Completed` is the same for taker and maker r=thomaseizinger a=da-kami
Either of the roles has to record the outcome of the setup, which should be the same for them.
In order to handle this in our event model we need `Completed` in the model so it is not role specific.
714: Make it clear what the payout is r=thomaseizinger a=thomaseizinger
![image](https://user-images.githubusercontent.com/5486389/143502096-175eb785-299b-4b34-bd7b-c11734af439d.png)
Co-authored-by: Daniel Karzel <daniel@comit.network>
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
720: Increase the timeout in debug mode to fix CI/bors r=klochowicz a=klochowicz
Contract setup test keeps failing when bors runs it.
Note: contract setup got recently refactored into a dedicated actor, this might
have increased the time it takes to finish the process.
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
Contract setup test keeps failing when bors runs it.
Note: contract setup got recently refactored into a dedicated actor, this might
have increased the time it takes to finish the process.
718: Rename `TakerId` to `Identity` r=klochowicz a=thomaseizinger
With #665, we will use this struct on both maker and taker side.
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>