Daniel Karzel
b4a6d3a7d8
Merge pull request #127 from comit-network/monitor
Monitor
3 years ago
Thomas Eizinger
bd41533db1
Merge pull request #138 from comit-network/simplify-auth-route-testing
3 years ago
Philipp Hoenisch
fc1cb08b49
Merge pull request #148 from comit-network/beautify-ui
3 years ago
Daniel Karzel
5163bdcb47
Merge pull request #147 from comit-network/fix-sql
Fix sql
3 years ago
Daniel Karzel
703a669ec0
Make the test pass
The problem was that the restriction on the JOIN clause does not properly filter the complete set, but actually results in wrongly joining the CFDs.
This resulted in two CFDs returned, where one was wrongly assembled (the id of the first one, but the data of the second one).
In a cases where the wrong one is the first one in the list of returned CFDs we would run into an error when inserting a new state, because we would try to alter the state of a wrong CFD.
Fixed by joining on the id and filtering for the order.uuid in the where clause.
Note:
I also tested to add the `and orders.uuid = ?` restriction to the first join clause (in addition to the id clause) which might theoretically be more optimized.
That would work as well, but I found it harder to reason about it. As part of the overall where clause one can see the restriction to exactly this value more clearly.
3 years ago
Daniel Karzel
a84fd60179
Add failing test
A test that shows, that if we save two CFDs in the database, we fail to correctly load the second CFD by order-uuid.
3 years ago
Philipp Hoenisch
b8ed118fe9
TS ignore all the things.
This is needed due to missing type declarations
3 years ago
Philipp Hoenisch
dff0f83a5c
Fmt and removed unused file
3 years ago
Philipp Hoenisch
ce7346023c
Attempt to beautify maker ui
3 years ago
Philipp Hoenisch
182302215e
Attempt to beautify taker ui
3 years ago
Philipp Hoenisch
c208906fce
Auto truncate wallet address
3 years ago
Philipp Hoenisch
6622402715
Format wallet timestamp
3 years ago
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
Lucas Soriano del Pino
366c415314
Introduce monitor actor
3 years ago
Daniel Karzel
aa3355d521
Sequence diagram blockchain monitoring and cfd actor
3 years ago
Thomas Eizinger
f1b31a2a07
Merge pull request #125 from comit-network/simplify-ui
3 years ago
Thomas Eizinger
c1b0ec63a4
Simplify testing of protected routes
To password protect a route, we only need to add the `Authenticated`
route guard. To test that this works as expected, we can create a
dummy route in the test which makes the rocket instance easier to
construct.
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