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: bump up wasmd base version from v0.29.0 to v0.50.0 #121

Draft
wants to merge 413 commits into
base: feat/bump_0.50.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
413 commits
Select commit Hold shift + click to select a range
2decead
Merge pull request #1354 from CosmWasm/1342_error_msg
alpe Apr 21, 2023
e06c445
Merge pull request #1352 from CosmWasm/mergify/bp/main/pr-1338
alpe Apr 21, 2023
52996db
Add wasm command to support v1 gov proposals (#1326)
pinosu Apr 21, 2023
c2bb27d
Merge pull request #1353 from CosmWasm/ibc_packet_recv
alpe Apr 21, 2023
af895a2
remove starport config
faddat Apr 21, 2023
b85abcf
Merge pull request #1359 from faddat/patch-10
alpe Apr 22, 2023
6f35724
Extract configured capabilities
alpe Apr 24, 2023
55647a1
Merge pull request #1361 from CosmWasm/1341_cap
alpe Apr 24, 2023
7546a84
Bumped SDK to 0.47.2 and CometBFT to 0.37.1
gjermundgaraba Apr 29, 2023
a77658a
Merge pull request #1369 from gjermundgaraba/bump_sdk_47_2
alpe May 2, 2023
0759d70
Add wasm store to import-export sims
alpe May 3, 2023
4fe0380
Merge pull request #1374 from CosmWasm/1372_sims
alpe May 4, 2023
049c834
Bump bufbuild/buf-setup-action from 1.17.0 to 1.18.0
dependabot[bot] May 8, 2023
b936a23
Merge pull request #1382 from CosmWasm/dependabot/github_actions/bufb…
alpe May 8, 2023
e369920
Use ICS4Wrapper to send raw IBC packets & fix Fee middleware in wasm …
mergify[bot] May 8, 2023
7b2a73e
Use ICS4Wrapper to send raw IBC packets & fix Fee middleware in wasm …
mergify[bot] May 8, 2023
fbee2c8
Bump github.com/cosmos/gogoproto from 1.4.8 to 1.4.9
dependabot[bot] May 9, 2023
d698df0
Merge pull request #1377 from CosmWasm/dependabot/go_modules/github.c…
alpe May 10, 2023
6269668
Apply review feedback (backport #1376) (#1384)
mergify[bot] May 10, 2023
d9affca
Revert gogoproto to v1.4.8
pinosu May 11, 2023
351114b
Merge pull request #1388 from CosmWasm/revert_gogoproto
alpe May 11, 2023
28f2ce0
Bump docker version in circleCI
alpe May 10, 2023
1123653
Merge pull request #1386 from CosmWasm/ci_docker
alpe May 11, 2023
2974fd0
Add changelog v0.32.0
alpe Mar 22, 2023
fc45b6d
Merge pull request #1390 from CosmWasm/mergify/bp/main/pr-1285
alpe May 11, 2023
50828ac
Bump github.com/docker/distribution
dependabot[bot] May 11, 2023
0337c35
Decouple testing from app with an interface
alpe May 12, 2023
1a1d33e
Merge pull request #1394 from CosmWasm/dependabot/go_modules/github.c…
alpe May 15, 2023
e36611a
Merge pull request #1397 from CosmWasm/ext_wasmibctesting
alpe May 15, 2023
f333820
Bump cosmossdk.io/math from 1.0.0 to 1.0.1 (#1401)
dependabot[bot] May 16, 2023
4cde99f
Extend ibctesting coordinator
alpe May 16, 2023
f6a3534
Bump github.com/spf13/cast from 1.5.0 to 1.5.1 (#1399)
dependabot[bot] May 16, 2023
f3f69a6
Merge pull request #1405 from CosmWasm/ibc_testing_coord
alpe May 16, 2023
de3b941
Bump bufbuild/buf-setup-action from 1.18.0 to 1.19.0
dependabot[bot] May 18, 2023
f34b566
Merge pull request #1409 from CosmWasm/dependabot/github_actions/bufb…
alpe May 19, 2023
e9925ae
Bump github.com/stretchr/testify from 1.8.2 to 1.8.3
dependabot[bot] May 19, 2023
8e5b157
Merge pull request #1413 from CosmWasm/dependabot/go_modules/github.c…
alpe May 19, 2023
19e8bc8
Fix cli update-instantiate-config command
pinosu May 24, 2023
a326a7b
Merge pull request #1415 from CosmWasm/fix_cli_bug
alpe May 24, 2023
6ee6d11
Bump ibc-go version
alpe May 25, 2023
72c9d0f
Merge pull request #1418 from CosmWasm/ibcgo701
alpe May 25, 2023
b0bfcc4
Add Changelog for v0.40.0 (#1416)
alpe May 25, 2023
e563a10
Feat : Trimmed label to prevent white spaces (#1412)
ruthishvitwit May 26, 2023
e6d451b
Add migration for AccessConfig (#1395)
pinosu May 26, 2023
f95876d
upgrade to go 1.20
faddat Jun 1, 2023
b6dfab7
Bump bufbuild/buf-setup-action from 1.19.0 to 1.20.0 (#1425)
dependabot[bot] Jun 1, 2023
d0b520f
Bump github.com/spf13/viper from 1.15.0 to 1.16.0 (#1422)
dependabot[bot] Jun 1, 2023
5537735
Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#1423)
dependabot[bot] Jun 1, 2023
7500f5d
chore: lint main with latest golangci-lint (#1419)
faddat Jun 6, 2023
8190752
chore: maintain proto setup (#1420)
faddat Jun 6, 2023
ae7031d
Merge pull request #1427 from faddat/faddat/go-120
alpe Jun 6, 2023
54f66fc
Bump wasmvm to v1.2.4 (#1431)
pinosu Jun 6, 2023
6937409
Update changelog for v0.40.1 release (#1436)
pinosu Jun 7, 2023
f42016e
Upgrade cosmos-sdk to v0.47.3 (#1442)
pinosu Jun 9, 2023
3740099
bump ibc
faddat Jun 10, 2023
522e9bf
Merge pull request #1443 from faddat/bump-ibc
alpe Jun 12, 2023
4bfe2ba
Setup mergify to backport v0.40.x
alpe Jun 12, 2023
bec6778
Debug simulations in CI (#1446)
pinosu Jun 13, 2023
1ce86ca
Merge pull request #1445 from CosmWasm/mergify_40
alpe Jun 13, 2023
a4548ba
Start system tests (#1410)
alpe Jun 15, 2023
657420b
Edit config to speed up debugging (#1447)
pinosu Jun 19, 2023
5c63f01
Bump github.com/cosmos/cosmos-sdk from 0.47.2 to 0.47.3 in /tests/system
dependabot[bot] Jun 22, 2023
65b5321
Merge pull request #1457 from CosmWasm/dependabot/go_modules/tests/sy…
alpe Jun 23, 2023
e57901f
Bump bufbuild/buf-setup-action from 1.21.0 to 1.22.0
dependabot[bot] Jun 26, 2023
b2214cf
Ensure history position does not conflict
alpe Jun 27, 2023
30f956b
Merge pull request #1461 from CosmWasm/dependabot/github_actions/bufb…
alpe Jun 28, 2023
c376c93
Merge pull request #1462 from CosmWasm/history_position
alpe Jun 29, 2023
448cc64
Bump seq in ibctests for failed messages as well (#1464)
alpe Jun 29, 2023
7644515
Bump bufbuild/buf-setup-action from 1.22.0 to 1.23.0
dependabot[bot] Jun 30, 2023
2496105
Use large resouce class for CI system tests (#1465)
alpe Jun 30, 2023
1d423da
Merge pull request #1474 from CosmWasm/dependabot/github_actions/bufb…
alpe Jun 30, 2023
9b85d8d
Bump bufbuild/buf-setup-action from 1.23.0 to 1.23.1
dependabot[bot] Jul 3, 2023
255ba09
Merge pull request #1477 from CosmWasm/dependabot/github_actions/bufb…
alpe Jul 3, 2023
5c6b2fb
Remove trace param in system tests
alpe Jul 4, 2023
f171a67
Add updates to ibctesting framework for MS (#1472)
alpe Jul 4, 2023
c158b77
Merge pull request #1481 from CosmWasm/system_notrace
alpe Jul 4, 2023
1763477
Remove check for wasm limit size in state sync (#1471)
pinosu Jul 5, 2023
15e4317
Bump CometBFT for security fix
alpe Jul 4, 2023
63f73d3
Gov authorization propagation for sub-messages (#1482)
alpe Jul 6, 2023
0fd9ecd
Deprecate alias.go (#1484)
pinosu Jul 6, 2023
1a5a2d9
Upgrade to wasmvm 1.3.0-rc.0 (#1486)
pinosu Jul 6, 2023
47cdac1
Merge pull request #1479 from CosmWasm/cometbft0372
alpe Jul 6, 2023
41bf225
Remove dependency to wasmd in system tests
alpe Jul 6, 2023
17e14a4
Merge pull request #1489 from CosmWasm/system_dep_cleanup
alpe Jul 6, 2023
3ab22e8
Bump github.com/cosmos/ibc-go/v7 from 7.1.0 to 7.2.0
dependabot[bot] Jul 6, 2023
d2e9ace
Add AllDenomMetadata BankQuery (#1426)
chipshort Jul 6, 2023
db93d7b
Merge pull request #1459 from CosmWasm/dependabot/go_modules/github.c…
alpe Jul 6, 2023
c23ecae
Add Encodings For `MsgFundCommunityPool` from Distribution (#1458)
fragwuerdig Jul 7, 2023
3fef0e2
Bump github.com/prometheus/client_golang from 1.15.0 to 1.16.0
dependabot[bot] Jul 7, 2023
52a7a6a
Merge pull request #1453 from CosmWasm/dependabot/go_modules/github.c…
alpe Jul 7, 2023
9f42774
Bump bufbuild/buf-setup-action from 1.23.1 to 1.24.0
dependabot[bot] Jul 14, 2023
788cdbb
Merge pull request #1502 from CosmWasm/dependabot/github_actions/bufb…
alpe Jul 14, 2023
d7df231
Make system tests extendable for other app binaries
alpe Jul 14, 2023
661fd4b
Merge pull request #1503 from CosmWasm/system_test_reusable
alpe Jul 14, 2023
e5049ba
Add a method to do raw query in ibctesting (#1505)
larry0x Jul 17, 2023
8cc747b
Bump wasmvm to v1.3.0
alpe Jul 17, 2023
91c7154
Bump bufbuild/buf-setup-action from 1.24.0 to 1.25.0
dependabot[bot] Jul 18, 2023
5d05b85
Merge pull request #1514 from CosmWasm/dependabot/github_actions/bufb…
alpe Jul 18, 2023
24fd281
Build release + artifact on CI
alpe Jul 18, 2023
e39474e
Merge pull request #1511 from CosmWasm/wasmvm_13
alpe Jul 18, 2023
6d770a5
Merge pull request #1515 from CosmWasm/release_artifacts
alpe Jul 18, 2023
a17f5f2
Add distribution query
alpe Jul 18, 2023
07700a1
Allow better override of wasmVM in x/wasm keeper (#1494)
ethanfrey Jul 18, 2023
551acab
Merge pull request #1517 from CosmWasm/distr_query
alpe Jul 19, 2023
fe3afd5
Test coin metadata query (#1520)
alpe Jul 19, 2023
19c17cb
Add/Remove addresses for code upload params (#1493)
pinosu Jul 19, 2023
46f9ebf
Bump SDK to v0.47.4
alpe Jul 20, 2023
375b04d
Merge pull request #1525 from CosmWasm/sdk_upgrade474
alpe Jul 20, 2023
ddd514f
Revisit circleCI workflow for tags
alpe Jul 20, 2023
89cca2d
Merge pull request #1526 from CosmWasm/circleci_workflow
alpe Jul 20, 2023
2d54a1d
fix: use a constant for badAddress in tx_test.go (#1533)
faddat Jul 24, 2023
36416de
Update CHANGELOG for v0.41.0 release (#1524)
pinosu Jul 28, 2023
8627f85
style: lint wasmd in the same manner as cosmos-sdk (#1537)
faddat Jul 31, 2023
ae964a8
Bump bufbuild/buf-setup-action from 1.25.0 to 1.25.1 (#1541)
dependabot[bot] Aug 3, 2023
dc970c4
marshaler to codec (#1545)
faddat Aug 4, 2023
a2373f0
remove "check" from make test-all (#1548)
faddat Aug 4, 2023
33df4ae
Bump bufbuild/buf-setup-action from 1.25.1 to 1.26.0 (#1549)
dependabot[bot] Aug 11, 2023
08c517b
Fix label validation error (#1555)
pinosu Aug 17, 2023
3de2c49
Bump bufbuild/buf-setup-action from 1.26.0 to 1.26.1 (#1556)
dependabot[bot] Aug 17, 2023
7078c13
Bump cosmossdk.io/math from 1.0.1 to 1.1.2 (#1566)
dependabot[bot] Aug 22, 2023
881d6a7
Improve ToWasmVMGas/FromWasmVMGas code level documentation (#1564)
webmaster128 Aug 24, 2023
bfaf589
Fix gas calculation (#1567)
chipshort Aug 24, 2023
9e50a42
Bump actions/checkout from 3.5.3 to 3.6.0 (#1572)
dependabot[bot] Aug 25, 2023
acfe1e4
fix: make sure wasmvm cache metrics collector after VM setup
dadamu Aug 28, 2023
7c6069d
Merge pull request #1575 from desmos-labs/paul/fix-wasmvm-cache-metri…
alpe Aug 28, 2023
4595e6d
Fail fast on wasmvm cache metric setup
alpe Aug 28, 2023
78b5af2
Merge pull request #1576 from CosmWasm/1575_test
alpe Aug 28, 2023
baf3357
Add unit test for gas calculation
pinosu Aug 29, 2023
0d3bfce
Rename key store key attribute to be more concrete
alpe Aug 30, 2023
1f49d75
Merge pull request #1585 from CosmWasm/rename_key
alpe Aug 31, 2023
daf48ea
Merge pull request #1582 from CosmWasm/gas_unit_test
alpe Aug 31, 2023
0371b65
Bump github.com/cosmos/ibc-go/v7 from 7.2.0 to 7.3.0 (#1594)
dependabot[bot] Sep 1, 2023
2ca9379
Bump cosmos-sdk to v0.47.5
pinosu Sep 4, 2023
ffcfa8d
Remove Wasmer references
pinosu Sep 4, 2023
55ad68b
Bump actions/checkout from 3.6.0 to 4.0.0
dependabot[bot] Sep 5, 2023
1082ad5
Merge pull request #1603 from CosmWasm/dependabot/github_actions/acti…
alpe Sep 5, 2023
0903d63
Merge pull request #1598 from CosmWasm/1595-bump_sdk_0.47.5
alpe Sep 5, 2023
1149653
Merge pull request #1599 from CosmWasm/1596-remove_wasmer_ref
alpe Sep 5, 2023
51aae54
Deactivate thelper for linter
alpe Sep 5, 2023
086c052
Merge pull request #1604 from CosmWasm/linter_no_thelper
alpe Sep 5, 2023
3fc9224
Bump github.com/cosmos/iavl from 0.20.0 to 0.20.1
dependabot[bot] Sep 6, 2023
f1835a1
Add logging for query err before redacting (#1605)
pinosu Sep 6, 2023
7bd6566
Merge pull request #1606 from CosmWasm/dependabot/go_modules/github.c…
alpe Sep 6, 2023
9e3904c
test: add test cases in ContractsByCode
170210 Sep 7, 2023
cb887ee
Merge pull request #1607 from 170210/modify_wasmd_test
alpe Sep 7, 2023
87dce54
Add StoreAndMigrateContract proposal (#1539)
pinosu Sep 7, 2023
3d9d92c
Wasmvm 1.4 upgrade (#1590)
alpe Sep 7, 2023
0f82c95
Linter only (#1609)
alpe Sep 7, 2023
09b5008
Remove legacy gov proposal dependencies (#1587)
pinosu Sep 7, 2023
965e28c
Restrict pagination on all state query
alpe Sep 12, 2023
e81d655
Start rework channel query
alpe Sep 12, 2023
177c0a9
Test channels query
alpe Sep 13, 2023
d5fa278
Handle query for non ibc contracts
alpe Sep 13, 2023
42f3192
Merge pull request #1619 from CosmWasm/queries
alpe Sep 14, 2023
dd22204
Add store code authz (#1591)
pinosu Sep 14, 2023
e0bfaa5
Merge pull request #1620 from CosmWasm/channel_query
alpe Sep 14, 2023
b72d182
Ensure some contraints and limits on pin/unpin code ids
alpe Sep 13, 2023
6a2bffd
Add grant system tests (#1626)
pinosu Sep 15, 2023
7dba5c7
Merge pull request #1624 from CosmWasm/upper_limit
alpe Sep 18, 2023
7dc2d0c
Fix genesis import with predictable addresses
alpe Sep 18, 2023
c12e85e
Merge pull request #1630 from CosmWasm/1629_genesis
alpe Sep 18, 2023
afa85da
Set default query limit and ensure constraints (#1632)
alpe Sep 18, 2023
03f3c72
Update changelog for 0.42.0 release (#1633)
pinosu Sep 20, 2023
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
7ddec9e
Merge tag 'v0.50.0' into feat/bumpup_0.50.0
da1suk8 Mar 27, 2024
ec93417
fix: update incorrect tendermint/tendermint imports and references
da1suk8 Mar 27, 2024
8c15fb9
fix: remove references to ostracon
da1suk8 Mar 27, 2024
da7659d
fix: remove references to Finschia/finschia-sdk
da1suk8 Mar 27, 2024
38a4720
fix: delete bankplus
da1suk8 Mar 27, 2024
851fded
feat: apply PRs https://github.com/CosmWasm/wasmd/pull/1410 and https…
da1suk8 Mar 27, 2024
a5498f5
test: update expected values in TestWeightedOperations based on this …
da1suk8 Mar 27, 2024
f282bbb
fix: enable to compile
zemyblue Mar 22, 2024
6910aa6
chore: rename legacy propsal files
da1suk8 Mar 18, 2024
9417a25
fix: remove references to Finschia/finschia-sdk
da1suk8 Mar 27, 2024
c1844ef
build: make proto
da1suk8 Mar 27, 2024
6dcb1b5
test: add configuration for Bech32 prefixes and CoinType
da1suk8 Mar 28, 2024
f1b420c
Merge branch 'feat/bump_0.50.0' into feat/bumpup_0.50.0
da1suk8 Mar 28, 2024
57af044
revert: restore deleted files
da1suk8 Mar 28, 2024
95b23be
bulid: update golang version to 1.21
da1suk8 Mar 28, 2024
dc9ae90
build: add cosmos.msg.v1.service annotation to lbm.wasm.v1.Msg
da1suk8 Mar 28, 2024
9dd0509
fix: add initialize store
da1suk8 Mar 29, 2024
34f12cb
fix: apply changes from Cosmwasm/wasmd to keeper.go
da1suk8 Mar 29, 2024
505b470
fix: replace wasmd types with wasmplusd types
da1suk8 Mar 29, 2024
66c15df
fix: unittest error of `TestWasmdExport`
zemyblue Apr 2, 2024
c36aaa8
test: update testdata
da1suk8 Apr 3, 2024
f387943
fix: unittest error of wasm cli query_test (remove query unittest bec…
zemyblue Apr 3, 2024
fe68ffc
fix: correct the mistakes in commit https://github.com/Finschia/wasmd…
da1suk8 Apr 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4.1.1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
149 changes: 117 additions & 32 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,148 @@
run:
tests: false
tests: true
timeout: 15m
sort-results: true
allow-parallel-runners: true
exclude-dir: testutil/testdata
skip-files:
- server/grpc/gogoreflection/fix_registration.go
- ".*\\.pb\\.go$"
- ".*\\.pb\\.gw\\.\\.go$"
- ".*\\.pulsar\\.go$"

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- errcheck
- dogsled
- exportloopref
- goconst
- gocritic
- gofmt
- goimports
- revive
- gci
- gofumpt
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- exportloopref
- nolintlint
- staticcheck
- structcheck
- revive
- stylecheck
- typecheck
# - thelper # too many positives with table tests that have custom setup(*testing.T)
- unconvert
- unused
- varcheck

issues:
exclude-rules:
- text: "Use of weak random number generator"
- text: 'Use of weak random number generator'
linters:
- gosec
- text: "ST1003:"
- text: 'ST1003:'
linters:
- stylecheck
# FIXME: Disabled until golangci-lint updates stylecheck with this fix:
# https://github.com/dominikh/go-tools/issues/389
- text: 'ST1016:'
linters:
- stylecheck
- path: 'migrations'
text: 'SA1019:'
linters:
- staticcheck
- text: 'SA1019: codec.NewAminoCodec is deprecated' # TODO remove once migration path is set out
linters:
- staticcheck
- text: 'SA1019: legacybech32.MustMarshalPubKey' # TODO remove once ready to remove from the sdk
linters:
- staticcheck
- text: 'SA1019: legacybech32.MarshalPubKey' # TODO remove once ready to remove from the sdk
linters:
- staticcheck
- text: 'SA1019: legacybech32.UnmarshalPubKey' # TODO remove once ready to remove from the sdk
linters:
- staticcheck
- text: 'SA1019: params.SendEnabled is deprecated' # TODO remove once ready to remove from the sdk
linters:
- staticcheck
- text: 'leading space'
linters:
- nolintlint
max-issues-per-linter: 10000
max-same-issues: 10000

linters-settings:
gci:
custom-order: true
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(cosmossdk.io)
- prefix(github.com/cosmos/cosmos-sdk)
- prefix(github.com/CosmWasm/wasmd)
revive:
rules:
- name: redefines-builtin-id
disabled: true

gosec:
# To select a subset of rules to run.
# Available rules: https://github.com/securego/gosec#available-rules
# Default: [] - means include all rules
includes:
# - G101 # Look for hard coded credentials
- G102 # Bind to all interfaces
- G103 # Audit the use of unsafe block
- G104 # Audit errors not checked
- G106 # Audit the use of ssh.InsecureIgnoreHostKey
- G107 # Url provided to HTTP request as taint input
- G108 # Profiling endpoint automatically exposed on /debug/pprof
- G109 # Potential Integer overflow made by strconv.Atoi result conversion to int16/32
- G110 # Potential DoS vulnerability via decompression bomb
- G111 # Potential directory traversal
- G112 # Potential slowloris attack
- G113 # Usage of Rat.SetString in math/big with an overflow (CVE-2022-23772)
- G114 # Use of net/http serve function that has no support for setting timeouts
- G201 # SQL query construction using format string
- G202 # SQL query construction using string concatenation
- G203 # Use of unescaped data in HTML templates
- G204 # Audit use of command execution
- G301 # Poor file permissions used when creating a directory
- G302 # Poor file permissions used with chmod
- G303 # Creating tempfile using a predictable path
- G304 # File path provided as taint input
- G305 # File traversal when extracting zip/tar archive
- G306 # Poor file permissions used when writing to a new file
- G307 # Deferring a method which returns an error
- G401 # Detect the usage of DES, RC4, MD5 or SHA1
- G402 # Look for bad TLS connection settings
- G403 # Ensure minimum RSA key length of 2048 bits
- G404 # Insecure random number source (rand)
- G501 # Import blocklist: crypto/md5
- G502 # Import blocklist: crypto/des
- G503 # Import blocklist: crypto/rc4
- G504 # Import blocklist: net/http/cgi
- G505 # Import blocklist: crypto/sha1
- G601 # Implicit memory aliasing of items from a range statement
misspell:
locale: US
gofumpt:
extra-rules: true
dogsled:
max-blank-identifiers: 3
errcheck:
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
# default is false: such cases aren't reported by default.
check-blank: true
max-blank-identifiers: 6
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0
prealloc:
# XXX: we don't recommend using this linter before doing performance profiling.
# For most programs usage of prealloc will be a premature optimization.

# Report preallocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them.
# True by default.
simple: false
range-loops: true # Report preallocation suggestions on range loops, true by default
for-loops: true # Report preallocation suggestions on for loops, false by default
nolintlint:
allow-unused: false
allow-leading-space: true
require-explanation: false
require-specific: false
gosimple:
checks: ['all']
gocritic:
disabled-checks:
- regexpMust
- appendAssign
- ifElseChain
30 changes: 30 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
queue_rules:
- name: default
conditions:
- "#approved-reviews-by>0"

pull_request_rules:
- name: backport patches to main branch
conditions:
- base=releases/v0.4x
- label=backport/main
actions:
backport:
branches:
- main
- name: backport patches to sdk45 release branch
conditions:
- base=main
- label=backport/v0.3x
actions:
backport:
branches:
- releases/v0.3x
- name: backport patches to sdk47 release branch
conditions:
- base=main
- label=backport/v0.4x
actions:
backport:
branches:
- releases/v0.4x
5 changes: 5 additions & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# see https://docs.sonarcloud.io/advanced-setup/automatic-analysis/
sonar.sources=.
sonar.exclusions=**/tests/**,**/benchmarks/**,**/ibctesting/**,**/wasmtesting/**,**/simulation/**,**/testdata/**,**/*.pb.go,**/*.pb.gw.go,**/*.test.go,**/test_*.go,**/*_fixtures.go,**/mock_*.go,**/*_mock.go

sonar.tests=.
51 changes: 51 additions & 0 deletions CODING_GUIDELINES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Coding Guidelines

This document is an extension to [CONTRIBUTING](./CONTRIBUTING.md) and provides more details about the coding guidelines and requirements.

## API & Design

* Code must be well structured:
* packages must have a limited responsibility (different concerns can go to different packages),
* types must be easy to compose,
* think about maintainbility and testability.
* "Depend upon abstractions, [not] concretions".
* Try to limit the number of methods you are exposing. It's easier to expose something later than to hide it.
* Follow agreed-upon design patterns and naming conventions.
* publicly-exposed functions are named logically, have forward-thinking arguments and return types.
* Avoid global variables and global configurators.
* Favor composable and extensible designs.
* Minimize code duplication.
* Limit third-party dependencies.

Performance:

* Avoid unnecessary operations or memory allocations.

Security:

* Pay proper attention to exploits involving:
* gas usage
* transaction verification and signatures
* malleability
* code must be always deterministic
* Thread safety. If some functionality is not thread-safe, or uses something that is not thread-safe, then clearly indicate the risk on each level.

## Best practices

* Use [goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports) as your code formatter.

* Always wrap returned errors.
* Doing `if err != nil { return err }` does not include each callers' context. Pushing errors up the stack without context makes it harder to test and debug. Additionally, a short context description makes it easier for the reader to understand the code. Example:

```go
if !coins.IsZero() {
if err := k.bank.TransferCoins(ctx, caller, contractAddress, coins); err != nil {
return nil, err
}
}
```

* It would be an improvement to return `return nil, sdkerror.Wrap(err, "lock contract coins")`
* Please notice that fmt.Errorf is not used, because the error handling predates fmt.Errorf and errors.Is

* Limit the use of aliases, when not used during the refactoring process.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ In order for imports to properly compile in your IDE, you may need to manually s

For example, in vscode your `.vscode/settings.json` should look like:

```
```json
{
"protoc": {
"options": [
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docker build . -t finschia/wasmd:latest
# docker run --rm -it finschia/wasmd:latest /bin/sh
FROM golang:1.20-alpine AS go-builder
FROM golang:1.21-alpine3.17 AS go-builder
ARG arch=x86_64

# this comes from standard alpine nightly file
Expand All @@ -16,8 +16,8 @@ WORKDIR /code
COPY . /code/

# See https://github.com/Finschia/wasmvm/releases
ADD https://github.com/Finschia/wasmvm/releases/download/v1.0.0-0.10.0/libwasmvm_static.x86_64.a /lib/libwasmvm_static.x86_64.a
ADD https://github.com/Finschia/wasmvm/releases/download/v1.0.0-0.10.0/libwasmvm_static.aarch64.a /lib/libwasmvm_static.aarch64.a
ADD https://github.com/Finschia/wasmvm/releases/download/v1.0.0-0.10.0/libwasmvm_static.x86_64.a /lib/libwasmvm_static.x86_64.a
RUN sha256sum /lib/libwasmvm_static.aarch64.a | grep bc3db72ba32f34ad88ceb1d20479411bd7f50ccd6a5ca50cc8ca462a561e6189
RUN sha256sum /lib/libwasmvm_static.x86_64.a | grep 352fa5de5f9dba66f0a38082541d3e63e21394fee3e577ea35e0906294c61276

Expand All @@ -30,7 +30,7 @@ RUN echo "Ensuring binary is statically linked ..." \
&& (file /code/build/wasmd | grep "statically linked")

# --------------------------------------------------------
FROM alpine:3.15
FROM alpine:3.17

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

Expand Down
Loading
Loading