Skip to content

Commit

Permalink
update and format proto
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Jun 14, 2023
1 parent 7464fad commit da17422
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 51 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ mdlint-fix:
### Protobuf ###
###############################################################################

BUF_VERSION=1.15.1
BUF_VERSION=1.21.0

proto-all: proto-gen

Expand Down
6 changes: 2 additions & 4 deletions proto/quicksilver/interchainquery/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ option go_package = "github.com/ingenuity-build/quicksilver/x/interchainquery/ty
service QuerySrvr {
// Params returns the total set of minting parameters.
rpc Queries(QueryRequestsRequest) returns (QueryRequestsResponse) {
option (google.api.http).get =
"/quicksilver/interchainquery/v1/queries/{chain_id}";
option (google.api.http).get = "/quicksilver/interchainquery/v1/queries/{chain_id}";
}
}

Expand All @@ -30,8 +29,7 @@ message QueryRequestsRequest {
// QueryParamsResponse is the response type for the Query/Params RPC method.
message QueryRequestsResponse {
// params defines the parameters of the module.
repeated quicksilver.interchainquery.v1.Query queries = 1
[ (gogoproto.nullable) = false ];
repeated quicksilver.interchainquery.v1.Query queries = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

Expand Down
76 changes: 34 additions & 42 deletions proto/quicksilver/interchainstaking/v1/proposals.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ message RegisterZoneProposal {
string title = 1;
string description = 2;

string connection_id = 3 [ (gogoproto.moretags) = "yaml:\"connection_id\"" ];
string base_denom = 4 [ (gogoproto.moretags) = "yaml:\"base_denom\"" ];
string local_denom = 5 [ (gogoproto.moretags) = "yaml:\"local_denom\"" ];
string account_prefix = 6
[ (gogoproto.moretags) = "yaml:\"account_prefix\"" ];
string connection_id = 3 [(gogoproto.moretags) = "yaml:\"connection_id\""];
string base_denom = 4 [(gogoproto.moretags) = "yaml:\"base_denom\""];
string local_denom = 5 [(gogoproto.moretags) = "yaml:\"local_denom\""];
string account_prefix = 6 [(gogoproto.moretags) = "yaml:\"account_prefix\""];
bool multi_send = 7; // deprecated
bool liquidity_module = 8;
int64 messages_per_tx = 9;
Expand All @@ -33,25 +32,20 @@ message RegisterZoneProposalWithDeposit {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

string title = 1 [ (gogoproto.moretags) = "yaml:\"title\"" ];
string description = 2 [ (gogoproto.moretags) = "yaml:\"description\"" ];
string connection_id = 3 [ (gogoproto.moretags) = "yaml:\"connection_id\"" ];
string base_denom = 4 [ (gogoproto.moretags) = "yaml:\"base_denom\"" ];
string local_denom = 5 [ (gogoproto.moretags) = "yaml:\"local_denom\"" ];
string account_prefix = 6
[ (gogoproto.moretags) = "yaml:\"account_prefix\"" ];
bool multi_send = 7 [ (gogoproto.moretags) = "yaml:\"multi_send\"" ];
bool liquidity_module = 8
[ (gogoproto.moretags) = "yaml:\"liquidity_module\"" ];
string deposit = 9 [ (gogoproto.moretags) = "yaml:\"deposit\"" ];
string title = 1 [(gogoproto.moretags) = "yaml:\"title\""];
string description = 2 [(gogoproto.moretags) = "yaml:\"description\""];
string connection_id = 3 [(gogoproto.moretags) = "yaml:\"connection_id\""];
string base_denom = 4 [(gogoproto.moretags) = "yaml:\"base_denom\""];
string local_denom = 5 [(gogoproto.moretags) = "yaml:\"local_denom\""];
string account_prefix = 6 [(gogoproto.moretags) = "yaml:\"account_prefix\""];
bool multi_send = 7 [(gogoproto.moretags) = "yaml:\"multi_send\""];
bool liquidity_module = 8 [(gogoproto.moretags) = "yaml:\"liquidity_module\""];
string deposit = 9 [(gogoproto.moretags) = "yaml:\"deposit\""];
int64 messages_per_tx = 10;
bool return_to_sender = 11
[ (gogoproto.moretags) = "yaml:\"return_to_sender\"" ];
bool deposits_enabled = 12
[ (gogoproto.moretags) = "yaml:\"deposits_enabled\"" ];
bool unbonding_enabled = 13
[ (gogoproto.moretags) = "yaml:\"deposits_enabled\"" ];
int64 decimals = 14 [ (gogoproto.moretags) = "yaml:\"decimals\"" ];
bool return_to_sender = 11 [(gogoproto.moretags) = "yaml:\"return_to_sender\""];
bool deposits_enabled = 12 [(gogoproto.moretags) = "yaml:\"deposits_enabled\""];
bool unbonding_enabled = 13 [(gogoproto.moretags) = "yaml:\"deposits_enabled\""];
int64 decimals = 14 [(gogoproto.moretags) = "yaml:\"decimals\""];
bool is_118 = 15;
}

Expand All @@ -60,32 +54,30 @@ message UpdateZoneProposal {
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;

string title = 1 [ (gogoproto.moretags) = "yaml:\"title\"" ];
string description = 2 [ (gogoproto.moretags) = "yaml:\"description\"" ];
string chain_id = 3 [ (gogoproto.moretags) = "yaml:\"chain_id\"" ];
string title = 1 [(gogoproto.moretags) = "yaml:\"title\""];
string description = 2 [(gogoproto.moretags) = "yaml:\"description\""];
string chain_id = 3 [(gogoproto.moretags) = "yaml:\"chain_id\""];

repeated UpdateZoneValue changes = 4
[ (gogoproto.moretags) = "yaml:\"changes\"" ];
repeated UpdateZoneValue changes = 4 [(gogoproto.moretags) = "yaml:\"changes\""];
}

message UpdateZoneProposalWithDeposit {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

string title = 1 [ (gogoproto.moretags) = "yaml:\"title\"" ];
string description = 2 [ (gogoproto.moretags) = "yaml:\"description\"" ];
string chain_id = 3 [ (gogoproto.moretags) = "yaml:\"chain_id\"" ];
string title = 1 [(gogoproto.moretags) = "yaml:\"title\""];
string description = 2 [(gogoproto.moretags) = "yaml:\"description\""];
string chain_id = 3 [(gogoproto.moretags) = "yaml:\"chain_id\""];

repeated UpdateZoneValue changes = 4
[ (gogoproto.moretags) = "yaml:\"changes\"" ];
string deposit = 5 [ (gogoproto.moretags) = "yaml:\"deposit\"" ];
repeated UpdateZoneValue changes = 4 [(gogoproto.moretags) = "yaml:\"changes\""];
string deposit = 5 [(gogoproto.moretags) = "yaml:\"deposit\""];
}

// UpdateZoneValue defines an individual parameter change, for use in
// UpdateZoneProposal.
message UpdateZoneValue {
string key = 1 [ (gogoproto.moretags) = "yaml:\"key\"" ];
string value = 2 [ (gogoproto.moretags) = "yaml:\"value\"" ];
string key = 1 [(gogoproto.moretags) = "yaml:\"key\""];
string value = 2 [(gogoproto.moretags) = "yaml:\"value\""];
}

message MsgGovReopenChannel {
Expand All @@ -95,10 +87,10 @@ message MsgGovReopenChannel {
string title = 1;
string description = 2;

string connection_id = 3 [ (gogoproto.moretags) = "yaml:\"connection_id\"" ];
string port_id = 4 [ (gogoproto.moretags) = "yaml:\"port_id\"" ];
string connection_id = 3 [(gogoproto.moretags) = "yaml:\"connection_id\""];
string port_id = 4 [(gogoproto.moretags) = "yaml:\"port_id\""];

string authority = 5 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
string authority = 5 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}

// MsgGovReopenChannelResponse defines the MsgGovReopenChannel response type.
Expand All @@ -111,10 +103,10 @@ message MsgGovCloseChannel {
string title = 1;
string description = 2;

string channel_id = 3 [ (gogoproto.moretags) = "yaml:\"channel_id\"" ];
string port_id = 4 [ (gogoproto.moretags) = "yaml:\"port_id\"" ];
string channel_id = 3 [(gogoproto.moretags) = "yaml:\"channel_id\""];
string port_id = 4 [(gogoproto.moretags) = "yaml:\"port_id\""];

string authority = 5 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
string authority = 5 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}

// MsgGovCloseChannelResponse defines the MsgGovCloseChannel response type.
Expand Down
2 changes: 1 addition & 1 deletion proto/quicksilver/interchainstaking/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,6 @@ message QueryMappedAccountsRequest {
}

message QueryMappedAccountsResponse {
map<string, bytes> RemoteAddressMap= 1 [(gogoproto.nullable) = false];
map<string, bytes> RemoteAddressMap = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ message Params {

// distribution_proportions defines the proportions of the minted
// participation rewards;
DistributionProportions distribution_proportions = 1
[ (gogoproto.nullable) = false ];
DistributionProportions distribution_proportions = 1 [(gogoproto.nullable) = false];
bool claims_enabled = 2;
}

Expand All @@ -49,7 +48,7 @@ message KeyedProtocolData {
// determination of rewards.
message ProtocolData {
string type = 1;
bytes data = 2 [ (gogoproto.casttype) = "encoding/json.RawMessage" ];
bytes data = 2 [(gogoproto.casttype) = "encoding/json.RawMessage"];
}

enum ProtocolDataType {
Expand Down

0 comments on commit da17422

Please sign in to comment.