Skip to content

Commit

Permalink
[backport] remove unused deps in .proto files (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterli authored Dec 19, 2024
1 parent f1ae78e commit 02b7023
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ jobs:
run-integration-tests: false
run-lint: true

proto_lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run proto lint
run: |
make proto-lint
docker_pipeline:
uses: babylonlabs-io/.github/.github/workflows/[email protected]
secrets: inherit
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Update btcstaking module docs to include EOI
and module account vars in appparams
- [#351](https://github.com/babylonlabs-io/babylon/pull/351) docs: Add state
transition docs.
- [#358](https://github.com/babylonlabs-io/babylon/pull/358) Remove unused deps in `.proto` files

### Bug fixes

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(pro

proto-all: proto-gen proto-swagger-gen ## Generate all protobuf related files

proto-gen: ## Generate protobuf files
proto-gen: proto-lint ## Generate protobuf files
@echo "Generating Protobuf files"
@$(protoImage) sh ./proto/scripts/protocgen.sh

Expand All @@ -421,7 +421,7 @@ proto-format: ## Format protobuf files
proto-lint: ## Lint protobuf files
@$(protoImage) buf lint --error-format=json

.PHONY: proto-gen proto-swagger-gen proto-format prot-lint
.PHONY: proto-gen proto-swagger-gen proto-format proto-lint

###############################################################################
### Docker ###
Expand Down
2 changes: 0 additions & 2 deletions proto/babylon/btcstaking/v1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ syntax = "proto3";
package babylon.btcstaking.v1;

import "gogoproto/gogo.proto";
import "cosmos/staking/v1beta1/staking.proto";
import "babylon/btcstaking/v1/btcstaking.proto";
import "cosmos_proto/cosmos.proto";
import "amino/amino.proto";

option go_package = "github.com/babylonlabs-io/babylon/x/btcstaking/types";
Expand Down
1 change: 0 additions & 1 deletion proto/babylon/checkpointing/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package babylon.checkpointing.v1;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "google/protobuf/timestamp.proto";
import "babylon/checkpointing/v1/bls_key.proto";
import "babylon/checkpointing/v1/checkpoint.proto";
import "cosmos/base/query/v1beta1/pagination.proto";

Expand Down
1 change: 0 additions & 1 deletion proto/babylon/incentive/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package babylon.incentive;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "babylon/incentive/params.proto";
import "babylon/incentive/incentive.proto";
import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto";

Expand Down
1 change: 0 additions & 1 deletion proto/babylon/mint/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package babylon.mint.v1;

import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "babylon/mint/v1/mint.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/babylonlabs-io/babylon/x/mint/types";
Expand Down

0 comments on commit 02b7023

Please sign in to comment.