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

feat: Wormchain v0.47 #4034

Draft
wants to merge 122 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
edb1a71
Use ADRs for a record of project decisions.
jonathanpberger Jun 24, 2024
0490416
docs: add ADR for wasmvm versioning decision
jtieri Jun 24, 2024
252b775
Merge pull request #37 from strangelove-ventures/justin/adr-tools
jtieri Jun 24, 2024
796c3a0
Add ADR for Cosmos SDK v0.47 upgrade applied to wormhole-foundation C…
pharr117 Jul 10, 2024
2e1218d
Merge pull request #50 from strangelove-ventures/pharr117/adr-3-cosmo…
pharr117 Jul 12, 2024
ec8ac68
Update 0003-cosmos-sdk-v0-47-upgrade-will-be-implemented-in-wormhole-…
pharr117 Jul 12, 2024
a7ee1db
Merge pull request #53 from strangelove-ventures/pharr117-adr-3-patch-1
pharr117 Jul 12, 2024
faf241c
Add ADR for Tendermint to CometBFT migration applied to wormhole-foun…
pharr117 Jul 12, 2024
4ee01dc
Typo
pharr117 Jul 12, 2024
f9685ac
Merge pull request #54 from strangelove-ventures/pharr117/adr-4-comet…
pharr117 Jul 12, 2024
7024118
Begin work on v0.47.12 migration
joelsmith-2019 Jul 15, 2024
8d8f141
Update Go Version
joelsmith-2019 Jul 16, 2024
204efcf
Update PFM to v7
joelsmith-2019 Jul 17, 2024
6e2a67f
Fix PFM Imports
joelsmith-2019 Jul 17, 2024
727208b
Remove Tendermint References
joelsmith-2019 Jul 18, 2024
98bc7dd
Set Address Prefixes
joelsmith-2019 Jul 18, 2024
d060cfd
Add Debug & Config CMD
joelsmith-2019 Jul 19, 2024
d92ad9a
Setup Sim Modules,
joelsmith-2019 Jul 19, 2024
81b6a8d
Migrate App API (WIP)
joelsmith-2019 Jul 22, 2024
f624958
Migrate Testutil
joelsmith-2019 Jul 23, 2024
e8b7400
Migrate IBC Compasability MW
joelsmith-2019 Jul 23, 2024
36104b6
Migrate IBC Hooks Module
joelsmith-2019 Jul 23, 2024
e4413ce
Add Consensus Params Store Key
joelsmith-2019 Jul 24, 2024
d4bbf33
Migrate Token Factory
joelsmith-2019 Jul 24, 2024
0001064
Start Wormhole Module Migration
joelsmith-2019 Jul 24, 2024
d67e81e
Cleanup
joelsmith-2019 Jul 24, 2024
eeab029
Update IBC Hooks
joelsmith-2019 Jul 24, 2024
4994ebf
IBC-Go Migrations
joelsmith-2019 Jul 25, 2024
f8b7d62
Migrate Proto
joelsmith-2019 Jul 25, 2024
fed6918
Refactor Staking Init
joelsmith-2019 Jul 26, 2024
286c4d8
Update Proto Imports
joelsmith-2019 Jul 26, 2024
aa2b761
Add Wasmd Ante Handler
joelsmith-2019 Jul 29, 2024
2a0d75c
Add Upgrade Handler
joelsmith-2019 Jul 30, 2024
d3c7c04
Remove log
joelsmith-2019 Jul 30, 2024
1db313c
Minor API Migration
joelsmith-2019 Jul 31, 2024
67c3219
Update Proto File Structure
joelsmith-2019 Aug 1, 2024
f1551a5
Ignore wormchaind
joelsmith-2019 Aug 1, 2024
c0a8249
Replace via git hash
joelsmith-2019 Aug 1, 2024
10d95c6
Update proto
joelsmith-2019 Aug 1, 2024
9025dc9
Implement Ignite Proto Gen
joelsmith-2019 Aug 2, 2024
cff8529
Remove unnecessary buf configs
joelsmith-2019 Aug 2, 2024
5a0830f
Cmd cleanup
joelsmith-2019 Aug 5, 2024
57f99ba
Migrate Wormhole REST API
joelsmith-2019 Aug 6, 2024
6b380ab
Setup Interchaintest
joelsmith-2019 Aug 7, 2024
d3ba83b
Set Bech32 Prefixes
joelsmith-2019 Aug 7, 2024
807a68e
Fix Heighliner Image
joelsmith-2019 Aug 7, 2024
b4b61e5
Fix Gentx & Register Store Key
joelsmith-2019 Aug 8, 2024
c275366
Import Wormchain v45 ICT Suite
joelsmith-2019 Aug 9, 2024
1eb4221
Pass Existing Unit Tests
joelsmith-2019 Aug 13, 2024
f33f24c
Setup Ante Unit Tests
joelsmith-2019 Aug 13, 2024
0aa9009
Fix Unregistered Msg Server
joelsmith-2019 Aug 14, 2024
2a10f64
Add Wormchain ICT
joelsmith-2019 Aug 15, 2024
1f7762b
Test Message Proposal
joelsmith-2019 Aug 15, 2024
de4f2c6
Unit Test Wormhole Proposals
joelsmith-2019 Aug 16, 2024
f0a8492
Update Util Visibility
joelsmith-2019 Aug 16, 2024
be8b85f
Upgrade TokenFactory
joelsmith-2019 Aug 20, 2024
0d300d0
Append Genesis Subcommands
joelsmith-2019 Aug 21, 2024
1b2ec68
Add Cancel Upgrade Test
joelsmith-2019 Aug 21, 2024
e5375a1
Migrate Modules in Upgrade Handler
joelsmith-2019 Aug 22, 2024
fc923e2
Add Upgrade Failure Test
joelsmith-2019 Aug 22, 2024
b34da54
chore(fork): pull upstream changes (#65)
pharr117 Aug 23, 2024
b93b4de
Fix Home Dir & Cleanup
joelsmith-2019 Aug 26, 2024
807b91a
Add Upgrade Test (WIP)
joelsmith-2019 Aug 26, 2024
4d529f0
ICT Cleanup
joelsmith-2019 Aug 29, 2024
4e6a8db
Pass Malformed Payload Test
joelsmith-2019 Aug 30, 2024
8d5d939
Cleanup Middleware
joelsmith-2019 Aug 30, 2024
26deeb0
Update Cosmos Fork
joelsmith-2019 Sep 3, 2024
d5e2476
Cleanup
joelsmith-2019 Sep 3, 2024
914dc57
Add Wasmd Decorator ICT
joelsmith-2019 Sep 4, 2024
bc4639b
Add Wormhole Proposal Msg Tests
joelsmith-2019 Sep 4, 2024
6faeddc
Validate Active Guardian Index
joelsmith-2019 Sep 5, 2024
134407f
Add Docker File for Generating ICT Image
joelsmith-2019 Sep 5, 2024
7c220b3
Fix Wait for Blocks
joelsmith-2019 Sep 5, 2024
0985da1
Merge remote-tracking branch 'origin/main' into joel/wormchain-v0.47.12
joelsmith-2019 Sep 6, 2024
eeaa8ad
Use ADRs for a record of project decisions.
jonathanpberger Jun 24, 2024
ee23fb5
docs: add ADR for wasmvm versioning decision
jtieri Jun 24, 2024
07a0607
Add ADR for Cosmos SDK v0.47 upgrade applied to wormhole-foundation C…
pharr117 Jul 10, 2024
8bb4384
Update 0003-cosmos-sdk-v0-47-upgrade-will-be-implemented-in-wormhole-…
pharr117 Jul 12, 2024
5f73226
Add ADR for Tendermint to CometBFT migration applied to wormhole-foun…
pharr117 Jul 12, 2024
7002cca
Typo
pharr117 Jul 12, 2024
d5d6d96
Merge branch 'wormhole-foundation-main'
joelsmith-2019 Sep 6, 2024
599c956
Merge remote-tracking branch 'origin/main' into joel/wormchain-v0.47.12
joelsmith-2019 Sep 6, 2024
41d3715
Fix err check
joelsmith-2019 Sep 6, 2024
29ea36e
Add ICT Workflow
joelsmith-2019 Sep 6, 2024
de29e6f
Add jq and netcat
joelsmith-2019 Sep 10, 2024
4add7f4
Remove heighliner
joelsmith-2019 Sep 10, 2024
1799f12
Fix ICT
joelsmith-2019 Sep 11, 2024
2ca4787
Start PFM Unit Testing
joelsmith-2019 Sep 11, 2024
434fb9f
Add Working Directory to Workflow
joelsmith-2019 Sep 11, 2024
0bf3a41
Cleanup TODOs
joelsmith-2019 Sep 11, 2024
4914a07
Add PFM Format Unit Tests
joelsmith-2019 Sep 11, 2024
8b4cc6d
Add Keeper Test
joelsmith-2019 Sep 11, 2024
bcc1e67
Add Wormhole Module Unit Tests
joelsmith-2019 Sep 12, 2024
74b1a44
Add More Unit Tests
joelsmith-2019 Sep 12, 2024
ca40159
Fix unpinned docker files
joelsmith-2019 Sep 13, 2024
dbf021a
Fix spelling errors
joelsmith-2019 Sep 13, 2024
aed9eb7
Update go version for wormchain workflow
joelsmith-2019 Sep 13, 2024
a8ff4aa
Go mod tidy
joelsmith-2019 Sep 13, 2024
bb11cac
Update docker pin filter
joelsmith-2019 Sep 13, 2024
2cdc00f
Update Workflow Go Version
joelsmith-2019 Sep 13, 2024
60ecf26
Fix Incorrectly Merged db_test
joelsmith-2019 Sep 16, 2024
14fa7fb
Update Node Deps
joelsmith-2019 Sep 16, 2024
3652be8
Fix incorrectly merged db_test.go
joelsmith-2019 Sep 16, 2024
fc2dd50
Cleanup tests
joelsmith-2019 Sep 17, 2024
cc26a15
Fix spacing
joelsmith-2019 Sep 17, 2024
d3b6331
Merge branch 'wormhole-foundation:main' into main
pharr117 Sep 17, 2024
3f6278a
Fix Node Deps (WIP)
joelsmith-2019 Sep 17, 2024
eba107e
Update Cosmos SDK Fork Version
joelsmith-2019 Sep 17, 2024
49beda5
Merge pull request #77 from strangelove-ventures/joel/ibc-composabili…
joelsmith-2019 Sep 18, 2024
24eb4bd
Cleanup Tests & Comments
joelsmith-2019 Sep 18, 2024
26b55a4
Resolve Grafana Dependency Conflicts
joelsmith-2019 Sep 18, 2024
85a9dd7
Update Proto
joelsmith-2019 Sep 18, 2024
ac0854a
Revert Dockerfile Modifications
joelsmith-2019 Sep 19, 2024
8e21c71
cosmwasm: add wormchain ibc receiver tests (#81)
kakucodes Sep 19, 2024
f4acec9
Fix netcat installation
joelsmith-2019 Sep 19, 2024
d729b18
Fix Genesis File for Sdk v0.47
joelsmith-2019 Sep 19, 2024
b14bbb5
Pass Genesis Validation Checks
joelsmith-2019 Sep 19, 2024
d64bb6c
Fix Go Version w/ Ignite
joelsmith-2019 Sep 20, 2024
dcfb308
Update libp2p
joelsmith-2019 Sep 23, 2024
f649092
Merge branch 'main' into joel/wormchain-v0.47.12
joelsmith-2019 Sep 23, 2024
400a646
Revert to Hardcoded ChainIDSolana
joelsmith-2019 Sep 23, 2024
7887299
Merge pull request #78 from strangelove-ventures/joel/wormhole-module…
joelsmith-2019 Sep 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.21.9"
go-version: "1.22.5"
- run: make node

algorand:
Expand Down Expand Up @@ -257,7 +257,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.19.9"
go-version: "1.22.5"
- run: |
cd wormchain
make proto -B
Expand Down
111 changes: 111 additions & 0 deletions .github/workflows/wormchain-icts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Wormchain's end-to-end Interchain Tests

on:
pull_request:
push:
tags:
- "**"
branches:
- "main"

permissions:
contents: read
packages: write

env:
GO_VERSION: 1.22.0
TAR_PATH: /tmp/wormchain-docker-image.tar
IMAGE_NAME: wormchain-docker-image

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: wormchain/interchaintest/go.sum

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and export
uses: docker/build-push-action@v5
with:
context: .
file: wormchain/Dockerfile.ict
tags: wormchain:local
outputs: type=docker,dest=${{ env.TAR_PATH }}

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.IMAGE_NAME }}
path: ${{ env.TAR_PATH }}

