Skip to content

Commit

Permalink
Fix/proto lint (#98)
Browse files Browse the repository at this point in the history
* fix proto-lint and fill out some comments as stub

* run proto-all

* make codecov ignore pulsar
  • Loading branch information
Vritra4 authored Jul 12, 2024
1 parent 1ab31b7 commit f25190d
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ignore:
- "custom/"
- "**/cli"
- "**/rest"
- "**/*.pulsar.go"
- "**/*.pb.go"
- "**/*.pb.gw.go"
- "**/test_utils.go"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ proto-format:
@$(protoImage) find ./proto -name "*.proto" -exec clang-format -i {} \;

proto-lint:
@$(protoImage) buf lint --error-format=json
@$(protoImage) buf lint --error-format=json ./proto

proto-check-breaking:
@$(protoImage) buf breaking --against $(HTTPS_GIT)#branch=main
Expand Down
1 change: 1 addition & 0 deletions api/opinit/opchild/v1/types.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/opinit/ophost/v1/genesis.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/opinit/ophost/v1/query.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions proto/opinit/opchild/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ message PendingDeposits {
];
}

// CoinsWrapper defines the set of coins.
message CoinsWrapper {
repeated cosmos.base.v1beta1.Coin coins = 1 [
(gogoproto.nullable) = false,
Expand Down
1 change: 1 addition & 0 deletions proto/opinit/ophost/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ message Bridge {
repeated BatchInfoWithOutput batch_infos = 8 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
}

// WrappedOutput defines a wrapped output containing its index and proposal.
message WrappedOutput {
uint64 output_index = 1;
Output output_proposal = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
Expand Down
4 changes: 3 additions & 1 deletion proto/opinit/ophost/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,12 @@ message QueryTokenPairsResponse {
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

// QueryLastFinalizedOutputRequest is request type for the Query/LastFinalizedOutput RPC method.
message QueryLastFinalizedOutputRequest {
uint64 bridge_id = 1;
}

// QueryLastFinalizedOutputResponse is response type for the Query/LastFinalizedOutput RPC method
message QueryLastFinalizedOutputResponse {
uint64 output_index = 1;
Output output_proposal = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
Expand All @@ -174,7 +176,7 @@ message QueryOutputProposalResponse {

// QueryOutputProposalsRequest is response type for the Query/OutputProposals RPC method
message QueryOutputProposalsRequest {
uint64 bridge_id = 1;
uint64 bridge_id = 1;
// pagination defines the pagination in the request.
cosmos.base.query.v1beta1.PageRequest pagination = 3;
}
Expand Down
1 change: 1 addition & 0 deletions x/opchild/types/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions x/ophost/types/genesis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions x/ophost/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f25190d

Please sign in to comment.