Thomas Eizinger
be246a8235
Merge pull request #55 from comit-network/optimize-ci
3 years ago
Thomas Eizinger
921edca806
Rename jobs to be more descriptive
3 years ago
Thomas Eizinger
b5fe043ca8
Optimize CI run time
By doing a single `cargo build` ahead of time, we are creating all
necessary binaries at once. This allows our cache to work for tests
as well as the binaries.
There is also no need to use release binaries for the smoke test.
Building debug binaries is a lot faster and serves the same purpose:
Checking whether the application actually starts up.
3 years ago
Mariusz
80e57b0506
Merge pull request #46 from comit-network/integrate-protocol
Integrate protocol into daemons
3 years ago
Thomas Eizinger
d459af14d1
Integrate CFD protocol into the maker and taker
- Add wallet to maker and taker.
For now we have different, static descriptors with a hardcoded DB
path. We also only operate on testnet and use sled as a database.
- Associate each CET with a unique nonce_pk
Eventually a set of `(message, nonce_pk)`.
- Share transactions with maker
- Add serialisation support to adaptor signature
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
Co-authored-by: Lucas Soriano del Pino <l.soriano.del.pino@gmail.com>
3 years ago
Thomas Eizinger
e9e9c06dab
Merge pull request #52 from comit-network/fix-initialize-cfd-feed
3 years ago
Thomas Eizinger
cb0184e8d4
Merge pull request #49 from comit-network/taker-startup-fix
3 years ago
Daniel Karzel
2bf258b1c3
Initialize cfd feed with existing CFDs from db
3 years ago
Daniel Karzel
88c88123c1
Fixes starting up the taker daemon
3 years ago
Thomas Eizinger
788c6e1db7
Merge pull request #42 from comit-network/nonce-pk-in-payout
Move `nonce_pk` to `Payout` type
3 years ago
Lucas Soriano del Pino
585d000694
Move nonce_pk to Payout type
It makes sense to put the `nonce_pk` together with the `message`,
since they're both used to generate the attestation (signature) point.
We also remove the `OracleParams` type since it would only have one
field after this change.
3 years ago
Thomas Eizinger
1670a1f3ac
Merge pull request #32 from comit-network/renewal
Add `renew_cfd_transactions` API
3 years ago
Thomas Eizinger
1fc6c8c6c8
Merge pull request #41 from comit-network/transition-to-actor-model
Remodel daemons to follow actor model more closely
3 years ago
Lucas Soriano del Pino
a693f19976
Do not destructure CfdKeys type
3 years ago
Thomas Eizinger
3112f1f7be
Remodel daemons to follow actor model more closely
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
3 years ago
Lucas Soriano del Pino
bffe4c603e
Refactor cfd tests
In order to reuse code and to make it easier to add new tests (e.g.
negative tests) in the future.
3 years ago
Lucas Soriano del Pino
31f1a87d3a
Rename finalize_spend_transaction arguments
To convey that the order in which these pairs of arguments are passed
in is irrelevant.
3 years ago
Lucas Soriano del Pino
a24dd67f20
Add create test helper
3 years ago
Lucas Soriano del Pino
66c4c58a2d
Define and implement TransactionExt::outpoint
3 years ago
Lucas Soriano del Pino
d95eeda49f
Use iter::chain and iter::once
Instead of `vec![vec![]].concat()`.
3 years ago
Lucas Soriano del Pino
641faceb8a
Add renew_cfd_transactions API
3 years ago
Thomas Eizinger
a71d2a68a8
Merge pull request #40 from comit-network/minimize-dependencies
3 years ago
Thomas Eizinger
d6b8df7958
`macros` is a default feature
3 years ago
Thomas Eizinger
ea07efcae8
Remove proptest while we are not using it
3 years ago
Thomas Eizinger
8993492543
Track bdk's rev in lockfile
3 years ago
Thomas Eizinger
89e75d117d
Don't activate features we don't use
3 years ago
Thomas Eizinger
7af1e1310e
Deactivate futures default features
3 years ago
Thomas Eizinger
2234e15ce9
Remove unused dependency
3 years ago
Thomas Eizinger
dd17d7da1a
Align bdk versions
3 years ago
Thomas Eizinger
f54560a148
Proptest is a test dependency
3 years ago
Thomas Eizinger
b9c8146b71
Merge pull request #37 from thomaseizinger/fix-ci
3 years ago
Thomas Eizinger
96b3be2388
Make yarn job separate steps
3 years ago
Thomas Eizinger
52d24de1a8
Cache clippy artifacts
3 years ago
Thomas Eizinger
b37c972da7
Condense CI configuration
3 years ago
Thomas Eizinger
b5dc3fa6ed
Fix invalid CI configuration
3 years ago
Thomas Eizinger
9cb0a3085e
Merge pull request #13 from comit-network/frontend-backend
Initial taker UI+daemon prototype
3 years ago
Daniel Karzel
be7fa3e612
Initial daemon and frontend for taker and maker
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
3 years ago
Lucas Soriano del Pino
6a21f4e31a
Increase ContractExecutionTransaction::SIGNED_VBYTES constant
We were only testing against CETs with a single output, so the
`SIGNED_VBYTES` constant was based on a smaller transaction than
usual.
We could use a different constant for the case when the CET has a
single output, but it's just an edge case and the transaction fees are
very small.
3 years ago
Lucas Soriano del Pino
b654172b80
Rename tests file
3 years ago
Lucas Soriano del Pino
2a9e49ca9a
Take raw lock transaction in CommitTransaction constructor
We remove the `LockTransaction` type accordingly.
3 years ago
Lucas Soriano
63896c4f6b
Merge pull request #31 from comit-network/no-address
Extract script from descriptor directly
3 years ago
Thomas Eizinger
080e1d6364
Extract script from descriptor directly
No need to do a round-trip to an address and back!
3 years ago
Lucas Soriano
d286c79f0f
Merge pull request #29 from comit-network/mini-fixes
Fix a couple of small things
3 years ago
Lucas Soriano del Pino
ab7dfe2fd6
Remove redundant anyhow::context
3 years ago
Lucas Soriano del Pino
5e6f6b4d5a
Use byte strings in tests
3 years ago
Lucas Soriano
cfea875343
Merge pull request #28 from comit-network/message-as-string
Get rid of unnecessary and unwanted `Message` type
3 years ago
Lucas Soriano del Pino
e3607c0734
Get rid of unnecessary and unwanted Message type
3 years ago
Lucas Soriano
099a3104b4
Merge pull request #24 from comit-network/hashmap-from-iter
Construct satisfiers using HashMap::from_iter
3 years ago
Lucas Soriano del Pino
658e0cf21f
Fix name of Payout private method
And also take self by value since it's a type that implements `Copy`.
3 years ago
Lucas Soriano del Pino
c299c2cdb4
Construct satisfiers using HashMap::from_iter
3 years ago