e2e-tests:
needs: build-docker
runs-on: ubuntu-latest
strategy:
matrix:
# names of `make` commands to run tests
test:
- "ictest-cancel-upgrade"
- "ictest-chain-start"
- "ictest-malformed-payload"
- "ictest-guardian-set-proposal"
- "ictest-wormhole-message-proposal"
- "ictest-upgrade-failure"
- "ictest-upgrade"
- "ictest-wasmd-ante"
- "ictest-wormchain"
fail-fast: false

steps:
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: interchaintest/go.sum

- name: checkout chain
uses: actions/checkout@v4

- name: Download Tarball Artifact
uses: actions/download-artifact@v3
with:
name: ${{ env.IMAGE_NAME }}
path: /tmp

- name: Load Docker Image
run: |
docker image load -i ${{ env.TAR_PATH }}
docker image ls -a

- name: Run Test
id: run_test
continue-on-error: true
working-directory: wormchain
run: make ${{ matrix.test }}

- name: Retry Failed Test
if: steps.run_test.outcome == 'failure'
working-directory: wormchain
run: |
for i in 1 2; do
echo "Retry attempt $i"
if make ${{ matrix.test }}; then
echo "Test passed on retry"
exit 0
fi
done
echo "Test failed after retries"
exit 1
3 changes: 3 additions & 0 deletions cosmwasm/Cargo.lock

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

6 changes: 6 additions & 0 deletions cosmwasm/contracts/wormchain-ibc-receiver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ thiserror = "1.0.31"
wormhole-bindings = "0.1.0"
wormhole-sdk = { workspace = true, features = ["schemars"] }
serde_wormhole.workspace = true

[dev-dependencies]
cw-multi-test = "0.13.2"
serde-json-wasm = "0.4"
wormhole-bindings = { version = "0.1.0", features=["fake"] }
serde = { version = "1.0.137", default-features = false, features = ["derive"] }
3 changes: 3 additions & 0 deletions cosmwasm/contracts/wormchain-ibc-receiver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ pub mod error;
pub mod ibc;
pub mod msg;
pub mod state;

#[cfg(test)]
pub mod tests;
Loading