Skip to content

Commit

Permalink
feat: upgrade protobuf to cosmos sdk v0.50
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed Sep 19, 2024
1 parent ccc4f25 commit 96e60be
Show file tree
Hide file tree
Showing 38 changed files with 44,655 additions and 366 deletions.
18 changes: 10 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: proto-format proto-lint proto-gen format lint test-unit build local-image test-e2e
.PHONY: proto-format proto-lint proto-breaking proto-gen format lint test-unit build local-image test-e2e
all: proto-all format lint test-unit build local-image test-e2e

###############################################################################
Expand Down Expand Up @@ -31,9 +31,10 @@ lint:
### Protobuf ###
###############################################################################

BUF_VERSION=1.32
BUF_VERSION=1.42
BUILDER_VERSION=0.15.1

proto-all: proto-format proto-lint proto-gen
proto-all: proto-format proto-lint proto-breaking proto-gen

proto-format:
@echo "πŸ€– Running protobuf formatter..."
Expand All @@ -44,7 +45,7 @@ proto-format:
proto-gen:
@echo "πŸ€– Generating code from protobuf..."
@docker run --rm --volume "$(PWD)":/workspace --workdir /workspace \
aura-proto sh ./proto/generate.sh
ghcr.io/cosmos/proto-builder:$(BUILDER_VERSION) sh ./proto/generate.sh
@echo "βœ… Completed code generation!"

proto-lint:
Expand All @@ -53,10 +54,11 @@ proto-lint:
bufbuild/buf:$(BUF_VERSION) lint
@echo "βœ… Completed protobuf linting!"

proto-setup:
@echo "πŸ€– Setting up protobuf environment..."
@docker build --rm --tag aura-proto:latest --file proto/Dockerfile .
@echo "βœ… Setup protobuf environment!"
proto-breaking:
@echo "πŸ€– Running protobuf breaking checks..."
@docker run --rm --volume "$(PWD)":/workspace --workdir /workspace \
bufbuild/buf:$(BUF_VERSION) breaking --against "https://github.com/ondoprotocol/usdy-noble.git#branch=v1.0.0"
@echo "βœ… Completed protobuf breaking checks!"

###############################################################################
### Testing ###
Expand Down
Loading

0 comments on commit 96e60be

Please sign in to comment.