refactor(x/gov): swap vote alias (#19718)

This commit is contained in:
Julien Robert
2024-03-12 08:44:20 +00:00
committed by GitHub
parent fea88d13c5
commit d808ef82e5
6 changed files with 148 additions and 87 deletions
+31 -31
View File
@@ -9119,22 +9119,22 @@ type VoteOption int32
const (
// VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
VoteOption_VOTE_OPTION_UNSPECIFIED VoteOption = 0
// VOTE_OPTION_ONE defines the first proposal vote option.
VoteOption_VOTE_OPTION_ONE VoteOption = 1
// VOTE_OPTION_YES defines the yes proposal vote option.
VoteOption_VOTE_OPTION_YES VoteOption = 1
// VOTE_OPTION_TWO defines the second proposal vote option.
VoteOption_VOTE_OPTION_TWO VoteOption = 2
// VOTE_OPTION_ONE defines the first proposal vote option.
VoteOption_VOTE_OPTION_ONE VoteOption = 1
// VOTE_OPTION_ABSTAIN defines the abstain proposal vote option.
VoteOption_VOTE_OPTION_ABSTAIN VoteOption = 2
// VOTE_OPTION_THREE defines the third proposal vote option.
VoteOption_VOTE_OPTION_THREE VoteOption = 3
// VOTE_OPTION_TWO defines the second proposal vote option.
VoteOption_VOTE_OPTION_TWO VoteOption = 2
// VOTE_OPTION_NO defines the no proposal vote option.
VoteOption_VOTE_OPTION_NO VoteOption = 3
// VOTE_OPTION_FOUR defines the fourth proposal vote option.
VoteOption_VOTE_OPTION_FOUR VoteOption = 4
// VOTE_OPTION_THREE defines the third proposal vote option.
VoteOption_VOTE_OPTION_THREE VoteOption = 3
// VOTE_OPTION_NO_WITH_VETO defines the no with veto proposal vote option.
VoteOption_VOTE_OPTION_NO_WITH_VETO VoteOption = 4
// VOTE_OPTION_FOUR defines the fourth proposal vote option.
VoteOption_VOTE_OPTION_FOUR VoteOption = 4
// VOTE_OPTION_SPAM defines the spam proposal vote option.
VoteOption_VOTE_OPTION_SPAM VoteOption = 5
)
@@ -9143,26 +9143,26 @@ const (
var (
VoteOption_name = map[int32]string{
0: "VOTE_OPTION_UNSPECIFIED",
1: "VOTE_OPTION_ONE",
// Duplicate value: 1: "VOTE_OPTION_YES",
2: "VOTE_OPTION_TWO",
// Duplicate value: 2: "VOTE_OPTION_ABSTAIN",
3: "VOTE_OPTION_THREE",
// Duplicate value: 3: "VOTE_OPTION_NO",
4: "VOTE_OPTION_FOUR",
// Duplicate value: 4: "VOTE_OPTION_NO_WITH_VETO",
1: "VOTE_OPTION_YES",
// Duplicate value: 1: "VOTE_OPTION_ONE",
2: "VOTE_OPTION_ABSTAIN",
// Duplicate value: 2: "VOTE_OPTION_TWO",
3: "VOTE_OPTION_NO",
// Duplicate value: 3: "VOTE_OPTION_THREE",
4: "VOTE_OPTION_NO_WITH_VETO",
// Duplicate value: 4: "VOTE_OPTION_FOUR",
5: "VOTE_OPTION_SPAM",
}
VoteOption_value = map[string]int32{
"VOTE_OPTION_UNSPECIFIED": 0,
"VOTE_OPTION_ONE": 1,
"VOTE_OPTION_YES": 1,
"VOTE_OPTION_TWO": 2,
"VOTE_OPTION_ONE": 1,
"VOTE_OPTION_ABSTAIN": 2,
"VOTE_OPTION_THREE": 3,
"VOTE_OPTION_TWO": 2,
"VOTE_OPTION_NO": 3,
"VOTE_OPTION_FOUR": 4,
"VOTE_OPTION_THREE": 3,
"VOTE_OPTION_NO_WITH_VETO": 4,
"VOTE_OPTION_FOUR": 4,
"VOTE_OPTION_SPAM": 5,
}
)
@@ -10583,17 +10583,17 @@ var file_cosmos_gov_v1_gov_proto_rawDesc = []byte{
0x01, 0x0a, 0x0a, 0x56, 0x6f, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a,
0x17, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53,
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x56, 0x4f,
0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12,
0x13, 0x0a, 0x0f, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x59,
0x45, 0x53, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54,
0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x4f, 0x54,
0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x42, 0x53, 0x54, 0x41, 0x49, 0x4e,
0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f,
0x4e, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x4f, 0x54,
0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x10, 0x03, 0x12, 0x14, 0x0a,
0x10, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x55,
0x52, 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49,
0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x56, 0x45, 0x54, 0x4f, 0x10,
0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x59, 0x45, 0x53, 0x10, 0x01, 0x12,
0x13, 0x0a, 0x0f, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f,
0x4e, 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54,
0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x42, 0x53, 0x54, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x13, 0x0a,
0x0f, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x57, 0x4f,
0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f,
0x4e, 0x5f, 0x4e, 0x4f, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f,
0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, 0x10, 0x03, 0x12, 0x1c, 0x0a,
0x18, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x5f,
0x57, 0x49, 0x54, 0x48, 0x5f, 0x56, 0x45, 0x54, 0x4f, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x56,
0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x55, 0x52, 0x10,
0x04, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e,
0x5f, 0x53, 0x50, 0x41, 0x4d, 0x10, 0x05, 0x1a, 0x02, 0x10, 0x01, 0x2a, 0xce, 0x01, 0x0a, 0x0e,
0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f,