Commit Graph

13 Commits

Author SHA1 Message Date
Ali Behjati 15e35aa300 Fix wormhole message parsing 2023-06-05 15:19:48 +01:00
Ali Behjati fca22a5b2e Fix pythnet listner 2023-06-05 15:19:48 +01:00
Ali Behjati ec5ad5fe79 Use slot for pending accumulations 2023-06-05 15:19:48 +01:00
Ali Behjati 05bd9b4be7 Use wormhole sdk 2023-06-05 15:19:48 +01:00
Ali Behjati d93154a58d Fix ping problem from client 2023-06-05 15:19:48 +01:00
Ali Behjati 866eace744 Add initial version 2023-06-05 15:19:48 +01:00
Ali Behjati 8a5a74ec34
[hermes] Add WS (#773)
* [hermes] Add WS

* Address Jayant comments

* Update hermes/src/network/rpc/ws.rs

Co-authored-by: Reisen <Reisen@users.noreply.github.com>

* Address David comments

---------

Co-authored-by: Reisen <Reisen@users.noreply.github.com>
2023-05-01 19:05:15 +02:00
Thomaz Leite 04b1a21dfe
[hermes] Pass Wormhole arguments from command line or env. vars (#769)
* Format p2p.go

* Pass Wormhole arguments from command line or env. vars

* Remove forget calls and let memory be freed (also remove confusing comment)

* Use proper types on command line arguments
2023-04-19 17:04:30 -03:00
Ali Behjati c951ff634a
[hermes] Improve latest feeds rest api (#752)
* [hermes] Improve latest feeds rest api

This change adds verbose and binary option to latest_price_feeds
endpoint. Unfortunately it exposes many internal information which
required touching different components to expose batch_vaa specific
information. The code is now coupled to batch_vaa and we need to
refactor it when we add other proof types (and eventually remove it when
it get deprecated).

* Update hermes/src/network/rpc/rest.rs

Co-authored-by: Reisen <Reisen@users.noreply.github.com>

* Update hermes/src/network/rpc/rest.rs

Co-authored-by: Reisen <Reisen@users.noreply.github.com>

* Fix merge

---------

Co-authored-by: Reisen <Reisen@users.noreply.github.com>
2023-04-18 18:14:07 +02:00
Ali Behjati 3ad3a46b1d
[hermes] add get price feed ids + refactor (#747)
* [Hermes] Add get price feed ids + refactor

* Address feedbacks
2023-04-18 17:50:34 +02:00
Ali Behjati 32596d5d4e
[hermes] Add more rest api methods (#746)
* [hermes] Add more rest api methods

Add many of the price service apis. Per David suggestion, we do
validation in parsing instead of doing it later. I didn't find
any suitable library to deserialize our hex format so I created
a macro to implement it because we use it in a couple of places.
I tried making a generic HexInput but couldn't make it working
(and I need other crates like generic_array for it which makes
the code more complex)

* Address feedbacks
2023-04-18 17:20:11 +02:00
Ali Behjati 1af86140f1
[hermes] Add basic structure for price store and rpc (#717)
Co-authored-by: Reisen <Reisen@users.noreply.github.com>
2023-03-30 14:27:02 +02:00
Reisen 3f56b3064d
[hermes] Rename from price service and add README. (#705)
* pyth-node: rename from price service and document

* pyth_node: Add visual architecture to README.
2023-03-21 14:36:13 +00:00