-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify, regen types. remove legacy docs
- Loading branch information
1 parent
ba82eb7
commit 1af931f
Showing
26 changed files
with
962 additions
and
99,279 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ release/ | |
.idea/ | ||
.vscode/ | ||
.DS_Store | ||
github.com |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/make -f | ||
PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation') | ||
PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation') | ||
CHANGED_GO_FILES := $(shell git diff --name-only | grep .go$$ | grep -v pb.go) | ||
ALL_GO_FILES := $(shell find . -regex ".*\.go$$" | grep -v pb.go) | ||
VERSION := $(shell echo $(shell git describe --always) | sed 's/^v//') | ||
COMMIT := $(shell git log -1 --format='%H') | ||
LEDGER_ENABLED ?= true | ||
BINDIR ?= $(GOPATH)/bin | ||
BUILDDIR ?= $(CURDIR)/build | ||
DOCKER := $(shell which docker) | ||
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf:1.9.0 | ||
PROJECT_NAME = $(shell git remote get-url origin | xargs basename -s .git) | ||
|
||
export GO111MODULE = on | ||
|
||
############################################################################### | ||
### Proto ### | ||
############################################################################### | ||
|
||
protoVer=v0.7 | ||
protoImageName=tendermintdev/sdk-proto-gen:$(protoVer) | ||
containerProtoGen=juno-proto-gen-$(protoVer) | ||
containerProtoGenAny=juno-proto-gen-any-$(protoVer) | ||
containerProtoGenSwagger=juno-proto-gen-swagger-$(protoVer) | ||
containerProtoFmt=juno-proto-fmt-$(protoVer) | ||
|
||
proto-all: proto-format proto-lint proto-gen | ||
|
||
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 $(protoImageName) \ | ||
sh ./scripts/protocgen.sh; fi | ||
|
||
# This generates the SDK's custom wrapper for google.protobuf.Any. It should only be run manually when needed | ||
proto-gen-any: | ||
@echo "Generating Protobuf Any" | ||
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGenAny}$$"; then docker start -a $(containerProtoGenAny); else docker run --name $(containerProtoGenAny) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \ | ||
sh ./scripts/protocgen-any.sh; fi | ||
|
||
proto-swagger-gen: | ||
@echo "Generating Protobuf Swagger" | ||
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGenSwagger}$$"; then docker start -a $(containerProtoGenSwagger); else docker run --name $(containerProtoGenSwagger) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \ | ||
sh ./scripts/protoc-swagger-gen.sh; fi | ||
|
||
proto-format: | ||
@echo "Formatting Protobuf files" | ||
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoFmt}$$"; then docker start -a $(containerProtoFmt); else docker run --name $(containerProtoFmt) -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-build-proto \ | ||
find ./ -not -path "./third_party/*" -name "*.proto" -exec clang-format -i {} \; ; fi | ||
|
||
proto-lint: | ||
@$(DOCKER_BUF) lint --error-format=json | ||
|
||
proto-check-breaking: | ||
@$(DOCKER_BUF) breaking --against $(HTTPS_GIT)#branch=main | ||
|
||
.PHONY: proto-all proto-gen proto-gen-any proto-swagger-gen proto-format proto-lint proto-check-breaking proto-update-deps docs |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: v1 | ||
plugins: | ||
- name: gocosmos | ||
out: . | ||
opt: plugins=interfacetype+grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types | ||
- name: grpc-gateway | ||
out: . | ||
opt: logtostderr=true,allow_colon_final_segments=true |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version: v1 | ||
directories: | ||
- proto |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.