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

[price_service] Let callers specify VAA encoding #766

Merged
merged 6 commits into from
Apr 14, 2023
Merged

[price_service] Let callers specify VAA encoding #766

merged 6 commits into from
Apr 14, 2023

Conversation

jayantk
Copy link
Contributor

@jayantk jayantk commented Apr 14, 2023

We get a lot of questions about how to convert the base64 VAAs into hex and whatnot. This PR adds an "encoding" parameter to all of the endpoints that return a VAA which lets you pick the thing you want.

Note that I added a "0x" option which is hex, but with a 0x prepended. The EVM APIs seem to need this in various places.

UPDATE

I changed my mind about how this should work. The encoding parameter is itself hard for people to figure out, so I replaced it with a target_chain argument which is self-explanatory. The server will map the target chains to the desired encoding.

@vercel
Copy link

vercel bot commented Apr 14, 2023

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

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Apr 14, 2023 6:17pm
xc-admin-frontend ⬜️ Ignored (Inspect) Apr 14, 2023 6:17pm

Copy link
Contributor

@cctdaniel cctdaniel left a comment

Choose a reason for hiding this comment

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

🙇🏻‍♂️

@jayantk jayantk merged commit 6126db7 into main Apr 14, 2023
@jayantk jayantk deleted the hex2 branch April 14, 2023 18:29
Copy link
Contributor

@cctdaniel cctdaniel left a comment

Choose a reason for hiding this comment

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

nice! this seems to be more user friendly 🙇🏻‍♂️

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.

None yet

2 participants