-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Market decentralized - broadcast offers (#290)
* Add database most important tables * Insert offer to database * [Test] Check market state after subscribing offer * Unsubscribe offer * [Test] Add check on not existing subsctiption id * Subscribe demand and unsubscribe [+Test] * Add http endpoints * Decentralized market running instruction * SubscriptionId consists of random part and offer/demand hash * rebased on service-ctx-sep-dbs * Add timestamps to Offer/Demand * Cargo fmt * Try to bind to broadcast * Binding to broadcast works in test * Broadcasting offers. Receiving Offers fast implementation just to check - still doesn't work * Get rid of dyn Discovery. Trait is not needed anymore, since we can mock on net level * Stop Offer propagation if it already existed in db or error occured * [Docs] Describe how to use logger with test suite * Fix: BCastService returns correct value if topic is new * Broadcasting Offers works with yagna service * Fix unsubscribe Offer/Demand http response * No need for additional Discovery functions with Arc<DiscoveryImpl> * Review fixes: bind_gsb takes &str, Subscribe endpoint returns Ok string * Offer/Demand borrowed in subscribe * Fix: Offers/Demands serde_json to string conversion; Extend tests to compare full Offer/Demand * Cosmetic change: use or_else instead of cimplicated matching Co-authored-by: Piotr Chromiec <tworec@golem.network>
- Loading branch information
1 parent
900863f
commit ad92480
Showing
28 changed files
with
578 additions
and
268 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.