Skip to content

Commit

Permalink
proto format
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Apr 9, 2024
1 parent e19d7b3 commit 78add35
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ proto-pulsar-gen:
@$(protoImage) sh ./scripts/protocgen-pulsar.sh

proto-format:
@$(protoImage) find ./ -name "*.proto" -exec clang-format -i {} \;
@$(protoImage) find ./proto -name "*.proto" -exec clang-format -i {} \;

proto-lint:
@$(protoImage) buf lint --error-format=json
Expand Down
4 changes: 2 additions & 2 deletions proto/opinit/opchild/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ message GenesisState {
// delegations defines the validator set at genesis.
repeated Validator validators = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];

bool exported = 5;
uint64 next_l2_sequence = 6;
bool exported = 5;
uint64 next_l2_sequence = 6;
repeated uint64 finalized_l1_sequences = 7;
}

Expand Down
16 changes: 8 additions & 8 deletions proto/opinit/opchild/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ message ValidatorUpdates {

// BridgeInfo defines the information of the bridge.
message BridgeInfo {
// bridge id is the unique identifier of the bridge which is assigned from l1.
uint64 bridge_id = 1;
// bridge id is the unique identifier of the bridge which is assigned from l1.
uint64 bridge_id = 1;

// bridge_addr is the address of the bridge on l1.
string bridge_addr = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// bridge_config is the configuration of the bridge.
opinit.ophost.v1.BridgeConfig bridge_config = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
}
// bridge_addr is the address of the bridge on l1.
string bridge_addr = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// bridge_config is the configuration of the bridge.
opinit.ophost.v1.BridgeConfig bridge_config = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
}
2 changes: 1 addition & 1 deletion proto/opinit/ophost/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ message QueryLastFinalizedOutputRequest {
}

message QueryLastFinalizedOutputResponse {
uint64 output_index = 1;
uint64 output_index = 1;
Output output_proposal = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
}

Expand Down

0 comments on commit 78add35

Please sign in to comment.