Skip to content

Add an example script for benchmarks #647

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

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Add an example script for benchmarks #647

merged 1 commit into from
Mar 1, 2023

Conversation

jayantk
Copy link
Contributor

@jayantk jayantk commented Mar 1, 2023

This example uses the get_vaa endpoint and passes the result to parsePriceFeedUpdates. I validated that this works locally.

@vercel
Copy link

vercel bot commented Mar 1, 2023

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

2 Ignored Deployments
Name Status Preview Updated
example-oracle-amm ⬜️ Ignored (Inspect) Mar 1, 2023 at 4:25PM (UTC)
xc-admin-frontend ⬜️ Ignored (Inspect) Mar 1, 2023 at 4:25PM (UTC)

console.log(priceFeedUpdateVaa);

const priceFeedUpdate =
"0x" + Buffer.from(priceFeedUpdateVaa, "base64").toString("hex");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's kind of janky that the user has to convert the data format. We should fix this as part of our overall client js refactoring.

@jayantk jayantk merged commit deb8046 into main Mar 1, 2023
@jayantk jayantk deleted the benchmark_example branch March 1, 2023 20:34
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.

2 participants