Skip to content

Commit

Permalink
make proto-all (#12643)
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat authored Jul 19, 2022
1 parent 282b3be commit 818da70
Show file tree
Hide file tree
Showing 19 changed files with 170 additions and 162 deletions.
6 changes: 4 additions & 2 deletions api/cosmos/group/module/v1/module.pulsar.go

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

6 changes: 4 additions & 2 deletions api/cosmos/tx/module/v1/module.pulsar.go

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

50 changes: 25 additions & 25 deletions client/v2/internal/testpb/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,39 @@ service Query {

message EchoRequest {
// u32 is an uint32
uint32 u32 = 1;
uint64 u64 = 2;
string str = 3;
bytes bz = 4;
google.protobuf.Timestamp timestamp = 5;
google.protobuf.Duration duration = 6;
int32 i32 = 7;
int64 i64 = 10;
bool a_bool = 15;
Enum an_enum = 16;
AMessage a_message = 17;
cosmos.base.v1beta1.Coin a_coin = 18;
string an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"];
cosmos.base.query.v1beta1.PageRequest page = 20;
repeated bool bools = 21;
repeated uint32 uints = 22;
repeated string strings = 23;
repeated Enum enums = 24;
repeated google.protobuf.Duration durations = 25;
repeated AMessage some_messages = 26;
uint32 u32 = 1;
uint64 u64 = 2;
string str = 3;
bytes bz = 4;
google.protobuf.Timestamp timestamp = 5;
google.protobuf.Duration duration = 6;
int32 i32 = 7;
int64 i64 = 10;
bool a_bool = 15;
Enum an_enum = 16;
AMessage a_message = 17;
cosmos.base.v1beta1.Coin a_coin = 18;
string an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"];
cosmos.base.query.v1beta1.PageRequest page = 20;
repeated bool bools = 21;
repeated uint32 uints = 22;
repeated string strings = 23;
repeated Enum enums = 24;
repeated google.protobuf.Duration durations = 25;
repeated AMessage some_messages = 26;
}

enum Enum {
ENUM_UNSPECIFIED = 0;
ENUM_ONE = 1;
ENUM_TWO = 2;
ENUM_FIVE = 5;
ENUM_NEG_THREE = -3;
ENUM_ONE = 1;
ENUM_TWO = 2;
ENUM_FIVE = 5;
ENUM_NEG_THREE = -3;
}

message AMessage {
string bar = 1;
int32 baz = 2;
int32 baz = 2;
}

message EchoResponse {
Expand Down
3 changes: 2 additions & 1 deletion core/internal/testpb/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ message TestUnregisteredModule {
message TestNoModuleOptionModule {}

message TestNoGoImportModule {
option (cosmos.app.v1alpha1.module) = {};
option (cosmos.app.v1alpha1.module) = {
};
}
38 changes: 19 additions & 19 deletions orm/internal/testpb/bank.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@ import "cosmos/orm/v1/orm.proto";
message Balance {
option (cosmos.orm.v1.table) = {
id: 1;
primary_key: {
fields:
"address,denom"
}
index: {
id:
1 fields: "denom"
}
};
primary_key: {
fields:
"address,denom"
}
index: {
id:
1 fields: "denom"
}
};

string address = 1;
string denom = 2;
uint64 amount = 3;
string address = 1;
string denom = 2;
uint64 amount = 3;
}

message Supply {
option (cosmos.orm.v1.table) = {
id: 2;
primary_key: {
fields:
"denom"
}
};
primary_key: {
fields:
"denom"
}
};

string denom = 1;
uint64 amount = 2;
string denom = 1;
uint64 amount = 2;
}
124 changes: 62 additions & 62 deletions orm/internal/testpb/test_schema.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,68 +9,68 @@ import "cosmos/orm/v1/orm.proto";
message ExampleTable {
option (cosmos.orm.v1.table) = {
id: 1;
primary_key: {
fields:
"u32,i64,str"
}
index: {
id:
1;
fields:
"u64,str" unique: true
}
index: {
id:
2;
fields:
"str,u32"
}
index: {
id:
3;
fields:
"bz,str"
}
};
primary_key: {
fields:
"u32,i64,str"
}
index: {
id:
1;
fields:
"u64,str" unique: true
}
index: {
id:
2;
fields:
"str,u32"
}
index: {
id:
3;
fields:
"bz,str"
}
};

// Valid key fields:
uint32 u32 = 1;
uint64 u64 = 2;
string str = 3;
bytes bz = 4;
google.protobuf.Timestamp ts = 5;
google.protobuf.Duration dur = 6;
int32 i32 = 7;
sint32 s32 = 8;
sfixed32 sf32 = 9;
int64 i64 = 10;
sint64 s64 = 11;
sfixed64 sf64 = 12;
fixed32 f32 = 13;
fixed64 f64 = 14;
bool b = 15;
Enum e = 16;
// Valid key fields:
uint32 u32 = 1;
uint64 u64 = 2;
string str = 3;
bytes bz = 4;
google.protobuf.Timestamp ts = 5;
google.protobuf.Duration dur = 6;
int32 i32 = 7;
sint32 s32 = 8;
sfixed32 sf32 = 9;
int64 i64 = 10;
sint64 s64 = 11;
sfixed64 sf64 = 12;
fixed32 f32 = 13;
fixed64 f64 = 14;
bool b = 15;
Enum e = 16;

// Invalid key fields:
repeated uint32 repeated = 17;
map<string, uint32> map = 18;
ExampleMessage msg = 19;
oneof sum {
uint32 oneof = 20;
}
// Invalid key fields:
repeated uint32 repeated = 17;
map<string, uint32> map = 18;
ExampleMessage msg = 19;
oneof sum {
uint32 oneof = 20;
}

message ExampleMessage {
string foo = 1;
int32 bar = 2;
}
message ExampleMessage {
string foo = 1;
int32 bar = 2;
}
}

enum Enum {
ENUM_UNSPECIFIED = 0;
ENUM_ONE = 1;
ENUM_TWO = 2;
ENUM_FIVE = 5;
ENUM_NEG_THREE = -3;
ENUM_ONE = 1;
ENUM_TWO = 2;
ENUM_FIVE = 5;
ENUM_NEG_THREE = -3;
}

message ExampleAutoIncrementTable {
Expand All @@ -81,8 +81,8 @@ message ExampleAutoIncrementTable {
};

uint64 id = 1;
string x = 2;
int32 y = 3;
string x = 2;
int32 y = 3;
}

message ExampleSingleton {
Expand All @@ -100,9 +100,9 @@ message ExampleTimestamp {
index: {id: 1 fields: "ts"}
};

uint64 id = 1;
string name = 2;
google.protobuf.Timestamp ts = 3;
uint64 id = 1;
string name = 2;
google.protobuf.Timestamp ts = 3;
}

message SimpleExample {
Expand All @@ -112,8 +112,8 @@ message SimpleExample {
index: {id: 1, fields: "unique", unique: true}
};

string name = 1;
string unique = 2;
string name = 1;
string unique = 2;
string not_unique = 3;
}

Expand Down
4 changes: 2 additions & 2 deletions proto/cosmos/auth/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ service Query {
option (google.api.http).get = "/cosmos/auth/v1beta1/accounts/{address}";
}

// AccountAddressByID returns account address based on account id
// AccountAddressByID returns account address based on account id
rpc AccountAddressByID(QueryAccountAddressByIDRequest) returns (QueryAccountAddressByIDResponse) {
option (google.api.http).get = "/cosmos/auth/v1beta1/address_by_id/{id}";
}
Expand Down Expand Up @@ -159,7 +159,7 @@ message AddressStringToBytesResponse {
}

// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
message QueryAccountAddressByIDRequest{
message QueryAccountAddressByIDRequest {
int64 id = 1;
}

Expand Down
18 changes: 9 additions & 9 deletions proto/cosmos/auth/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ service Msg {
//
// Since: cosmos-sdk 0.47
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
// authority is the address of the governance account.
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// params defines the x/auth parameters to update.
//
// NOTE: All parameters must be supplied.
Params params = 2 [(gogoproto.nullable) = false];
option (cosmos.msg.v1.signer) = "authority";

// authority is the address of the governance account.
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// params defines the x/auth parameters to update.
//
// NOTE: All parameters must be supplied.
Params params = 2 [(gogoproto.nullable) = false];
}

// MsgUpdateParamsResponse defines the response structure for executing a
Expand Down
3 changes: 1 addition & 2 deletions proto/cosmos/bank/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ message MsgMultiSend {

option (gogoproto.equal) = false;

Input input = 1 [(gogoproto.nullable) = false];
Input input = 1 [(gogoproto.nullable) = false];
repeated Output outputs = 2 [(gogoproto.nullable) = false];
}

// MsgMultiSendResponse defines the Msg/MultiSend response type.
message MsgMultiSendResponse {}

Loading

0 comments on commit 818da70

Please sign in to comment.