-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #268 from neutron-org/update-sdk47
update sdk47 #NTRN-10
- Loading branch information
Showing
639 changed files
with
103,982 additions
and
31,759 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ LEDGER_ENABLED ?= true | |
SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g') | ||
BINDIR ?= $(GOPATH)/bin | ||
SIMAPP = ./app | ||
ENABLED_PROPOSALS := MigrateContract,SudoContract,UpdateAdmin,ClearAdmin,PinCodes,UnpinCodes | ||
GO_VERSION=1.20.0 | ||
BUILDDIR ?= $(CURDIR)/build | ||
|
||
|
@@ -68,8 +67,7 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=neutron \ | |
-X github.com/cosmos/cosmos-sdk/version.AppName=neutrond \ | ||
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \ | ||
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ | ||
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \ | ||
-X "github.com/neutron-org/neutron/app.EnableSpecificProposals=$(ENABLED_PROPOSALS)" | ||
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" | ||
|
||
ifeq ($(WITH_CLEVELDB),yes) | ||
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=cleveldb | ||
|
@@ -113,7 +111,6 @@ build-static-linux-amd64: go.sum $(BUILDDIR)/ | |
--build-arg GIT_VERSION=$(VERSION) \ | ||
--build-arg GIT_COMMIT=$(COMMIT) \ | ||
--build-arg BUILD_TAGS=$(build_tags_comma_sep) \ | ||
--build-arg ENABLED_PROPOSALS=$(ENABLED_PROPOSALS) \ | ||
--platform linux/amd64 \ | ||
-t neutron-amd64 \ | ||
--load \ | ||
|
@@ -188,26 +185,22 @@ format: | |
@go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name "*.pb.go" -not -name "*.pb.gw.go" -not -name "*.pulsar.go" -not -path "./crypto/keys/secp256k1/*" | xargs gofumpt -w -l | ||
golangci-lint run --fix | ||
goimports -w -local github.com/neutron-org . | ||
|
||
.PHONY: format | ||
|
||
############################################################################### | ||
### Protobuf ### | ||
############################################################################### | ||
|
||
containerProtoVer=0.9.0 | ||
containerProtoImage=ghcr.io/cosmos/proto-builder:$(containerProtoVer) | ||
containerProtoGen=cosmos-sdk-proto-gen-$(containerProtoVer) | ||
containerProtoGenSwagger=cosmos-sdk-proto-gen-swagger-$(containerProtoVer) | ||
containerProtoFmt=cosmos-sdk-proto-fmt-$(containerProtoVer) | ||
|
||
proto-all: proto-format proto-lint proto-gen | ||
|
||
protoVer=0.11.6 | ||
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer) | ||
protoImage=docker run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) | ||
proto-gen: | ||
@echo "Generating Protobuf files" | ||
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(containerProtoImage) \ | ||
sh ./scripts/protocgen.sh; fi | ||
go mod tidy | ||
@$(protoImage) sh ./scripts/protocgen.sh | ||
|
||
proto-swagger-gen: | ||
@$(protoImage) sh ./scripts/protoc-swagger-gen.sh | ||
|
||
PROTO_FORMATTER_IMAGE=tendermintdev/docker-build-proto@sha256:aabcfe2fc19c31c0f198d4cd26393f5e5ca9502d7ea3feafbfe972448fee7cae | ||
|
||
|
@@ -257,6 +250,9 @@ start-docker-container: | |
stop-docker-container: | ||
@docker stop neutron | ||
|
||
openapi: | ||
ignite generate openapi | ||
|
||
mocks: | ||
@echo "Regenerate mocks..." | ||
@go generate ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.