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

[cosmwasm] Use ParsedVaa from wormhole contract #1237

Merged
merged 7 commits into from
Jan 24, 2024

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Jan 23, 2024

I noticed this while playing around with the cosmos contract.
We were copy pasting ParsedVAA and WormholeQueryMsg instead of importing them from cw_wormhole.
The reason for this seems to be incompatiblity with osmosis. However I was able to build properly with osmosis, so it think the reason doesn't exist anymore and we can import from the wormhole crate.

Copy link

vercel bot commented Jan 23, 2024

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) Visit Preview Jan 24, 2024 5:00pm
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 5:00pm

assert_eq!(result, Ok(true));

// insufficient fee in base denom -> false
info.funds = coins(50, "foo");
let result = is_fee_sufficient(&deps, info.clone(), &data);
let result = is_fee_sufficient(deps, info.clone(), data);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Clippy did this

@@ -1,46 +0,0 @@
// These types are copied from the Wormhole contract. See the links with each type to see the original code
// The reason to do so was dependency conflict. Wormhole contracts were using a very old version of a dependency
// which is not compatible with the one used by osmosis-sdk. And since we weren't using anything else from
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems like this comment is outdated

@guibescos guibescos changed the title Use ParsedVaa from wormhole contract [cosmwasm] Use ParsedVaa from wormhole contract Jan 23, 2024
@guibescos guibescos marked this pull request as ready for review January 23, 2024 21:08
Copy link
Contributor

@jayantk jayantk left a comment

Choose a reason for hiding this comment

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

I think if it builds, it should be fine?

@m30m
Copy link
Collaborator

m30m commented Jan 24, 2024

Thanks! It would be great if you can run Release Pyth Cosmwasm Contract workflow against this branch just to make sure everything works.

@guibescos guibescos force-pushed the cosmwasm/use-wormhole-contract branch from 44713ae to 6b877b9 Compare January 24, 2024 16:00
@guibescos guibescos merged commit 6917c84 into main Jan 24, 2024
5 checks passed
@guibescos guibescos deleted the cosmwasm/use-wormhole-contract branch January 24, 2024 17:40
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.

4 participants