Skip to content

Commit

Permalink
feat(hermes): release v2 initial API (#1293)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ali-bahjati authored Feb 12, 2024
1 parent 5dcf5ca commit 22579ed
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 138 deletions.
2 changes: 1 addition & 1 deletion hermes/Cargo.lock

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

2 changes: 1 addition & 1 deletion hermes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hermes"
version = "0.4.5"
version = "0.5.0"
description = "Hermes is an agent that provides Verified Prices from the Pythnet Pyth Oracle."
edition = "2021"

Expand Down
7 changes: 5 additions & 2 deletions hermes/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ fn main() {
// directory as a mini-repo with wormhole and googleapis as remotes, so we can copy out the
// TREEISH paths we want.
let protobuf_setup = r#"
set -euo pipefail
git init .
git clean -df
git remote add wormhole https://github.com/wormhole-foundation/wormhole.git
git remote add googleapis https://github.com/googleapis/googleapis.git
git remote add wormhole https://github.com/wormhole-foundation/wormhole.git || true
git remote add googleapis https://github.com/googleapis/googleapis.git || true
git fetch --depth=1 wormhole main
git fetch --depth=1 googleapis master
git reset
rm -rf proto/
git read-tree --prefix=proto/ -u wormhole/main:proto
git read-tree --prefix=proto/google/api/ -u googleapis/master:google/api
"#;
Expand Down
1 change: 1 addition & 0 deletions hermes/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ pub async fn run(opts: RunOptions, state: ApiState) -> Result<()> {
rest::latest_vaas,
rest::price_feed_ids,
rest::latest_price_updates,
rest::timestamp_price_updates,
),
components(
schemas(
Expand Down
134 changes: 0 additions & 134 deletions hermes/src/api/benchmarks.rs

This file was deleted.

0 comments on commit 22579ed

Please sign in to comment.