feat: Add MsgSoftwareUpgrade and MsgCancelUpgrade (for new msgs-based gov proposals) (#11116)
This commit is contained in:
@@ -9,21 +9,30 @@ import "cosmos/orm/v1alpha1/orm.proto";
|
||||
message Balance {
|
||||
option (cosmos.orm.v1alpha1.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.v1alpha1.table) = {
|
||||
id: 2;
|
||||
primary_key:{fields: "denom"}
|
||||
};
|
||||
primary_key: {
|
||||
fields:
|
||||
"denom"
|
||||
}
|
||||
};
|
||||
|
||||
string denom = 1;
|
||||
uint64 amount = 2;
|
||||
string denom = 1;
|
||||
uint64 amount = 2;
|
||||
}
|
||||
|
||||
@@ -9,86 +9,86 @@ import "cosmos/orm/v1alpha1/orm.proto";
|
||||
message ExampleTable {
|
||||
option (cosmos.orm.v1alpha1.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 {
|
||||
option (cosmos.orm.v1alpha1.table) = {
|
||||
id: 3
|
||||
primary_key:{
|
||||
fields:"id"
|
||||
auto_increment: true
|
||||
}
|
||||
index:{
|
||||
id: 1
|
||||
fields:"x"
|
||||
unique: true
|
||||
}
|
||||
primary_key: {fields: "id" auto_increment: true}
|
||||
index: {id: 1 fields: "x" unique: true}
|
||||
};
|
||||
|
||||
uint64 id = 1;
|
||||
string x = 2;
|
||||
int32 y = 3;
|
||||
string x = 2;
|
||||
int32 y = 3;
|
||||
}
|
||||
|
||||
message ExampleSingleton {
|
||||
option (cosmos.orm.v1alpha1.singleton) = {id: 2};
|
||||
option (cosmos.orm.v1alpha1.singleton) = {
|
||||
id: 2
|
||||
};
|
||||
string foo = 1;
|
||||
int32 bar = 2;
|
||||
int32 bar = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user