Skip to content

Commit

Permalink
Add ibc-translator contract to the cosmwasm workspace and it's govern…
Browse files Browse the repository at this point in the history
…ance packet to the rust sdk. (#3174)

* Add ibc-translator contract and it's governance packet to the rust sdk.

* Remove unnecessary cargo script

* rustfmt and clippy fixes

* Address review comments

* Use WormholeQuery instead of contract to verify vaa, remove wormhole
core contract dependency, remove feature flag on anybuf.

* Add cw20 token metadata to tokenfactory metadata

* Change Simple/ContractControlled payloads to
GatewayTransfer/GatewayTransferWithPayload

* Change display and scaled denom to ensure x/bank conformance.
  • Loading branch information
misko9 authored Aug 10, 2023
1 parent 89e97fc commit 821a6e8
Show file tree
Hide file tree
Showing 18 changed files with 1,372 additions and 51 deletions.
152 changes: 113 additions & 39 deletions cosmwasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions cosmwasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ members = [
"packages/wormhole-bindings",
"packages/cw_transcode",
"contracts/wormhole-ibc",
"contracts/wormchain-ibc-receiver"
"contracts/wormchain-ibc-receiver",
"contracts/ibc-translator"
]

# Needed to prevent unwanted feature unification between normal builds and dev builds. See
Expand Down Expand Up @@ -40,4 +41,4 @@ wormhole-bindings = { path = "packages/wormhole-bindings" }
wormhole-cosmwasm = { path = "contracts/wormhole" }
wormhole-sdk = { path = "../sdk/rust/core" }
wormchain-ibc-receiver = { path = "contracts/wormchain-ibc-receiver" }
wormhole-ibc = { path = "contracts/wormhole-ibc" }
wormhole-ibc = { path = "contracts/wormhole-ibc" }
2 changes: 1 addition & 1 deletion cosmwasm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 1. The first stage builds the contracts
# 2. The second is an empty image with only the wasm files (useful for exporting)
# 3. The third creates a node.js environment to deploy the contracts to devnet
FROM cosmwasm/workspace-optimizer:0.12.6@sha256:e6565a5e87c830ef3e8775a9035006b38ad0aaf0a96319158c802457b1dd1d08 AS builder
FROM cosmwasm/workspace-optimizer:0.13.0@sha256:d868e239f73fb45ba98dd088c0a6a15effd0b87b7b193701f02c3913ecb8a196 AS builder

COPY cosmwasm/Cargo.lock /code/
COPY cosmwasm/Cargo.toml /code/
Expand Down
Loading

0 comments on commit 821a6e8

Please sign in to comment.