Philipp Hoenisch
95713fc4cd
Add table for rendering CFDs
3 years ago
Philipp Hoenisch
37ce8bcd18
Remove unused css
3 years ago
Thomas Eizinger
2290b60ae2
Merge pull request #140 from comit-network/fix-embedded-sources
Replace negative .gitignores with build script
3 years ago
Thomas Eizinger
e7774dc29f
Replace negative .gitignores with build script
Vite deletes the `dist` directory on re-builds. That will also delete
the gitignore which makes the generated files show up in Git.
We need those directories to exist otherwise `rust-embed` fails.
Use a build-script to create them when we compile the daemons.
3 years ago
Thomas Eizinger
f1b31a2a07
Merge pull request #125 from comit-network/simplify-ui
3 years ago
Mariusz
8f1e3dd83a
Merge pull request #135 from comit-network/gitignore
Add database and seed files to .gitignore
3 years ago
Mariusz Klochowicz
f340a70c93
Add database and seed files to .gitignore
3 years ago
Mariusz
42b5ea9c58
Merge pull request #134 from comit-network/taker-actor-refactor
Don't repeat names in module and types
3 years ago
Mariusz Klochowicz
4dd27fbd25
Don't repeat names in module and types
Same refactor as recently on the maker side.
3 years ago
Philipp Hoenisch
f22ee62ac3
Merge pull request #130 from comit-network/follow-up
3 years ago
Philipp Hoenisch
609b3f22d4
Don't double load from db
3 years ago
Philipp Hoenisch
95906ed5e6
The order was removed in TakeOrder
3 years ago
Thomas Eizinger
ffeec85459
Simplify UI
- No more routes for trade, wallet and settings.
- Use Grid instead of flexbox.
3 years ago
Daniel Karzel
edeb3565d4
Merge pull request #128 from comit-network/misc-improvements
Misc improvments
3 years ago
Thomas Eizinger
81259e1b61
Decouple wallet sync from cfd actors
Now that we have a cloneable wallet, we don't actually need to have
a single owner of it.
3 years ago
Thomas Eizinger
54263ce38a
Don't repeat names in modules and types
3 years ago
Thomas Eizinger
4d33083af7
Rename variable
This piece of code is always in the scope of the maker, no need to
repeat that.
We also don't need to repeat the data type in the name.
3 years ago
Thomas Eizinger
e69ffc86b9
Initialize the addresses to other actors without `Option`
By creating the `Context` first, we can obtain an address without
actually instantiating the actor. This allows us to have two actors
own a reference to each other without the use of `Option`.
3 years ago
Thomas Eizinger
0ad9348e32
Don't repeat name in module and type
3 years ago
Mariusz
fa55d69da2
Merge pull request #126 from comit-network/xtra-taker
Roll-out xtra framework inside TakerCfdActor
3 years ago
Mariusz Klochowicz
576237ce3e
Don't use unwrap() inside MakerCfdActor
3 years ago
Mariusz Klochowicz
15ecdf01b0
Roll-out xtra framework into the taker actor
3 years ago
Thomas Eizinger
b5509a0edd
Merge pull request #119 from comit-network/accept-order
3 years ago
Philipp Hoenisch
822edc206d
Rename TakeOrder to TakeOffer
3 years ago
Philipp Hoenisch
08f31f11f7
Remove unused CfdState
3 years ago
Philipp Hoenisch
a0951c03ac
Add accept/reject order feature to maker
3 years ago
Thomas Eizinger
a9e1a42d56
Merge pull request #113 from comit-network/bitmex-price-feed
3 years ago
Philipp Hoenisch
2a6fe6b664
Rename TakeRequest to Order
3 years ago
Mariusz
342fd0c3b8
Merge pull request #124 from comit-network/fix-happy-path
Fix happy path
3 years ago
Thomas Eizinger
33a27d4d92
Don't dbg log the latest state
3 years ago
Thomas Eizinger
e7f9d24e94
Start contract setup directly after sending the accept
The taker does this unconditionally, we don't need to wait for
another message on the maker side.
3 years ago
Thomas Eizinger
816f9b9791
Buffer incoming messages in case the maker is faster in reaching setup
3 years ago
Thomas Eizinger
49bff80b93
Destruct msg to access variables directly
3 years ago
Thomas Eizinger
7dd527ac72
Let rocket know what we are sending is JSON
3 years ago
Thomas Eizinger
b511f8e40c
Merge pull request #117 from comit-network/no-result-return-values
Cleanup MakerCfdActor
3 years ago
Philipp Hoenisch
d33a05c578
Merge pull request #118 from comit-network/fix-failling-test
Allow for presence/non-presence of index page
3 years ago
Philipp Hoenisch
759d0688e2
Allow for presence/non-presence of index page
A dev might have or might not have built the frontend. If he did not, a get request to `/` will result in a `HTTP::404`. If he did, the containing `index.html` will be returned leading to a `HTTP::200`.
3 years ago
Thomas Eizinger
a879b25a91
Replace unwraps with `?`
3 years ago
Thomas Eizinger
4eb44fd0d8
Move boilerplate to bottom of file
3 years ago
Thomas Eizinger
db29126c87
Have all handlers return `()`
Errors returned from handlers are swallowed. We must not return
errors from handlers.
3 years ago
Lucas Soriano
44937bd645
Merge pull request #100 from comit-network/collaborative-settlement
Add close_transaction API to cfd_protocol lib
3 years ago
Thomas Eizinger
aa331444da
Merge pull request #116 from comit-network/dependabot/cargo/tokio-1.12.0
Bump tokio from 1.11.0 to 1.12.0
3 years ago
Daniel Karzel
21b17b1db5
Merge pull request #102 from comit-network/replace-all-prints
Replace all the remaining println with tracing logs
3 years ago
dependabot[bot]
a7a3713569
Bump tokio from 1.11.0 to 1.12.0
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.11.0...tokio-1.12.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
Daniel Karzel
72ffe1b325
Replace all the remaining println with tracing logs
3 years ago
Mariusz
7a1d9cce3f
Merge pull request #115 from comit-network/contract-setup-fix
Send the protocol messages to the actor asynchronously
3 years ago
Mariusz Klochowicz
d407b7f654
Send the protocol messages to the actor asynchronously
`send()` does not actually send anything unless its polled; convert to
`do_send_async()` like elsewhere to send the message.
3 years ago
Mariusz
05192b5b62
Merge pull request #112 from comit-network/taker-msg-fix
Add missing await for the message announcing NewTakerOnline
3 years ago
Thomas Eizinger
25d54078e7
Add BitMex price feed
Fixes #96 .
3 years ago
Mariusz Klochowicz
1ab92469a1
Add missing await for the message announcing NewTakerOnline
Without the await, the message was never sent and the taker could not see new offers.
3 years ago