dependabot[bot]
8feb70bfce
Bump vergen from 5.1.16 to 5.1.17
Bumps [vergen](https://github.com/rustyhorde/vergen ) from 5.1.16 to 5.1.17.
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/5.1.16...5.1.17 )
---
updated-dependencies:
- dependency-name: vergen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Mariusz Klochowicz
fbb0744960
Provide feedback about maker failed actions in HTTP response
Invoke user actions (cfd actions & posting a new sell order) synchronously in
order to be able to communicate the results.
Use HttpApiProblem to send error details to the frontend in a standard way.
3 years ago
dependabot[bot]
98df5cebd0
Bump anyhow from 1.0.44 to 1.0.45
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.44 to 1.0.45.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.44...1.0.45 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
rishflab
b7a8370b0b
Authenticate connection with maker
Use the IK noise handshake pattern to authenticate the maker
given knowledge of the maker's static public key.
https://noiseexplorer.com/patterns/IK/
3 years ago
dependabot[bot]
be61e9b40a
Bump bdk from 0.12.0 to 0.13.0
Bumps [bdk](https://github.com/bitcoindevkit/bdk ) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/bitcoindevkit/bdk/releases )
- [Changelog](https://github.com/bitcoindevkit/bdk/blob/v0.13.0/CHANGELOG.md )
- [Commits](https://github.com/bitcoindevkit/bdk/compare/v0.12.0...v0.13.0 )
---
updated-dependencies:
- dependency-name: bdk
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
3805e6cbe0
Bump tokio from 1.12.0 to 1.13.0
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.12.0...tokio-1.13.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
d59a4cd972
Bump tokio-util from 0.6.8 to 0.6.9
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.6.8 to 0.6.9.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.6.8...tokio-util-0.6.9 )
---
updated-dependencies:
- dependency-name: tokio-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
376b5ac23a
Bump clap from 3.0.0-beta.4 to 3.0.0-beta.5
Bumps [clap](https://github.com/clap-rs/clap ) from 3.0.0-beta.4 to 3.0.0-beta.5.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/commits )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Mariusz Klochowicz
a5285ed510
Roll-out usage of a mocking framework in actor tests
Mockall is a mocking framework that removes the need for writing more actors,
making tests easier to write.
Summary:
- add one more layer of indirection (a trait per actor type: Wallet, Oracle, Monitor)
- Mocks implementing the actor traits (with default stubbed implementations if no extra
behaviour needed)
- references to the mocks are being passed into the tests (via Arc<Mutex>>), allowing
for dynamically changing the behaviour and adding assertions. This also
aids readability, as the mock setup can be collocated with a particular
test, if the test needs something extra
Fixes #450
3 years ago
rishflab
7e2ee5883b
Encrypt network communication using the noise protocol
The which do not fit into the 65535 byte message size
limit of the noise protocol are chunked before
encryption. This feature was introduced to handle the
very large messages which contained the CET's.
More research is required into the NOISE_PARAMS and
whether they can be used to configure snow elegantly
handle authentication.
3 years ago
dependabot[bot]
eecc4aa108
Bump time from 0.3.3 to 0.3.4
Bumps [time](https://github.com/time-rs/time ) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/time-rs/time/releases )
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md )
- [Commits](https://github.com/time-rs/time/compare/v0.3.3...v0.3.4 )
---
updated-dependencies:
- dependency-name: time
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
rishflab
40a6ea0d39
Revert "Encrypt network communication using the noise protocol"
3 years ago
rishflab
b9db55fce3
Encrypt network communication using the noise protocol
More research is required into the NOISE_PARAMS and
whether they can be used to configure snow elegantly
handle authentication.
3 years ago
DelicioiusHair
6bd7fe2d78
Nanoseconds begone!
Created new Timestamp struct that only uses seconds (as i64 in order
to play nice with both sqlx and chrono) and removed use of SytemTime::now()
throughout in the process.
This PR addresses #352 but also had the effect of doing a better job of
addressing #434 , making #435 pointless.
3 years ago
dependabot[bot]
9de12d2331
Bump trybuild from 1.0.50 to 1.0.52
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.50 to 1.0.52.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.50...1.0.52 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
4b1baa1673
Bump syn from 1.0.80 to 1.0.81
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.80 to 1.0.81.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.80...1.0.81 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
7fed86f1b4
Bump rust_decimal_macros from 1.16.0 to 1.17.0
Bumps [rust_decimal_macros](https://github.com/paupino/rust-decimal ) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/paupino/rust-decimal/releases )
- [Commits](https://github.com/paupino/rust-decimal/commits )
---
updated-dependencies:
- dependency-name: rust_decimal_macros
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
b8c88c434e
Bump quote from 1.0.9 to 1.0.10
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
afd64dbcff
Bump syn from 1.0.78 to 1.0.80
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.78 to 1.0.80.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.78...1.0.80 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
9ebbafe045
Bump rust_decimal from 1.16.0 to 1.17.0
Bumps [rust_decimal](https://github.com/paupino/rust-decimal ) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/paupino/rust-decimal/releases )
- [Commits](https://github.com/paupino/rust-decimal/commits )
---
updated-dependencies:
- dependency-name: rust_decimal
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Mariusz Klochowicz
5650ab1ec5
Roll out xtra_productivity inside maker_inc_connections actor
3 years ago
Daniel Karzel
0214bdcf88
Proc-macro to optimise xtra `Handler` and `Message` impls
3 years ago
dependabot[bot]
6e8f3b6678
Bump vergen from 5.1.15 to 5.1.16
Bumps [vergen](https://github.com/rustyhorde/vergen ) from 5.1.15 to 5.1.16.
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/5.1.15...5.1.16 )
---
updated-dependencies:
- dependency-name: vergen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
6c8b371485
Bump reqwest from 0.11.5 to 0.11.6
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.5 to 0.11.6.
- [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.5...v0.11.6 )
---
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
dependabot[bot]
c75abf8297
Bump serde_with from 1.10.0 to 1.11.0
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: serde_with
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Thomas Eizinger
994f118b69
Depend on latest upstream HEAD instead of fork
3 years ago
Thomas Eizinger
9b857b9c24
Change to secp256k1-zkp upstream
Our patches have been accepted.
3 years ago
Mariusz Klochowicz
58aaea560e
Update secp256k1-zkp fork's hash after force-pushing to the branch
3 years ago
Philipp Hoenisch
a72905c2b0
Use fork for secp256k1-zkp
Because of bug in upstream library where the release build removes the actual computation of adaptor signatures
3 years ago
Thomas Eizinger
75cd6a1ea2
Fix precision of Usd and Percent to 2 decimal upon serialization
3 years ago
Thomas Eizinger
1a28131bf5
Properly shutdown DB connection before exit
3 years ago
Philipp Hoenisch
9497043478
Print git tag when starting maker/taker
3 years ago
Lucas Soriano del Pino
20c76f6134
Use MessageChannel instead of send_to_socket::Actor
We depend on `luckysori/xtra` until
https://github.com/Restioson/xtra/pull/45 is released.
3 years ago
DelicioiusHair
6d6c40436d
Fix up SQL queries
This PR does a few things:
* cleans up the SQL to make the queries clearer in terms of intent, as well as eliminating the use of an extra transaction in some write queries.
* adds some additional testing
* (mostly) eliminates the use of `serde_json::to_string()`, making the data columns behave in a more sane manner
3 years ago
Thomas Eizinger
443e206a0b
Remove unused tempfile dependency
3 years ago
Thomas Eizinger
237f4c25bf
Revert "Db refactor"
3 years ago
dependabot[bot]
5c4ef91382
Bump secp256k1-zkp from `0dba4c0` to `ab7f6d8`
Bumps [secp256k1-zkp](https://github.com/ElementsProject/rust-secp256k1-zkp ) from `0dba4c0` to `ab7f6d8`.
- [Release notes](https://github.com/ElementsProject/rust-secp256k1-zkp/releases )
- [Commits](0dba4c033a
...ab7f6d8f5e74fd7bf5348d4fc3593bcc1dd532ad)
---
updated-dependencies:
- dependency-name: secp256k1-zkp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
DelicioiusHair
5cf88a2b01
DB code rebasing for #88
The primary goal was to remove all of the calls to `serde_json::to_string()`
for the data-handling, thus enabling us to do (more or less):
```rust
Order {
row.column,
...
}
```
as well as clean up the SQL for easier reading. This has mostly been
accomplished, with further refinements easily accomplished once the
upstream issues in `sqlx` are addressed. See #314 for issues we are
tracking.
3 years ago
DelicioiusHair
15229d31cf
Add ultra-fancy payout curve module
3 years ago
dependabot[bot]
edecbecd09
Bump thiserror from 1.0.29 to 1.0.30
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.29 to 1.0.30.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.29...1.0.30 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Thomas Eizinger
826d2fc7bc
Bump xtra version to reduce trait-bound noise
See https://github.com/Restioson/xtra/pull/42 .
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
dependabot[bot]
c07adab5f1
Bump tracing from 0.1.28 to 0.1.29
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.28 to 0.1.29.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.28...tracing-0.1.29 )
---
updated-dependencies:
- dependency-name: tracing
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
c1aa456124
Bump tracing-subscriber from 0.2.24 to 0.2.25
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.2.24 to 0.2.25.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.24...tracing-subscriber-0.2.25 )
---
updated-dependencies:
- dependency-name: tracing-subscriber
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
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
4ac13e405e
Make sure we can request HTTPS urls
3 years ago
Lucas Soriano del Pino
23d7c6110f
Watch relevant olivia announcements and attestations
3 years ago
Thomas Eizinger
fa87ad90c6
Use sqlite for BDK's database
3 years ago
Thomas Eizinger
a219d90dd0
Update to bdk 0.12
3 years ago
Daniel Karzel
a2fbfedc02
UI state mapping & dynamic actions
All display related decisions are taken in the UI, but on top of the UI's model.
For this purpose we introduce classes for `CfdState` and `Position` so we can add the relevant mapping functions to these classes.
To achieve the mapping from daemon sse even to the `Cfd` / `Order` interface (that now contain classes instead of just primitives) we extend the sse hook to accept a mapping function.
We define this mapping function for `Cfd` and `Order`, because those contain classes, for all others we just use the default mapping.
Actions are dynamically rendered based on the state.
The daemon decides on the action name.
A single post endpoint handles all actions.
The UI maps the actions to icons.
Co-authored-by: Thomas Eizinger <thomas@coblox.tech>
3 years ago