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: cosmos sdk 0.47.10 upgrade #2100

Merged
merged 47 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
7d2ebbc
Remove broadcast mode block wip
skosito Apr 8, 2024
253a1b8
Fixes
skosito Apr 9, 2024
717fc3f
Changelog
skosito Apr 9, 2024
04916f6
PR comments
skosito Apr 9, 2024
e74ae5f
Lint fix
skosito Apr 9, 2024
93d07cb
refactor: remove fungible params (#2004)
skosito Apr 11, 2024
ec54aa3
Fix changelog
skosito Apr 11, 2024
9b142de
Merge branch 'develop' into remove-broadcastmode-block
skosito Apr 12, 2024
0bcc169
Merge branch 'develop' into remove-broadcastmode-block
skosito Apr 17, 2024
a1be78d
Revert proto indexes
skosito Apr 17, 2024
a238407
Merge branch 'develop' into feat-cosmos-sdk-0.47.10-upgrade
skosito Apr 18, 2024
87403f0
Make generate
skosito Apr 18, 2024
27b9e0e
refactor: deprecate x/params (#2014)
skosito Apr 25, 2024
5a410a4
feat: cosmos v0.47 upgrade (#2039)
skosito Apr 29, 2024
bbcddc9
Merge branch 'develop' into feat-cosmos-sdk-0.47.10-upgrade
skosito Apr 30, 2024
b01a506
proto fixes after merge
skosito Apr 30, 2024
0cd76e8
Fix tx proto emissions
skosito Apr 30, 2024
d2304ff
fixes
skosito Apr 30, 2024
2a51839
make generate
skosito Apr 30, 2024
e335b22
remove tendermint usage
skosito Apr 30, 2024
4662384
Update changelog
skosito Apr 30, 2024
70ceefa
fix test
skosito Apr 30, 2024
2c6386a
add some logs to proto gen script
skosito Apr 30, 2024
ec3b62a
permissions
skosito Apr 30, 2024
7df4c55
add more logs
skosito Apr 30, 2024
bc7b729
test
skosito Apr 30, 2024
d7101fb
test
skosito Apr 30, 2024
baa7644
test
skosito Apr 30, 2024
cc6718f
test
skosito Apr 30, 2024
937421d
test
skosito Apr 30, 2024
40dd062
test
skosito Apr 30, 2024
53f3251
test
skosito Apr 30, 2024
79dfa55
test
skosito Apr 30, 2024
59f18ea
test
skosito Apr 30, 2024
6b8055c
test
skosito Apr 30, 2024
0375c80
cleanup
skosito Apr 30, 2024
aa43519
cleanup
skosito Apr 30, 2024
c611885
always format proto before generation
gartnera Apr 30, 2024
4d9dc4d
generate explicit format deps
gartnera Apr 30, 2024
5871e0f
set docker username to fix permissions in CI
gartnera Apr 30, 2024
7e5c0dc
dummy proto change to test formatting
gartnera Apr 30, 2024
70f8c50
set buf cache directory
gartnera Apr 30, 2024
a430d7b
Revert "dummy proto change to test formatting"
gartnera Apr 30, 2024
bddee34
refactor: update go-tss (#2094)
skosito May 2, 2024
6dd2551
Merge branch 'develop' into feat-cosmos-sdk-0.47.10-upgrade
lumtis May 2, 2024
88387a1
conflicts
lumtis May 3, 2024
f07f7d0
Merge branch 'develop' into feat-cosmos-sdk-0.47.10-upgrade
lumtis May 3, 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
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .github/workflows/generate-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
echo "$HOME/go/bin" >> $GITHUB_PATH

- name: Generate Go code, docs and specs
run: make generate
env:
TEST_ENV: ${{ github.workspace }}
run: make generate-ci

- name: Check for changes
run: |
Expand Down
29 changes: 19 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ BUILDTIME := $(shell date -u +"%Y%m%d.%H%M%S" )
DOCKER ?= docker
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf
GOFLAGS:=""
REPOSITORY_ROOT := $(dir $(abspath $(MAKEFILE_LIST)))

ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=zetacore \
-X github.com/cosmos/cosmos-sdk/version.ServerName=zetacored \
Expand Down Expand Up @@ -144,21 +145,26 @@ gosec:
### Generation commands ###
###############################################################################

proto:
@echo "--> Removing old Go types "
@find . -name '*.pb.go' -type f -delete
@echo "--> Generating new Go types from protocol buffer files"
@bash ./scripts/protoc-gen-go.sh
@buf format -w
.PHONY: proto

typescript:
@echo "--> Generating TypeScript bindings"
@bash ./scripts/protoc-gen-typescript.sh
.PHONY: typescript

protoVer=0.13.0
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)
protoImageCi=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace --user root $(protoImageName)

proto-gen:
@echo "Generating Protobuf files"
@$(protoImage) sh ./scripts/protoc-gen-go.sh

proto-gen-ci:
@echo "Generating Protobuf files"
@$(protoImageCi) sh ./scripts/protoc-gen-go.sh

proto-format:
@bash ./scripts/proto-format.sh
@$(protoImage) find ./ -name "*.proto" -exec clang-format -i {} \;

openapi:
@echo "--> Generating OpenAPI specs"
Expand All @@ -180,9 +186,12 @@ mocks:
@bash ./scripts/mocks-generate.sh
.PHONY: mocks

generate: proto openapi specs typescript docs-zetacored
generate: proto-gen openapi specs typescript docs-zetacored
.PHONY: generate

generate-ci: proto-gen-ci openapi specs typescript docs-zetacored
.PHONY: generate-ci

###############################################################################
### E2E tests and localnet ###
###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion app/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import (
"runtime/debug"

errorsmod "cosmossdk.io/errors"
tmlog "github.com/cometbft/cometbft/libs/log"
sdk "github.com/cosmos/cosmos-sdk/types"
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
"github.com/cosmos/cosmos-sdk/x/authz"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
tmlog "github.com/tendermint/tendermint/libs/log"
crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types"
observertypes "github.com/zeta-chain/zetacore/x/observer/types"
)
Expand Down
4 changes: 2 additions & 2 deletions app/ante/handler_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
ibcante "github.com/cosmos/ibc-go/v6/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v6/modules/core/keeper"
ibcante "github.com/cosmos/ibc-go/v7/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper"
ethante "github.com/evmos/ethermint/app/ante"
ethermint "github.com/evmos/ethermint/types"
evmtypes "github.com/evmos/ethermint/x/evm/types"
Expand Down
6 changes: 3 additions & 3 deletions app/ante/vesting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/cosmos/cosmos-sdk/simapp/helpers"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
sdk "github.com/cosmos/cosmos-sdk/types"
vesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
Expand Down Expand Up @@ -73,14 +73,14 @@ func TestVesting_AnteHandle(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
tx, err := helpers.GenSignedMockTx(
tx, err := simtestutil.GenSignedMockTx(
rand.New(rand.NewSource(time.Now().UnixNano())),
txConfig,
[]sdk.Msg{
tt.msg,
},
sdk.NewCoins(),
helpers.DefaultGenTxGas,
simtestutil.DefaultGenTxGas,
"testing-chain-id",
[]uint64{0},
[]uint64{0},
Expand Down
Loading
Loading