Skip to content

Commit 22579ed

Browse files
authored
feat(hermes): release v2 initial API (#1293)
The V2 API provide more functionality compared to the V1 such as supporting benchmark proofs for multiple ids. This change bumps the Hermes version to initiate a release and also fixes a couple of minor things: - Update build.rs to not panic on rebuilds - Remove an unused benchmarks file - Add all the V2 endpoints to docs
1 parent 5dcf5ca commit 22579ed

File tree

5 files changed

+8
-138
lines changed

5 files changed

+8
-138
lines changed

hermes/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hermes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hermes"
3-
version = "0.4.5"
3+
version = "0.5.0"
44
description = "Hermes is an agent that provides Verified Prices from the Pythnet Pyth Oracle."
55
edition = "2021"
66

hermes/build.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ fn main() {
1414
// directory as a mini-repo with wormhole and googleapis as remotes, so we can copy out the
1515
// TREEISH paths we want.
1616
let protobuf_setup = r#"
17+
set -euo pipefail
1718
git init .
1819
git clean -df
19-
git remote add wormhole https://github.com/wormhole-foundation/wormhole.git
20-
git remote add googleapis https://github.com/googleapis/googleapis.git
20+
git remote add wormhole https://github.com/wormhole-foundation/wormhole.git || true
21+
git remote add googleapis https://github.com/googleapis/googleapis.git || true
2122
git fetch --depth=1 wormhole main
2223
git fetch --depth=1 googleapis master
24+
git reset
25+
rm -rf proto/
2326
git read-tree --prefix=proto/ -u wormhole/main:proto
2427
git read-tree --prefix=proto/google/api/ -u googleapis/master:google/api
2528
"#;

hermes/src/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ pub async fn run(opts: RunOptions, state: ApiState) -> Result<()> {
122122
rest::latest_vaas,
123123
rest::price_feed_ids,
124124
rest::latest_price_updates,
125+
rest::timestamp_price_updates,
125126
),
126127
components(
127128
schemas(

hermes/src/api/benchmarks.rs

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)