Commit Graph

21 Commits

Author SHA1 Message Date
Ali Behjati 9416a8b586
chore(hermes): small improvements to add tests in CI and more (#1393)
* fix(hermes): fix a broken test

* refactor(hermes): add clippy to pre-commit

* feat(hermes): add ci for tests

* chore(hermes): remove legacy go footprint

* fix: add protoc action for ci

* chore: rebase on top of main

* fix: use right rust version for the Dockerfile

* fix: fix precommit ci
2024-03-27 13:55:26 +01:00
Daniel Chew 9fd9e170b2
[hermes] add /v2/price_feeds endpoint (#1277)
* initial stab

* fix comments

* add filter feature

* fix deprecated warnings

* use cache

* Update price_feeds API query

* Update PriceFeedsQueryParams struct in price_feeds.rs

* fix merge conflict

* fix default value

* add tracing info

* fix comment

* address comments

* change var name

* refactor

* refactor

* refactor

* refactor

* undo changes in cache.rs

* undo changes in aggregate.rs

* address comments

* address comments

* address comments and improve fetching data speed

* address comments

* address comments

* bump

* change chunk size

* change function name

* address comment

* address comments

* address comments

* address comments

* Remove debug print statement

* address comments and add to openapi
2024-02-28 15:17:13 +08:00
Ali Behjati 9da64103db feat(hermes): add metrics
Co-authored-by: Reisen <Reisen@users.noreply.github.com>
2023-10-18 15:04:10 +02:00
Reisen 2c0413dce4 feat(hermes): move to wormhole gRPC from p2p 2023-10-09 08:56:59 +01:00
Reisen 7ee97ce03c refactor(hermes): break up configuration 2023-09-25 13:22:10 +01:00
Ali Behjati 3a9df67ef2 refactor(hermes): move wormhole out of aggregate 2023-09-19 13:08:11 +02:00
Ali Behjati 09e2b17d1c refactor(hermes): rename store to aggregate 2023-09-19 13:08:11 +02:00
Reisen e144dd2bd0 refactor(hermes): removed `impl Store` 2023-09-19 13:08:11 +02:00
Reisen 860178f057 feat(hermes): add tracing 2023-09-05 13:50:20 +01:00
Reisen 5edcce4530 refactor(hermes): clean exit 2023-08-26 12:02:28 +01:00
Reisen b74df4ff17 refactor(hermes): pass run args as struct, add docstrings
In some cases arguments are passed and renamed (see `api_addr -> rpc_addr`) or
are unnecesarily converted (see `api_addr.to_string()` -> `api_addr.parse()`.
In the future, we are likely to add many more arguments to Hermes as well, so
this commit moves them into a separate struct which is forwarded throughout the
application instead.

The struct's are cloned, but only happens during launch of a hermes service
component so the cost doesn't matter.
2023-08-21 13:43:44 +01:00
Ali Behjati dfc2df779c
[hermes] Use raw_message for future-compatibility (#913) 2023-06-23 19:31:44 +02:00
Ali Behjati b596090bd8
[hermes] Switch to message structs in pythnet_sdk (#897) 2023-06-19 18:21:39 +02:00
Reisen 2b829f36a0
feat: guardian source from ethereum to pythnet (#894) 2023-06-16 15:48:36 +02:00
Ali Behjati 4fa9304b4f Move Message type extensions to pyth-client 2023-06-05 15:19:48 +01:00
Reisen a1dff0f5ac feat: add serializers for pyth formats
feat: use pythnet serialization in hermes

Fix vaa validation

Clippy

Update config names

Wrap Store with Arc

Store works perfectly without Arc as all it's elements are behind an Arc
or something similar to that, however a developer might make
mistake to add a field and missing it.

Improve error handling

Update metadata struct

Add metadata

Update Eth listener

Pin wormhole to a version

Fix ws dispatcher

fix: blocking in go recv corrupts tokio runtime

Make network <> store message passing non-blocking

Update logs and revert debug changes
2023-06-05 15:19:48 +01:00
Ali Behjati 8aeef6e6bd Add vaa verification 2023-06-05 15:19:48 +01:00
Ali Behjati d77070feae clippy 2023-06-05 15:19:48 +01:00
Ali Behjati d70119c067 Use pyth-oracle types 2023-06-05 15:19:48 +01:00
Ali Behjati fca22a5b2e Fix pythnet listner 2023-06-05 15:19:48 +01:00
Ali Behjati 866eace744 Add initial version 2023-06-05 15:19:48 +01:00