dependabot[bot]
56467152fc
Bump mockall_derive from 0.10.2 to 0.11.0
Bumps [mockall_derive](https://github.com/asomers/mockall ) from 0.10.2 to 0.11.0.
- [Release notes](https://github.com/asomers/mockall/releases )
- [Changelog](https://github.com/asomers/mockall/blob/master/CHANGELOG.md )
- [Commits](https://github.com/asomers/mockall/compare/v0.10.2...v0.11.0 )
---
updated-dependencies:
- dependency-name: mockall_derive
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
5d545b43d4
Bump clap from 3.0.0-rc.3 to 3.0.0-rc.4
Bumps [clap](https://github.com/clap-rs/clap ) from 3.0.0-rc.3 to 3.0.0-rc.4.
- [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/compare/clap_generate-v3.0.0-rc.3...clap_generate-v3.0.0-rc.4 )
---
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
dependabot[bot]
3c7a1f451a
Bump mockall from 0.10.2 to 0.11.0
Bumps [mockall](https://github.com/asomers/mockall ) from 0.10.2 to 0.11.0.
- [Release notes](https://github.com/asomers/mockall/releases )
- [Changelog](https://github.com/asomers/mockall/blob/master/CHANGELOG.md )
- [Commits](https://github.com/asomers/mockall/compare/v0.10.2...v0.11.0 )
---
updated-dependencies:
- dependency-name: mockall
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
c4491051b4
Bump async-trait from 0.1.51 to 0.1.52
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.51 to 0.1.52.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.51...0.1.52 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
5eb1c1004a
Bump clap from 3.0.0-rc.1 to 3.0.0-rc.3
Bumps [clap](https://github.com/clap-rs/clap ) from 3.0.0-rc.1 to 3.0.0-rc.3.
- [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/compare/clap_generate-v3.0.0-rc.1...clap_generate-v3.0.0-rc.3 )
---
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
dependabot[bot]
82dea71713
Bump vergen from 5.2.0 to 6.0.0
Bumps [vergen](https://github.com/rustyhorde/vergen ) from 5.2.0 to 6.0.0.
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/5.2.0...6.0.0 )
---
updated-dependencies:
- dependency-name: vergen
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
5730268ba6
Bump clap from 3.0.0-beta.5 to 3.0.0-rc.1
Bumps [clap](https://github.com/clap-rs/clap ) from 3.0.0-beta.5 to 3.0.0-rc.1.
- [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/compare/v3.0.0-beta.5...clap_generate-v3.0.0-rc.1 )
---
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
Thomas Eizinger
f631de9ab0
Bump sha2 and hkdf to latest versions
3 years ago
Lucas Soriano
d81f313a8e
Revert "Release version 0.3.1"
3 years ago
itchymax
2bf6d867c6
Prepare release 0.3.1
3 years ago
itchymax
205a61ab9e
Prepare release 0.3.0
3 years ago
Thomas Eizinger
d8ce3151a1
Use latest bdk HEAD
3 years ago
Thomas Eizinger
e42a85ebcf
Replace wallet DB with in-memory DB
BDK's database only acts as a cache and can always be fully restored
by deleting it. With an Electrum backend, syncing is very quick meaning
the local cache basically does not serve any purpose. We've been having
troubles with BDK's database being broken due to internal inconsistency
problems. Switching to an in-memory database should fix these because
a restart of the application essentially wipes the database.
Resolves #465 .
3 years ago
itchymax
88f64a0bba
Prepare release 0.2.0
3 years ago
Daniel Karzel
fbdc6c5e77
Hello message
3 years ago
dependabot[bot]
071a9efd9b
Bump bdk from 0.13.0 to 0.14.0
Bumps [bdk](https://github.com/bitcoindevkit/bdk ) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/bitcoindevkit/bdk/releases )
- [Changelog](https://github.com/bitcoindevkit/bdk/blob/v0.14.0/CHANGELOG.md )
- [Commits](https://github.com/bitcoindevkit/bdk/compare/v0.13.0...v0.14.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]
ef926f8525
Bump rust_decimal_macros from 1.17.0 to 1.18.0
Bumps [rust_decimal_macros](https://github.com/paupino/rust-decimal ) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/paupino/rust-decimal/releases )
- [Commits](https://github.com/paupino/rust-decimal/compare/1.17.0...1.18.0 )
---
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]
c1e0835fc7
Bump rust_decimal from 1.17.0 to 1.18.0
Bumps [rust_decimal](https://github.com/paupino/rust-decimal ) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/paupino/rust-decimal/releases )
- [Commits](https://github.com/paupino/rust-decimal/compare/1.17.0...1.18.0 )
---
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
itchymax
26b75b75d6
Prepare release 0.1.2
3 years ago
dependabot[bot]
8fd42a8b8f
Bump rust-embed from 6.2.0 to 6.3.0
Bumps [rust-embed](https://github.com/pyros2097/rust-embed ) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/pyros2097/rust-embed/releases )
- [Changelog](https://github.com/pyros2097/rust-embed/blob/master/changelog.md )
- [Commits](https://github.com/pyros2097/rust-embed/commits )
---
updated-dependencies:
- dependency-name: rust-embed
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
3b66dc35f5
Bump derive_more from 0.99.16 to 0.99.17
Bumps [derive_more](https://github.com/JelteF/derive_more ) from 0.99.16 to 0.99.17.
- [Release notes](https://github.com/JelteF/derive_more/releases )
- [Changelog](https://github.com/JelteF/derive_more/blob/master/CHANGELOG.md )
- [Commits](https://github.com/JelteF/derive_more/compare/v0.99.16...v0.99.17 )
---
updated-dependencies:
- dependency-name: derive_more
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
10b0445540
Bump ndarray from 0.15.3 to 0.15.4
Bumps [ndarray](https://github.com/rust-ndarray/ndarray ) from 0.15.3 to 0.15.4.
- [Release notes](https://github.com/rust-ndarray/ndarray/releases )
- [Changelog](https://github.com/rust-ndarray/ndarray/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-ndarray/ndarray/compare/0.15.3...0.15.4 )
---
updated-dependencies:
- dependency-name: ndarray
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Mariusz Klochowicz
beb10e84fd
Don't use tokio feature from xtra
Prefer using our FutureExt to enforce keeping RemoteHandles to prevent zombie
tasks.
3 years ago
Thomas Eizinger
cfc8add012
Change to edition 2021
3 years ago
Thomas Eizinger
d2217d3f91
Make number of payouts configurable
This allows us to use less payouts in the tests which makes them
faster.
3 years ago
Mariusz Klochowicz
a6392c6d00
Use xtra-productivity from comit-network
3 years ago
itchymax
c3fc1ca871
Prepare release 0.1.1
3 years ago
Mariusz Klochowicz
b3abfd027b
Depend on cfd protocol from `maia` repository
Cfd protocol got moved into a separate repository.
All references of `cfd_protocol` were renamed to `maia`.
Patch cargo.toml with a fixed git revision until it gets a public release.
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
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
Mariusz Klochowicz
45014e5738
Add a feature flag to opt-in for long-running integration tests
This allows opting-in for longer-running tests by enabling "expensive_tests"
feature, instead of waiting for a few minutes after starting `cargo test`.
Amend the CI to run all the tests (including expensive ones) on every run.
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
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]
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]
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
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
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
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
Thomas Eizinger
4ac13e405e
Make sure we can request HTTPS urls
3 years ago