Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hermes: Add prv publish time metadata #1061

Merged
merged 2 commits into from
Sep 22, 2023
Merged

Conversation

ali-bahjati
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented Sep 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Sep 21, 2023 5:41pm
xc-admin-frontend ⬜️ Ignored (Inspect) Sep 21, 2023 5:41pm

@@ -18,9 +18,8 @@ const argvPromise = yargs(hideBin(process.argv))
type: "array",
demandOption: true,
})
.option("price-service", {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a minor change to move to hermes

@ali-bahjati ali-bahjati changed the title Hermes/add prv publish time Hermes: Add prv publish time metadata Sep 21, 2023
@@ -333,7 +334,7 @@ where
.iter()
.map(|message_state| match message_state.message {
Message::PriceFeedMessage(price_feed) => Ok(PriceFeedUpdate {
price_feed: PriceFeed::new(
price_feed: PriceFeed::new(
Copy link
Contributor

@cctdaniel cctdaniel Sep 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the extra spacing seems weird but seems like it passes pre-commit 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it is the rust formatter config that we have :D

pub slot: Option<Slot>,
pub received_at: Option<UnixTimestamp>,
pub update_data: Option<Vec<u8>>,
pub prev_publish_time: Option<UnixTimestamp>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realise we can't change it at this point but It's a shame this isn't last_publish_time like other last_ fields we have in our codebases.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think here prev is more clear than last.

@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/price-service-client",
"version": "1.7.0",
"version": "1.8.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌 on the respecting semver

@ali-bahjati ali-bahjati merged commit 65ecd89 into main Sep 22, 2023
4 checks passed
@ali-bahjati ali-bahjati deleted the hermes/add-prv-publish-time branch September 22, 2023 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants