Lucas Soriano del Pino
27727cdb03
Use olivia's attestation scheme instead of dlcspecs'
We also stopped generating random oracle-related values for the
protocol tests, greatly simplifying the test suite. This has the
side-effect that we no longer verify that _all_ CETs can be unlocked.
Re-introducing random oracle-related data in the future should be
considered.
3 years ago
Daniel Karzel
abf1f683e0
Merge pull request #197 from comit-network/handle-mutates-state
Transition cfd to new state when handling an event
3 years ago
Thomas Eizinger
71f930e49a
Merge pull request #196 from comit-network/windows-ci
3 years ago
Daniel Karzel
eef1b7348b
Transition cfd to new state when handling an event
Previously we only returned the new state, but we also have to set it internally, otherwise the cfd might be out of date.
This was a problem when getting the refund transaction from the cfd directly after a state transition to `MustRefund`.
The cfd instance had not actually transitioned to the new state, even though it was saved in the database.
3 years ago
Thomas Eizinger
e296e500f5
Run CI on windows
3 years ago
Thomas Eizinger
9d9c72bd89
Merge pull request #192 from comit-network/fix-olivia-integration
3 years ago
Thomas Eizinger
b09ac7a35e
Deserialize response from olivia correctly
3 years ago
Thomas Eizinger
de0b2eaa69
Merge pull request #191 from comit-network/dependabot/cargo/sqlx-0.5.9
3 years ago
dependabot[bot]
6c1a860d5a
Bump sqlx from 0.5.7 to 0.5.9
Bumps [sqlx](https://github.com/launchbadge/sqlx ) from 0.5.7 to 0.5.9.
- [Release notes](https://github.com/launchbadge/sqlx/releases )
- [Changelog](https://github.com/launchbadge/sqlx/blob/master/CHANGELOG.md )
- [Commits](https://github.com/launchbadge/sqlx/compare/v0.5.7...v0.5.9 )
---
updated-dependencies:
- dependency-name: sqlx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Thomas Eizinger
a845776515
Merge pull request #189 from comit-network/release-caches
Make cache to be per target
3 years ago
Daniel Karzel
835af9c029
Merge pull request #188 from comit-network/fix-publish-commit
Fix commit transaction publication
3 years ago
Thomas Eizinger
8d52cfbec7
Make cache to be per target
Otherwise the armv7 build uses the x64 cache which is no good.
3 years ago
Daniel Karzel
13814813a9
Refresh feed after state transition after monitor event
3 years ago
Daniel Karzel
60e4b2cee0
Fix transition to `CommitFinality` from `PendingCommit`
3 years ago
Daniel Karzel
fed9a8bde6
Fix commit transaction publication
1. Finalize with correct descriptor (of lock tx)
2. Restart fix: Allow retrieving the commit tx in state `PendingCommit` so we can re-publish in that state.
3. Update cfd feed after state transition to `PendingCommit` to see updated state in UI.
3 years ago
Thomas Eizinger
7f66504090
Merge pull request #187 from comit-network/housekeeping
3 years ago
Thomas Eizinger
1560d86698
Move re-broadcasting functionality from actor ctor to housekeeping
3 years ago
Thomas Eizinger
a49e1d342f
Rename `cleanup` module to `housekeeping`
3 years ago
Thomas Eizinger
268f94a6b8
Merge pull request #178 from comit-network/simplify-monitoring
Rework monitoring actor to use local state instead of tasks
3 years ago
Thomas Eizinger
2fb374bcc5
Merge pull request #186 from comit-network/no-nonce-pks-for-now
Don't take announcements from oracle for now
3 years ago
Thomas Eizinger
069cdd2f45
Add test for monitoring actor
3 years ago
Thomas Eizinger
0ce2375ef7
Make Actor generic over electrum client implementation
3 years ago
Thomas Eizinger
eee0fdac25
Rework monitoring actor to use local state instead of tasks
This should greatly improve resilience as we no longer have any
tasks within `tokio` that can fail without recovering.
Instead, we periodically ping the actor with a `Sync` message which
updates the local state of all scripts and sends out messages accordingly.
3 years ago
Thomas Eizinger
7b8b80052a
Refer to symbols within `std::fmt` via `fmt::`
3 years ago
Thomas Eizinger
f028ca662d
Don't take announcements from oracle for now
These are not yet set which means we cannot go through contract-setup
at the moment.
3 years ago
Thomas Eizinger
79c7570498
Merge pull request #184 from comit-network/fix-olivia-actor
Some fixes around the oracle actor
3 years ago
Thomas Eizinger
7375ab1508
Actually construct the correct URLs
3 years ago
Thomas Eizinger
4ac13e405e
Make sure we can request HTTPS urls
3 years ago
Daniel Karzel
a9cad7ec3e
Merge pull request #179 from comit-network/non-collaborative-close
Non collaborative close
3 years ago
Daniel Karzel
550bdcdd22
Integrate settlement endpoint into actions
Caused trouble because of route collisions, so the integration was done now.
Required distinguishing Maker and Taker on the cfd level, which comes in handy anyway.
We distinguish by order origin, but still map to a `Role` enum (`Taker` / `Maker`) for readability.
To avoid duplication the `Role` from contract setup was moved into the model and used throughout.
3 years ago
Daniel Karzel
9c02592836
Pass order_id instead of msg to handle func
3 years ago
Daniel Karzel
a43312de2d
Don't panic in endpoints
Does not tackle fixing previously already existing endpoints.
3 years ago
Daniel Karzel
592e81c897
Re-trigger sending commit in case we start up in `PendingCommit`
For now the behavior is: Once the user pressed the button commit will be published and also retried upon startup.
3 years ago
Daniel Karzel
42b4701bc7
Non-collaborative close by publishing commit tx
3 years ago
Daniel Karzel
2eb135d155
Simplify state transition code
The complexity of the code part was not worth the information we got out of it, so it was simplified.
Should hopefully make it a bit more readable and easier to understand.
3 years ago
Mariusz
c11cb6f51b
Merge pull request #183 from comit-network/request-order-fix
Fix the API breakage on posting a CfdOrderRequest
3 years ago
Mariusz Klochowicz
1f5083fa65
Fix the API breakage on posting a CfdOrderRequest
Recent PR #175 introduced a breaking change and the UI did not get updated.
3 years ago
Thomas Eizinger
296fd98cf0
Add dummy payouts
This is only temporary until we have the payout-curve module ready.
3 years ago
Thomas Eizinger
5cf03d83bd
Merge pull request #156 from comit-network/payout-curve-api
3 years ago
Thomas Eizinger
43b1d08898
Add API for calculating payout curve
3 years ago
Thomas Eizinger
5d5347ce56
Merge pull request #172 from comit-network/directly-initialize-price-feed
3 years ago
Thomas Eizinger
ee785354f3
Directly initialize feed with list of current CFDs
3 years ago
Thomas Eizinger
fa2ca990a1
Use the same database connection throughout the actor setup
3 years ago
Thomas Eizinger
bbaf66a754
Merge pull request #145 from comit-network/oracle-actor
3 years ago
Mariusz
cf08326c64
Add a taker endpoint for initiating collaborative settlement ( #175 )
* Add a taker endpoint for initiating collaborative settlement
For now, only logs the proposal in the logs on the maker side
3 years ago
Lucas Soriano del Pino
23d7c6110f
Watch relevant olivia announcements and attestations
3 years ago
Daniel Karzel
079322511d
Merge pull request #174 from comit-network/model-update
Clear UI model separation and dynamic actions
3 years ago
Daniel Karzel
558443b97d
Properly configure linting and fix lint errors
Also adds tsc as command so it can more easily be used in run configurations.
3 years ago
Daniel Karzel
faaaed8705
Remove unused code
3 years ago
Daniel Karzel
e8d48ef449
Group case statements of switches in UI
3 years ago