mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
614d4e40fe
* Update cometbft, cosmos, ethermint, and ibc-go * Replace github.com/tendermint/tendermint by github.com/cometbft/cometbft * Replace github.com/tendermint/tm-db by github.com/cometbft/cometbft-db * Replace gogo/protobuf with cosmos/gogoproto & simapp replacement * Replace cosmos-sdk/simapp/helpers with cosmos-sdk/testutil/sims * Remove no longer used simulations * Replace ibchost with ibcexported See https://github.com/cosmos/ibc-go/blob/v7.2.2/docs/migrations/v6-to-v7.md#ibc-module-constants * Add new consensus params keeper * Add consensus keeper to blockers * Fix keeper and module issues in app.go * Add IsSendEnabledCoins and update SetParams interface changes * Fix protobuf build for cosmos 47 (#1800) * fix cp errors by using -f; fix lint by only linting our proto dir; and use proofs.proto directly from ics23 for ibc-go v7 * run proto-all; commit updated third party deps and swagger changes * regenerate proto files * use correct gocosmos build plugin for buf * re-gen all protobuf files to update paths for new gocosmos plugin * update protoc and buf to latest versions * fix staking keeper issues in app.go * update tally handler for gov changes * chain id fix and flag fixes * update deps for cometbft 47.7 upgrade * remove all module legacy queriers * update stakingKeeper to pointer * Replace ModuleCdc from govv1beta1 to govcodec * remove simulations * abci.LastCommitInfo → abci.CommitInfo * Remove unused code in keys.go * simapp.MakeTestEncodingConfig -> moduletestutil.MakeTestEncodingConfi * Fix chain id issues in tests * Fix remaining unit test issues * Update changelog for upgrade * Fix e2e tests using updated kvtool * Update protonet to v47 compatible genesis * Bump cometbft-db to v0.9.1-kava.1 * Update kvtool * Remove extra changelog * Fix merged rocksdb issues * go mod cleanup * Bump cometbft-db to v9 and go to 1.21 * Bump rocksdb version to v8.10.0 * Update kvtool to latest version * Update gin to v1.9.0 * Use ibctm.ModuleName in app_test * Fallback to genesis chain id instead of client toml * Remove all simulations * Fix cdp migrations issue with v47 * Update dependencies to correct tags --------- Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
67 lines
2.7 KiB
Makefile
67 lines
2.7 KiB
Makefile
.PHONY: proto-lint check-proto-lint
|
|
proto-lint check-proto-lint: install-build-deps
|
|
@echo "Linting proto file"
|
|
@$(BUF) lint proto
|
|
|
|
.PHONY: proto-gen
|
|
proto-gen: install-build-deps
|
|
@echo "Generating go proto files"
|
|
@$(BUF) generate --template proto/buf.gen.gogo.yaml proto
|
|
@cp -r out/github.com/kava-labs/kava/* ./
|
|
@rm -rf out/github.com
|
|
|
|
.PHONY: check-proto-gen
|
|
check-proto-gen: proto-gen ## Return error code 1 if proto gen changes files
|
|
@git diff --exit-code **/*.pb.go > /dev/null || (echo "Protobuf generated go files are not up to date! Please run \`make proto-gen\`."; exit 1)
|
|
|
|
.PHONY: proto-gen-doc
|
|
proto-gen-doc: install-build-deps
|
|
@echo "Generating proto doc"
|
|
@$(BUF) generate --template proto/buf.gen.doc.yaml proto
|
|
|
|
.PHONY: check-proto-gen-doc
|
|
check-proto-gen-doc: proto-gen-doc ## Return error code 1 if proto gen changes files
|
|
@git diff --exit-code docs/core/proto-docs.md > /dev/null || (echo "Protobuf doc is not up to date! Please run \`make proto-gen-doc\`."; exit 1)
|
|
|
|
.PHONY: proto-gen-swagger
|
|
proto-gen-swagger: install-build-deps
|
|
@echo "Generating proto swagger"
|
|
@$(BUF) generate --template proto/buf.gen.swagger.yaml proto
|
|
@$(SWAGGER_COMBINE) client/docs/config.json -o client/docs/swagger-ui/swagger.yaml -f yaml --continueOnConflictingPaths true --includeDefinitions true
|
|
@rm -rf out/swagger
|
|
|
|
.PHONY: check-proto-gen-swagger
|
|
check-proto-gen-swagger: proto-gen-swagger ## Return error code 1 if proto gen changes files
|
|
@git diff --exit-code client/docs/swagger-ui/swagger.yaml > /dev/null || (echo "Protobuf swagger is not up to date! Please run \`make proto-gen-swagger\`."; exit 1)
|
|
|
|
.PHONY: proto-format
|
|
@echo "Formatting proto files"
|
|
proto-format: install-build-deps
|
|
@$(BUF) format -w proto
|
|
|
|
.PHONY: check-proto-format
|
|
check-proto-format: proto-format
|
|
@git diff --exit-code proto/**/*.proto > /dev/null || (echo "Protobuf format is not up to date! Please run \`make proto-format\`."; exit 1)
|
|
|
|
BUF_CHECK_BREAKING_AGAINST ?= ref=HEAD~1
|
|
BUF_CHECK_BREAKING_AGAINST_REMOTE ?= branch=$(GIT_BRANCH),$(BUF_CHECK_BREAKING_AGAINST)
|
|
|
|
.PHONY: check-proto-breaking
|
|
check-proto-breaking: install-build-deps
|
|
@echo "Checking for proto backward compatibility"
|
|
@$(BUF) breaking --against '.git#$(BUF_CHECK_BREAKING_AGAINST)'
|
|
|
|
.PHONY: check-proto-breaking-remote
|
|
check-proto-breaking-remote: install-build-deps
|
|
@echo "Checking for proto backward compatibility"
|
|
$(BUF) breaking --against '$(HTTPS_GIT)#$(BUF_CHECK_BREAKING_AGAINST_REMOTE)'
|
|
|
|
.PHONY: proto-gen-all
|
|
proto-gen-all: proto-gen proto-gen-doc proto-gen-swagger
|
|
|
|
.PHONY: proto-all
|
|
proto-all: proto-update-deps proto-lint proto-format check-proto-breaking proto-gen-all
|
|
|
|
.PHONY: proto-all-allow-breaking
|
|
proto-all-allow-breaking: proto-update-deps proto-lint proto-format proto-gen-all
|