Philipp Hoenisch
c810c2c5aa
Add signet support
3 years ago
Philipp Hoenisch
5f09629f4a
Fix out of range bug
Valid hours are only 0-23, which means we need to roll over to the next day.
3 years ago
dependabot[bot]
fde374145b
Bump reqwest from 0.11.4 to 0.11.5
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.4 to 0.11.5.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.4...v0.11.5 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Daniel Karzel
23ba4a41cd
Change to trace because most of the time it's irrelevant
3 years ago
Daniel Karzel
e0e55bdd98
Remove dbg
3 years ago
Philipp Hoenisch
fc56550044
Remove dead todo
3 years ago
Lucas Soriano del Pino
8585a28456
Fix example fn doc in protocol tests
3 years ago
Philipp Hoenisch
599bdc74dd
Rename opts variable
The taker connects to the maker
3 years ago
bors[bot]
1280fe7132
Merge #252
252: Rework oracle actor communication r=da-kami a=da-kami
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
Co-authored-by: Daniel Karzel <daniel@comit.network>
3 years ago
Daniel Karzel
0ff12d9be3
Set term to `24` hours
Note: Since our sliding window of `next_24_hours` in the oracle actor is current hour `+[1..24]` the window should always be able to handle fetching an event of current hour + 1.
3 years ago
Daniel Karzel
4c712d3d67
Patch Olivia URL format
3 years ago
bors[bot]
2044751b2a
Merge #211
211: Rename "Accept / Reject" to "Pending" in CfdTables r=klochowicz a=klochowicz
Pending is a more succinct nudge to the user that they should react with an
action to the CFDs inside these tables.
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
3 years ago
Daniel Karzel
cc79cb1d2b
Cleanup oracle id and url handling
3 years ago
Daniel Karzel
971b9f9368
Replace `Announcements` with requesting specific `Announcement`
Instead of the oracle actor sending out the `Announcements` we only store them internally and let the cfd actors chose what `Announcement` is relevant given the term of the offer.
The specific `Announcement` is then fetched from the oracle actor.
The monitoring logic for pending attestations remains the same.
3 years ago
Daniel Karzel
fcd23c211b
Chose announcement time based on cfd term
3 years ago
Thomas Eizinger
285840a856
Make term a constant
Switch to `time::Duration` so we can declare it as a constant.
3 years ago
bors[bot]
b4036d6e91
Merge #249
249: First cet trial fixes r=da-kami a=da-kami
Note: Just discussed with `@thomaseizinger` that the Oracle actor should be changed to be able to handle multiple terms.
So, instead of the oracle actor sending out the current 24 hours to the cfd actor, the cfd actor should be able to request events for a time interval (i.e. different terms).
Changing that should also allow us to test more easily, because we can use a very short term.
Co-authored-by: Daniel Karzel <daniel@comit.network>
3 years ago
bors[bot]
98ae67f827
Merge #250
250: Roll over bug fixes r=bonomat a=bonomat
With these bugs fixed we get all the way back into `Open` state :)
Co-authored-by: Philipp Hoenisch <philipp@hoenisch.at>
3 years ago
Philipp Hoenisch
9de0376daa
Bug fix: Remove pending roll over requests
Otherwise the UI won't update
3 years ago
Philipp Hoenisch
d8bf7410d4
Bug fix: allow state transition from open to open
When renewing we don't have an additional state, instead we transition from open to open
3 years ago
Philipp Hoenisch
1eb332d6fd
Bug fix: overflow
Checking for confirmations 0 results in an overflow.
3 years ago
bors[bot]
f674b17ae0
Merge #228
228: Fix error text r=thomaseizinger a=da-kami
Co-authored-by: Daniel Karzel <daniel@comit.network>
3 years ago
bors[bot]
ff6f3d4b39
Merge #225
225: Bump tracing from 0.1.28 to 0.1.29 r=thomaseizinger a=dependabot[bot]
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.28 to 0.1.29.
<details>
<summary>Commits</summary>
<ul>
<li><a href="d0ef14d3f5
"><code>d0ef14d</code></a> tracing: prepare to release v0.1.29 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1623 ">#1623</a>)</li>
<li><a href="6692aaf738
"><code>6692aaf</code></a> subscriber: prepare to release 0.2.25 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1622 ">#1622</a>)</li>
<li><a href="29ffdbc2b2
"><code>29ffdbc</code></a> subscriber: forward <code>Filtered::downcast_raw</code> to wrapped Layer (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1619 ">#1619</a>)</li>
<li><a href="645f282eee
"><code>645f282</code></a> attributes: prepare to release 0.1.18 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1621 ">#1621</a>)</li>
<li><a href="7dda7f5e90
"><code>7dda7f5</code></a> attributes: remove unnecessary quote_spanned! (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1617 ">#1617</a>)</li>
<li><a href="243a3e2d2f
"><code>243a3e2</code></a> attributes: fix compile error with instrumented async functions (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1616 ">#1616</a>)</li>
<li><a href="ac74ba0ca5
"><code>ac74ba0</code></a> attributes: suppress <code>clippy::suspicious_else</code> without nop let (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1614 ">#1614</a>)</li>
<li><a href="66cd79f72a
"><code>66cd79f</code></a> attributes: prepare to release v0.1.17 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1611 ">#1611</a>)</li>
<li><a href="3ee87f3cb9
"><code>3ee87f3</code></a> core: prepare to release 0.1.21 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1610 ">#1610</a>)</li>
<li><a href="84c1c264ad
"><code>84c1c26</code></a> chore: fix CI tracing-core nostd testing tracing</li>
<li>Additional commits viewable in <a href="https://github.com/tokio-rs/tracing/compare/tracing-0.1.28...tracing-0.1.29 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tracing&package-manager=cargo&previous-version=0.1.28&new-version=0.1.29 )](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>
3 years ago
Daniel Karzel
dc6f5703e4
Fix URl to fetch attestations
`https://h00.ooo//x/BitMEX/BXBT/2021-10-08T03:00:00.price[n:20] ` for attestations because the event includes a leading slash.
Fixed by removing it from the base url and adding a specific slash when fetching events.
3 years ago
Philipp Hoenisch
79de722cf4
Bug fix: chose correct identity
3 years ago
bors[bot]
3216fdbda3
Merge #247
247: Add RollOver button to UI r=bonomat a=bonomat
Probably got lost in one of the rebases...
Co-authored-by: Philipp Hoenisch <philipp@hoenisch.at>
3 years ago
Mariusz Klochowicz
8b59895a05
Rename "Accept / Reject" to "Pending" in CfdTables
Pending is a more succinct nudge to the user that they should react with an
action to the CFDs inside these tables.
3 years ago
Philipp Hoenisch
963a9e58e6
Add RollOver button to UI
3 years ago
bors[bot]
62f15255c0
Merge #240
240: Implement rollover protocol in daemons r=luckysori a=luckysori
Fix #136 .
Co-authored-by: Lucas Soriano del Pino <l.soriano.del.pino@gmail.com>
Co-authored-by: Philipp Hoenisch <philipp@hoenisch.at>
3 years ago
bors[bot]
9bef47cb83
Merge #246
246: Fixed leverage of 2 instead of 5 r=da-kami a=da-kami
Co-authored-by: Daniel Karzel <daniel@comit.network>
3 years ago
bors[bot]
4e2ec513d0
Merge #245
245: Spread of `0.3%` instead of `3%` r=da-kami a=da-kami
Co-authored-by: Daniel Karzel <daniel@comit.network>
Co-authored-by: Daniel Karzel <daniel.karzel@coblox.tech>
3 years ago
Daniel Karzel
03648c61ea
Fixed leverage of 2 instead of 5
3 years ago
Daniel Karzel
78ccad01e3
1
Co-authored-by: Philipp Hoenisch <philipp@coblox.tech>
3 years ago
Daniel Karzel
a172e9da4a
Spread of `0.3%` instead of `3%`
3 years ago
Philipp Hoenisch
9b755b9a59
PR feedback and fmt
3 years ago
bors[bot]
3b4fc777a4
Merge #242
242: Notify maker_cfd::Actor about new taker r=da-kami a=thomaseizinger
Fixes #239 .
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
3 years ago
Thomas Eizinger
b103a21228
Notify maker_cfd::Actor about new taker
Fixes #239 .
3 years ago
Lucas Soriano del Pino
5cd723441d
Implement rollover protocol in daemons
3 years ago
bors[bot]
8be1e46374
Merge #237
237: Oracle actor startup behavior r=da-kami a=da-kami
Co-authored-by: Daniel Karzel <daniel@comit.network>
3 years ago
Daniel Karzel
6bb4824c22
Handle attestation not ready response
... and other minor cleanups concerning Olivia's response handling.
3 years ago
Daniel Karzel
0660e02b1f
Oracle actor initial state update
Block until we are sure that the update was done, because otherwise we might have weird side effects in the UI because there is a dependency on the announcements being available when creating offers.
3 years ago
bors[bot]
7b6e4dbb14
Merge #234
234: Fix contract setup r=da-kami a=da-kami
Co-authored-by: Daniel Karzel <daniel@comit.network>
3 years ago
bors[bot]
7232269205
Merge #227
227: Handle collab settlement response from the maker r=klochowicz a=klochowicz
- store TakerId for proposals to be able to respond to specific taker about
settlement proposal when the user takes action
- send the collab settlement response (accept or reject) from the maker
- handle rejection (remove from the map), CFD state in the UI returns to "Open"
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
3 years ago
Daniel Karzel
1dcb23bdf6
Handle oracle actor pending attestations upon startup
We `insert` - which returns true if the value was not present in the set yet and false if it already was (does not fail if already in set).
3 years ago
Daniel Karzel
1114a90e34
Use `OracleEventId` for pending attestations
3 years ago
Mariusz Klochowicz
eb33172e9f
Handle collab settlement response from the maker
- store TakerId for proposals to be able to respond to specific taker about
settlement proposal when the user takes action
- send the collab settlement response (accept or reject) from the maker
- handle rejection (remove from the map), CFD state in the UI returns to "Open"
3 years ago
Daniel Karzel
ac9a6d9af7
Use the correct sets of nonce-pks for verification
3 years ago
Daniel Karzel
0e4037eb5d
Use Olivia's hardcoded pubkey
3 years ago
bors[bot]
a62dcfb9ac
Merge #222
222: Prevent zero-priced CFD offers r=klochowicz a=klochowicz
Simplify the UI code and disable the button for posting a new offer if there is
no price set.
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
3 years ago
Daniel Karzel
6c4bc68921
Fix error text
3 years ago