Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 2 additions & 202 deletions hermes/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions hermes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hermes"
version = "0.1.2"
version = "0.1.3"
edition = "2021"

[dependencies]
Expand Down Expand Up @@ -35,11 +35,10 @@ libp2p = { version = "0.42.2", features = [
]}

log = { version = "0.4.17" }
moka = { version = "0.11.0", features = ["future"] }
pyth-sdk = { version = "0.7.0" }

# Parse Wormhole attester price attestations.
pythnet-sdk = { path = "../pythnet/pythnet_sdk/", version = "=1.13.6", features = ["strum"] }
pythnet-sdk = { path = "../pythnet/pythnet_sdk/", version = "2.0.0", features = ["strum"] }

rand = { version = "0.8.5" }
reqwest = { version = "0.11.14", features = ["blocking", "json"] }
Expand Down
2 changes: 1 addition & 1 deletion hermes/src/api/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl RpcPriceFeed {
let price_feed_message = price_feed_update.price_feed;

Self {
id: PriceIdentifier::new(price_feed_message.id),
id: PriceIdentifier::new(price_feed_message.feed_id),
price: Price {
price: price_feed_message.price,
conf: price_feed_message.conf,
Expand Down
2 changes: 1 addition & 1 deletion hermes/src/api/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl Subscriber {
{
let config = self
.price_feeds_with_config
.get(&PriceIdentifier::new(update.price_feed.id))
.get(&PriceIdentifier::new(update.price_feed.feed_id))
.ok_or(anyhow::anyhow!(
"Config missing, price feed list was poisoned during iteration."
))?;
Expand Down
Loading