-
Notifications
You must be signed in to change notification settings - Fork 717
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
terra: migrate to cosmwasm 1.1.0 #3138
Conversation
88ab475
to
aa03d41
Compare
If we go with option 1, do we risk more future breakages? |
ab88eb5
to
5e29b43
Compare
Any updates? It's still not fixed half a year since then. |
3bd7c26
to
8d196f2
Compare
7d2f893
to
410e793
Compare
922c159
to
4c7df7b
Compare
4e1ce8f
to
e689c73
Compare
e689c73
to
bbffe9c
Compare
af0da08
to
fd4068d
Compare
7f32f7f
to
447eaef
Compare
447eaef
to
7679f49
Compare
25aedba
to
7b797f2
Compare
for those who'd like to re-review the recent force push, here's the diff https://github.com/wormhole-foundation/wormhole/compare/3567b59af39cf10606b744a57c54013041cf50ff..ckiss/fix-groundbreaking-terra-upgrade |
use `classic-bindings` crate instead of terra-cosmwasm. This is the updated version that calls the correct query post chain upgrade
Since the tests are now ran against the new LocalTerra which has burn tax, the transaction results are different from before
74286d2
to
7b321ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed terra sub-directory. Nicely done
* terra/contracts: migrate to cosmwasm 1.1.0 use `classic-bindings` crate instead of terra-cosmwasm. This is the updated version that calls the correct query post chain upgrade * terra/Dockerfile: update workspace optimizer * terra: label is now required on instantiate * terra: accept either 32 or 20 byte addresses * terra: update devnet terra classic * node/cosmwasm: always CW >1 * tilt: re-introduce terra classic tests * terra: make get_address support both 20 and 32 byte addresses * terra: fix tests to account for burn tax Since the tests are now ran against the new LocalTerra which has burn tax, the transaction results are different from before * terra/token-bridge: check first 12 bytes to determine native denoms * terra/token-bridge: simplify conditional --------- Co-authored-by: Evan Gray <[email protected]>
Terra classic upgraded to CosmWasm 1.0+ (https://classic-agora.terra.money/t/wasmvm-v0-16-6-v1-2-0/50070/73), which introduced a number of breaking changes across the whole ecosystem, ranging from tooling to smart contracts.
This PR upgrades the terra classic contracts to the new CosmWasm stdlib version, along with upgrades to the testing pipeline to support the new version. Some contract changes had to be made to accommodate the new 32 byte addressing scheme, these are documented in #3597.
Reviewing the PR
The PR is best reviewied commit-by-commit. The upgrade to CW1 necessitated vendoring the
cw20-legacy
library. To keep things tidy, I forked it as a separate repo, the relevant commit is here wormhole-foundation/cw20-legacy@d127247.