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
2 changes: 1 addition & 1 deletion apps/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 apps/hermes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hermes"
version = "0.5.10"
version = "0.5.11"
description = "Hermes is an agent that provides Verified Prices from the Pythnet Pyth Oracle."
edition = "2021"

Expand Down
13 changes: 2 additions & 11 deletions apps/hermes/src/api/doc_examples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,8 @@ pub fn price_feed_id_example() -> &'static str {

/// Example value for a unix timestamp
pub fn timestamp_example() -> UnixTimestamp {
use std::time::{
SystemTime,
UNIX_EPOCH,
};

let start = SystemTime::now();
let since_the_epoch = start
.duration_since(UNIX_EPOCH)
.expect("Time went backwards");

since_the_epoch.as_secs() as UnixTimestamp
const STATIC_UNIX_TIMESTAMP: UnixTimestamp = 1717632000; // Thursday, 6 June 2024 00:00:00 GMT
STATIC_UNIX_TIMESTAMP
}

/// Example value for a VAA
Expand Down