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

upd: bumped orig wasmd to v0.51 #175

Merged
merged 175 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
cd66f78
SDK upgrade to v0.50 (branch) (#1611)
alpe Sep 25, 2023
d5305e8
Bump actions/checkout from 4.0.0 to 4.1.0 (#1635)
dependabot[bot] Sep 25, 2023
d79c819
Update cosmos-sdk version in system tests (#1636)
pinosu Sep 26, 2023
625cc49
Bump sdk to rc1
alpe Sep 26, 2023
bb2a2fa
Merge pull request #1637 from CosmWasm/sdk-upgrade050rc1
alpe Sep 26, 2023
4c710cb
Bump github.com/rs/zerolog from 1.30.0 to 1.31.0
dependabot[bot] Sep 26, 2023
f3ad908
Bump github.com/cosmos/ibc-go/modules/capability
dependabot[bot] Sep 27, 2023
5966c11
Merge pull request #1639 from CosmWasm/dependabot/go_modules/github.c…
alpe Sep 27, 2023
af8c491
Merge pull request #1638 from CosmWasm/dependabot/go_modules/github.c…
alpe Sep 27, 2023
e654808
Add msg update contract label (#1640)
pinosu Sep 28, 2023
894076a
Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 (#1641)
dependabot[bot] Sep 28, 2023
ca682c0
Bump github.com/docker/distribution from 2.8.2+incompatible to 2.8.3+…
dependabot[bot] Oct 3, 2023
b845e14
Bump github.com/cosmos/ibc-go/v8 from 8.0.0-beta.0 to 8.0.0-beta.1 (#…
dependabot[bot] Oct 3, 2023
e0da419
Remove gov v1beta1 dependencies and deprecated proposals (#1646)
pinosu Oct 4, 2023
6b8b45c
fix: propagate funds validation errors
aelesbao Oct 3, 2023
3ea8575
Merge pull request #1649 from aelesbao/aelesbao/fix/propagate-funds-err
alpe Oct 5, 2023
4cd1345
Retract v0.42.0 release
pinosu Oct 6, 2023
bb7d3e5
Bump bufbuild/buf-setup-action from 1.26.1 to 1.27.0 (#1653)
dependabot[bot] Oct 6, 2023
4d5f875
Merge pull request #1652 from CosmWasm/1651-retract_42_release
alpe Oct 9, 2023
99367e1
Bump github.com/spf13/viper from 1.16.0 to 1.17.0 (#1656)
dependabot[bot] Oct 9, 2023
1a22c29
Add label validation for non printable chars (#1650)
pinosu Oct 9, 2023
90d4368
Bump wasmvm to v1.4.1 - bugfix (backport #1658) (#1660)
mergify[bot] Oct 9, 2023
1445baa
Added tests for classic addresses.
DariuszDepta Oct 12, 2023
d8fe3f9
Used another prefix.
DariuszDepta Oct 12, 2023
f79a694
Fixes.
DariuszDepta Oct 12, 2023
29d10f3
Fixes.
DariuszDepta Oct 12, 2023
99ade09
Refactoring.
DariuszDepta Oct 12, 2023
9394faf
Maybe this will fix the problem.
DariuszDepta Oct 12, 2023
3af3036
Refactoring.
DariuszDepta Oct 12, 2023
76f6f3d
Refactoring.
DariuszDepta Oct 12, 2023
257cd7e
Made cleanup function private.
DariuszDepta Oct 13, 2023
c8a6594
Merge pull request #1666 from CosmWasm/classic-address-tests
DariuszDepta Oct 13, 2023
96867a3
Update changelog for v0.43.0 release (#1662) (#1668)
mergify[bot] Oct 13, 2023
cd78376
Add system tests for chain upgrade (#1643)
alpe Oct 13, 2023
bb2beb8
Fix test code
alpe Oct 16, 2023
606289a
Merge pull request #1671 from CosmWasm/mergify/bp/main/pr-1670
alpe Oct 16, 2023
361ff25
Bump actions/checkout from 4.1.0 to 4.1.1
dependabot[bot] Oct 18, 2023
a6fe36d
Rename some more "features" to "capabilities" (#1679)
webmaster128 Oct 20, 2023
2eee755
Merge pull request #1678 from CosmWasm/dependabot/github_actions/acti…
alpe Oct 20, 2023
62505fc
Bump bufbuild/buf-setup-action from 1.27.0 to 1.27.1 (#1677)
dependabot[bot] Oct 25, 2023
5adfe12
Bump google.golang.org/grpc from 1.58.1 to 1.58.3 in /tests/system (#…
dependabot[bot] Oct 26, 2023
c6919e1
Bump bufbuild/buf-setup-action from 1.27.1 to 1.27.2 (#1684)
dependabot[bot] Oct 30, 2023
a2bbd36
Bump wasmvm 1.5.0 (#1686)
pinosu Oct 31, 2023
62d91d9
Update changelog for v0.44.0 release (#1689)
pinosu Nov 6, 2023
fc549d4
Prevent empty channel version
alpe Nov 8, 2023
7c8f1e8
Merge pull request #1697 from CosmWasm/1693_default_version
alpe Nov 10, 2023
4313d7f
Upgrade to SDK v0.50.1 (#1696)
pinosu Nov 13, 2023
6f8c0a9
Minor cleanups and comments (#1712)
alpe Nov 13, 2023
c5f5881
Fix local test scripts
alpe Nov 13, 2023
2a82e35
Fix gov v1beta1 support for legacy propsals (#1715)
alpe Nov 15, 2023
1223434
Merge pull request #1714 from CosmWasm/local_scripts
alpe Nov 15, 2023
4e7316e
Allow empty attribute values (#1618)
99Kies Nov 15, 2023
f31351f
Pass empty attribute value through stack
alpe Nov 15, 2023
12589b2
Retract wasmd v0.43.0 and v0.44.0
pinosu Nov 15, 2023
0c8a485
Merge pull request #1720 from CosmWasm/retract_43_44
alpe Nov 15, 2023
09ae328
Merge pull request #1719 from CosmWasm/1617_regression
alpe Nov 15, 2023
8eaa55b
Add changelog for 0.45 release (#1721)
pinosu Nov 15, 2023
07eb14a
Bump bufbuild/buf-setup-action from 1.28.0 to 1.28.1 (#1726)
dependabot[bot] Nov 16, 2023
3b6512c
Update README (#1727)
pinosu Nov 16, 2023
5cbc756
Update compatibility metrics
alpe Nov 17, 2023
9050b5f
Merge pull request #1730 from CosmWasm/doc
alpe Nov 17, 2023
dffa321
Fix migrate legacy params (#1729)
alpe Nov 21, 2023
b02a472
Bump github.com/cometbft/cometbft from 0.38.0 to 0.38.1 (#1733)
dependabot[bot] Nov 22, 2023
7ea00e2
Prepare v0.50.0 release (#1737)
alpe Nov 23, 2023
4442cc6
Bump github.com/cometbft/cometbft from 0.38.1 to 0.38.2 (#1743)
dependabot[bot] Nov 28, 2023
fe82969
Remove codeowners
alpe Nov 30, 2023
9280688
Merge pull request #1748 from CosmWasm/codeowner
webmaster128 Nov 30, 2023
b7f24f3
Bump github.com/spf13/cast from 1.5.1 to 1.6.0 (#1746)
dependabot[bot] Dec 1, 2023
c20e824
Bump cosmossdk.io/store from 1.0.0 to 1.0.1 (#1747)
dependabot[bot] Dec 1, 2023
c686760
Add staticmajor code analyzer (#1738)
alpe Dec 1, 2023
6f6be78
Bump actions/checkout from 3 to 4 (#1750)
dependabot[bot] Dec 4, 2023
017f91c
Bump cosmossdk.io/tools/confix from 0.1.0 to 0.1.1 (#1756)
dependabot[bot] Dec 11, 2023
a1e9188
Bump cosmossdk.io/x/upgrade from 0.1.0 to 0.1.1 (#1754)
dependabot[bot] Dec 12, 2023
eaa6f0b
Bump github/codeql-action from 2 to 3 (#1758)
dependabot[bot] Dec 14, 2023
19d1826
Bump cosmossdk.io/x/tx from 0.12.0 to 0.13.0 (#1766)
dependabot[bot] Dec 20, 2023
d0dde1a
Bump github.com/prometheus/client_golang from 1.17.0 to 1.18.0 (#1767)
dependabot[bot] Jan 8, 2024
651abcf
Add Build Address gRPC Query (#1753)
NotJeremyLiu Jan 9, 2024
4b4f82d
Bump github.com/dvsekhvalnov/jose2go from 1.5.0 to 1.6.0 (#1770)
dependabot[bot] Jan 9, 2024
07c8bee
Bump github.com/dvsekhvalnov/jose2go in /tests/system (#1769)
dependabot[bot] Jan 9, 2024
2a9e7a0
Bump cosmossdk.io/errors from 1.0.0 to 1.0.1 (#1775)
dependabot[bot] Jan 18, 2024
1ce3d9d
Bump cosmossdk.io/store from 1.0.1 to 1.0.2 (#1774)
dependabot[bot] Jan 18, 2024
550fc24
Bump cosmossdk.io/log from 1.2.1 to 1.3.0 (#1773)
dependabot[bot] Jan 18, 2024
8948806
Bump github.com/CosmWasm/wasmvm from 1.5.0 to 1.5.2 (#1781)
dependabot[bot] Jan 19, 2024
64b8074
Fix grant cli (#1792)
pinosu Jan 24, 2024
58a5ef0
bump cosmos-sdk proto to v0.50.0 (#1795)
pinosu Jan 24, 2024
18ff233
Rename InstantiateContractCosts -> SetupContractCost
webmaster128 Jan 25, 2024
ce0dafa
Remove NewContractInstanceCosts
webmaster128 Jan 25, 2024
796907e
Merge pull request #1797 from CosmWasm/rename-to-setup-cost
webmaster128 Jan 25, 2024
315bf5c
Generalize "pinned" to "discount" for cases where contract is in memory
webmaster128 Jan 26, 2024
3206540
Adapt tests to gas value changes
webmaster128 Jan 27, 2024
5f444cd
Merge pull request #1799 from CosmWasm/setup-discounts
webmaster128 Feb 1, 2024
4a81bac
Rewrite compatibility section in README
webmaster128 Feb 7, 2024
d5616d5
Add .editorconfig
webmaster128 Feb 7, 2024
e48ccb2
Run README through Editorconfig/Prettier
webmaster128 Feb 7, 2024
84e3bc3
Update README.md
webmaster128 Feb 9, 2024
9511185
Remove unused Compatibility with CosmWasm contracts headline
webmaster128 Feb 9, 2024
9e44af1
Merge pull request #1805 from CosmWasm/rewrite-compatibility
webmaster128 Feb 15, 2024
b1c5bfb
Update to wasmvm 2.0.0-rc.1
chipshort Feb 6, 2024
c7ba88f
Adjust to type changes and renamings
chipshort Feb 6, 2024
d4e6417
Adjust to nested results
chipshort Feb 6, 2024
e4d95c2
Fix StoreCode gas usage
chipshort Feb 7, 2024
54670c4
Add ValidateAddress impl
chipshort Feb 7, 2024
73e7ebb
go mod tidy
chipshort Feb 7, 2024
cca0005
Fix lint
chipshort Feb 7, 2024
244c55a
Reduce gas factor
chipshort Feb 7, 2024
c8f84ff
Fix wasmvm path in CI
chipshort Feb 7, 2024
ec2c70b
Fix address validation
chipshort Feb 8, 2024
ffe6aaa
Fix dockerfile
chipshort Feb 8, 2024
db25a82
Add cosmwasm_2_0 capability
chipshort Feb 8, 2024
dd992b0
Use different tempdir for each test run
chipshort Feb 14, 2024
5984896
Add cosmwasm_2_0 capability to README
chipshort Feb 15, 2024
6d7c91c
Remove unnecessary conversion
chipshort Feb 15, 2024
2ec0628
Fix TestAppStateDeterminism
chipshort Feb 15, 2024
137cb26
Fix TestAppImportExport
chipshort Feb 15, 2024
1d77a66
Fix errors
chipshort Feb 15, 2024
1037fc8
Use updated reflect contract
chipshort Feb 15, 2024
5e2d766
Update to wasmvm rc.2
chipshort Feb 16, 2024
3539fe9
Fix gas numbers
chipshort Feb 16, 2024
b88f84a
Fix Dockerfile
chipshort Feb 16, 2024
2887105
Handle TransferMsg.Memo field
chipshort Feb 16, 2024
a30e083
Add flattened msgResponses to SubMsgResponse
webmaster128 Jan 31, 2024
d6ec8d4
Fix MockMessageHandler
chipshort Feb 16, 2024
219da83
Run gofumpt
chipshort Feb 19, 2024
7f88c95
Format imports
chipshort Feb 19, 2024
0ca56bd
Pass Payload from submsg to reply
chipshort Feb 19, 2024
97694f1
Add extra error for wasmvm errors
chipshort Feb 20, 2024
d94360c
Do not redact contract errors
chipshort Feb 21, 2024
9cc1a5a
Implement grpc query
chipshort Feb 21, 2024
4f8d513
Fix spelling
chipshort Feb 21, 2024
4c2d28a
Remove unnecessary comments
chipshort Feb 26, 2024
5dc97d5
Rename reflect.wasm to stargate_reflect.wasm
chipshort Feb 26, 2024
77504d8
Cleanup
chipshort Feb 26, 2024
8663a85
Add msgResponses in IBCRawPacketHandler
chipshort Feb 26, 2024
e982aab
Apply suggestions from code review
chipshort Feb 26, 2024
f41bb6f
Fix costValidate
chipshort Feb 26, 2024
8607164
Add validateAddress test
chipshort Feb 26, 2024
044caab
Update capability table
chipshort Feb 27, 2024
1ee2c49
Use reflect contract from 1.5
chipshort Feb 27, 2024
4e7e534
Add DeterministicError type for redactError
chipshort Feb 28, 2024
3e960ee
Fix DeterministicError docs
chipshort Feb 29, 2024
8e184df
Fix misleading error message for duplicate address on instantiate2
webmaster128 Feb 29, 2024
96e2b91
Merge pull request #1816 from CosmWasm/fix-address-exists-error-message
webmaster128 Feb 29, 2024
1e620a5
Merge branch 'cosmwasm-orig-0.50.0' into upd/neutron-upd-0.50
swelf19 Mar 4, 2024
ad93ad3
Add contract error integration test
chipshort Mar 4, 2024
564e5d1
merged orig v0.50
swelf19 Mar 4, 2024
62eaa6e
Add nil checks
chipshort Mar 6, 2024
ba3a59c
Merge pull request #1804 from CosmWasm/update-to-wasmvm-2.0
chipshort Mar 6, 2024
ba2af5a
Bump cosmossdk.io/math from 1.2.0 to 1.3.0 (#1810)
dependabot[bot] Mar 6, 2024
31164a4
Bump github.com/cosmos/cosmos-proto from 1.0.0-beta.3 to 1.0.0-beta.4…
dependabot[bot] Mar 6, 2024
52015d4
Bump cosmossdk.io/log from 1.3.0 to 1.3.1 (#1803)
dependabot[bot] Mar 6, 2024
55388ff
Bump github.com/rs/zerolog from 1.31.0 to 1.32.0 (#1802)
dependabot[bot] Mar 6, 2024
ae41982
Bump bufbuild/buf-setup-action from 1.28.1 to 1.29.0 (#1796)
dependabot[bot] Mar 6, 2024
8047b7f
Rename gas to gasLeft (#1820)
chipshort Mar 6, 2024
fadca62
Upgrade cosmos-sdk to v0.50.4 (#1821)
pinosu Mar 7, 2024
386907e
Set log scope to Debug (#1827)
pinosu Mar 7, 2024
0e270ce
Bump github.com/golang/protobuf from 1.5.3 to 1.5.4 (#1825)
dependabot[bot] Mar 8, 2024
0d02332
Remove unused ARG arch
webmaster128 Mar 12, 2024
6b415ba
Bump wasmvm to 2.0.0
webmaster128 Mar 12, 2024
4c1bea6
Merge pull request #1832 from CosmWasm/wasmvm-2.0.0
webmaster128 Mar 13, 2024
945de3a
Upgrade Alpine in Dockerfile to 3.18 (#1837)
webmaster128 Mar 19, 2024
08567ff
Improve block time estimation to satbilize system tests (#1838)
webmaster128 Mar 19, 2024
fcc8fad
Remove contract_tests
webmaster128 Apr 1, 2024
8c9a744
Merge pull request #1847 from CosmWasm/rm-contract_tests
webmaster128 Apr 2, 2024
f71e3bd
Move contrib/ in scripts/ (#1848)
pinosu Apr 2, 2024
60375ab
Fix Amino JSON representation (#1844)
pinosu Apr 11, 2024
f77c076
Bump bufbuild/buf-setup-action from 1.29.0 to 1.30.1 (#1850)
dependabot[bot] Apr 12, 2024
cec66ae
Add BuiltInCapabilities() to x/wasm/keeper and deprecate AllCapabilit…
webmaster128 Apr 12, 2024
6bd3987
Bump x/tx to v0.13.2 (#1856)
pinosu Apr 15, 2024
1f0660c
Temporary bump x/tx to latest changes for pre-release (#1858)
pinosu Apr 16, 2024
5ec0c5e
Add "legacy_coins" amino encoding annotation to proto files (#1860)
pinosu Apr 17, 2024
ed33491
Bump x/tx dependency to latest main changes (#1862)
pinosu Apr 19, 2024
90762ee
Bump tx module to v0.13.3 (#1864)
pinosu Apr 22, 2024
a1789c0
Bump cosmos-sdk to v0.50.6 (#1865)
pinosu Apr 22, 2024
7b418de
Prepare changelog for v0.51 release (#1849)
pinosu Apr 22, 2024
d9bebe6
Merge branch 'refs/heads/wasmd-orig-v0.51.0' into upd/neutron-upd-0.51-2
swelf19 May 1, 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
19 changes: 13 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ orbs:
executors:
golang:
docker:
- image: cimg/go:1.20
- image: cimg/go:1.21

commands:
make:
Expand Down Expand Up @@ -97,11 +97,11 @@ jobs:
- "profiles/*"
- store_artifacts:
path: /tmp/logs

test-system:
executor: golang
parallelism: 1
resource_class: large
resource_class: xlarge
steps:
- attach_workspace:
at: /tmp/workspace
Expand All @@ -112,6 +112,13 @@ jobs:
- run:
name: Build and run system tests
command: make test-system
- run:
command: |
mkdir -p /tmp/system-test-workspace
mv /home/circleci/project/tests/system/testnet /tmp/system-test-workspace
when: on_fail
- store_artifacts:
path: /tmp/system-test-workspace

benchmark:
executor: golang
Expand All @@ -135,7 +142,7 @@ jobs:
simulations:
executor: golang
parallelism: 1
resource_class: large
resource_class: xlarge
steps:
- checkout
- run:
Expand Down Expand Up @@ -182,15 +189,15 @@ jobs:
command: |
IN_DOCKER=$(docker run --rm "cosmwasm/wasmd:${CIRCLE_SHA1}" /usr/bin/wasmd query wasm libwasmvm-version)
echo "Runtime libwasmvm-version in docker: $IN_DOCKER"
IN_GOMOD=$(go list -m github.com/CosmWasm/wasmvm | cut -d" " -f2 | cut -d"v" -f2)
IN_GOMOD=$(go list -m github.com/CosmWasm/wasmvm/v2 | cut -d" " -f2 | cut -d"v" -f2)
echo "wasmvm version in go.mod: $IN_GOMOD"
if [[ "$IN_DOCKER" != "$IN_GOMOD" ]]; then
echo "Mismatch of wasmvm versions detected"
exit 1
fi
- when:
condition:
equal: [ main, << pipeline.git.branch >> ]
equal: [main, << pipeline.git.branch >>]
steps:
- run:
name: Push application Docker image to docker hub
Expand Down
1 change: 0 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ flags:

ignore:
- "cmd/"
- "contrib/"
- "docs/"
- "docker/"
- "scripts/"
Expand Down
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{Makefile,*.go}]
indent_style = tab
indent_size = 4
5 changes: 0 additions & 5 deletions .github/CODEOWNERS

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/codeql-analizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.0.0
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: 'go'
queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
4 changes: 2 additions & 2 deletions .github/workflows/proto-buf-publisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.0.0
- uses: bufbuild/buf-setup-action@v1.26.1
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1.30.1

# lint checks
- uses: bufbuild/buf-lint-action@v1
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/staticmajor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Staticmajor: Static analyzer to catch leaking resources & other bad code patterns
name: Detect leaking resources and bad code patterns
on:
pull_request:
paths:
- "**.go"
push:
branches: [ main ]
paths:
- "**.go"

jobs:
run_staticmajor:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Staticmajor action
id: staticmajor
uses: orijtech/staticmajor-action@main
with:
packages: ./...
resleak: true
structslop: false
tests: false
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@ dependency-graph.png
*.aux
*.out
*.synctex.gz
contract_tests/*
8 changes: 4 additions & 4 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ queue_rules:
pull_request_rules:
- name: backport patches to main branch
conditions:
- base=releases/v0.40.x
- base=releases/v0.4x
- label=backport/main
actions:
backport:
Expand All @@ -20,11 +20,11 @@ pull_request_rules:
backport:
branches:
- releases/v0.3x
- name: backport patches to v0.40.x release branch
- name: backport patches to sdk47 release branch
conditions:
- base=main
- label=backport/v0.40.x
- label=backport/v0.4x
actions:
backport:
branches:
- releases/v0.40.x
- releases/v0.4x
62 changes: 45 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,62 @@

## [Unreleased](https://github.com/CosmWasm/wasmd/tree/HEAD)

[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.40.2...HEAD)

## [v0.40.2](https://github.com/CosmWasm/wasmd/tree/v0.40.2) (2023-06-09)

[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.40.1...v0.40.2)

This patch release includes only the cosmos-sdk upgrade to [v0.47.3](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.3).
It solves [barberry](https://forum.cosmos.network/t/cosmos-sdk-security-advisory-barberry/10825) security vulnerability.
[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.51.0...HEAD)

# [v0.51.0](https://github.com/CosmWasm/wasmd/tree/v0.51.0) (2024-04-22)

[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.50.0...v0.51.0)

- Bump cosmos-sdk to v0.50.6 [#1865](https://github.com/CosmWasm/wasmd/pull/1865)
- Bump tx module to v0.13.3 [#1864](https://github.com/CosmWasm/wasmd/pull/1864)
- Fix Amino JSON representation [\#1844](https://github.com/CosmWasm/wasmd/pull/1844)
- Add BuiltInCapabilities() to x/wasm/keeper and deprecate AllCapabilities() [#1855](https://github.com/CosmWasm/wasmd/pull/1855)
- Move contrib/ in scripts/ [\#1848](https://github.com/CosmWasm/wasmd/pull/1848)
- Remove contract_tests [\#1847](https://github.com/CosmWasm/wasmd/pull/1847)
- Upgrade Alpine in Dockerfile to 3.18 [\#1837](https://github.com/CosmWasm/wasmd/pull/1837)
- Bump wasmvm to 2.0.0 [\#1832](https://github.com/CosmWasm/wasmd/pull/1832)
- Rename gas to gasLeft [\#1820](https://github.com/CosmWasm/wasmd/pull/1820)
- Fix misleading error message for duplicate address on instantiate2 [\#1816](https://github.com/CosmWasm/wasmd/pull/1816)
- Rewrite compatibility section in README [\#1805](https://github.com/CosmWasm/wasmd/pull/1805)
- Generalize "pinned" to "discount" for cases where contract is in memory [\#1799](https://github.com/CosmWasm/wasmd/pull/1799)
- Rename InstantiateContractCosts -> SetupContractCost; Remove NewContractInstanceCosts [\#1797](https://github.com/CosmWasm/wasmd/pull/1797)
- Bump cosmos-sdk proto to v0.50.0 [\#1795](https://github.com/CosmWasm/wasmd/pull/1795)
- Fix grant contract cli command description [\#1778](https://github.com/CosmWasm/wasmd/issues/1778)
- Add Build Address gRPC Query [\#1753](https://github.com/CosmWasm/wasmd/pull/1753)

### Notable changes:
- Upgrade cosmos-sdk to [v0.47.3](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.3)
- Upgrade to [CosmWasm 2.0.0](https://github.com/CosmWasm/wasmvm/releases/tag/v2.0.0)
- Upgrade to [SDK v0.50.6](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.6) patch release of Cosmos SDK Eden

### Migration notes:
- This release does not include any state migrations or breaking changes, therefore a coordinated chain upgrade is not required.
- This release does not include any state migrations but breaking changes that require a coordinated chain upgrade.

## [v0.40.1](https://github.com/CosmWasm/wasmd/tree/v0.40.1) (2023-06-06)
## [v0.50.0](https://github.com/CosmWasm/wasmd/tree/v0.50.0) (2023-11-23)

[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.40.0...v0.40.1)
[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.45.0...v0.50.0)

This patch release includes only the wasmvm upgrade to [v1.2.4](https://github.com/CosmWasm/wasmvm/releases/tag/v1.2.4).
It solves some incompatibility problems by improving cache invalidation. See [\#426](https://github.com/CosmWasm/wasmvm/issues/426)
- Fix module migration fails when code upload access is set to `OnlyAddress` [\#1725](https://github.com/CosmWasm/wasmd/issues/1725)
- Upgrade to SDK v0.50.1 [\#1696](https://github.com/CosmWasm/wasmd/pull/1696)
- Bump bufbuild/buf-setup-action from 1.27.1 to 1.27.2 [\#1684](https://github.com/CosmWasm/wasmd/pull/1684)
- Bump google.golang.org/grpc from 1.58.1 to 1.58.3 in /tests/system [\#1682](https://github.com/CosmWasm/wasmd/pull/1682)
- Rename some more "features" to "capabilities" [\#1679](https://github.com/CosmWasm/wasmd/pull/1679)
- Bump actions/checkout from 4.1.0 to 4.1.1 [\#1678](https://github.com/CosmWasm/wasmd/pull/1678)
- Bump bufbuild/buf-setup-action from 1.27.0 to 1.27.1 [\#1677](https://github.com/CosmWasm/wasmd/pull/1677)
- Upgrade to SDK v0.50 + IBC v8.0 [\#1611](https://github.com/CosmWasm/wasmd/pull/1611)

### Notable changes:
- Upgrade wasmvm to v1.2.4. [\#1430](https://github.com/CosmWasm/wasmd/issues/1430)
- Upgrade to [SDK v0.50.1](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.1) Eden release
- Upgrade to [IBC v8.0.0](https://github.com/cosmos/ibc-go/releases/tag/v8.0.0) release

### Migration notes:
- This release does not include any state migrations or breaking changes, therefore a coordinated chain upgrade is not required.
[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.45.0...HEAD)
- This release includes state migrations! Please pay careful attention to the doc provided by the [SDK](https://github.com/cosmos/cosmos-sdk/blob/v0.50.1/UPGRADING.md#v050x) team
and the [IBC](https://github.com/cosmos/ibc-go/releases/tag/v8.0.0) team with their releases
- We have some example upgrade code in the `app/upgrade/v0.50` dir, assuming that you come from a wasmd v0.4x version.
- We also tested a chain upgrade with wasmd v0.33 to v0.50 directly with a fix to [app.go](https://github.com/CosmWasm/wasmd/blame/b02a4723618629b5bb9603d8298621f6ef449f92/app/app.go#L927)
to work around an issue.
- Disclaimer: the upgrade codes are examples and may require more customization for your chain. Please do proper tests before applying on mainnets
- Please share your experience and success stories on CosmWasm [discord](https://discord.com/invite/cPjEnPd)


## [v0.45.0](https://github.com/CosmWasm/wasmd/tree/v0.45.0) (2023-11-15)

Expand Down
21 changes: 10 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# docker build . -t cosmwasm/wasmd:latest
# docker run --rm -it cosmwasm/wasmd:latest /bin/sh
FROM golang:1.19-alpine3.15 AS go-builder
ARG arch=x86_64

# Using Alpine 3.19+ as the build system is currently broken,
# see https://github.com/CosmWasm/wasmvm/issues/523
FROM golang:1.21-alpine3.18 AS go-builder

# this comes from standard alpine nightly file
# https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile
Expand All @@ -15,21 +17,18 @@ RUN apk add git
WORKDIR /code
COPY . /code/
# See https://github.com/CosmWasm/wasmvm/releases
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.5.0/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.5.0/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 2687afbdae1bc6c7c8b05ae20dfb8ffc7ddc5b4e056697d0f37853dfe294e913
RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 465e3a088e96fd009a11bfd234c69fb8a0556967677e54511c084f815cf9ce63

# Copy the library you want to the final location that will be found by the linker flag `-lwasmvm_muslc`
RUN cp /lib/libwasmvm_muslc.${arch}.a /lib/libwasmvm_muslc.a
ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.0.0/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.0.0/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 3b478b3e51d31e53ce9324a8895d2cd7278af5179b9a02ea55d8627958e42afa
RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep ca08bb7b73b49b483611d9755bb8455620bb8c0faf3014400908ed49bf3b19a5

# force it to use static lib (from above) not standard libgo_cosmwasm.so file
RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build
RUN echo "Ensuring binary is statically linked ..." \
&& (file /code/build/wasmd | grep "statically linked")

# --------------------------------------------------------
FROM alpine:3.16
FROM alpine:3.18

COPY --from=go-builder /code/build/wasmd /usr/bin/wasmd

Expand All @@ -45,4 +44,4 @@ EXPOSE 26656
# tendermint rpc
EXPOSE 26657

CMD ["/usr/bin/wasmd", "version"]
CMD ["/usr/bin/wasmd", "version"]
6 changes: 6 additions & 0 deletions INTEGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ hardware it runs on.

| wasmd | Cosmos SDK |
|:-----:|:----------:|
| v0.50 | v0.50.1 |
| v0.45 | v0.47.5 |
| v0.44 | v0.47.5 |
| v0.43 | v0.47.5 |
| v0.42 | v0.47.5 |
| v0.41 | v0.47.4 |
| v0.40 | v0.47.1 |
| v0.31 | v0.45.14 |
| v0.30 | v0.45.11 |
Expand Down
15 changes: 4 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ldflags := $(strip $(ldflags))
BUILD_FLAGS := -tags "$(build_tags_comma_sep)" -ldflags '$(ldflags)' -trimpath

# The below include contains the tools and runsim targets.
include contrib/devtools/Makefile
include scripts/contrib/devtools/Makefile

all: install lint test

Expand All @@ -89,13 +89,6 @@ endif
build-windows-client: go.sum
GOOS=windows GOARCH=amd64 go build -mod=readonly $(BUILD_FLAGS) -o build/wasmd.exe ./cmd/wasmd

build-contract-tests-hooks:
ifeq ($(OS),Windows_NT)
go build -mod=readonly $(BUILD_FLAGS) -o build/contract_tests.exe ./cmd/contract_tests
else
go build -mod=readonly $(BUILD_FLAGS) -o build/contract_tests ./cmd/contract_tests
endif

install: go.sum
go install -mod=readonly $(BUILD_FLAGS) ./cmd/wasmd

Expand Down Expand Up @@ -161,7 +154,7 @@ test-system: install
format-tools:
go install mvdan.cc/gofumpt@v0.4.0
go install github.com/client9/misspell/cmd/misspell@v0.3.4
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/daixiang0/gci@v0.11.2

lint: format-tools
golangci-lint run --tests=false
Expand All @@ -170,13 +163,13 @@ lint: format-tools
format: format-tools
find . -name '*.go' -type f -not -path "./vendor*" -not -path "./tests/system/vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofumpt -w
find . -name '*.go' -type f -not -path "./vendor*" -not -path "./tests/system/vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs misspell -w
find . -name '*.go' -type f -not -path "./vendor*" -not -path "./tests/system/vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs goimports -w -local github.com/CosmWasm/wasmd
find . -name '*.go' -type f -not -path "./vendor*" -not -path "./tests/system/vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gci write --skip-generated -s standard -s default -s "prefix(cosmossdk.io)" -s "prefix(github.com/cosmos/cosmos-sdk)" -s "prefix(github.com/CosmWasm/wasmd)" --custom-order


###############################################################################
### Protobuf ###
###############################################################################
protoVer=0.13.1
protoVer=0.14.0
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)

Expand Down
Loading