diff --git a/api/warden/act/v1beta1/action_vote.pulsar.go b/api/warden/act/v1beta1/action_vote.pulsar.go index 0ba3b3e52..745835f2d 100644 --- a/api/warden/act/v1beta1/action_vote.pulsar.go +++ b/api/warden/act/v1beta1/action_vote.pulsar.go @@ -19,7 +19,7 @@ var ( md_ActionVote protoreflect.MessageDescriptor fd_ActionVote_participant protoreflect.FieldDescriptor fd_ActionVote_voted_at protoreflect.FieldDescriptor - fd_ActionVote_vote protoreflect.FieldDescriptor + fd_ActionVote_vote_type protoreflect.FieldDescriptor ) func init() { @@ -27,7 +27,7 @@ func init() { md_ActionVote = File_warden_act_v1beta1_action_vote_proto.Messages().ByName("ActionVote") fd_ActionVote_participant = md_ActionVote.Fields().ByName("participant") fd_ActionVote_voted_at = md_ActionVote.Fields().ByName("voted_at") - fd_ActionVote_vote = md_ActionVote.Fields().ByName("vote") + fd_ActionVote_vote_type = md_ActionVote.Fields().ByName("vote_type") } var _ protoreflect.Message = (*fastReflection_ActionVote)(nil) @@ -107,9 +107,9 @@ func (x *fastReflection_ActionVote) Range(f func(protoreflect.FieldDescriptor, p return } } - if x.Vote != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Vote)) - if !f(fd_ActionVote_vote, value) { + if x.VoteType != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.VoteType)) + if !f(fd_ActionVote_vote_type, value) { return } } @@ -132,8 +132,8 @@ func (x *fastReflection_ActionVote) Has(fd protoreflect.FieldDescriptor) bool { return x.Participant != "" case "warden.act.v1beta1.ActionVote.voted_at": return x.VotedAt != nil - case "warden.act.v1beta1.ActionVote.vote": - return x.Vote != 0 + case "warden.act.v1beta1.ActionVote.vote_type": + return x.VoteType != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.ActionVote")) @@ -154,8 +154,8 @@ func (x *fastReflection_ActionVote) Clear(fd protoreflect.FieldDescriptor) { x.Participant = "" case "warden.act.v1beta1.ActionVote.voted_at": x.VotedAt = nil - case "warden.act.v1beta1.ActionVote.vote": - x.Vote = 0 + case "warden.act.v1beta1.ActionVote.vote_type": + x.VoteType = 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.ActionVote")) @@ -178,8 +178,8 @@ func (x *fastReflection_ActionVote) Get(descriptor protoreflect.FieldDescriptor) case "warden.act.v1beta1.ActionVote.voted_at": value := x.VotedAt return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "warden.act.v1beta1.ActionVote.vote": - value := x.Vote + case "warden.act.v1beta1.ActionVote.vote_type": + value := x.VoteType return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { @@ -205,8 +205,8 @@ func (x *fastReflection_ActionVote) Set(fd protoreflect.FieldDescriptor, value p x.Participant = value.Interface().(string) case "warden.act.v1beta1.ActionVote.voted_at": x.VotedAt = value.Message().Interface().(*timestamppb.Timestamp) - case "warden.act.v1beta1.ActionVote.vote": - x.Vote = (ActionVoteType)(value.Enum()) + case "warden.act.v1beta1.ActionVote.vote_type": + x.VoteType = (ActionVoteType)(value.Enum()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.ActionVote")) @@ -234,8 +234,8 @@ func (x *fastReflection_ActionVote) Mutable(fd protoreflect.FieldDescriptor) pro return protoreflect.ValueOfMessage(x.VotedAt.ProtoReflect()) case "warden.act.v1beta1.ActionVote.participant": panic(fmt.Errorf("field participant of message warden.act.v1beta1.ActionVote is not mutable")) - case "warden.act.v1beta1.ActionVote.vote": - panic(fmt.Errorf("field vote of message warden.act.v1beta1.ActionVote is not mutable")) + case "warden.act.v1beta1.ActionVote.vote_type": + panic(fmt.Errorf("field vote_type of message warden.act.v1beta1.ActionVote is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.ActionVote")) @@ -254,7 +254,7 @@ func (x *fastReflection_ActionVote) NewField(fd protoreflect.FieldDescriptor) pr case "warden.act.v1beta1.ActionVote.voted_at": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "warden.act.v1beta1.ActionVote.vote": + case "warden.act.v1beta1.ActionVote.vote_type": return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { @@ -333,8 +333,8 @@ func (x *fastReflection_ActionVote) ProtoMethods() *protoiface.Methods { l = options.Size(x.VotedAt) n += 1 + l + runtime.Sov(uint64(l)) } - if x.Vote != 0 { - n += 1 + runtime.Sov(uint64(x.Vote)) + if x.VoteType != 0 { + n += 1 + runtime.Sov(uint64(x.VoteType)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -365,8 +365,8 @@ func (x *fastReflection_ActionVote) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Vote != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Vote)) + if x.VoteType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.VoteType)) i-- dAtA[i] = 0x18 } @@ -510,9 +510,9 @@ func (x *fastReflection_ActionVote) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 3: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VoteType", wireType) } - x.Vote = 0 + x.VoteType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -522,7 +522,7 @@ func (x *fastReflection_ActionVote) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.Vote |= ActionVoteType(b&0x7F) << shift + x.VoteType |= ActionVoteType(b&0x7F) << shift if b < 0x80 { break } @@ -638,7 +638,7 @@ type ActionVote struct { // voted_at is a timestamp specifying when the voter voted on the action. VotedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=voted_at,json=votedAt,proto3" json:"voted_at,omitempty"` // vote is the type of the vote. - Vote ActionVoteType `protobuf:"varint,3,opt,name=vote,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote,omitempty"` + VoteType ActionVoteType `protobuf:"varint,3,opt,name=vote_type,json=voteType,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote_type,omitempty"` } func (x *ActionVote) Reset() { @@ -675,9 +675,9 @@ func (x *ActionVote) GetVotedAt() *timestamppb.Timestamp { return nil } -func (x *ActionVote) GetVote() ActionVoteType { +func (x *ActionVote) GetVoteType() ActionVoteType { if x != nil { - return x.Vote + return x.VoteType } return ActionVoteType_VOTE_TYPE_UNSPECIFIED } @@ -693,38 +693,39 @@ var file_warden_act_v1beta1_action_vote_proto_rawDesc = []byte{ 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a, 0x0a, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb5, 0x01, 0x0a, 0x0a, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x12, 0x44, 0x0a, 0x08, 0x76, 0x6f, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, - 0x2a, 0x01, 0x52, 0x07, 0x76, 0x6f, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x36, 0x0a, 0x04, 0x76, - 0x6f, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x76, - 0x6f, 0x74, 0x65, 0x2a, 0x5b, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x16, 0x0a, 0x12, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x50, - 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x4f, 0x54, 0x45, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, - 0x42, 0xe0, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, - 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0f, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, - 0x6e, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, - 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x3b, 0x61, 0x63, 0x74, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x57, 0x41, - 0x58, 0xaa, 0x02, 0x12, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x2e, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x12, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, - 0x41, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1e, 0x57, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x41, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x57, - 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x41, 0x63, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2a, 0x01, 0x52, 0x07, 0x76, 0x6f, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3f, 0x0a, 0x09, 0x76, + 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x08, 0x76, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x2a, 0x5b, 0x0a, 0x0e, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, + 0x0a, 0x15, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x4f, 0x54, + 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, + 0x01, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, + 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x42, 0xe0, 0x01, 0x0a, 0x16, 0x63, 0x6f, + 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x42, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, 0x65, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, + 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x63, 0x74, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x57, 0x41, 0x58, 0xaa, 0x02, 0x12, 0x57, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, + 0x02, 0x12, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x41, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1e, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x41, 0x63, + 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, + 0x41, 0x63, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -748,7 +749,7 @@ var file_warden_act_v1beta1_action_vote_proto_goTypes = []interface{}{ } var file_warden_act_v1beta1_action_vote_proto_depIdxs = []int32{ 2, // 0: warden.act.v1beta1.ActionVote.voted_at:type_name -> google.protobuf.Timestamp - 0, // 1: warden.act.v1beta1.ActionVote.vote:type_name -> warden.act.v1beta1.ActionVoteType + 0, // 1: warden.act.v1beta1.ActionVote.vote_type:type_name -> warden.act.v1beta1.ActionVoteType 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name diff --git a/api/warden/act/v1beta1/events.pulsar.go b/api/warden/act/v1beta1/events.pulsar.go index 2ac8871bf..f790fb625 100644 --- a/api/warden/act/v1beta1/events.pulsar.go +++ b/api/warden/act/v1beta1/events.pulsar.go @@ -1824,7 +1824,7 @@ var ( md_EventActionVoted protoreflect.MessageDescriptor fd_EventActionVoted_id protoreflect.FieldDescriptor fd_EventActionVoted_participant protoreflect.FieldDescriptor - fd_EventActionVoted_vote protoreflect.FieldDescriptor + fd_EventActionVoted_vote_type protoreflect.FieldDescriptor ) func init() { @@ -1832,7 +1832,7 @@ func init() { md_EventActionVoted = File_warden_act_v1beta1_events_proto.Messages().ByName("EventActionVoted") fd_EventActionVoted_id = md_EventActionVoted.Fields().ByName("id") fd_EventActionVoted_participant = md_EventActionVoted.Fields().ByName("participant") - fd_EventActionVoted_vote = md_EventActionVoted.Fields().ByName("vote") + fd_EventActionVoted_vote_type = md_EventActionVoted.Fields().ByName("vote_type") } var _ protoreflect.Message = (*fastReflection_EventActionVoted)(nil) @@ -1912,9 +1912,9 @@ func (x *fastReflection_EventActionVoted) Range(f func(protoreflect.FieldDescrip return } } - if x.Vote != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Vote)) - if !f(fd_EventActionVoted_vote, value) { + if x.VoteType != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.VoteType)) + if !f(fd_EventActionVoted_vote_type, value) { return } } @@ -1937,8 +1937,8 @@ func (x *fastReflection_EventActionVoted) Has(fd protoreflect.FieldDescriptor) b return x.Id != uint64(0) case "warden.act.v1beta1.EventActionVoted.participant": return x.Participant != "" - case "warden.act.v1beta1.EventActionVoted.vote": - return x.Vote != 0 + case "warden.act.v1beta1.EventActionVoted.vote_type": + return x.VoteType != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventActionVoted")) @@ -1959,8 +1959,8 @@ func (x *fastReflection_EventActionVoted) Clear(fd protoreflect.FieldDescriptor) x.Id = uint64(0) case "warden.act.v1beta1.EventActionVoted.participant": x.Participant = "" - case "warden.act.v1beta1.EventActionVoted.vote": - x.Vote = 0 + case "warden.act.v1beta1.EventActionVoted.vote_type": + x.VoteType = 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventActionVoted")) @@ -1983,8 +1983,8 @@ func (x *fastReflection_EventActionVoted) Get(descriptor protoreflect.FieldDescr case "warden.act.v1beta1.EventActionVoted.participant": value := x.Participant return protoreflect.ValueOfString(value) - case "warden.act.v1beta1.EventActionVoted.vote": - value := x.Vote + case "warden.act.v1beta1.EventActionVoted.vote_type": + value := x.VoteType return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { @@ -2010,8 +2010,8 @@ func (x *fastReflection_EventActionVoted) Set(fd protoreflect.FieldDescriptor, v x.Id = value.Uint() case "warden.act.v1beta1.EventActionVoted.participant": x.Participant = value.Interface().(string) - case "warden.act.v1beta1.EventActionVoted.vote": - x.Vote = (ActionVoteType)(value.Enum()) + case "warden.act.v1beta1.EventActionVoted.vote_type": + x.VoteType = (ActionVoteType)(value.Enum()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventActionVoted")) @@ -2036,8 +2036,8 @@ func (x *fastReflection_EventActionVoted) Mutable(fd protoreflect.FieldDescripto panic(fmt.Errorf("field id of message warden.act.v1beta1.EventActionVoted is not mutable")) case "warden.act.v1beta1.EventActionVoted.participant": panic(fmt.Errorf("field participant of message warden.act.v1beta1.EventActionVoted is not mutable")) - case "warden.act.v1beta1.EventActionVoted.vote": - panic(fmt.Errorf("field vote of message warden.act.v1beta1.EventActionVoted is not mutable")) + case "warden.act.v1beta1.EventActionVoted.vote_type": + panic(fmt.Errorf("field vote_type of message warden.act.v1beta1.EventActionVoted is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventActionVoted")) @@ -2055,7 +2055,7 @@ func (x *fastReflection_EventActionVoted) NewField(fd protoreflect.FieldDescript return protoreflect.ValueOfUint64(uint64(0)) case "warden.act.v1beta1.EventActionVoted.participant": return protoreflect.ValueOfString("") - case "warden.act.v1beta1.EventActionVoted.vote": + case "warden.act.v1beta1.EventActionVoted.vote_type": return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { @@ -2133,8 +2133,8 @@ func (x *fastReflection_EventActionVoted) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.Vote != 0 { - n += 1 + runtime.Sov(uint64(x.Vote)) + if x.VoteType != 0 { + n += 1 + runtime.Sov(uint64(x.VoteType)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -2165,8 +2165,8 @@ func (x *fastReflection_EventActionVoted) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Vote != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Vote)) + if x.VoteType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.VoteType)) i-- dAtA[i] = 0x18 } @@ -2284,9 +2284,9 @@ func (x *fastReflection_EventActionVoted) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 3: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VoteType", wireType) } - x.Vote = 0 + x.VoteType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2296,7 +2296,7 @@ func (x *fastReflection_EventActionVoted) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.Vote |= ActionVoteType(b&0x7F) << shift + x.VoteType |= ActionVoteType(b&0x7F) << shift if b < 0x80 { break } @@ -3439,7 +3439,7 @@ type EventActionVoted struct { // address of the account that participated in voting Participant string `protobuf:"bytes,2,opt,name=participant,proto3" json:"participant,omitempty"` // type of the vote - Vote ActionVoteType `protobuf:"varint,3,opt,name=vote,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote,omitempty"` + VoteType ActionVoteType `protobuf:"varint,3,opt,name=vote_type,json=voteType,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote_type,omitempty"` } func (x *EventActionVoted) Reset() { @@ -3476,9 +3476,9 @@ func (x *EventActionVoted) GetParticipant() string { return "" } -func (x *EventActionVoted) GetVote() ActionVoteType { +func (x *EventActionVoted) GetVoteType() ActionVoteType { if x != nil { - return x.Vote + return x.VoteType } return ActionVoteType_VOTE_TYPE_UNSPECIFIED } @@ -3600,43 +3600,44 @@ var file_warden_act_v1beta1_events_proto_rawDesc = []byte{ 0x76, 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x22, 0x7c, 0x0a, - 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, 0x65, - 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, - 0x61, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x16, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, - 0x75, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x22, 0x85, 0x01, + 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, + 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, + 0x70, 0x61, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x09, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x76, 0x6f, 0x74, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x49, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0e, 0x70, 0x72, 0x65, + 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3f, 0x0a, 0x0a, 0x6e, + 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x3f, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x22, 0x23, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x72, 0x75, 0x6e, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x42, 0xdc, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, - 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x3b, 0x61, 0x63, 0x74, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, - 0x03, 0x57, 0x41, 0x58, 0xaa, 0x02, 0x12, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x41, 0x63, - 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x12, 0x57, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x5c, 0x41, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, - 0x1e, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x41, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x14, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x41, 0x63, 0x74, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x23, 0x0a, 0x11, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x75, 0x6e, 0x65, + 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, + 0x64, 0x42, 0xdc, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0b, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2d, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x63, + 0x74, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x57, 0x41, 0x58, 0xaa, 0x02, + 0x12, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0xca, 0x02, 0x12, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x41, 0x63, 0x74, + 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1e, 0x57, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x5c, 0x41, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x57, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x3a, 0x3a, 0x41, 0x63, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3664,7 +3665,7 @@ var file_warden_act_v1beta1_events_proto_goTypes = []interface{}{ (ActionStatus)(0), // 8: warden.act.v1beta1.ActionStatus } var file_warden_act_v1beta1_events_proto_depIdxs = []int32{ - 7, // 0: warden.act.v1beta1.EventActionVoted.vote:type_name -> warden.act.v1beta1.ActionVoteType + 7, // 0: warden.act.v1beta1.EventActionVoted.vote_type:type_name -> warden.act.v1beta1.ActionVoteType 8, // 1: warden.act.v1beta1.EventActionStateChange.previous_status:type_name -> warden.act.v1beta1.ActionStatus 8, // 2: warden.act.v1beta1.EventActionStateChange.new_status:type_name -> warden.act.v1beta1.ActionStatus 3, // [3:3] is the sub-list for method output_type diff --git a/api/warden/act/v1beta1/tx.pulsar.go b/api/warden/act/v1beta1/tx.pulsar.go index 937bbb162..f6e5e8500 100644 --- a/api/warden/act/v1beta1/tx.pulsar.go +++ b/api/warden/act/v1beta1/tx.pulsar.go @@ -6490,7 +6490,7 @@ var ( md_MsgVoteForAction protoreflect.MessageDescriptor fd_MsgVoteForAction_participant protoreflect.FieldDescriptor fd_MsgVoteForAction_action_id protoreflect.FieldDescriptor - fd_MsgVoteForAction_vote protoreflect.FieldDescriptor + fd_MsgVoteForAction_vote_type protoreflect.FieldDescriptor ) func init() { @@ -6498,7 +6498,7 @@ func init() { md_MsgVoteForAction = File_warden_act_v1beta1_tx_proto.Messages().ByName("MsgVoteForAction") fd_MsgVoteForAction_participant = md_MsgVoteForAction.Fields().ByName("participant") fd_MsgVoteForAction_action_id = md_MsgVoteForAction.Fields().ByName("action_id") - fd_MsgVoteForAction_vote = md_MsgVoteForAction.Fields().ByName("vote") + fd_MsgVoteForAction_vote_type = md_MsgVoteForAction.Fields().ByName("vote_type") } var _ protoreflect.Message = (*fastReflection_MsgVoteForAction)(nil) @@ -6578,9 +6578,9 @@ func (x *fastReflection_MsgVoteForAction) Range(f func(protoreflect.FieldDescrip return } } - if x.Vote != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Vote)) - if !f(fd_MsgVoteForAction_vote, value) { + if x.VoteType != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.VoteType)) + if !f(fd_MsgVoteForAction_vote_type, value) { return } } @@ -6603,8 +6603,8 @@ func (x *fastReflection_MsgVoteForAction) Has(fd protoreflect.FieldDescriptor) b return x.Participant != "" case "warden.act.v1beta1.MsgVoteForAction.action_id": return x.ActionId != uint64(0) - case "warden.act.v1beta1.MsgVoteForAction.vote": - return x.Vote != 0 + case "warden.act.v1beta1.MsgVoteForAction.vote_type": + return x.VoteType != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgVoteForAction")) @@ -6625,8 +6625,8 @@ func (x *fastReflection_MsgVoteForAction) Clear(fd protoreflect.FieldDescriptor) x.Participant = "" case "warden.act.v1beta1.MsgVoteForAction.action_id": x.ActionId = uint64(0) - case "warden.act.v1beta1.MsgVoteForAction.vote": - x.Vote = 0 + case "warden.act.v1beta1.MsgVoteForAction.vote_type": + x.VoteType = 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgVoteForAction")) @@ -6649,8 +6649,8 @@ func (x *fastReflection_MsgVoteForAction) Get(descriptor protoreflect.FieldDescr case "warden.act.v1beta1.MsgVoteForAction.action_id": value := x.ActionId return protoreflect.ValueOfUint64(value) - case "warden.act.v1beta1.MsgVoteForAction.vote": - value := x.Vote + case "warden.act.v1beta1.MsgVoteForAction.vote_type": + value := x.VoteType return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { @@ -6676,8 +6676,8 @@ func (x *fastReflection_MsgVoteForAction) Set(fd protoreflect.FieldDescriptor, v x.Participant = value.Interface().(string) case "warden.act.v1beta1.MsgVoteForAction.action_id": x.ActionId = value.Uint() - case "warden.act.v1beta1.MsgVoteForAction.vote": - x.Vote = (ActionVoteType)(value.Enum()) + case "warden.act.v1beta1.MsgVoteForAction.vote_type": + x.VoteType = (ActionVoteType)(value.Enum()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgVoteForAction")) @@ -6702,8 +6702,8 @@ func (x *fastReflection_MsgVoteForAction) Mutable(fd protoreflect.FieldDescripto panic(fmt.Errorf("field participant of message warden.act.v1beta1.MsgVoteForAction is not mutable")) case "warden.act.v1beta1.MsgVoteForAction.action_id": panic(fmt.Errorf("field action_id of message warden.act.v1beta1.MsgVoteForAction is not mutable")) - case "warden.act.v1beta1.MsgVoteForAction.vote": - panic(fmt.Errorf("field vote of message warden.act.v1beta1.MsgVoteForAction is not mutable")) + case "warden.act.v1beta1.MsgVoteForAction.vote_type": + panic(fmt.Errorf("field vote_type of message warden.act.v1beta1.MsgVoteForAction is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgVoteForAction")) @@ -6721,7 +6721,7 @@ func (x *fastReflection_MsgVoteForAction) NewField(fd protoreflect.FieldDescript return protoreflect.ValueOfString("") case "warden.act.v1beta1.MsgVoteForAction.action_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.act.v1beta1.MsgVoteForAction.vote": + case "warden.act.v1beta1.MsgVoteForAction.vote_type": return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { @@ -6799,8 +6799,8 @@ func (x *fastReflection_MsgVoteForAction) ProtoMethods() *protoiface.Methods { if x.ActionId != 0 { n += 1 + runtime.Sov(uint64(x.ActionId)) } - if x.Vote != 0 { - n += 1 + runtime.Sov(uint64(x.Vote)) + if x.VoteType != 0 { + n += 1 + runtime.Sov(uint64(x.VoteType)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -6831,8 +6831,8 @@ func (x *fastReflection_MsgVoteForAction) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Vote != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Vote)) + if x.VoteType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.VoteType)) i-- dAtA[i] = 0x18 } @@ -6950,9 +6950,9 @@ func (x *fastReflection_MsgVoteForAction) ProtoMethods() *protoiface.Methods { } case 3: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VoteType", wireType) } - x.Vote = 0 + x.VoteType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6962,7 +6962,7 @@ func (x *fastReflection_MsgVoteForAction) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.Vote |= ActionVoteType(b&0x7F) << shift + x.VoteType |= ActionVoteType(b&0x7F) << shift if b < 0x80 { break } @@ -8020,7 +8020,7 @@ type MsgVoteForAction struct { Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"` ActionId uint64 `protobuf:"varint,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"` - Vote ActionVoteType `protobuf:"varint,3,opt,name=vote,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote,omitempty"` + VoteType ActionVoteType `protobuf:"varint,3,opt,name=vote_type,json=voteType,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote_type,omitempty"` } func (x *MsgVoteForAction) Reset() { @@ -8057,9 +8057,9 @@ func (x *MsgVoteForAction) GetActionId() uint64 { return 0 } -func (x *MsgVoteForAction) GetVote() ActionVoteType { +func (x *MsgVoteForAction) GetVoteType() ActionVoteType { if x != nil { - return x.Vote + return x.VoteType } return ActionVoteType_VOTE_TYPE_UNSPECIFIED } @@ -8198,83 +8198,83 @@ var file_warden_act_v1beta1_tx_proto_rawDesc = []byte{ 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x30, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x9b, 0x01, 0x0a, 0x10, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xa4, 0x01, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x56, 0x6f, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x36, 0x0a, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, + 0x3f, 0x0a, 0x09, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x6f, + 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x76, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x3a, 0x10, 0x82, 0xe7, 0xb0, 0x2a, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, + 0x6e, 0x74, 0x22, 0x32, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x56, 0x6f, 0x74, 0x65, 0x46, 0x6f, 0x72, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0x81, 0x06, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x60, + 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x23, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x1a, 0x2b, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x57, 0x0a, 0x09, 0x4e, 0x65, 0x77, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x3a, 0x10, 0x82, 0xe7, 0xb0, 0x2a, 0x0b, 0x70, 0x61, - 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x22, 0x32, 0x0a, 0x18, 0x4d, 0x73, 0x67, - 0x56, 0x6f, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0x81, 0x06, - 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x60, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2b, 0x2e, 0x77, 0x61, 0x72, + 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, + 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0d, 0x41, 0x70, 0x70, + 0x72, 0x6f, 0x76, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x09, 0x4e, 0x65, 0x77, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, - 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4e, - 0x65, 0x77, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x63, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x24, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, - 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x2c, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x0b, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x68, 0x65, - 0x63, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, - 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x07, 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, - 0x1e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x1a, - 0x26, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x21, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x1a, 0x29, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x4d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x1a, 0x2c, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, + 0x0a, 0x0b, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x1a, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, + 0x07, 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0c, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, - 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x2b, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x67, 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x1a, 0x26, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0d, 0x56, 0x6f, 0x74, 0x65, 0x46, 0x6f, 0x72, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, - 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x56, - 0x6f, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x2c, 0x2e, 0x77, + 0x67, 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x5a, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x21, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, + 0x65, 0x1a, 0x29, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0c, + 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x56, 0x6f, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, - 0x01, 0x42, 0xd8, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, - 0x6f, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, - 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x63, 0x74, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x57, 0x41, 0x58, 0xaa, 0x02, 0x12, 0x57, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, - 0x02, 0x12, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x41, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1e, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x41, 0x63, - 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, - 0x41, 0x63, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x1a, 0x2b, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, + 0x0a, 0x0d, 0x56, 0x6f, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x24, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x56, 0x6f, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x2c, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, + 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x56, 0x6f, + 0x74, 0x65, 0x46, 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xd8, 0x01, 0x0a, 0x16, 0x63, + 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x3b, 0x61, 0x63, 0x74, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, + 0x57, 0x41, 0x58, 0xaa, 0x02, 0x12, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x41, 0x63, 0x74, + 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x12, 0x57, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x5c, 0x41, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1e, + 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x41, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x14, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x41, 0x63, 0x74, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -8317,7 +8317,7 @@ var file_warden_act_v1beta1_tx_proto_depIdxs = []int32{ 17, // 1: warden.act.v1beta1.MsgNewAction.message:type_name -> google.protobuf.Any 18, // 2: warden.act.v1beta1.MsgNewAction.expected_approve_expression:type_name -> shield.ast.Expression 18, // 3: warden.act.v1beta1.MsgNewAction.expected_reject_expression:type_name -> shield.ast.Expression - 19, // 4: warden.act.v1beta1.MsgVoteForAction.vote:type_name -> warden.act.v1beta1.ActionVoteType + 19, // 4: warden.act.v1beta1.MsgVoteForAction.vote_type:type_name -> warden.act.v1beta1.ActionVoteType 0, // 5: warden.act.v1beta1.Msg.UpdateParams:input_type -> warden.act.v1beta1.MsgUpdateParams 2, // 6: warden.act.v1beta1.Msg.NewAction:input_type -> warden.act.v1beta1.MsgNewAction 4, // 7: warden.act.v1beta1.Msg.ApproveAction:input_type -> warden.act.v1beta1.MsgApproveAction diff --git a/proto/warden/act/v1beta1/action_vote.proto b/proto/warden/act/v1beta1/action_vote.proto index 79aac6a73..8942f9a29 100644 --- a/proto/warden/act/v1beta1/action_vote.proto +++ b/proto/warden/act/v1beta1/action_vote.proto @@ -16,7 +16,7 @@ message ActionVote { [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; // vote is the type of the vote. - ActionVoteType vote = 3; + ActionVoteType vote_type = 3; } // Type of a vote. diff --git a/proto/warden/act/v1beta1/events.proto b/proto/warden/act/v1beta1/events.proto index 0d971b5f0..854af5da9 100644 --- a/proto/warden/act/v1beta1/events.proto +++ b/proto/warden/act/v1beta1/events.proto @@ -49,7 +49,7 @@ message EventActionVoted { string participant = 2; // type of the vote - ActionVoteType vote = 3; + ActionVoteType vote_type = 3; } // EventActionStateChange is emitted when an Action is in a new state diff --git a/proto/warden/act/v1beta1/tx.proto b/proto/warden/act/v1beta1/tx.proto index 00debb6ad..3a8fe8b34 100644 --- a/proto/warden/act/v1beta1/tx.proto +++ b/proto/warden/act/v1beta1/tx.proto @@ -133,7 +133,7 @@ message MsgVoteForAction { option (cosmos.msg.v1.signer) = "participant"; string participant = 1; uint64 action_id = 2; - ActionVoteType vote = 3; + ActionVoteType vote_type = 3; } message MsgVoteForActionResponse { diff --git a/warden/x/act/keeper/actions.go b/warden/x/act/keeper/actions.go index 33cb9a764..770644c40 100644 --- a/warden/x/act/keeper/actions.go +++ b/warden/x/act/keeper/actions.go @@ -9,7 +9,6 @@ import ( "github.com/cosmos/cosmos-sdk/baseapp" codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/warden-protocol/wardenprotocol/shield" "github.com/warden-protocol/wardenprotocol/shield/ast" "github.com/warden-protocol/wardenprotocol/shield/object" "github.com/warden-protocol/wardenprotocol/warden/x/act/cosmoshield" @@ -29,7 +28,70 @@ func (approvers ApproversEnv) Get(name string) (object.Object, bool) { return object.FALSE, true } -var _ shield.Environment = ApproversEnv{} +// ActionApprovedVotesEnv is an environment that resolves action positive votes addresses to true. +type ActionApprovedVotesEnv []*types.ActionVote + +// Get implements positive action vote evaluator.Environment. +func (votes ActionApprovedVotesEnv) Get(name string) (object.Object, bool) { + for _, s := range votes { + if s.Participant == name && s.VoteType == types.ActionVoteType_VOTE_TYPE_APPROVED { + return object.TRUE, true + } + } + return object.FALSE, true +} + +// ActionRejectedVotesEnv is an environment that resolves action negative votes addresses to true. +type ActionRejectedVotesEnv []*types.ActionVote + +// Get implements negative action vote evaluator.Environment. +func (votes ActionRejectedVotesEnv) Get(name string) (object.Object, bool) { + for _, s := range votes { + if s.Participant == name && s.VoteType == types.ActionVoteType_VOTE_TYPE_REJECTED { + return object.TRUE, true + } + } + return object.FALSE, true +} + +// TryExecuteVotedAction checks if the action's expression is satisfied and stores the +// result in the database. +func (k Keeper) TryExecuteVotedAction(ctx context.Context, act *types.Action) error { + approved, err := act.Rule.Eval(ctx, ActionApprovedVotesEnv(act.Votes)) + + if err != nil { + return err + } + + if approved { + return k.executeAction(ctx, act) + } + + return nil +} + +// TryRejectVotedAction checks if the action's reject expression is satisfied and updates its +// status revoked. +func (k Keeper) TryRejectVotedAction(ctx context.Context, act *types.Action) error { + sdkCtx := sdk.UnwrapSDKContext(ctx) + + rejected, err := act.Rule.Eval(ctx, ActionRejectedVotesEnv(act.Votes)) + + if err != nil { + return err + } + + if rejected { + if err := act.SetStatus(sdkCtx, types.ActionStatus_ACTION_STATUS_REVOKED); err != nil { + return err + } + if err := k.ActionKeeper.Set(ctx, *act); err != nil { + return err + } + } + + return nil +} // TryExecuteAction checks if the action's intent is satisfied and stores the // result in the database. @@ -177,7 +239,7 @@ func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, time // add initial approver sdkCtx := sdk.UnwrapSDKContext(ctx) - if err := act.AddApprover(sdkCtx, creator); err != nil { + if err := act.AddOrUpdateVote(sdkCtx, creator, types.ActionVoteType_VOTE_TYPE_APPROVED); err != nil { return nil, err } diff --git a/warden/x/act/keeper/msg_server_vote_for_action.go b/warden/x/act/keeper/msg_server_vote_for_action.go index 3102d431d..c20f30822 100644 --- a/warden/x/act/keeper/msg_server_vote_for_action.go +++ b/warden/x/act/keeper/msg_server_vote_for_action.go @@ -2,10 +2,52 @@ package keeper import ( "context" + "fmt" + sdk "github.com/cosmos/cosmos-sdk/types" types "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" ) func (k msgServer) VoteForAction(goCtx context.Context, msg *types.MsgVoteForAction) (*types.MsgVoteForActionResponse, error) { - panic("VoteForAction not implemented") + ctx := sdk.UnwrapSDKContext(goCtx) + act, err := k.ActionKeeper.Get(ctx, msg.ActionId) + + if err != nil { + return nil, err + } + + if act.TimeoutHeight > 0 && act.TimeoutHeight < uint64(ctx.BlockHeight()) { + if err := act.SetStatus(ctx, types.ActionStatus_ACTION_STATUS_TIMEOUT); err != nil { + return nil, err + } + if err := k.ActionKeeper.Set(ctx, act); err != nil { + return nil, err + } + + return &types.MsgVoteForActionResponse{ + Status: act.Status.String(), + }, nil + } + + if err := act.AddOrUpdateVote(ctx, msg.Participant, msg.VoteType); err != nil { + return nil, err + } + + if err := k.ActionKeeper.Set(ctx, act); err != nil { + return nil, err + } + + if msg.VoteType == types.ActionVoteType_VOTE_TYPE_APPROVED { + if err := k.TryExecuteVotedAction(ctx, &act); err != nil { + return nil, err + } + } else if msg.VoteType == types.ActionVoteType_VOTE_TYPE_REJECTED { + if err := k.TryRejectVotedAction(ctx, &act); err != nil { + return nil, err + } + } else { + return nil, fmt.Errorf("unhandled VoteType value: %v", msg.VoteType) + } + + return &types.MsgVoteForActionResponse{Status: act.Status.String()}, nil } diff --git a/warden/x/act/types/v1beta1/action.go b/warden/x/act/types/v1beta1/action.go index 63607438b..09d3f2f8b 100644 --- a/warden/x/act/types/v1beta1/action.go +++ b/warden/x/act/types/v1beta1/action.go @@ -1,7 +1,7 @@ package v1beta1 import ( - time "time" + "time" "cosmossdk.io/errors" codectypes "github.com/cosmos/cosmos-sdk/codec/types" @@ -15,6 +15,14 @@ func NewApprover(address string, timestamp time.Time) *Approver { } } +func NewVote(participant string, voteType ActionVoteType, timestamp time.Time) *ActionVote { + return &ActionVote{ + Participant: participant, + VotedAt: timestamp, + VoteType: voteType, + } +} + func (a *Action) SetId(id uint64) { a.Id = id } func (a *Action) SetResult(ctx sdk.Context, result *codectypes.Any) error { @@ -63,3 +71,36 @@ func (a *Action) AddApprover(ctx sdk.Context, address string) error { return nil } + +func (a *Action) AddOrUpdateVote(ctx sdk.Context, participant string, voteType ActionVoteType) error { + if a.Status != ActionStatus_ACTION_STATUS_PENDING { + return errors.Wrapf(ErrInvalidActionStatus, "can't add a vote to an action that's not pending") + } + + updated := false + + for i, v := range a.Votes { + if v.Participant == participant { + a.Votes[i].VoteType = voteType + a.Votes[i].VotedAt = ctx.BlockTime() + updated = true + break + } + } + + if !updated { + a.Votes = append(a.Votes, NewVote(participant, voteType, ctx.BlockTime())) + } + + a.UpdatedAt = ctx.BlockTime() + + if err := ctx.EventManager().EmitTypedEvent(&EventActionVoted{ + Id: a.Id, + Participant: participant, + VoteType: voteType, + }); err != nil { + return err + } + + return nil +} diff --git a/warden/x/act/types/v1beta1/action_vote.pb.go b/warden/x/act/types/v1beta1/action_vote.pb.go index 67522907e..e8c745f1e 100644 --- a/warden/x/act/types/v1beta1/action_vote.pb.go +++ b/warden/x/act/types/v1beta1/action_vote.pb.go @@ -66,7 +66,7 @@ type ActionVote struct { // voted_at is a timestamp specifying when the voter voted on the action. VotedAt time.Time `protobuf:"bytes,2,opt,name=voted_at,json=votedAt,proto3,stdtime" json:"voted_at"` // vote is the type of the vote. - Vote ActionVoteType `protobuf:"varint,3,opt,name=vote,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote,omitempty"` + VoteType ActionVoteType `protobuf:"varint,3,opt,name=vote_type,json=voteType,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote_type,omitempty"` } func (m *ActionVote) Reset() { *m = ActionVote{} } @@ -116,9 +116,9 @@ func (m *ActionVote) GetVotedAt() time.Time { return time.Time{} } -func (m *ActionVote) GetVote() ActionVoteType { +func (m *ActionVote) GetVoteType() ActionVoteType { if m != nil { - return m.Vote + return m.VoteType } return ActionVoteType_VOTE_TYPE_UNSPECIFIED } @@ -133,30 +133,31 @@ func init() { } var fileDescriptor_b33d294255f825be = []byte{ - // 364 bytes of a gzipped FileDescriptorProto + // 369 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x29, 0x4f, 0x2c, 0x4a, 0x49, 0xcd, 0xd3, 0x4f, 0x4c, 0x2e, 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0x04, 0xb1, 0x33, 0xf3, 0xf3, 0xe2, 0xcb, 0xf2, 0x4b, 0x52, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x84, 0x20, 0xaa, 0xf4, 0x12, 0x93, 0x4b, 0xf4, 0xa0, 0xaa, 0xa4, 0x04, 0x13, 0x73, 0x33, 0xf3, 0xf2, 0xf5, 0xc1, 0x24, 0x44, 0x99, 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x98, 0xa9, 0x0f, 0x62, 0x41, 0x45, 0xe5, 0xd3, 0xf3, 0xf3, 0xd3, 0x73, 0x52, 0xf5, 0xc1, 0xbc, 0xa4, 0xd2, 0x34, 0xfd, 0x92, - 0xcc, 0xdc, 0xd4, 0xe2, 0x92, 0xc4, 0xdc, 0x02, 0x88, 0x02, 0xa5, 0x35, 0x8c, 0x5c, 0x5c, 0x8e, + 0xcc, 0xdc, 0xd4, 0xe2, 0x92, 0xc4, 0xdc, 0x02, 0x88, 0x02, 0xa5, 0xad, 0x8c, 0x5c, 0x5c, 0x8e, 0x60, 0x3b, 0xc3, 0xf2, 0x4b, 0x52, 0x85, 0x14, 0xb8, 0xb8, 0x0b, 0x12, 0x8b, 0x4a, 0x32, 0x93, 0x33, 0x0b, 0x12, 0xf3, 0x4a, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x90, 0x85, 0x84, 0x5c, 0xb8, 0x38, 0x40, 0x8e, 0x4b, 0x89, 0x4f, 0x2c, 0x91, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x36, 0x92, 0xd2, 0x83, 0x58, 0xa2, 0x07, 0xb3, 0x44, 0x2f, 0x04, 0x66, 0x89, 0x13, 0xef, 0x89, 0x7b, 0xf2, 0x0c, 0x13, 0xee, 0xcb, 0x33, 0xae, 0x78, 0xbe, 0x41, 0x8b, 0x31, 0x88, 0x1d, 0xac, 0xd5, 0xb1, - 0x44, 0xc8, 0x8c, 0x8b, 0x05, 0xc4, 0x94, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x33, 0x52, 0xd2, 0xc3, - 0xf4, 0xa3, 0x1e, 0xc2, 0x55, 0x21, 0x95, 0x05, 0xa9, 0x41, 0x60, 0xf5, 0x5a, 0xd1, 0x5c, 0x7c, - 0xa8, 0xe2, 0x42, 0x92, 0x5c, 0xa2, 0x61, 0xfe, 0x21, 0xae, 0xf1, 0x21, 0x91, 0x01, 0xae, 0xf1, - 0xa1, 0x7e, 0xc1, 0x01, 0xae, 0xce, 0x9e, 0x6e, 0x9e, 0xae, 0x2e, 0x02, 0x0c, 0x42, 0x62, 0x5c, - 0x42, 0x08, 0x29, 0xc7, 0x80, 0x80, 0x20, 0xff, 0x30, 0x57, 0x17, 0x01, 0x46, 0x54, 0xf1, 0x20, - 0x57, 0x2f, 0x57, 0xe7, 0x10, 0x57, 0x17, 0x01, 0x26, 0xa7, 0xb8, 0x13, 0x8f, 0xe4, 0x18, 0x2f, - 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, - 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x72, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, - 0xd5, 0x87, 0x38, 0x55, 0x17, 0xec, 0xd9, 0xe4, 0xfc, 0x1c, 0x28, 0x1f, 0x8d, 0xab, 0x5f, 0x01, - 0x8e, 0xd5, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x58, 0xdc, 0x26, 0xb1, 0x81, 0x15, 0x19, 0x03, 0x02, - 0x00, 0x00, 0xff, 0xff, 0x83, 0xeb, 0xb2, 0xd4, 0xf8, 0x01, 0x00, 0x00, + 0x44, 0xc8, 0x9e, 0x8b, 0x13, 0xc4, 0x8c, 0x2f, 0xa9, 0x2c, 0x48, 0x95, 0x60, 0x56, 0x60, 0xd4, + 0xe0, 0x33, 0x52, 0xd2, 0xc3, 0xf4, 0xa8, 0x1e, 0xc2, 0x69, 0x21, 0x95, 0x05, 0xa9, 0x41, 0x60, + 0xab, 0x41, 0x2c, 0xad, 0x68, 0x2e, 0x3e, 0x54, 0x39, 0x21, 0x49, 0x2e, 0xd1, 0x30, 0xff, 0x10, + 0xd7, 0xf8, 0x90, 0xc8, 0x00, 0xd7, 0xf8, 0x50, 0xbf, 0xe0, 0x00, 0x57, 0x67, 0x4f, 0x37, 0x4f, + 0x57, 0x17, 0x01, 0x06, 0x21, 0x31, 0x2e, 0x21, 0x84, 0x94, 0x63, 0x40, 0x40, 0x90, 0x7f, 0x98, + 0xab, 0x8b, 0x00, 0x23, 0xaa, 0x78, 0x90, 0xab, 0x97, 0xab, 0x73, 0x88, 0xab, 0x8b, 0x00, 0x93, + 0x53, 0xdc, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, + 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xb9, 0xa4, 0x67, 0x96, + 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x43, 0x9c, 0xab, 0x0b, 0xf6, 0x75, 0x72, 0x7e, + 0x0e, 0x94, 0x8f, 0xc6, 0xd5, 0xaf, 0x00, 0x47, 0x2f, 0xc8, 0x9f, 0xc5, 0xb0, 0x48, 0x4e, 0x62, + 0x03, 0x2b, 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x64, 0xe6, 0x0a, 0x01, 0x02, 0x00, + 0x00, } func (m *ActionVote) Marshal() (dAtA []byte, err error) { @@ -179,8 +180,8 @@ func (m *ActionVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Vote != 0 { - i = encodeVarintActionVote(dAtA, i, uint64(m.Vote)) + if m.VoteType != 0 { + i = encodeVarintActionVote(dAtA, i, uint64(m.VoteType)) i-- dAtA[i] = 0x18 } @@ -225,8 +226,8 @@ func (m *ActionVote) Size() (n int) { } l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.VotedAt) n += 1 + l + sovActionVote(uint64(l)) - if m.Vote != 0 { - n += 1 + sovActionVote(uint64(m.Vote)) + if m.VoteType != 0 { + n += 1 + sovActionVote(uint64(m.VoteType)) } return n } @@ -333,9 +334,9 @@ func (m *ActionVote) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VoteType", wireType) } - m.Vote = 0 + m.VoteType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowActionVote @@ -345,7 +346,7 @@ func (m *ActionVote) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Vote |= ActionVoteType(b&0x7F) << shift + m.VoteType |= ActionVoteType(b&0x7F) << shift if b < 0x80 { break } diff --git a/warden/x/act/types/v1beta1/events.pb.go b/warden/x/act/types/v1beta1/events.pb.go index c529653b1..dab268a4f 100644 --- a/warden/x/act/types/v1beta1/events.pb.go +++ b/warden/x/act/types/v1beta1/events.pb.go @@ -240,7 +240,7 @@ type EventActionVoted struct { // address of the account that participated in voting Participant string `protobuf:"bytes,2,opt,name=participant,proto3" json:"participant,omitempty"` // type of the vote - Vote ActionVoteType `protobuf:"varint,3,opt,name=vote,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote,omitempty"` + VoteType ActionVoteType `protobuf:"varint,3,opt,name=vote_type,json=voteType,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote_type,omitempty"` } func (m *EventActionVoted) Reset() { *m = EventActionVoted{} } @@ -290,9 +290,9 @@ func (m *EventActionVoted) GetParticipant() string { return "" } -func (m *EventActionVoted) GetVote() ActionVoteType { +func (m *EventActionVoted) GetVoteType() ActionVoteType { if m != nil { - return m.Vote + return m.VoteType } return ActionVoteType_VOTE_TYPE_UNSPECIFIED } @@ -421,32 +421,32 @@ func init() { func init() { proto.RegisterFile("warden/act/v1beta1/events.proto", fileDescriptor_912b51dfb11e99b6) } var fileDescriptor_912b51dfb11e99b6 = []byte{ - // 395 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xb1, 0x4e, 0xdb, 0x40, - 0x1c, 0xc6, 0x73, 0x49, 0xd4, 0x36, 0x57, 0xc9, 0x69, 0x3d, 0x54, 0x56, 0x06, 0xd7, 0x75, 0x3b, - 0x64, 0xa9, 0xad, 0xa4, 0x52, 0x97, 0xaa, 0x6a, 0x43, 0x60, 0x60, 0x43, 0x0e, 0x30, 0x30, 0x10, - 0x5d, 0xec, 0x53, 0x62, 0x29, 0xdc, 0x9d, 0xce, 0x7f, 0x3b, 0x44, 0xe2, 0x21, 0x78, 0x18, 0x1e, - 0x82, 0x31, 0x23, 0x23, 0x4a, 0x5e, 0x04, 0xe5, 0xce, 0x86, 0x08, 0x63, 0x09, 0x36, 0x7f, 0xbe, - 0xef, 0xf7, 0x7d, 0xa7, 0xff, 0xfd, 0xf1, 0xd7, 0x05, 0x91, 0x11, 0x65, 0x3e, 0x09, 0xc1, 0xcf, - 0x7a, 0x13, 0x0a, 0xa4, 0xe7, 0xd3, 0x8c, 0x32, 0x48, 0x3c, 0x21, 0x39, 0x70, 0xd3, 0xd4, 0x06, - 0x8f, 0x84, 0xe0, 0xe5, 0x86, 0xce, 0x4b, 0x10, 0x09, 0x21, 0xe6, 0x4c, 0x43, 0x9d, 0x1f, 0x95, - 0x86, 0x71, 0xc6, 0x81, 0x6a, 0x97, 0xfb, 0x07, 0xb7, 0x0f, 0xb6, 0x55, 0x43, 0x49, 0x09, 0xd0, - 0x20, 0x9d, 0x53, 0xd3, 0xc0, 0xf5, 0x38, 0xb2, 0x90, 0x83, 0xba, 0xcd, 0xa0, 0x1e, 0x47, 0xa6, - 0x85, 0xdf, 0x87, 0xdb, 0x53, 0x2e, 0xad, 0xba, 0x83, 0xba, 0xad, 0xa0, 0x90, 0xee, 0xb7, 0x1c, - 0x3e, 0x11, 0x51, 0x05, 0xec, 0xfe, 0xc5, 0x9f, 0x77, 0xf2, 0x07, 0xaa, 0xff, 0x0d, 0x0d, 0xff, - 0xb1, 0xa9, 0xf0, 0x81, 0x10, 0x92, 0x67, 0x55, 0x7c, 0x07, 0x7f, 0x20, 0xda, 0x50, 0x04, 0x3c, - 0x6a, 0xf7, 0x0a, 0x7f, 0xd2, 0x09, 0x0a, 0x3d, 0xe5, 0x40, 0xa3, 0x12, 0xef, 0xe0, 0x8f, 0x82, - 0x48, 0x88, 0xc3, 0x58, 0x10, 0x06, 0x79, 0xc4, 0xee, 0x2f, 0xf3, 0x37, 0x6e, 0x6e, 0x87, 0x66, - 0x35, 0x1c, 0xd4, 0x35, 0xfa, 0xae, 0x57, 0x7e, 0x10, 0xef, 0xa9, 0xe0, 0x78, 0x29, 0x68, 0xa0, - 0xfc, 0xee, 0x0d, 0xc2, 0x5f, 0x76, 0xea, 0x47, 0x40, 0x80, 0x0e, 0x67, 0x84, 0x4d, 0xcb, 0x63, - 0x3e, 0xc4, 0x6d, 0x21, 0x69, 0x16, 0xf3, 0x34, 0x19, 0x27, 0x40, 0x20, 0x4d, 0xd4, 0x45, 0x8c, - 0xbe, 0x53, 0xdd, 0x36, 0x52, 0xbe, 0xc0, 0x28, 0x40, 0xad, 0xcd, 0x7f, 0x18, 0x33, 0xba, 0x28, - 0x52, 0x1a, 0xaf, 0x4c, 0x69, 0x31, 0xba, 0xd0, 0x9f, 0xee, 0xf7, 0xfc, 0xd5, 0xf4, 0xf9, 0x91, - 0x4c, 0x59, 0x79, 0x6a, 0x7b, 0xe7, 0xb7, 0x6b, 0x1b, 0xad, 0xd6, 0x36, 0xba, 0x5f, 0xdb, 0xe8, - 0x7a, 0x63, 0xd7, 0x56, 0x1b, 0xbb, 0x76, 0xb7, 0xb1, 0x6b, 0x67, 0xfb, 0xd3, 0x18, 0x66, 0xe9, - 0xc4, 0x0b, 0xf9, 0x85, 0xaf, 0x5b, 0x7f, 0xaa, 0x6d, 0x0b, 0xf9, 0x3c, 0xd7, 0xcf, 0xa4, 0x7f, - 0xa9, 0xd6, 0x14, 0x96, 0x82, 0x26, 0xc5, 0xb2, 0x4e, 0xde, 0x29, 0xd3, 0xaf, 0x87, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x67, 0x98, 0x13, 0xcb, 0x1f, 0x03, 0x00, 0x00, + // 398 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xbf, 0x6e, 0xda, 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ad, 0x48, 0xdf, + 0xee, 0x02, 0x00, 0x00, 0xff, 0xff, 0x58, 0x29, 0xa6, 0x90, 0x29, 0x03, 0x00, 0x00, } func (m *EventCreateRule) Marshal() (dAtA []byte, err error) { @@ -602,8 +602,8 @@ func (m *EventActionVoted) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Vote != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.Vote)) + if m.VoteType != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.VoteType)) i-- dAtA[i] = 0x18 } @@ -772,8 +772,8 @@ func (m *EventActionVoted) Size() (n int) { if l > 0 { n += 1 + l + sovEvents(uint64(l)) } - if m.Vote != 0 { - n += 1 + sovEvents(uint64(m.Vote)) + if m.VoteType != 0 { + n += 1 + sovEvents(uint64(m.VoteType)) } return n } @@ -1268,9 +1268,9 @@ func (m *EventActionVoted) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VoteType", wireType) } - m.Vote = 0 + m.VoteType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -1280,7 +1280,7 @@ func (m *EventActionVoted) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Vote |= ActionVoteType(b&0x7F) << shift + m.VoteType |= ActionVoteType(b&0x7F) << shift if b < 0x80 { break } diff --git a/warden/x/act/types/v1beta1/tx.pb.go b/warden/x/act/types/v1beta1/tx.pb.go index 0e66ee83f..edf03b6bd 100644 --- a/warden/x/act/types/v1beta1/tx.pb.go +++ b/warden/x/act/types/v1beta1/tx.pb.go @@ -743,7 +743,7 @@ func (m *MsgCheckActionResponse) GetStatus() string { type MsgVoteForAction struct { Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"` ActionId uint64 `protobuf:"varint,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"` - Vote ActionVoteType `protobuf:"varint,3,opt,name=vote,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote,omitempty"` + VoteType ActionVoteType `protobuf:"varint,3,opt,name=vote_type,json=voteType,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote_type,omitempty"` } func (m *MsgVoteForAction) Reset() { *m = MsgVoteForAction{} } @@ -793,9 +793,9 @@ func (m *MsgVoteForAction) GetActionId() uint64 { return 0 } -func (m *MsgVoteForAction) GetVote() ActionVoteType { +func (m *MsgVoteForAction) GetVoteType() ActionVoteType { if m != nil { - return m.Vote + return m.VoteType } return ActionVoteType_VOTE_TYPE_UNSPECIFIED } @@ -866,65 +866,66 @@ func init() { func init() { proto.RegisterFile("warden/act/v1beta1/tx.proto", fileDescriptor_f059980976488200) } var fileDescriptor_f059980976488200 = []byte{ - // 923 bytes of a gzipped FileDescriptorProto + // 929 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x6f, 0xe3, 0x44, - 0x14, 0xaf, 0xd3, 0x6c, 0x4b, 0x5e, 0xbb, 0x65, 0x31, 0xdd, 0x36, 0x75, 0x91, 0x37, 0x98, 0x6a, - 0x55, 0x0a, 0x6b, 0xd3, 0x20, 0xed, 0xa1, 0x12, 0x87, 0x96, 0x3f, 0x82, 0x43, 0x10, 0x98, 0xfd, - 0x23, 0x55, 0x40, 0x76, 0x6a, 0xcf, 0x3a, 0xc3, 0xd6, 0x1e, 0xcb, 0x33, 0xc9, 0x36, 0xe2, 0x02, - 0x1c, 0x39, 0x71, 0xe7, 0x0b, 0x70, 0xec, 0x81, 0x0b, 0xdf, 0x60, 0x8f, 0x2b, 0xc4, 0x81, 0x13, - 0x42, 0xed, 0xa1, 0x5f, 0x03, 0x79, 0x66, 0xec, 0xd8, 0x21, 0xae, 0x7b, 0xe8, 0x21, 0x89, 0x67, - 0xde, 0xef, 0xf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 0xae, 0x7c, 0x5a, 0xd4, 0xf2, - 0x2d, 0xab, 0x2a, 0x6a, 0x09, 0x55, 0x59, 0xd4, 0x99, 0x97, 0xc2, 0xb8, 0xf1, 0x43, 0xfa, 0x5e, - 0x71, 0xf0, 0xed, 0x8b, 0x33, 0x53, 0x7b, 0x79, 0x66, 0x6a, 0xff, 0x9e, 0x99, 0xda, 0x2f, 0xe7, - 0xe6, 0xdc, 0xcb, 0x73, 0x73, 0xee, 0xef, 0x73, 0x73, 0xee, 0xf0, 0xa3, 0x80, 0xf0, 0xc1, 0xf0, - 0xc8, 0xf6, 0x68, 0xe8, 0x48, 0xe2, 0x7b, 0xe2, 0xbf, 0xde, 0xa3, 0xc7, 0x6a, 0x3d, 0xb5, 0x54, - 0x2f, 0x20, 0x7c, 0x1c, 0x63, 0x96, 0xbd, 0x62, 0x1d, 0x2d, 0x08, 0xd0, 0xfb, 0xff, 0x05, 0x00, - 0x00, 0xff, 0xff, 0x51, 0xa5, 0xc0, 0x5b, 0x49, 0x0a, 0x00, 0x00, + 0x14, 0xaf, 0xd3, 0x6c, 0xbb, 0x79, 0xed, 0x96, 0xc5, 0x74, 0xdb, 0xd4, 0x45, 0xde, 0x60, 0xaa, + 0x55, 0x29, 0xac, 0x4d, 0x83, 0xc4, 0xa1, 0x12, 0x42, 0x2d, 0x7f, 0x04, 0x87, 0x20, 0x30, 0xfb, + 0x47, 0xaa, 0x80, 0xec, 0xd4, 0x9e, 0x75, 0x86, 0xad, 0x3d, 0x96, 0x67, 0x92, 0x6d, 0xc4, 0x05, + 0x38, 0x72, 0xe2, 0x43, 0x70, 0xe0, 0xd8, 0x03, 0x17, 0xbe, 0xc1, 0x1e, 0x57, 0x88, 0x03, 0x27, + 0x84, 0xda, 0x43, 0xbf, 0x06, 0xf2, 0xcc, 0xd8, 0xb1, 0xb3, 0x71, 0xdd, 0xc3, 0x1e, 0x92, 0x78, + 0xe6, 0xfd, 0xde, 0xef, 0xfd, 0xe6, 0xbd, 0x37,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45, 0xf2, 0x6b, 0x57, 0x20, 0x6f, 0x67, 0xfe, 0xae, 0x70, 0x9f, 0xd8, + 0xf7, 0x96, 0xd3, 0xa2, 0x64, 0xb9, 0xb2, 0xee, 0xc0, 0x6a, 0x31, 0xab, 0x59, 0xba, 0xf5, 0x15, + 0x68, 0x10, 0x5f, 0x24, 0xb6, 0xe9, 0x36, 0x88, 0x6f, 0x3d, 0x84, 0x9b, 0x3d, 0x16, 0x28, 0xa5, + 0xb5, 0x15, 0xd8, 0x84, 0x96, 0xca, 0x28, 0xf1, 0x45, 0x0d, 0x9a, 0xee, 0x75, 0xb9, 0xf1, 0xb9, + 0x3f, 0x25, 0xa0, 0x0b, 0xed, 0x69, 0xe2, 0x5c, 0xc4, 0x1a, 0x2c, 0x30, 0x8e, 0xf8, 0x90, 0x29, + 0x7e, 0xb5, 0xb2, 0x06, 0x00, 0x52, 0xb4, 0x3b, 0x3c, 0xc6, 0x97, 0xc8, 0xd0, 0xa1, 0x19, 0xa1, + 0x50, 0x76, 0x41, 0xcb, 0x15, 0xcf, 0xba, 0x09, 0xe0, 0xe3, 0xc7, 0x24, 0x22, 0x69, 0x24, 0x51, + 0xe1, 0x96, 0x5b, 0xd8, 0x99, 0x52, 0xb7, 0x05, 0xfa, 0x24, 0x52, 0x65, 0x72, 0x7e, 0x80, 0x1b, + 0x79, 0xdb, 0xd6, 0x48, 0x92, 0xae, 0x8d, 0xcc, 0x35, 0x97, 0x38, 0x5f, 0x29, 0xb1, 0x59, 0x23, + 0x71, 0x1d, 0x6e, 0x95, 0x82, 0xe7, 0x37, 0xe6, 0x81, 0x98, 0x03, 0x2e, 0x1e, 0xd1, 0x27, 0x2f, + 0xb5, 0x62, 0xf2, 0x92, 0x16, 0x79, 0xf3, 0x90, 0xf7, 0x61, 0xa5, 0xc7, 0x82, 0x8f, 0x06, 0xd8, + 0x7b, 0xf2, 0x32, 0x23, 0xbe, 0x0b, 0x6b, 0x65, 0xda, 0xda, 0x0e, 0xf9, 0x4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, 0x7e, 0x5a, 0xd4, 0xf2, 0x75, 0xab, 0x2a, 0x6a, 0x09, 0x55, 0x59, 0xd4, 0x99, 0x97, + 0xc2, 0xb8, 0xf6, 0x63, 0xfa, 0x82, 0x71, 0xf0, 0xdd, 0xb3, 0x33, 0x53, 0x7b, 0x7e, 0x66, 0x6a, + 0xff, 0x9d, 0x99, 0xda, 0xaf, 0xe7, 0xe6, 0xdc, 0xf3, 0x73, 0x73, 0xee, 0x9f, 0x73, 0x73, 0xee, + 0xf0, 0xe3, 0x80, 0xf0, 0xc1, 0xf0, 0xc8, 0xf6, 0x68, 0xe8, 0x48, 0xe2, 0xbb, 0xe2, 0x4f, 0xdf, + 0xa3, 0xc7, 0x6a, 0x3d, 0xb5, 0x54, 0x6f, 0x22, 0xe9, 0xa5, 0x66, 0xd9, 0xbb, 0xd6, 0xd1, 0x82, + 0x00, 0xbd, 0xf7, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0b, 0xb4, 0xa2, 0x59, 0x52, 0x0a, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1788,8 +1789,8 @@ func (m *MsgVoteForAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Vote != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Vote)) + if m.VoteType != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.VoteType)) i-- dAtA[i] = 0x18 } @@ -2071,8 +2072,8 @@ func (m *MsgVoteForAction) Size() (n int) { if m.ActionId != 0 { n += 1 + sovTx(uint64(m.ActionId)) } - if m.Vote != 0 { - n += 1 + sovTx(uint64(m.Vote)) + if m.VoteType != 0 { + n += 1 + sovTx(uint64(m.VoteType)) } return n } @@ -3562,9 +3563,9 @@ func (m *MsgVoteForAction) Unmarshal(dAtA []byte) error { } case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VoteType", wireType) } - m.Vote = 0 + m.VoteType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3574,7 +3575,7 @@ func (m *MsgVoteForAction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Vote |= ActionVoteType(b&0x7F) << shift + m.VoteType |= ActionVoteType(b&0x7F) << shift if b < 0x80 { break }