Commit Graph

364 Commits

Author SHA1 Message Date
Al Liu 8c1a521440
adapt to overwatch error handle (#24) 2022-12-12 23:06:15 +13:00
gusto ee0085e873
Continue CI steps even when one of them fails (#15)
* Continue CI steps even when one of them fails
* Build all features in CI
* Test all features in CI
2022-12-01 18:46:27 +02:00
Giacomo Pasini 0db0544a77
fix tests (#14) 2022-11-23 15:49:43 +01:00
Giacomo Pasini 90c7de6271
Split services into different crates (#13) 2022-11-23 14:43:22 +01:00
gusto 26e5580443
Add CI tests, clippy and fmt checks (#12)
Using logos-co/Overwatch CI scripts for tests and linting in PRs.
The idea is to use this for now, and later gather all common action definitions into one dedicated repository.

* Copied CI test, clippy and fmt steps from Overwatch
* Added go 1.19 to an action setup (required for building waku-rust-bindigs dep)
2022-11-23 15:10:17 +02:00
Al Liu e656fb2d9d
Bugfix: Forget to change `overwatch` to `overwatch_rs` (#11)
* direct clone on Bytes instead of deep copy(Bytes::copy_from_slice)

* change overwatch to overwatch_rs
2022-11-22 06:16:07 -08:00
Al Liu c127c1d18d
Fix cheap clone Bytes and Overwatch crate name update 2022-11-22 04:44:17 -08:00
Giacomo Pasini 3a15a9b722
Add log service (#4)
* add log service

* add ser/de to log config

* add futures dep
2022-11-21 15:35:52 +01:00
Daniel Sanchez dce6678904
Sled backend (#7)
* Add sled module

* Remove sled for now

* Implement sled as a storage backend

* Remove manual panic

* Refactor sled to adap to latest StorageBackend traits changes

* Use option bytes for sled transaction output

* Cleanup imports

* Add tests

* Removed unused scopes
2022-11-21 06:23:45 -08:00
Daniel Sanchez ece4b90550
Add testing NoSerde operator (#9) 2022-11-21 06:15:28 -08:00
Giacomo Pasini 61de96a5d3
Add Waku network backend (#3)
* Add Waku network backend

Add Waku as the first supported network backend and rework API.
In particular, the network message now depends on the underlying
network backend so that it can properly reflects specificities
of the protocol.
Another choice could have been to hardwire domain-specific actions
in the network message type (e.g. send block, send message, ...)
but was discarded in favor of a more general network service.

* address review comments

* add debug impl

* add Serialize/Deserialize to network settings

* add waku functionalities

* add a little bit of documentation
2022-11-21 12:03:47 +01:00
Daniel Sanchez a343249d92
Storage service (#6)
* Added storage main files and trait

* Pipe skeleton for StorageService

* Implement running StorageService

* Add sled module

* Refactor error reporting

* Missing logging todo

* Implement mock storage

* Add channel for auto-converting types on channel replies

* Simplify StorageBackend trait

* Refactor mock backend and use HashMap

* Remove sled for now

* Refactor serialization scheme

* Add storage traits docs

* Make transaction a custom trait. This way we can return stuff from the transactions themselves if needed.
2022-11-18 09:46:54 +01:00
Giacomo Pasini 0fcfd92a55
Initial network service (#2)
* initial network service

* [style] unpack inbound relay
2022-11-03 06:28:37 -07:00
Daniel Sanchez e9857d979b
Initial commit 2022-10-25 13:40:24 +02:00