From 586c659ea1a429ec3ebe9bfa56418cc54c45092e Mon Sep 17 00:00:00 2001 From: Maks Nabokov Date: Mon, 9 Sep 2024 11:54:51 +0300 Subject: [PATCH 01/18] - Extend RulesRegistry with Approve/Reject expressions. - Set expressions within MsgNewAction handling. - Update registry initialization in space module, add missing rule ids --- api/warden/warden/v1beta3/key.pulsar.go | 215 +++++++++++--- api/warden/warden/v1beta3/space.pulsar.go | 325 ++++++++++++++++++++-- proto/warden/warden/v1beta3/key.proto | 10 + proto/warden/warden/v1beta3/space.proto | 48 ++++ warden/x/act/keeper/actions.go | 42 ++- warden/x/act/types/v1beta1/errors.go | 32 ++- warden/x/act/types/v1beta1/registry.go | 28 +- warden/x/warden/keeper/rules.go | 204 +++++++++++--- warden/x/warden/types/v1beta3/key.pb.go | 168 ++++++++--- warden/x/warden/types/v1beta3/space.go | 35 ++- warden/x/warden/types/v1beta3/space.pb.go | 218 +++++++++++++-- 11 files changed, 1101 insertions(+), 224 deletions(-) diff --git a/api/warden/warden/v1beta3/key.pulsar.go b/api/warden/warden/v1beta3/key.pulsar.go index afddd911e..d4253bc39 100644 --- a/api/warden/warden/v1beta3/key.pulsar.go +++ b/api/warden/warden/v1beta3/key.pulsar.go @@ -926,13 +926,15 @@ func (x *fastReflection_KeyRequest) ProtoMethods() *protoiface.Methods { } var ( - md_Key protoreflect.MessageDescriptor - fd_Key_id protoreflect.FieldDescriptor - fd_Key_space_id protoreflect.FieldDescriptor - fd_Key_keychain_id protoreflect.FieldDescriptor - fd_Key_type protoreflect.FieldDescriptor - fd_Key_public_key protoreflect.FieldDescriptor - fd_Key_rule_id protoreflect.FieldDescriptor + md_Key protoreflect.MessageDescriptor + fd_Key_id protoreflect.FieldDescriptor + fd_Key_space_id protoreflect.FieldDescriptor + fd_Key_keychain_id protoreflect.FieldDescriptor + fd_Key_type protoreflect.FieldDescriptor + fd_Key_public_key protoreflect.FieldDescriptor + fd_Key_rule_id protoreflect.FieldDescriptor + fd_Key_approve_rule_id protoreflect.FieldDescriptor + fd_Key_reject_rule_id protoreflect.FieldDescriptor ) func init() { @@ -944,6 +946,8 @@ func init() { fd_Key_type = md_Key.Fields().ByName("type") fd_Key_public_key = md_Key.Fields().ByName("public_key") fd_Key_rule_id = md_Key.Fields().ByName("rule_id") + fd_Key_approve_rule_id = md_Key.Fields().ByName("approve_rule_id") + fd_Key_reject_rule_id = md_Key.Fields().ByName("reject_rule_id") } var _ protoreflect.Message = (*fastReflection_Key)(nil) @@ -1047,6 +1051,18 @@ func (x *fastReflection_Key) Range(f func(protoreflect.FieldDescriptor, protoref return } } + if x.ApproveRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveRuleId) + if !f(fd_Key_approve_rule_id, value) { + return + } + } + if x.RejectRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectRuleId) + if !f(fd_Key_reject_rule_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -1074,6 +1090,10 @@ func (x *fastReflection_Key) Has(fd protoreflect.FieldDescriptor) bool { return len(x.PublicKey) != 0 case "warden.warden.v1beta3.Key.rule_id": return x.RuleId != uint64(0) + case "warden.warden.v1beta3.Key.approve_rule_id": + return x.ApproveRuleId != uint64(0) + case "warden.warden.v1beta3.Key.reject_rule_id": + return x.RejectRuleId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Key")) @@ -1102,6 +1122,10 @@ func (x *fastReflection_Key) Clear(fd protoreflect.FieldDescriptor) { x.PublicKey = nil case "warden.warden.v1beta3.Key.rule_id": x.RuleId = uint64(0) + case "warden.warden.v1beta3.Key.approve_rule_id": + x.ApproveRuleId = uint64(0) + case "warden.warden.v1beta3.Key.reject_rule_id": + x.RejectRuleId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Key")) @@ -1136,6 +1160,12 @@ func (x *fastReflection_Key) Get(descriptor protoreflect.FieldDescriptor) protor case "warden.warden.v1beta3.Key.rule_id": value := x.RuleId return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.Key.approve_rule_id": + value := x.ApproveRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.Key.reject_rule_id": + value := x.RejectRuleId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Key")) @@ -1168,6 +1198,10 @@ func (x *fastReflection_Key) Set(fd protoreflect.FieldDescriptor, value protoref x.PublicKey = value.Bytes() case "warden.warden.v1beta3.Key.rule_id": x.RuleId = value.Uint() + case "warden.warden.v1beta3.Key.approve_rule_id": + x.ApproveRuleId = value.Uint() + case "warden.warden.v1beta3.Key.reject_rule_id": + x.RejectRuleId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Key")) @@ -1200,6 +1234,10 @@ func (x *fastReflection_Key) Mutable(fd protoreflect.FieldDescriptor) protorefle panic(fmt.Errorf("field public_key of message warden.warden.v1beta3.Key is not mutable")) case "warden.warden.v1beta3.Key.rule_id": panic(fmt.Errorf("field rule_id of message warden.warden.v1beta3.Key is not mutable")) + case "warden.warden.v1beta3.Key.approve_rule_id": + panic(fmt.Errorf("field approve_rule_id of message warden.warden.v1beta3.Key is not mutable")) + case "warden.warden.v1beta3.Key.reject_rule_id": + panic(fmt.Errorf("field reject_rule_id of message warden.warden.v1beta3.Key is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Key")) @@ -1225,6 +1263,10 @@ func (x *fastReflection_Key) NewField(fd protoreflect.FieldDescriptor) protorefl return protoreflect.ValueOfBytes(nil) case "warden.warden.v1beta3.Key.rule_id": return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.Key.approve_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.Key.reject_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Key")) @@ -1313,6 +1355,12 @@ func (x *fastReflection_Key) ProtoMethods() *protoiface.Methods { if x.RuleId != 0 { n += 1 + runtime.Sov(uint64(x.RuleId)) } + if x.ApproveRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveRuleId)) + } + if x.RejectRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectRuleId)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1342,6 +1390,16 @@ func (x *fastReflection_Key) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.RejectRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectRuleId)) + i-- + dAtA[i] = 0x40 + } + if x.ApproveRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveRuleId)) + i-- + dAtA[i] = 0x38 + } if x.RuleId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.RuleId)) i-- @@ -1552,6 +1610,44 @@ func (x *fastReflection_Key) ProtoMethods() *protoiface.Methods { break } } + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + } + x.ApproveRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ApproveRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + } + x.RejectRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.RejectRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1903,6 +1999,14 @@ type Key struct { // data. // If this is not set, the key will use the signing Rule of the Space. RuleId uint64 `protobuf:"varint,6,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + // ID of the Rule that will need to be satisfied for using this key to sign + // data. + // If this is not set, the key will use the approve signing Rule of the Space. + ApproveRuleId uint64 `protobuf:"varint,7,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` + // ID of the Rule that will need to be satisfied for rejecting using this key to sign + // data. + // If this is not set, the key will use the reject signing Rule of the Space. + RejectRuleId uint64 `protobuf:"varint,8,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` } func (x *Key) Reset() { @@ -1967,6 +2071,20 @@ func (x *Key) GetRuleId() uint64 { return 0 } +func (x *Key) GetApproveRuleId() uint64 { + if x != nil { + return x.ApproveRuleId + } + return 0 +} + +func (x *Key) GetRejectRuleId() uint64 { + if x != nil { + return x.RejectRuleId + } + return 0 +} + var File_warden_warden_v1beta3_key_proto protoreflect.FileDescriptor var file_warden_warden_v1beta3_key_proto_rawDesc = []byte{ @@ -2006,7 +2124,7 @@ var file_warden_warden_v1beta3_key_proto_rawDesc = []byte{ 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x9a, 0xe7, 0xb0, 0x2a, 0x0c, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x14, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x22, 0xbd, 0x01, 0x0a, 0x03, 0x4b, + 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x22, 0x8b, 0x02, 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, @@ -2018,44 +2136,49 @@ var file_warden_warden_v1beta3_key_proto_rawDesc = []byte{ 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x2a, 0x99, 0x01, 0x0a, 0x10, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x22, 0x0a, 0x1e, 0x4b, 0x45, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x4b, 0x45, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, - 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, - 0x47, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x4b, 0x45, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, - 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x55, 0x4c, 0x46, 0x49, 0x4c, - 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x4b, 0x45, 0x59, 0x5f, 0x52, 0x45, 0x51, - 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x4a, 0x45, - 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x5d, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x18, 0x0a, 0x14, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x4b, - 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x53, 0x45, - 0x43, 0x50, 0x32, 0x35, 0x36, 0x4b, 0x31, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x4b, 0x45, 0x59, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x44, 0x44, 0x53, 0x41, 0x5f, 0x45, 0x44, 0x32, 0x35, - 0x35, 0x31, 0x39, 0x10, 0x02, 0x2a, 0x60, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x45, 0x54, 0x48, 0x45, 0x52, 0x45, 0x55, 0x4d, 0x10, 0x01, 0x12, 0x18, 0x0a, - 0x14, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x53, - 0x4d, 0x4f, 0x53, 0x49, 0x53, 0x10, 0x02, 0x42, 0xee, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, - 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x33, 0x42, 0x08, 0x4b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x51, 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, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x3b, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x33, 0xa2, 0x02, 0x03, 0x57, 0x57, 0x58, 0xaa, 0x02, 0x15, 0x57, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x33, 0xca, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xe2, 0x02, 0x21, 0x57, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x17, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70, + 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x52, 0x75, 0x6c, 0x65, + 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x75, 0x6c, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x2a, 0x99, 0x01, 0x0a, 0x10, 0x4b, 0x65, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x0a, + 0x1e, 0x4b, 0x45, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x4b, 0x45, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, + 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x4b, 0x45, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x55, 0x4c, 0x46, 0x49, 0x4c, 0x4c, 0x45, + 0x44, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x4b, 0x45, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, + 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, + 0x45, 0x44, 0x10, 0x03, 0x2a, 0x5d, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x18, 0x0a, 0x14, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x4b, 0x45, 0x59, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x53, 0x45, 0x43, 0x50, + 0x32, 0x35, 0x36, 0x4b, 0x31, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x4b, 0x45, 0x59, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x45, 0x44, 0x44, 0x53, 0x41, 0x5f, 0x45, 0x44, 0x32, 0x35, 0x35, 0x31, + 0x39, 0x10, 0x02, 0x2a, 0x60, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x19, 0x0a, 0x15, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x45, 0x54, 0x48, 0x45, 0x52, 0x45, 0x55, 0x4d, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x41, + 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x53, 0x4d, 0x4f, + 0x53, 0x49, 0x53, 0x10, 0x02, 0x42, 0xee, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x33, 0x42, 0x08, 0x4b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x51, 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, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x33, 0x3b, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x33, 0xa2, 0x02, 0x03, 0x57, 0x57, 0x58, 0xaa, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, + 0xca, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xe2, 0x02, 0x21, 0x57, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x57, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/warden/warden/v1beta3/space.pulsar.go b/api/warden/warden/v1beta3/space.pulsar.go index 584ef0120..d2cde51c3 100644 --- a/api/warden/warden/v1beta3/space.pulsar.go +++ b/api/warden/warden/v1beta3/space.pulsar.go @@ -59,13 +59,17 @@ func (x *_Space_3_list) IsValid() bool { } var ( - md_Space protoreflect.MessageDescriptor - fd_Space_id protoreflect.FieldDescriptor - fd_Space_creator protoreflect.FieldDescriptor - fd_Space_owners protoreflect.FieldDescriptor - fd_Space_admin_rule_id protoreflect.FieldDescriptor - fd_Space_sign_rule_id protoreflect.FieldDescriptor - fd_Space_nonce protoreflect.FieldDescriptor + md_Space protoreflect.MessageDescriptor + fd_Space_id protoreflect.FieldDescriptor + fd_Space_creator protoreflect.FieldDescriptor + fd_Space_owners protoreflect.FieldDescriptor + fd_Space_admin_rule_id protoreflect.FieldDescriptor + fd_Space_sign_rule_id protoreflect.FieldDescriptor + fd_Space_nonce protoreflect.FieldDescriptor + fd_Space_approve_admin_rule_id protoreflect.FieldDescriptor + fd_Space_reject_admin_rule_id protoreflect.FieldDescriptor + fd_Space_approve_sign_rule_id protoreflect.FieldDescriptor + fd_Space_reject_sign_rule_id protoreflect.FieldDescriptor ) func init() { @@ -77,6 +81,10 @@ func init() { fd_Space_admin_rule_id = md_Space.Fields().ByName("admin_rule_id") fd_Space_sign_rule_id = md_Space.Fields().ByName("sign_rule_id") fd_Space_nonce = md_Space.Fields().ByName("nonce") + fd_Space_approve_admin_rule_id = md_Space.Fields().ByName("approve_admin_rule_id") + fd_Space_reject_admin_rule_id = md_Space.Fields().ByName("reject_admin_rule_id") + fd_Space_approve_sign_rule_id = md_Space.Fields().ByName("approve_sign_rule_id") + fd_Space_reject_sign_rule_id = md_Space.Fields().ByName("reject_sign_rule_id") } var _ protoreflect.Message = (*fastReflection_Space)(nil) @@ -180,6 +188,30 @@ func (x *fastReflection_Space) Range(f func(protoreflect.FieldDescriptor, protor return } } + if x.ApproveAdminRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveAdminRuleId) + if !f(fd_Space_approve_admin_rule_id, value) { + return + } + } + if x.RejectAdminRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectAdminRuleId) + if !f(fd_Space_reject_admin_rule_id, value) { + return + } + } + if x.ApproveSignRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveSignRuleId) + if !f(fd_Space_approve_sign_rule_id, value) { + return + } + } + if x.RejectSignRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectSignRuleId) + if !f(fd_Space_reject_sign_rule_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -207,6 +239,14 @@ func (x *fastReflection_Space) Has(fd protoreflect.FieldDescriptor) bool { return x.SignRuleId != uint64(0) case "warden.warden.v1beta3.Space.nonce": return x.Nonce != uint64(0) + case "warden.warden.v1beta3.Space.approve_admin_rule_id": + return x.ApproveAdminRuleId != uint64(0) + case "warden.warden.v1beta3.Space.reject_admin_rule_id": + return x.RejectAdminRuleId != uint64(0) + case "warden.warden.v1beta3.Space.approve_sign_rule_id": + return x.ApproveSignRuleId != uint64(0) + case "warden.warden.v1beta3.Space.reject_sign_rule_id": + return x.RejectSignRuleId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Space")) @@ -235,6 +275,14 @@ func (x *fastReflection_Space) Clear(fd protoreflect.FieldDescriptor) { x.SignRuleId = uint64(0) case "warden.warden.v1beta3.Space.nonce": x.Nonce = uint64(0) + case "warden.warden.v1beta3.Space.approve_admin_rule_id": + x.ApproveAdminRuleId = uint64(0) + case "warden.warden.v1beta3.Space.reject_admin_rule_id": + x.RejectAdminRuleId = uint64(0) + case "warden.warden.v1beta3.Space.approve_sign_rule_id": + x.ApproveSignRuleId = uint64(0) + case "warden.warden.v1beta3.Space.reject_sign_rule_id": + x.RejectSignRuleId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Space")) @@ -272,6 +320,18 @@ func (x *fastReflection_Space) Get(descriptor protoreflect.FieldDescriptor) prot case "warden.warden.v1beta3.Space.nonce": value := x.Nonce return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.Space.approve_admin_rule_id": + value := x.ApproveAdminRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.Space.reject_admin_rule_id": + value := x.RejectAdminRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.Space.approve_sign_rule_id": + value := x.ApproveSignRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.Space.reject_sign_rule_id": + value := x.RejectSignRuleId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Space")) @@ -306,6 +366,14 @@ func (x *fastReflection_Space) Set(fd protoreflect.FieldDescriptor, value protor x.SignRuleId = value.Uint() case "warden.warden.v1beta3.Space.nonce": x.Nonce = value.Uint() + case "warden.warden.v1beta3.Space.approve_admin_rule_id": + x.ApproveAdminRuleId = value.Uint() + case "warden.warden.v1beta3.Space.reject_admin_rule_id": + x.RejectAdminRuleId = value.Uint() + case "warden.warden.v1beta3.Space.approve_sign_rule_id": + x.ApproveSignRuleId = value.Uint() + case "warden.warden.v1beta3.Space.reject_sign_rule_id": + x.RejectSignRuleId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Space")) @@ -342,6 +410,14 @@ func (x *fastReflection_Space) Mutable(fd protoreflect.FieldDescriptor) protoref panic(fmt.Errorf("field sign_rule_id of message warden.warden.v1beta3.Space is not mutable")) case "warden.warden.v1beta3.Space.nonce": panic(fmt.Errorf("field nonce of message warden.warden.v1beta3.Space is not mutable")) + case "warden.warden.v1beta3.Space.approve_admin_rule_id": + panic(fmt.Errorf("field approve_admin_rule_id of message warden.warden.v1beta3.Space is not mutable")) + case "warden.warden.v1beta3.Space.reject_admin_rule_id": + panic(fmt.Errorf("field reject_admin_rule_id of message warden.warden.v1beta3.Space is not mutable")) + case "warden.warden.v1beta3.Space.approve_sign_rule_id": + panic(fmt.Errorf("field approve_sign_rule_id of message warden.warden.v1beta3.Space is not mutable")) + case "warden.warden.v1beta3.Space.reject_sign_rule_id": + panic(fmt.Errorf("field reject_sign_rule_id of message warden.warden.v1beta3.Space is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Space")) @@ -368,6 +444,14 @@ func (x *fastReflection_Space) NewField(fd protoreflect.FieldDescriptor) protore return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.Space.nonce": return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.Space.approve_admin_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.Space.reject_admin_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.Space.approve_sign_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.Space.reject_sign_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Space")) @@ -459,6 +543,18 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { if x.Nonce != 0 { n += 1 + runtime.Sov(uint64(x.Nonce)) } + if x.ApproveAdminRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveAdminRuleId)) + } + if x.RejectAdminRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectAdminRuleId)) + } + if x.ApproveSignRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveSignRuleId)) + } + if x.RejectSignRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectSignRuleId)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -488,6 +584,26 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.RejectSignRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectSignRuleId)) + i-- + dAtA[i] = 0x58 + } + if x.ApproveSignRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveSignRuleId)) + i-- + dAtA[i] = 0x50 + } + if x.RejectAdminRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectAdminRuleId)) + i-- + dAtA[i] = 0x48 + } + if x.ApproveAdminRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveAdminRuleId)) + i-- + dAtA[i] = 0x40 + } if x.Nonce != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) i-- @@ -713,6 +829,82 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { break } } + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + } + x.ApproveAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ApproveAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + } + x.RejectAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.RejectAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + } + x.ApproveSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ApproveSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + } + x.RejectSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.RejectSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -797,6 +989,50 @@ type Space struct { SignRuleId uint64 `protobuf:"varint,6,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` // Version of the space. Every time the Space is updated, this number gets increasead by one. Nonce uint64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Optional ID of the Rule to be applied to every approve vote on *admin* operation. + // If not specified, the default Rule is used. + // + // Admin operations are: + // - warden.warden.Msg.AddSpaceOwner + // - warden.warden.Msg.RemoveSpaceOwner + // - warden.warden.Msg.UpdateSpace + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + ApproveAdminRuleId uint64 `protobuf:"varint,8,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` + // Optional ID of the Rule to be applied to every reject vote on *admin* operation. + // If not specified, the default Rule is used. + // + // Admin operations are: + // - warden.warden.Msg.AddSpaceOwner + // - warden.warden.Msg.RemoveSpaceOwner + // - warden.warden.Msg.UpdateSpace + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + RejectAdminRuleId uint64 `protobuf:"varint,9,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` + // Optional ID of the Rule to be applied to every approve vote on *sign* operation. + // If not specified, the default Rule is used. + // + // Sign operations are: + // - warden.warden.Msg.NewKeyRequest + // - warden.warden.Msg.NewSignRequest + // - warden.warden.Msg.UpdateKey + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + ApproveSignRuleId uint64 `protobuf:"varint,10,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` + // Optional ID of the Rule to be applied to every reject vote on *sign* operation. + // If not specified, the default Rule is used. + // + // Sign operations are: + // - warden.warden.Msg.NewKeyRequest + // - warden.warden.Msg.NewSignRequest + // - warden.warden.Msg.UpdateKey + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + RejectSignRuleId uint64 `protobuf:"varint,11,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` } func (x *Space) Reset() { @@ -861,13 +1097,41 @@ func (x *Space) GetNonce() uint64 { return 0 } +func (x *Space) GetApproveAdminRuleId() uint64 { + if x != nil { + return x.ApproveAdminRuleId + } + return 0 +} + +func (x *Space) GetRejectAdminRuleId() uint64 { + if x != nil { + return x.RejectAdminRuleId + } + return 0 +} + +func (x *Space) GetApproveSignRuleId() uint64 { + if x != nil { + return x.ApproveSignRuleId + } + return 0 +} + +func (x *Space) GetRejectSignRuleId() uint64 { + if x != nil { + return x.RejectSignRuleId + } + return 0 +} + var File_warden_warden_v1beta3_space_proto protoreflect.FileDescriptor var file_warden_warden_v1beta3_space_proto_rawDesc = []byte{ 0x0a, 0x21, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x22, 0xa5, 0x01, 0x0a, 0x05, 0x53, + 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x22, 0xe9, 0x02, 0x0a, 0x05, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, @@ -878,22 +1142,35 @@ var file_warden_warden_v1beta3_space_proto_rawDesc = []byte{ 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, - 0x63, 0x65, 0x42, 0xf0, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, - 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, - 0x42, 0x0a, 0x53, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, - 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, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x33, 0x3b, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x33, 0xa2, 0x02, 0x03, 0x57, 0x57, 0x58, 0xaa, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xca, - 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xe2, 0x02, 0x21, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x57, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x63, 0x65, 0x12, 0x31, 0x0a, 0x15, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x12, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, + 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, + 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, + 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x13, 0x72, 0x65, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, + 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x42, 0xf0, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x33, 0x42, 0x0a, 0x53, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x51, 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, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x3b, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x33, 0xa2, 0x02, 0x03, 0x57, 0x57, 0x58, 0xaa, 0x02, 0x15, 0x57, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x33, 0xca, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xe2, 0x02, 0x21, 0x57, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x17, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/proto/warden/warden/v1beta3/key.proto b/proto/warden/warden/v1beta3/key.proto index 8fb888adf..90bcec112 100644 --- a/proto/warden/warden/v1beta3/key.proto +++ b/proto/warden/warden/v1beta3/key.proto @@ -102,6 +102,16 @@ message Key { // data. // If this is not set, the key will use the signing Rule of the Space. uint64 rule_id = 6; + + // ID of the Rule that will need to be satisfied for using this key to sign + // data. + // If this is not set, the key will use the approve signing Rule of the Space. + uint64 approve_rule_id = 7; + + // ID of the Rule that will need to be satisfied for rejecting using this key to sign + // data. + // If this is not set, the key will use the reject signing Rule of the Space. + uint64 reject_rule_id = 8; } enum AddressType { diff --git a/proto/warden/warden/v1beta3/space.proto b/proto/warden/warden/v1beta3/space.proto index 82602d8b8..a566c3fcc 100644 --- a/proto/warden/warden/v1beta3/space.proto +++ b/proto/warden/warden/v1beta3/space.proto @@ -40,5 +40,53 @@ message Space { // Version of the space. Every time the Space is updated, this number gets increasead by one. uint64 nonce = 7; + + // Optional ID of the Rule to be applied to every approve vote on *admin* operation. + // If not specified, the default Rule is used. + // + // Admin operations are: + // - warden.warden.Msg.AddSpaceOwner + // - warden.warden.Msg.RemoveSpaceOwner + // - warden.warden.Msg.UpdateSpace + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + uint64 approve_admin_rule_id = 8; + + // Optional ID of the Rule to be applied to every reject vote on *admin* operation. + // If not specified, the default Rule is used. + // + // Admin operations are: + // - warden.warden.Msg.AddSpaceOwner + // - warden.warden.Msg.RemoveSpaceOwner + // - warden.warden.Msg.UpdateSpace + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + uint64 reject_admin_rule_id = 9; + + // Optional ID of the Rule to be applied to every approve vote on *sign* operation. + // If not specified, the default Rule is used. + // + // Sign operations are: + // - warden.warden.Msg.NewKeyRequest + // - warden.warden.Msg.NewSignRequest + // - warden.warden.Msg.UpdateKey + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + uint64 approve_sign_rule_id = 10; + + // Optional ID of the Rule to be applied to every reject vote on *sign* operation. + // If not specified, the default Rule is used. + // + // Sign operations are: + // - warden.warden.Msg.NewKeyRequest + // - warden.warden.Msg.NewSignRequest + // - warden.warden.Msg.UpdateKey + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + uint64 reject_sign_rule_id = 11; } diff --git a/warden/x/act/keeper/actions.go b/warden/x/act/keeper/actions.go index 33cb9a764..c28b1bdfe 100644 --- a/warden/x/act/keeper/actions.go +++ b/warden/x/act/keeper/actions.go @@ -140,12 +140,18 @@ func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, time } ctx = ctxWithActionCreator(sdk.UnwrapSDKContext(ctx), creator) - ctx, rule, err := k.rulesRegistry.Get(ctx, msg) + ctx, approveRule, rejectRule, err := k.rulesRegistry.Get(ctx, msg) if err != nil { return nil, errors.Wrapf(types.ErrNoRuleRegistryHandler, "%v", err) } - // todo: check that expressions from rulesRegistry (templateRegistry) match with expected + if *approveRule.Expression != expectedApproveExpression { + return nil, types.ErrApproveExpressionNotMatched + } + + if *rejectRule.Expression != expectedRejectExpression { + return nil, types.ErrRejectExpressionNotMatched + } wrappedMsg, err := codectypes.NewAnyWithValue(msg) if err != nil { @@ -153,26 +159,36 @@ func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, time } ctxWithMsg := cosmoshield.NewContext(ctx, msg) - preprocessedExpr, mentions, err := k.preprocessRule(ctxWithMsg, rule) + preprocessedApproveExpr, approveMentions, err := k.preprocessRule(ctxWithMsg, approveRule) + if err != nil { + return nil, err + } + + preprocessedRejectExpr, rejectMentions, err := k.preprocessRule(ctxWithMsg, rejectRule) if err != nil { return nil, err } + mentions := append(approveMentions, rejectMentions...) + // update the rule of this Action with the preprocessed expression - rule.Expression = preprocessedExpr + // todo: should be removed with removing Rule field in Action + approveRule.Expression = preprocessedApproveExpr // create action object timestamp := k.getBlockTime(ctx) act := &types.Action{ - Status: types.ActionStatus_ACTION_STATUS_PENDING, - Approvers: nil, - Rule: rule, - Mentions: mentions, - Msg: wrappedMsg, - Creator: creator, - TimeoutHeight: timeoutHeight, - CreatedAt: timestamp, - UpdatedAt: timestamp, + Status: types.ActionStatus_ACTION_STATUS_PENDING, + Approvers: nil, + Rule: approveRule, + Mentions: mentions, + Msg: wrappedMsg, + Creator: creator, + TimeoutHeight: timeoutHeight, + CreatedAt: timestamp, + UpdatedAt: timestamp, + ApproveExpression: *preprocessedApproveExpr, + RejectExpression: *preprocessedRejectExpr, } // add initial approver diff --git a/warden/x/act/types/v1beta1/errors.go b/warden/x/act/types/v1beta1/errors.go index c7fa0615d..febe262c2 100644 --- a/warden/x/act/types/v1beta1/errors.go +++ b/warden/x/act/types/v1beta1/errors.go @@ -8,19 +8,21 @@ import ( // x/act module sentinel errors var ( - ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") - ErrSample = sdkerrors.Register(ModuleName, 1101, "sample error") - ErrInvalidActionMsgSigner = sdkerrors.Register(ModuleName, 1102, "expected x/act account as only signer for action message") - ErrInvalidActionStatus = sdkerrors.Register(ModuleName, 1103, "invalid action status") - ErrInvalidActionStatusChange = sdkerrors.Register(ModuleName, 1104, "invalid status change") - ErrApproverExists = sdkerrors.Register(ModuleName, 1105, "approver already exists") - ErrRuleEvaluationFailed = sdkerrors.Register(ModuleName, 1106, "rule evaluation failed") - ErrRuleNotBoolean = sdkerrors.Register(ModuleName, 1107, "rule must evaluate to a boolean") - ErrInvalidRule = sdkerrors.Register(ModuleName, 1108, "rule is invalid") - ErrInvalidActionMsg = sdkerrors.Register(ModuleName, 1109, "invalid action message") - ErrNoActionMsgHandler = sdkerrors.Register(ModuleName, 1110, "no action message handler registered for message type") - ErrNoRuleRegistryHandler = sdkerrors.Register(ModuleName, 1111, "no rule registry handler registered for message type") - ErrInvalidRuleDefinition = sdkerrors.Register(ModuleName, 1112, "invalid rule definition") - ErrInvalidRevoker = sdkerrors.Register(ModuleName, 1113, "this account can't revoke this action") - ErrInvalidUpdateRuleAccount = sdkerrors.Register(ModuleName, 1114, "this account can't update this rule") + ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") + ErrSample = sdkerrors.Register(ModuleName, 1101, "sample error") + ErrInvalidActionMsgSigner = sdkerrors.Register(ModuleName, 1102, "expected x/act account as only signer for action message") + ErrInvalidActionStatus = sdkerrors.Register(ModuleName, 1103, "invalid action status") + ErrInvalidActionStatusChange = sdkerrors.Register(ModuleName, 1104, "invalid status change") + ErrApproverExists = sdkerrors.Register(ModuleName, 1105, "approver already exists") + ErrRuleEvaluationFailed = sdkerrors.Register(ModuleName, 1106, "rule evaluation failed") + ErrRuleNotBoolean = sdkerrors.Register(ModuleName, 1107, "rule must evaluate to a boolean") + ErrInvalidRule = sdkerrors.Register(ModuleName, 1108, "rule is invalid") + ErrInvalidActionMsg = sdkerrors.Register(ModuleName, 1109, "invalid action message") + ErrNoActionMsgHandler = sdkerrors.Register(ModuleName, 1110, "no action message handler registered for message type") + ErrNoRuleRegistryHandler = sdkerrors.Register(ModuleName, 1111, "no rule registry handler registered for message type") + ErrInvalidRuleDefinition = sdkerrors.Register(ModuleName, 1112, "invalid rule definition") + ErrInvalidRevoker = sdkerrors.Register(ModuleName, 1113, "this account can't revoke this action") + ErrInvalidUpdateRuleAccount = sdkerrors.Register(ModuleName, 1114, "this account can't update this rule") + ErrApproveExpressionNotMatched = sdkerrors.Register(ModuleName, 1115, "approve expression not matched with expected") + ErrRejectExpressionNotMatched = sdkerrors.Register(ModuleName, 1116, "reject expression not matched with expected") ) diff --git a/warden/x/act/types/v1beta1/registry.go b/warden/x/act/types/v1beta1/registry.go index cbead7e02..5f1c88fb9 100644 --- a/warden/x/act/types/v1beta1/registry.go +++ b/warden/x/act/types/v1beta1/registry.go @@ -8,10 +8,10 @@ import ( ) // RulesRegistry stores the mapping between Msg types and the function the -// provides the Rule for them. +// provides the approve and reject Rules for them. // -// The registered Rule is fetched only once during Action creation. (The -// provider function is not called every time the Action is re-evaluated). +// The registered Rules is fetched only once during Action creation. (The +// provider function is not called every time a new vote is added to an Action). // // The provider function receives the context.Context of the current execution. // Optionally, it can return a new context.Context that will be used further @@ -21,8 +21,8 @@ type RulesRegistry struct { p map[string]ProviderFnWithCtx } -type ProviderFnG[T sdk.Msg] func(context.Context, T) (Rule, error) -type ProviderFnWithCtxG[T sdk.Msg] func(context.Context, T) (context.Context, Rule, error) +type ProviderFnG[T sdk.Msg] func(context.Context, T) (Rule, Rule, error) +type ProviderFnWithCtxG[T sdk.Msg] func(context.Context, T) (context.Context, Rule, Rule, error) type registry interface { Register(typeUrl string, fn ProviderFn) @@ -34,7 +34,7 @@ type registry interface { func Register[T sdk.Msg](reg registry, fn ProviderFnG[T]) { var msg T typeUrl := sdk.MsgTypeURL(msg) - reg.Register(typeUrl, func(ctx context.Context, m sdk.Msg) (Rule, error) { + reg.Register(typeUrl, func(ctx context.Context, m sdk.Msg) (Rule, Rule, error) { return fn(ctx, m.(T)) }) } @@ -49,13 +49,13 @@ type registryWithCtx interface { func RegisterCtx[T sdk.Msg](reg registryWithCtx, fn ProviderFnWithCtxG[T]) { var msg T typeUrl := sdk.MsgTypeURL(msg) - reg.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Rule, error) { + reg.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Rule, Rule, error) { return fn(ctx, m.(T)) }) } -type ProviderFn func(context.Context, sdk.Msg) (Rule, error) -type ProviderFnWithCtx func(context.Context, sdk.Msg) (context.Context, Rule, error) +type ProviderFn func(context.Context, sdk.Msg) (Rule, Rule, error) +type ProviderFnWithCtx func(context.Context, sdk.Msg) (context.Context, Rule, Rule, error) // NewRulesRegistry returns an empty initialized *RulesRegistry. func NewRulesRegistry() *RulesRegistry { @@ -68,9 +68,9 @@ func NewRulesRegistry() *RulesRegistry { // ProviderMsg can be registered for each typeUrl, attempting to register // a provider for the same typeUrl twice will panic. func (p *RulesRegistry) Register(typeUrl string, fn ProviderFn) { - p.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Rule, error) { - i, err := fn(ctx, m) - return ctx, i, err + p.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Rule, Rule, error) { + approve, reject, err := fn(ctx, m) + return ctx, approve, reject, err }) } @@ -97,10 +97,10 @@ func (p *RulesRegistry) RegisterCtx(typeUrl string, fn ProviderFnWithCtx) { // // An error is returned if there are no provider functions registered for the // sdk.Msg type. -func (p *RulesRegistry) Get(ctx context.Context, msg sdk.Msg) (context.Context, Rule, error) { +func (p *RulesRegistry) Get(ctx context.Context, msg sdk.Msg) (context.Context, Rule, Rule, error) { typeUrl := sdk.MsgTypeURL(msg) if fn, found := p.p[typeUrl]; found { return fn(ctx, msg) } - return nil, Rule{}, fmt.Errorf("no rule provider registered for %s", typeUrl) + return nil, Rule{}, Rule{}, fmt.Errorf("no rule provider registered for %s", typeUrl) } diff --git a/warden/x/warden/keeper/rules.go b/warden/x/warden/keeper/rules.go index 1ebe57950..8b081be18 100644 --- a/warden/x/warden/keeper/rules.go +++ b/warden/x/warden/keeper/rules.go @@ -19,114 +19,232 @@ func (k Keeper) RegisterRules(reg *acttypes.RulesRegistry) { acttypes.RegisterCtx(reg, k.newSignRequestRule) } -func (k Keeper) addSpaceOwnerRule(ctx context.Context, msg *v1beta3.MsgAddSpaceOwner) (acttypes.Rule, error) { +func (k Keeper) addSpaceOwnerRule(ctx context.Context, msg *v1beta3.MsgAddSpaceOwner) (acttypes.Rule, acttypes.Rule, error) { space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) if err != nil { - return acttypes.Rule{}, err + return acttypes.Rule{}, acttypes.Rule{}, err } - if space.AdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.AdminRuleId) - } else { - return space.RuleAddOwner(), nil + approveRule, err := k.getApproveAddOwnerRule(ctx, space) + if err != nil { + return acttypes.Rule{}, acttypes.Rule{}, err + } + + rejectRule, err := k.getRejectAddOwnerRule(ctx, space) + if err != nil { + return acttypes.Rule{}, acttypes.Rule{}, err } + + return approveRule, rejectRule, nil } -func (k Keeper) removeSpaceOwnerRule(ctx context.Context, msg *v1beta3.MsgRemoveSpaceOwner) (acttypes.Rule, error) { +func (k Keeper) removeSpaceOwnerRule(ctx context.Context, msg *v1beta3.MsgRemoveSpaceOwner) (acttypes.Rule, acttypes.Rule, error) { space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) if err != nil { - return acttypes.Rule{}, err + return acttypes.Rule{}, acttypes.Rule{}, err } - if space.AdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.AdminRuleId) - } else { - return space.RuleRemoveOwner(), nil + approveRule, err := k.getApproveRemoveOwnerRule(ctx, space) + if err != nil { + return acttypes.Rule{}, acttypes.Rule{}, err + } + + rejectRule, err := k.getRejectRemoveOwnerRule(ctx, space) + if err != nil { + return acttypes.Rule{}, acttypes.Rule{}, err } + + return approveRule, rejectRule, nil } -func (k Keeper) newKeyRequestRule(ctx context.Context, msg *v1beta3.MsgNewKeyRequest) (acttypes.Rule, error) { +func (k Keeper) newKeyRequestRule(ctx context.Context, msg *v1beta3.MsgNewKeyRequest) (acttypes.Rule, acttypes.Rule, error) { space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) if err != nil { - return acttypes.Rule{}, err + return acttypes.Rule{}, acttypes.Rule{}, err } - if space.SignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.SignRuleId) - } else { - return space.RuleNewKeyRequest(), nil - } + approveRule, err := k.getApproveNewKeyRequestRule(ctx, space) + + rejectRule, err := k.getRejectNewKeyRequestRule(ctx, space) + + return approveRule, rejectRule, nil } -func (k Keeper) newSignRequestRule(ctx context.Context, msg *v1beta3.MsgNewSignRequest) (context.Context, acttypes.Rule, error) { +func (k Keeper) newSignRequestRule(ctx context.Context, msg *v1beta3.MsgNewSignRequest) (context.Context, acttypes.Rule, acttypes.Rule, error) { key, err := k.KeysKeeper.Get(ctx, msg.KeyId) if err != nil { - return nil, acttypes.Rule{}, err + return nil, acttypes.Rule{}, acttypes.Rule{}, err } space, err := k.SpacesKeeper.Get(ctx, key.SpaceId) if err != nil { - return nil, acttypes.Rule{}, err + return nil, acttypes.Rule{}, acttypes.Rule{}, err } - rule, err := k.getKeyRule(ctx, space, key) + approveRule, err := k.getApproveKeyRule(ctx, space, key) if err != nil { - return nil, acttypes.Rule{}, err + return nil, acttypes.Rule{}, acttypes.Rule{}, err + } + + rejectRule, err := k.getRejectKeyRule(ctx, space, key) + if err != nil { + return nil, acttypes.Rule{}, acttypes.Rule{}, err } creator := k.actKeeper.GetActionCreator(ctx) ctxWithVals, dataForSigning, err := k.executeAnalyzers(ctx, creator, msg.Analyzers, msg.Input) if err != nil { - return nil, acttypes.Rule{}, errors.Wrapf(v1beta3.ErrAnalyzer, "%v", err) + return nil, acttypes.Rule{}, acttypes.Rule{}, errors.Wrapf(v1beta3.ErrAnalyzer, "%v", err) } if dataForSigning != nil { msg.Input = dataForSigning } - return ctxWithVals, rule, nil + return ctxWithVals, approveRule, rejectRule, nil } -func (k Keeper) updateKeyRule(ctx context.Context, msg *v1beta3.MsgUpdateKey) (acttypes.Rule, error) { +func (k Keeper) updateKeyRule(ctx context.Context, msg *v1beta3.MsgUpdateKey) (acttypes.Rule, acttypes.Rule, error) { key, err := k.KeysKeeper.Get(ctx, msg.KeyId) if err != nil { - return acttypes.Rule{}, err + return acttypes.Rule{}, acttypes.Rule{}, err } space, err := k.SpacesKeeper.Get(ctx, key.SpaceId) if err != nil { - return acttypes.Rule{}, err + return acttypes.Rule{}, acttypes.Rule{}, err } - rule, err := k.getKeyRule(ctx, space, key) + approveRule, err := k.getApproveUpdateKeyRule(ctx, space, key) if err != nil { - return acttypes.Rule{}, err + return acttypes.Rule{}, acttypes.Rule{}, err } - return rule, nil + rejectRule, err := k.getRejectUpdateKeyRule(ctx, space, key) + if err != nil { + return acttypes.Rule{}, acttypes.Rule{}, err + } + + return approveRule, rejectRule, nil } -func (k Keeper) updateSpaceRule(ctx context.Context, msg *v1beta3.MsgUpdateSpace) (acttypes.Rule, error) { +func (k Keeper) updateSpaceRule(ctx context.Context, msg *v1beta3.MsgUpdateSpace) (acttypes.Rule, acttypes.Rule, error) { space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) if err != nil { - return acttypes.Rule{}, err + return acttypes.Rule{}, acttypes.Rule{}, err + } + + approveRule, err := k.getApproveUpdateSpaceRule(ctx, space) + if err != nil { + return acttypes.Rule{}, acttypes.Rule{}, err + } + rejectRule, err := k.getRejectUpdateSpaceRule(ctx, space) + if err != nil { + return acttypes.Rule{}, acttypes.Rule{}, err + } + + return approveRule, rejectRule, nil +} + +func (k Keeper) getApproveKeyRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { + if key.ApproveRuleId > 0 { + return k.actKeeper.GetRule(ctx, key.ApproveRuleId) + } else if space.ApproveSignRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.ApproveSignRuleId) + } else { + return space.RuleApproveNewSignRequest(), nil + } +} + +func (k Keeper) getRejectKeyRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { + if key.RejectRuleId > 0 { + return k.actKeeper.GetRule(ctx, key.RejectRuleId) + } else if space.RejectSignRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.RejectSignRuleId) + } else { + return space.RuleRejectNewSignRequest(), nil + } +} + +func (k Keeper) getApproveAddOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { + if space.ApproveAdminRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.ApproveAdminRuleId) + } else { + return space.RuleApproveAddOwner(), nil + } +} + +func (k Keeper) getRejectAddOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { + if space.RejectAdminRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.RejectAdminRuleId) + } else { + return space.RuleRejectAddOwner(), nil } +} + +func (k Keeper) getApproveRemoveOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { + if space.ApproveAdminRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.ApproveAdminRuleId) + } else { + return space.RuleApproveRemoveOwner(), nil + } +} + +func (k Keeper) getRejectRemoveOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { + if space.RejectAdminRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.RejectAdminRuleId) + } else { + return space.RuleRejectRemoveOwner(), nil + } +} - if space.AdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.AdminRuleId) +func (k Keeper) getApproveNewKeyRequestRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { + if space.ApproveSignRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.ApproveSignRuleId) } else { - return space.RuleUpdateSpace(), nil + return space.RuleApproveNewKeyRequest(), nil } } -func (k Keeper) getKeyRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { - if key.RuleId > 0 { - return k.actKeeper.GetRule(ctx, key.RuleId) - } else if space.SignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.SignRuleId) +func (k Keeper) getRejectNewKeyRequestRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { + if space.RejectSignRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.RejectSignRuleId) + } else { + return space.RuleRejectNewKeyRequest(), nil + } +} + +func (k Keeper) getApproveUpdateKeyRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { + if space.ApproveSignRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.ApproveSignRuleId) + } else { + return space.RuleApproveUpdateKey(), nil + } +} + +func (k Keeper) getRejectUpdateKeyRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { + if space.RejectSignRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.RejectSignRuleId) + } else { + return space.RuleRejectUpdateKey(), nil + } +} + +func (k Keeper) getApproveUpdateSpaceRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { + if space.ApproveAdminRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.ApproveAdminRuleId) + } else { + return space.RuleApproveUpdateSpace(), nil + } + +} + +func (k Keeper) getRejectUpdateSpaceRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { + if space.RejectAdminRuleId > 0 { + return k.actKeeper.GetRule(ctx, space.RejectAdminRuleId) } else { - return space.RuleNewSignRequest(), nil + return space.RuleRejectUpdateSpace(), nil } } diff --git a/warden/x/warden/types/v1beta3/key.pb.go b/warden/x/warden/types/v1beta3/key.pb.go index be9ad9f00..a3b18a9fe 100644 --- a/warden/x/warden/types/v1beta3/key.pb.go +++ b/warden/x/warden/types/v1beta3/key.pb.go @@ -271,6 +271,14 @@ type Key struct { // data. // If this is not set, the key will use the signing Rule of the Space. RuleId uint64 `protobuf:"varint,6,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + // ID of the Rule that will need to be satisfied for using this key to sign + // data. + // If this is not set, the key will use the approve signing Rule of the Space. + ApproveRuleId uint64 `protobuf:"varint,7,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` + // ID of the Rule that will need to be satisfied for rejecting using this key to sign + // data. + // If this is not set, the key will use the reject signing Rule of the Space. + RejectRuleId uint64 `protobuf:"varint,8,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` } func (m *Key) Reset() { *m = Key{} } @@ -348,6 +356,20 @@ func (m *Key) GetRuleId() uint64 { return 0 } +func (m *Key) GetApproveRuleId() uint64 { + if m != nil { + return m.ApproveRuleId + } + return 0 +} + +func (m *Key) GetRejectRuleId() uint64 { + if m != nil { + return m.RejectRuleId + } + return 0 +} + func init() { proto.RegisterEnum("warden.warden.v1beta3.KeyRequestStatus", KeyRequestStatus_name, KeyRequestStatus_value) proto.RegisterEnum("warden.warden.v1beta3.KeyType", KeyType_name, KeyType_value) @@ -359,51 +381,53 @@ func init() { func init() { proto.RegisterFile("warden/warden/v1beta3/key.proto", fileDescriptor_ea87ed804a1dfb88) } var fileDescriptor_ea87ed804a1dfb88 = []byte{ - // 700 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x4a, - 0x14, 0x8e, 0x93, 0xdc, 0xa4, 0x3d, 0xed, 0xad, 0x7c, 0x47, 0x6d, 0xaf, 0x9b, 0xdb, 0xeb, 0x44, - 0x65, 0x41, 0x14, 0xa9, 0xb6, 0x92, 0xaa, 0x48, 0x5d, 0xa1, 0x34, 0x9e, 0x14, 0x93, 0xfe, 0x04, - 0x3b, 0x59, 0x14, 0x09, 0x19, 0xc7, 0x1e, 0x52, 0x93, 0x34, 0x0e, 0x1e, 0x07, 0xf0, 0x5b, 0xb0, - 0x43, 0xf0, 0x04, 0x88, 0x55, 0x5f, 0x80, 0x2d, 0xea, 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c, 0xde, 0xe3, 0xb9, 0xb0, - 0xb7, 0x6b, 0xd0, 0x81, 0xbe, 0x77, 0xa0, 0xab, 0x3a, 0x9f, 0xdc, 0x36, 0x4f, 0xcf, 0x45, 0xee, - 0xec, 0x5c, 0xe4, 0xbe, 0x9f, 0x8b, 0xdc, 0x9b, 0x0b, 0x31, 0x71, 0x76, 0x21, 0x26, 0xbe, 0x5c, - 0x88, 0x89, 0xc7, 0x3b, 0x13, 0x97, 0x31, 0xd2, 0x75, 0x9d, 0x3d, 0x0c, 0x96, 0xdb, 0x8f, 0xfd, - 0x1b, 0xae, 0xfc, 0x7a, 0x6c, 0xb0, 0x9b, 0x3a, 0x7e, 0xb2, 0x3a, 0x19, 0xc6, 0xdb, 0xf8, 0x11, - 0x00, 0x00, 0xff, 0xff, 0x0a, 0xc1, 0xa9, 0xc4, 0xd2, 0x04, 0x00, 0x00, + // 729 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0x8e, 0x9d, 0x90, 0xb4, 0xdb, 0x1f, 0xcc, 0xaa, 0x2d, 0x6e, 0x28, 0x4e, 0x54, 0x10, 0x44, + 0x91, 0x6a, 0x2b, 0xa9, 0x8a, 0xd4, 0x13, 0x4a, 0xe3, 0x4d, 0x31, 0xe9, 0x4f, 0xb0, 0x93, 0x43, + 0x91, 0x90, 0x71, 0xec, 0x25, 0x35, 0x49, 0xe3, 0xe0, 0x75, 0x0a, 0x7e, 0x06, 0x2e, 0xdc, 0x10, + 0x3c, 0x01, 0xe2, 0xd4, 0xa7, 0x40, 0x3d, 0xf6, 0xc8, 0x09, 0x50, 0x7b, 0xe8, 0x6b, 0x20, 0xaf, + 0xed, 0xd2, 0xb4, 0x01, 0x71, 0xf1, 0xce, 0xcc, 0xf7, 0x8d, 0x77, 0x66, 0xbe, 0xd1, 0x82, 0xdc, + 0x5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0xbc, 0x4b, 0x93, 0x4d, 0x8f, + 0x4c, 0xf6, 0x01, 0xb8, 0x69, 0x0c, 0x06, 0xae, 0x73, 0x88, 0xf5, 0x98, 0x90, 0xa1, 0x84, 0x99, + 0x28, 0xac, 0x86, 0xbc, 0xfb, 0x60, 0x36, 0xd6, 0x6f, 0x44, 0xa1, 0x58, 0x40, 0xca, 0x2a, 0x7e, + 0x62, 0x00, 0x77, 0x75, 0x05, 0xe0, 0x32, 0x10, 0xea, 0x68, 0x4f, 0x57, 0xd1, 0xb3, 0x16, 0xd2, + 0x9a, 0xba, 0xd6, 0xac, 0x34, 0x5b, 0x9a, 0xde, 0xda, 0xd1, 0x1a, 0xa8, 0xaa, 0xd4, 0x14, 0x24, + 0x73, 0x09, 0x28, 0x80, 0xec, 0x18, 0x4e, 0x03, 0xed, 0xc8, 0xca, 0xce, 0x26, 0xc7, 0xc0, 0x3c, + 0x58, 0x1a, 0x83, 0xd7, 0x5a, 0x5b, 0x35, 0x65, 0x6b, 0x0b, 0xc9, 0x1c, 0x0b, 0x73, 0xe0, 0xce, + 0x18, 0x86, 0x8a, 0x9e, 0xa2, 0x6a, 0x13, 0xc9, 0x5c, 0xb2, 0xf8, 0x02, 0x64, 0xa2, 0x91, 0x41, + 0x1e, 0xcc, 0x05, 0xdc, 0xe6, 0x5e, 0x03, 0x5d, 0xa9, 0x63, 0x09, 0xf0, 0x17, 0x08, 0xaa, 0xca, + 0x5a, 0x45, 0xd7, 0x50, 0xb5, 0x51, 0x5e, 0x7b, 0x54, 0x2f, 0x71, 0x0c, 0xcc, 0x82, 0x85, 0x3f, + 0xa8, 0x1c, 0xa0, 0x48, 0x2e, 0xaf, 0xad, 0x95, 0xd6, 0x39, 0xb6, 0xf8, 0x12, 0x4c, 0x55, 0x2c, + 0xcb, 0xc5, 0x84, 0xd0, 0x2b, 0x96, 0x00, 0x5f, 0x91, 0x65, 0x15, 0x69, 0xda, 0xb8, 0x6b, 0x16, + 0xc1, 0xfc, 0x08, 0x8a, 0x9a, 0x4f, 0x90, 0x8a, 0x5a, 0xdb, 0x1c, 0x13, 0xd4, 0x36, 0x02, 0xed, + 0x6a, 0xdb, 0xbb, 0x9a, 0xa2, 0x71, 0xec, 0x86, 0x71, 0x7c, 0x2a, 0x30, 0x27, 0xa7, 0x02, 0xf3, + 0xeb, 0x54, 0x60, 0x3e, 0x9c, 0x09, 0x89, 0x93, 0x33, 0x21, 0xf1, 0xfd, 0x4c, 0x48, 0x3c, 0xdf, + 0xbc, 0xb4, 0xda, 0xe1, 0x96, 0xac, 0xd0, 0x67, 0xc6, 0x74, 0x7a, 0x91, 0x7f, 0xc5, 0x95, 0xde, + 0xc5, 0x06, 0xdd, 0xfb, 0xf8, 0x01, 0x6c, 0xa7, 0x29, 0x6f, 0xf5, 0x77, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x1b, 0xbb, 0x55, 0xec, 0x20, 0x05, 0x00, 0x00, } func (m *KeyRequest) Marshal() (dAtA []byte, err error) { @@ -507,6 +531,16 @@ func (m *Key) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.RejectRuleId != 0 { + i = encodeVarintKey(dAtA, i, uint64(m.RejectRuleId)) + i-- + dAtA[i] = 0x40 + } + if m.ApproveRuleId != 0 { + i = encodeVarintKey(dAtA, i, uint64(m.ApproveRuleId)) + i-- + dAtA[i] = 0x38 + } if m.RuleId != 0 { i = encodeVarintKey(dAtA, i, uint64(m.RuleId)) i-- @@ -619,6 +653,12 @@ func (m *Key) Size() (n int) { if m.RuleId != 0 { n += 1 + sovKey(uint64(m.RuleId)) } + if m.ApproveRuleId != 0 { + n += 1 + sovKey(uint64(m.ApproveRuleId)) + } + if m.RejectRuleId != 0 { + n += 1 + sovKey(uint64(m.RejectRuleId)) + } return n } @@ -1048,6 +1088,44 @@ func (m *Key) Unmarshal(dAtA []byte) error { break } } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + } + m.ApproveRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKey + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApproveRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + } + m.RejectRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKey + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RejectRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipKey(dAtA[iNdEx:]) diff --git a/warden/x/warden/types/v1beta3/space.go b/warden/x/warden/types/v1beta3/space.go index c1bf9e6b9..6afc80145 100644 --- a/warden/x/warden/types/v1beta3/space.go +++ b/warden/x/warden/types/v1beta3/space.go @@ -2,6 +2,7 @@ package v1beta3 import ( "fmt" + "github.com/warden-protocol/wardenprotocol/shield" acttypes "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" ) @@ -60,31 +61,51 @@ func (w *Space) IncrementNonce(nonce uint64) (uint64, error) { return w.Nonce, nil } -func (w *Space) RuleAddOwner() acttypes.Rule { +func (w *Space) RuleApproveAddOwner() acttypes.Rule { + return w.AnyOwnerRule() +} + +func (w *Space) RuleRejectAddOwner() acttypes.Rule { + return w.AnyOwnerRule() +} + +func (w *Space) RuleApproveRemoveOwner() acttypes.Rule { + return w.AnyOwnerRule() +} + +func (w *Space) RuleRejectRemoveOwner() acttypes.Rule { + return w.AnyOwnerRule() +} + +func (w *Space) RuleApproveNewKeyRequest() acttypes.Rule { + return w.AnyOwnerRule() +} + +func (w *Space) RuleRejectNewKeyRequest() acttypes.Rule { return w.AnyOwnerRule() } -func (w *Space) RuleRemoveOwner() acttypes.Rule { +func (w *Space) RuleApproveUpdateKey() acttypes.Rule { return w.AnyOwnerRule() } -func (w *Space) RuleAppendChild() acttypes.Rule { +func (w *Space) RuleRejectUpdateKey() acttypes.Rule { return w.AnyOwnerRule() } -func (w *Space) RuleNewKeyRequest() acttypes.Rule { +func (w *Space) RuleApproveNewSignRequest() acttypes.Rule { return w.AnyOwnerRule() } -func (w *Space) RuleUpdateKey() acttypes.Rule { +func (w *Space) RuleRejectNewSignRequest() acttypes.Rule { return w.AnyOwnerRule() } -func (w *Space) RuleNewSignRequest() acttypes.Rule { +func (w *Space) RuleApproveUpdateSpace() acttypes.Rule { return w.AnyOwnerRule() } -func (w *Space) RuleUpdateSpace() acttypes.Rule { +func (w *Space) RuleRejectUpdateSpace() acttypes.Rule { return w.AnyOwnerRule() } diff --git a/warden/x/warden/types/v1beta3/space.pb.go b/warden/x/warden/types/v1beta3/space.pb.go index e4fd62136..b59da6143 100644 --- a/warden/x/warden/types/v1beta3/space.pb.go +++ b/warden/x/warden/types/v1beta3/space.pb.go @@ -54,6 +54,50 @@ type Space struct { SignRuleId uint64 `protobuf:"varint,6,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` // Version of the space. Every time the Space is updated, this number gets increasead by one. Nonce uint64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Optional ID of the Rule to be applied to every approve vote on *admin* operation. + // If not specified, the default Rule is used. + // + // Admin operations are: + // - warden.warden.Msg.AddSpaceOwner + // - warden.warden.Msg.RemoveSpaceOwner + // - warden.warden.Msg.UpdateSpace + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + ApproveAdminRuleId uint64 `protobuf:"varint,8,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` + // Optional ID of the Rule to be applied to every reject vote on *admin* operation. + // If not specified, the default Rule is used. + // + // Admin operations are: + // - warden.warden.Msg.AddSpaceOwner + // - warden.warden.Msg.RemoveSpaceOwner + // - warden.warden.Msg.UpdateSpace + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + RejectAdminRuleId uint64 `protobuf:"varint,9,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` + // Optional ID of the Rule to be applied to every approve vote on *sign* operation. + // If not specified, the default Rule is used. + // + // Sign operations are: + // - warden.warden.Msg.NewKeyRequest + // - warden.warden.Msg.NewSignRequest + // - warden.warden.Msg.UpdateKey + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + ApproveSignRuleId uint64 `protobuf:"varint,10,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` + // Optional ID of the Rule to be applied to every reject vote on *sign* operation. + // If not specified, the default Rule is used. + // + // Sign operations are: + // - warden.warden.Msg.NewKeyRequest + // - warden.warden.Msg.NewSignRequest + // - warden.warden.Msg.UpdateKey + // + // The default Rule is to allow any operation when at least one of its + // owner approves it. + RejectSignRuleId uint64 `protobuf:"varint,11,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` } func (m *Space) Reset() { *m = Space{} } @@ -131,6 +175,34 @@ func (m *Space) GetNonce() uint64 { return 0 } +func (m *Space) GetApproveAdminRuleId() uint64 { + if m != nil { + return m.ApproveAdminRuleId + } + return 0 +} + +func (m *Space) GetRejectAdminRuleId() uint64 { + if m != nil { + return m.RejectAdminRuleId + } + return 0 +} + +func (m *Space) GetApproveSignRuleId() uint64 { + if m != nil { + return m.ApproveSignRuleId + } + return 0 +} + +func (m *Space) GetRejectSignRuleId() uint64 { + if m != nil { + return m.RejectSignRuleId + } + return 0 +} + func init() { proto.RegisterType((*Space)(nil), "warden.warden.v1beta3.Space") } @@ -138,23 +210,27 @@ func init() { func init() { proto.RegisterFile("warden/warden/v1beta3/space.proto", fileDescriptor_da76bdfe3c1772b2) } var fileDescriptor_da76bdfe3c1772b2 = []byte{ - // 253 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x4f, 0x2c, 0x4a, - 0x49, 0xcd, 0xd3, 0x87, 0x52, 0x65, 0x86, 0x49, 0xa9, 0x25, 0x89, 0xc6, 0xfa, 0xc5, 0x05, 0x89, - 0xc9, 0xa9, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xa2, 0x10, 0x39, 0x3d, 0x28, 0x05, 0x55, - 0xa2, 0xb4, 0x94, 0x91, 0x8b, 0x35, 0x18, 0xa4, 0x4c, 0x88, 0x8f, 0x8b, 0x29, 0x33, 0x45, 0x82, - 0x51, 0x81, 0x51, 0x83, 0x25, 0x88, 0x29, 0x33, 0x45, 0x48, 0x82, 0x8b, 0x3d, 0xb9, 0x28, 0x35, - 0xb1, 0x24, 0xbf, 0x48, 0x82, 0x49, 0x81, 0x51, 0x83, 0x33, 0x08, 0xc6, 0x15, 0x12, 0xe3, 0x62, - 0xcb, 0x2f, 0xcf, 0x4b, 0x2d, 0x2a, 0x96, 0x60, 0x56, 0x60, 0xd6, 0xe0, 0x0c, 0x82, 0xf2, 0x84, - 0x94, 0xb8, 0x78, 0x13, 0x53, 0x72, 0x33, 0xf3, 0xe2, 0x8b, 0x4a, 0x73, 0x52, 0xe3, 0x33, 0x53, - 0x24, 0x58, 0xc1, 0x86, 0x71, 0x83, 0x05, 0x83, 0x4a, 0x73, 0x52, 0x3d, 0x53, 0x84, 0x14, 0xb8, - 0x78, 0x8a, 0x33, 0xd3, 0x11, 0x4a, 0xd8, 0xc0, 0x4a, 0xb8, 0x40, 0x62, 0x50, 0x15, 0x22, 0x5c, - 0xac, 0x79, 0xf9, 0x79, 0xc9, 0xa9, 0x12, 0xec, 0x60, 0x29, 0x08, 0xc7, 0x29, 0xf1, 0xc4, 0x23, - 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, - 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xdc, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, - 0x92, 0xf3, 0x73, 0xa1, 0xfe, 0xd7, 0x05, 0xfb, 0x38, 0x39, 0x3f, 0x07, 0xca, 0x47, 0xe3, 0xea, - 0x57, 0xc0, 0x18, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0xb0, 0xd0, 0x4a, 0x62, 0x03, 0xab, 0x33, 0x06, - 0x04, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x99, 0x3e, 0x51, 0x4d, 0x01, 0x00, 0x00, + // 314 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xc1, 0x4e, 0x02, 0x31, + 0x10, 0x86, 0xd9, 0x45, 0x40, 0x06, 0x35, 0x5a, 0xc1, 0xf4, 0xd4, 0xac, 0x9c, 0xb8, 0xc0, 0x86, + 0xf0, 0x04, 0x7a, 0x31, 0x5e, 0x97, 0x9b, 0x17, 0x52, 0xda, 0x09, 0xd6, 0xc0, 0x76, 0xd3, 0x2d, + 0xa0, 0x6f, 0xe1, 0x63, 0x79, 0xe4, 0xe8, 0xd1, 0xc0, 0xc9, 0xb7, 0x30, 0x74, 0xbb, 0x41, 0x38, + 0x75, 0xff, 0xf9, 0xbf, 0x7f, 0xff, 0x49, 0x06, 0xee, 0xd7, 0xdc, 0x48, 0x4c, 0x63, 0xff, 0xac, + 0x86, 0x53, 0xb4, 0x7c, 0x14, 0xe7, 0x19, 0x17, 0x38, 0xc8, 0x8c, 0xb6, 0x9a, 0x74, 0x0a, 0x6f, + 0xe0, 0x1f, 0x8f, 0x74, 0x7f, 0x43, 0xa8, 0x8d, 0xf7, 0x18, 0xb9, 0x82, 0x50, 0x49, 0x1a, 0x44, + 0x41, 0xef, 0x2c, 0x09, 0x95, 0x24, 0x14, 0x1a, 0xc2, 0x20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00, + 0xff, 0xff, 0x34, 0xbf, 0xba, 0x4a, 0x11, 0x02, 0x00, 0x00, } func (m *Space) Marshal() (dAtA []byte, err error) { @@ -177,6 +253,26 @@ func (m *Space) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.RejectSignRuleId != 0 { + i = encodeVarintSpace(dAtA, i, uint64(m.RejectSignRuleId)) + i-- + dAtA[i] = 0x58 + } + if m.ApproveSignRuleId != 0 { + i = encodeVarintSpace(dAtA, i, uint64(m.ApproveSignRuleId)) + i-- + dAtA[i] = 0x50 + } + if m.RejectAdminRuleId != 0 { + i = encodeVarintSpace(dAtA, i, uint64(m.RejectAdminRuleId)) + i-- + dAtA[i] = 0x48 + } + if m.ApproveAdminRuleId != 0 { + i = encodeVarintSpace(dAtA, i, uint64(m.ApproveAdminRuleId)) + i-- + dAtA[i] = 0x40 + } if m.Nonce != 0 { i = encodeVarintSpace(dAtA, i, uint64(m.Nonce)) i-- @@ -255,6 +351,18 @@ func (m *Space) Size() (n int) { if m.Nonce != 0 { n += 1 + sovSpace(uint64(m.Nonce)) } + if m.ApproveAdminRuleId != 0 { + n += 1 + sovSpace(uint64(m.ApproveAdminRuleId)) + } + if m.RejectAdminRuleId != 0 { + n += 1 + sovSpace(uint64(m.RejectAdminRuleId)) + } + if m.ApproveSignRuleId != 0 { + n += 1 + sovSpace(uint64(m.ApproveSignRuleId)) + } + if m.RejectSignRuleId != 0 { + n += 1 + sovSpace(uint64(m.RejectSignRuleId)) + } return n } @@ -433,6 +541,82 @@ func (m *Space) Unmarshal(dAtA []byte) error { break } } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + } + m.ApproveAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpace + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApproveAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + } + m.RejectAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpace + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RejectAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + } + m.ApproveSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpace + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApproveSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + } + m.RejectSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpace + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RejectSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipSpace(dAtA[iNdEx:]) From 5d995683ec44bc76540b20211408a7acf08e9e5d Mon Sep 17 00:00:00 2001 From: Maks Nabokov Date: Mon, 9 Sep 2024 15:52:06 +0300 Subject: [PATCH 02/18] add expected expression into cli flags --- api/warden/act/v1beta1/tx.pulsar.go | 429 +++++++++---------- proto/warden/act/v1beta1/tx.proto | 8 +- warden/x/act/client/actions.go | 22 +- warden/x/act/keeper/actions.go | 6 +- warden/x/act/keeper/msg_server_new_action.go | 14 +- warden/x/act/types/v1beta1/tx.pb.go | 201 +++++---- 6 files changed, 333 insertions(+), 347 deletions(-) diff --git a/api/warden/act/v1beta1/tx.pulsar.go b/api/warden/act/v1beta1/tx.pulsar.go index 937bbb162..e2823c247 100644 --- a/api/warden/act/v1beta1/tx.pulsar.go +++ b/api/warden/act/v1beta1/tx.pulsar.go @@ -8,7 +8,7 @@ import ( _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" - ast "github.com/warden-protocol/wardenprotocol/api/shield/ast" + _ "github.com/warden-protocol/wardenprotocol/api/shield/ast" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -975,14 +975,14 @@ func (x *fastReflection_MsgNewAction) Range(f func(protoreflect.FieldDescriptor, return } } - if x.ExpectedApproveExpression != nil { - value := protoreflect.ValueOfMessage(x.ExpectedApproveExpression.ProtoReflect()) + if x.ExpectedApproveExpression != "" { + value := protoreflect.ValueOfString(x.ExpectedApproveExpression) if !f(fd_MsgNewAction_expected_approve_expression, value) { return } } - if x.ExpectedRejectExpression != nil { - value := protoreflect.ValueOfMessage(x.ExpectedRejectExpression.ProtoReflect()) + if x.ExpectedRejectExpression != "" { + value := protoreflect.ValueOfString(x.ExpectedRejectExpression) if !f(fd_MsgNewAction_expected_reject_expression, value) { return } @@ -1009,9 +1009,9 @@ func (x *fastReflection_MsgNewAction) Has(fd protoreflect.FieldDescriptor) bool case "warden.act.v1beta1.MsgNewAction.action_timeout_height": return x.ActionTimeoutHeight != uint64(0) case "warden.act.v1beta1.MsgNewAction.expected_approve_expression": - return x.ExpectedApproveExpression != nil + return x.ExpectedApproveExpression != "" case "warden.act.v1beta1.MsgNewAction.expected_reject_expression": - return x.ExpectedRejectExpression != nil + return x.ExpectedRejectExpression != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewAction")) @@ -1035,9 +1035,9 @@ func (x *fastReflection_MsgNewAction) Clear(fd protoreflect.FieldDescriptor) { case "warden.act.v1beta1.MsgNewAction.action_timeout_height": x.ActionTimeoutHeight = uint64(0) case "warden.act.v1beta1.MsgNewAction.expected_approve_expression": - x.ExpectedApproveExpression = nil + x.ExpectedApproveExpression = "" case "warden.act.v1beta1.MsgNewAction.expected_reject_expression": - x.ExpectedRejectExpression = nil + x.ExpectedRejectExpression = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewAction")) @@ -1065,10 +1065,10 @@ func (x *fastReflection_MsgNewAction) Get(descriptor protoreflect.FieldDescripto return protoreflect.ValueOfUint64(value) case "warden.act.v1beta1.MsgNewAction.expected_approve_expression": value := x.ExpectedApproveExpression - return protoreflect.ValueOfMessage(value.ProtoReflect()) + return protoreflect.ValueOfString(value) case "warden.act.v1beta1.MsgNewAction.expected_reject_expression": value := x.ExpectedRejectExpression - return protoreflect.ValueOfMessage(value.ProtoReflect()) + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewAction")) @@ -1096,9 +1096,9 @@ func (x *fastReflection_MsgNewAction) Set(fd protoreflect.FieldDescriptor, value case "warden.act.v1beta1.MsgNewAction.action_timeout_height": x.ActionTimeoutHeight = value.Uint() case "warden.act.v1beta1.MsgNewAction.expected_approve_expression": - x.ExpectedApproveExpression = value.Message().Interface().(*ast.Expression) + x.ExpectedApproveExpression = value.Interface().(string) case "warden.act.v1beta1.MsgNewAction.expected_reject_expression": - x.ExpectedRejectExpression = value.Message().Interface().(*ast.Expression) + x.ExpectedRejectExpression = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewAction")) @@ -1124,20 +1124,14 @@ func (x *fastReflection_MsgNewAction) Mutable(fd protoreflect.FieldDescriptor) p x.Message = new(anypb.Any) } return protoreflect.ValueOfMessage(x.Message.ProtoReflect()) - case "warden.act.v1beta1.MsgNewAction.expected_approve_expression": - if x.ExpectedApproveExpression == nil { - x.ExpectedApproveExpression = new(ast.Expression) - } - return protoreflect.ValueOfMessage(x.ExpectedApproveExpression.ProtoReflect()) - case "warden.act.v1beta1.MsgNewAction.expected_reject_expression": - if x.ExpectedRejectExpression == nil { - x.ExpectedRejectExpression = new(ast.Expression) - } - return protoreflect.ValueOfMessage(x.ExpectedRejectExpression.ProtoReflect()) case "warden.act.v1beta1.MsgNewAction.creator": panic(fmt.Errorf("field creator of message warden.act.v1beta1.MsgNewAction is not mutable")) case "warden.act.v1beta1.MsgNewAction.action_timeout_height": panic(fmt.Errorf("field action_timeout_height of message warden.act.v1beta1.MsgNewAction is not mutable")) + case "warden.act.v1beta1.MsgNewAction.expected_approve_expression": + panic(fmt.Errorf("field expected_approve_expression of message warden.act.v1beta1.MsgNewAction is not mutable")) + case "warden.act.v1beta1.MsgNewAction.expected_reject_expression": + panic(fmt.Errorf("field expected_reject_expression of message warden.act.v1beta1.MsgNewAction is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewAction")) @@ -1159,11 +1153,9 @@ func (x *fastReflection_MsgNewAction) NewField(fd protoreflect.FieldDescriptor) case "warden.act.v1beta1.MsgNewAction.action_timeout_height": return protoreflect.ValueOfUint64(uint64(0)) case "warden.act.v1beta1.MsgNewAction.expected_approve_expression": - m := new(ast.Expression) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + return protoreflect.ValueOfString("") case "warden.act.v1beta1.MsgNewAction.expected_reject_expression": - m := new(ast.Expression) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewAction")) @@ -1244,12 +1236,12 @@ func (x *fastReflection_MsgNewAction) ProtoMethods() *protoiface.Methods { if x.ActionTimeoutHeight != 0 { n += 1 + runtime.Sov(uint64(x.ActionTimeoutHeight)) } - if x.ExpectedApproveExpression != nil { - l = options.Size(x.ExpectedApproveExpression) + l = len(x.ExpectedApproveExpression) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.ExpectedRejectExpression != nil { - l = options.Size(x.ExpectedRejectExpression) + l = len(x.ExpectedRejectExpression) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -1281,31 +1273,17 @@ func (x *fastReflection_MsgNewAction) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.ExpectedRejectExpression != nil { - encoded, err := options.Marshal(x.ExpectedRejectExpression) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.ExpectedRejectExpression) > 0 { + i -= len(x.ExpectedRejectExpression) + copy(dAtA[i:], x.ExpectedRejectExpression) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ExpectedRejectExpression))) i-- dAtA[i] = 0x2a } - if x.ExpectedApproveExpression != nil { - encoded, err := options.Marshal(x.ExpectedApproveExpression) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.ExpectedApproveExpression) > 0 { + i -= len(x.ExpectedApproveExpression) + copy(dAtA[i:], x.ExpectedApproveExpression) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ExpectedApproveExpression))) i-- dAtA[i] = 0x22 } @@ -1475,7 +1453,7 @@ func (x *fastReflection_MsgNewAction) ProtoMethods() *protoiface.Methods { if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectedApproveExpression", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1485,33 +1463,29 @@ func (x *fastReflection_MsgNewAction) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.ExpectedApproveExpression == nil { - x.ExpectedApproveExpression = &ast.Expression{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedApproveExpression); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.ExpectedApproveExpression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectedRejectExpression", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1521,27 +1495,23 @@ func (x *fastReflection_MsgNewAction) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.ExpectedRejectExpression == nil { - x.ExpectedRejectExpression = &ast.Expression{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedRejectExpression); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.ExpectedRejectExpression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7520,10 +7490,10 @@ type MsgNewAction struct { Message *anypb.Any `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // action_timeout_height is the block height up until this action can be executed. ActionTimeoutHeight uint64 `protobuf:"varint,3,opt,name=action_timeout_height,json=actionTimeoutHeight,proto3" json:"action_timeout_height,omitempty"` - // expected_approve_expression is the expected approval expression the action is created with - ExpectedApproveExpression *ast.Expression `protobuf:"bytes,4,opt,name=expected_approve_expression,json=expectedApproveExpression,proto3" json:"expected_approve_expression,omitempty"` - // expected_reject_expression is the expected reject expression the action is created with - ExpectedRejectExpression *ast.Expression `protobuf:"bytes,5,opt,name=expected_reject_expression,json=expectedRejectExpression,proto3" json:"expected_reject_expression,omitempty"` + // expected_approve_expression is the definition of expected approval expression the action is created with + ExpectedApproveExpression string `protobuf:"bytes,4,opt,name=expected_approve_expression,json=expectedApproveExpression,proto3" json:"expected_approve_expression,omitempty"` + // expected_reject_expression is the definition of expected reject expression the action is created with + ExpectedRejectExpression string `protobuf:"bytes,5,opt,name=expected_reject_expression,json=expectedRejectExpression,proto3" json:"expected_reject_expression,omitempty"` } func (x *MsgNewAction) Reset() { @@ -7567,18 +7537,18 @@ func (x *MsgNewAction) GetActionTimeoutHeight() uint64 { return 0 } -func (x *MsgNewAction) GetExpectedApproveExpression() *ast.Expression { +func (x *MsgNewAction) GetExpectedApproveExpression() string { if x != nil { return x.ExpectedApproveExpression } - return nil + return "" } -func (x *MsgNewAction) GetExpectedRejectExpression() *ast.Expression { +func (x *MsgNewAction) GetExpectedRejectExpression() string { if x != nil { return x.ExpectedRejectExpression } - return nil + return "" } type MsgNewActionResponse struct { @@ -8131,7 +8101,7 @@ var file_warden_act_v1beta1_tx_proto_rawDesc = []byte{ 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x1c, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x78, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd4, 0x02, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x98, 0x02, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, @@ -8140,141 +8110,137 @@ var file_warden_act_v1beta1_tx_proto_rawDesc = []byte{ 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, - 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x5c, 0x0a, 0x1b, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x3e, 0x0a, 0x1b, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x45, - 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x19, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, - 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x5a, 0x0a, 0x1a, 0x65, 0x78, - 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x65, 0x78, - 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x73, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x70, 0x72, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x18, 0x65, 0x78, - 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x78, 0x70, 0x72, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x22, 0x26, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x57, 0x0a, 0x10, - 0x4d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 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, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x32, 0x0a, 0x18, 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, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x68, 0x0a, 0x0a, 0x4d, 0x73, 0x67, - 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6c, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7b, 0x0a, 0x0d, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x56, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 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, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x52, 0x65, - 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x55, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, + 0x09, 0x52, 0x19, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x70, 0x70, 0x72, 0x6f, + 0x76, 0x65, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x1a, + 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, + 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x18, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, + 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x26, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x4e, + 0x65, 0x77, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, + 0x22, 0x57, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 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, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, - 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, - 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, - 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, - 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, + 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x32, 0x0a, 0x18, 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, - 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 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, 0x68, 0x0a, + 0x0a, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x4e, 0x65, + 0x77, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7b, 0x0a, + 0x0d, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, + 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, 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, + 0x6e, 0x73, 0x65, 0x22, 0x56, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 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, 0x3a, 0x0c, 0x82, + 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x19, 0x0a, 0x17, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 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, 0x3a, + 0x0c, 0x82, 0xe7, 0xb0, 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, 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, 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, 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, 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, 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, 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, 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, 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 ( @@ -8309,36 +8275,33 @@ var file_warden_act_v1beta1_tx_proto_goTypes = []interface{}{ (*MsgVoteForActionResponse)(nil), // 15: warden.act.v1beta1.MsgVoteForActionResponse (*Params)(nil), // 16: warden.act.v1beta1.Params (*anypb.Any)(nil), // 17: google.protobuf.Any - (*ast.Expression)(nil), // 18: shield.ast.Expression - (ActionVoteType)(0), // 19: warden.act.v1beta1.ActionVoteType + (ActionVoteType)(0), // 18: warden.act.v1beta1.ActionVoteType } var file_warden_act_v1beta1_tx_proto_depIdxs = []int32{ 16, // 0: warden.act.v1beta1.MsgUpdateParams.params:type_name -> warden.act.v1beta1.Params 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 - 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 - 12, // 8: warden.act.v1beta1.Msg.CheckAction:input_type -> warden.act.v1beta1.MsgCheckAction - 6, // 9: warden.act.v1beta1.Msg.NewRule:input_type -> warden.act.v1beta1.MsgNewRule - 8, // 10: warden.act.v1beta1.Msg.UpdateRule:input_type -> warden.act.v1beta1.MsgUpdateRule - 10, // 11: warden.act.v1beta1.Msg.RevokeAction:input_type -> warden.act.v1beta1.MsgRevokeAction - 14, // 12: warden.act.v1beta1.Msg.VoteForAction:input_type -> warden.act.v1beta1.MsgVoteForAction - 1, // 13: warden.act.v1beta1.Msg.UpdateParams:output_type -> warden.act.v1beta1.MsgUpdateParamsResponse - 3, // 14: warden.act.v1beta1.Msg.NewAction:output_type -> warden.act.v1beta1.MsgNewActionResponse - 5, // 15: warden.act.v1beta1.Msg.ApproveAction:output_type -> warden.act.v1beta1.MsgApproveActionResponse - 13, // 16: warden.act.v1beta1.Msg.CheckAction:output_type -> warden.act.v1beta1.MsgCheckActionResponse - 7, // 17: warden.act.v1beta1.Msg.NewRule:output_type -> warden.act.v1beta1.MsgNewRuleResponse - 9, // 18: warden.act.v1beta1.Msg.UpdateRule:output_type -> warden.act.v1beta1.MsgUpdateRuleResponse - 11, // 19: warden.act.v1beta1.Msg.RevokeAction:output_type -> warden.act.v1beta1.MsgRevokeActionResponse - 15, // 20: warden.act.v1beta1.Msg.VoteForAction:output_type -> warden.act.v1beta1.MsgVoteForActionResponse - 13, // [13:21] is the sub-list for method output_type - 5, // [5:13] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 18, // 2: warden.act.v1beta1.MsgVoteForAction.vote:type_name -> warden.act.v1beta1.ActionVoteType + 0, // 3: warden.act.v1beta1.Msg.UpdateParams:input_type -> warden.act.v1beta1.MsgUpdateParams + 2, // 4: warden.act.v1beta1.Msg.NewAction:input_type -> warden.act.v1beta1.MsgNewAction + 4, // 5: warden.act.v1beta1.Msg.ApproveAction:input_type -> warden.act.v1beta1.MsgApproveAction + 12, // 6: warden.act.v1beta1.Msg.CheckAction:input_type -> warden.act.v1beta1.MsgCheckAction + 6, // 7: warden.act.v1beta1.Msg.NewRule:input_type -> warden.act.v1beta1.MsgNewRule + 8, // 8: warden.act.v1beta1.Msg.UpdateRule:input_type -> warden.act.v1beta1.MsgUpdateRule + 10, // 9: warden.act.v1beta1.Msg.RevokeAction:input_type -> warden.act.v1beta1.MsgRevokeAction + 14, // 10: warden.act.v1beta1.Msg.VoteForAction:input_type -> warden.act.v1beta1.MsgVoteForAction + 1, // 11: warden.act.v1beta1.Msg.UpdateParams:output_type -> warden.act.v1beta1.MsgUpdateParamsResponse + 3, // 12: warden.act.v1beta1.Msg.NewAction:output_type -> warden.act.v1beta1.MsgNewActionResponse + 5, // 13: warden.act.v1beta1.Msg.ApproveAction:output_type -> warden.act.v1beta1.MsgApproveActionResponse + 13, // 14: warden.act.v1beta1.Msg.CheckAction:output_type -> warden.act.v1beta1.MsgCheckActionResponse + 7, // 15: warden.act.v1beta1.Msg.NewRule:output_type -> warden.act.v1beta1.MsgNewRuleResponse + 9, // 16: warden.act.v1beta1.Msg.UpdateRule:output_type -> warden.act.v1beta1.MsgUpdateRuleResponse + 11, // 17: warden.act.v1beta1.Msg.RevokeAction:output_type -> warden.act.v1beta1.MsgRevokeActionResponse + 15, // 18: warden.act.v1beta1.Msg.VoteForAction:output_type -> warden.act.v1beta1.MsgVoteForActionResponse + 11, // [11:19] is the sub-list for method output_type + 3, // [3:11] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_warden_act_v1beta1_tx_proto_init() } diff --git a/proto/warden/act/v1beta1/tx.proto b/proto/warden/act/v1beta1/tx.proto index 00debb6ad..b7dbc5fd1 100644 --- a/proto/warden/act/v1beta1/tx.proto +++ b/proto/warden/act/v1beta1/tx.proto @@ -69,10 +69,10 @@ message MsgNewAction { google.protobuf.Any message = 2; // action_timeout_height is the block height up until this action can be executed. uint64 action_timeout_height = 3; - // expected_approve_expression is the expected approval expression the action is created with - .shield.ast.Expression expected_approve_expression = 4 [(gogoproto.nullable) = false]; - // expected_reject_expression is the expected reject expression the action is created with - .shield.ast.Expression expected_reject_expression = 5 [(gogoproto.nullable) = false]; + // expected_approve_expression is the definition of expected approval expression the action is created with + string expected_approve_expression = 4; + // expected_reject_expression is the definition of expected reject expression the action is created with + string expected_reject_expression = 5; } message MsgNewActionResponse { diff --git a/warden/x/act/client/actions.go b/warden/x/act/client/actions.go index a28b7136d..998aa7ba5 100644 --- a/warden/x/act/client/actions.go +++ b/warden/x/act/client/actions.go @@ -21,6 +21,8 @@ import ( ) const actionTimeoutHeightFlag = "action-timeout-height" +const expectedApproveExpressionFlag = "expected-approve-expression" +const expectedRejectExpressionFlag = "expected-reject-expression" // RegisterActionCmd registers a CLI subcommand for the message of type T to be // wrapped inside a new Action. @@ -51,10 +53,22 @@ func RegisterActionCmd[T sdk.Msg](msg T, short string) *cobra.Command { return err } + expectedApproveExpression, err := cmd.Flags().GetString(expectedApproveExpressionFlag) + if err != nil { + return err + } + + expectedRejectExpression, err := cmd.Flags().GetString(expectedRejectExpressionFlag) + if err != nil { + return err + } + msg := &types.MsgNewAction{ - Creator: clientCtx.GetFromAddress().String(), - Message: msgAny, - ActionTimeoutHeight: actionTimeout, + Creator: clientCtx.GetFromAddress().String(), + Message: msgAny, + ActionTimeoutHeight: actionTimeout, + ExpectedApproveExpression: expectedApproveExpression, + ExpectedRejectExpression: expectedRejectExpression, } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) @@ -64,6 +78,8 @@ func RegisterActionCmd[T sdk.Msg](msg T, short string) *cobra.Command { flags.AddTxFlagsToCmd(cmd) addFlagsFromMsg(msg, cmd) cmd.Flags().Uint64(actionTimeoutHeightFlag, 0, "Maximum block height after which this action is considered expired.") + cmd.Flags().String(expectedApproveExpressionFlag, "any(1, warden.space.owners)", "The definition of expected approval expression the action is created with") + cmd.Flags().String(expectedRejectExpressionFlag, "any(1, warden.space.owners)", "The definition of expected reject expression the action is created with") return cmd } diff --git a/warden/x/act/keeper/actions.go b/warden/x/act/keeper/actions.go index c28b1bdfe..62f9370f2 100644 --- a/warden/x/act/keeper/actions.go +++ b/warden/x/act/keeper/actions.go @@ -134,7 +134,7 @@ type actionCreatorKey struct{} // AddAction creates a new action. // The action is created with the provided creator as the first approver. // This function also tries to execute the action immediately if it's ready. -func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, timeoutHeight uint64, expectedApproveExpression ast.Expression, expectedRejectExpression ast.Expression) (*types.Action, error) { +func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, timeoutHeight uint64, expectedApproveExpression *ast.Expression, expectedRejectExpression *ast.Expression) (*types.Action, error) { if err := k.validateActionMsgSigners(msg); err != nil { return nil, err } @@ -145,11 +145,11 @@ func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, time return nil, errors.Wrapf(types.ErrNoRuleRegistryHandler, "%v", err) } - if *approveRule.Expression != expectedApproveExpression { + if approveRule.Expression.String() != expectedApproveExpression.String() { return nil, types.ErrApproveExpressionNotMatched } - if *rejectRule.Expression != expectedRejectExpression { + if rejectRule.Expression.String() != expectedRejectExpression.String() { return nil, types.ErrRejectExpressionNotMatched } diff --git a/warden/x/act/keeper/msg_server_new_action.go b/warden/x/act/keeper/msg_server_new_action.go index 0fd2187b0..973a47884 100644 --- a/warden/x/act/keeper/msg_server_new_action.go +++ b/warden/x/act/keeper/msg_server_new_action.go @@ -4,7 +4,9 @@ import ( "context" "fmt" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/warden-protocol/wardenprotocol/shield" types "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" ) @@ -15,7 +17,17 @@ func (k msgServer) NewAction(ctx context.Context, msg *types.MsgNewAction) (*typ return nil, fmt.Errorf("can't unpack any: %w", err) } - act, err := k.AddAction(ctx, msg.Creator, message, msg.ActionTimeoutHeight, msg.ExpectedApproveExpression, msg.ExpectedRejectExpression) + expectedApproveExpression, err := shield.Parse(msg.ExpectedApproveExpression) + if err != nil { + return nil, errors.Wrapf(types.ErrInvalidRuleDefinition, "%v", err) + } + + expectedRejectExpression, err := shield.Parse(msg.ExpectedRejectExpression) + if err != nil { + return nil, errors.Wrapf(types.ErrInvalidRuleDefinition, "%v", err) + } + + act, err := k.AddAction(ctx, msg.Creator, message, msg.ActionTimeoutHeight, expectedApproveExpression, expectedRejectExpression) if err != nil { return nil, err } diff --git a/warden/x/act/types/v1beta1/tx.pb.go b/warden/x/act/types/v1beta1/tx.pb.go index 0e66ee83f..1a8b9d74d 100644 --- a/warden/x/act/types/v1beta1/tx.pb.go +++ b/warden/x/act/types/v1beta1/tx.pb.go @@ -13,7 +13,7 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - ast "github.com/warden-protocol/wardenprotocol/shield/ast" + _ "github.com/warden-protocol/wardenprotocol/shield/ast" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -133,10 +133,10 @@ type MsgNewAction struct { Message *types.Any `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // action_timeout_height is the block height up until this action can be executed. ActionTimeoutHeight uint64 `protobuf:"varint,3,opt,name=action_timeout_height,json=actionTimeoutHeight,proto3" json:"action_timeout_height,omitempty"` - // expected_approve_expression is the expected approval expression the action is created with - ExpectedApproveExpression ast.Expression `protobuf:"bytes,4,opt,name=expected_approve_expression,json=expectedApproveExpression,proto3" json:"expected_approve_expression"` - // expected_reject_expression is the expected reject expression the action is created with - ExpectedRejectExpression ast.Expression `protobuf:"bytes,5,opt,name=expected_reject_expression,json=expectedRejectExpression,proto3" json:"expected_reject_expression"` + // expected_approve_expression is the definition of expected approval expression the action is created with + ExpectedApproveExpression string `protobuf:"bytes,4,opt,name=expected_approve_expression,json=expectedApproveExpression,proto3" json:"expected_approve_expression,omitempty"` + // expected_reject_expression is the definition of expected reject expression the action is created with + ExpectedRejectExpression string `protobuf:"bytes,5,opt,name=expected_reject_expression,json=expectedRejectExpression,proto3" json:"expected_reject_expression,omitempty"` } func (m *MsgNewAction) Reset() { *m = MsgNewAction{} } @@ -193,18 +193,18 @@ func (m *MsgNewAction) GetActionTimeoutHeight() uint64 { return 0 } -func (m *MsgNewAction) GetExpectedApproveExpression() ast.Expression { +func (m *MsgNewAction) GetExpectedApproveExpression() string { if m != nil { return m.ExpectedApproveExpression } - return ast.Expression{} + return "" } -func (m *MsgNewAction) GetExpectedRejectExpression() ast.Expression { +func (m *MsgNewAction) GetExpectedRejectExpression() string { if m != nil { return m.ExpectedRejectExpression } - return ast.Expression{} + return "" } type MsgNewActionResponse struct { @@ -866,65 +866,64 @@ func init() { func init() { proto.RegisterFile("warden/act/v1beta1/tx.proto", fileDescriptor_f059980976488200) } var fileDescriptor_f059980976488200 = []byte{ - // 923 bytes of a gzipped FileDescriptorProto + // 909 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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19, 0xb6, 0xf6, 0x58, 0x9e, 0x49, 0xb6, 0x11, 0x17, + 0xe0, 0xc8, 0x89, 0x23, 0x12, 0x5f, 0x80, 0x63, 0x0f, 0x5c, 0xf8, 0x06, 0x7b, 0x5c, 0x71, 0xe2, + 0x84, 0x50, 0x7b, 0xe8, 0xd7, 0x40, 0x9e, 0x19, 0x3b, 0x76, 0x36, 0x8e, 0xf7, 0xd0, 0x43, 0x12, + 0xbf, 0x79, 0xbf, 0xf7, 0xde, 0xef, 0xfd, 0x99, 0x17, 0xc3, 0xd6, 0x53, 0x94, 0xf8, 0x38, 0x72, + 0x90, 0xc7, 0x9d, 0xd1, 0xde, 0x11, 0xe6, 0x68, 0xcf, 0xe1, 0x27, 0x76, 0x9c, 0x50, 0x4e, 0x75, + 0x5d, 0x2a, 0x6d, 0xe4, 0x71, 0x5b, 0x29, 0x8d, 0xd7, 0x50, 0x48, 0x22, 0xea, 0x88, 0x6f, 0x09, + 0x33, 0x36, 0x3c, 0xca, 0x42, 0xca, 0x9c, 0x90, 0x05, 0xce, 0x68, 0x2f, 0xfd, 0x51, 0x8a, 0x4d, + 0xa9, 0xe8, 0x0b, 0xc9, 0x91, 0x82, 0x52, 0xad, 0x07, 0x34, 0xa0, 0xf2, 0x3c, 0x7d, 0xca, 0x0c, + 0x02, 0x4a, 0x83, 0x63, 0xec, 0x08, 0xe9, 0x68, 0xf8, 0xd8, 0x41, 0xd1, 0x58, 0xa9, 0x6e, 0xce, + 0x20, 0x1a, 0xa3, 0x04, 0x85, 0x99, 0xc7, 0xed, 0x19, 0x00, 0xe4, 0x71, 0x42, 0xa3, 0xfe, 0x88, + 0x72, 0x9c, 0xc5, 0x65, 0x03, 0x82, 0x8f, 0x7d, 0x07, 0x31, 0x9e, 0x7e, 0xe4, 0xa9, 0xf5, 0x97, + 0x06, 0xaf, 0xf6, 0x58, 0x70, 0x2f, 0xf6, 0x11, 0xc7, 0x5f, 0x09, 0xaf, 0xfa, 0x1d, 0x68, 0xa1,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x0a, 0xab, 0xe3, 0xcd, 0xb9, 0xad, 0x12, 0x8e, 0xdf, 0xae, 0x85, 0xe4, 0xbe, + 0x1f, 0xc1, 0x6a, 0x69, 0x01, 0x54, 0x4d, 0x4b, 0x11, 0x54, 0x39, 0x2d, 0xb3, 0xae, 0x7c, 0xda, + 0xd4, 0xf2, 0x2d, 0xab, 0x6a, 0x6a, 0x09, 0x55, 0xd9, 0xd4, 0x99, 0x97, 0xc2, 0xb8, 0xf2, 0x63, + 0xfa, 0x6e, 0x70, 0xf8, 0xdd, 0xb3, 0x33, 0x53, 0x7b, 0x7e, 0x66, 0x6a, 0xff, 0x9d, 0x99, 0xda, + 0xaf, 0xe7, 0xe6, 0xc2, 0xf3, 0x73, 0x73, 0xe1, 0x9f, 0x73, 0x73, 0xe1, 0xe1, 0x27, 0x01, 0xe1, + 0x83, 0xe1, 0x91, 0xed, 0xd1, 0xd0, 0x91, 0x8e, 0x6f, 0x8b, 0xff, 0x6b, 0x8f, 0x1e, 0x2b, 0x79, + 0x4a, 0x54, 0x2f, 0x11, 0x7c, 0x1c, 0x63, 0x96, 0xbd, 0x26, 0x1d, 0x2d, 0x09, 0xd0, 0xfb, 0xff, + 0x07, 0x00, 0x00, 0xff, 0xff, 0xb1, 0xb0, 0xa7, 0x02, 0x0d, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1361,26 +1360,20 @@ func (m *MsgNewAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size, err := m.ExpectedRejectExpression.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) + if len(m.ExpectedRejectExpression) > 0 { + i -= len(m.ExpectedRejectExpression) + copy(dAtA[i:], m.ExpectedRejectExpression) + i = encodeVarintTx(dAtA, i, uint64(len(m.ExpectedRejectExpression))) + i-- + dAtA[i] = 0x2a } - i-- - dAtA[i] = 0x2a - { - size, err := m.ExpectedApproveExpression.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) + if len(m.ExpectedApproveExpression) > 0 { + i -= len(m.ExpectedApproveExpression) + copy(dAtA[i:], m.ExpectedApproveExpression) + i = encodeVarintTx(dAtA, i, uint64(len(m.ExpectedApproveExpression))) + i-- + dAtA[i] = 0x22 } - i-- - dAtA[i] = 0x22 if m.ActionTimeoutHeight != 0 { i = encodeVarintTx(dAtA, i, uint64(m.ActionTimeoutHeight)) i-- @@ -1890,10 +1883,14 @@ func (m *MsgNewAction) Size() (n int) { if m.ActionTimeoutHeight != 0 { n += 1 + sovTx(uint64(m.ActionTimeoutHeight)) } - l = m.ExpectedApproveExpression.Size() - n += 1 + l + sovTx(uint64(l)) - l = m.ExpectedRejectExpression.Size() - n += 1 + l + sovTx(uint64(l)) + l = len(m.ExpectedApproveExpression) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ExpectedRejectExpression) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -2381,7 +2378,7 @@ func (m *MsgNewAction) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ExpectedApproveExpression", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -2391,30 +2388,29 @@ func (m *MsgNewAction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ExpectedApproveExpression.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ExpectedApproveExpression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ExpectedRejectExpression", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -2424,24 +2420,23 @@ func (m *MsgNewAction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ExpectedRejectExpression.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ExpectedRejectExpression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex From 9b7652afed480f515213a043a71852f572846a0e Mon Sep 17 00:00:00 2001 From: Maks Nabokov Date: Tue, 10 Sep 2024 14:02:20 +0300 Subject: [PATCH 03/18] add approve/reject rules to - UpdateSpace - UpdateKey --- api/warden/warden/v1beta3/events.pulsar.go | 607 +++++++++--- api/warden/warden/v1beta3/tx.pulsar.go | 879 ++++++++++++------ proto/warden/warden/v1beta3/events.proto | 18 + proto/warden/warden/v1beta3/tx.proto | 6 + warden/x/act/keeper/actions.go | 3 + .../x/warden/keeper/msg_server_update_key.go | 20 +- .../warden/keeper/msg_server_update_space.go | 28 + warden/x/warden/types/v1beta3/events.pb.go | 316 ++++++- warden/x/warden/types/v1beta3/tx.pb.go | 433 ++++++--- 9 files changed, 1765 insertions(+), 545 deletions(-) diff --git a/api/warden/warden/v1beta3/events.pulsar.go b/api/warden/warden/v1beta3/events.pulsar.go index da28786d8..acd4fbd96 100644 --- a/api/warden/warden/v1beta3/events.pulsar.go +++ b/api/warden/warden/v1beta3/events.pulsar.go @@ -627,10 +627,14 @@ func (x *fastReflection_EventCreateSpace) ProtoMethods() *protoiface.Methods { } var ( - md_EventUpdateSpace protoreflect.MessageDescriptor - fd_EventUpdateSpace_space_id protoreflect.FieldDescriptor - fd_EventUpdateSpace_admin_rule_id protoreflect.FieldDescriptor - fd_EventUpdateSpace_sign_rule_id protoreflect.FieldDescriptor + md_EventUpdateSpace protoreflect.MessageDescriptor + fd_EventUpdateSpace_space_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_admin_rule_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_sign_rule_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_approve_admin_rule_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_reject_admin_rule_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_approve_sign_rule_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_reject_sign_rule_id protoreflect.FieldDescriptor ) func init() { @@ -639,6 +643,10 @@ func init() { fd_EventUpdateSpace_space_id = md_EventUpdateSpace.Fields().ByName("space_id") fd_EventUpdateSpace_admin_rule_id = md_EventUpdateSpace.Fields().ByName("admin_rule_id") fd_EventUpdateSpace_sign_rule_id = md_EventUpdateSpace.Fields().ByName("sign_rule_id") + fd_EventUpdateSpace_approve_admin_rule_id = md_EventUpdateSpace.Fields().ByName("approve_admin_rule_id") + fd_EventUpdateSpace_reject_admin_rule_id = md_EventUpdateSpace.Fields().ByName("reject_admin_rule_id") + fd_EventUpdateSpace_approve_sign_rule_id = md_EventUpdateSpace.Fields().ByName("approve_sign_rule_id") + fd_EventUpdateSpace_reject_sign_rule_id = md_EventUpdateSpace.Fields().ByName("reject_sign_rule_id") } var _ protoreflect.Message = (*fastReflection_EventUpdateSpace)(nil) @@ -724,6 +732,30 @@ func (x *fastReflection_EventUpdateSpace) Range(f func(protoreflect.FieldDescrip return } } + if x.ApproveAdminRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveAdminRuleId) + if !f(fd_EventUpdateSpace_approve_admin_rule_id, value) { + return + } + } + if x.RejectAdminRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectAdminRuleId) + if !f(fd_EventUpdateSpace_reject_admin_rule_id, value) { + return + } + } + if x.ApproveSignRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveSignRuleId) + if !f(fd_EventUpdateSpace_approve_sign_rule_id, value) { + return + } + } + if x.RejectSignRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectSignRuleId) + if !f(fd_EventUpdateSpace_reject_sign_rule_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -745,6 +777,14 @@ func (x *fastReflection_EventUpdateSpace) Has(fd protoreflect.FieldDescriptor) b return x.AdminRuleId != uint64(0) case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": return x.SignRuleId != uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": + return x.ApproveAdminRuleId != uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": + return x.RejectAdminRuleId != uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": + return x.ApproveSignRuleId != uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": + return x.RejectSignRuleId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateSpace")) @@ -767,6 +807,14 @@ func (x *fastReflection_EventUpdateSpace) Clear(fd protoreflect.FieldDescriptor) x.AdminRuleId = uint64(0) case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": x.SignRuleId = uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": + x.ApproveAdminRuleId = uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": + x.RejectAdminRuleId = uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": + x.ApproveSignRuleId = uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": + x.RejectSignRuleId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateSpace")) @@ -792,6 +840,18 @@ func (x *fastReflection_EventUpdateSpace) Get(descriptor protoreflect.FieldDescr case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": value := x.SignRuleId return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": + value := x.ApproveAdminRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": + value := x.RejectAdminRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": + value := x.ApproveSignRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": + value := x.RejectSignRuleId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateSpace")) @@ -818,6 +878,14 @@ func (x *fastReflection_EventUpdateSpace) Set(fd protoreflect.FieldDescriptor, v x.AdminRuleId = value.Uint() case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": x.SignRuleId = value.Uint() + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": + x.ApproveAdminRuleId = value.Uint() + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": + x.RejectAdminRuleId = value.Uint() + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": + x.ApproveSignRuleId = value.Uint() + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": + x.RejectSignRuleId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateSpace")) @@ -844,6 +912,14 @@ func (x *fastReflection_EventUpdateSpace) Mutable(fd protoreflect.FieldDescripto panic(fmt.Errorf("field admin_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": panic(fmt.Errorf("field sign_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": + panic(fmt.Errorf("field approve_admin_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": + panic(fmt.Errorf("field reject_admin_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": + panic(fmt.Errorf("field approve_sign_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": + panic(fmt.Errorf("field reject_sign_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateSpace")) @@ -863,6 +939,14 @@ func (x *fastReflection_EventUpdateSpace) NewField(fd protoreflect.FieldDescript return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateSpace")) @@ -941,6 +1025,18 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { if x.SignRuleId != 0 { n += 1 + runtime.Sov(uint64(x.SignRuleId)) } + if x.ApproveAdminRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveAdminRuleId)) + } + if x.RejectAdminRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectAdminRuleId)) + } + if x.ApproveSignRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveSignRuleId)) + } + if x.RejectSignRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectSignRuleId)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -970,6 +1066,26 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.RejectSignRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectSignRuleId)) + i-- + dAtA[i] = 0x38 + } + if x.ApproveSignRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveSignRuleId)) + i-- + dAtA[i] = 0x30 + } + if x.RejectAdminRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectAdminRuleId)) + i-- + dAtA[i] = 0x28 + } + if x.ApproveAdminRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveAdminRuleId)) + i-- + dAtA[i] = 0x20 + } if x.SignRuleId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.SignRuleId)) i-- @@ -1091,6 +1207,82 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { break } } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + } + x.ApproveAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ApproveAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + } + x.RejectAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.RejectAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + } + x.ApproveSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ApproveSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + } + x.RejectSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.RejectSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -3819,9 +4011,11 @@ func (x *fastReflection_EventRejectKeyRequest) ProtoMethods() *protoiface.Method } var ( - md_EventUpdateKey protoreflect.MessageDescriptor - fd_EventUpdateKey_id protoreflect.FieldDescriptor - fd_EventUpdateKey_rule_id protoreflect.FieldDescriptor + md_EventUpdateKey protoreflect.MessageDescriptor + fd_EventUpdateKey_id protoreflect.FieldDescriptor + fd_EventUpdateKey_rule_id protoreflect.FieldDescriptor + fd_EventUpdateKey_approve_rule_id protoreflect.FieldDescriptor + fd_EventUpdateKey_reject_rule_id protoreflect.FieldDescriptor ) func init() { @@ -3829,6 +4023,8 @@ func init() { md_EventUpdateKey = File_warden_warden_v1beta3_events_proto.Messages().ByName("EventUpdateKey") fd_EventUpdateKey_id = md_EventUpdateKey.Fields().ByName("id") fd_EventUpdateKey_rule_id = md_EventUpdateKey.Fields().ByName("rule_id") + fd_EventUpdateKey_approve_rule_id = md_EventUpdateKey.Fields().ByName("approve_rule_id") + fd_EventUpdateKey_reject_rule_id = md_EventUpdateKey.Fields().ByName("reject_rule_id") } var _ protoreflect.Message = (*fastReflection_EventUpdateKey)(nil) @@ -3908,6 +4104,18 @@ func (x *fastReflection_EventUpdateKey) Range(f func(protoreflect.FieldDescripto return } } + if x.ApproveRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveRuleId) + if !f(fd_EventUpdateKey_approve_rule_id, value) { + return + } + } + if x.RejectRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectRuleId) + if !f(fd_EventUpdateKey_reject_rule_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -3927,6 +4135,10 @@ func (x *fastReflection_EventUpdateKey) Has(fd protoreflect.FieldDescriptor) boo return x.Id != uint64(0) case "warden.warden.v1beta3.EventUpdateKey.rule_id": return x.RuleId != uint64(0) + case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": + return x.ApproveRuleId != uint64(0) + case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": + return x.RejectRuleId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateKey")) @@ -3947,6 +4159,10 @@ func (x *fastReflection_EventUpdateKey) Clear(fd protoreflect.FieldDescriptor) { x.Id = uint64(0) case "warden.warden.v1beta3.EventUpdateKey.rule_id": x.RuleId = uint64(0) + case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": + x.ApproveRuleId = uint64(0) + case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": + x.RejectRuleId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateKey")) @@ -3969,6 +4185,12 @@ func (x *fastReflection_EventUpdateKey) Get(descriptor protoreflect.FieldDescrip case "warden.warden.v1beta3.EventUpdateKey.rule_id": value := x.RuleId return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": + value := x.ApproveRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": + value := x.RejectRuleId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateKey")) @@ -3993,6 +4215,10 @@ func (x *fastReflection_EventUpdateKey) Set(fd protoreflect.FieldDescriptor, val x.Id = value.Uint() case "warden.warden.v1beta3.EventUpdateKey.rule_id": x.RuleId = value.Uint() + case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": + x.ApproveRuleId = value.Uint() + case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": + x.RejectRuleId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateKey")) @@ -4017,6 +4243,10 @@ func (x *fastReflection_EventUpdateKey) Mutable(fd protoreflect.FieldDescriptor) panic(fmt.Errorf("field id of message warden.warden.v1beta3.EventUpdateKey is not mutable")) case "warden.warden.v1beta3.EventUpdateKey.rule_id": panic(fmt.Errorf("field rule_id of message warden.warden.v1beta3.EventUpdateKey is not mutable")) + case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": + panic(fmt.Errorf("field approve_rule_id of message warden.warden.v1beta3.EventUpdateKey is not mutable")) + case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": + panic(fmt.Errorf("field reject_rule_id of message warden.warden.v1beta3.EventUpdateKey is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateKey")) @@ -4034,6 +4264,10 @@ func (x *fastReflection_EventUpdateKey) NewField(fd protoreflect.FieldDescriptor return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.EventUpdateKey.rule_id": return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateKey")) @@ -4109,6 +4343,12 @@ func (x *fastReflection_EventUpdateKey) ProtoMethods() *protoiface.Methods { if x.RuleId != 0 { n += 1 + runtime.Sov(uint64(x.RuleId)) } + if x.ApproveRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveRuleId)) + } + if x.RejectRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectRuleId)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -4138,6 +4378,16 @@ func (x *fastReflection_EventUpdateKey) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.RejectRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectRuleId)) + i-- + dAtA[i] = 0x20 + } + if x.ApproveRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveRuleId)) + i-- + dAtA[i] = 0x18 + } if x.RuleId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.RuleId)) i-- @@ -4235,6 +4485,44 @@ func (x *fastReflection_EventUpdateKey) ProtoMethods() *protoiface.Methods { break } } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + } + x.ApproveRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ApproveRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + } + x.RejectRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.RejectRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -8270,6 +8558,14 @@ type EventUpdateSpace struct { AdminRuleId uint64 `protobuf:"varint,2,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` // id of the rule to be applied to every sign operation SignRuleId uint64 `protobuf:"varint,3,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` + // id of the rule to be applied to every approve admin operation + ApproveAdminRuleId uint64 `protobuf:"varint,4,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` + // id of the rule to be applied to every reject admin operation + RejectAdminRuleId uint64 `protobuf:"varint,5,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` + // id of the rule to be applied to every approve sign operation + ApproveSignRuleId uint64 `protobuf:"varint,6,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` + // id of the rule to be applied to every reject sign operation + RejectSignRuleId uint64 `protobuf:"varint,7,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` } func (x *EventUpdateSpace) Reset() { @@ -8313,6 +8609,34 @@ func (x *EventUpdateSpace) GetSignRuleId() uint64 { return 0 } +func (x *EventUpdateSpace) GetApproveAdminRuleId() uint64 { + if x != nil { + return x.ApproveAdminRuleId + } + return 0 +} + +func (x *EventUpdateSpace) GetRejectAdminRuleId() uint64 { + if x != nil { + return x.RejectAdminRuleId + } + return 0 +} + +func (x *EventUpdateSpace) GetApproveSignRuleId() uint64 { + if x != nil { + return x.ApproveSignRuleId + } + return 0 +} + +func (x *EventUpdateSpace) GetRejectSignRuleId() uint64 { + if x != nil { + return x.RejectSignRuleId + } + return 0 +} + // EventAddSpaceOwner is emitted when a new owner is added type EventAddSpaceOwner struct { state protoimpl.MessageState @@ -8625,6 +8949,10 @@ type EventUpdateKey struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id of the rule to be applied to every sign operation RuleId uint64 `protobuf:"varint,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + // id of the rule to be applied to every approve sign operation + ApproveRuleId uint64 `protobuf:"varint,3,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` + // id of the rule to be applied to every reject sign operation + RejectRuleId uint64 `protobuf:"varint,4,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` } func (x *EventUpdateKey) Reset() { @@ -8661,6 +8989,20 @@ func (x *EventUpdateKey) GetRuleId() uint64 { return 0 } +func (x *EventUpdateKey) GetApproveRuleId() uint64 { + if x != nil { + return x.ApproveRuleId + } + return 0 +} + +func (x *EventUpdateKey) GetRejectRuleId() uint64 { + if x != nil { + return x.RejectRuleId + } + return 0 +} + // EventNewSignRequest is emitted on new signature requests type EventNewSignRequest struct { state protoimpl.MessageState @@ -9080,126 +9422,143 @@ var file_warden_warden_v1beta3_events_proto_rawDesc = []byte{ 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x73, 0x0a, 0x10, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, + 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xb7, 0x02, 0x0a, 0x10, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, + 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, + 0x20, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, + 0x64, 0x12, 0x31, 0x0a, 0x15, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x12, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, + 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, + 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, + 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, 0x6e, + 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x13, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x10, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x52, + 0x75, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x6f, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x64, + 0x64, 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x7a, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x20, - 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, - 0x22, 0x6f, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x53, 0x70, 0x61, 0x63, - 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, - 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x21, - 0x0a, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x22, 0x7a, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, - 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xce, 0x01, - 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, - 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, - 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x6b, 0x65, 0x79, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xad, - 0x01, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, + 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, + 0x21, 0x0a, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x22, 0xce, 0x01, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x4b, + 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x27, - 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x4b, 0x65, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x39, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, - 0x49, 0x64, 0x22, 0x56, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x53, 0x69, - 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x16, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x02, 0x69, 0x64, 0x22, 0x28, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6a, - 0x65, 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8c, - 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x4e, 0x0a, - 0x0d, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x0c, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x22, 0x75, 0x0a, - 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x4e, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x46, 0x65, 0x65, 0x73, 0x22, 0x6c, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, - 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, - 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x23, 0x0a, - 0x0d, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x4b, - 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x09, - 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x5f, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x7d, 0x0a, 0x18, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x5f, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xf1, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x33, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x51, 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, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x3b, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x33, 0xa2, 0x02, 0x03, 0x57, 0x57, 0x58, 0xaa, 0x02, 0x15, 0x57, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x33, 0xca, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xe2, 0x02, 0x21, 0x57, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x17, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x39, + 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x22, 0xad, 0x01, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, + 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, + 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, + 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, + 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, + 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, + 0x65, 0x49, 0x64, 0x22, 0x27, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6a, 0x65, + 0x63, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x87, 0x01, 0x0a, + 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x72, + 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, + 0x12, 0x24, 0x0a, 0x0e, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, + 0x65, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, + 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, + 0x65, 0x79, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, + 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x28, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, + 0x69, 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x4b, + 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x4e, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, + 0x2e, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, + 0x73, 0x22, 0x75, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x4e, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x46, 0x65, 0x65, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6b, 0x65, 0x79, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x22, 0x6c, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x57, 0x72, 0x69, 0x74, + 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, + 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x35, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6e, + 0x65, 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x7d, 0x0a, 0x18, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, + 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xf1, 0x01, 0x0a, 0x19, 0x63, 0x6f, + 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 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, 0x77, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x3b, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xa2, 0x02, 0x03, 0x57, 0x57, 0x58, 0xaa, + 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xca, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xe2, + 0x02, 0x21, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, + 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x57, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/warden/warden/v1beta3/tx.pulsar.go b/api/warden/warden/v1beta3/tx.pulsar.go index 9c6b8608f..839c1237a 100644 --- a/api/warden/warden/v1beta3/tx.pulsar.go +++ b/api/warden/warden/v1beta3/tx.pulsar.go @@ -5837,12 +5837,16 @@ func (x *fastReflection_MsgAddKeychainWriterResponse) ProtoMethods() *protoiface } var ( - md_MsgUpdateSpace protoreflect.MessageDescriptor - fd_MsgUpdateSpace_authority protoreflect.FieldDescriptor - fd_MsgUpdateSpace_space_id protoreflect.FieldDescriptor - fd_MsgUpdateSpace_admin_rule_id protoreflect.FieldDescriptor - fd_MsgUpdateSpace_sign_rule_id protoreflect.FieldDescriptor - fd_MsgUpdateSpace_nonce protoreflect.FieldDescriptor + md_MsgUpdateSpace protoreflect.MessageDescriptor + fd_MsgUpdateSpace_authority protoreflect.FieldDescriptor + fd_MsgUpdateSpace_space_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_admin_rule_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_sign_rule_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_nonce protoreflect.FieldDescriptor + fd_MsgUpdateSpace_approve_admin_rule_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_reject_admin_rule_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_approve_sign_rule_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_reject_sign_rule_id protoreflect.FieldDescriptor ) func init() { @@ -5853,6 +5857,10 @@ func init() { fd_MsgUpdateSpace_admin_rule_id = md_MsgUpdateSpace.Fields().ByName("admin_rule_id") fd_MsgUpdateSpace_sign_rule_id = md_MsgUpdateSpace.Fields().ByName("sign_rule_id") fd_MsgUpdateSpace_nonce = md_MsgUpdateSpace.Fields().ByName("nonce") + fd_MsgUpdateSpace_approve_admin_rule_id = md_MsgUpdateSpace.Fields().ByName("approve_admin_rule_id") + fd_MsgUpdateSpace_reject_admin_rule_id = md_MsgUpdateSpace.Fields().ByName("reject_admin_rule_id") + fd_MsgUpdateSpace_approve_sign_rule_id = md_MsgUpdateSpace.Fields().ByName("approve_sign_rule_id") + fd_MsgUpdateSpace_reject_sign_rule_id = md_MsgUpdateSpace.Fields().ByName("reject_sign_rule_id") } var _ protoreflect.Message = (*fastReflection_MsgUpdateSpace)(nil) @@ -5950,6 +5958,30 @@ func (x *fastReflection_MsgUpdateSpace) Range(f func(protoreflect.FieldDescripto return } } + if x.ApproveAdminRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveAdminRuleId) + if !f(fd_MsgUpdateSpace_approve_admin_rule_id, value) { + return + } + } + if x.RejectAdminRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectAdminRuleId) + if !f(fd_MsgUpdateSpace_reject_admin_rule_id, value) { + return + } + } + if x.ApproveSignRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveSignRuleId) + if !f(fd_MsgUpdateSpace_approve_sign_rule_id, value) { + return + } + } + if x.RejectSignRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectSignRuleId) + if !f(fd_MsgUpdateSpace_reject_sign_rule_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -5975,6 +6007,14 @@ func (x *fastReflection_MsgUpdateSpace) Has(fd protoreflect.FieldDescriptor) boo return x.SignRuleId != uint64(0) case "warden.warden.v1beta3.MsgUpdateSpace.nonce": return x.Nonce != uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": + return x.ApproveAdminRuleId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": + return x.RejectAdminRuleId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": + return x.ApproveSignRuleId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": + return x.RejectSignRuleId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateSpace")) @@ -6001,6 +6041,14 @@ func (x *fastReflection_MsgUpdateSpace) Clear(fd protoreflect.FieldDescriptor) { x.SignRuleId = uint64(0) case "warden.warden.v1beta3.MsgUpdateSpace.nonce": x.Nonce = uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": + x.ApproveAdminRuleId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": + x.RejectAdminRuleId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": + x.ApproveSignRuleId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": + x.RejectSignRuleId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateSpace")) @@ -6032,6 +6080,18 @@ func (x *fastReflection_MsgUpdateSpace) Get(descriptor protoreflect.FieldDescrip case "warden.warden.v1beta3.MsgUpdateSpace.nonce": value := x.Nonce return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": + value := x.ApproveAdminRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": + value := x.RejectAdminRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": + value := x.ApproveSignRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": + value := x.RejectSignRuleId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateSpace")) @@ -6062,6 +6122,14 @@ func (x *fastReflection_MsgUpdateSpace) Set(fd protoreflect.FieldDescriptor, val x.SignRuleId = value.Uint() case "warden.warden.v1beta3.MsgUpdateSpace.nonce": x.Nonce = value.Uint() + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": + x.ApproveAdminRuleId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": + x.RejectAdminRuleId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": + x.ApproveSignRuleId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": + x.RejectSignRuleId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateSpace")) @@ -6092,6 +6160,14 @@ func (x *fastReflection_MsgUpdateSpace) Mutable(fd protoreflect.FieldDescriptor) panic(fmt.Errorf("field sign_rule_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) case "warden.warden.v1beta3.MsgUpdateSpace.nonce": panic(fmt.Errorf("field nonce of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": + panic(fmt.Errorf("field approve_admin_rule_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": + panic(fmt.Errorf("field reject_admin_rule_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": + panic(fmt.Errorf("field approve_sign_rule_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": + panic(fmt.Errorf("field reject_sign_rule_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateSpace")) @@ -6115,6 +6191,14 @@ func (x *fastReflection_MsgUpdateSpace) NewField(fd protoreflect.FieldDescriptor return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.MsgUpdateSpace.nonce": return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateSpace")) @@ -6200,6 +6284,18 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { if x.Nonce != 0 { n += 1 + runtime.Sov(uint64(x.Nonce)) } + if x.ApproveAdminRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveAdminRuleId)) + } + if x.RejectAdminRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectAdminRuleId)) + } + if x.ApproveSignRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveSignRuleId)) + } + if x.RejectSignRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectSignRuleId)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -6229,6 +6325,26 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.RejectSignRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectSignRuleId)) + i-- + dAtA[i] = 0x48 + } + if x.ApproveSignRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveSignRuleId)) + i-- + dAtA[i] = 0x40 + } + if x.RejectAdminRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectAdminRuleId)) + i-- + dAtA[i] = 0x38 + } + if x.ApproveAdminRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveAdminRuleId)) + i-- + dAtA[i] = 0x30 + } if x.Nonce != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) i-- @@ -6413,6 +6529,82 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { break } } + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + } + x.ApproveAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ApproveAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + } + x.RejectAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.RejectAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + } + x.ApproveSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ApproveSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + } + x.RejectSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.RejectSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -12433,10 +12625,12 @@ func (x *fastReflection_MsgFulfilKeyRequestResponse) ProtoMethods() *protoiface. } var ( - md_MsgUpdateKey protoreflect.MessageDescriptor - fd_MsgUpdateKey_authority protoreflect.FieldDescriptor - fd_MsgUpdateKey_key_id protoreflect.FieldDescriptor - fd_MsgUpdateKey_rule_id protoreflect.FieldDescriptor + md_MsgUpdateKey protoreflect.MessageDescriptor + fd_MsgUpdateKey_authority protoreflect.FieldDescriptor + fd_MsgUpdateKey_key_id protoreflect.FieldDescriptor + fd_MsgUpdateKey_rule_id protoreflect.FieldDescriptor + fd_MsgUpdateKey_approve_rule_id protoreflect.FieldDescriptor + fd_MsgUpdateKey_reject_rule_id protoreflect.FieldDescriptor ) func init() { @@ -12445,6 +12639,8 @@ func init() { fd_MsgUpdateKey_authority = md_MsgUpdateKey.Fields().ByName("authority") fd_MsgUpdateKey_key_id = md_MsgUpdateKey.Fields().ByName("key_id") fd_MsgUpdateKey_rule_id = md_MsgUpdateKey.Fields().ByName("rule_id") + fd_MsgUpdateKey_approve_rule_id = md_MsgUpdateKey.Fields().ByName("approve_rule_id") + fd_MsgUpdateKey_reject_rule_id = md_MsgUpdateKey.Fields().ByName("reject_rule_id") } var _ protoreflect.Message = (*fastReflection_MsgUpdateKey)(nil) @@ -12530,6 +12726,18 @@ func (x *fastReflection_MsgUpdateKey) Range(f func(protoreflect.FieldDescriptor, return } } + if x.ApproveRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveRuleId) + if !f(fd_MsgUpdateKey_approve_rule_id, value) { + return + } + } + if x.RejectRuleId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectRuleId) + if !f(fd_MsgUpdateKey_reject_rule_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -12551,6 +12759,10 @@ func (x *fastReflection_MsgUpdateKey) Has(fd protoreflect.FieldDescriptor) bool return x.KeyId != uint64(0) case "warden.warden.v1beta3.MsgUpdateKey.rule_id": return x.RuleId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": + return x.ApproveRuleId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": + return x.RejectRuleId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateKey")) @@ -12573,6 +12785,10 @@ func (x *fastReflection_MsgUpdateKey) Clear(fd protoreflect.FieldDescriptor) { x.KeyId = uint64(0) case "warden.warden.v1beta3.MsgUpdateKey.rule_id": x.RuleId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": + x.ApproveRuleId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": + x.RejectRuleId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateKey")) @@ -12598,6 +12814,12 @@ func (x *fastReflection_MsgUpdateKey) Get(descriptor protoreflect.FieldDescripto case "warden.warden.v1beta3.MsgUpdateKey.rule_id": value := x.RuleId return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": + value := x.ApproveRuleId + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": + value := x.RejectRuleId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateKey")) @@ -12624,6 +12846,10 @@ func (x *fastReflection_MsgUpdateKey) Set(fd protoreflect.FieldDescriptor, value x.KeyId = value.Uint() case "warden.warden.v1beta3.MsgUpdateKey.rule_id": x.RuleId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": + x.ApproveRuleId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": + x.RejectRuleId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateKey")) @@ -12650,6 +12876,10 @@ func (x *fastReflection_MsgUpdateKey) Mutable(fd protoreflect.FieldDescriptor) p panic(fmt.Errorf("field key_id of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) case "warden.warden.v1beta3.MsgUpdateKey.rule_id": panic(fmt.Errorf("field rule_id of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) + case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": + panic(fmt.Errorf("field approve_rule_id of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) + case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": + panic(fmt.Errorf("field reject_rule_id of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateKey")) @@ -12669,6 +12899,10 @@ func (x *fastReflection_MsgUpdateKey) NewField(fd protoreflect.FieldDescriptor) return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.MsgUpdateKey.rule_id": return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateKey")) @@ -12748,6 +12982,12 @@ func (x *fastReflection_MsgUpdateKey) ProtoMethods() *protoiface.Methods { if x.RuleId != 0 { n += 1 + runtime.Sov(uint64(x.RuleId)) } + if x.ApproveRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveRuleId)) + } + if x.RejectRuleId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectRuleId)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -12777,6 +13017,16 @@ func (x *fastReflection_MsgUpdateKey) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.RejectRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectRuleId)) + i-- + dAtA[i] = 0x28 + } + if x.ApproveRuleId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveRuleId)) + i-- + dAtA[i] = 0x20 + } if x.RuleId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.RuleId)) i-- @@ -12913,6 +13163,44 @@ func (x *fastReflection_MsgUpdateKey) ProtoMethods() *protoiface.Methods { break } } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + } + x.ApproveRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ApproveRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + } + x.RejectRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.RejectRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -16654,11 +16942,15 @@ type MsgUpdateSpace struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` - AdminRuleId uint64 `protobuf:"varint,3,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - SignRuleId uint64 `protobuf:"varint,4,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` - Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` + AdminRuleId uint64 `protobuf:"varint,3,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` + SignRuleId uint64 `protobuf:"varint,4,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` + Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"` + ApproveAdminRuleId uint64 `protobuf:"varint,6,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` + RejectAdminRuleId uint64 `protobuf:"varint,7,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` + ApproveSignRuleId uint64 `protobuf:"varint,8,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` + RejectSignRuleId uint64 `protobuf:"varint,9,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` } func (x *MsgUpdateSpace) Reset() { @@ -16716,6 +17008,34 @@ func (x *MsgUpdateSpace) GetNonce() uint64 { return 0 } +func (x *MsgUpdateSpace) GetApproveAdminRuleId() uint64 { + if x != nil { + return x.ApproveAdminRuleId + } + return 0 +} + +func (x *MsgUpdateSpace) GetRejectAdminRuleId() uint64 { + if x != nil { + return x.RejectAdminRuleId + } + return 0 +} + +func (x *MsgUpdateSpace) GetApproveSignRuleId() uint64 { + if x != nil { + return x.ApproveSignRuleId + } + return 0 +} + +func (x *MsgUpdateSpace) GetRejectSignRuleId() uint64 { + if x != nil { + return x.RejectSignRuleId + } + return 0 +} + type MsgUpdateSpaceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -17282,9 +17602,11 @@ type MsgUpdateKey struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - KeyId uint64 `protobuf:"varint,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - RuleId uint64 `protobuf:"varint,3,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + KeyId uint64 `protobuf:"varint,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + RuleId uint64 `protobuf:"varint,3,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + ApproveRuleId uint64 `protobuf:"varint,4,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` + RejectRuleId uint64 `protobuf:"varint,5,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` } func (x *MsgUpdateKey) Reset() { @@ -17328,6 +17650,20 @@ func (x *MsgUpdateKey) GetRuleId() uint64 { return 0 } +func (x *MsgUpdateKey) GetApproveRuleId() uint64 { + if x != nil { + return x.ApproveRuleId + } + return 0 +} + +func (x *MsgUpdateKey) GetRejectRuleId() uint64 { + if x != nil { + return x.RejectRuleId + } + return 0 +} + type MsgUpdateKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -17731,7 +18067,7 @@ var file_warden_warden_v1beta3_tx_proto_rawDesc = []byte{ 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb5, 0x01, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf9, 0x02, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, @@ -17741,262 +18077,279 @@ var file_warden_warden_v1beta3_tx_proto_rawDesc = []byte{ 0x6c, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x3a, 0x0e, 0x82, 0xe7, - 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x18, 0x0a, 0x16, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x99, 0x02, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x0d, 0x6b, - 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6b, - 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, - 0x03, 0x75, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, - 0x1d, 0x0a, 0x0a, 0x6b, 0x65, 0x79, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x6b, 0x65, 0x79, 0x62, 0x61, 0x73, 0x65, 0x49, 0x64, 0x3a, 0x0c, - 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x4a, 0x04, 0x08, 0x04, - 0x10, 0x05, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, - 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0xa2, 0x01, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, - 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, - 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x35, 0x0a, - 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x4b, 0x65, - 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x9e, 0x01, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf6, 0x02, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x4e, 0x65, - 0x77, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, - 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x8d, 0x01, 0x0a, 0x11, 0x6d, 0x61, - 0x78, 0x5f, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, - 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, - 0x42, 0x46, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, - 0x6e, 0x73, 0x9a, 0xe7, 0xb0, 0x2a, 0x0c, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x63, 0x6f, - 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x4b, 0x65, 0x79, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, - 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x3a, - 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, - 0x2a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x09, 0x4d, - 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x84, 0x02, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x46, - 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, - 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, - 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, - 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, - 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x25, 0x0a, 0x0d, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, - 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x1d, - 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, 0x65, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6c, 0x0a, - 0x0c, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, - 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6b, - 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, - 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, - 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x16, 0x0a, 0x14, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0xf3, 0x02, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x53, 0x69, - 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, + 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x31, 0x0a, 0x15, + 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, + 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x61, 0x70, 0x70, + 0x72, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, + 0x2f, 0x0a, 0x14, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, + 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, + 0x65, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, + 0x12, 0x2f, 0x0a, 0x14, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, + 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, + 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, + 0x64, 0x12, 0x2d, 0x0a, 0x13, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x6e, + 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, + 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, + 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x99, 0x02, 0x0a, 0x11, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, + 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x4e, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, + 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x0c, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x75, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x6b, 0x65, 0x79, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6b, 0x65, 0x79, 0x62, 0x61, 0x73, 0x65, + 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x4b, 0x65, + 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, + 0x64, 0x12, 0x35, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, + 0x6e, 0x65, 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x41, + 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9e, 0x01, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x69, - 0x6e, 0x70, 0x75, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, - 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, + 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x09, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x73, 0x12, 0x25, 0x0a, 0x0e, - 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x4b, 0x65, 0x79, 0x12, 0x8d, 0x01, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x5f, 0x6b, 0x65, 0x79, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x46, 0xc8, 0xde, 0x1f, 0x00, - 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x9a, 0xe7, 0xb0, 0x2a, - 0x0c, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, - 0x2a, 0x01, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, - 0x65, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x2b, 0x0a, 0x19, 0x4d, 0x73, 0x67, - 0x4e, 0x65, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x30, 0x0a, 0x0d, 0x4d, 0x73, 0x67, 0x53, 0x69, 0x67, - 0x6e, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x69, - 0x67, 0x6e, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x22, 0x92, 0x02, 0x0a, 0x14, 0x4d, 0x73, 0x67, - 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x77, 0x61, 0x72, + 0x67, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf6, 0x02, 0x0a, 0x10, 0x4d, + 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x19, 0x0a, + 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, + 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x6b, 0x65, 0x79, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x8d, 0x01, + 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x5f, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, + 0x65, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x46, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x9a, 0xe7, 0xb0, 0x2a, 0x0c, 0x6c, 0x65, 0x67, 0x61, 0x63, + 0x79, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x6d, 0x61, + 0x78, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x14, 0x0a, + 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x22, 0x2a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, + 0x2a, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x84, 0x02, 0x0a, 0x13, + 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, + 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x33, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x40, 0x0a, 0x07, - 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, - 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x44, - 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x25, - 0x0a, 0x0d, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, - 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x1e, 0x0a, - 0x1c, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x81, 0x0b, - 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x66, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, - 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2e, 0x2e, - 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x33, 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, 0x5a, 0x0a, - 0x08, 0x4e, 0x65, 0x77, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x53, 0x70, 0x61, 0x63, 0x65, 0x1a, 0x2a, 0x2e, + 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0d, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, + 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, + 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0xba, 0x01, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, + 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x75, 0x6c, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x72, 0x6f, + 0x76, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x72, 0x65, 0x6a, 0x65, + 0x63, 0x74, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x3a, 0x0e, + 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x16, + 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf3, 0x02, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x4e, 0x65, + 0x77, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, + 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x6e, 0x61, 0x6c, 0x79, + 0x7a, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x73, 0x12, + 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, + 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x8d, 0x01, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x5f, 0x6b, + 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x46, 0xc8, + 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, + 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x9a, + 0xe7, 0xb0, 0x2a, 0x0c, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x73, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x3a, 0x0e, 0x82, 0xe7, + 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x2b, 0x0a, 0x19, + 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x30, 0x0a, 0x0d, 0x4d, 0x73, 0x67, + 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, + 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x22, 0x92, 0x02, 0x0a, 0x14, + 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, + 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x40, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x53, 0x70, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0d, 0x41, 0x64, 0x64, - 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, - 0x6e, 0x65, 0x72, 0x1a, 0x2f, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x41, - 0x64, 0x64, 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x70, - 0x61, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x40, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x69, 0x67, 0x6e, + 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x12, 0x25, 0x0a, 0x0d, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x32, 0x81, 0x0b, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x66, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, - 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, - 0x77, 0x6e, 0x65, 0x72, 0x1a, 0x32, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, - 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0b, 0x4e, 0x65, 0x77, 0x4b, - 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x25, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x1a, 0x2e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 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, 0x5a, 0x0a, 0x08, 0x4e, 0x65, 0x77, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x53, 0x70, 0x61, 0x63, 0x65, + 0x1a, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x53, + 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0d, + 0x41, 0x64, 0x64, 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x2e, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x70, 0x61, 0x63, + 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x1a, 0x2f, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, + 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x70, 0x61, + 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x1a, 0x32, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, - 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x2d, - 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, - 0x11, 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x57, 0x72, 0x69, 0x74, - 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, - 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x1a, - 0x33, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x4b, 0x65, - 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, - 0x61, 0x63, 0x65, 0x12, 0x25, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x1a, 0x2d, 0x2e, 0x77, 0x61, 0x72, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0b, 0x4e, + 0x65, 0x77, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x25, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x28, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x30, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, - 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0d, 0x4e, 0x65, 0x77, 0x4b, 0x65, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, - 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, - 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2f, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x1a, 0x2d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, - 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x72, 0x0a, 0x10, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, 0x65, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x75, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x57, + 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, + 0x67, 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x57, 0x72, 0x69, 0x74, + 0x65, 0x72, 0x1a, 0x33, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, + 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x25, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, - 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, - 0x6c, 0x66, 0x69, 0x6c, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x4b, 0x65, 0x79, 0x12, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x1a, 0x2b, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x1a, 0x2d, 0x2e, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, + 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x28, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x30, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0e, 0x4e, 0x65, 0x77, 0x53, 0x69, 0x67, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, - 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x30, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, - 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, - 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x11, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0d, 0x4e, 0x65, + 0x77, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x2e, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, + 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x10, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, + 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, 0x65, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, + 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x09, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x1a, 0x2b, 0x2e, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0e, 0x4e, 0x65, 0x77, 0x53, + 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x2e, 0x77, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, + 0x4e, 0x65, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x11, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, + 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x2e, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, - 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, - 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, - 0x01, 0x42, 0xed, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x42, - 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 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, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x3b, - 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xa2, 0x02, 0x03, - 0x57, 0x57, 0x58, 0xaa, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x57, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xca, 0x02, 0x15, 0x57, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x33, 0xe2, 0x02, 0x21, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x3a, 0x3a, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, + 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xed, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x33, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 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, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x33, 0x3b, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, + 0xa2, 0x02, 0x03, 0x57, 0x57, 0x58, 0xaa, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xca, 0x02, + 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xe2, 0x02, 0x21, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, + 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x57, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/warden/warden/v1beta3/events.proto b/proto/warden/warden/v1beta3/events.proto index 156ef0149..ba363f938 100644 --- a/proto/warden/warden/v1beta3/events.proto +++ b/proto/warden/warden/v1beta3/events.proto @@ -36,6 +36,18 @@ message EventUpdateSpace { // id of the rule to be applied to every sign operation uint64 sign_rule_id = 3; + + // id of the rule to be applied to every approve admin operation + uint64 approve_admin_rule_id = 4; + + // id of the rule to be applied to every reject admin operation + uint64 reject_admin_rule_id = 5; + + // id of the rule to be applied to every approve sign operation + uint64 approve_sign_rule_id = 6; + + // id of the rule to be applied to every reject sign operation + uint64 reject_sign_rule_id = 7; } // EventAddSpaceOwner is emitted when a new owner is added @@ -114,6 +126,12 @@ message EventUpdateKey { // id of the rule to be applied to every sign operation uint64 rule_id = 2; + + // id of the rule to be applied to every approve sign operation + uint64 approve_rule_id = 3; + + // id of the rule to be applied to every reject sign operation + uint64 reject_rule_id = 4; } // EventNewSignRequest is emitted on new signature requests diff --git a/proto/warden/warden/v1beta3/tx.proto b/proto/warden/warden/v1beta3/tx.proto index 9144ee9eb..52b73eea1 100644 --- a/proto/warden/warden/v1beta3/tx.proto +++ b/proto/warden/warden/v1beta3/tx.proto @@ -145,6 +145,10 @@ message MsgUpdateSpace { uint64 admin_rule_id = 3; uint64 sign_rule_id = 4; uint64 nonce = 5; + uint64 approve_admin_rule_id = 6; + uint64 reject_admin_rule_id = 7; + uint64 approve_sign_rule_id = 8; + uint64 reject_sign_rule_id = 9; } message MsgUpdateSpaceResponse {} @@ -220,6 +224,8 @@ message MsgUpdateKey { string authority = 1; uint64 key_id = 2; uint64 rule_id = 3; + uint64 approve_rule_id = 4; + uint64 reject_rule_id = 5; } message MsgUpdateKeyResponse {} diff --git a/warden/x/act/keeper/actions.go b/warden/x/act/keeper/actions.go index 62f9370f2..994ba785e 100644 --- a/warden/x/act/keeper/actions.go +++ b/warden/x/act/keeper/actions.go @@ -3,6 +3,7 @@ package keeper import ( "context" "fmt" + "log" "runtime/debug" "cosmossdk.io/errors" @@ -35,6 +36,7 @@ var _ shield.Environment = ApproversEnv{} // result in the database. func (k Keeper) TryExecuteAction(ctx context.Context, act *types.Action) error { ready, err := k.checkActionReady(ctx, *act) + log.Printf("\nready %v\n", ready) if err != nil { return err } @@ -169,6 +171,7 @@ func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, time return nil, err } + // todo: make set of uniques mentions := append(approveMentions, rejectMentions...) // update the rule of this Action with the preprocessed expression diff --git a/warden/x/warden/keeper/msg_server_update_key.go b/warden/x/warden/keeper/msg_server_update_key.go index 9caa7f78a..fe3a40185 100644 --- a/warden/x/warden/keeper/msg_server_update_key.go +++ b/warden/x/warden/keeper/msg_server_update_key.go @@ -24,14 +24,30 @@ func (k msgServer) UpdateKey(ctx context.Context, msg *types.MsgUpdateKey) (*typ key.RuleId = msg.RuleId } + if key.ApproveRuleId != msg.ApproveRuleId { + if err = k.actKeeper.IsValidRule(ctx, msg.ApproveRuleId); err != nil { + return nil, err + } + key.ApproveRuleId = msg.ApproveRuleId + } + + if key.RejectRuleId != msg.RejectRuleId { + if err = k.actKeeper.IsValidRule(ctx, msg.RejectRuleId); err != nil { + return nil, err + } + key.RejectRuleId = msg.RejectRuleId + } + if err := k.KeysKeeper.Set(ctx, key); err != nil { return nil, err } sdkCtx := sdk.UnwrapSDKContext(ctx) if err := sdkCtx.EventManager().EmitTypedEvent(&types.EventUpdateKey{ - Id: key.Id, - RuleId: key.RuleId, + Id: key.Id, + RuleId: key.RuleId, + ApproveRuleId: key.ApproveRuleId, + RejectRuleId: key.RejectRuleId, }); err != nil { return nil, err } diff --git a/warden/x/warden/keeper/msg_server_update_space.go b/warden/x/warden/keeper/msg_server_update_space.go index ad909c7b6..c4046acd9 100644 --- a/warden/x/warden/keeper/msg_server_update_space.go +++ b/warden/x/warden/keeper/msg_server_update_space.go @@ -31,6 +31,34 @@ func (k msgServer) UpdateSpace(ctx context.Context, msg *types.MsgUpdateSpace) ( space.SignRuleId = msg.SignRuleId } + if msg.ApproveAdminRuleId != space.ApproveAdminRuleId { + if err := k.actKeeper.IsValidRule(ctx, msg.ApproveAdminRuleId); err != nil { + return nil, err + } + space.ApproveAdminRuleId = msg.ApproveAdminRuleId + } + + if msg.RejectAdminRuleId != space.RejectAdminRuleId { + if err := k.actKeeper.IsValidRule(ctx, msg.RejectAdminRuleId); err != nil { + return nil, err + } + space.RejectAdminRuleId = msg.RejectAdminRuleId + } + + if msg.ApproveSignRuleId != space.ApproveSignRuleId { + if err := k.actKeeper.IsValidRule(ctx, msg.ApproveSignRuleId); err != nil { + return nil, err + } + space.ApproveSignRuleId = msg.ApproveSignRuleId + } + + if msg.RejectSignRuleId != space.RejectSignRuleId { + if err := k.actKeeper.IsValidRule(ctx, msg.RejectSignRuleId); err != nil { + return nil, err + } + space.RejectSignRuleId = msg.RejectSignRuleId + } + if _, err := space.IncrementNonce(msg.Nonce); err != nil { return nil, err } diff --git a/warden/x/warden/types/v1beta3/events.pb.go b/warden/x/warden/types/v1beta3/events.pb.go index 319d36637..8b8e1bc8c 100644 --- a/warden/x/warden/types/v1beta3/events.pb.go +++ b/warden/x/warden/types/v1beta3/events.pb.go @@ -114,6 +114,14 @@ type EventUpdateSpace struct { AdminRuleId uint64 `protobuf:"varint,2,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` // id of the rule to be applied to every sign operation SignRuleId uint64 `protobuf:"varint,3,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` + // id of the rule to be applied to every approve admin operation + ApproveAdminRuleId uint64 `protobuf:"varint,4,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` + // id of the rule to be applied to every reject admin operation + RejectAdminRuleId uint64 `protobuf:"varint,5,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` + // id of the rule to be applied to every approve sign operation + ApproveSignRuleId uint64 `protobuf:"varint,6,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` + // id of the rule to be applied to every reject sign operation + RejectSignRuleId uint64 `protobuf:"varint,7,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` } func (m *EventUpdateSpace) Reset() { *m = EventUpdateSpace{} } @@ -170,6 +178,34 @@ func (m *EventUpdateSpace) GetSignRuleId() uint64 { return 0 } +func (m *EventUpdateSpace) GetApproveAdminRuleId() uint64 { + if m != nil { + return m.ApproveAdminRuleId + } + return 0 +} + +func (m *EventUpdateSpace) GetRejectAdminRuleId() uint64 { + if m != nil { + return m.RejectAdminRuleId + } + return 0 +} + +func (m *EventUpdateSpace) GetApproveSignRuleId() uint64 { + if m != nil { + return m.ApproveSignRuleId + } + return 0 +} + +func (m *EventUpdateSpace) GetRejectSignRuleId() uint64 { + if m != nil { + return m.RejectSignRuleId + } + return 0 +} + // EventAddSpaceOwner is emitted when a new owner is added type EventAddSpaceOwner struct { // id of the space being updated @@ -523,6 +559,10 @@ type EventUpdateKey struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id of the rule to be applied to every sign operation RuleId uint64 `protobuf:"varint,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + // id of the rule to be applied to every approve sign operation + ApproveRuleId uint64 `protobuf:"varint,3,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` + // id of the rule to be applied to every reject sign operation + RejectRuleId uint64 `protobuf:"varint,4,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` } func (m *EventUpdateKey) Reset() { *m = EventUpdateKey{} } @@ -572,6 +612,20 @@ func (m *EventUpdateKey) GetRuleId() uint64 { return 0 } +func (m *EventUpdateKey) GetApproveRuleId() uint64 { + if m != nil { + return m.ApproveRuleId + } + return 0 +} + +func (m *EventUpdateKey) GetRejectRuleId() uint64 { + if m != nil { + return m.RejectRuleId + } + return 0 +} + // EventNewSignRequest is emitted on new signature requests type EventNewSignRequest struct { // id of the signature request @@ -1063,53 +1117,59 @@ func init() { } var fileDescriptor_322e8707aae1015e = []byte{ - // 735 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x4d, 0x4f, 0xdb, 0x4a, - 0x14, 0x8d, 0x9d, 0x2f, 0xb8, 0x49, 0xd0, 0x93, 0x1f, 0xbc, 0x67, 0x78, 0x7a, 0x06, 0x4c, 0xa5, - 0xb2, 0x21, 0x51, 0x41, 0x5d, 0xb0, 0x0c, 0xa8, 0x54, 0x11, 0x12, 0x95, 0x4c, 0x3f, 0xa4, 0x6e, - 0x2c, 0xe3, 0xb9, 0x04, 0x37, 0x89, 0x9d, 0xfa, 0x83, 0xd4, 0x95, 0xba, 0xe8, 0xbe, 0x8b, 0xfe, - 0x89, 0x2e, 0xbb, 0xeb, 0x8f, 0x60, 0x55, 0xa1, 0xae, 0xba, 0xaa, 0x2a, 0xf8, 0x23, 0x95, 0x67, - 0xc6, 0xae, 0x8d, 0x93, 0x10, 0xd4, 0x55, 0x66, 0xee, 0x9c, 0xf1, 0xb9, 0xf7, 0xdc, 0x9b, 0x33, - 0xa0, 0x8e, 0x0c, 0x97, 0xa0, 0xdd, 0xe2, 0x3f, 0xe7, 0x0f, 0x4e, 0xd0, 0x37, 0x76, 0x5a, 0x78, - 0x8e, 0xb6, 0xef, 0x35, 0x87, 0xae, 0xe3, 0x3b, 0xd2, 0x12, 0x3b,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xcf, - 0x2b, 0x45, 0xf8, 0x78, 0xad, 0x14, 0x2e, 0xaf, 0x95, 0xc2, 0xf7, 0x6b, 0xa5, 0xf0, 0xf2, 0x71, - 0xd7, 0xf2, 0xcf, 0x82, 0x93, 0xa6, 0xe9, 0x0c, 0xf8, 0xab, 0xba, 0x45, 0x1f, 0x51, 0xd3, 0xe9, - 0xf3, 0xfd, 0x8d, 0x6d, 0xeb, 0x4d, 0xbc, 0x88, 0x4c, 0xc6, 0x8b, 0xdf, 0xe0, 0x93, 0x0a, 0xc5, - 0xed, 0xfc, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x09, 0x07, 0xe3, 0xce, 0x30, 0x08, 0x00, 0x00, + // 820 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcb, 0x6e, 0xd3, 0x40, + 0x14, 0x8d, 0x9d, 0x57, 0x7b, 0xf3, 0xa0, 0xb8, 0x0d, 0xa4, 0x45, 0xa4, 0xad, 0x5b, 0x41, 0x37, + 0x4d, 0xd4, 0x56, 0x2c, 0x58, 0xa6, 0x15, 0x45, 0x51, 0xa5, 0x22, 0xb9, 0x3c, 0x24, 0x36, 0x96, + 0xeb, 0xb9, 0x4d, 0x4d, 0x12, 0x3b, 0xd8, 0x4e, 0x43, 0x90, 0x58, 0xb0, 0x62, 0xc3, 0x82, 0x9f, + 0x60, 0xc9, 0x0e, 0x89, 0x5f, 0xe8, 0x0a, 0x55, 0xac, 0x58, 0x21, 0xd4, 0xfe, 0x08, 0xf2, 0xcc, + 0xd8, 0xb1, 0xf3, 0x6a, 0x2a, 0x56, 0x99, 0xb9, 0xf7, 0xcc, 0x9c, 0x33, 0xf7, 0x15, 0x83, 0xdc, + 0xd5, 0x6c, 0x82, 0x66, 0x85, 0xff, 0x9c, 0x6d, 0x1d, 0xa3, 0xab, 0xed, 0x54, 0xf0, 0x0c, 0x4d, + 0xd7, 0x29,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5d, 0xea, 0xe5, 0xd1, 0xf0, 0xa6, 0x1b, 0x87, 0xaf, 0x41, 0x8e, 0xb9, + 0xa2, 0x23, 0x25, 0xcb, 0x8d, 0x6c, 0xa6, 0x7c, 0x14, 0x78, 0x4d, 0x87, 0xe8, 0xe8, 0x00, 0x1f, + 0x62, 0x7b, 0xc4, 0x26, 0x27, 0x1d, 0xfc, 0x8c, 0x6c, 0xb7, 0xf8, 0xeb, 0xfb, 0xe6, 0x02, 0xff, + 0x3b, 0xaf, 0x12, 0x62, 0xa3, 0xe3, 0x1c, 0xb9, 0xb6, 0x61, 0xd6, 0xe9, 0x4c, 0x65, 0xd7, 0xac, + 0x42, 0x96, 0x1e, 0x19, 0x98, 0x6b, 0xcc, 0xc6, 0x34, 0x7c, 0x80, 0x62, 0x68, 0xa6, 0x4e, 0x56, + 0x51, 0x86, 0xe4, 0x74, 0x0a, 0x18, 0x6c, 0x0a, 0xfa, 0x5d, 0xed, 0xfc, 0xb2, 0x24, 0x5c, 0x5c, + 0x96, 0x84, 0xbf, 0x97, 0x25, 0xe1, 0xcb, 0x55, 0x29, 0x76, 0x71, 0x55, 0x8a, 0xfd, 0xbe, 0x2a, + 0xc5, 0x5e, 0x3f, 0xad, 0x1b, 0xee, 0x69, 0xe7, 0xb8, 0xac, 0x5b, 0x2d, 0xfe, 0xa5, 0xb1, 0x49, + 0x3f, 0x2c, 0x74, 0xab, 0xc9, 0xf7, 0x03, 0xdb, 0xca, 0x3b, 0x7f, 0xe1, 0xcd, 0x2c, 0xc7, 0xff, + 0x2e, 0x39, 0x4e, 0x51, 0xdc, 0xce, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x73, 0x7d, 0xf3, + 0x44, 0x09, 0x00, 0x00, } func (m *EventCreateSpace) Marshal() (dAtA []byte, err error) { @@ -1182,6 +1242,26 @@ func (m *EventUpdateSpace) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.RejectSignRuleId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RejectSignRuleId)) + i-- + dAtA[i] = 0x38 + } + if m.ApproveSignRuleId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ApproveSignRuleId)) + i-- + dAtA[i] = 0x30 + } + if m.RejectAdminRuleId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RejectAdminRuleId)) + i-- + dAtA[i] = 0x28 + } + if m.ApproveAdminRuleId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ApproveAdminRuleId)) + i-- + dAtA[i] = 0x20 + } if m.SignRuleId != 0 { i = encodeVarintEvents(dAtA, i, uint64(m.SignRuleId)) i-- @@ -1431,6 +1511,16 @@ func (m *EventUpdateKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.RejectRuleId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RejectRuleId)) + i-- + dAtA[i] = 0x20 + } + if m.ApproveRuleId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ApproveRuleId)) + i-- + dAtA[i] = 0x18 + } if m.RuleId != 0 { i = encodeVarintEvents(dAtA, i, uint64(m.RuleId)) i-- @@ -1794,6 +1884,18 @@ func (m *EventUpdateSpace) Size() (n int) { if m.SignRuleId != 0 { n += 1 + sovEvents(uint64(m.SignRuleId)) } + if m.ApproveAdminRuleId != 0 { + n += 1 + sovEvents(uint64(m.ApproveAdminRuleId)) + } + if m.RejectAdminRuleId != 0 { + n += 1 + sovEvents(uint64(m.RejectAdminRuleId)) + } + if m.ApproveSignRuleId != 0 { + n += 1 + sovEvents(uint64(m.ApproveSignRuleId)) + } + if m.RejectSignRuleId != 0 { + n += 1 + sovEvents(uint64(m.RejectSignRuleId)) + } return n } @@ -1911,6 +2013,12 @@ func (m *EventUpdateKey) Size() (n int) { if m.RuleId != 0 { n += 1 + sovEvents(uint64(m.RuleId)) } + if m.ApproveRuleId != 0 { + n += 1 + sovEvents(uint64(m.ApproveRuleId)) + } + if m.RejectRuleId != 0 { + n += 1 + sovEvents(uint64(m.RejectRuleId)) + } return n } @@ -2296,6 +2404,82 @@ func (m *EventUpdateSpace) Unmarshal(dAtA []byte) error { break } } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + } + m.ApproveAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApproveAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + } + m.RejectAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RejectAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + } + m.ApproveSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApproveSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + } + m.RejectSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RejectSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipEvents(dAtA[iNdEx:]) @@ -3015,6 +3199,44 @@ func (m *EventUpdateKey) Unmarshal(dAtA []byte) error { break } } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + } + m.ApproveRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApproveRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + } + m.RejectRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RejectRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipEvents(dAtA[iNdEx:]) diff --git a/warden/x/warden/types/v1beta3/tx.pb.go b/warden/x/warden/types/v1beta3/tx.pb.go index 6ba50c257..0c6dcde84 100644 --- a/warden/x/warden/types/v1beta3/tx.pb.go +++ b/warden/x/warden/types/v1beta3/tx.pb.go @@ -674,11 +674,15 @@ func (m *MsgAddKeychainWriterResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAddKeychainWriterResponse proto.InternalMessageInfo type MsgUpdateSpace struct { - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` - AdminRuleId uint64 `protobuf:"varint,3,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - SignRuleId uint64 `protobuf:"varint,4,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` - Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` + AdminRuleId uint64 `protobuf:"varint,3,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` + SignRuleId uint64 `protobuf:"varint,4,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` + Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"` + ApproveAdminRuleId uint64 `protobuf:"varint,6,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` + RejectAdminRuleId uint64 `protobuf:"varint,7,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` + ApproveSignRuleId uint64 `protobuf:"varint,8,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` + RejectSignRuleId uint64 `protobuf:"varint,9,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` } func (m *MsgUpdateSpace) Reset() { *m = MsgUpdateSpace{} } @@ -749,6 +753,34 @@ func (m *MsgUpdateSpace) GetNonce() uint64 { return 0 } +func (m *MsgUpdateSpace) GetApproveAdminRuleId() uint64 { + if m != nil { + return m.ApproveAdminRuleId + } + return 0 +} + +func (m *MsgUpdateSpace) GetRejectAdminRuleId() uint64 { + if m != nil { + return m.RejectAdminRuleId + } + return 0 +} + +func (m *MsgUpdateSpace) GetApproveSignRuleId() uint64 { + if m != nil { + return m.ApproveSignRuleId + } + return 0 +} + +func (m *MsgUpdateSpace) GetRejectSignRuleId() uint64 { + if m != nil { + return m.RejectSignRuleId + } + return 0 +} + type MsgUpdateSpaceResponse struct { } @@ -1432,9 +1464,11 @@ func (m *MsgFulfilKeyRequestResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgFulfilKeyRequestResponse proto.InternalMessageInfo type MsgUpdateKey struct { - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - KeyId uint64 `protobuf:"varint,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - RuleId uint64 `protobuf:"varint,3,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + KeyId uint64 `protobuf:"varint,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + RuleId uint64 `protobuf:"varint,3,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + ApproveRuleId uint64 `protobuf:"varint,4,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` + RejectRuleId uint64 `protobuf:"varint,5,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` } func (m *MsgUpdateKey) Reset() { *m = MsgUpdateKey{} } @@ -1491,6 +1525,20 @@ func (m *MsgUpdateKey) GetRuleId() uint64 { return 0 } +func (m *MsgUpdateKey) GetApproveRuleId() uint64 { + if m != nil { + return m.ApproveRuleId + } + return 0 +} + +func (m *MsgUpdateKey) GetRejectRuleId() uint64 { + if m != nil { + return m.RejectRuleId + } + return 0 +} + type MsgUpdateKeyResponse struct { } @@ -1895,107 +1943,112 @@ func init() { func init() { proto.RegisterFile("warden/warden/v1beta3/tx.proto", fileDescriptor_35889fa9428b2166) } var fileDescriptor_35889fa9428b2166 = []byte{ - // 1588 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xc6, 0x5f, 0xf1, 0xb3, 0x93, 0x26, 0x4b, 0xda, 0x3a, 0x6e, 0xe3, 0x58, 0x6e, 0x43, - 0xad, 0x44, 0xb1, 0x1b, 0x07, 0x90, 0xe8, 0x85, 0x36, 0xa0, 0xd2, 0x50, 0xa5, 0xa0, 0x2d, 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x83, 0x2c, 0x6d, 0x1e, 0x62, 0x4c, 0xa8, 0x36, 0xb9, 0xc6, 0x85, 0x88, 0x1c, 0x08, 0xa4, - 0x5c, 0xc7, 0x98, 0xec, 0x26, 0xfd, 0x4c, 0x50, 0xf2, 0xad, 0xd0, 0x9c, 0x5c, 0x86, 0x9c, 0x86, - 0x89, 0xea, 0x18, 0x1d, 0x9f, 0x35, 0x85, 0x14, 0x15, 0x15, 0x9e, 0x92, 0x17, 0x21, 0xe1, 0x39, - 0x66, 0x21, 0x4d, 0x57, 0xfc, 0x4f, 0x79, 0x15, 0xa0, 0x85, 0x7b, 0x7e, 0x21, 0xf3, 0x9d, 0x97, - 0x61, 0x9e, 0xe5, 0x33, 0x7b, 0xda, 0x20, 0xe3, 0xde, 0x4a, 0xce, 0x25, 0x16, 0x93, 0x95, 0x2a, - 0x9c, 0x19, 0x34, 0x3b, 0x92, 0x7a, 0x5d, 0x58, 0x66, 0x91, 0x0e, 0x90, 0xef, 0x3b, 0x86, 0x8b, - 0x9d, 0x18, 0x37, 0xad, 0x41, 0x4e, 0xb8, 0x44, 0x04, 0x13, 0x82, 0xa9, 0x3d, 0x4d, 0x3e, 0x03, - 0xe9, 0x2e, 0x3d, 0x84, 0x07, 0x94, 0x8f, 0x86, 0x52, 0xa3, 0x04, 0xe7, 0xc7, 0x09, 0x16, 0xa1, - 0xfb, 0x89, 0x85, 0x8e, 0x55, 0x00, 0x96, 0xe8, 0xcf, 0xcc, 0xb0, 0x91, 0x3a, 0x90, 0x98, 0x5c, - 0x07, 0x92, 0x23, 0x75, 0x40, 0x30, 0x32, 0x15, 0xc7, 0xc8, 0x02, 0x75, 0x7d, 0x48, 0x6d, 0x61, - 0xd1, 0x37, 0xb3, 0xb0, 0x24, 0x96, 0xa6, 0xe0, 0xe3, 0x44, 0x47, 0x07, 0x84, 0x4d, 0xc4, 0x11, - 0x36, 0xf5, 0x5c, 0x09, 0x9b, 0x8e, 0x24, 0x6c, 0x26, 0x8a, 0xb0,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, 0xe0, 0x40, 0x6c, 0x31, 0xf5, 0x89, 0xdf, 0x4e, 0x77, 0xd1, - 0xc3, 0xc7, 0x25, 0xe9, 0xd1, 0xe3, 0x92, 0xf4, 0xc7, 0xe3, 0x92, 0xf4, 0xd5, 0x93, 0xd2, 0xcc, - 0xa3, 0x27, 0xa5, 0x99, 0x5f, 0x9f, 0x94, 0x66, 0xee, 0xbc, 0x19, 0x6a, 0xd4, 0xec, 0xe0, 0x2d, - 0xfa, 0x2f, 0x49, 0xd5, 0x36, 0xf9, 0x78, 0x68, 0xd8, 0xff, 0x17, 0x20, 0xed, 0xe2, 0xc1, 0xbf, - 0x34, 0x0f, 0xd2, 0x14, 0xb7, 0xf3, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0xf2, 0x3e, 0x5b, - 0x2c, 0x16, 0x00, 0x00, + // 1677 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0xcf, 0x6f, 0x1b, 0xc5, + 0x1e, 0xcf, 0xfa, 0xb7, 0xbf, 0x76, 0x5c, 0x67, 0x9b, 0xb6, 0x8e, 0xdb, 0x38, 0x96, 0xdb, 0xb4, + 0x56, 0xa2, 0xd8, 0x8d, 0xf3, 0xde, 0x93, 0x5e, 0x2f, 0xaf, 0xcd, 0x43, 0xa5, 0xa1, 0x4a, 0x41, + 0x1b, 0x10, 0x52, 0x25, 0x64, 0x4d, 0xbc, 0x13, 0x77, 0xc9, 0x7a, 0xd7, 0xec, 0xec, 0xc6, 0x31, + 0x27, 0x40, 0x9c, 0x2a, 0x81, 0x10, 0x37, 0x38, 0x70, 0xe0, 0x54, 0x71, 0xca, 0x81, 0x13, 0x17, + 0xae, 0x3d, 0x56, 0x9c, 0x38, 0x01, 0x6a, 0x0f, 0xf9, 0x03, 0x10, 0x48, 0xdc, 0xd0, 0xce, 0xcc, + 0xae, 0x77, 0xd7, 0xde, 0x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+ 0x34, 0x75, 0x2c, 0x10, 0x0b, 0x10, 0x53, 0x64, 0xaa, 0x6c, 0x42, 0x8a, 0x29, 0x72, 0xed, 0x53, + 0x01, 0x8a, 0xbb, 0xa4, 0x7b, 0x4b, 0x96, 0x29, 0x8e, 0x1e, 0x25, 0x5e, 0x1a, 0x8b, 0x97, 0x37, + 0x2a, 0x4b, 0x90, 0x21, 0x36, 0x76, 0x64, 0x55, 0x9a, 0x8e, 0x77, 0x64, 0xf1, 0x22, 0x64, 0x35, + 0x3c, 0x60, 0x8a, 0x52, 0x73, 0xb2, 0x52, 0x46, 0xc3, 0x03, 0x76, 0xea, 0x22, 0x24, 0x35, 0x5d, + 0xeb, 0xe0, 0x52, 0x82, 0x6e, 0x62, 0x83, 0x1b, 0x05, 0x7f, 0x84, 0x6a, 0x65, 0x28, 0x05, 0xf5, + 0x71, 0xdd, 0xff, 0x50, 0xa0, 0x46, 0x49, 0xb8, 0xa7, 0x1f, 0xe1, 0x97, 0xa1, 0xef, 0x22, 0x24, + 0xbd, 0xba, 0xb2, 0xc1, 0x8c, 0x8a, 0x2e, 0xc3, 0xc5, 0x09, 0xba, 0xb8, 0xba, 0xfe, 0x26, 0x40, + 0x81, 0x05, 0xe0, 0x2e, 0xe7, 0x5a, 0x44, 0xb6, 0x88, 0x90, 0xd0, 0x50, 0x0f, 0x53, 0xf5, 0xb2, + 0x12, 0xfd, 0x16, 0xef, 0xc1, 0xbc, 0xc3, 0xd2, 0xf6, 0x01, 0xc6, 0x84, 0x6a, 0x93, 0x6b, 0x5d, + 0x0e, 0xe1, 0x80, 0x23, 0xe5, 0x36, 0xc6, 0x64, 0x3b, 0x61, 0x33, 0x41, 0xca, 0x1f, 0x7a, 0xe6, + 0xc4, 0x2a, 0xe4, 0x64, 0x4c, 0x3a, 0x86, 0xd2, 0xb7, 0xb3, 0xa6, 0x94, 0xa4, 0xa2, 0xbc, 0x53, + 0x62, 0x11, 0xe2, 0x96, 0xa1, 0x96, 0x52, 0x74, 0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x1b, 0xc3, 0xee, 0x05, 0xe2, 0x3b, 0x90, 0x1d, 0xdd, 0x09, 0x2e, 0xcf, 0xe0, 0x9d, + 0xf2, 0xfa, 0x0c, 0x20, 0x6f, 0xac, 0x02, 0xdd, 0xb9, 0x1e, 0x5d, 0x09, 0x46, 0xc8, 0xa8, 0x58, + 0x85, 0x34, 0x1f, 0x0b, 0x16, 0xc6, 0xdb, 0xc6, 0xfa, 0x34, 0xaf, 0x78, 0x65, 0x6e, 0x3d, 0x07, + 0xd8, 0x11, 0x5b, 0x4e, 0x7e, 0x60, 0xb7, 0xd3, 0x6d, 0xf4, 0xf8, 0x69, 0x45, 0x78, 0xf2, 0xb4, + 0x22, 0xfc, 0xf2, 0xb4, 0x22, 0x7c, 0xf6, 0xac, 0x32, 0xf7, 0xe4, 0x59, 0x65, 0xee, 0xc7, 0x67, + 0x95, 0xb9, 0xfb, 0xaf, 0x7a, 0x1a, 0x35, 0x3b, 0x78, 0x83, 0xfe, 0x97, 0xb6, 0xa3, 0xab, 0x7c, + 0x1c, 0x18, 0x8e, 0xfe, 0x2b, 0x4a, 0xbb, 0xb8, 0xf3, 0x5f, 0xde, 0xfd, 0x14, 0xc5, 0x6d, 0xfd, + 0x19, 0x00, 0x00, 0xff, 0xff, 0x48, 0x9f, 0x7b, 0x5c, 0x3f, 0x17, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3000,6 +3053,26 @@ func (m *MsgUpdateSpace) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.RejectSignRuleId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RejectSignRuleId)) + i-- + dAtA[i] = 0x48 + } + if m.ApproveSignRuleId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ApproveSignRuleId)) + i-- + dAtA[i] = 0x40 + } + if m.RejectAdminRuleId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RejectAdminRuleId)) + i-- + dAtA[i] = 0x38 + } + if m.ApproveAdminRuleId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ApproveAdminRuleId)) + i-- + dAtA[i] = 0x30 + } if m.Nonce != 0 { i = encodeVarintTx(dAtA, i, uint64(m.Nonce)) i-- @@ -3533,6 +3606,16 @@ func (m *MsgUpdateKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.RejectRuleId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RejectRuleId)) + i-- + dAtA[i] = 0x28 + } + if m.ApproveRuleId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ApproveRuleId)) + i-- + dAtA[i] = 0x20 + } if m.RuleId != 0 { i = encodeVarintTx(dAtA, i, uint64(m.RuleId)) i-- @@ -4048,6 +4131,18 @@ func (m *MsgUpdateSpace) Size() (n int) { if m.Nonce != 0 { n += 1 + sovTx(uint64(m.Nonce)) } + if m.ApproveAdminRuleId != 0 { + n += 1 + sovTx(uint64(m.ApproveAdminRuleId)) + } + if m.RejectAdminRuleId != 0 { + n += 1 + sovTx(uint64(m.RejectAdminRuleId)) + } + if m.ApproveSignRuleId != 0 { + n += 1 + sovTx(uint64(m.ApproveSignRuleId)) + } + if m.RejectSignRuleId != 0 { + n += 1 + sovTx(uint64(m.RejectSignRuleId)) + } return n } @@ -4289,6 +4384,12 @@ func (m *MsgUpdateKey) Size() (n int) { if m.RuleId != 0 { n += 1 + sovTx(uint64(m.RuleId)) } + if m.ApproveRuleId != 0 { + n += 1 + sovTx(uint64(m.ApproveRuleId)) + } + if m.RejectRuleId != 0 { + n += 1 + sovTx(uint64(m.RejectRuleId)) + } return n } @@ -5846,6 +5947,82 @@ func (m *MsgUpdateSpace) Unmarshal(dAtA []byte) error { break } } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + } + m.ApproveAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApproveAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + } + m.RejectAdminRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RejectAdminRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + } + m.ApproveSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApproveSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + } + m.RejectSignRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RejectSignRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -7295,6 +7472,44 @@ func (m *MsgUpdateKey) Unmarshal(dAtA []byte) error { break } } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + } + m.ApproveRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApproveRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + } + m.RejectRuleId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RejectRuleId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) From 969aaa3e0fb6b77ac2417cef2a4cba0033645968 Mon Sep 17 00:00:00 2001 From: Maks Nabokov Date: Tue, 10 Sep 2024 14:02:26 +0300 Subject: [PATCH 04/18] fix tests --- tests/cases/approve_any_3_action.go | 11 +++++++---- tests/cases/owner_approve_action.go | 22 ++++++++++++++-------- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/tests/cases/approve_any_3_action.go b/tests/cases/approve_any_3_action.go index 1c58df0cf..2d8ff3501 100644 --- a/tests/cases/approve_any_3_action.go +++ b/tests/cases/approve_any_3_action.go @@ -50,19 +50,22 @@ func (c *Test_ApproveAny3Action) Run(t *testing.T, ctx context.Context, _ framew checks.SuccessTx(t, resAddOwner2) client.EnsureSpaceAmount(t, ctx, charlie.Address(t), 1) - resNewRule := alice.Tx(t, "act new-rule --name approve_requires_three --definition \"any(3, warden.space.owners)\"") + newApproveRuleDefinition := "\"any(3, warden.space.owners)\"" + resNewRule := alice.Tx(t, "act new-rule --name approve_requires_three --definition "+newApproveRuleDefinition) checks.SuccessTx(t, resNewRule) - resUpdateSpaceAdminRuleByAlice := alice.Tx(t, "warden new-action update-space --space-id 1 --admin-rule-id 1 --nonce 2") //3 + resUpdateSpaceAdminRuleByAlice := alice.Tx(t, "warden new-action update-space --space-id 1 --approve-admin-rule-id 1 --nonce 2") //3 checks.SuccessTx(t, resUpdateSpaceAdminRuleByAlice) spaceAfterValidApprove, err := client.Warden.SpaceById(ctx, &types.QuerySpaceByIdRequest{ Id: 1, }) require.NoError(t, err) - require.Equal(t, uint64(1), spaceAfterValidApprove.Space.AdminRuleId) + require.Equal(t, uint64(1), spaceAfterValidApprove.Space.ApproveAdminRuleId) - resAliceAddOwnerDave := alice.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, dave.Address(t), 3)) //4 + addNewOwnerCommandTemplate = "warden new-action add-space-owner --space-id %d --new-owner %s --nonce %d --expected-approve-expression %s" + + resAliceAddOwnerDave := alice.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, dave.Address(t), 3, newApproveRuleDefinition)) //4 checks.SuccessTx(t, resAliceAddOwnerDave) client.EnsureSpaceAmount(t, ctx, dave.Address(t), 0) diff --git a/tests/cases/owner_approve_action.go b/tests/cases/owner_approve_action.go index a752109b8..a8a8877fc 100644 --- a/tests/cases/owner_approve_action.go +++ b/tests/cases/owner_approve_action.go @@ -3,10 +3,11 @@ package cases import ( "context" "fmt" + "testing" + sdk "github.com/cosmos/cosmos-sdk/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" - "testing" "github.com/stretchr/testify/require" @@ -49,28 +50,33 @@ func (c *Test_OwnerApproveAction) Run(t *testing.T, ctx context.Context, _ frame checks.SuccessTx(t, resApproveBob) client.EnsureSpaceAmount(t, ctx, bob.Address(t), 1) - resNewRule := alice.Tx(t, "act new-rule --name approve_requires_two --definition \"any(2, warden.space.owners)\"") + newApproveRuleDefinition := "\"any(2, warden.space.owners)\"" + resNewRule := alice.Tx(t, "act new-rule --name approve_requires_two --definition "+newApproveRuleDefinition) checks.SuccessTx(t, resNewRule) - resUpdateSpaceAdminRuleByCharlie := charlie.Tx(t, "warden new-action update-space --space-id 1 --admin-rule-id 1 --nonce 1") + updateSpaceApproveAdminRuleIdCommand := "warden new-action update-space --space-id 1 --approve-admin-rule-id 1 --nonce 1" + + resUpdateSpaceAdminRuleByCharlie := charlie.Tx(t, updateSpaceApproveAdminRuleIdCommand) checks.SuccessTx(t, resUpdateSpaceAdminRuleByCharlie) spaceAfterInvalidApprove, err := client.Warden.SpaceById(ctx, &types.QuerySpaceByIdRequest{ Id: 1, }) require.NoError(t, err) - require.Equal(t, uint64(0), spaceAfterInvalidApprove.Space.AdminRuleId) + require.Equal(t, uint64(0), spaceAfterInvalidApprove.Space.ApproveAdminRuleId) - resUpdateSpaceAdminRuleByAlice := alice.Tx(t, "warden new-action update-space --space-id 1 --admin-rule-id 1 --nonce 1") + resUpdateSpaceAdminRuleByAlice := alice.Tx(t, updateSpaceApproveAdminRuleIdCommand) checks.SuccessTx(t, resUpdateSpaceAdminRuleByAlice) spaceAfterValidApprove, err := client.Warden.SpaceById(ctx, &types.QuerySpaceByIdRequest{ Id: 1, }) require.NoError(t, err) - require.Equal(t, uint64(1), spaceAfterValidApprove.Space.AdminRuleId) + require.Equal(t, uint64(1), spaceAfterValidApprove.Space.ApproveAdminRuleId) + + addNewOwnerCommandTemplate = "warden new-action add-space-owner --space-id %d --new-owner %s --nonce %d --expected-approve-expression %s" - resAliceAddOwnerCharlie := alice.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, charlie.Address(t), 2)) + resAliceAddOwnerCharlie := alice.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, charlie.Address(t), 2, newApproveRuleDefinition)) checks.SuccessTx(t, resAliceAddOwnerCharlie) client.EnsureSpaceAmount(t, ctx, charlie.Address(t), 0) @@ -78,7 +84,7 @@ func (c *Test_OwnerApproveAction) Run(t *testing.T, ctx context.Context, _ frame checks.SuccessTx(t, resApproveCharlie) client.EnsureSpaceAmount(t, ctx, charlie.Address(t), 1) - resCharlieAddOwnerDave := charlie.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, dave.Address(t), 3)) + resCharlieAddOwnerDave := charlie.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, dave.Address(t), 3, newApproveRuleDefinition)) checks.SuccessTx(t, resCharlieAddOwnerDave) client.EnsureSpaceAmount(t, ctx, dave.Address(t), 0) From c4d1310fab944e6d02f004ff0bf3890c709cc7bd Mon Sep 17 00:00:00 2001 From: Maks Nabokov Date: Tue, 10 Sep 2024 14:21:36 +0300 Subject: [PATCH 05/18] save mentions without duplicates --- warden/x/act/keeper/actions.go | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/warden/x/act/keeper/actions.go b/warden/x/act/keeper/actions.go index 994ba785e..9bea2d4dd 100644 --- a/warden/x/act/keeper/actions.go +++ b/warden/x/act/keeper/actions.go @@ -171,8 +171,20 @@ func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, time return nil, err } - // todo: make set of uniques - mentions := append(approveMentions, rejectMentions...) + mentions := approveMentions + + approveMentionsSet := make(map[string]struct{}) + + for _, approveMention := range approveMentions { + approveMentionsSet[approveMention] = struct{}{} + } + + for _, rejectMention := range rejectMentions { + _, exists := approveMentionsSet[rejectMention] + if !exists { + mentions = append(mentions, rejectMention) + } + } // update the rule of this Action with the preprocessed expression // todo: should be removed with removing Rule field in Action From cc649b87915e1c0008989431ecd505eb3308039e Mon Sep 17 00:00:00 2001 From: Maks Nabokov Date: Tue, 10 Sep 2024 14:40:16 +0300 Subject: [PATCH 06/18] fix unused err --- warden/x/warden/keeper/rules.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/warden/x/warden/keeper/rules.go b/warden/x/warden/keeper/rules.go index 8b081be18..22771a23e 100644 --- a/warden/x/warden/keeper/rules.go +++ b/warden/x/warden/keeper/rules.go @@ -65,8 +65,16 @@ func (k Keeper) newKeyRequestRule(ctx context.Context, msg *v1beta3.MsgNewKeyReq approveRule, err := k.getApproveNewKeyRequestRule(ctx, space) + if err != nil { + return acttypes.Rule{}, acttypes.Rule{}, err + } + rejectRule, err := k.getRejectNewKeyRequestRule(ctx, space) + if err != nil { + return acttypes.Rule{}, acttypes.Rule{}, err + } + return approveRule, rejectRule, nil } From 4699733204d4c1d641a5a8ea322f0f60751697b4 Mon Sep 17 00:00:00 2001 From: Maks Nabokov Date: Tue, 10 Sep 2024 14:43:39 +0300 Subject: [PATCH 07/18] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 826b42b33..dc11d3da8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,6 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * (evm) Using ethsecp256k1 signature for all transactions. Users should reimport their seeds to get new addresses. * (x/act) Introduce Votes and Approve/Reject expressions for Actions * (x/act) Add expected expressions to MsgAddAction +* (x/act) Set approve/reject expressions in MsgNewAction. Change rules registry to keep approve/reject expressions. ### Features (non-breaking) From a9097198927ac1b848f5c88c637ccb56049bdc6e Mon Sep 17 00:00:00 2001 From: Aleksandr Tretiakov Date: Wed, 11 Sep 2024 18:57:24 +0300 Subject: [PATCH 08/18] Renamed Rule to Template --- CHANGELOG.md | 1 + api/warden/act/v1beta1/action.pulsar.go | 165 +- api/warden/act/v1beta1/events.pulsar.go | 423 +++--- api/warden/act/v1beta1/genesis.pulsar.go | 119 +- api/warden/act/v1beta1/query.pulsar.go | 1324 +++++++++-------- api/warden/act/v1beta1/query_grpc.pb.go | 102 +- .../{rule.pulsar.go => template.pulsar.go} | 333 ++--- api/warden/act/v1beta1/tx.pulsar.go | 834 +++++------ api/warden/act/v1beta1/tx_grpc.pb.go | 76 +- api/warden/warden/v1beta3/events.pulsar.go | 956 ++++++------ api/warden/warden/v1beta3/key.pulsar.go | 296 ++-- api/warden/warden/v1beta3/space.pulsar.go | 399 ++--- api/warden/warden/v1beta3/tx.pulsar.go | 802 +++++----- cmd/wardend/cmd/gen-spaces.go | 12 +- docs/help-center/.spelling | 4 +- proto/warden/act/v1beta1/action.proto | 16 +- proto/warden/act/v1beta1/events.proto | 8 +- proto/warden/act/v1beta1/genesis.proto | 4 +- proto/warden/act/v1beta1/query.proto | 32 +- .../v1beta1/{rule.proto => template.proto} | 4 +- proto/warden/act/v1beta1/tx.proto | 14 +- proto/warden/warden/v1beta3/events.proto | 52 +- proto/warden/warden/v1beta3/key.proto | 22 +- proto/warden/warden/v1beta3/space.proto | 48 +- proto/warden/warden/v1beta3/tx.proto | 24 +- tests/cases/approve_any_3_action.go | 14 +- tests/cases/keychain_writers.go | 4 +- tests/cases/owner_approve_action.go | 24 +- warden/app/wasm-interop/custom_msg.go | 4 +- warden/testutil/keeper/act.go | 4 +- warden/x/act/keeper/actions.go | 22 +- warden/x/act/keeper/genesis.go | 10 +- warden/x/act/keeper/keeper.go | 22 +- warden/x/act/keeper/msg_server_new_action.go | 4 +- warden/x/act/keeper/msg_server_new_rule.go | 14 +- warden/x/act/keeper/msg_server_update_rule.go | 22 +- .../keeper/query_actions_by_address_test.go | 2 +- warden/x/act/keeper/query_rule_by_id.go | 6 +- warden/x/act/keeper/query_rules.go | 8 +- warden/x/act/keeper/query_simulate_rule.go | 4 +- .../x/act/keeper/query_simulate_rule_test.go | 8 +- warden/x/act/keeper/rules.go | 16 +- warden/x/act/migrations/v3/store.go | 22 +- warden/x/act/module/autocli.go | 6 +- warden/x/act/module/module.go | 14 +- warden/x/act/types/v1beta1/action.pb.go | 115 +- warden/x/act/types/v1beta1/codec.go | 4 +- warden/x/act/types/v1beta1/errors.go | 34 +- warden/x/act/types/v1beta1/events.pb.go | 154 +- warden/x/act/types/v1beta1/genesis.pb.go | 52 +- warden/x/act/types/v1beta1/keys.go | 4 +- warden/x/act/types/v1beta1/query.pb.go | 524 +++---- warden/x/act/types/v1beta1/query.pb.gw.go | 102 +- warden/x/act/types/v1beta1/registry.go | 44 +- warden/x/act/types/v1beta1/rule.go | 35 - warden/x/act/types/v1beta1/template.go | 35 + .../v1beta1/{rule.pb.go => template.pb.go} | 170 +-- warden/x/act/types/v1beta1/tx.pb.go | 364 ++--- warden/x/warden/keeper/keeper.go | 2 +- warden/x/warden/keeper/key_requests.go | 2 +- .../keeper/msg_server_fulfil_key_request.go | 2 +- .../keeper/msg_server_new_key_request.go | 4 +- .../x/warden/keeper/msg_server_new_space.go | 18 +- .../x/warden/keeper/msg_server_update_key.go | 26 +- .../warden/keeper/msg_server_update_space.go | 42 +- warden/x/warden/keeper/rules.go | 282 ---- warden/x/warden/keeper/templates.go | 282 ++++ warden/x/warden/migrations/v3/store.go | 14 +- warden/x/warden/types/expected_keepers.go | 6 +- warden/x/warden/types/v1beta3/events.pb.go | 392 ++--- warden/x/warden/types/v1beta3/key.pb.go | 188 +-- warden/x/warden/types/v1beta3/space.go | 54 +- warden/x/warden/types/v1beta3/space.pb.go | 199 +-- warden/x/warden/types/v1beta3/tx.pb.go | 460 +++--- wardenjs/proto/cosmos/group/v1/types.proto | 2 +- 75 files changed, 4972 insertions(+), 4940 deletions(-) rename api/warden/act/v1beta1/{rule.pulsar.go => template.pulsar.go} (64%) rename proto/warden/act/v1beta1/{rule.proto => template.proto} (80%) delete mode 100644 warden/x/act/types/v1beta1/rule.go create mode 100644 warden/x/act/types/v1beta1/template.go rename warden/x/act/types/v1beta1/{rule.pb.go => template.pb.go} (58%) delete mode 100644 warden/x/warden/keeper/rules.go create mode 100644 warden/x/warden/keeper/templates.go diff --git a/CHANGELOG.md b/CHANGELOG.md index dc11d3da8..a6bbfb781 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * (x/act) Introduce Votes and Approve/Reject expressions for Actions * (x/act) Add expected expressions to MsgAddAction * (x/act) Set approve/reject expressions in MsgNewAction. Change rules registry to keep approve/reject expressions. +* (x/act) Rename `Rule` to `Template` ### Features (non-breaking) diff --git a/api/warden/act/v1beta1/action.pulsar.go b/api/warden/act/v1beta1/action.pulsar.go index e2b8f04ae..77c1dad96 100644 --- a/api/warden/act/v1beta1/action.pulsar.go +++ b/api/warden/act/v1beta1/action.pulsar.go @@ -675,7 +675,7 @@ var ( fd_Action_timeout_height protoreflect.FieldDescriptor fd_Action_created_at protoreflect.FieldDescriptor fd_Action_updated_at protoreflect.FieldDescriptor - fd_Action_rule protoreflect.FieldDescriptor + fd_Action_template protoreflect.FieldDescriptor fd_Action_mentions protoreflect.FieldDescriptor fd_Action_approve_expression protoreflect.FieldDescriptor fd_Action_reject_expression protoreflect.FieldDescriptor @@ -694,7 +694,7 @@ func init() { fd_Action_timeout_height = md_Action.Fields().ByName("timeout_height") fd_Action_created_at = md_Action.Fields().ByName("created_at") fd_Action_updated_at = md_Action.Fields().ByName("updated_at") - fd_Action_rule = md_Action.Fields().ByName("rule") + fd_Action_template = md_Action.Fields().ByName("template") fd_Action_mentions = md_Action.Fields().ByName("mentions") fd_Action_approve_expression = md_Action.Fields().ByName("approve_expression") fd_Action_reject_expression = md_Action.Fields().ByName("reject_expression") @@ -820,9 +820,9 @@ func (x *fastReflection_Action) Range(f func(protoreflect.FieldDescriptor, proto return } } - if x.Rule != nil { - value := protoreflect.ValueOfMessage(x.Rule.ProtoReflect()) - if !f(fd_Action_rule, value) { + if x.Template != nil { + value := protoreflect.ValueOfMessage(x.Template.ProtoReflect()) + if !f(fd_Action_template, value) { return } } @@ -883,8 +883,8 @@ func (x *fastReflection_Action) Has(fd protoreflect.FieldDescriptor) bool { return x.CreatedAt != nil case "warden.act.v1beta1.Action.updated_at": return x.UpdatedAt != nil - case "warden.act.v1beta1.Action.rule": - return x.Rule != nil + case "warden.act.v1beta1.Action.template": + return x.Template != nil case "warden.act.v1beta1.Action.mentions": return len(x.Mentions) != 0 case "warden.act.v1beta1.Action.approve_expression": @@ -927,8 +927,8 @@ func (x *fastReflection_Action) Clear(fd protoreflect.FieldDescriptor) { x.CreatedAt = nil case "warden.act.v1beta1.Action.updated_at": x.UpdatedAt = nil - case "warden.act.v1beta1.Action.rule": - x.Rule = nil + case "warden.act.v1beta1.Action.template": + x.Template = nil case "warden.act.v1beta1.Action.mentions": x.Mentions = nil case "warden.act.v1beta1.Action.approve_expression": @@ -983,8 +983,8 @@ func (x *fastReflection_Action) Get(descriptor protoreflect.FieldDescriptor) pro case "warden.act.v1beta1.Action.updated_at": value := x.UpdatedAt return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "warden.act.v1beta1.Action.rule": - value := x.Rule + case "warden.act.v1beta1.Action.template": + value := x.Template return protoreflect.ValueOfMessage(value.ProtoReflect()) case "warden.act.v1beta1.Action.mentions": if len(x.Mentions) == 0 { @@ -1044,8 +1044,8 @@ func (x *fastReflection_Action) Set(fd protoreflect.FieldDescriptor, value proto x.CreatedAt = value.Message().Interface().(*timestamppb.Timestamp) case "warden.act.v1beta1.Action.updated_at": x.UpdatedAt = value.Message().Interface().(*timestamppb.Timestamp) - case "warden.act.v1beta1.Action.rule": - x.Rule = value.Message().Interface().(*Rule) + case "warden.act.v1beta1.Action.template": + x.Template = value.Message().Interface().(*Template) case "warden.act.v1beta1.Action.mentions": lv := value.List() clv := lv.(*_Action_12_list) @@ -1104,11 +1104,11 @@ func (x *fastReflection_Action) Mutable(fd protoreflect.FieldDescriptor) protore x.UpdatedAt = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.UpdatedAt.ProtoReflect()) - case "warden.act.v1beta1.Action.rule": - if x.Rule == nil { - x.Rule = new(Rule) + case "warden.act.v1beta1.Action.template": + if x.Template == nil { + x.Template = new(Template) } - return protoreflect.ValueOfMessage(x.Rule.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Template.ProtoReflect()) case "warden.act.v1beta1.Action.mentions": if x.Mentions == nil { x.Mentions = []string{} @@ -1175,8 +1175,8 @@ func (x *fastReflection_Action) NewField(fd protoreflect.FieldDescriptor) protor case "warden.act.v1beta1.Action.updated_at": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "warden.act.v1beta1.Action.rule": - m := new(Rule) + case "warden.act.v1beta1.Action.template": + m := new(Template) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "warden.act.v1beta1.Action.mentions": list := []string{} @@ -1294,8 +1294,8 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { l = options.Size(x.UpdatedAt) n += 1 + l + runtime.Sov(uint64(l)) } - if x.Rule != nil { - l = options.Size(x.Rule) + if x.Template != nil { + l = options.Size(x.Template) n += 1 + l + runtime.Sov(uint64(l)) } if len(x.Mentions) > 0 { @@ -1400,8 +1400,8 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x62 } } - if x.Rule != nil { - encoded, err := options.Marshal(x.Rule) + if x.Template != nil { + encoded, err := options.Marshal(x.Template) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1826,7 +1826,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 11: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1853,10 +1853,10 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Rule == nil { - x.Rule = &Rule{} + if x.Template == nil { + x.Template = &Template{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Rule); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Template); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -2054,7 +2054,7 @@ const ( ActionStatus_ACTION_STATUS_UNSPECIFIED ActionStatus = 0 // Action is pending approval. This is the initial status. ActionStatus_ACTION_STATUS_PENDING ActionStatus = 1 - // Rule has been satified, action has been executed. + // Template has been satified, action has been executed. ActionStatus_ACTION_STATUS_COMPLETED ActionStatus = 2 // Action has been revoked by its creator. ActionStatus_ACTION_STATUS_REVOKED ActionStatus = 3 @@ -2152,7 +2152,7 @@ func (x *Approver) GetApprovedAt() *timestamppb.Timestamp { return nil } -// Action wraps a message that will be executed when its associated rule is +// Action wraps a message that will be executed when its associated template is // satisfied. type Action struct { state protoimpl.MessageState @@ -2163,7 +2163,7 @@ type Action struct { Approvers []*Approver `protobuf:"bytes,2,rep,name=approvers,proto3" json:"approvers,omitempty"` Status ActionStatus `protobuf:"varint,3,opt,name=status,proto3,enum=warden.act.v1beta1.ActionStatus" json:"status,omitempty"` // Original message that started the action, it will be executed when the - // rule is satisfied. + // template is satisfied. Msg *anypb.Any `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"` // Result of the action, it will be set when the action is completed. Result *anypb.Any `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"` @@ -2174,11 +2174,11 @@ type Action struct { CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // updated_at is a timestamp specifying when the action's status was updated UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - // rule is the condition that this action is associated with. Instead of - // storing the rule ID, we store the entire Rule object so that is immutable + // template is the condition that this action is associated with. Instead of + // storing the template ID, we store the entire Template object so that is immutable // and cannot be changed later. - Rule *Rule `protobuf:"bytes,11,opt,name=rule,proto3" json:"rule,omitempty"` - // mentions is a list of addresses that are mentioned in the rule. + Template *Template `protobuf:"bytes,11,opt,name=template,proto3" json:"template,omitempty"` + // mentions is a list of addresses that are mentioned in the template. Mentions []string `protobuf:"bytes,12,rep,name=mentions,proto3" json:"mentions,omitempty"` // The expression to be evaluated for approval. ApproveExpression *ast.Expression `protobuf:"bytes,13,opt,name=approve_expression,json=approveExpression,proto3" json:"approve_expression,omitempty"` @@ -2271,9 +2271,9 @@ func (x *Action) GetUpdatedAt() *timestamppb.Timestamp { return nil } -func (x *Action) GetRule() *Rule { +func (x *Action) GetTemplate() *Template { if x != nil { - return x.Rule + return x.Template } return nil } @@ -2320,49 +2320,50 @@ var file_warden_act_v1beta1_action_proto_rawDesc = []byte{ 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, 0x1a, 0x14, 0x73, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x2f, 0x61, 0x73, 0x74, 0x2f, 0x61, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1d, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x24, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x70, 0x0a, 0x08, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, - 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4a, 0x0a, 0x0b, 0x61, - 0x70, 0x70, 0x72, 0x6f, 0x76, 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, 0x0a, 0x61, 0x70, 0x70, - 0x72, 0x6f, 0x76, 0x65, 0x64, 0x41, 0x74, 0x22, 0xd7, 0x05, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, - 0x76, 0x65, 0x72, 0x52, 0x09, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x73, 0x12, 0x38, - 0x0a, 0x06, 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, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x03, 0x6d, 0x73, 0x67, - 0x12, 0x2c, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x69, 0x6d, 0x65, - 0x6f, 0x75, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0d, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, - 0x48, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 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, 0x09, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x48, 0x0a, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 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, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x64, 0x41, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x6e, 0x74, 0x69, + 0x1a, 0x21, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, + 0x6f, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x70, 0x0a, 0x08, 0x41, 0x70, 0x70, + 0x72, 0x6f, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x4a, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 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, + 0x0a, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x64, 0x41, 0x74, 0x22, 0xe3, 0x05, 0x0a, 0x06, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, + 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, + 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x09, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, + 0x72, 0x73, 0x12, 0x38, 0x0a, 0x06, 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, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x03, + 0x6d, 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, + 0x03, 0x6d, 0x73, 0x67, 0x12, 0x2c, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, + 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x12, 0x48, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x09, 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, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x48, 0x0a, + 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 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, 0x09, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3e, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x74, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4b, 0x0a, 0x12, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, @@ -2424,7 +2425,7 @@ var file_warden_act_v1beta1_action_proto_goTypes = []interface{}{ (*Action)(nil), // 2: warden.act.v1beta1.Action (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp (*anypb.Any)(nil), // 4: google.protobuf.Any - (*Rule)(nil), // 5: warden.act.v1beta1.Rule + (*Template)(nil), // 5: warden.act.v1beta1.Template (*ast.Expression)(nil), // 6: shield.ast.Expression (*ActionVote)(nil), // 7: warden.act.v1beta1.ActionVote } @@ -2436,7 +2437,7 @@ var file_warden_act_v1beta1_action_proto_depIdxs = []int32{ 4, // 4: warden.act.v1beta1.Action.result:type_name -> google.protobuf.Any 3, // 5: warden.act.v1beta1.Action.created_at:type_name -> google.protobuf.Timestamp 3, // 6: warden.act.v1beta1.Action.updated_at:type_name -> google.protobuf.Timestamp - 5, // 7: warden.act.v1beta1.Action.rule:type_name -> warden.act.v1beta1.Rule + 5, // 7: warden.act.v1beta1.Action.template:type_name -> warden.act.v1beta1.Template 6, // 8: warden.act.v1beta1.Action.approve_expression:type_name -> shield.ast.Expression 6, // 9: warden.act.v1beta1.Action.reject_expression:type_name -> shield.ast.Expression 7, // 10: warden.act.v1beta1.Action.votes:type_name -> warden.act.v1beta1.ActionVote @@ -2452,7 +2453,7 @@ func file_warden_act_v1beta1_action_proto_init() { if File_warden_act_v1beta1_action_proto != nil { return } - file_warden_act_v1beta1_rule_proto_init() + file_warden_act_v1beta1_template_proto_init() file_warden_act_v1beta1_action_vote_proto_init() if !protoimpl.UnsafeEnabled { file_warden_act_v1beta1_action_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { diff --git a/api/warden/act/v1beta1/events.pulsar.go b/api/warden/act/v1beta1/events.pulsar.go index 2ac8871bf..df24b6d80 100644 --- a/api/warden/act/v1beta1/events.pulsar.go +++ b/api/warden/act/v1beta1/events.pulsar.go @@ -13,27 +13,27 @@ import ( ) var ( - md_EventCreateRule protoreflect.MessageDescriptor - fd_EventCreateRule_id protoreflect.FieldDescriptor - fd_EventCreateRule_creator protoreflect.FieldDescriptor + md_EventCreateTemplate protoreflect.MessageDescriptor + fd_EventCreateTemplate_id protoreflect.FieldDescriptor + fd_EventCreateTemplate_creator protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_events_proto_init() - md_EventCreateRule = File_warden_act_v1beta1_events_proto.Messages().ByName("EventCreateRule") - fd_EventCreateRule_id = md_EventCreateRule.Fields().ByName("id") - fd_EventCreateRule_creator = md_EventCreateRule.Fields().ByName("creator") + md_EventCreateTemplate = File_warden_act_v1beta1_events_proto.Messages().ByName("EventCreateTemplate") + fd_EventCreateTemplate_id = md_EventCreateTemplate.Fields().ByName("id") + fd_EventCreateTemplate_creator = md_EventCreateTemplate.Fields().ByName("creator") } -var _ protoreflect.Message = (*fastReflection_EventCreateRule)(nil) +var _ protoreflect.Message = (*fastReflection_EventCreateTemplate)(nil) -type fastReflection_EventCreateRule EventCreateRule +type fastReflection_EventCreateTemplate EventCreateTemplate -func (x *EventCreateRule) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventCreateRule)(x) +func (x *EventCreateTemplate) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventCreateTemplate)(x) } -func (x *EventCreateRule) slowProtoReflect() protoreflect.Message { +func (x *EventCreateTemplate) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_events_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -45,43 +45,43 @@ func (x *EventCreateRule) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EventCreateRule_messageType fastReflection_EventCreateRule_messageType -var _ protoreflect.MessageType = fastReflection_EventCreateRule_messageType{} +var _fastReflection_EventCreateTemplate_messageType fastReflection_EventCreateTemplate_messageType +var _ protoreflect.MessageType = fastReflection_EventCreateTemplate_messageType{} -type fastReflection_EventCreateRule_messageType struct{} +type fastReflection_EventCreateTemplate_messageType struct{} -func (x fastReflection_EventCreateRule_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventCreateRule)(nil) +func (x fastReflection_EventCreateTemplate_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventCreateTemplate)(nil) } -func (x fastReflection_EventCreateRule_messageType) New() protoreflect.Message { - return new(fastReflection_EventCreateRule) +func (x fastReflection_EventCreateTemplate_messageType) New() protoreflect.Message { + return new(fastReflection_EventCreateTemplate) } -func (x fastReflection_EventCreateRule_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventCreateRule +func (x fastReflection_EventCreateTemplate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventCreateTemplate } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EventCreateRule) Descriptor() protoreflect.MessageDescriptor { - return md_EventCreateRule +func (x *fastReflection_EventCreateTemplate) Descriptor() protoreflect.MessageDescriptor { + return md_EventCreateTemplate } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventCreateRule) Type() protoreflect.MessageType { - return _fastReflection_EventCreateRule_messageType +func (x *fastReflection_EventCreateTemplate) Type() protoreflect.MessageType { + return _fastReflection_EventCreateTemplate_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventCreateRule) New() protoreflect.Message { - return new(fastReflection_EventCreateRule) +func (x *fastReflection_EventCreateTemplate) New() protoreflect.Message { + return new(fastReflection_EventCreateTemplate) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EventCreateRule) Interface() protoreflect.ProtoMessage { - return (*EventCreateRule)(x) +func (x *fastReflection_EventCreateTemplate) Interface() protoreflect.ProtoMessage { + return (*EventCreateTemplate)(x) } // Range iterates over every populated field in an undefined order, @@ -89,16 +89,16 @@ func (x *fastReflection_EventCreateRule) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_EventCreateRule) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_EventCreateTemplate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Id != uint64(0) { value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_EventCreateRule_id, value) { + if !f(fd_EventCreateTemplate_id, value) { return } } if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_EventCreateRule_creator, value) { + if !f(fd_EventCreateTemplate_creator, value) { return } } @@ -115,17 +115,17 @@ func (x *fastReflection_EventCreateRule) Range(f func(protoreflect.FieldDescript // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_EventCreateRule) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_EventCreateTemplate) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.EventCreateRule.id": + case "warden.act.v1beta1.EventCreateTemplate.id": return x.Id != uint64(0) - case "warden.act.v1beta1.EventCreateRule.creator": + case "warden.act.v1beta1.EventCreateTemplate.creator": return x.Creator != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventCreateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventCreateTemplate does not contain field %s", fd.FullName())) } } @@ -135,17 +135,17 @@ func (x *fastReflection_EventCreateRule) Has(fd protoreflect.FieldDescriptor) bo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateRule) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_EventCreateTemplate) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.EventCreateRule.id": + case "warden.act.v1beta1.EventCreateTemplate.id": x.Id = uint64(0) - case "warden.act.v1beta1.EventCreateRule.creator": + case "warden.act.v1beta1.EventCreateTemplate.creator": x.Creator = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventCreateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventCreateTemplate does not contain field %s", fd.FullName())) } } @@ -155,19 +155,19 @@ func (x *fastReflection_EventCreateRule) Clear(fd protoreflect.FieldDescriptor) // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventCreateRule) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventCreateTemplate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.EventCreateRule.id": + case "warden.act.v1beta1.EventCreateTemplate.id": value := x.Id return protoreflect.ValueOfUint64(value) - case "warden.act.v1beta1.EventCreateRule.creator": + case "warden.act.v1beta1.EventCreateTemplate.creator": value := x.Creator return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventCreateRule does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventCreateTemplate does not contain field %s", descriptor.FullName())) } } @@ -181,17 +181,17 @@ func (x *fastReflection_EventCreateRule) Get(descriptor protoreflect.FieldDescri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateRule) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_EventCreateTemplate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.EventCreateRule.id": + case "warden.act.v1beta1.EventCreateTemplate.id": x.Id = value.Uint() - case "warden.act.v1beta1.EventCreateRule.creator": + case "warden.act.v1beta1.EventCreateTemplate.creator": x.Creator = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventCreateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventCreateTemplate does not contain field %s", fd.FullName())) } } @@ -205,44 +205,44 @@ func (x *fastReflection_EventCreateRule) Set(fd protoreflect.FieldDescriptor, va // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateRule) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventCreateTemplate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.EventCreateRule.id": - panic(fmt.Errorf("field id of message warden.act.v1beta1.EventCreateRule is not mutable")) - case "warden.act.v1beta1.EventCreateRule.creator": - panic(fmt.Errorf("field creator of message warden.act.v1beta1.EventCreateRule is not mutable")) + case "warden.act.v1beta1.EventCreateTemplate.id": + panic(fmt.Errorf("field id of message warden.act.v1beta1.EventCreateTemplate is not mutable")) + case "warden.act.v1beta1.EventCreateTemplate.creator": + panic(fmt.Errorf("field creator of message warden.act.v1beta1.EventCreateTemplate is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventCreateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventCreateTemplate does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventCreateRule) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventCreateTemplate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.EventCreateRule.id": + case "warden.act.v1beta1.EventCreateTemplate.id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.act.v1beta1.EventCreateRule.creator": + case "warden.act.v1beta1.EventCreateTemplate.creator": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventCreateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventCreateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventCreateTemplate does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventCreateRule) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_EventCreateTemplate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.EventCreateRule", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.EventCreateTemplate", d.FullName())) } panic("unreachable") } @@ -250,7 +250,7 @@ func (x *fastReflection_EventCreateRule) WhichOneof(d protoreflect.OneofDescript // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventCreateRule) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_EventCreateTemplate) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -261,7 +261,7 @@ func (x *fastReflection_EventCreateRule) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreateRule) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_EventCreateTemplate) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -273,7 +273,7 @@ func (x *fastReflection_EventCreateRule) SetUnknown(fields protoreflect.RawField // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_EventCreateRule) IsValid() bool { +func (x *fastReflection_EventCreateTemplate) IsValid() bool { return x != nil } @@ -283,9 +283,9 @@ func (x *fastReflection_EventCreateRule) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_EventCreateRule) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_EventCreateTemplate) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventCreateRule) + x := input.Message.Interface().(*EventCreateTemplate) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -314,7 +314,7 @@ func (x *fastReflection_EventCreateRule) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventCreateRule) + x := input.Message.Interface().(*EventCreateTemplate) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -356,7 +356,7 @@ func (x *fastReflection_EventCreateRule) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventCreateRule) + x := input.Message.Interface().(*EventCreateTemplate) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -388,10 +388,10 @@ func (x *fastReflection_EventCreateRule) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreateRule: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreateTemplate: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreateRule: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreateTemplate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -481,25 +481,25 @@ func (x *fastReflection_EventCreateRule) ProtoMethods() *protoiface.Methods { } var ( - md_EventUpdateRule protoreflect.MessageDescriptor - fd_EventUpdateRule_id protoreflect.FieldDescriptor + md_EventUpdateTemplate protoreflect.MessageDescriptor + fd_EventUpdateTemplate_id protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_events_proto_init() - md_EventUpdateRule = File_warden_act_v1beta1_events_proto.Messages().ByName("EventUpdateRule") - fd_EventUpdateRule_id = md_EventUpdateRule.Fields().ByName("id") + md_EventUpdateTemplate = File_warden_act_v1beta1_events_proto.Messages().ByName("EventUpdateTemplate") + fd_EventUpdateTemplate_id = md_EventUpdateTemplate.Fields().ByName("id") } -var _ protoreflect.Message = (*fastReflection_EventUpdateRule)(nil) +var _ protoreflect.Message = (*fastReflection_EventUpdateTemplate)(nil) -type fastReflection_EventUpdateRule EventUpdateRule +type fastReflection_EventUpdateTemplate EventUpdateTemplate -func (x *EventUpdateRule) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventUpdateRule)(x) +func (x *EventUpdateTemplate) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventUpdateTemplate)(x) } -func (x *EventUpdateRule) slowProtoReflect() protoreflect.Message { +func (x *EventUpdateTemplate) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_events_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -511,43 +511,43 @@ func (x *EventUpdateRule) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EventUpdateRule_messageType fastReflection_EventUpdateRule_messageType -var _ protoreflect.MessageType = fastReflection_EventUpdateRule_messageType{} +var _fastReflection_EventUpdateTemplate_messageType fastReflection_EventUpdateTemplate_messageType +var _ protoreflect.MessageType = fastReflection_EventUpdateTemplate_messageType{} -type fastReflection_EventUpdateRule_messageType struct{} +type fastReflection_EventUpdateTemplate_messageType struct{} -func (x fastReflection_EventUpdateRule_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventUpdateRule)(nil) +func (x fastReflection_EventUpdateTemplate_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventUpdateTemplate)(nil) } -func (x fastReflection_EventUpdateRule_messageType) New() protoreflect.Message { - return new(fastReflection_EventUpdateRule) +func (x fastReflection_EventUpdateTemplate_messageType) New() protoreflect.Message { + return new(fastReflection_EventUpdateTemplate) } -func (x fastReflection_EventUpdateRule_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventUpdateRule +func (x fastReflection_EventUpdateTemplate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventUpdateTemplate } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EventUpdateRule) Descriptor() protoreflect.MessageDescriptor { - return md_EventUpdateRule +func (x *fastReflection_EventUpdateTemplate) Descriptor() protoreflect.MessageDescriptor { + return md_EventUpdateTemplate } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventUpdateRule) Type() protoreflect.MessageType { - return _fastReflection_EventUpdateRule_messageType +func (x *fastReflection_EventUpdateTemplate) Type() protoreflect.MessageType { + return _fastReflection_EventUpdateTemplate_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventUpdateRule) New() protoreflect.Message { - return new(fastReflection_EventUpdateRule) +func (x *fastReflection_EventUpdateTemplate) New() protoreflect.Message { + return new(fastReflection_EventUpdateTemplate) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EventUpdateRule) Interface() protoreflect.ProtoMessage { - return (*EventUpdateRule)(x) +func (x *fastReflection_EventUpdateTemplate) Interface() protoreflect.ProtoMessage { + return (*EventUpdateTemplate)(x) } // Range iterates over every populated field in an undefined order, @@ -555,10 +555,10 @@ func (x *fastReflection_EventUpdateRule) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_EventUpdateRule) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_EventUpdateTemplate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Id != uint64(0) { value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_EventUpdateRule_id, value) { + if !f(fd_EventUpdateTemplate_id, value) { return } } @@ -575,15 +575,15 @@ func (x *fastReflection_EventUpdateRule) Range(f func(protoreflect.FieldDescript // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_EventUpdateRule) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_EventUpdateTemplate) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.EventUpdateRule.id": + case "warden.act.v1beta1.EventUpdateTemplate.id": return x.Id != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateTemplate does not contain field %s", fd.FullName())) } } @@ -593,15 +593,15 @@ func (x *fastReflection_EventUpdateRule) Has(fd protoreflect.FieldDescriptor) bo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateRule) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_EventUpdateTemplate) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.EventUpdateRule.id": + case "warden.act.v1beta1.EventUpdateTemplate.id": x.Id = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateTemplate does not contain field %s", fd.FullName())) } } @@ -611,16 +611,16 @@ func (x *fastReflection_EventUpdateRule) Clear(fd protoreflect.FieldDescriptor) // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventUpdateRule) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventUpdateTemplate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.EventUpdateRule.id": + case "warden.act.v1beta1.EventUpdateTemplate.id": value := x.Id return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateRule does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateTemplate does not contain field %s", descriptor.FullName())) } } @@ -634,15 +634,15 @@ func (x *fastReflection_EventUpdateRule) Get(descriptor protoreflect.FieldDescri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateRule) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_EventUpdateTemplate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.EventUpdateRule.id": + case "warden.act.v1beta1.EventUpdateTemplate.id": x.Id = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateTemplate does not contain field %s", fd.FullName())) } } @@ -656,40 +656,40 @@ func (x *fastReflection_EventUpdateRule) Set(fd protoreflect.FieldDescriptor, va // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateRule) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventUpdateTemplate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.EventUpdateRule.id": - panic(fmt.Errorf("field id of message warden.act.v1beta1.EventUpdateRule is not mutable")) + case "warden.act.v1beta1.EventUpdateTemplate.id": + panic(fmt.Errorf("field id of message warden.act.v1beta1.EventUpdateTemplate is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateTemplate does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventUpdateRule) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventUpdateTemplate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.EventUpdateRule.id": + case "warden.act.v1beta1.EventUpdateTemplate.id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.EventUpdateTemplate does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventUpdateRule) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_EventUpdateTemplate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.EventUpdateRule", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.EventUpdateTemplate", d.FullName())) } panic("unreachable") } @@ -697,7 +697,7 @@ func (x *fastReflection_EventUpdateRule) WhichOneof(d protoreflect.OneofDescript // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventUpdateRule) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_EventUpdateTemplate) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -708,7 +708,7 @@ func (x *fastReflection_EventUpdateRule) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventUpdateRule) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_EventUpdateTemplate) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -720,7 +720,7 @@ func (x *fastReflection_EventUpdateRule) SetUnknown(fields protoreflect.RawField // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_EventUpdateRule) IsValid() bool { +func (x *fastReflection_EventUpdateTemplate) IsValid() bool { return x != nil } @@ -730,9 +730,9 @@ func (x *fastReflection_EventUpdateRule) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_EventUpdateRule) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_EventUpdateTemplate) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventUpdateRule) + x := input.Message.Interface().(*EventUpdateTemplate) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -757,7 +757,7 @@ func (x *fastReflection_EventUpdateRule) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventUpdateRule) + x := input.Message.Interface().(*EventUpdateTemplate) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -792,7 +792,7 @@ func (x *fastReflection_EventUpdateRule) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventUpdateRule) + x := input.Message.Interface().(*EventUpdateTemplate) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -824,10 +824,10 @@ func (x *fastReflection_EventUpdateRule) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateRule: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateTemplate: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateRule: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateTemplate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3253,8 +3253,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// EventCreateRule is emitted on Rule creation -type EventCreateRule struct { +// EventCreateTemplate is emitted on Template creation +type EventCreateTemplate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -3265,8 +3265,8 @@ type EventCreateRule struct { Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` } -func (x *EventCreateRule) Reset() { - *x = EventCreateRule{} +func (x *EventCreateTemplate) Reset() { + *x = EventCreateTemplate{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_events_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3274,33 +3274,33 @@ func (x *EventCreateRule) Reset() { } } -func (x *EventCreateRule) String() string { +func (x *EventCreateTemplate) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventCreateRule) ProtoMessage() {} +func (*EventCreateTemplate) ProtoMessage() {} -// Deprecated: Use EventCreateRule.ProtoReflect.Descriptor instead. -func (*EventCreateRule) Descriptor() ([]byte, []int) { +// Deprecated: Use EventCreateTemplate.ProtoReflect.Descriptor instead. +func (*EventCreateTemplate) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_events_proto_rawDescGZIP(), []int{0} } -func (x *EventCreateRule) GetId() uint64 { +func (x *EventCreateTemplate) GetId() uint64 { if x != nil { return x.Id } return 0 } -func (x *EventCreateRule) GetCreator() string { +func (x *EventCreateTemplate) GetCreator() string { if x != nil { return x.Creator } return "" } -// EventUpdateRule is emitted when Rule is updated -type EventUpdateRule struct { +// EventUpdateTemplate is emitted when Template is updated +type EventUpdateTemplate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -3309,8 +3309,8 @@ type EventUpdateRule struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } -func (x *EventUpdateRule) Reset() { - *x = EventUpdateRule{} +func (x *EventUpdateTemplate) Reset() { + *x = EventUpdateTemplate{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_events_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3318,18 +3318,18 @@ func (x *EventUpdateRule) Reset() { } } -func (x *EventUpdateRule) String() string { +func (x *EventUpdateTemplate) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventUpdateRule) ProtoMessage() {} +func (*EventUpdateTemplate) ProtoMessage() {} -// Deprecated: Use EventUpdateRule.ProtoReflect.Descriptor instead. -func (*EventUpdateRule) Descriptor() ([]byte, []int) { +// Deprecated: Use EventUpdateTemplate.ProtoReflect.Descriptor instead. +func (*EventUpdateTemplate) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_events_proto_rawDescGZIP(), []int{1} } -func (x *EventUpdateRule) GetId() uint64 { +func (x *EventUpdateTemplate) GetId() uint64 { if x != nil { return x.Id } @@ -3586,57 +3586,58 @@ var file_warden_act_v1beta1_events_proto_rawDesc = []byte{ 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3b, 0x0a, 0x0f, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x21, 0x0a, 0x0f, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3d, 0x0a, 0x11, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x40, 0x0a, 0x12, 0x45, - 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, - 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, + 0x6e, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3f, 0x0a, 0x13, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x25, 0x0a, + 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x02, 0x69, 0x64, 0x22, 0x3d, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x22, 0x40, 0x0a, 0x12, 0x45, 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, 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, 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, + 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, } var ( @@ -3653,8 +3654,8 @@ func file_warden_act_v1beta1_events_proto_rawDescGZIP() []byte { var file_warden_act_v1beta1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_warden_act_v1beta1_events_proto_goTypes = []interface{}{ - (*EventCreateRule)(nil), // 0: warden.act.v1beta1.EventCreateRule - (*EventUpdateRule)(nil), // 1: warden.act.v1beta1.EventUpdateRule + (*EventCreateTemplate)(nil), // 0: warden.act.v1beta1.EventCreateTemplate + (*EventUpdateTemplate)(nil), // 1: warden.act.v1beta1.EventUpdateTemplate (*EventCreateAction)(nil), // 2: warden.act.v1beta1.EventCreateAction (*EventApproveAction)(nil), // 3: warden.act.v1beta1.EventApproveAction (*EventActionVoted)(nil), // 4: warden.act.v1beta1.EventActionVoted @@ -3683,7 +3684,7 @@ func file_warden_act_v1beta1_events_proto_init() { file_warden_act_v1beta1_action_vote_proto_init() if !protoimpl.UnsafeEnabled { file_warden_act_v1beta1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventCreateRule); i { + switch v := v.(*EventCreateTemplate); i { case 0: return &v.state case 1: @@ -3695,7 +3696,7 @@ func file_warden_act_v1beta1_events_proto_init() { } } file_warden_act_v1beta1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventUpdateRule); i { + switch v := v.(*EventUpdateTemplate); i { case 0: return &v.state case 1: diff --git a/api/warden/act/v1beta1/genesis.pulsar.go b/api/warden/act/v1beta1/genesis.pulsar.go index acd5f62a9..d976d6796 100644 --- a/api/warden/act/v1beta1/genesis.pulsar.go +++ b/api/warden/act/v1beta1/genesis.pulsar.go @@ -68,7 +68,7 @@ func (x *_GenesisState_2_list) IsValid() bool { var _ protoreflect.List = (*_GenesisState_3_list)(nil) type _GenesisState_3_list struct { - list *[]*Rule + list *[]*Template } func (x *_GenesisState_3_list) Len() int { @@ -84,18 +84,18 @@ func (x *_GenesisState_3_list) Get(i int) protoreflect.Value { func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Rule) + concreteValue := valueUnwrapped.Interface().(*Template) (*x.list)[i] = concreteValue } func (x *_GenesisState_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Rule) + concreteValue := valueUnwrapped.Interface().(*Template) *x.list = append(*x.list, concreteValue) } func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value { - v := new(Rule) + v := new(Template) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -108,7 +108,7 @@ func (x *_GenesisState_3_list) Truncate(n int) { } func (x *_GenesisState_3_list) NewElement() protoreflect.Value { - v := new(Rule) + v := new(Template) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -117,10 +117,10 @@ func (x *_GenesisState_3_list) IsValid() bool { } var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_actions protoreflect.FieldDescriptor - fd_GenesisState_rules protoreflect.FieldDescriptor + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_actions protoreflect.FieldDescriptor + fd_GenesisState_templates protoreflect.FieldDescriptor ) func init() { @@ -128,7 +128,7 @@ func init() { md_GenesisState = File_warden_act_v1beta1_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_params = md_GenesisState.Fields().ByName("params") fd_GenesisState_actions = md_GenesisState.Fields().ByName("actions") - fd_GenesisState_rules = md_GenesisState.Fields().ByName("rules") + fd_GenesisState_templates = md_GenesisState.Fields().ByName("templates") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -208,9 +208,9 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } - if len(x.Rules) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.Rules}) - if !f(fd_GenesisState_rules, value) { + if len(x.Templates) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.Templates}) + if !f(fd_GenesisState_templates, value) { return } } @@ -233,8 +233,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return x.Params != nil case "warden.act.v1beta1.GenesisState.actions": return len(x.Actions) != 0 - case "warden.act.v1beta1.GenesisState.rules": - return len(x.Rules) != 0 + case "warden.act.v1beta1.GenesisState.templates": + return len(x.Templates) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.GenesisState")) @@ -255,8 +255,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.Params = nil case "warden.act.v1beta1.GenesisState.actions": x.Actions = nil - case "warden.act.v1beta1.GenesisState.rules": - x.Rules = nil + case "warden.act.v1beta1.GenesisState.templates": + x.Templates = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.GenesisState")) @@ -282,11 +282,11 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_2_list{list: &x.Actions} return protoreflect.ValueOfList(listValue) - case "warden.act.v1beta1.GenesisState.rules": - if len(x.Rules) == 0 { + case "warden.act.v1beta1.GenesisState.templates": + if len(x.Templates) == 0 { return protoreflect.ValueOfList(&_GenesisState_3_list{}) } - listValue := &_GenesisState_3_list{list: &x.Rules} + listValue := &_GenesisState_3_list{list: &x.Templates} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -314,10 +314,10 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_2_list) x.Actions = *clv.list - case "warden.act.v1beta1.GenesisState.rules": + case "warden.act.v1beta1.GenesisState.templates": lv := value.List() clv := lv.(*_GenesisState_3_list) - x.Rules = *clv.list + x.Templates = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.GenesisState")) @@ -349,11 +349,11 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_2_list{list: &x.Actions} return protoreflect.ValueOfList(value) - case "warden.act.v1beta1.GenesisState.rules": - if x.Rules == nil { - x.Rules = []*Rule{} + case "warden.act.v1beta1.GenesisState.templates": + if x.Templates == nil { + x.Templates = []*Template{} } - value := &_GenesisState_3_list{list: &x.Rules} + value := &_GenesisState_3_list{list: &x.Templates} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { @@ -374,8 +374,8 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "warden.act.v1beta1.GenesisState.actions": list := []*Action{} return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list}) - case "warden.act.v1beta1.GenesisState.rules": - list := []*Rule{} + case "warden.act.v1beta1.GenesisState.templates": + list := []*Template{} return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) default: if fd.IsExtension() { @@ -456,8 +456,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } - if len(x.Rules) > 0 { - for _, e := range x.Rules { + if len(x.Templates) > 0 { + for _, e := range x.Templates { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -491,9 +491,9 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Rules) > 0 { - for iNdEx := len(x.Rules) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Rules[iNdEx]) + if len(x.Templates) > 0 { + for iNdEx := len(x.Templates) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Templates[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -658,7 +658,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Templates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -685,8 +685,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Rules = append(x.Rules, &Rule{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Rules[len(x.Rules)-1]); err != nil { + x.Templates = append(x.Templates, &Template{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Templates[len(x.Templates)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -745,9 +745,9 @@ type GenesisState struct { unknownFields protoimpl.UnknownFields // params defines all the parameters of the module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - Actions []*Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` - Rules []*Rule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"` + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + Actions []*Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` + Templates []*Template `protobuf:"bytes,3,rep,name=templates,proto3" json:"templates,omitempty"` } func (x *GenesisState) Reset() { @@ -784,9 +784,9 @@ func (x *GenesisState) GetActions() []*Action { return nil } -func (x *GenesisState) GetRules() []*Rule { +func (x *GenesisState) GetTemplates() []*Template { if x != nil { - return x.Rules + return x.Templates } return nil } @@ -804,21 +804,22 @@ var file_warden_act_v1beta1_genesis_proto_rawDesc = []byte{ 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1d, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xc9, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, - 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x12, 0x3f, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1a, 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, 0x42, 0x09, 0xc8, - 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x39, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, - 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x42, 0xdd, 0x01, 0x0a, + 0x6f, 0x1a, 0x21, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd5, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, + 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x12, 0x3f, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 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, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x09, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x09, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x42, 0xdd, 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, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, @@ -853,12 +854,12 @@ var file_warden_act_v1beta1_genesis_proto_goTypes = []interface{}{ (*GenesisState)(nil), // 0: warden.act.v1beta1.GenesisState (*Params)(nil), // 1: warden.act.v1beta1.Params (*Action)(nil), // 2: warden.act.v1beta1.Action - (*Rule)(nil), // 3: warden.act.v1beta1.Rule + (*Template)(nil), // 3: warden.act.v1beta1.Template } var file_warden_act_v1beta1_genesis_proto_depIdxs = []int32{ 1, // 0: warden.act.v1beta1.GenesisState.params:type_name -> warden.act.v1beta1.Params 2, // 1: warden.act.v1beta1.GenesisState.actions:type_name -> warden.act.v1beta1.Action - 3, // 2: warden.act.v1beta1.GenesisState.rules:type_name -> warden.act.v1beta1.Rule + 3, // 2: warden.act.v1beta1.GenesisState.templates:type_name -> warden.act.v1beta1.Template 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name @@ -873,7 +874,7 @@ func file_warden_act_v1beta1_genesis_proto_init() { } file_warden_act_v1beta1_params_proto_init() file_warden_act_v1beta1_action_proto_init() - file_warden_act_v1beta1_rule_proto_init() + file_warden_act_v1beta1_template_proto_init() if !protoimpl.UnsafeEnabled { file_warden_act_v1beta1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GenesisState); i { diff --git a/api/warden/act/v1beta1/query.pulsar.go b/api/warden/act/v1beta1/query.pulsar.go index e93644f77..42bd41254 100644 --- a/api/warden/act/v1beta1/query.pulsar.go +++ b/api/warden/act/v1beta1/query.pulsar.go @@ -1817,25 +1817,25 @@ func (x *fastReflection_QueryActionsResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryRulesRequest protoreflect.MessageDescriptor - fd_QueryRulesRequest_pagination protoreflect.FieldDescriptor + md_QueryTemplatesRequest protoreflect.MessageDescriptor + fd_QueryTemplatesRequest_pagination protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_query_proto_init() - md_QueryRulesRequest = File_warden_act_v1beta1_query_proto.Messages().ByName("QueryRulesRequest") - fd_QueryRulesRequest_pagination = md_QueryRulesRequest.Fields().ByName("pagination") + md_QueryTemplatesRequest = File_warden_act_v1beta1_query_proto.Messages().ByName("QueryTemplatesRequest") + fd_QueryTemplatesRequest_pagination = md_QueryTemplatesRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryRulesRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTemplatesRequest)(nil) -type fastReflection_QueryRulesRequest QueryRulesRequest +type fastReflection_QueryTemplatesRequest QueryTemplatesRequest -func (x *QueryRulesRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRulesRequest)(x) +func (x *QueryTemplatesRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTemplatesRequest)(x) } -func (x *QueryRulesRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryTemplatesRequest) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_query_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1847,43 +1847,43 @@ func (x *QueryRulesRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryRulesRequest_messageType fastReflection_QueryRulesRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryRulesRequest_messageType{} +var _fastReflection_QueryTemplatesRequest_messageType fastReflection_QueryTemplatesRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTemplatesRequest_messageType{} -type fastReflection_QueryRulesRequest_messageType struct{} +type fastReflection_QueryTemplatesRequest_messageType struct{} -func (x fastReflection_QueryRulesRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRulesRequest)(nil) +func (x fastReflection_QueryTemplatesRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTemplatesRequest)(nil) } -func (x fastReflection_QueryRulesRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRulesRequest) +func (x fastReflection_QueryTemplatesRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTemplatesRequest) } -func (x fastReflection_QueryRulesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRulesRequest +func (x fastReflection_QueryTemplatesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTemplatesRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryRulesRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRulesRequest +func (x *fastReflection_QueryTemplatesRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTemplatesRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryRulesRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryRulesRequest_messageType +func (x *fastReflection_QueryTemplatesRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTemplatesRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRulesRequest) New() protoreflect.Message { - return new(fastReflection_QueryRulesRequest) +func (x *fastReflection_QueryTemplatesRequest) New() protoreflect.Message { + return new(fastReflection_QueryTemplatesRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRulesRequest) Interface() protoreflect.ProtoMessage { - return (*QueryRulesRequest)(x) +func (x *fastReflection_QueryTemplatesRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTemplatesRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -1891,10 +1891,10 @@ func (x *fastReflection_QueryRulesRequest) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryRulesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTemplatesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryRulesRequest_pagination, value) { + if !f(fd_QueryTemplatesRequest_pagination, value) { return } } @@ -1911,15 +1911,15 @@ func (x *fastReflection_QueryRulesRequest) Range(f func(protoreflect.FieldDescri // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryRulesRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTemplatesRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.QueryRulesRequest.pagination": + case "warden.act.v1beta1.QueryTemplatesRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesRequest does not contain field %s", fd.FullName())) } } @@ -1929,15 +1929,15 @@ func (x *fastReflection_QueryRulesRequest) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRulesRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTemplatesRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.QueryRulesRequest.pagination": + case "warden.act.v1beta1.QueryTemplatesRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesRequest does not contain field %s", fd.FullName())) } } @@ -1947,16 +1947,16 @@ func (x *fastReflection_QueryRulesRequest) Clear(fd protoreflect.FieldDescriptor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryRulesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplatesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.QueryRulesRequest.pagination": + case "warden.act.v1beta1.QueryTemplatesRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesRequest does not contain field %s", descriptor.FullName())) } } @@ -1970,15 +1970,15 @@ func (x *fastReflection_QueryRulesRequest) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRulesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTemplatesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.QueryRulesRequest.pagination": + case "warden.act.v1beta1.QueryTemplatesRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesRequest does not contain field %s", fd.FullName())) } } @@ -1992,44 +1992,44 @@ func (x *fastReflection_QueryRulesRequest) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRulesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplatesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QueryRulesRequest.pagination": + case "warden.act.v1beta1.QueryTemplatesRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryRulesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplatesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QueryRulesRequest.pagination": + case "warden.act.v1beta1.QueryTemplatesRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryRulesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTemplatesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QueryRulesRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QueryTemplatesRequest", d.FullName())) } panic("unreachable") } @@ -2037,7 +2037,7 @@ func (x *fastReflection_QueryRulesRequest) WhichOneof(d protoreflect.OneofDescri // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryRulesRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTemplatesRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2048,7 +2048,7 @@ func (x *fastReflection_QueryRulesRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRulesRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTemplatesRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2060,7 +2060,7 @@ func (x *fastReflection_QueryRulesRequest) SetUnknown(fields protoreflect.RawFie // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryRulesRequest) IsValid() bool { +func (x *fastReflection_QueryTemplatesRequest) IsValid() bool { return x != nil } @@ -2070,9 +2070,9 @@ func (x *fastReflection_QueryRulesRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryRulesRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTemplatesRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRulesRequest) + x := input.Message.Interface().(*QueryTemplatesRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2098,7 +2098,7 @@ func (x *fastReflection_QueryRulesRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryRulesRequest) + x := input.Message.Interface().(*QueryTemplatesRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2142,7 +2142,7 @@ func (x *fastReflection_QueryRulesRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRulesRequest) + x := input.Message.Interface().(*QueryTemplatesRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2174,10 +2174,10 @@ func (x *fastReflection_QueryRulesRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRulesRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTemplatesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTemplatesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2251,79 +2251,79 @@ func (x *fastReflection_QueryRulesRequest) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_QueryRulesResponse_2_list)(nil) +var _ protoreflect.List = (*_QueryTemplatesResponse_2_list)(nil) -type _QueryRulesResponse_2_list struct { - list *[]*Rule +type _QueryTemplatesResponse_2_list struct { + list *[]*Template } -func (x *_QueryRulesResponse_2_list) Len() int { +func (x *_QueryTemplatesResponse_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryRulesResponse_2_list) Get(i int) protoreflect.Value { +func (x *_QueryTemplatesResponse_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryRulesResponse_2_list) Set(i int, value protoreflect.Value) { +func (x *_QueryTemplatesResponse_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Rule) + concreteValue := valueUnwrapped.Interface().(*Template) (*x.list)[i] = concreteValue } -func (x *_QueryRulesResponse_2_list) Append(value protoreflect.Value) { +func (x *_QueryTemplatesResponse_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Rule) + concreteValue := valueUnwrapped.Interface().(*Template) *x.list = append(*x.list, concreteValue) } -func (x *_QueryRulesResponse_2_list) AppendMutable() protoreflect.Value { - v := new(Rule) +func (x *_QueryTemplatesResponse_2_list) AppendMutable() protoreflect.Value { + v := new(Template) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryRulesResponse_2_list) Truncate(n int) { +func (x *_QueryTemplatesResponse_2_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryRulesResponse_2_list) NewElement() protoreflect.Value { - v := new(Rule) +func (x *_QueryTemplatesResponse_2_list) NewElement() protoreflect.Value { + v := new(Template) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryRulesResponse_2_list) IsValid() bool { +func (x *_QueryTemplatesResponse_2_list) IsValid() bool { return x.list != nil } var ( - md_QueryRulesResponse protoreflect.MessageDescriptor - fd_QueryRulesResponse_pagination protoreflect.FieldDescriptor - fd_QueryRulesResponse_rules protoreflect.FieldDescriptor + md_QueryTemplatesResponse protoreflect.MessageDescriptor + fd_QueryTemplatesResponse_pagination protoreflect.FieldDescriptor + fd_QueryTemplatesResponse_templates protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_query_proto_init() - md_QueryRulesResponse = File_warden_act_v1beta1_query_proto.Messages().ByName("QueryRulesResponse") - fd_QueryRulesResponse_pagination = md_QueryRulesResponse.Fields().ByName("pagination") - fd_QueryRulesResponse_rules = md_QueryRulesResponse.Fields().ByName("rules") + md_QueryTemplatesResponse = File_warden_act_v1beta1_query_proto.Messages().ByName("QueryTemplatesResponse") + fd_QueryTemplatesResponse_pagination = md_QueryTemplatesResponse.Fields().ByName("pagination") + fd_QueryTemplatesResponse_templates = md_QueryTemplatesResponse.Fields().ByName("templates") } -var _ protoreflect.Message = (*fastReflection_QueryRulesResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTemplatesResponse)(nil) -type fastReflection_QueryRulesResponse QueryRulesResponse +type fastReflection_QueryTemplatesResponse QueryTemplatesResponse -func (x *QueryRulesResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRulesResponse)(x) +func (x *QueryTemplatesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTemplatesResponse)(x) } -func (x *QueryRulesResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryTemplatesResponse) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_query_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2335,43 +2335,43 @@ func (x *QueryRulesResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryRulesResponse_messageType fastReflection_QueryRulesResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryRulesResponse_messageType{} +var _fastReflection_QueryTemplatesResponse_messageType fastReflection_QueryTemplatesResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTemplatesResponse_messageType{} -type fastReflection_QueryRulesResponse_messageType struct{} +type fastReflection_QueryTemplatesResponse_messageType struct{} -func (x fastReflection_QueryRulesResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRulesResponse)(nil) +func (x fastReflection_QueryTemplatesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTemplatesResponse)(nil) } -func (x fastReflection_QueryRulesResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRulesResponse) +func (x fastReflection_QueryTemplatesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTemplatesResponse) } -func (x fastReflection_QueryRulesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRulesResponse +func (x fastReflection_QueryTemplatesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTemplatesResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryRulesResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRulesResponse +func (x *fastReflection_QueryTemplatesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTemplatesResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryRulesResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryRulesResponse_messageType +func (x *fastReflection_QueryTemplatesResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTemplatesResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRulesResponse) New() protoreflect.Message { - return new(fastReflection_QueryRulesResponse) +func (x *fastReflection_QueryTemplatesResponse) New() protoreflect.Message { + return new(fastReflection_QueryTemplatesResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRulesResponse) Interface() protoreflect.ProtoMessage { - return (*QueryRulesResponse)(x) +func (x *fastReflection_QueryTemplatesResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTemplatesResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2379,16 +2379,16 @@ func (x *fastReflection_QueryRulesResponse) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryRulesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTemplatesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryRulesResponse_pagination, value) { + if !f(fd_QueryTemplatesResponse_pagination, value) { return } } - if len(x.Rules) != 0 { - value := protoreflect.ValueOfList(&_QueryRulesResponse_2_list{list: &x.Rules}) - if !f(fd_QueryRulesResponse_rules, value) { + if len(x.Templates) != 0 { + value := protoreflect.ValueOfList(&_QueryTemplatesResponse_2_list{list: &x.Templates}) + if !f(fd_QueryTemplatesResponse_templates, value) { return } } @@ -2405,17 +2405,17 @@ func (x *fastReflection_QueryRulesResponse) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryRulesResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTemplatesResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.QueryRulesResponse.pagination": + case "warden.act.v1beta1.QueryTemplatesResponse.pagination": return x.Pagination != nil - case "warden.act.v1beta1.QueryRulesResponse.rules": - return len(x.Rules) != 0 + case "warden.act.v1beta1.QueryTemplatesResponse.templates": + return len(x.Templates) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesResponse does not contain field %s", fd.FullName())) } } @@ -2425,17 +2425,17 @@ func (x *fastReflection_QueryRulesResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRulesResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTemplatesResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.QueryRulesResponse.pagination": + case "warden.act.v1beta1.QueryTemplatesResponse.pagination": x.Pagination = nil - case "warden.act.v1beta1.QueryRulesResponse.rules": - x.Rules = nil + case "warden.act.v1beta1.QueryTemplatesResponse.templates": + x.Templates = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesResponse does not contain field %s", fd.FullName())) } } @@ -2445,22 +2445,22 @@ func (x *fastReflection_QueryRulesResponse) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryRulesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplatesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.QueryRulesResponse.pagination": + case "warden.act.v1beta1.QueryTemplatesResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "warden.act.v1beta1.QueryRulesResponse.rules": - if len(x.Rules) == 0 { - return protoreflect.ValueOfList(&_QueryRulesResponse_2_list{}) + case "warden.act.v1beta1.QueryTemplatesResponse.templates": + if len(x.Templates) == 0 { + return protoreflect.ValueOfList(&_QueryTemplatesResponse_2_list{}) } - listValue := &_QueryRulesResponse_2_list{list: &x.Rules} + listValue := &_QueryTemplatesResponse_2_list{list: &x.Templates} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesResponse does not contain field %s", descriptor.FullName())) } } @@ -2474,19 +2474,19 @@ func (x *fastReflection_QueryRulesResponse) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRulesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTemplatesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.QueryRulesResponse.pagination": + case "warden.act.v1beta1.QueryTemplatesResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - case "warden.act.v1beta1.QueryRulesResponse.rules": + case "warden.act.v1beta1.QueryTemplatesResponse.templates": lv := value.List() - clv := lv.(*_QueryRulesResponse_2_list) - x.Rules = *clv.list + clv := lv.(*_QueryTemplatesResponse_2_list) + x.Templates = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesResponse does not contain field %s", fd.FullName())) } } @@ -2500,53 +2500,53 @@ func (x *fastReflection_QueryRulesResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRulesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplatesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QueryRulesResponse.pagination": + case "warden.act.v1beta1.QueryTemplatesResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "warden.act.v1beta1.QueryRulesResponse.rules": - if x.Rules == nil { - x.Rules = []*Rule{} + case "warden.act.v1beta1.QueryTemplatesResponse.templates": + if x.Templates == nil { + x.Templates = []*Template{} } - value := &_QueryRulesResponse_2_list{list: &x.Rules} + value := &_QueryTemplatesResponse_2_list{list: &x.Templates} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryRulesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplatesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QueryRulesResponse.pagination": + case "warden.act.v1beta1.QueryTemplatesResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "warden.act.v1beta1.QueryRulesResponse.rules": - list := []*Rule{} - return protoreflect.ValueOfList(&_QueryRulesResponse_2_list{list: &list}) + case "warden.act.v1beta1.QueryTemplatesResponse.templates": + list := []*Template{} + return protoreflect.ValueOfList(&_QueryTemplatesResponse_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRulesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRulesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplatesResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryRulesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTemplatesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QueryRulesResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QueryTemplatesResponse", d.FullName())) } panic("unreachable") } @@ -2554,7 +2554,7 @@ func (x *fastReflection_QueryRulesResponse) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryRulesResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTemplatesResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2565,7 +2565,7 @@ func (x *fastReflection_QueryRulesResponse) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRulesResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTemplatesResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2577,7 +2577,7 @@ func (x *fastReflection_QueryRulesResponse) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryRulesResponse) IsValid() bool { +func (x *fastReflection_QueryTemplatesResponse) IsValid() bool { return x != nil } @@ -2587,9 +2587,9 @@ func (x *fastReflection_QueryRulesResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryRulesResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTemplatesResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRulesResponse) + x := input.Message.Interface().(*QueryTemplatesResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2605,8 +2605,8 @@ func (x *fastReflection_QueryRulesResponse) ProtoMethods() *protoiface.Methods { l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Rules) > 0 { - for _, e := range x.Rules { + if len(x.Templates) > 0 { + for _, e := range x.Templates { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -2621,7 +2621,7 @@ func (x *fastReflection_QueryRulesResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryRulesResponse) + x := input.Message.Interface().(*QueryTemplatesResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2640,9 +2640,9 @@ func (x *fastReflection_QueryRulesResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Rules) > 0 { - for iNdEx := len(x.Rules) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Rules[iNdEx]) + if len(x.Templates) > 0 { + for iNdEx := len(x.Templates) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Templates[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2681,7 +2681,7 @@ func (x *fastReflection_QueryRulesResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRulesResponse) + x := input.Message.Interface().(*QueryTemplatesResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2713,10 +2713,10 @@ func (x *fastReflection_QueryRulesResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRulesResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTemplatesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTemplatesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2757,7 +2757,7 @@ func (x *fastReflection_QueryRulesResponse) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Templates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2784,8 +2784,8 @@ func (x *fastReflection_QueryRulesResponse) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Rules = append(x.Rules, &Rule{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Rules[len(x.Rules)-1]); err != nil { + x.Templates = append(x.Templates, &Template{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Templates[len(x.Templates)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -2825,27 +2825,27 @@ func (x *fastReflection_QueryRulesResponse) ProtoMethods() *protoiface.Methods { } var ( - md_QuerySimulateRuleRequest protoreflect.MessageDescriptor - fd_QuerySimulateRuleRequest_pagination protoreflect.FieldDescriptor - fd_QuerySimulateRuleRequest_definition protoreflect.FieldDescriptor + md_QuerySimulateTemplateRequest protoreflect.MessageDescriptor + fd_QuerySimulateTemplateRequest_pagination protoreflect.FieldDescriptor + fd_QuerySimulateTemplateRequest_definition protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_query_proto_init() - md_QuerySimulateRuleRequest = File_warden_act_v1beta1_query_proto.Messages().ByName("QuerySimulateRuleRequest") - fd_QuerySimulateRuleRequest_pagination = md_QuerySimulateRuleRequest.Fields().ByName("pagination") - fd_QuerySimulateRuleRequest_definition = md_QuerySimulateRuleRequest.Fields().ByName("definition") + md_QuerySimulateTemplateRequest = File_warden_act_v1beta1_query_proto.Messages().ByName("QuerySimulateTemplateRequest") + fd_QuerySimulateTemplateRequest_pagination = md_QuerySimulateTemplateRequest.Fields().ByName("pagination") + fd_QuerySimulateTemplateRequest_definition = md_QuerySimulateTemplateRequest.Fields().ByName("definition") } -var _ protoreflect.Message = (*fastReflection_QuerySimulateRuleRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QuerySimulateTemplateRequest)(nil) -type fastReflection_QuerySimulateRuleRequest QuerySimulateRuleRequest +type fastReflection_QuerySimulateTemplateRequest QuerySimulateTemplateRequest -func (x *QuerySimulateRuleRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySimulateRuleRequest)(x) +func (x *QuerySimulateTemplateRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QuerySimulateTemplateRequest)(x) } -func (x *QuerySimulateRuleRequest) slowProtoReflect() protoreflect.Message { +func (x *QuerySimulateTemplateRequest) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_query_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2857,43 +2857,43 @@ func (x *QuerySimulateRuleRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QuerySimulateRuleRequest_messageType fastReflection_QuerySimulateRuleRequest_messageType -var _ protoreflect.MessageType = fastReflection_QuerySimulateRuleRequest_messageType{} +var _fastReflection_QuerySimulateTemplateRequest_messageType fastReflection_QuerySimulateTemplateRequest_messageType +var _ protoreflect.MessageType = fastReflection_QuerySimulateTemplateRequest_messageType{} -type fastReflection_QuerySimulateRuleRequest_messageType struct{} +type fastReflection_QuerySimulateTemplateRequest_messageType struct{} -func (x fastReflection_QuerySimulateRuleRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySimulateRuleRequest)(nil) +func (x fastReflection_QuerySimulateTemplateRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QuerySimulateTemplateRequest)(nil) } -func (x fastReflection_QuerySimulateRuleRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySimulateRuleRequest) +func (x fastReflection_QuerySimulateTemplateRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QuerySimulateTemplateRequest) } -func (x fastReflection_QuerySimulateRuleRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySimulateRuleRequest +func (x fastReflection_QuerySimulateTemplateRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateTemplateRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QuerySimulateRuleRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySimulateRuleRequest +func (x *fastReflection_QuerySimulateTemplateRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateTemplateRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QuerySimulateRuleRequest) Type() protoreflect.MessageType { - return _fastReflection_QuerySimulateRuleRequest_messageType +func (x *fastReflection_QuerySimulateTemplateRequest) Type() protoreflect.MessageType { + return _fastReflection_QuerySimulateTemplateRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySimulateRuleRequest) New() protoreflect.Message { - return new(fastReflection_QuerySimulateRuleRequest) +func (x *fastReflection_QuerySimulateTemplateRequest) New() protoreflect.Message { + return new(fastReflection_QuerySimulateTemplateRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySimulateRuleRequest) Interface() protoreflect.ProtoMessage { - return (*QuerySimulateRuleRequest)(x) +func (x *fastReflection_QuerySimulateTemplateRequest) Interface() protoreflect.ProtoMessage { + return (*QuerySimulateTemplateRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -2901,16 +2901,16 @@ func (x *fastReflection_QuerySimulateRuleRequest) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QuerySimulateRuleRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QuerySimulateTemplateRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QuerySimulateRuleRequest_pagination, value) { + if !f(fd_QuerySimulateTemplateRequest_pagination, value) { return } } if x.Definition != "" { value := protoreflect.ValueOfString(x.Definition) - if !f(fd_QuerySimulateRuleRequest_definition, value) { + if !f(fd_QuerySimulateTemplateRequest_definition, value) { return } } @@ -2927,17 +2927,17 @@ func (x *fastReflection_QuerySimulateRuleRequest) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QuerySimulateRuleRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QuerySimulateTemplateRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleRequest.pagination": + case "warden.act.v1beta1.QuerySimulateTemplateRequest.pagination": return x.Pagination != nil - case "warden.act.v1beta1.QuerySimulateRuleRequest.definition": + case "warden.act.v1beta1.QuerySimulateTemplateRequest.definition": return x.Definition != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateRequest does not contain field %s", fd.FullName())) } } @@ -2947,17 +2947,17 @@ func (x *fastReflection_QuerySimulateRuleRequest) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySimulateRuleRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QuerySimulateTemplateRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleRequest.pagination": + case "warden.act.v1beta1.QuerySimulateTemplateRequest.pagination": x.Pagination = nil - case "warden.act.v1beta1.QuerySimulateRuleRequest.definition": + case "warden.act.v1beta1.QuerySimulateTemplateRequest.definition": x.Definition = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateRequest does not contain field %s", fd.FullName())) } } @@ -2967,19 +2967,19 @@ func (x *fastReflection_QuerySimulateRuleRequest) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QuerySimulateRuleRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QuerySimulateTemplateRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleRequest.pagination": + case "warden.act.v1beta1.QuerySimulateTemplateRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "warden.act.v1beta1.QuerySimulateRuleRequest.definition": + case "warden.act.v1beta1.QuerySimulateTemplateRequest.definition": value := x.Definition return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateRequest does not contain field %s", descriptor.FullName())) } } @@ -2993,17 +2993,17 @@ func (x *fastReflection_QuerySimulateRuleRequest) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySimulateRuleRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QuerySimulateTemplateRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleRequest.pagination": + case "warden.act.v1beta1.QuerySimulateTemplateRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - case "warden.act.v1beta1.QuerySimulateRuleRequest.definition": + case "warden.act.v1beta1.QuerySimulateTemplateRequest.definition": x.Definition = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateRequest does not contain field %s", fd.FullName())) } } @@ -3017,48 +3017,48 @@ func (x *fastReflection_QuerySimulateRuleRequest) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySimulateRuleRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QuerySimulateTemplateRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleRequest.pagination": + case "warden.act.v1beta1.QuerySimulateTemplateRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "warden.act.v1beta1.QuerySimulateRuleRequest.definition": - panic(fmt.Errorf("field definition of message warden.act.v1beta1.QuerySimulateRuleRequest is not mutable")) + case "warden.act.v1beta1.QuerySimulateTemplateRequest.definition": + panic(fmt.Errorf("field definition of message warden.act.v1beta1.QuerySimulateTemplateRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QuerySimulateRuleRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QuerySimulateTemplateRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleRequest.pagination": + case "warden.act.v1beta1.QuerySimulateTemplateRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "warden.act.v1beta1.QuerySimulateRuleRequest.definition": + case "warden.act.v1beta1.QuerySimulateTemplateRequest.definition": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QuerySimulateRuleRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QuerySimulateTemplateRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QuerySimulateRuleRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QuerySimulateTemplateRequest", d.FullName())) } panic("unreachable") } @@ -3066,7 +3066,7 @@ func (x *fastReflection_QuerySimulateRuleRequest) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QuerySimulateRuleRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QuerySimulateTemplateRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3077,7 +3077,7 @@ func (x *fastReflection_QuerySimulateRuleRequest) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySimulateRuleRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QuerySimulateTemplateRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3089,7 +3089,7 @@ func (x *fastReflection_QuerySimulateRuleRequest) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QuerySimulateRuleRequest) IsValid() bool { +func (x *fastReflection_QuerySimulateTemplateRequest) IsValid() bool { return x != nil } @@ -3099,9 +3099,9 @@ func (x *fastReflection_QuerySimulateRuleRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QuerySimulateRuleRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QuerySimulateTemplateRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySimulateRuleRequest) + x := input.Message.Interface().(*QuerySimulateTemplateRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3131,7 +3131,7 @@ func (x *fastReflection_QuerySimulateRuleRequest) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QuerySimulateRuleRequest) + x := input.Message.Interface().(*QuerySimulateTemplateRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3182,7 +3182,7 @@ func (x *fastReflection_QuerySimulateRuleRequest) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QuerySimulateRuleRequest) + x := input.Message.Interface().(*QuerySimulateTemplateRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3214,10 +3214,10 @@ func (x *fastReflection_QuerySimulateRuleRequest) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateRuleRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateTemplateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateTemplateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3324,25 +3324,25 @@ func (x *fastReflection_QuerySimulateRuleRequest) ProtoMethods() *protoiface.Met } var ( - md_QuerySimulateRuleResponse protoreflect.MessageDescriptor - fd_QuerySimulateRuleResponse_evaluation protoreflect.FieldDescriptor + md_QuerySimulateTemplateResponse protoreflect.MessageDescriptor + fd_QuerySimulateTemplateResponse_evaluation protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_query_proto_init() - md_QuerySimulateRuleResponse = File_warden_act_v1beta1_query_proto.Messages().ByName("QuerySimulateRuleResponse") - fd_QuerySimulateRuleResponse_evaluation = md_QuerySimulateRuleResponse.Fields().ByName("evaluation") + md_QuerySimulateTemplateResponse = File_warden_act_v1beta1_query_proto.Messages().ByName("QuerySimulateTemplateResponse") + fd_QuerySimulateTemplateResponse_evaluation = md_QuerySimulateTemplateResponse.Fields().ByName("evaluation") } -var _ protoreflect.Message = (*fastReflection_QuerySimulateRuleResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QuerySimulateTemplateResponse)(nil) -type fastReflection_QuerySimulateRuleResponse QuerySimulateRuleResponse +type fastReflection_QuerySimulateTemplateResponse QuerySimulateTemplateResponse -func (x *QuerySimulateRuleResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySimulateRuleResponse)(x) +func (x *QuerySimulateTemplateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QuerySimulateTemplateResponse)(x) } -func (x *QuerySimulateRuleResponse) slowProtoReflect() protoreflect.Message { +func (x *QuerySimulateTemplateResponse) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_query_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3354,43 +3354,43 @@ func (x *QuerySimulateRuleResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QuerySimulateRuleResponse_messageType fastReflection_QuerySimulateRuleResponse_messageType -var _ protoreflect.MessageType = fastReflection_QuerySimulateRuleResponse_messageType{} +var _fastReflection_QuerySimulateTemplateResponse_messageType fastReflection_QuerySimulateTemplateResponse_messageType +var _ protoreflect.MessageType = fastReflection_QuerySimulateTemplateResponse_messageType{} -type fastReflection_QuerySimulateRuleResponse_messageType struct{} +type fastReflection_QuerySimulateTemplateResponse_messageType struct{} -func (x fastReflection_QuerySimulateRuleResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySimulateRuleResponse)(nil) +func (x fastReflection_QuerySimulateTemplateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QuerySimulateTemplateResponse)(nil) } -func (x fastReflection_QuerySimulateRuleResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySimulateRuleResponse) +func (x fastReflection_QuerySimulateTemplateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QuerySimulateTemplateResponse) } -func (x fastReflection_QuerySimulateRuleResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySimulateRuleResponse +func (x fastReflection_QuerySimulateTemplateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateTemplateResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QuerySimulateRuleResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySimulateRuleResponse +func (x *fastReflection_QuerySimulateTemplateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateTemplateResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QuerySimulateRuleResponse) Type() protoreflect.MessageType { - return _fastReflection_QuerySimulateRuleResponse_messageType +func (x *fastReflection_QuerySimulateTemplateResponse) Type() protoreflect.MessageType { + return _fastReflection_QuerySimulateTemplateResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySimulateRuleResponse) New() protoreflect.Message { - return new(fastReflection_QuerySimulateRuleResponse) +func (x *fastReflection_QuerySimulateTemplateResponse) New() protoreflect.Message { + return new(fastReflection_QuerySimulateTemplateResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySimulateRuleResponse) Interface() protoreflect.ProtoMessage { - return (*QuerySimulateRuleResponse)(x) +func (x *fastReflection_QuerySimulateTemplateResponse) Interface() protoreflect.ProtoMessage { + return (*QuerySimulateTemplateResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -3398,10 +3398,10 @@ func (x *fastReflection_QuerySimulateRuleResponse) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QuerySimulateRuleResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QuerySimulateTemplateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Evaluation != "" { value := protoreflect.ValueOfString(x.Evaluation) - if !f(fd_QuerySimulateRuleResponse_evaluation, value) { + if !f(fd_QuerySimulateTemplateResponse_evaluation, value) { return } } @@ -3418,15 +3418,15 @@ func (x *fastReflection_QuerySimulateRuleResponse) Range(f func(protoreflect.Fie // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QuerySimulateRuleResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QuerySimulateTemplateResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleResponse.evaluation": + case "warden.act.v1beta1.QuerySimulateTemplateResponse.evaluation": return x.Evaluation != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateResponse does not contain field %s", fd.FullName())) } } @@ -3436,15 +3436,15 @@ func (x *fastReflection_QuerySimulateRuleResponse) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySimulateRuleResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QuerySimulateTemplateResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleResponse.evaluation": + case "warden.act.v1beta1.QuerySimulateTemplateResponse.evaluation": x.Evaluation = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateResponse does not contain field %s", fd.FullName())) } } @@ -3454,16 +3454,16 @@ func (x *fastReflection_QuerySimulateRuleResponse) Clear(fd protoreflect.FieldDe // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QuerySimulateRuleResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QuerySimulateTemplateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleResponse.evaluation": + case "warden.act.v1beta1.QuerySimulateTemplateResponse.evaluation": value := x.Evaluation return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateResponse does not contain field %s", descriptor.FullName())) } } @@ -3477,15 +3477,15 @@ func (x *fastReflection_QuerySimulateRuleResponse) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySimulateRuleResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QuerySimulateTemplateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleResponse.evaluation": + case "warden.act.v1beta1.QuerySimulateTemplateResponse.evaluation": x.Evaluation = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateResponse does not contain field %s", fd.FullName())) } } @@ -3499,40 +3499,40 @@ func (x *fastReflection_QuerySimulateRuleResponse) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySimulateRuleResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QuerySimulateTemplateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleResponse.evaluation": - panic(fmt.Errorf("field evaluation of message warden.act.v1beta1.QuerySimulateRuleResponse is not mutable")) + case "warden.act.v1beta1.QuerySimulateTemplateResponse.evaluation": + panic(fmt.Errorf("field evaluation of message warden.act.v1beta1.QuerySimulateTemplateResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QuerySimulateRuleResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QuerySimulateTemplateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QuerySimulateRuleResponse.evaluation": + case "warden.act.v1beta1.QuerySimulateTemplateResponse.evaluation": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QuerySimulateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QuerySimulateTemplateResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QuerySimulateRuleResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QuerySimulateTemplateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QuerySimulateRuleResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QuerySimulateTemplateResponse", d.FullName())) } panic("unreachable") } @@ -3540,7 +3540,7 @@ func (x *fastReflection_QuerySimulateRuleResponse) WhichOneof(d protoreflect.One // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QuerySimulateRuleResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QuerySimulateTemplateResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3551,7 +3551,7 @@ func (x *fastReflection_QuerySimulateRuleResponse) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QuerySimulateRuleResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QuerySimulateTemplateResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3563,7 +3563,7 @@ func (x *fastReflection_QuerySimulateRuleResponse) SetUnknown(fields protoreflec // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QuerySimulateRuleResponse) IsValid() bool { +func (x *fastReflection_QuerySimulateTemplateResponse) IsValid() bool { return x != nil } @@ -3573,9 +3573,9 @@ func (x *fastReflection_QuerySimulateRuleResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QuerySimulateRuleResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QuerySimulateTemplateResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySimulateRuleResponse) + x := input.Message.Interface().(*QuerySimulateTemplateResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3601,7 +3601,7 @@ func (x *fastReflection_QuerySimulateRuleResponse) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QuerySimulateRuleResponse) + x := input.Message.Interface().(*QuerySimulateTemplateResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3638,7 +3638,7 @@ func (x *fastReflection_QuerySimulateRuleResponse) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QuerySimulateRuleResponse) + x := input.Message.Interface().(*QuerySimulateTemplateResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3670,10 +3670,10 @@ func (x *fastReflection_QuerySimulateRuleResponse) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateRuleResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateTemplateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateTemplateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3744,25 +3744,25 @@ func (x *fastReflection_QuerySimulateRuleResponse) ProtoMethods() *protoiface.Me } var ( - md_QueryRuleByIdRequest protoreflect.MessageDescriptor - fd_QueryRuleByIdRequest_id protoreflect.FieldDescriptor + md_QueryTemplateByIdRequest protoreflect.MessageDescriptor + fd_QueryTemplateByIdRequest_id protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_query_proto_init() - md_QueryRuleByIdRequest = File_warden_act_v1beta1_query_proto.Messages().ByName("QueryRuleByIdRequest") - fd_QueryRuleByIdRequest_id = md_QueryRuleByIdRequest.Fields().ByName("id") + md_QueryTemplateByIdRequest = File_warden_act_v1beta1_query_proto.Messages().ByName("QueryTemplateByIdRequest") + fd_QueryTemplateByIdRequest_id = md_QueryTemplateByIdRequest.Fields().ByName("id") } -var _ protoreflect.Message = (*fastReflection_QueryRuleByIdRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTemplateByIdRequest)(nil) -type fastReflection_QueryRuleByIdRequest QueryRuleByIdRequest +type fastReflection_QueryTemplateByIdRequest QueryTemplateByIdRequest -func (x *QueryRuleByIdRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRuleByIdRequest)(x) +func (x *QueryTemplateByIdRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTemplateByIdRequest)(x) } -func (x *QueryRuleByIdRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryTemplateByIdRequest) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_query_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3774,43 +3774,43 @@ func (x *QueryRuleByIdRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryRuleByIdRequest_messageType fastReflection_QueryRuleByIdRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryRuleByIdRequest_messageType{} +var _fastReflection_QueryTemplateByIdRequest_messageType fastReflection_QueryTemplateByIdRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTemplateByIdRequest_messageType{} -type fastReflection_QueryRuleByIdRequest_messageType struct{} +type fastReflection_QueryTemplateByIdRequest_messageType struct{} -func (x fastReflection_QueryRuleByIdRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRuleByIdRequest)(nil) +func (x fastReflection_QueryTemplateByIdRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTemplateByIdRequest)(nil) } -func (x fastReflection_QueryRuleByIdRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRuleByIdRequest) +func (x fastReflection_QueryTemplateByIdRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTemplateByIdRequest) } -func (x fastReflection_QueryRuleByIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRuleByIdRequest +func (x fastReflection_QueryTemplateByIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTemplateByIdRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryRuleByIdRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRuleByIdRequest +func (x *fastReflection_QueryTemplateByIdRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTemplateByIdRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryRuleByIdRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryRuleByIdRequest_messageType +func (x *fastReflection_QueryTemplateByIdRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTemplateByIdRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRuleByIdRequest) New() protoreflect.Message { - return new(fastReflection_QueryRuleByIdRequest) +func (x *fastReflection_QueryTemplateByIdRequest) New() protoreflect.Message { + return new(fastReflection_QueryTemplateByIdRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRuleByIdRequest) Interface() protoreflect.ProtoMessage { - return (*QueryRuleByIdRequest)(x) +func (x *fastReflection_QueryTemplateByIdRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTemplateByIdRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -3818,10 +3818,10 @@ func (x *fastReflection_QueryRuleByIdRequest) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryRuleByIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTemplateByIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Id != uint64(0) { value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_QueryRuleByIdRequest_id, value) { + if !f(fd_QueryTemplateByIdRequest_id, value) { return } } @@ -3838,15 +3838,15 @@ func (x *fastReflection_QueryRuleByIdRequest) Range(f func(protoreflect.FieldDes // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryRuleByIdRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTemplateByIdRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.QueryRuleByIdRequest.id": + case "warden.act.v1beta1.QueryTemplateByIdRequest.id": return x.Id != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdRequest does not contain field %s", fd.FullName())) } } @@ -3856,15 +3856,15 @@ func (x *fastReflection_QueryRuleByIdRequest) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRuleByIdRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTemplateByIdRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.QueryRuleByIdRequest.id": + case "warden.act.v1beta1.QueryTemplateByIdRequest.id": x.Id = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdRequest does not contain field %s", fd.FullName())) } } @@ -3874,16 +3874,16 @@ func (x *fastReflection_QueryRuleByIdRequest) Clear(fd protoreflect.FieldDescrip // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryRuleByIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplateByIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.QueryRuleByIdRequest.id": + case "warden.act.v1beta1.QueryTemplateByIdRequest.id": value := x.Id return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdRequest does not contain field %s", descriptor.FullName())) } } @@ -3897,15 +3897,15 @@ func (x *fastReflection_QueryRuleByIdRequest) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRuleByIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTemplateByIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.QueryRuleByIdRequest.id": + case "warden.act.v1beta1.QueryTemplateByIdRequest.id": x.Id = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdRequest does not contain field %s", fd.FullName())) } } @@ -3919,40 +3919,40 @@ func (x *fastReflection_QueryRuleByIdRequest) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRuleByIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplateByIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QueryRuleByIdRequest.id": - panic(fmt.Errorf("field id of message warden.act.v1beta1.QueryRuleByIdRequest is not mutable")) + case "warden.act.v1beta1.QueryTemplateByIdRequest.id": + panic(fmt.Errorf("field id of message warden.act.v1beta1.QueryTemplateByIdRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryRuleByIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplateByIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QueryRuleByIdRequest.id": + case "warden.act.v1beta1.QueryTemplateByIdRequest.id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdRequest")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryRuleByIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTemplateByIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QueryRuleByIdRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QueryTemplateByIdRequest", d.FullName())) } panic("unreachable") } @@ -3960,7 +3960,7 @@ func (x *fastReflection_QueryRuleByIdRequest) WhichOneof(d protoreflect.OneofDes // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryRuleByIdRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTemplateByIdRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3971,7 +3971,7 @@ func (x *fastReflection_QueryRuleByIdRequest) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRuleByIdRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTemplateByIdRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3983,7 +3983,7 @@ func (x *fastReflection_QueryRuleByIdRequest) SetUnknown(fields protoreflect.Raw // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryRuleByIdRequest) IsValid() bool { +func (x *fastReflection_QueryTemplateByIdRequest) IsValid() bool { return x != nil } @@ -3993,9 +3993,9 @@ func (x *fastReflection_QueryRuleByIdRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryRuleByIdRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTemplateByIdRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRuleByIdRequest) + x := input.Message.Interface().(*QueryTemplateByIdRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4020,7 +4020,7 @@ func (x *fastReflection_QueryRuleByIdRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryRuleByIdRequest) + x := input.Message.Interface().(*QueryTemplateByIdRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4055,7 +4055,7 @@ func (x *fastReflection_QueryRuleByIdRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRuleByIdRequest) + x := input.Message.Interface().(*QueryTemplateByIdRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4087,10 +4087,10 @@ func (x *fastReflection_QueryRuleByIdRequest) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRuleByIdRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTemplateByIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRuleByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTemplateByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4148,25 +4148,25 @@ func (x *fastReflection_QueryRuleByIdRequest) ProtoMethods() *protoiface.Methods } var ( - md_QueryRuleByIdResponse protoreflect.MessageDescriptor - fd_QueryRuleByIdResponse_rule protoreflect.FieldDescriptor + md_QueryTemplateByIdResponse protoreflect.MessageDescriptor + fd_QueryTemplateByIdResponse_template protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_query_proto_init() - md_QueryRuleByIdResponse = File_warden_act_v1beta1_query_proto.Messages().ByName("QueryRuleByIdResponse") - fd_QueryRuleByIdResponse_rule = md_QueryRuleByIdResponse.Fields().ByName("rule") + md_QueryTemplateByIdResponse = File_warden_act_v1beta1_query_proto.Messages().ByName("QueryTemplateByIdResponse") + fd_QueryTemplateByIdResponse_template = md_QueryTemplateByIdResponse.Fields().ByName("template") } -var _ protoreflect.Message = (*fastReflection_QueryRuleByIdResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTemplateByIdResponse)(nil) -type fastReflection_QueryRuleByIdResponse QueryRuleByIdResponse +type fastReflection_QueryTemplateByIdResponse QueryTemplateByIdResponse -func (x *QueryRuleByIdResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRuleByIdResponse)(x) +func (x *QueryTemplateByIdResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTemplateByIdResponse)(x) } -func (x *QueryRuleByIdResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryTemplateByIdResponse) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_query_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4178,43 +4178,43 @@ func (x *QueryRuleByIdResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryRuleByIdResponse_messageType fastReflection_QueryRuleByIdResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryRuleByIdResponse_messageType{} +var _fastReflection_QueryTemplateByIdResponse_messageType fastReflection_QueryTemplateByIdResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTemplateByIdResponse_messageType{} -type fastReflection_QueryRuleByIdResponse_messageType struct{} +type fastReflection_QueryTemplateByIdResponse_messageType struct{} -func (x fastReflection_QueryRuleByIdResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRuleByIdResponse)(nil) +func (x fastReflection_QueryTemplateByIdResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTemplateByIdResponse)(nil) } -func (x fastReflection_QueryRuleByIdResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRuleByIdResponse) +func (x fastReflection_QueryTemplateByIdResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTemplateByIdResponse) } -func (x fastReflection_QueryRuleByIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRuleByIdResponse +func (x fastReflection_QueryTemplateByIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTemplateByIdResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryRuleByIdResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRuleByIdResponse +func (x *fastReflection_QueryTemplateByIdResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTemplateByIdResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryRuleByIdResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryRuleByIdResponse_messageType +func (x *fastReflection_QueryTemplateByIdResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTemplateByIdResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRuleByIdResponse) New() protoreflect.Message { - return new(fastReflection_QueryRuleByIdResponse) +func (x *fastReflection_QueryTemplateByIdResponse) New() protoreflect.Message { + return new(fastReflection_QueryTemplateByIdResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRuleByIdResponse) Interface() protoreflect.ProtoMessage { - return (*QueryRuleByIdResponse)(x) +func (x *fastReflection_QueryTemplateByIdResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTemplateByIdResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4222,10 +4222,10 @@ func (x *fastReflection_QueryRuleByIdResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryRuleByIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Rule != nil { - value := protoreflect.ValueOfMessage(x.Rule.ProtoReflect()) - if !f(fd_QueryRuleByIdResponse_rule, value) { +func (x *fastReflection_QueryTemplateByIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Template != nil { + value := protoreflect.ValueOfMessage(x.Template.ProtoReflect()) + if !f(fd_QueryTemplateByIdResponse_template, value) { return } } @@ -4242,15 +4242,15 @@ func (x *fastReflection_QueryRuleByIdResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryRuleByIdResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTemplateByIdResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.QueryRuleByIdResponse.rule": - return x.Rule != nil + case "warden.act.v1beta1.QueryTemplateByIdResponse.template": + return x.Template != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdResponse does not contain field %s", fd.FullName())) } } @@ -4260,15 +4260,15 @@ func (x *fastReflection_QueryRuleByIdResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRuleByIdResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTemplateByIdResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.QueryRuleByIdResponse.rule": - x.Rule = nil + case "warden.act.v1beta1.QueryTemplateByIdResponse.template": + x.Template = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdResponse does not contain field %s", fd.FullName())) } } @@ -4278,16 +4278,16 @@ func (x *fastReflection_QueryRuleByIdResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryRuleByIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplateByIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.QueryRuleByIdResponse.rule": - value := x.Rule + case "warden.act.v1beta1.QueryTemplateByIdResponse.template": + value := x.Template return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdResponse does not contain field %s", descriptor.FullName())) } } @@ -4301,15 +4301,15 @@ func (x *fastReflection_QueryRuleByIdResponse) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRuleByIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTemplateByIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.QueryRuleByIdResponse.rule": - x.Rule = value.Message().Interface().(*Rule) + case "warden.act.v1beta1.QueryTemplateByIdResponse.template": + x.Template = value.Message().Interface().(*Template) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdResponse does not contain field %s", fd.FullName())) } } @@ -4323,44 +4323,44 @@ func (x *fastReflection_QueryRuleByIdResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRuleByIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplateByIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QueryRuleByIdResponse.rule": - if x.Rule == nil { - x.Rule = new(Rule) + case "warden.act.v1beta1.QueryTemplateByIdResponse.template": + if x.Template == nil { + x.Template = new(Template) } - return protoreflect.ValueOfMessage(x.Rule.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Template.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryRuleByIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTemplateByIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.QueryRuleByIdResponse.rule": - m := new(Rule) + case "warden.act.v1beta1.QueryTemplateByIdResponse.template": + m := new(Template) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryRuleByIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplateByIdResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.QueryRuleByIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.QueryTemplateByIdResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryRuleByIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTemplateByIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QueryRuleByIdResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.QueryTemplateByIdResponse", d.FullName())) } panic("unreachable") } @@ -4368,7 +4368,7 @@ func (x *fastReflection_QueryRuleByIdResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryRuleByIdResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTemplateByIdResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4379,7 +4379,7 @@ func (x *fastReflection_QueryRuleByIdResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRuleByIdResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTemplateByIdResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4391,7 +4391,7 @@ func (x *fastReflection_QueryRuleByIdResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryRuleByIdResponse) IsValid() bool { +func (x *fastReflection_QueryTemplateByIdResponse) IsValid() bool { return x != nil } @@ -4401,9 +4401,9 @@ func (x *fastReflection_QueryRuleByIdResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryRuleByIdResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTemplateByIdResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRuleByIdResponse) + x := input.Message.Interface().(*QueryTemplateByIdResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4415,8 +4415,8 @@ func (x *fastReflection_QueryRuleByIdResponse) ProtoMethods() *protoiface.Method var n int var l int _ = l - if x.Rule != nil { - l = options.Size(x.Rule) + if x.Template != nil { + l = options.Size(x.Template) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -4429,7 +4429,7 @@ func (x *fastReflection_QueryRuleByIdResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryRuleByIdResponse) + x := input.Message.Interface().(*QueryTemplateByIdResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4448,8 +4448,8 @@ func (x *fastReflection_QueryRuleByIdResponse) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Rule != nil { - encoded, err := options.Marshal(x.Rule) + if x.Template != nil { + encoded, err := options.Marshal(x.Template) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4473,7 +4473,7 @@ func (x *fastReflection_QueryRuleByIdResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRuleByIdResponse) + x := input.Message.Interface().(*QueryTemplateByIdResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4505,15 +4505,15 @@ func (x *fastReflection_QueryRuleByIdResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRuleByIdResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTemplateByIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRuleByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTemplateByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4540,10 +4540,10 @@ func (x *fastReflection_QueryRuleByIdResponse) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Rule == nil { - x.Rule = &Rule{} + if x.Template == nil { + x.Template = &Template{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Rule); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Template); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -6696,7 +6696,7 @@ func (x *QueryActionsResponse) GetActions() []*Action { return nil } -type QueryRulesRequest struct { +type QueryTemplatesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6704,8 +6704,8 @@ type QueryRulesRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryRulesRequest) Reset() { - *x = QueryRulesRequest{} +func (x *QueryTemplatesRequest) Reset() { + *x = QueryTemplatesRequest{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_query_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6713,35 +6713,35 @@ func (x *QueryRulesRequest) Reset() { } } -func (x *QueryRulesRequest) String() string { +func (x *QueryTemplatesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRulesRequest) ProtoMessage() {} +func (*QueryTemplatesRequest) ProtoMessage() {} -// Deprecated: Use QueryRulesRequest.ProtoReflect.Descriptor instead. -func (*QueryRulesRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryTemplatesRequest.ProtoReflect.Descriptor instead. +func (*QueryTemplatesRequest) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_query_proto_rawDescGZIP(), []int{4} } -func (x *QueryRulesRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryTemplatesRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -type QueryRulesResponse struct { +type QueryTemplatesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Pagination *v1beta1.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Rules []*Rule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` + Templates []*Template `protobuf:"bytes,2,rep,name=templates,proto3" json:"templates,omitempty"` } -func (x *QueryRulesResponse) Reset() { - *x = QueryRulesResponse{} +func (x *QueryTemplatesResponse) Reset() { + *x = QueryTemplatesResponse{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_query_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6749,32 +6749,32 @@ func (x *QueryRulesResponse) Reset() { } } -func (x *QueryRulesResponse) String() string { +func (x *QueryTemplatesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRulesResponse) ProtoMessage() {} +func (*QueryTemplatesResponse) ProtoMessage() {} -// Deprecated: Use QueryRulesResponse.ProtoReflect.Descriptor instead. -func (*QueryRulesResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryTemplatesResponse.ProtoReflect.Descriptor instead. +func (*QueryTemplatesResponse) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_query_proto_rawDescGZIP(), []int{5} } -func (x *QueryRulesResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryTemplatesResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } return nil } -func (x *QueryRulesResponse) GetRules() []*Rule { +func (x *QueryTemplatesResponse) GetTemplates() []*Template { if x != nil { - return x.Rules + return x.Templates } return nil } -type QuerySimulateRuleRequest struct { +type QuerySimulateTemplateRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6783,8 +6783,8 @@ type QuerySimulateRuleRequest struct { Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"` } -func (x *QuerySimulateRuleRequest) Reset() { - *x = QuerySimulateRuleRequest{} +func (x *QuerySimulateTemplateRequest) Reset() { + *x = QuerySimulateTemplateRequest{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_query_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6792,32 +6792,32 @@ func (x *QuerySimulateRuleRequest) Reset() { } } -func (x *QuerySimulateRuleRequest) String() string { +func (x *QuerySimulateTemplateRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QuerySimulateRuleRequest) ProtoMessage() {} +func (*QuerySimulateTemplateRequest) ProtoMessage() {} -// Deprecated: Use QuerySimulateRuleRequest.ProtoReflect.Descriptor instead. -func (*QuerySimulateRuleRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QuerySimulateTemplateRequest.ProtoReflect.Descriptor instead. +func (*QuerySimulateTemplateRequest) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_query_proto_rawDescGZIP(), []int{6} } -func (x *QuerySimulateRuleRequest) GetPagination() *v1beta1.PageRequest { +func (x *QuerySimulateTemplateRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -func (x *QuerySimulateRuleRequest) GetDefinition() string { +func (x *QuerySimulateTemplateRequest) GetDefinition() string { if x != nil { return x.Definition } return "" } -type QuerySimulateRuleResponse struct { +type QuerySimulateTemplateResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6825,8 +6825,8 @@ type QuerySimulateRuleResponse struct { Evaluation string `protobuf:"bytes,1,opt,name=evaluation,proto3" json:"evaluation,omitempty"` } -func (x *QuerySimulateRuleResponse) Reset() { - *x = QuerySimulateRuleResponse{} +func (x *QuerySimulateTemplateResponse) Reset() { + *x = QuerySimulateTemplateResponse{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6834,25 +6834,25 @@ func (x *QuerySimulateRuleResponse) Reset() { } } -func (x *QuerySimulateRuleResponse) String() string { +func (x *QuerySimulateTemplateResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QuerySimulateRuleResponse) ProtoMessage() {} +func (*QuerySimulateTemplateResponse) ProtoMessage() {} -// Deprecated: Use QuerySimulateRuleResponse.ProtoReflect.Descriptor instead. -func (*QuerySimulateRuleResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QuerySimulateTemplateResponse.ProtoReflect.Descriptor instead. +func (*QuerySimulateTemplateResponse) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_query_proto_rawDescGZIP(), []int{7} } -func (x *QuerySimulateRuleResponse) GetEvaluation() string { +func (x *QuerySimulateTemplateResponse) GetEvaluation() string { if x != nil { return x.Evaluation } return "" } -type QueryRuleByIdRequest struct { +type QueryTemplateByIdRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6860,8 +6860,8 @@ type QueryRuleByIdRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } -func (x *QueryRuleByIdRequest) Reset() { - *x = QueryRuleByIdRequest{} +func (x *QueryTemplateByIdRequest) Reset() { + *x = QueryTemplateByIdRequest{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_query_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6869,34 +6869,34 @@ func (x *QueryRuleByIdRequest) Reset() { } } -func (x *QueryRuleByIdRequest) String() string { +func (x *QueryTemplateByIdRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRuleByIdRequest) ProtoMessage() {} +func (*QueryTemplateByIdRequest) ProtoMessage() {} -// Deprecated: Use QueryRuleByIdRequest.ProtoReflect.Descriptor instead. -func (*QueryRuleByIdRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryTemplateByIdRequest.ProtoReflect.Descriptor instead. +func (*QueryTemplateByIdRequest) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_query_proto_rawDescGZIP(), []int{8} } -func (x *QueryRuleByIdRequest) GetId() uint64 { +func (x *QueryTemplateByIdRequest) GetId() uint64 { if x != nil { return x.Id } return 0 } -type QueryRuleByIdResponse struct { +type QueryTemplateByIdResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` + Template *Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` } -func (x *QueryRuleByIdResponse) Reset() { - *x = QueryRuleByIdResponse{} +func (x *QueryTemplateByIdResponse) Reset() { + *x = QueryTemplateByIdResponse{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_query_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6904,20 +6904,20 @@ func (x *QueryRuleByIdResponse) Reset() { } } -func (x *QueryRuleByIdResponse) String() string { +func (x *QueryTemplateByIdResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRuleByIdResponse) ProtoMessage() {} +func (*QueryTemplateByIdResponse) ProtoMessage() {} -// Deprecated: Use QueryRuleByIdResponse.ProtoReflect.Descriptor instead. -func (*QueryRuleByIdResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryTemplateByIdResponse.ProtoReflect.Descriptor instead. +func (*QueryTemplateByIdResponse) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_query_proto_rawDescGZIP(), []int{9} } -func (x *QueryRuleByIdResponse) GetRule() *Rule { +func (x *QueryTemplateByIdResponse) GetTemplate() *Template { if x != nil { - return x.Rule + return x.Template } return nil } @@ -7105,140 +7105,146 @@ var file_warden_act_v1beta1_query_proto_rawDesc = []byte{ 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4f, 0x0a, 0x13, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x38, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4f, 0x0a, + 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, + 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x5d, + 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9b, 0x01, + 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x3a, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x5d, 0x0a, 0x13, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9b, 0x01, 0x0a, 0x14, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x07, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 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, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x5b, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x93, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x75, - 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x18, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x5f, 0x0a, 0x15, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa3, 0x01, 0x0a, + 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x3b, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, - 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x40, 0x0a, 0x09, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x73, 0x22, 0x86, 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x75, + 0x6c, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3f, 0x0a, 0x1d, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x26, 0x0a, 0x14, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x02, 0x69, 0x64, 0x22, 0x45, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x75, 0x6c, - 0x65, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, - 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x22, 0xc0, 0x01, 0x0a, 0x1c, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3e, - 0x0a, 0x06, 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, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xa4, - 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, - 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x52, 0x0a, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2a, 0x0a, 0x18, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x79, 0x49, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x55, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, + 0xc0, 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x07, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 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, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x28, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x4d, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, - 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 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, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0x92, - 0x08, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x84, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x77, - 0x61, 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x88, 0x01, 0x0a, 0x07, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x27, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, - 0x63, 0x74, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x80, 0x01, 0x0a, 0x05, 0x52, - 0x75, 0x6c, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x98, 0x01, - 0x0a, 0x0c, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x2c, + 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x06, 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, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x22, 0xa4, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, + 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, + 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, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x28, 0x0a, 0x16, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x02, 0x69, 0x64, 0x22, 0x4d, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, + 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, - 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x77, + 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x32, 0xbe, 0x08, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x84, 0x01, 0x0a, + 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x27, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, + 0x12, 0x21, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x88, 0x01, 0x0a, 0x07, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x27, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x77, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x90, + 0x01, 0x0a, 0x09, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x73, 0x12, 0xa4, 0x01, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x30, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, - 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x8e, 0x01, 0x0a, 0x08, 0x52, 0x75, 0x6c, - 0x65, 0x42, 0x79, 0x49, 0x64, 0x12, 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x52, 0x75, 0x6c, 0x65, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x29, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x42, 0x79, - 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x27, 0x12, 0x25, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x72, - 0x75, 0x6c, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x64, 0x12, 0xae, 0x01, 0x0a, 0x10, 0x41, 0x63, + 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x9e, 0x01, 0x0a, 0x0c, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x79, 0x49, 0x64, 0x12, 0x2c, 0x2e, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x79, 0x49, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, + 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x64, 0x12, 0xae, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x30, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, @@ -7294,12 +7300,12 @@ var file_warden_act_v1beta1_query_proto_goTypes = []interface{}{ (*QueryParamsResponse)(nil), // 1: warden.act.v1beta1.QueryParamsResponse (*QueryActionsRequest)(nil), // 2: warden.act.v1beta1.QueryActionsRequest (*QueryActionsResponse)(nil), // 3: warden.act.v1beta1.QueryActionsResponse - (*QueryRulesRequest)(nil), // 4: warden.act.v1beta1.QueryRulesRequest - (*QueryRulesResponse)(nil), // 5: warden.act.v1beta1.QueryRulesResponse - (*QuerySimulateRuleRequest)(nil), // 6: warden.act.v1beta1.QuerySimulateRuleRequest - (*QuerySimulateRuleResponse)(nil), // 7: warden.act.v1beta1.QuerySimulateRuleResponse - (*QueryRuleByIdRequest)(nil), // 8: warden.act.v1beta1.QueryRuleByIdRequest - (*QueryRuleByIdResponse)(nil), // 9: warden.act.v1beta1.QueryRuleByIdResponse + (*QueryTemplatesRequest)(nil), // 4: warden.act.v1beta1.QueryTemplatesRequest + (*QueryTemplatesResponse)(nil), // 5: warden.act.v1beta1.QueryTemplatesResponse + (*QuerySimulateTemplateRequest)(nil), // 6: warden.act.v1beta1.QuerySimulateTemplateRequest + (*QuerySimulateTemplateResponse)(nil), // 7: warden.act.v1beta1.QuerySimulateTemplateResponse + (*QueryTemplateByIdRequest)(nil), // 8: warden.act.v1beta1.QueryTemplateByIdRequest + (*QueryTemplateByIdResponse)(nil), // 9: warden.act.v1beta1.QueryTemplateByIdResponse (*QueryActionsByAddressRequest)(nil), // 10: warden.act.v1beta1.QueryActionsByAddressRequest (*QueryActionsByAddressResponse)(nil), // 11: warden.act.v1beta1.QueryActionsByAddressResponse (*QueryActionByIdRequest)(nil), // 12: warden.act.v1beta1.QueryActionByIdRequest @@ -7308,7 +7314,7 @@ var file_warden_act_v1beta1_query_proto_goTypes = []interface{}{ (*v1beta1.PageRequest)(nil), // 15: cosmos.base.query.v1beta1.PageRequest (*v1beta1.PageResponse)(nil), // 16: cosmos.base.query.v1beta1.PageResponse (*Action)(nil), // 17: warden.act.v1beta1.Action - (*Rule)(nil), // 18: warden.act.v1beta1.Rule + (*Template)(nil), // 18: warden.act.v1beta1.Template (ActionStatus)(0), // 19: warden.act.v1beta1.ActionStatus } var file_warden_act_v1beta1_query_proto_depIdxs = []int32{ @@ -7316,11 +7322,11 @@ var file_warden_act_v1beta1_query_proto_depIdxs = []int32{ 15, // 1: warden.act.v1beta1.QueryActionsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 16, // 2: warden.act.v1beta1.QueryActionsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 17, // 3: warden.act.v1beta1.QueryActionsResponse.actions:type_name -> warden.act.v1beta1.Action - 15, // 4: warden.act.v1beta1.QueryRulesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 16, // 5: warden.act.v1beta1.QueryRulesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 18, // 6: warden.act.v1beta1.QueryRulesResponse.rules:type_name -> warden.act.v1beta1.Rule - 15, // 7: warden.act.v1beta1.QuerySimulateRuleRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 18, // 8: warden.act.v1beta1.QueryRuleByIdResponse.rule:type_name -> warden.act.v1beta1.Rule + 15, // 4: warden.act.v1beta1.QueryTemplatesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 16, // 5: warden.act.v1beta1.QueryTemplatesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 18, // 6: warden.act.v1beta1.QueryTemplatesResponse.templates:type_name -> warden.act.v1beta1.Template + 15, // 7: warden.act.v1beta1.QuerySimulateTemplateRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 18, // 8: warden.act.v1beta1.QueryTemplateByIdResponse.template:type_name -> warden.act.v1beta1.Template 15, // 9: warden.act.v1beta1.QueryActionsByAddressRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 19, // 10: warden.act.v1beta1.QueryActionsByAddressRequest.status:type_name -> warden.act.v1beta1.ActionStatus 16, // 11: warden.act.v1beta1.QueryActionsByAddressResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse @@ -7328,16 +7334,16 @@ var file_warden_act_v1beta1_query_proto_depIdxs = []int32{ 17, // 13: warden.act.v1beta1.QueryActionByIdResponse.action:type_name -> warden.act.v1beta1.Action 0, // 14: warden.act.v1beta1.Query.Params:input_type -> warden.act.v1beta1.QueryParamsRequest 2, // 15: warden.act.v1beta1.Query.Actions:input_type -> warden.act.v1beta1.QueryActionsRequest - 4, // 16: warden.act.v1beta1.Query.Rules:input_type -> warden.act.v1beta1.QueryRulesRequest - 6, // 17: warden.act.v1beta1.Query.SimulateRule:input_type -> warden.act.v1beta1.QuerySimulateRuleRequest - 8, // 18: warden.act.v1beta1.Query.RuleById:input_type -> warden.act.v1beta1.QueryRuleByIdRequest + 4, // 16: warden.act.v1beta1.Query.Templates:input_type -> warden.act.v1beta1.QueryTemplatesRequest + 6, // 17: warden.act.v1beta1.Query.SimulateTemplate:input_type -> warden.act.v1beta1.QuerySimulateTemplateRequest + 8, // 18: warden.act.v1beta1.Query.TemplateById:input_type -> warden.act.v1beta1.QueryTemplateByIdRequest 10, // 19: warden.act.v1beta1.Query.ActionsByAddress:input_type -> warden.act.v1beta1.QueryActionsByAddressRequest 12, // 20: warden.act.v1beta1.Query.ActionById:input_type -> warden.act.v1beta1.QueryActionByIdRequest 1, // 21: warden.act.v1beta1.Query.Params:output_type -> warden.act.v1beta1.QueryParamsResponse 3, // 22: warden.act.v1beta1.Query.Actions:output_type -> warden.act.v1beta1.QueryActionsResponse - 5, // 23: warden.act.v1beta1.Query.Rules:output_type -> warden.act.v1beta1.QueryRulesResponse - 7, // 24: warden.act.v1beta1.Query.SimulateRule:output_type -> warden.act.v1beta1.QuerySimulateRuleResponse - 9, // 25: warden.act.v1beta1.Query.RuleById:output_type -> warden.act.v1beta1.QueryRuleByIdResponse + 5, // 23: warden.act.v1beta1.Query.Templates:output_type -> warden.act.v1beta1.QueryTemplatesResponse + 7, // 24: warden.act.v1beta1.Query.SimulateTemplate:output_type -> warden.act.v1beta1.QuerySimulateTemplateResponse + 9, // 25: warden.act.v1beta1.Query.TemplateById:output_type -> warden.act.v1beta1.QueryTemplateByIdResponse 11, // 26: warden.act.v1beta1.Query.ActionsByAddress:output_type -> warden.act.v1beta1.QueryActionsByAddressResponse 13, // 27: warden.act.v1beta1.Query.ActionById:output_type -> warden.act.v1beta1.QueryActionByIdResponse 21, // [21:28] is the sub-list for method output_type @@ -7354,7 +7360,7 @@ func file_warden_act_v1beta1_query_proto_init() { } file_warden_act_v1beta1_params_proto_init() file_warden_act_v1beta1_action_proto_init() - file_warden_act_v1beta1_rule_proto_init() + file_warden_act_v1beta1_template_proto_init() if !protoimpl.UnsafeEnabled { file_warden_act_v1beta1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsRequest); i { @@ -7405,7 +7411,7 @@ func file_warden_act_v1beta1_query_proto_init() { } } file_warden_act_v1beta1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRulesRequest); i { + switch v := v.(*QueryTemplatesRequest); i { case 0: return &v.state case 1: @@ -7417,7 +7423,7 @@ func file_warden_act_v1beta1_query_proto_init() { } } file_warden_act_v1beta1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRulesResponse); i { + switch v := v.(*QueryTemplatesResponse); i { case 0: return &v.state case 1: @@ -7429,7 +7435,7 @@ func file_warden_act_v1beta1_query_proto_init() { } } file_warden_act_v1beta1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySimulateRuleRequest); i { + switch v := v.(*QuerySimulateTemplateRequest); i { case 0: return &v.state case 1: @@ -7441,7 +7447,7 @@ func file_warden_act_v1beta1_query_proto_init() { } } file_warden_act_v1beta1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySimulateRuleResponse); i { + switch v := v.(*QuerySimulateTemplateResponse); i { case 0: return &v.state case 1: @@ -7453,7 +7459,7 @@ func file_warden_act_v1beta1_query_proto_init() { } } file_warden_act_v1beta1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRuleByIdRequest); i { + switch v := v.(*QueryTemplateByIdRequest); i { case 0: return &v.state case 1: @@ -7465,7 +7471,7 @@ func file_warden_act_v1beta1_query_proto_init() { } } file_warden_act_v1beta1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRuleByIdResponse); i { + switch v := v.(*QueryTemplateByIdResponse); i { case 0: return &v.state case 1: diff --git a/api/warden/act/v1beta1/query_grpc.pb.go b/api/warden/act/v1beta1/query_grpc.pb.go index 705895a86..661817677 100644 --- a/api/warden/act/v1beta1/query_grpc.pb.go +++ b/api/warden/act/v1beta1/query_grpc.pb.go @@ -21,9 +21,9 @@ const _ = grpc.SupportPackageIsVersion7 const ( Query_Params_FullMethodName = "/warden.act.v1beta1.Query/Params" Query_Actions_FullMethodName = "/warden.act.v1beta1.Query/Actions" - Query_Rules_FullMethodName = "/warden.act.v1beta1.Query/Rules" - Query_SimulateRule_FullMethodName = "/warden.act.v1beta1.Query/SimulateRule" - Query_RuleById_FullMethodName = "/warden.act.v1beta1.Query/RuleById" + Query_Templates_FullMethodName = "/warden.act.v1beta1.Query/Templates" + Query_SimulateTemplate_FullMethodName = "/warden.act.v1beta1.Query/SimulateTemplate" + Query_TemplateById_FullMethodName = "/warden.act.v1beta1.Query/TemplateById" Query_ActionsByAddress_FullMethodName = "/warden.act.v1beta1.Query/ActionsByAddress" Query_ActionById_FullMethodName = "/warden.act.v1beta1.Query/ActionById" ) @@ -36,12 +36,12 @@ type QueryClient interface { Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of Actions items. Actions(ctx context.Context, in *QueryActionsRequest, opts ...grpc.CallOption) (*QueryActionsResponse, error) - // Queries a list of Rules items. - Rules(ctx context.Context, in *QueryRulesRequest, opts ...grpc.CallOption) (*QueryRulesResponse, error) - // Queries to simulate a Rule - SimulateRule(ctx context.Context, in *QuerySimulateRuleRequest, opts ...grpc.CallOption) (*QuerySimulateRuleResponse, error) - // Queries a list of RuleById items. - RuleById(ctx context.Context, in *QueryRuleByIdRequest, opts ...grpc.CallOption) (*QueryRuleByIdResponse, error) + // Queries a list of Templates items. + Templates(ctx context.Context, in *QueryTemplatesRequest, opts ...grpc.CallOption) (*QueryTemplatesResponse, error) + // Queries to simulate a Template + SimulateTemplate(ctx context.Context, in *QuerySimulateTemplateRequest, opts ...grpc.CallOption) (*QuerySimulateTemplateResponse, error) + // Queries a list of TemplateById items. + TemplateById(ctx context.Context, in *QueryTemplateByIdRequest, opts ...grpc.CallOption) (*QueryTemplateByIdResponse, error) // Queries a list of Actions items by one participant address. ActionsByAddress(ctx context.Context, in *QueryActionsByAddressRequest, opts ...grpc.CallOption) (*QueryActionsByAddressResponse, error) ActionById(ctx context.Context, in *QueryActionByIdRequest, opts ...grpc.CallOption) (*QueryActionByIdResponse, error) @@ -73,27 +73,27 @@ func (c *queryClient) Actions(ctx context.Context, in *QueryActionsRequest, opts return out, nil } -func (c *queryClient) Rules(ctx context.Context, in *QueryRulesRequest, opts ...grpc.CallOption) (*QueryRulesResponse, error) { - out := new(QueryRulesResponse) - err := c.cc.Invoke(ctx, Query_Rules_FullMethodName, in, out, opts...) +func (c *queryClient) Templates(ctx context.Context, in *QueryTemplatesRequest, opts ...grpc.CallOption) (*QueryTemplatesResponse, error) { + out := new(QueryTemplatesResponse) + err := c.cc.Invoke(ctx, Query_Templates_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) SimulateRule(ctx context.Context, in *QuerySimulateRuleRequest, opts ...grpc.CallOption) (*QuerySimulateRuleResponse, error) { - out := new(QuerySimulateRuleResponse) - err := c.cc.Invoke(ctx, Query_SimulateRule_FullMethodName, in, out, opts...) +func (c *queryClient) SimulateTemplate(ctx context.Context, in *QuerySimulateTemplateRequest, opts ...grpc.CallOption) (*QuerySimulateTemplateResponse, error) { + out := new(QuerySimulateTemplateResponse) + err := c.cc.Invoke(ctx, Query_SimulateTemplate_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) RuleById(ctx context.Context, in *QueryRuleByIdRequest, opts ...grpc.CallOption) (*QueryRuleByIdResponse, error) { - out := new(QueryRuleByIdResponse) - err := c.cc.Invoke(ctx, Query_RuleById_FullMethodName, in, out, opts...) +func (c *queryClient) TemplateById(ctx context.Context, in *QueryTemplateByIdRequest, opts ...grpc.CallOption) (*QueryTemplateByIdResponse, error) { + out := new(QueryTemplateByIdResponse) + err := c.cc.Invoke(ctx, Query_TemplateById_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -126,12 +126,12 @@ type QueryServer interface { Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of Actions items. Actions(context.Context, *QueryActionsRequest) (*QueryActionsResponse, error) - // Queries a list of Rules items. - Rules(context.Context, *QueryRulesRequest) (*QueryRulesResponse, error) - // Queries to simulate a Rule - SimulateRule(context.Context, *QuerySimulateRuleRequest) (*QuerySimulateRuleResponse, error) - // Queries a list of RuleById items. - RuleById(context.Context, *QueryRuleByIdRequest) (*QueryRuleByIdResponse, error) + // Queries a list of Templates items. + Templates(context.Context, *QueryTemplatesRequest) (*QueryTemplatesResponse, error) + // Queries to simulate a Template + SimulateTemplate(context.Context, *QuerySimulateTemplateRequest) (*QuerySimulateTemplateResponse, error) + // Queries a list of TemplateById items. + TemplateById(context.Context, *QueryTemplateByIdRequest) (*QueryTemplateByIdResponse, error) // Queries a list of Actions items by one participant address. ActionsByAddress(context.Context, *QueryActionsByAddressRequest) (*QueryActionsByAddressResponse, error) ActionById(context.Context, *QueryActionByIdRequest) (*QueryActionByIdResponse, error) @@ -148,14 +148,14 @@ func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*Q func (UnimplementedQueryServer) Actions(context.Context, *QueryActionsRequest) (*QueryActionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Actions not implemented") } -func (UnimplementedQueryServer) Rules(context.Context, *QueryRulesRequest) (*QueryRulesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Rules not implemented") +func (UnimplementedQueryServer) Templates(context.Context, *QueryTemplatesRequest) (*QueryTemplatesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Templates not implemented") } -func (UnimplementedQueryServer) SimulateRule(context.Context, *QuerySimulateRuleRequest) (*QuerySimulateRuleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SimulateRule not implemented") +func (UnimplementedQueryServer) SimulateTemplate(context.Context, *QuerySimulateTemplateRequest) (*QuerySimulateTemplateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SimulateTemplate not implemented") } -func (UnimplementedQueryServer) RuleById(context.Context, *QueryRuleByIdRequest) (*QueryRuleByIdResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RuleById not implemented") +func (UnimplementedQueryServer) TemplateById(context.Context, *QueryTemplateByIdRequest) (*QueryTemplateByIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TemplateById not implemented") } func (UnimplementedQueryServer) ActionsByAddress(context.Context, *QueryActionsByAddressRequest) (*QueryActionsByAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ActionsByAddress not implemented") @@ -212,56 +212,56 @@ func _Query_Actions_Handler(srv interface{}, ctx context.Context, dec func(inter return interceptor(ctx, in, info, handler) } -func _Query_Rules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRulesRequest) +func _Query_Templates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTemplatesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Rules(ctx, in) + return srv.(QueryServer).Templates(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_Rules_FullMethodName, + FullMethod: Query_Templates_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Rules(ctx, req.(*QueryRulesRequest)) + return srv.(QueryServer).Templates(ctx, req.(*QueryTemplatesRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_SimulateRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QuerySimulateRuleRequest) +func _Query_SimulateTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuerySimulateTemplateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).SimulateRule(ctx, in) + return srv.(QueryServer).SimulateTemplate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_SimulateRule_FullMethodName, + FullMethod: Query_SimulateTemplate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).SimulateRule(ctx, req.(*QuerySimulateRuleRequest)) + return srv.(QueryServer).SimulateTemplate(ctx, req.(*QuerySimulateTemplateRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_RuleById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRuleByIdRequest) +func _Query_TemplateById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTemplateByIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).RuleById(ctx, in) + return srv.(QueryServer).TemplateById(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_RuleById_FullMethodName, + FullMethod: Query_TemplateById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).RuleById(ctx, req.(*QueryRuleByIdRequest)) + return srv.(QueryServer).TemplateById(ctx, req.(*QueryTemplateByIdRequest)) } return interceptor(ctx, in, info, handler) } @@ -318,16 +318,16 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_Actions_Handler, }, { - MethodName: "Rules", - Handler: _Query_Rules_Handler, + MethodName: "Templates", + Handler: _Query_Templates_Handler, }, { - MethodName: "SimulateRule", - Handler: _Query_SimulateRule_Handler, + MethodName: "SimulateTemplate", + Handler: _Query_SimulateTemplate_Handler, }, { - MethodName: "RuleById", - Handler: _Query_RuleById_Handler, + MethodName: "TemplateById", + Handler: _Query_TemplateById_Handler, }, { MethodName: "ActionsByAddress", diff --git a/api/warden/act/v1beta1/rule.pulsar.go b/api/warden/act/v1beta1/template.pulsar.go similarity index 64% rename from api/warden/act/v1beta1/rule.pulsar.go rename to api/warden/act/v1beta1/template.pulsar.go index 1cff82c44..51030e02a 100644 --- a/api/warden/act/v1beta1/rule.pulsar.go +++ b/api/warden/act/v1beta1/template.pulsar.go @@ -15,32 +15,32 @@ import ( ) var ( - md_Rule protoreflect.MessageDescriptor - fd_Rule_id protoreflect.FieldDescriptor - fd_Rule_creator protoreflect.FieldDescriptor - fd_Rule_name protoreflect.FieldDescriptor - fd_Rule_expression protoreflect.FieldDescriptor + md_Template protoreflect.MessageDescriptor + fd_Template_id protoreflect.FieldDescriptor + fd_Template_creator protoreflect.FieldDescriptor + fd_Template_name protoreflect.FieldDescriptor + fd_Template_expression protoreflect.FieldDescriptor ) func init() { - file_warden_act_v1beta1_rule_proto_init() - md_Rule = File_warden_act_v1beta1_rule_proto.Messages().ByName("Rule") - fd_Rule_id = md_Rule.Fields().ByName("id") - fd_Rule_creator = md_Rule.Fields().ByName("creator") - fd_Rule_name = md_Rule.Fields().ByName("name") - fd_Rule_expression = md_Rule.Fields().ByName("expression") + file_warden_act_v1beta1_template_proto_init() + md_Template = File_warden_act_v1beta1_template_proto.Messages().ByName("Template") + fd_Template_id = md_Template.Fields().ByName("id") + fd_Template_creator = md_Template.Fields().ByName("creator") + fd_Template_name = md_Template.Fields().ByName("name") + fd_Template_expression = md_Template.Fields().ByName("expression") } -var _ protoreflect.Message = (*fastReflection_Rule)(nil) +var _ protoreflect.Message = (*fastReflection_Template)(nil) -type fastReflection_Rule Rule +type fastReflection_Template Template -func (x *Rule) ProtoReflect() protoreflect.Message { - return (*fastReflection_Rule)(x) +func (x *Template) ProtoReflect() protoreflect.Message { + return (*fastReflection_Template)(x) } -func (x *Rule) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_rule_proto_msgTypes[0] +func (x *Template) slowProtoReflect() protoreflect.Message { + mi := &file_warden_act_v1beta1_template_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -51,43 +51,43 @@ func (x *Rule) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_Rule_messageType fastReflection_Rule_messageType -var _ protoreflect.MessageType = fastReflection_Rule_messageType{} +var _fastReflection_Template_messageType fastReflection_Template_messageType +var _ protoreflect.MessageType = fastReflection_Template_messageType{} -type fastReflection_Rule_messageType struct{} +type fastReflection_Template_messageType struct{} -func (x fastReflection_Rule_messageType) Zero() protoreflect.Message { - return (*fastReflection_Rule)(nil) +func (x fastReflection_Template_messageType) Zero() protoreflect.Message { + return (*fastReflection_Template)(nil) } -func (x fastReflection_Rule_messageType) New() protoreflect.Message { - return new(fastReflection_Rule) +func (x fastReflection_Template_messageType) New() protoreflect.Message { + return new(fastReflection_Template) } -func (x fastReflection_Rule_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Rule +func (x fastReflection_Template_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Template } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_Rule) Descriptor() protoreflect.MessageDescriptor { - return md_Rule +func (x *fastReflection_Template) Descriptor() protoreflect.MessageDescriptor { + return md_Template } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_Rule) Type() protoreflect.MessageType { - return _fastReflection_Rule_messageType +func (x *fastReflection_Template) Type() protoreflect.MessageType { + return _fastReflection_Template_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_Rule) New() protoreflect.Message { - return new(fastReflection_Rule) +func (x *fastReflection_Template) New() protoreflect.Message { + return new(fastReflection_Template) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_Rule) Interface() protoreflect.ProtoMessage { - return (*Rule)(x) +func (x *fastReflection_Template) Interface() protoreflect.ProtoMessage { + return (*Template)(x) } // Range iterates over every populated field in an undefined order, @@ -95,28 +95,28 @@ func (x *fastReflection_Rule) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_Rule) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_Template) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Id != uint64(0) { value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_Rule_id, value) { + if !f(fd_Template_id, value) { return } } if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_Rule_creator, value) { + if !f(fd_Template_creator, value) { return } } if x.Name != "" { value := protoreflect.ValueOfString(x.Name) - if !f(fd_Rule_name, value) { + if !f(fd_Template_name, value) { return } } if x.Expression != nil { value := protoreflect.ValueOfMessage(x.Expression.ProtoReflect()) - if !f(fd_Rule_expression, value) { + if !f(fd_Template_expression, value) { return } } @@ -133,21 +133,21 @@ func (x *fastReflection_Rule) Range(f func(protoreflect.FieldDescriptor, protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_Rule) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_Template) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.Rule.id": + case "warden.act.v1beta1.Template.id": return x.Id != uint64(0) - case "warden.act.v1beta1.Rule.creator": + case "warden.act.v1beta1.Template.creator": return x.Creator != "" - case "warden.act.v1beta1.Rule.name": + case "warden.act.v1beta1.Template.name": return x.Name != "" - case "warden.act.v1beta1.Rule.expression": + case "warden.act.v1beta1.Template.expression": return x.Expression != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Rule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Template")) } - panic(fmt.Errorf("message warden.act.v1beta1.Rule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.Template does not contain field %s", fd.FullName())) } } @@ -157,21 +157,21 @@ func (x *fastReflection_Rule) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Rule) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_Template) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.Rule.id": + case "warden.act.v1beta1.Template.id": x.Id = uint64(0) - case "warden.act.v1beta1.Rule.creator": + case "warden.act.v1beta1.Template.creator": x.Creator = "" - case "warden.act.v1beta1.Rule.name": + case "warden.act.v1beta1.Template.name": x.Name = "" - case "warden.act.v1beta1.Rule.expression": + case "warden.act.v1beta1.Template.expression": x.Expression = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Rule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Template")) } - panic(fmt.Errorf("message warden.act.v1beta1.Rule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.Template does not contain field %s", fd.FullName())) } } @@ -181,25 +181,25 @@ func (x *fastReflection_Rule) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Rule) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Template) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.Rule.id": + case "warden.act.v1beta1.Template.id": value := x.Id return protoreflect.ValueOfUint64(value) - case "warden.act.v1beta1.Rule.creator": + case "warden.act.v1beta1.Template.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "warden.act.v1beta1.Rule.name": + case "warden.act.v1beta1.Template.name": value := x.Name return protoreflect.ValueOfString(value) - case "warden.act.v1beta1.Rule.expression": + case "warden.act.v1beta1.Template.expression": value := x.Expression return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Rule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Template")) } - panic(fmt.Errorf("message warden.act.v1beta1.Rule does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.Template does not contain field %s", descriptor.FullName())) } } @@ -213,21 +213,21 @@ func (x *fastReflection_Rule) Get(descriptor protoreflect.FieldDescriptor) proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Rule) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_Template) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.Rule.id": + case "warden.act.v1beta1.Template.id": x.Id = value.Uint() - case "warden.act.v1beta1.Rule.creator": + case "warden.act.v1beta1.Template.creator": x.Creator = value.Interface().(string) - case "warden.act.v1beta1.Rule.name": + case "warden.act.v1beta1.Template.name": x.Name = value.Interface().(string) - case "warden.act.v1beta1.Rule.expression": + case "warden.act.v1beta1.Template.expression": x.Expression = value.Message().Interface().(*ast.Expression) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Rule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Template")) } - panic(fmt.Errorf("message warden.act.v1beta1.Rule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.Template does not contain field %s", fd.FullName())) } } @@ -241,56 +241,56 @@ func (x *fastReflection_Rule) Set(fd protoreflect.FieldDescriptor, value protore // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Rule) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Template) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.Rule.expression": + case "warden.act.v1beta1.Template.expression": if x.Expression == nil { x.Expression = new(ast.Expression) } return protoreflect.ValueOfMessage(x.Expression.ProtoReflect()) - case "warden.act.v1beta1.Rule.id": - panic(fmt.Errorf("field id of message warden.act.v1beta1.Rule is not mutable")) - case "warden.act.v1beta1.Rule.creator": - panic(fmt.Errorf("field creator of message warden.act.v1beta1.Rule is not mutable")) - case "warden.act.v1beta1.Rule.name": - panic(fmt.Errorf("field name of message warden.act.v1beta1.Rule is not mutable")) + case "warden.act.v1beta1.Template.id": + panic(fmt.Errorf("field id of message warden.act.v1beta1.Template is not mutable")) + case "warden.act.v1beta1.Template.creator": + panic(fmt.Errorf("field creator of message warden.act.v1beta1.Template is not mutable")) + case "warden.act.v1beta1.Template.name": + panic(fmt.Errorf("field name of message warden.act.v1beta1.Template is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Rule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Template")) } - panic(fmt.Errorf("message warden.act.v1beta1.Rule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.Template does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Rule) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Template) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.Rule.id": + case "warden.act.v1beta1.Template.id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.act.v1beta1.Rule.creator": + case "warden.act.v1beta1.Template.creator": return protoreflect.ValueOfString("") - case "warden.act.v1beta1.Rule.name": + case "warden.act.v1beta1.Template.name": return protoreflect.ValueOfString("") - case "warden.act.v1beta1.Rule.expression": + case "warden.act.v1beta1.Template.expression": m := new(ast.Expression) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Rule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Template")) } - panic(fmt.Errorf("message warden.act.v1beta1.Rule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.Template does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Rule) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_Template) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.Rule", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.Template", d.FullName())) } panic("unreachable") } @@ -298,7 +298,7 @@ func (x *fastReflection_Rule) WhichOneof(d protoreflect.OneofDescriptor) protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Rule) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_Template) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -309,7 +309,7 @@ func (x *fastReflection_Rule) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Rule) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_Template) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -321,7 +321,7 @@ func (x *fastReflection_Rule) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_Rule) IsValid() bool { +func (x *fastReflection_Template) IsValid() bool { return x != nil } @@ -331,9 +331,9 @@ func (x *fastReflection_Rule) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_Rule) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_Template) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Rule) + x := input.Message.Interface().(*Template) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -370,7 +370,7 @@ func (x *fastReflection_Rule) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Rule) + x := input.Message.Interface().(*Template) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -433,7 +433,7 @@ func (x *fastReflection_Rule) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Rule) + x := input.Message.Interface().(*Template) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -465,10 +465,10 @@ func (x *fastReflection_Rule) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Rule: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Template: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Template: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -629,7 +629,7 @@ func (x *fastReflection_Rule) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: warden/act/v1beta1/rule.proto +// source: warden/act/v1beta1/template.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -638,7 +638,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type Rule struct { +type Template struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -646,111 +646,112 @@ type Rule struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // The expression to be evaluated for this rule. + // The expression to be evaluated for this template. Expression *ast.Expression `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression,omitempty"` } -func (x *Rule) Reset() { - *x = Rule{} +func (x *Template) Reset() { + *x = Template{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_rule_proto_msgTypes[0] + mi := &file_warden_act_v1beta1_template_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Rule) String() string { +func (x *Template) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Rule) ProtoMessage() {} +func (*Template) ProtoMessage() {} -// Deprecated: Use Rule.ProtoReflect.Descriptor instead. -func (*Rule) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_rule_proto_rawDescGZIP(), []int{0} +// Deprecated: Use Template.ProtoReflect.Descriptor instead. +func (*Template) Descriptor() ([]byte, []int) { + return file_warden_act_v1beta1_template_proto_rawDescGZIP(), []int{0} } -func (x *Rule) GetId() uint64 { +func (x *Template) GetId() uint64 { if x != nil { return x.Id } return 0 } -func (x *Rule) GetCreator() string { +func (x *Template) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *Rule) GetName() string { +func (x *Template) GetName() string { if x != nil { return x.Name } return "" } -func (x *Rule) GetExpression() *ast.Expression { +func (x *Template) GetExpression() *ast.Expression { if x != nil { return x.Expression } return nil } -var File_warden_act_v1beta1_rule_proto protoreflect.FileDescriptor - -var file_warden_act_v1beta1_rule_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x12, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, - 0x73, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x2f, 0x61, 0x73, 0x74, 0x2f, 0x61, 0x73, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7c, 0x0a, 0x04, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x65, 0x78, - 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x73, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x70, 0x72, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x42, 0xda, 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, 0x09, 0x52, - 0x75, 0x6c, 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 File_warden_act_v1beta1_template_proto protoreflect.FileDescriptor + +var file_warden_act_v1beta1_template_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x14, 0x73, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x2f, 0x61, 0x73, 0x74, 0x2f, 0x61, + 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a, 0x08, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x68, 0x69, 0x65, 0x6c, 0x64, + 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0xde, 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, 0x0d, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 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 ( - file_warden_act_v1beta1_rule_proto_rawDescOnce sync.Once - file_warden_act_v1beta1_rule_proto_rawDescData = file_warden_act_v1beta1_rule_proto_rawDesc + file_warden_act_v1beta1_template_proto_rawDescOnce sync.Once + file_warden_act_v1beta1_template_proto_rawDescData = file_warden_act_v1beta1_template_proto_rawDesc ) -func file_warden_act_v1beta1_rule_proto_rawDescGZIP() []byte { - file_warden_act_v1beta1_rule_proto_rawDescOnce.Do(func() { - file_warden_act_v1beta1_rule_proto_rawDescData = protoimpl.X.CompressGZIP(file_warden_act_v1beta1_rule_proto_rawDescData) +func file_warden_act_v1beta1_template_proto_rawDescGZIP() []byte { + file_warden_act_v1beta1_template_proto_rawDescOnce.Do(func() { + file_warden_act_v1beta1_template_proto_rawDescData = protoimpl.X.CompressGZIP(file_warden_act_v1beta1_template_proto_rawDescData) }) - return file_warden_act_v1beta1_rule_proto_rawDescData + return file_warden_act_v1beta1_template_proto_rawDescData } -var file_warden_act_v1beta1_rule_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_warden_act_v1beta1_rule_proto_goTypes = []interface{}{ - (*Rule)(nil), // 0: warden.act.v1beta1.Rule +var file_warden_act_v1beta1_template_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_warden_act_v1beta1_template_proto_goTypes = []interface{}{ + (*Template)(nil), // 0: warden.act.v1beta1.Template (*ast.Expression)(nil), // 1: shield.ast.Expression } -var file_warden_act_v1beta1_rule_proto_depIdxs = []int32{ - 1, // 0: warden.act.v1beta1.Rule.expression:type_name -> shield.ast.Expression +var file_warden_act_v1beta1_template_proto_depIdxs = []int32{ + 1, // 0: warden.act.v1beta1.Template.expression:type_name -> shield.ast.Expression 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -758,14 +759,14 @@ var file_warden_act_v1beta1_rule_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_warden_act_v1beta1_rule_proto_init() } -func file_warden_act_v1beta1_rule_proto_init() { - if File_warden_act_v1beta1_rule_proto != nil { +func init() { file_warden_act_v1beta1_template_proto_init() } +func file_warden_act_v1beta1_template_proto_init() { + if File_warden_act_v1beta1_template_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_warden_act_v1beta1_rule_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Rule); i { + file_warden_act_v1beta1_template_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Template); i { case 0: return &v.state case 1: @@ -781,18 +782,18 @@ func file_warden_act_v1beta1_rule_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_warden_act_v1beta1_rule_proto_rawDesc, + RawDescriptor: file_warden_act_v1beta1_template_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_warden_act_v1beta1_rule_proto_goTypes, - DependencyIndexes: file_warden_act_v1beta1_rule_proto_depIdxs, - MessageInfos: file_warden_act_v1beta1_rule_proto_msgTypes, + GoTypes: file_warden_act_v1beta1_template_proto_goTypes, + DependencyIndexes: file_warden_act_v1beta1_template_proto_depIdxs, + MessageInfos: file_warden_act_v1beta1_template_proto_msgTypes, }.Build() - File_warden_act_v1beta1_rule_proto = out.File - file_warden_act_v1beta1_rule_proto_rawDesc = nil - file_warden_act_v1beta1_rule_proto_goTypes = nil - file_warden_act_v1beta1_rule_proto_depIdxs = nil + File_warden_act_v1beta1_template_proto = out.File + file_warden_act_v1beta1_template_proto_rawDesc = nil + file_warden_act_v1beta1_template_proto_goTypes = nil + file_warden_act_v1beta1_template_proto_depIdxs = nil } diff --git a/api/warden/act/v1beta1/tx.pulsar.go b/api/warden/act/v1beta1/tx.pulsar.go index e2823c247..9a842b603 100644 --- a/api/warden/act/v1beta1/tx.pulsar.go +++ b/api/warden/act/v1beta1/tx.pulsar.go @@ -2841,29 +2841,29 @@ func (x *fastReflection_MsgApproveActionResponse) ProtoMethods() *protoiface.Met } var ( - md_MsgNewRule protoreflect.MessageDescriptor - fd_MsgNewRule_creator protoreflect.FieldDescriptor - fd_MsgNewRule_name protoreflect.FieldDescriptor - fd_MsgNewRule_definition protoreflect.FieldDescriptor + md_MsgNewTemplate protoreflect.MessageDescriptor + fd_MsgNewTemplate_creator protoreflect.FieldDescriptor + fd_MsgNewTemplate_name protoreflect.FieldDescriptor + fd_MsgNewTemplate_definition protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_tx_proto_init() - md_MsgNewRule = File_warden_act_v1beta1_tx_proto.Messages().ByName("MsgNewRule") - fd_MsgNewRule_creator = md_MsgNewRule.Fields().ByName("creator") - fd_MsgNewRule_name = md_MsgNewRule.Fields().ByName("name") - fd_MsgNewRule_definition = md_MsgNewRule.Fields().ByName("definition") + md_MsgNewTemplate = File_warden_act_v1beta1_tx_proto.Messages().ByName("MsgNewTemplate") + fd_MsgNewTemplate_creator = md_MsgNewTemplate.Fields().ByName("creator") + fd_MsgNewTemplate_name = md_MsgNewTemplate.Fields().ByName("name") + fd_MsgNewTemplate_definition = md_MsgNewTemplate.Fields().ByName("definition") } -var _ protoreflect.Message = (*fastReflection_MsgNewRule)(nil) +var _ protoreflect.Message = (*fastReflection_MsgNewTemplate)(nil) -type fastReflection_MsgNewRule MsgNewRule +type fastReflection_MsgNewTemplate MsgNewTemplate -func (x *MsgNewRule) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgNewRule)(x) +func (x *MsgNewTemplate) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgNewTemplate)(x) } -func (x *MsgNewRule) slowProtoReflect() protoreflect.Message { +func (x *MsgNewTemplate) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_tx_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2875,43 +2875,43 @@ func (x *MsgNewRule) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgNewRule_messageType fastReflection_MsgNewRule_messageType -var _ protoreflect.MessageType = fastReflection_MsgNewRule_messageType{} +var _fastReflection_MsgNewTemplate_messageType fastReflection_MsgNewTemplate_messageType +var _ protoreflect.MessageType = fastReflection_MsgNewTemplate_messageType{} -type fastReflection_MsgNewRule_messageType struct{} +type fastReflection_MsgNewTemplate_messageType struct{} -func (x fastReflection_MsgNewRule_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgNewRule)(nil) +func (x fastReflection_MsgNewTemplate_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgNewTemplate)(nil) } -func (x fastReflection_MsgNewRule_messageType) New() protoreflect.Message { - return new(fastReflection_MsgNewRule) +func (x fastReflection_MsgNewTemplate_messageType) New() protoreflect.Message { + return new(fastReflection_MsgNewTemplate) } -func (x fastReflection_MsgNewRule_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgNewRule +func (x fastReflection_MsgNewTemplate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgNewTemplate } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgNewRule) Descriptor() protoreflect.MessageDescriptor { - return md_MsgNewRule +func (x *fastReflection_MsgNewTemplate) Descriptor() protoreflect.MessageDescriptor { + return md_MsgNewTemplate } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgNewRule) Type() protoreflect.MessageType { - return _fastReflection_MsgNewRule_messageType +func (x *fastReflection_MsgNewTemplate) Type() protoreflect.MessageType { + return _fastReflection_MsgNewTemplate_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgNewRule) New() protoreflect.Message { - return new(fastReflection_MsgNewRule) +func (x *fastReflection_MsgNewTemplate) New() protoreflect.Message { + return new(fastReflection_MsgNewTemplate) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgNewRule) Interface() protoreflect.ProtoMessage { - return (*MsgNewRule)(x) +func (x *fastReflection_MsgNewTemplate) Interface() protoreflect.ProtoMessage { + return (*MsgNewTemplate)(x) } // Range iterates over every populated field in an undefined order, @@ -2919,22 +2919,22 @@ func (x *fastReflection_MsgNewRule) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgNewRule) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgNewTemplate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgNewRule_creator, value) { + if !f(fd_MsgNewTemplate_creator, value) { return } } if x.Name != "" { value := protoreflect.ValueOfString(x.Name) - if !f(fd_MsgNewRule_name, value) { + if !f(fd_MsgNewTemplate_name, value) { return } } if x.Definition != "" { value := protoreflect.ValueOfString(x.Definition) - if !f(fd_MsgNewRule_definition, value) { + if !f(fd_MsgNewTemplate_definition, value) { return } } @@ -2951,19 +2951,19 @@ func (x *fastReflection_MsgNewRule) Range(f func(protoreflect.FieldDescriptor, p // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgNewRule) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgNewTemplate) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.MsgNewRule.creator": + case "warden.act.v1beta1.MsgNewTemplate.creator": return x.Creator != "" - case "warden.act.v1beta1.MsgNewRule.name": + case "warden.act.v1beta1.MsgNewTemplate.name": return x.Name != "" - case "warden.act.v1beta1.MsgNewRule.definition": + case "warden.act.v1beta1.MsgNewTemplate.definition": return x.Definition != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplate does not contain field %s", fd.FullName())) } } @@ -2973,19 +2973,19 @@ func (x *fastReflection_MsgNewRule) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgNewRule) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgNewTemplate) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.MsgNewRule.creator": + case "warden.act.v1beta1.MsgNewTemplate.creator": x.Creator = "" - case "warden.act.v1beta1.MsgNewRule.name": + case "warden.act.v1beta1.MsgNewTemplate.name": x.Name = "" - case "warden.act.v1beta1.MsgNewRule.definition": + case "warden.act.v1beta1.MsgNewTemplate.definition": x.Definition = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplate does not contain field %s", fd.FullName())) } } @@ -2995,22 +2995,22 @@ func (x *fastReflection_MsgNewRule) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgNewRule) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgNewTemplate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.MsgNewRule.creator": + case "warden.act.v1beta1.MsgNewTemplate.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "warden.act.v1beta1.MsgNewRule.name": + case "warden.act.v1beta1.MsgNewTemplate.name": value := x.Name return protoreflect.ValueOfString(value) - case "warden.act.v1beta1.MsgNewRule.definition": + case "warden.act.v1beta1.MsgNewTemplate.definition": value := x.Definition return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRule does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplate does not contain field %s", descriptor.FullName())) } } @@ -3024,19 +3024,19 @@ func (x *fastReflection_MsgNewRule) Get(descriptor protoreflect.FieldDescriptor) // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgNewRule) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgNewTemplate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.MsgNewRule.creator": + case "warden.act.v1beta1.MsgNewTemplate.creator": x.Creator = value.Interface().(string) - case "warden.act.v1beta1.MsgNewRule.name": + case "warden.act.v1beta1.MsgNewTemplate.name": x.Name = value.Interface().(string) - case "warden.act.v1beta1.MsgNewRule.definition": + case "warden.act.v1beta1.MsgNewTemplate.definition": x.Definition = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplate does not contain field %s", fd.FullName())) } } @@ -3050,48 +3050,48 @@ func (x *fastReflection_MsgNewRule) Set(fd protoreflect.FieldDescriptor, value p // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgNewRule) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgNewTemplate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.MsgNewRule.creator": - panic(fmt.Errorf("field creator of message warden.act.v1beta1.MsgNewRule is not mutable")) - case "warden.act.v1beta1.MsgNewRule.name": - panic(fmt.Errorf("field name of message warden.act.v1beta1.MsgNewRule is not mutable")) - case "warden.act.v1beta1.MsgNewRule.definition": - panic(fmt.Errorf("field definition of message warden.act.v1beta1.MsgNewRule is not mutable")) + case "warden.act.v1beta1.MsgNewTemplate.creator": + panic(fmt.Errorf("field creator of message warden.act.v1beta1.MsgNewTemplate is not mutable")) + case "warden.act.v1beta1.MsgNewTemplate.name": + panic(fmt.Errorf("field name of message warden.act.v1beta1.MsgNewTemplate is not mutable")) + case "warden.act.v1beta1.MsgNewTemplate.definition": + panic(fmt.Errorf("field definition of message warden.act.v1beta1.MsgNewTemplate is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplate does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgNewRule) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgNewTemplate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.MsgNewRule.creator": + case "warden.act.v1beta1.MsgNewTemplate.creator": return protoreflect.ValueOfString("") - case "warden.act.v1beta1.MsgNewRule.name": + case "warden.act.v1beta1.MsgNewTemplate.name": return protoreflect.ValueOfString("") - case "warden.act.v1beta1.MsgNewRule.definition": + case "warden.act.v1beta1.MsgNewTemplate.definition": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplate does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgNewRule) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgNewTemplate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.MsgNewRule", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.MsgNewTemplate", d.FullName())) } panic("unreachable") } @@ -3099,7 +3099,7 @@ func (x *fastReflection_MsgNewRule) WhichOneof(d protoreflect.OneofDescriptor) p // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgNewRule) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgNewTemplate) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3110,7 +3110,7 @@ func (x *fastReflection_MsgNewRule) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgNewRule) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgNewTemplate) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3122,7 +3122,7 @@ func (x *fastReflection_MsgNewRule) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgNewRule) IsValid() bool { +func (x *fastReflection_MsgNewTemplate) IsValid() bool { return x != nil } @@ -3132,9 +3132,9 @@ func (x *fastReflection_MsgNewRule) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgNewRule) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgNewTemplate) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgNewRule) + x := input.Message.Interface().(*MsgNewTemplate) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3168,7 +3168,7 @@ func (x *fastReflection_MsgNewRule) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgNewRule) + x := input.Message.Interface().(*MsgNewTemplate) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3219,7 +3219,7 @@ func (x *fastReflection_MsgNewRule) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgNewRule) + x := input.Message.Interface().(*MsgNewTemplate) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3251,10 +3251,10 @@ func (x *fastReflection_MsgNewRule) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgNewRule: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgNewTemplate: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgNewRule: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgNewTemplate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3389,25 +3389,25 @@ func (x *fastReflection_MsgNewRule) ProtoMethods() *protoiface.Methods { } var ( - md_MsgNewRuleResponse protoreflect.MessageDescriptor - fd_MsgNewRuleResponse_id protoreflect.FieldDescriptor + md_MsgNewTemplateResponse protoreflect.MessageDescriptor + fd_MsgNewTemplateResponse_id protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_tx_proto_init() - md_MsgNewRuleResponse = File_warden_act_v1beta1_tx_proto.Messages().ByName("MsgNewRuleResponse") - fd_MsgNewRuleResponse_id = md_MsgNewRuleResponse.Fields().ByName("id") + md_MsgNewTemplateResponse = File_warden_act_v1beta1_tx_proto.Messages().ByName("MsgNewTemplateResponse") + fd_MsgNewTemplateResponse_id = md_MsgNewTemplateResponse.Fields().ByName("id") } -var _ protoreflect.Message = (*fastReflection_MsgNewRuleResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgNewTemplateResponse)(nil) -type fastReflection_MsgNewRuleResponse MsgNewRuleResponse +type fastReflection_MsgNewTemplateResponse MsgNewTemplateResponse -func (x *MsgNewRuleResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgNewRuleResponse)(x) +func (x *MsgNewTemplateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgNewTemplateResponse)(x) } -func (x *MsgNewRuleResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgNewTemplateResponse) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_tx_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3419,43 +3419,43 @@ func (x *MsgNewRuleResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgNewRuleResponse_messageType fastReflection_MsgNewRuleResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgNewRuleResponse_messageType{} +var _fastReflection_MsgNewTemplateResponse_messageType fastReflection_MsgNewTemplateResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgNewTemplateResponse_messageType{} -type fastReflection_MsgNewRuleResponse_messageType struct{} +type fastReflection_MsgNewTemplateResponse_messageType struct{} -func (x fastReflection_MsgNewRuleResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgNewRuleResponse)(nil) +func (x fastReflection_MsgNewTemplateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgNewTemplateResponse)(nil) } -func (x fastReflection_MsgNewRuleResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgNewRuleResponse) +func (x fastReflection_MsgNewTemplateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgNewTemplateResponse) } -func (x fastReflection_MsgNewRuleResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgNewRuleResponse +func (x fastReflection_MsgNewTemplateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgNewTemplateResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgNewRuleResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgNewRuleResponse +func (x *fastReflection_MsgNewTemplateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgNewTemplateResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgNewRuleResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgNewRuleResponse_messageType +func (x *fastReflection_MsgNewTemplateResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgNewTemplateResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgNewRuleResponse) New() protoreflect.Message { - return new(fastReflection_MsgNewRuleResponse) +func (x *fastReflection_MsgNewTemplateResponse) New() protoreflect.Message { + return new(fastReflection_MsgNewTemplateResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgNewRuleResponse) Interface() protoreflect.ProtoMessage { - return (*MsgNewRuleResponse)(x) +func (x *fastReflection_MsgNewTemplateResponse) Interface() protoreflect.ProtoMessage { + return (*MsgNewTemplateResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -3463,10 +3463,10 @@ func (x *fastReflection_MsgNewRuleResponse) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgNewRuleResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgNewTemplateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Id != uint64(0) { value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_MsgNewRuleResponse_id, value) { + if !f(fd_MsgNewTemplateResponse_id, value) { return } } @@ -3483,15 +3483,15 @@ func (x *fastReflection_MsgNewRuleResponse) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgNewRuleResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgNewTemplateResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.MsgNewRuleResponse.id": + case "warden.act.v1beta1.MsgNewTemplateResponse.id": return x.Id != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplateResponse does not contain field %s", fd.FullName())) } } @@ -3501,15 +3501,15 @@ func (x *fastReflection_MsgNewRuleResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgNewRuleResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgNewTemplateResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.MsgNewRuleResponse.id": + case "warden.act.v1beta1.MsgNewTemplateResponse.id": x.Id = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplateResponse does not contain field %s", fd.FullName())) } } @@ -3519,16 +3519,16 @@ func (x *fastReflection_MsgNewRuleResponse) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgNewRuleResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgNewTemplateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.MsgNewRuleResponse.id": + case "warden.act.v1beta1.MsgNewTemplateResponse.id": value := x.Id return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRuleResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplateResponse does not contain field %s", descriptor.FullName())) } } @@ -3542,15 +3542,15 @@ func (x *fastReflection_MsgNewRuleResponse) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgNewRuleResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgNewTemplateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.MsgNewRuleResponse.id": + case "warden.act.v1beta1.MsgNewTemplateResponse.id": x.Id = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplateResponse does not contain field %s", fd.FullName())) } } @@ -3564,40 +3564,40 @@ func (x *fastReflection_MsgNewRuleResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgNewRuleResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgNewTemplateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.MsgNewRuleResponse.id": - panic(fmt.Errorf("field id of message warden.act.v1beta1.MsgNewRuleResponse is not mutable")) + case "warden.act.v1beta1.MsgNewTemplateResponse.id": + panic(fmt.Errorf("field id of message warden.act.v1beta1.MsgNewTemplateResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplateResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgNewRuleResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgNewTemplateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.MsgNewRuleResponse.id": + case "warden.act.v1beta1.MsgNewTemplateResponse.id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgNewTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgNewRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgNewTemplateResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgNewRuleResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgNewTemplateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.MsgNewRuleResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.MsgNewTemplateResponse", d.FullName())) } panic("unreachable") } @@ -3605,7 +3605,7 @@ func (x *fastReflection_MsgNewRuleResponse) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgNewRuleResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgNewTemplateResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3616,7 +3616,7 @@ func (x *fastReflection_MsgNewRuleResponse) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgNewRuleResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgNewTemplateResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3628,7 +3628,7 @@ func (x *fastReflection_MsgNewRuleResponse) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgNewRuleResponse) IsValid() bool { +func (x *fastReflection_MsgNewTemplateResponse) IsValid() bool { return x != nil } @@ -3638,9 +3638,9 @@ func (x *fastReflection_MsgNewRuleResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgNewRuleResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgNewTemplateResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgNewRuleResponse) + x := input.Message.Interface().(*MsgNewTemplateResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3665,7 +3665,7 @@ func (x *fastReflection_MsgNewRuleResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgNewRuleResponse) + x := input.Message.Interface().(*MsgNewTemplateResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3700,7 +3700,7 @@ func (x *fastReflection_MsgNewRuleResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgNewRuleResponse) + x := input.Message.Interface().(*MsgNewTemplateResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3732,10 +3732,10 @@ func (x *fastReflection_MsgNewRuleResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgNewRuleResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgNewTemplateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgNewRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgNewTemplateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3793,31 +3793,31 @@ func (x *fastReflection_MsgNewRuleResponse) ProtoMethods() *protoiface.Methods { } var ( - md_MsgUpdateRule protoreflect.MessageDescriptor - fd_MsgUpdateRule_creator protoreflect.FieldDescriptor - fd_MsgUpdateRule_id protoreflect.FieldDescriptor - fd_MsgUpdateRule_name protoreflect.FieldDescriptor - fd_MsgUpdateRule_definition protoreflect.FieldDescriptor + md_MsgUpdateTemplate protoreflect.MessageDescriptor + fd_MsgUpdateTemplate_creator protoreflect.FieldDescriptor + fd_MsgUpdateTemplate_id protoreflect.FieldDescriptor + fd_MsgUpdateTemplate_name protoreflect.FieldDescriptor + fd_MsgUpdateTemplate_definition protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_tx_proto_init() - md_MsgUpdateRule = File_warden_act_v1beta1_tx_proto.Messages().ByName("MsgUpdateRule") - fd_MsgUpdateRule_creator = md_MsgUpdateRule.Fields().ByName("creator") - fd_MsgUpdateRule_id = md_MsgUpdateRule.Fields().ByName("id") - fd_MsgUpdateRule_name = md_MsgUpdateRule.Fields().ByName("name") - fd_MsgUpdateRule_definition = md_MsgUpdateRule.Fields().ByName("definition") + md_MsgUpdateTemplate = File_warden_act_v1beta1_tx_proto.Messages().ByName("MsgUpdateTemplate") + fd_MsgUpdateTemplate_creator = md_MsgUpdateTemplate.Fields().ByName("creator") + fd_MsgUpdateTemplate_id = md_MsgUpdateTemplate.Fields().ByName("id") + fd_MsgUpdateTemplate_name = md_MsgUpdateTemplate.Fields().ByName("name") + fd_MsgUpdateTemplate_definition = md_MsgUpdateTemplate.Fields().ByName("definition") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateRule)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateTemplate)(nil) -type fastReflection_MsgUpdateRule MsgUpdateRule +type fastReflection_MsgUpdateTemplate MsgUpdateTemplate -func (x *MsgUpdateRule) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateRule)(x) +func (x *MsgUpdateTemplate) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateTemplate)(x) } -func (x *MsgUpdateRule) slowProtoReflect() protoreflect.Message { +func (x *MsgUpdateTemplate) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_tx_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3829,43 +3829,43 @@ func (x *MsgUpdateRule) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateRule_messageType fastReflection_MsgUpdateRule_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateRule_messageType{} +var _fastReflection_MsgUpdateTemplate_messageType fastReflection_MsgUpdateTemplate_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateTemplate_messageType{} -type fastReflection_MsgUpdateRule_messageType struct{} +type fastReflection_MsgUpdateTemplate_messageType struct{} -func (x fastReflection_MsgUpdateRule_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateRule)(nil) +func (x fastReflection_MsgUpdateTemplate_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateTemplate)(nil) } -func (x fastReflection_MsgUpdateRule_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateRule) +func (x fastReflection_MsgUpdateTemplate_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateTemplate) } -func (x fastReflection_MsgUpdateRule_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateRule +func (x fastReflection_MsgUpdateTemplate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateTemplate } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateRule) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateRule +func (x *fastReflection_MsgUpdateTemplate) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateTemplate } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateRule) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateRule_messageType +func (x *fastReflection_MsgUpdateTemplate) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateTemplate_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateRule) New() protoreflect.Message { - return new(fastReflection_MsgUpdateRule) +func (x *fastReflection_MsgUpdateTemplate) New() protoreflect.Message { + return new(fastReflection_MsgUpdateTemplate) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateRule) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateRule)(x) +func (x *fastReflection_MsgUpdateTemplate) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateTemplate)(x) } // Range iterates over every populated field in an undefined order, @@ -3873,28 +3873,28 @@ func (x *fastReflection_MsgUpdateRule) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateRule) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateTemplate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgUpdateRule_creator, value) { + if !f(fd_MsgUpdateTemplate_creator, value) { return } } if x.Id != uint64(0) { value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_MsgUpdateRule_id, value) { + if !f(fd_MsgUpdateTemplate_id, value) { return } } if x.Name != "" { value := protoreflect.ValueOfString(x.Name) - if !f(fd_MsgUpdateRule_name, value) { + if !f(fd_MsgUpdateTemplate_name, value) { return } } if x.Definition != "" { value := protoreflect.ValueOfString(x.Definition) - if !f(fd_MsgUpdateRule_definition, value) { + if !f(fd_MsgUpdateTemplate_definition, value) { return } } @@ -3911,21 +3911,21 @@ func (x *fastReflection_MsgUpdateRule) Range(f func(protoreflect.FieldDescriptor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateRule) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateTemplate) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.act.v1beta1.MsgUpdateRule.creator": + case "warden.act.v1beta1.MsgUpdateTemplate.creator": return x.Creator != "" - case "warden.act.v1beta1.MsgUpdateRule.id": + case "warden.act.v1beta1.MsgUpdateTemplate.id": return x.Id != uint64(0) - case "warden.act.v1beta1.MsgUpdateRule.name": + case "warden.act.v1beta1.MsgUpdateTemplate.name": return x.Name != "" - case "warden.act.v1beta1.MsgUpdateRule.definition": + case "warden.act.v1beta1.MsgUpdateTemplate.definition": return x.Definition != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplate does not contain field %s", fd.FullName())) } } @@ -3935,21 +3935,21 @@ func (x *fastReflection_MsgUpdateRule) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateRule) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateTemplate) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.act.v1beta1.MsgUpdateRule.creator": + case "warden.act.v1beta1.MsgUpdateTemplate.creator": x.Creator = "" - case "warden.act.v1beta1.MsgUpdateRule.id": + case "warden.act.v1beta1.MsgUpdateTemplate.id": x.Id = uint64(0) - case "warden.act.v1beta1.MsgUpdateRule.name": + case "warden.act.v1beta1.MsgUpdateTemplate.name": x.Name = "" - case "warden.act.v1beta1.MsgUpdateRule.definition": + case "warden.act.v1beta1.MsgUpdateTemplate.definition": x.Definition = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplate does not contain field %s", fd.FullName())) } } @@ -3959,25 +3959,25 @@ func (x *fastReflection_MsgUpdateRule) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateRule) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateTemplate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.act.v1beta1.MsgUpdateRule.creator": + case "warden.act.v1beta1.MsgUpdateTemplate.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "warden.act.v1beta1.MsgUpdateRule.id": + case "warden.act.v1beta1.MsgUpdateTemplate.id": value := x.Id return protoreflect.ValueOfUint64(value) - case "warden.act.v1beta1.MsgUpdateRule.name": + case "warden.act.v1beta1.MsgUpdateTemplate.name": value := x.Name return protoreflect.ValueOfString(value) - case "warden.act.v1beta1.MsgUpdateRule.definition": + case "warden.act.v1beta1.MsgUpdateTemplate.definition": value := x.Definition return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRule does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplate does not contain field %s", descriptor.FullName())) } } @@ -3991,21 +3991,21 @@ func (x *fastReflection_MsgUpdateRule) Get(descriptor protoreflect.FieldDescript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateRule) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateTemplate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.act.v1beta1.MsgUpdateRule.creator": + case "warden.act.v1beta1.MsgUpdateTemplate.creator": x.Creator = value.Interface().(string) - case "warden.act.v1beta1.MsgUpdateRule.id": + case "warden.act.v1beta1.MsgUpdateTemplate.id": x.Id = value.Uint() - case "warden.act.v1beta1.MsgUpdateRule.name": + case "warden.act.v1beta1.MsgUpdateTemplate.name": x.Name = value.Interface().(string) - case "warden.act.v1beta1.MsgUpdateRule.definition": + case "warden.act.v1beta1.MsgUpdateTemplate.definition": x.Definition = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplate does not contain field %s", fd.FullName())) } } @@ -4019,52 +4019,52 @@ func (x *fastReflection_MsgUpdateRule) Set(fd protoreflect.FieldDescriptor, valu // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateRule) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateTemplate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.MsgUpdateRule.creator": - panic(fmt.Errorf("field creator of message warden.act.v1beta1.MsgUpdateRule is not mutable")) - case "warden.act.v1beta1.MsgUpdateRule.id": - panic(fmt.Errorf("field id of message warden.act.v1beta1.MsgUpdateRule is not mutable")) - case "warden.act.v1beta1.MsgUpdateRule.name": - panic(fmt.Errorf("field name of message warden.act.v1beta1.MsgUpdateRule is not mutable")) - case "warden.act.v1beta1.MsgUpdateRule.definition": - panic(fmt.Errorf("field definition of message warden.act.v1beta1.MsgUpdateRule is not mutable")) + case "warden.act.v1beta1.MsgUpdateTemplate.creator": + panic(fmt.Errorf("field creator of message warden.act.v1beta1.MsgUpdateTemplate is not mutable")) + case "warden.act.v1beta1.MsgUpdateTemplate.id": + panic(fmt.Errorf("field id of message warden.act.v1beta1.MsgUpdateTemplate is not mutable")) + case "warden.act.v1beta1.MsgUpdateTemplate.name": + panic(fmt.Errorf("field name of message warden.act.v1beta1.MsgUpdateTemplate is not mutable")) + case "warden.act.v1beta1.MsgUpdateTemplate.definition": + panic(fmt.Errorf("field definition of message warden.act.v1beta1.MsgUpdateTemplate is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplate does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateRule) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateTemplate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.MsgUpdateRule.creator": + case "warden.act.v1beta1.MsgUpdateTemplate.creator": return protoreflect.ValueOfString("") - case "warden.act.v1beta1.MsgUpdateRule.id": + case "warden.act.v1beta1.MsgUpdateTemplate.id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.act.v1beta1.MsgUpdateRule.name": + case "warden.act.v1beta1.MsgUpdateTemplate.name": return protoreflect.ValueOfString("") - case "warden.act.v1beta1.MsgUpdateRule.definition": + case "warden.act.v1beta1.MsgUpdateTemplate.definition": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRule")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplate")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRule does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplate does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateRule) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateTemplate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.MsgUpdateRule", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.MsgUpdateTemplate", d.FullName())) } panic("unreachable") } @@ -4072,7 +4072,7 @@ func (x *fastReflection_MsgUpdateRule) WhichOneof(d protoreflect.OneofDescriptor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateRule) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateTemplate) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4083,7 +4083,7 @@ func (x *fastReflection_MsgUpdateRule) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateRule) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateTemplate) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4095,7 +4095,7 @@ func (x *fastReflection_MsgUpdateRule) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateRule) IsValid() bool { +func (x *fastReflection_MsgUpdateTemplate) IsValid() bool { return x != nil } @@ -4105,9 +4105,9 @@ func (x *fastReflection_MsgUpdateRule) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateRule) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateTemplate) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateRule) + x := input.Message.Interface().(*MsgUpdateTemplate) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4144,7 +4144,7 @@ func (x *fastReflection_MsgUpdateRule) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateRule) + x := input.Message.Interface().(*MsgUpdateTemplate) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4200,7 +4200,7 @@ func (x *fastReflection_MsgUpdateRule) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateRule) + x := input.Message.Interface().(*MsgUpdateTemplate) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4232,10 +4232,10 @@ func (x *fastReflection_MsgUpdateRule) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateRule: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateTemplate: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateRule: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateTemplate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4389,23 +4389,23 @@ func (x *fastReflection_MsgUpdateRule) ProtoMethods() *protoiface.Methods { } var ( - md_MsgUpdateRuleResponse protoreflect.MessageDescriptor + md_MsgUpdateTemplateResponse protoreflect.MessageDescriptor ) func init() { file_warden_act_v1beta1_tx_proto_init() - md_MsgUpdateRuleResponse = File_warden_act_v1beta1_tx_proto.Messages().ByName("MsgUpdateRuleResponse") + md_MsgUpdateTemplateResponse = File_warden_act_v1beta1_tx_proto.Messages().ByName("MsgUpdateTemplateResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateRuleResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateTemplateResponse)(nil) -type fastReflection_MsgUpdateRuleResponse MsgUpdateRuleResponse +type fastReflection_MsgUpdateTemplateResponse MsgUpdateTemplateResponse -func (x *MsgUpdateRuleResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateRuleResponse)(x) +func (x *MsgUpdateTemplateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateTemplateResponse)(x) } -func (x *MsgUpdateRuleResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgUpdateTemplateResponse) slowProtoReflect() protoreflect.Message { mi := &file_warden_act_v1beta1_tx_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4417,43 +4417,43 @@ func (x *MsgUpdateRuleResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateRuleResponse_messageType fastReflection_MsgUpdateRuleResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateRuleResponse_messageType{} +var _fastReflection_MsgUpdateTemplateResponse_messageType fastReflection_MsgUpdateTemplateResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateTemplateResponse_messageType{} -type fastReflection_MsgUpdateRuleResponse_messageType struct{} +type fastReflection_MsgUpdateTemplateResponse_messageType struct{} -func (x fastReflection_MsgUpdateRuleResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateRuleResponse)(nil) +func (x fastReflection_MsgUpdateTemplateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateTemplateResponse)(nil) } -func (x fastReflection_MsgUpdateRuleResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateRuleResponse) +func (x fastReflection_MsgUpdateTemplateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateTemplateResponse) } -func (x fastReflection_MsgUpdateRuleResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateRuleResponse +func (x fastReflection_MsgUpdateTemplateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateTemplateResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateRuleResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateRuleResponse +func (x *fastReflection_MsgUpdateTemplateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateTemplateResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateRuleResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateRuleResponse_messageType +func (x *fastReflection_MsgUpdateTemplateResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateTemplateResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateRuleResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateRuleResponse) +func (x *fastReflection_MsgUpdateTemplateResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateTemplateResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateRuleResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateRuleResponse)(x) +func (x *fastReflection_MsgUpdateTemplateResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateTemplateResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4461,7 +4461,7 @@ func (x *fastReflection_MsgUpdateRuleResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateRuleResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateTemplateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -4475,13 +4475,13 @@ func (x *fastReflection_MsgUpdateRuleResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateRuleResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateTemplateResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplateResponse does not contain field %s", fd.FullName())) } } @@ -4491,13 +4491,13 @@ func (x *fastReflection_MsgUpdateRuleResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateRuleResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateTemplateResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplateResponse does not contain field %s", fd.FullName())) } } @@ -4507,13 +4507,13 @@ func (x *fastReflection_MsgUpdateRuleResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateRuleResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateTemplateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRuleResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplateResponse does not contain field %s", descriptor.FullName())) } } @@ -4527,13 +4527,13 @@ func (x *fastReflection_MsgUpdateRuleResponse) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateRuleResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateTemplateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplateResponse does not contain field %s", fd.FullName())) } } @@ -4547,36 +4547,36 @@ func (x *fastReflection_MsgUpdateRuleResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateRuleResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateTemplateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplateResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateRuleResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateTemplateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateRuleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgUpdateTemplateResponse")) } - panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateRuleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.act.v1beta1.MsgUpdateTemplateResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateRuleResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateTemplateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.MsgUpdateRuleResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.MsgUpdateTemplateResponse", d.FullName())) } panic("unreachable") } @@ -4584,7 +4584,7 @@ func (x *fastReflection_MsgUpdateRuleResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateRuleResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateTemplateResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4595,7 +4595,7 @@ func (x *fastReflection_MsgUpdateRuleResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateRuleResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateTemplateResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4607,7 +4607,7 @@ func (x *fastReflection_MsgUpdateRuleResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateRuleResponse) IsValid() bool { +func (x *fastReflection_MsgUpdateTemplateResponse) IsValid() bool { return x != nil } @@ -4617,9 +4617,9 @@ func (x *fastReflection_MsgUpdateRuleResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateRuleResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateTemplateResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateRuleResponse) + x := input.Message.Interface().(*MsgUpdateTemplateResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4641,7 +4641,7 @@ func (x *fastReflection_MsgUpdateRuleResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateRuleResponse) + x := input.Message.Interface().(*MsgUpdateTemplateResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4671,7 +4671,7 @@ func (x *fastReflection_MsgUpdateRuleResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateRuleResponse) + x := input.Message.Interface().(*MsgUpdateTemplateResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4703,10 +4703,10 @@ func (x *fastReflection_MsgUpdateRuleResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateRuleResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateTemplateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateTemplateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -7665,7 +7665,7 @@ func (x *MsgApproveActionResponse) GetStatus() string { return "" } -type MsgNewRule struct { +type MsgNewTemplate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -7675,8 +7675,8 @@ type MsgNewRule struct { Definition string `protobuf:"bytes,3,opt,name=definition,proto3" json:"definition,omitempty"` } -func (x *MsgNewRule) Reset() { - *x = MsgNewRule{} +func (x *MsgNewTemplate) Reset() { + *x = MsgNewTemplate{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_tx_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7684,39 +7684,39 @@ func (x *MsgNewRule) Reset() { } } -func (x *MsgNewRule) String() string { +func (x *MsgNewTemplate) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgNewRule) ProtoMessage() {} +func (*MsgNewTemplate) ProtoMessage() {} -// Deprecated: Use MsgNewRule.ProtoReflect.Descriptor instead. -func (*MsgNewRule) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgNewTemplate.ProtoReflect.Descriptor instead. +func (*MsgNewTemplate) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{6} } -func (x *MsgNewRule) GetCreator() string { +func (x *MsgNewTemplate) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgNewRule) GetName() string { +func (x *MsgNewTemplate) GetName() string { if x != nil { return x.Name } return "" } -func (x *MsgNewRule) GetDefinition() string { +func (x *MsgNewTemplate) GetDefinition() string { if x != nil { return x.Definition } return "" } -type MsgNewRuleResponse struct { +type MsgNewTemplateResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -7724,8 +7724,8 @@ type MsgNewRuleResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } -func (x *MsgNewRuleResponse) Reset() { - *x = MsgNewRuleResponse{} +func (x *MsgNewTemplateResponse) Reset() { + *x = MsgNewTemplateResponse{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_tx_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7733,25 +7733,25 @@ func (x *MsgNewRuleResponse) Reset() { } } -func (x *MsgNewRuleResponse) String() string { +func (x *MsgNewTemplateResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgNewRuleResponse) ProtoMessage() {} +func (*MsgNewTemplateResponse) ProtoMessage() {} -// Deprecated: Use MsgNewRuleResponse.ProtoReflect.Descriptor instead. -func (*MsgNewRuleResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgNewTemplateResponse.ProtoReflect.Descriptor instead. +func (*MsgNewTemplateResponse) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{7} } -func (x *MsgNewRuleResponse) GetId() uint64 { +func (x *MsgNewTemplateResponse) GetId() uint64 { if x != nil { return x.Id } return 0 } -type MsgUpdateRule struct { +type MsgUpdateTemplate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -7762,8 +7762,8 @@ type MsgUpdateRule struct { Definition string `protobuf:"bytes,4,opt,name=definition,proto3" json:"definition,omitempty"` } -func (x *MsgUpdateRule) Reset() { - *x = MsgUpdateRule{} +func (x *MsgUpdateTemplate) Reset() { + *x = MsgUpdateTemplate{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_tx_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7771,53 +7771,53 @@ func (x *MsgUpdateRule) Reset() { } } -func (x *MsgUpdateRule) String() string { +func (x *MsgUpdateTemplate) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgUpdateRule) ProtoMessage() {} +func (*MsgUpdateTemplate) ProtoMessage() {} -// Deprecated: Use MsgUpdateRule.ProtoReflect.Descriptor instead. -func (*MsgUpdateRule) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgUpdateTemplate.ProtoReflect.Descriptor instead. +func (*MsgUpdateTemplate) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{8} } -func (x *MsgUpdateRule) GetCreator() string { +func (x *MsgUpdateTemplate) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgUpdateRule) GetId() uint64 { +func (x *MsgUpdateTemplate) GetId() uint64 { if x != nil { return x.Id } return 0 } -func (x *MsgUpdateRule) GetName() string { +func (x *MsgUpdateTemplate) GetName() string { if x != nil { return x.Name } return "" } -func (x *MsgUpdateRule) GetDefinition() string { +func (x *MsgUpdateTemplate) GetDefinition() string { if x != nil { return x.Definition } return "" } -type MsgUpdateRuleResponse struct { +type MsgUpdateTemplateResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgUpdateRuleResponse) Reset() { - *x = MsgUpdateRuleResponse{} +func (x *MsgUpdateTemplateResponse) Reset() { + *x = MsgUpdateTemplateResponse{} if protoimpl.UnsafeEnabled { mi := &file_warden_act_v1beta1_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7825,14 +7825,14 @@ func (x *MsgUpdateRuleResponse) Reset() { } } -func (x *MsgUpdateRuleResponse) String() string { +func (x *MsgUpdateTemplateResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgUpdateRuleResponse) ProtoMessage() {} +func (*MsgUpdateTemplateResponse) ProtoMessage() {} -// Deprecated: Use MsgUpdateRuleResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateRuleResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgUpdateTemplateResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateTemplateResponse) Descriptor() ([]byte, []int) { return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{9} } @@ -8130,25 +8130,26 @@ var file_warden_act_v1beta1_tx_proto_rawDesc = []byte{ 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x32, 0x0a, 0x18, 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, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x68, 0x0a, - 0x0a, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, - 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, - 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x4e, 0x65, - 0x77, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7b, 0x0a, - 0x0d, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, - 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, - 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x6c, 0x0a, + 0x0e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, + 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, + 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x16, 0x4d, + 0x73, 0x67, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7f, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x56, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, @@ -8178,7 +8179,7 @@ var file_warden_act_v1beta1_tx_proto_rawDesc = []byte{ 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, + 0x73, 0x32, 0x99, 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, @@ -8202,45 +8203,46 @@ var file_warden_act_v1beta1_tx_proto_rawDesc = []byte{ 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, 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, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x0b, 0x4e, 0x65, 0x77, 0x54, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 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, - 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, + 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x1a, 0x2a, 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, + 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x25, 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, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x1a, 0x2d, 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, 0x54, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 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, 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 ( @@ -8257,25 +8259,25 @@ func file_warden_act_v1beta1_tx_proto_rawDescGZIP() []byte { var file_warden_act_v1beta1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 16) var file_warden_act_v1beta1_tx_proto_goTypes = []interface{}{ - (*MsgUpdateParams)(nil), // 0: warden.act.v1beta1.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 1: warden.act.v1beta1.MsgUpdateParamsResponse - (*MsgNewAction)(nil), // 2: warden.act.v1beta1.MsgNewAction - (*MsgNewActionResponse)(nil), // 3: warden.act.v1beta1.MsgNewActionResponse - (*MsgApproveAction)(nil), // 4: warden.act.v1beta1.MsgApproveAction - (*MsgApproveActionResponse)(nil), // 5: warden.act.v1beta1.MsgApproveActionResponse - (*MsgNewRule)(nil), // 6: warden.act.v1beta1.MsgNewRule - (*MsgNewRuleResponse)(nil), // 7: warden.act.v1beta1.MsgNewRuleResponse - (*MsgUpdateRule)(nil), // 8: warden.act.v1beta1.MsgUpdateRule - (*MsgUpdateRuleResponse)(nil), // 9: warden.act.v1beta1.MsgUpdateRuleResponse - (*MsgRevokeAction)(nil), // 10: warden.act.v1beta1.MsgRevokeAction - (*MsgRevokeActionResponse)(nil), // 11: warden.act.v1beta1.MsgRevokeActionResponse - (*MsgCheckAction)(nil), // 12: warden.act.v1beta1.MsgCheckAction - (*MsgCheckActionResponse)(nil), // 13: warden.act.v1beta1.MsgCheckActionResponse - (*MsgVoteForAction)(nil), // 14: warden.act.v1beta1.MsgVoteForAction - (*MsgVoteForActionResponse)(nil), // 15: warden.act.v1beta1.MsgVoteForActionResponse - (*Params)(nil), // 16: warden.act.v1beta1.Params - (*anypb.Any)(nil), // 17: google.protobuf.Any - (ActionVoteType)(0), // 18: warden.act.v1beta1.ActionVoteType + (*MsgUpdateParams)(nil), // 0: warden.act.v1beta1.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 1: warden.act.v1beta1.MsgUpdateParamsResponse + (*MsgNewAction)(nil), // 2: warden.act.v1beta1.MsgNewAction + (*MsgNewActionResponse)(nil), // 3: warden.act.v1beta1.MsgNewActionResponse + (*MsgApproveAction)(nil), // 4: warden.act.v1beta1.MsgApproveAction + (*MsgApproveActionResponse)(nil), // 5: warden.act.v1beta1.MsgApproveActionResponse + (*MsgNewTemplate)(nil), // 6: warden.act.v1beta1.MsgNewTemplate + (*MsgNewTemplateResponse)(nil), // 7: warden.act.v1beta1.MsgNewTemplateResponse + (*MsgUpdateTemplate)(nil), // 8: warden.act.v1beta1.MsgUpdateTemplate + (*MsgUpdateTemplateResponse)(nil), // 9: warden.act.v1beta1.MsgUpdateTemplateResponse + (*MsgRevokeAction)(nil), // 10: warden.act.v1beta1.MsgRevokeAction + (*MsgRevokeActionResponse)(nil), // 11: warden.act.v1beta1.MsgRevokeActionResponse + (*MsgCheckAction)(nil), // 12: warden.act.v1beta1.MsgCheckAction + (*MsgCheckActionResponse)(nil), // 13: warden.act.v1beta1.MsgCheckActionResponse + (*MsgVoteForAction)(nil), // 14: warden.act.v1beta1.MsgVoteForAction + (*MsgVoteForActionResponse)(nil), // 15: warden.act.v1beta1.MsgVoteForActionResponse + (*Params)(nil), // 16: warden.act.v1beta1.Params + (*anypb.Any)(nil), // 17: google.protobuf.Any + (ActionVoteType)(0), // 18: warden.act.v1beta1.ActionVoteType } var file_warden_act_v1beta1_tx_proto_depIdxs = []int32{ 16, // 0: warden.act.v1beta1.MsgUpdateParams.params:type_name -> warden.act.v1beta1.Params @@ -8285,16 +8287,16 @@ var file_warden_act_v1beta1_tx_proto_depIdxs = []int32{ 2, // 4: warden.act.v1beta1.Msg.NewAction:input_type -> warden.act.v1beta1.MsgNewAction 4, // 5: warden.act.v1beta1.Msg.ApproveAction:input_type -> warden.act.v1beta1.MsgApproveAction 12, // 6: warden.act.v1beta1.Msg.CheckAction:input_type -> warden.act.v1beta1.MsgCheckAction - 6, // 7: warden.act.v1beta1.Msg.NewRule:input_type -> warden.act.v1beta1.MsgNewRule - 8, // 8: warden.act.v1beta1.Msg.UpdateRule:input_type -> warden.act.v1beta1.MsgUpdateRule + 6, // 7: warden.act.v1beta1.Msg.NewTemplate:input_type -> warden.act.v1beta1.MsgNewTemplate + 8, // 8: warden.act.v1beta1.Msg.UpdateTemplate:input_type -> warden.act.v1beta1.MsgUpdateTemplate 10, // 9: warden.act.v1beta1.Msg.RevokeAction:input_type -> warden.act.v1beta1.MsgRevokeAction 14, // 10: warden.act.v1beta1.Msg.VoteForAction:input_type -> warden.act.v1beta1.MsgVoteForAction 1, // 11: warden.act.v1beta1.Msg.UpdateParams:output_type -> warden.act.v1beta1.MsgUpdateParamsResponse 3, // 12: warden.act.v1beta1.Msg.NewAction:output_type -> warden.act.v1beta1.MsgNewActionResponse 5, // 13: warden.act.v1beta1.Msg.ApproveAction:output_type -> warden.act.v1beta1.MsgApproveActionResponse 13, // 14: warden.act.v1beta1.Msg.CheckAction:output_type -> warden.act.v1beta1.MsgCheckActionResponse - 7, // 15: warden.act.v1beta1.Msg.NewRule:output_type -> warden.act.v1beta1.MsgNewRuleResponse - 9, // 16: warden.act.v1beta1.Msg.UpdateRule:output_type -> warden.act.v1beta1.MsgUpdateRuleResponse + 7, // 15: warden.act.v1beta1.Msg.NewTemplate:output_type -> warden.act.v1beta1.MsgNewTemplateResponse + 9, // 16: warden.act.v1beta1.Msg.UpdateTemplate:output_type -> warden.act.v1beta1.MsgUpdateTemplateResponse 11, // 17: warden.act.v1beta1.Msg.RevokeAction:output_type -> warden.act.v1beta1.MsgRevokeActionResponse 15, // 18: warden.act.v1beta1.Msg.VoteForAction:output_type -> warden.act.v1beta1.MsgVoteForActionResponse 11, // [11:19] is the sub-list for method output_type @@ -8385,7 +8387,7 @@ func file_warden_act_v1beta1_tx_proto_init() { } } file_warden_act_v1beta1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgNewRule); i { + switch v := v.(*MsgNewTemplate); i { case 0: return &v.state case 1: @@ -8397,7 +8399,7 @@ func file_warden_act_v1beta1_tx_proto_init() { } } file_warden_act_v1beta1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgNewRuleResponse); i { + switch v := v.(*MsgNewTemplateResponse); i { case 0: return &v.state case 1: @@ -8409,7 +8411,7 @@ func file_warden_act_v1beta1_tx_proto_init() { } } file_warden_act_v1beta1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateRule); i { + switch v := v.(*MsgUpdateTemplate); i { case 0: return &v.state case 1: @@ -8421,7 +8423,7 @@ func file_warden_act_v1beta1_tx_proto_init() { } } file_warden_act_v1beta1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateRuleResponse); i { + switch v := v.(*MsgUpdateTemplateResponse); i { case 0: return &v.state case 1: diff --git a/api/warden/act/v1beta1/tx_grpc.pb.go b/api/warden/act/v1beta1/tx_grpc.pb.go index 8bad40631..0c1532fd0 100644 --- a/api/warden/act/v1beta1/tx_grpc.pb.go +++ b/api/warden/act/v1beta1/tx_grpc.pb.go @@ -19,14 +19,14 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Msg_UpdateParams_FullMethodName = "/warden.act.v1beta1.Msg/UpdateParams" - Msg_NewAction_FullMethodName = "/warden.act.v1beta1.Msg/NewAction" - Msg_ApproveAction_FullMethodName = "/warden.act.v1beta1.Msg/ApproveAction" - Msg_CheckAction_FullMethodName = "/warden.act.v1beta1.Msg/CheckAction" - Msg_NewRule_FullMethodName = "/warden.act.v1beta1.Msg/NewRule" - Msg_UpdateRule_FullMethodName = "/warden.act.v1beta1.Msg/UpdateRule" - Msg_RevokeAction_FullMethodName = "/warden.act.v1beta1.Msg/RevokeAction" - Msg_VoteForAction_FullMethodName = "/warden.act.v1beta1.Msg/VoteForAction" + Msg_UpdateParams_FullMethodName = "/warden.act.v1beta1.Msg/UpdateParams" + Msg_NewAction_FullMethodName = "/warden.act.v1beta1.Msg/NewAction" + Msg_ApproveAction_FullMethodName = "/warden.act.v1beta1.Msg/ApproveAction" + Msg_CheckAction_FullMethodName = "/warden.act.v1beta1.Msg/CheckAction" + Msg_NewTemplate_FullMethodName = "/warden.act.v1beta1.Msg/NewTemplate" + Msg_UpdateTemplate_FullMethodName = "/warden.act.v1beta1.Msg/UpdateTemplate" + Msg_RevokeAction_FullMethodName = "/warden.act.v1beta1.Msg/RevokeAction" + Msg_VoteForAction_FullMethodName = "/warden.act.v1beta1.Msg/VoteForAction" ) // MsgClient is the client API for Msg service. @@ -42,10 +42,10 @@ type MsgClient interface { ApproveAction(ctx context.Context, in *MsgApproveAction, opts ...grpc.CallOption) (*MsgApproveActionResponse, error) // Checks a pending action and executes it if its in a valid state. CheckAction(ctx context.Context, in *MsgCheckAction, opts ...grpc.CallOption) (*MsgCheckActionResponse, error) - // Create a new Rule. - NewRule(ctx context.Context, in *MsgNewRule, opts ...grpc.CallOption) (*MsgNewRuleResponse, error) + // Create a new Template. + NewTemplate(ctx context.Context, in *MsgNewTemplate, opts ...grpc.CallOption) (*MsgNewTemplateResponse, error) // Update an existing act name and definition. - UpdateRule(ctx context.Context, in *MsgUpdateRule, opts ...grpc.CallOption) (*MsgUpdateRuleResponse, error) + UpdateTemplate(ctx context.Context, in *MsgUpdateTemplate, opts ...grpc.CallOption) (*MsgUpdateTemplateResponse, error) // Revoke an existing Action while in pending state. RevokeAction(ctx context.Context, in *MsgRevokeAction, opts ...grpc.CallOption) (*MsgRevokeActionResponse, error) // Vote for or against a particular Action. @@ -96,18 +96,18 @@ func (c *msgClient) CheckAction(ctx context.Context, in *MsgCheckAction, opts .. return out, nil } -func (c *msgClient) NewRule(ctx context.Context, in *MsgNewRule, opts ...grpc.CallOption) (*MsgNewRuleResponse, error) { - out := new(MsgNewRuleResponse) - err := c.cc.Invoke(ctx, Msg_NewRule_FullMethodName, in, out, opts...) +func (c *msgClient) NewTemplate(ctx context.Context, in *MsgNewTemplate, opts ...grpc.CallOption) (*MsgNewTemplateResponse, error) { + out := new(MsgNewTemplateResponse) + err := c.cc.Invoke(ctx, Msg_NewTemplate_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *msgClient) UpdateRule(ctx context.Context, in *MsgUpdateRule, opts ...grpc.CallOption) (*MsgUpdateRuleResponse, error) { - out := new(MsgUpdateRuleResponse) - err := c.cc.Invoke(ctx, Msg_UpdateRule_FullMethodName, in, out, opts...) +func (c *msgClient) UpdateTemplate(ctx context.Context, in *MsgUpdateTemplate, opts ...grpc.CallOption) (*MsgUpdateTemplateResponse, error) { + out := new(MsgUpdateTemplateResponse) + err := c.cc.Invoke(ctx, Msg_UpdateTemplate_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -145,10 +145,10 @@ type MsgServer interface { ApproveAction(context.Context, *MsgApproveAction) (*MsgApproveActionResponse, error) // Checks a pending action and executes it if its in a valid state. CheckAction(context.Context, *MsgCheckAction) (*MsgCheckActionResponse, error) - // Create a new Rule. - NewRule(context.Context, *MsgNewRule) (*MsgNewRuleResponse, error) + // Create a new Template. + NewTemplate(context.Context, *MsgNewTemplate) (*MsgNewTemplateResponse, error) // Update an existing act name and definition. - UpdateRule(context.Context, *MsgUpdateRule) (*MsgUpdateRuleResponse, error) + UpdateTemplate(context.Context, *MsgUpdateTemplate) (*MsgUpdateTemplateResponse, error) // Revoke an existing Action while in pending state. RevokeAction(context.Context, *MsgRevokeAction) (*MsgRevokeActionResponse, error) // Vote for or against a particular Action. @@ -172,11 +172,11 @@ func (UnimplementedMsgServer) ApproveAction(context.Context, *MsgApproveAction) func (UnimplementedMsgServer) CheckAction(context.Context, *MsgCheckAction) (*MsgCheckActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckAction not implemented") } -func (UnimplementedMsgServer) NewRule(context.Context, *MsgNewRule) (*MsgNewRuleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NewRule not implemented") +func (UnimplementedMsgServer) NewTemplate(context.Context, *MsgNewTemplate) (*MsgNewTemplateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NewTemplate not implemented") } -func (UnimplementedMsgServer) UpdateRule(context.Context, *MsgUpdateRule) (*MsgUpdateRuleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateRule not implemented") +func (UnimplementedMsgServer) UpdateTemplate(context.Context, *MsgUpdateTemplate) (*MsgUpdateTemplateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateTemplate not implemented") } func (UnimplementedMsgServer) RevokeAction(context.Context, *MsgRevokeAction) (*MsgRevokeActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RevokeAction not implemented") @@ -269,38 +269,38 @@ func _Msg_CheckAction_Handler(srv interface{}, ctx context.Context, dec func(int return interceptor(ctx, in, info, handler) } -func _Msg_NewRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgNewRule) +func _Msg_NewTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgNewTemplate) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).NewRule(ctx, in) + return srv.(MsgServer).NewTemplate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_NewRule_FullMethodName, + FullMethod: Msg_NewTemplate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).NewRule(ctx, req.(*MsgNewRule)) + return srv.(MsgServer).NewTemplate(ctx, req.(*MsgNewTemplate)) } return interceptor(ctx, in, info, handler) } -func _Msg_UpdateRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateRule) +func _Msg_UpdateTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateTemplate) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).UpdateRule(ctx, in) + return srv.(MsgServer).UpdateTemplate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_UpdateRule_FullMethodName, + FullMethod: Msg_UpdateTemplate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateRule(ctx, req.(*MsgUpdateRule)) + return srv.(MsgServer).UpdateTemplate(ctx, req.(*MsgUpdateTemplate)) } return interceptor(ctx, in, info, handler) } @@ -365,12 +365,12 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ Handler: _Msg_CheckAction_Handler, }, { - MethodName: "NewRule", - Handler: _Msg_NewRule_Handler, + MethodName: "NewTemplate", + Handler: _Msg_NewTemplate_Handler, }, { - MethodName: "UpdateRule", - Handler: _Msg_UpdateRule_Handler, + MethodName: "UpdateTemplate", + Handler: _Msg_UpdateTemplate_Handler, }, { MethodName: "RevokeAction", diff --git a/api/warden/warden/v1beta3/events.pulsar.go b/api/warden/warden/v1beta3/events.pulsar.go index acd4fbd96..75c9a93a0 100644 --- a/api/warden/warden/v1beta3/events.pulsar.go +++ b/api/warden/warden/v1beta3/events.pulsar.go @@ -15,12 +15,12 @@ import ( ) var ( - md_EventCreateSpace protoreflect.MessageDescriptor - fd_EventCreateSpace_id protoreflect.FieldDescriptor - fd_EventCreateSpace_creator protoreflect.FieldDescriptor - fd_EventCreateSpace_owners_count protoreflect.FieldDescriptor - fd_EventCreateSpace_admin_rule_id protoreflect.FieldDescriptor - fd_EventCreateSpace_sign_rule_id protoreflect.FieldDescriptor + md_EventCreateSpace protoreflect.MessageDescriptor + fd_EventCreateSpace_id protoreflect.FieldDescriptor + fd_EventCreateSpace_creator protoreflect.FieldDescriptor + fd_EventCreateSpace_owners_count protoreflect.FieldDescriptor + fd_EventCreateSpace_admin_template_id protoreflect.FieldDescriptor + fd_EventCreateSpace_sign_template_id protoreflect.FieldDescriptor ) func init() { @@ -29,8 +29,8 @@ func init() { fd_EventCreateSpace_id = md_EventCreateSpace.Fields().ByName("id") fd_EventCreateSpace_creator = md_EventCreateSpace.Fields().ByName("creator") fd_EventCreateSpace_owners_count = md_EventCreateSpace.Fields().ByName("owners_count") - fd_EventCreateSpace_admin_rule_id = md_EventCreateSpace.Fields().ByName("admin_rule_id") - fd_EventCreateSpace_sign_rule_id = md_EventCreateSpace.Fields().ByName("sign_rule_id") + fd_EventCreateSpace_admin_template_id = md_EventCreateSpace.Fields().ByName("admin_template_id") + fd_EventCreateSpace_sign_template_id = md_EventCreateSpace.Fields().ByName("sign_template_id") } var _ protoreflect.Message = (*fastReflection_EventCreateSpace)(nil) @@ -116,15 +116,15 @@ func (x *fastReflection_EventCreateSpace) Range(f func(protoreflect.FieldDescrip return } } - if x.AdminRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.AdminRuleId) - if !f(fd_EventCreateSpace_admin_rule_id, value) { + if x.AdminTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.AdminTemplateId) + if !f(fd_EventCreateSpace_admin_template_id, value) { return } } - if x.SignRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SignRuleId) - if !f(fd_EventCreateSpace_sign_rule_id, value) { + if x.SignTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SignTemplateId) + if !f(fd_EventCreateSpace_sign_template_id, value) { return } } @@ -149,10 +149,10 @@ func (x *fastReflection_EventCreateSpace) Has(fd protoreflect.FieldDescriptor) b return x.Creator != "" case "warden.warden.v1beta3.EventCreateSpace.owners_count": return x.OwnersCount != uint64(0) - case "warden.warden.v1beta3.EventCreateSpace.admin_rule_id": - return x.AdminRuleId != uint64(0) - case "warden.warden.v1beta3.EventCreateSpace.sign_rule_id": - return x.SignRuleId != uint64(0) + case "warden.warden.v1beta3.EventCreateSpace.admin_template_id": + return x.AdminTemplateId != uint64(0) + case "warden.warden.v1beta3.EventCreateSpace.sign_template_id": + return x.SignTemplateId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventCreateSpace")) @@ -175,10 +175,10 @@ func (x *fastReflection_EventCreateSpace) Clear(fd protoreflect.FieldDescriptor) x.Creator = "" case "warden.warden.v1beta3.EventCreateSpace.owners_count": x.OwnersCount = uint64(0) - case "warden.warden.v1beta3.EventCreateSpace.admin_rule_id": - x.AdminRuleId = uint64(0) - case "warden.warden.v1beta3.EventCreateSpace.sign_rule_id": - x.SignRuleId = uint64(0) + case "warden.warden.v1beta3.EventCreateSpace.admin_template_id": + x.AdminTemplateId = uint64(0) + case "warden.warden.v1beta3.EventCreateSpace.sign_template_id": + x.SignTemplateId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventCreateSpace")) @@ -204,11 +204,11 @@ func (x *fastReflection_EventCreateSpace) Get(descriptor protoreflect.FieldDescr case "warden.warden.v1beta3.EventCreateSpace.owners_count": value := x.OwnersCount return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventCreateSpace.admin_rule_id": - value := x.AdminRuleId + case "warden.warden.v1beta3.EventCreateSpace.admin_template_id": + value := x.AdminTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventCreateSpace.sign_rule_id": - value := x.SignRuleId + case "warden.warden.v1beta3.EventCreateSpace.sign_template_id": + value := x.SignTemplateId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { @@ -236,10 +236,10 @@ func (x *fastReflection_EventCreateSpace) Set(fd protoreflect.FieldDescriptor, v x.Creator = value.Interface().(string) case "warden.warden.v1beta3.EventCreateSpace.owners_count": x.OwnersCount = value.Uint() - case "warden.warden.v1beta3.EventCreateSpace.admin_rule_id": - x.AdminRuleId = value.Uint() - case "warden.warden.v1beta3.EventCreateSpace.sign_rule_id": - x.SignRuleId = value.Uint() + case "warden.warden.v1beta3.EventCreateSpace.admin_template_id": + x.AdminTemplateId = value.Uint() + case "warden.warden.v1beta3.EventCreateSpace.sign_template_id": + x.SignTemplateId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventCreateSpace")) @@ -266,10 +266,10 @@ func (x *fastReflection_EventCreateSpace) Mutable(fd protoreflect.FieldDescripto panic(fmt.Errorf("field creator of message warden.warden.v1beta3.EventCreateSpace is not mutable")) case "warden.warden.v1beta3.EventCreateSpace.owners_count": panic(fmt.Errorf("field owners_count of message warden.warden.v1beta3.EventCreateSpace is not mutable")) - case "warden.warden.v1beta3.EventCreateSpace.admin_rule_id": - panic(fmt.Errorf("field admin_rule_id of message warden.warden.v1beta3.EventCreateSpace is not mutable")) - case "warden.warden.v1beta3.EventCreateSpace.sign_rule_id": - panic(fmt.Errorf("field sign_rule_id of message warden.warden.v1beta3.EventCreateSpace is not mutable")) + case "warden.warden.v1beta3.EventCreateSpace.admin_template_id": + panic(fmt.Errorf("field admin_template_id of message warden.warden.v1beta3.EventCreateSpace is not mutable")) + case "warden.warden.v1beta3.EventCreateSpace.sign_template_id": + panic(fmt.Errorf("field sign_template_id of message warden.warden.v1beta3.EventCreateSpace is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventCreateSpace")) @@ -289,9 +289,9 @@ func (x *fastReflection_EventCreateSpace) NewField(fd protoreflect.FieldDescript return protoreflect.ValueOfString("") case "warden.warden.v1beta3.EventCreateSpace.owners_count": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventCreateSpace.admin_rule_id": + case "warden.warden.v1beta3.EventCreateSpace.admin_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventCreateSpace.sign_rule_id": + case "warden.warden.v1beta3.EventCreateSpace.sign_template_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -372,11 +372,11 @@ func (x *fastReflection_EventCreateSpace) ProtoMethods() *protoiface.Methods { if x.OwnersCount != 0 { n += 1 + runtime.Sov(uint64(x.OwnersCount)) } - if x.AdminRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.AdminRuleId)) + if x.AdminTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.AdminTemplateId)) } - if x.SignRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.SignRuleId)) + if x.SignTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.SignTemplateId)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -407,13 +407,13 @@ func (x *fastReflection_EventCreateSpace) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.SignRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SignRuleId)) + if x.SignTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SignTemplateId)) i-- dAtA[i] = 0x28 } - if x.AdminRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.AdminRuleId)) + if x.AdminTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.AdminTemplateId)) i-- dAtA[i] = 0x20 } @@ -555,9 +555,9 @@ func (x *fastReflection_EventCreateSpace) ProtoMethods() *protoiface.Methods { } case 4: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AdminRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AdminTemplateId", wireType) } - x.AdminRuleId = 0 + x.AdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -567,16 +567,16 @@ func (x *fastReflection_EventCreateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.AdminRuleId |= uint64(b&0x7F) << shift + x.AdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignTemplateId", wireType) } - x.SignRuleId = 0 + x.SignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -586,7 +586,7 @@ func (x *fastReflection_EventCreateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.SignRuleId |= uint64(b&0x7F) << shift + x.SignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -627,26 +627,26 @@ func (x *fastReflection_EventCreateSpace) ProtoMethods() *protoiface.Methods { } var ( - md_EventUpdateSpace protoreflect.MessageDescriptor - fd_EventUpdateSpace_space_id protoreflect.FieldDescriptor - fd_EventUpdateSpace_admin_rule_id protoreflect.FieldDescriptor - fd_EventUpdateSpace_sign_rule_id protoreflect.FieldDescriptor - fd_EventUpdateSpace_approve_admin_rule_id protoreflect.FieldDescriptor - fd_EventUpdateSpace_reject_admin_rule_id protoreflect.FieldDescriptor - fd_EventUpdateSpace_approve_sign_rule_id protoreflect.FieldDescriptor - fd_EventUpdateSpace_reject_sign_rule_id protoreflect.FieldDescriptor + md_EventUpdateSpace protoreflect.MessageDescriptor + fd_EventUpdateSpace_space_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_admin_template_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_sign_template_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_approve_admin_template_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_reject_admin_template_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_approve_sign_template_id protoreflect.FieldDescriptor + fd_EventUpdateSpace_reject_sign_template_id protoreflect.FieldDescriptor ) func init() { file_warden_warden_v1beta3_events_proto_init() md_EventUpdateSpace = File_warden_warden_v1beta3_events_proto.Messages().ByName("EventUpdateSpace") fd_EventUpdateSpace_space_id = md_EventUpdateSpace.Fields().ByName("space_id") - fd_EventUpdateSpace_admin_rule_id = md_EventUpdateSpace.Fields().ByName("admin_rule_id") - fd_EventUpdateSpace_sign_rule_id = md_EventUpdateSpace.Fields().ByName("sign_rule_id") - fd_EventUpdateSpace_approve_admin_rule_id = md_EventUpdateSpace.Fields().ByName("approve_admin_rule_id") - fd_EventUpdateSpace_reject_admin_rule_id = md_EventUpdateSpace.Fields().ByName("reject_admin_rule_id") - fd_EventUpdateSpace_approve_sign_rule_id = md_EventUpdateSpace.Fields().ByName("approve_sign_rule_id") - fd_EventUpdateSpace_reject_sign_rule_id = md_EventUpdateSpace.Fields().ByName("reject_sign_rule_id") + fd_EventUpdateSpace_admin_template_id = md_EventUpdateSpace.Fields().ByName("admin_template_id") + fd_EventUpdateSpace_sign_template_id = md_EventUpdateSpace.Fields().ByName("sign_template_id") + fd_EventUpdateSpace_approve_admin_template_id = md_EventUpdateSpace.Fields().ByName("approve_admin_template_id") + fd_EventUpdateSpace_reject_admin_template_id = md_EventUpdateSpace.Fields().ByName("reject_admin_template_id") + fd_EventUpdateSpace_approve_sign_template_id = md_EventUpdateSpace.Fields().ByName("approve_sign_template_id") + fd_EventUpdateSpace_reject_sign_template_id = md_EventUpdateSpace.Fields().ByName("reject_sign_template_id") } var _ protoreflect.Message = (*fastReflection_EventUpdateSpace)(nil) @@ -720,39 +720,39 @@ func (x *fastReflection_EventUpdateSpace) Range(f func(protoreflect.FieldDescrip return } } - if x.AdminRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.AdminRuleId) - if !f(fd_EventUpdateSpace_admin_rule_id, value) { + if x.AdminTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.AdminTemplateId) + if !f(fd_EventUpdateSpace_admin_template_id, value) { return } } - if x.SignRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SignRuleId) - if !f(fd_EventUpdateSpace_sign_rule_id, value) { + if x.SignTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SignTemplateId) + if !f(fd_EventUpdateSpace_sign_template_id, value) { return } } - if x.ApproveAdminRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ApproveAdminRuleId) - if !f(fd_EventUpdateSpace_approve_admin_rule_id, value) { + if x.ApproveAdminTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveAdminTemplateId) + if !f(fd_EventUpdateSpace_approve_admin_template_id, value) { return } } - if x.RejectAdminRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RejectAdminRuleId) - if !f(fd_EventUpdateSpace_reject_admin_rule_id, value) { + if x.RejectAdminTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectAdminTemplateId) + if !f(fd_EventUpdateSpace_reject_admin_template_id, value) { return } } - if x.ApproveSignRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ApproveSignRuleId) - if !f(fd_EventUpdateSpace_approve_sign_rule_id, value) { + if x.ApproveSignTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveSignTemplateId) + if !f(fd_EventUpdateSpace_approve_sign_template_id, value) { return } } - if x.RejectSignRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RejectSignRuleId) - if !f(fd_EventUpdateSpace_reject_sign_rule_id, value) { + if x.RejectSignTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectSignTemplateId) + if !f(fd_EventUpdateSpace_reject_sign_template_id, value) { return } } @@ -773,18 +773,18 @@ func (x *fastReflection_EventUpdateSpace) Has(fd protoreflect.FieldDescriptor) b switch fd.FullName() { case "warden.warden.v1beta3.EventUpdateSpace.space_id": return x.SpaceId != uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.admin_rule_id": - return x.AdminRuleId != uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": - return x.SignRuleId != uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": - return x.ApproveAdminRuleId != uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": - return x.RejectAdminRuleId != uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": - return x.ApproveSignRuleId != uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": - return x.RejectSignRuleId != uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.admin_template_id": + return x.AdminTemplateId != uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.sign_template_id": + return x.SignTemplateId != uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_template_id": + return x.ApproveAdminTemplateId != uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_template_id": + return x.RejectAdminTemplateId != uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_template_id": + return x.ApproveSignTemplateId != uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_template_id": + return x.RejectSignTemplateId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateSpace")) @@ -803,18 +803,18 @@ func (x *fastReflection_EventUpdateSpace) Clear(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "warden.warden.v1beta3.EventUpdateSpace.space_id": x.SpaceId = uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.admin_rule_id": - x.AdminRuleId = uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": - x.SignRuleId = uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": - x.ApproveAdminRuleId = uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": - x.RejectAdminRuleId = uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": - x.ApproveSignRuleId = uint64(0) - case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": - x.RejectSignRuleId = uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.admin_template_id": + x.AdminTemplateId = uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.sign_template_id": + x.SignTemplateId = uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_template_id": + x.ApproveAdminTemplateId = uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_template_id": + x.RejectAdminTemplateId = uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_template_id": + x.ApproveSignTemplateId = uint64(0) + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_template_id": + x.RejectSignTemplateId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateSpace")) @@ -834,23 +834,23 @@ func (x *fastReflection_EventUpdateSpace) Get(descriptor protoreflect.FieldDescr case "warden.warden.v1beta3.EventUpdateSpace.space_id": value := x.SpaceId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventUpdateSpace.admin_rule_id": - value := x.AdminRuleId + case "warden.warden.v1beta3.EventUpdateSpace.admin_template_id": + value := x.AdminTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": - value := x.SignRuleId + case "warden.warden.v1beta3.EventUpdateSpace.sign_template_id": + value := x.SignTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": - value := x.ApproveAdminRuleId + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_template_id": + value := x.ApproveAdminTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": - value := x.RejectAdminRuleId + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_template_id": + value := x.RejectAdminTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": - value := x.ApproveSignRuleId + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_template_id": + value := x.ApproveSignTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": - value := x.RejectSignRuleId + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_template_id": + value := x.RejectSignTemplateId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { @@ -874,18 +874,18 @@ func (x *fastReflection_EventUpdateSpace) Set(fd protoreflect.FieldDescriptor, v switch fd.FullName() { case "warden.warden.v1beta3.EventUpdateSpace.space_id": x.SpaceId = value.Uint() - case "warden.warden.v1beta3.EventUpdateSpace.admin_rule_id": - x.AdminRuleId = value.Uint() - case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": - x.SignRuleId = value.Uint() - case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": - x.ApproveAdminRuleId = value.Uint() - case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": - x.RejectAdminRuleId = value.Uint() - case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": - x.ApproveSignRuleId = value.Uint() - case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": - x.RejectSignRuleId = value.Uint() + case "warden.warden.v1beta3.EventUpdateSpace.admin_template_id": + x.AdminTemplateId = value.Uint() + case "warden.warden.v1beta3.EventUpdateSpace.sign_template_id": + x.SignTemplateId = value.Uint() + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_template_id": + x.ApproveAdminTemplateId = value.Uint() + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_template_id": + x.RejectAdminTemplateId = value.Uint() + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_template_id": + x.ApproveSignTemplateId = value.Uint() + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_template_id": + x.RejectSignTemplateId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateSpace")) @@ -908,18 +908,18 @@ func (x *fastReflection_EventUpdateSpace) Mutable(fd protoreflect.FieldDescripto switch fd.FullName() { case "warden.warden.v1beta3.EventUpdateSpace.space_id": panic(fmt.Errorf("field space_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) - case "warden.warden.v1beta3.EventUpdateSpace.admin_rule_id": - panic(fmt.Errorf("field admin_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) - case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": - panic(fmt.Errorf("field sign_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) - case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": - panic(fmt.Errorf("field approve_admin_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) - case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": - panic(fmt.Errorf("field reject_admin_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) - case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": - panic(fmt.Errorf("field approve_sign_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) - case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": - panic(fmt.Errorf("field reject_sign_rule_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) + case "warden.warden.v1beta3.EventUpdateSpace.admin_template_id": + panic(fmt.Errorf("field admin_template_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) + case "warden.warden.v1beta3.EventUpdateSpace.sign_template_id": + panic(fmt.Errorf("field sign_template_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_template_id": + panic(fmt.Errorf("field approve_admin_template_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_template_id": + panic(fmt.Errorf("field reject_admin_template_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_template_id": + panic(fmt.Errorf("field approve_sign_template_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_template_id": + panic(fmt.Errorf("field reject_sign_template_id of message warden.warden.v1beta3.EventUpdateSpace is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateSpace")) @@ -935,17 +935,17 @@ func (x *fastReflection_EventUpdateSpace) NewField(fd protoreflect.FieldDescript switch fd.FullName() { case "warden.warden.v1beta3.EventUpdateSpace.space_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventUpdateSpace.admin_rule_id": + case "warden.warden.v1beta3.EventUpdateSpace.admin_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventUpdateSpace.sign_rule_id": + case "warden.warden.v1beta3.EventUpdateSpace.sign_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_rule_id": + case "warden.warden.v1beta3.EventUpdateSpace.approve_admin_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_rule_id": + case "warden.warden.v1beta3.EventUpdateSpace.reject_admin_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_rule_id": + case "warden.warden.v1beta3.EventUpdateSpace.approve_sign_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_rule_id": + case "warden.warden.v1beta3.EventUpdateSpace.reject_sign_template_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -1019,23 +1019,23 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { if x.SpaceId != 0 { n += 1 + runtime.Sov(uint64(x.SpaceId)) } - if x.AdminRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.AdminRuleId)) + if x.AdminTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.AdminTemplateId)) } - if x.SignRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.SignRuleId)) + if x.SignTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.SignTemplateId)) } - if x.ApproveAdminRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.ApproveAdminRuleId)) + if x.ApproveAdminTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveAdminTemplateId)) } - if x.RejectAdminRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RejectAdminRuleId)) + if x.RejectAdminTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectAdminTemplateId)) } - if x.ApproveSignRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.ApproveSignRuleId)) + if x.ApproveSignTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveSignTemplateId)) } - if x.RejectSignRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RejectSignRuleId)) + if x.RejectSignTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectSignTemplateId)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -1066,33 +1066,33 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.RejectSignRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectSignRuleId)) + if x.RejectSignTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectSignTemplateId)) i-- dAtA[i] = 0x38 } - if x.ApproveSignRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveSignRuleId)) + if x.ApproveSignTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveSignTemplateId)) i-- dAtA[i] = 0x30 } - if x.RejectAdminRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectAdminRuleId)) + if x.RejectAdminTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectAdminTemplateId)) i-- dAtA[i] = 0x28 } - if x.ApproveAdminRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveAdminRuleId)) + if x.ApproveAdminTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveAdminTemplateId)) i-- dAtA[i] = 0x20 } - if x.SignRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SignRuleId)) + if x.SignTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SignTemplateId)) i-- dAtA[i] = 0x18 } - if x.AdminRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.AdminRuleId)) + if x.AdminTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.AdminTemplateId)) i-- dAtA[i] = 0x10 } @@ -1171,9 +1171,9 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { } case 2: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AdminRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AdminTemplateId", wireType) } - x.AdminRuleId = 0 + x.AdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1183,16 +1183,16 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.AdminRuleId |= uint64(b&0x7F) << shift + x.AdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignTemplateId", wireType) } - x.SignRuleId = 0 + x.SignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1202,16 +1202,16 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.SignRuleId |= uint64(b&0x7F) << shift + x.SignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminTemplateId", wireType) } - x.ApproveAdminRuleId = 0 + x.ApproveAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1221,16 +1221,16 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.ApproveAdminRuleId |= uint64(b&0x7F) << shift + x.ApproveAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectAdminTemplateId", wireType) } - x.RejectAdminRuleId = 0 + x.RejectAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1240,16 +1240,16 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RejectAdminRuleId |= uint64(b&0x7F) << shift + x.RejectAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveSignTemplateId", wireType) } - x.ApproveSignRuleId = 0 + x.ApproveSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1259,16 +1259,16 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.ApproveSignRuleId |= uint64(b&0x7F) << shift + x.ApproveSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectSignTemplateId", wireType) } - x.RejectSignRuleId = 0 + x.RejectSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1278,7 +1278,7 @@ func (x *fastReflection_EventUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RejectSignRuleId |= uint64(b&0x7F) << shift + x.RejectSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2355,7 +2355,7 @@ var ( fd_EventNewKeyRequest_id protoreflect.FieldDescriptor fd_EventNewKeyRequest_space_id protoreflect.FieldDescriptor fd_EventNewKeyRequest_keychain_id protoreflect.FieldDescriptor - fd_EventNewKeyRequest_rule_id protoreflect.FieldDescriptor + fd_EventNewKeyRequest_template_id protoreflect.FieldDescriptor fd_EventNewKeyRequest_key_type protoreflect.FieldDescriptor fd_EventNewKeyRequest_creator protoreflect.FieldDescriptor ) @@ -2366,7 +2366,7 @@ func init() { fd_EventNewKeyRequest_id = md_EventNewKeyRequest.Fields().ByName("id") fd_EventNewKeyRequest_space_id = md_EventNewKeyRequest.Fields().ByName("space_id") fd_EventNewKeyRequest_keychain_id = md_EventNewKeyRequest.Fields().ByName("keychain_id") - fd_EventNewKeyRequest_rule_id = md_EventNewKeyRequest.Fields().ByName("rule_id") + fd_EventNewKeyRequest_template_id = md_EventNewKeyRequest.Fields().ByName("template_id") fd_EventNewKeyRequest_key_type = md_EventNewKeyRequest.Fields().ByName("key_type") fd_EventNewKeyRequest_creator = md_EventNewKeyRequest.Fields().ByName("creator") } @@ -2454,9 +2454,9 @@ func (x *fastReflection_EventNewKeyRequest) Range(f func(protoreflect.FieldDescr return } } - if x.RuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RuleId) - if !f(fd_EventNewKeyRequest_rule_id, value) { + if x.TemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TemplateId) + if !f(fd_EventNewKeyRequest_template_id, value) { return } } @@ -2493,8 +2493,8 @@ func (x *fastReflection_EventNewKeyRequest) Has(fd protoreflect.FieldDescriptor) return x.SpaceId != uint64(0) case "warden.warden.v1beta3.EventNewKeyRequest.keychain_id": return x.KeychainId != uint64(0) - case "warden.warden.v1beta3.EventNewKeyRequest.rule_id": - return x.RuleId != uint64(0) + case "warden.warden.v1beta3.EventNewKeyRequest.template_id": + return x.TemplateId != uint64(0) case "warden.warden.v1beta3.EventNewKeyRequest.key_type": return x.KeyType != 0 case "warden.warden.v1beta3.EventNewKeyRequest.creator": @@ -2521,8 +2521,8 @@ func (x *fastReflection_EventNewKeyRequest) Clear(fd protoreflect.FieldDescripto x.SpaceId = uint64(0) case "warden.warden.v1beta3.EventNewKeyRequest.keychain_id": x.KeychainId = uint64(0) - case "warden.warden.v1beta3.EventNewKeyRequest.rule_id": - x.RuleId = uint64(0) + case "warden.warden.v1beta3.EventNewKeyRequest.template_id": + x.TemplateId = uint64(0) case "warden.warden.v1beta3.EventNewKeyRequest.key_type": x.KeyType = 0 case "warden.warden.v1beta3.EventNewKeyRequest.creator": @@ -2552,8 +2552,8 @@ func (x *fastReflection_EventNewKeyRequest) Get(descriptor protoreflect.FieldDes case "warden.warden.v1beta3.EventNewKeyRequest.keychain_id": value := x.KeychainId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventNewKeyRequest.rule_id": - value := x.RuleId + case "warden.warden.v1beta3.EventNewKeyRequest.template_id": + value := x.TemplateId return protoreflect.ValueOfUint64(value) case "warden.warden.v1beta3.EventNewKeyRequest.key_type": value := x.KeyType @@ -2587,8 +2587,8 @@ func (x *fastReflection_EventNewKeyRequest) Set(fd protoreflect.FieldDescriptor, x.SpaceId = value.Uint() case "warden.warden.v1beta3.EventNewKeyRequest.keychain_id": x.KeychainId = value.Uint() - case "warden.warden.v1beta3.EventNewKeyRequest.rule_id": - x.RuleId = value.Uint() + case "warden.warden.v1beta3.EventNewKeyRequest.template_id": + x.TemplateId = value.Uint() case "warden.warden.v1beta3.EventNewKeyRequest.key_type": x.KeyType = (KeyType)(value.Enum()) case "warden.warden.v1beta3.EventNewKeyRequest.creator": @@ -2619,8 +2619,8 @@ func (x *fastReflection_EventNewKeyRequest) Mutable(fd protoreflect.FieldDescrip panic(fmt.Errorf("field space_id of message warden.warden.v1beta3.EventNewKeyRequest is not mutable")) case "warden.warden.v1beta3.EventNewKeyRequest.keychain_id": panic(fmt.Errorf("field keychain_id of message warden.warden.v1beta3.EventNewKeyRequest is not mutable")) - case "warden.warden.v1beta3.EventNewKeyRequest.rule_id": - panic(fmt.Errorf("field rule_id of message warden.warden.v1beta3.EventNewKeyRequest is not mutable")) + case "warden.warden.v1beta3.EventNewKeyRequest.template_id": + panic(fmt.Errorf("field template_id of message warden.warden.v1beta3.EventNewKeyRequest is not mutable")) case "warden.warden.v1beta3.EventNewKeyRequest.key_type": panic(fmt.Errorf("field key_type of message warden.warden.v1beta3.EventNewKeyRequest is not mutable")) case "warden.warden.v1beta3.EventNewKeyRequest.creator": @@ -2644,7 +2644,7 @@ func (x *fastReflection_EventNewKeyRequest) NewField(fd protoreflect.FieldDescri return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.EventNewKeyRequest.keychain_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventNewKeyRequest.rule_id": + case "warden.warden.v1beta3.EventNewKeyRequest.template_id": return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.EventNewKeyRequest.key_type": return protoreflect.ValueOfEnum(0) @@ -2728,8 +2728,8 @@ func (x *fastReflection_EventNewKeyRequest) ProtoMethods() *protoiface.Methods { if x.KeychainId != 0 { n += 1 + runtime.Sov(uint64(x.KeychainId)) } - if x.RuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RuleId)) + if x.TemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.TemplateId)) } if x.KeyType != 0 { n += 1 + runtime.Sov(uint64(x.KeyType)) @@ -2779,8 +2779,8 @@ func (x *fastReflection_EventNewKeyRequest) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x28 } - if x.RuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RuleId)) + if x.TemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TemplateId)) i-- dAtA[i] = 0x20 } @@ -2907,9 +2907,9 @@ func (x *fastReflection_EventNewKeyRequest) ProtoMethods() *protoiface.Methods { } case 4: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - x.RuleId = 0 + x.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2919,7 +2919,7 @@ func (x *fastReflection_EventNewKeyRequest) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RuleId |= uint64(b&0x7F) << shift + x.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3016,7 +3016,7 @@ var ( fd_EventNewKey_key_type protoreflect.FieldDescriptor fd_EventNewKey_space_id protoreflect.FieldDescriptor fd_EventNewKey_keychain_id protoreflect.FieldDescriptor - fd_EventNewKey_rule_id protoreflect.FieldDescriptor + fd_EventNewKey_template_id protoreflect.FieldDescriptor ) func init() { @@ -3026,7 +3026,7 @@ func init() { fd_EventNewKey_key_type = md_EventNewKey.Fields().ByName("key_type") fd_EventNewKey_space_id = md_EventNewKey.Fields().ByName("space_id") fd_EventNewKey_keychain_id = md_EventNewKey.Fields().ByName("keychain_id") - fd_EventNewKey_rule_id = md_EventNewKey.Fields().ByName("rule_id") + fd_EventNewKey_template_id = md_EventNewKey.Fields().ByName("template_id") } var _ protoreflect.Message = (*fastReflection_EventNewKey)(nil) @@ -3118,9 +3118,9 @@ func (x *fastReflection_EventNewKey) Range(f func(protoreflect.FieldDescriptor, return } } - if x.RuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RuleId) - if !f(fd_EventNewKey_rule_id, value) { + if x.TemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TemplateId) + if !f(fd_EventNewKey_template_id, value) { return } } @@ -3147,8 +3147,8 @@ func (x *fastReflection_EventNewKey) Has(fd protoreflect.FieldDescriptor) bool { return x.SpaceId != uint64(0) case "warden.warden.v1beta3.EventNewKey.keychain_id": return x.KeychainId != uint64(0) - case "warden.warden.v1beta3.EventNewKey.rule_id": - return x.RuleId != uint64(0) + case "warden.warden.v1beta3.EventNewKey.template_id": + return x.TemplateId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventNewKey")) @@ -3173,8 +3173,8 @@ func (x *fastReflection_EventNewKey) Clear(fd protoreflect.FieldDescriptor) { x.SpaceId = uint64(0) case "warden.warden.v1beta3.EventNewKey.keychain_id": x.KeychainId = uint64(0) - case "warden.warden.v1beta3.EventNewKey.rule_id": - x.RuleId = uint64(0) + case "warden.warden.v1beta3.EventNewKey.template_id": + x.TemplateId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventNewKey")) @@ -3203,8 +3203,8 @@ func (x *fastReflection_EventNewKey) Get(descriptor protoreflect.FieldDescriptor case "warden.warden.v1beta3.EventNewKey.keychain_id": value := x.KeychainId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventNewKey.rule_id": - value := x.RuleId + case "warden.warden.v1beta3.EventNewKey.template_id": + value := x.TemplateId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { @@ -3234,8 +3234,8 @@ func (x *fastReflection_EventNewKey) Set(fd protoreflect.FieldDescriptor, value x.SpaceId = value.Uint() case "warden.warden.v1beta3.EventNewKey.keychain_id": x.KeychainId = value.Uint() - case "warden.warden.v1beta3.EventNewKey.rule_id": - x.RuleId = value.Uint() + case "warden.warden.v1beta3.EventNewKey.template_id": + x.TemplateId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventNewKey")) @@ -3264,8 +3264,8 @@ func (x *fastReflection_EventNewKey) Mutable(fd protoreflect.FieldDescriptor) pr panic(fmt.Errorf("field space_id of message warden.warden.v1beta3.EventNewKey is not mutable")) case "warden.warden.v1beta3.EventNewKey.keychain_id": panic(fmt.Errorf("field keychain_id of message warden.warden.v1beta3.EventNewKey is not mutable")) - case "warden.warden.v1beta3.EventNewKey.rule_id": - panic(fmt.Errorf("field rule_id of message warden.warden.v1beta3.EventNewKey is not mutable")) + case "warden.warden.v1beta3.EventNewKey.template_id": + panic(fmt.Errorf("field template_id of message warden.warden.v1beta3.EventNewKey is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventNewKey")) @@ -3287,7 +3287,7 @@ func (x *fastReflection_EventNewKey) NewField(fd protoreflect.FieldDescriptor) p return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.EventNewKey.keychain_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventNewKey.rule_id": + case "warden.warden.v1beta3.EventNewKey.template_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -3370,8 +3370,8 @@ func (x *fastReflection_EventNewKey) ProtoMethods() *protoiface.Methods { if x.KeychainId != 0 { n += 1 + runtime.Sov(uint64(x.KeychainId)) } - if x.RuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RuleId)) + if x.TemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.TemplateId)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -3402,8 +3402,8 @@ func (x *fastReflection_EventNewKey) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.RuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RuleId)) + if x.TemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TemplateId)) i-- dAtA[i] = 0x28 } @@ -3554,9 +3554,9 @@ func (x *fastReflection_EventNewKey) ProtoMethods() *protoiface.Methods { } case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - x.RuleId = 0 + x.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3566,7 +3566,7 @@ func (x *fastReflection_EventNewKey) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RuleId |= uint64(b&0x7F) << shift + x.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4011,20 +4011,20 @@ func (x *fastReflection_EventRejectKeyRequest) ProtoMethods() *protoiface.Method } var ( - md_EventUpdateKey protoreflect.MessageDescriptor - fd_EventUpdateKey_id protoreflect.FieldDescriptor - fd_EventUpdateKey_rule_id protoreflect.FieldDescriptor - fd_EventUpdateKey_approve_rule_id protoreflect.FieldDescriptor - fd_EventUpdateKey_reject_rule_id protoreflect.FieldDescriptor + md_EventUpdateKey protoreflect.MessageDescriptor + fd_EventUpdateKey_id protoreflect.FieldDescriptor + fd_EventUpdateKey_template_id protoreflect.FieldDescriptor + fd_EventUpdateKey_approve_template_id protoreflect.FieldDescriptor + fd_EventUpdateKey_reject_template_id protoreflect.FieldDescriptor ) func init() { file_warden_warden_v1beta3_events_proto_init() md_EventUpdateKey = File_warden_warden_v1beta3_events_proto.Messages().ByName("EventUpdateKey") fd_EventUpdateKey_id = md_EventUpdateKey.Fields().ByName("id") - fd_EventUpdateKey_rule_id = md_EventUpdateKey.Fields().ByName("rule_id") - fd_EventUpdateKey_approve_rule_id = md_EventUpdateKey.Fields().ByName("approve_rule_id") - fd_EventUpdateKey_reject_rule_id = md_EventUpdateKey.Fields().ByName("reject_rule_id") + fd_EventUpdateKey_template_id = md_EventUpdateKey.Fields().ByName("template_id") + fd_EventUpdateKey_approve_template_id = md_EventUpdateKey.Fields().ByName("approve_template_id") + fd_EventUpdateKey_reject_template_id = md_EventUpdateKey.Fields().ByName("reject_template_id") } var _ protoreflect.Message = (*fastReflection_EventUpdateKey)(nil) @@ -4098,21 +4098,21 @@ func (x *fastReflection_EventUpdateKey) Range(f func(protoreflect.FieldDescripto return } } - if x.RuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RuleId) - if !f(fd_EventUpdateKey_rule_id, value) { + if x.TemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TemplateId) + if !f(fd_EventUpdateKey_template_id, value) { return } } - if x.ApproveRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ApproveRuleId) - if !f(fd_EventUpdateKey_approve_rule_id, value) { + if x.ApproveTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveTemplateId) + if !f(fd_EventUpdateKey_approve_template_id, value) { return } } - if x.RejectRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RejectRuleId) - if !f(fd_EventUpdateKey_reject_rule_id, value) { + if x.RejectTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectTemplateId) + if !f(fd_EventUpdateKey_reject_template_id, value) { return } } @@ -4133,12 +4133,12 @@ func (x *fastReflection_EventUpdateKey) Has(fd protoreflect.FieldDescriptor) boo switch fd.FullName() { case "warden.warden.v1beta3.EventUpdateKey.id": return x.Id != uint64(0) - case "warden.warden.v1beta3.EventUpdateKey.rule_id": - return x.RuleId != uint64(0) - case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": - return x.ApproveRuleId != uint64(0) - case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": - return x.RejectRuleId != uint64(0) + case "warden.warden.v1beta3.EventUpdateKey.template_id": + return x.TemplateId != uint64(0) + case "warden.warden.v1beta3.EventUpdateKey.approve_template_id": + return x.ApproveTemplateId != uint64(0) + case "warden.warden.v1beta3.EventUpdateKey.reject_template_id": + return x.RejectTemplateId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateKey")) @@ -4157,12 +4157,12 @@ func (x *fastReflection_EventUpdateKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "warden.warden.v1beta3.EventUpdateKey.id": x.Id = uint64(0) - case "warden.warden.v1beta3.EventUpdateKey.rule_id": - x.RuleId = uint64(0) - case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": - x.ApproveRuleId = uint64(0) - case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": - x.RejectRuleId = uint64(0) + case "warden.warden.v1beta3.EventUpdateKey.template_id": + x.TemplateId = uint64(0) + case "warden.warden.v1beta3.EventUpdateKey.approve_template_id": + x.ApproveTemplateId = uint64(0) + case "warden.warden.v1beta3.EventUpdateKey.reject_template_id": + x.RejectTemplateId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateKey")) @@ -4182,14 +4182,14 @@ func (x *fastReflection_EventUpdateKey) Get(descriptor protoreflect.FieldDescrip case "warden.warden.v1beta3.EventUpdateKey.id": value := x.Id return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventUpdateKey.rule_id": - value := x.RuleId + case "warden.warden.v1beta3.EventUpdateKey.template_id": + value := x.TemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": - value := x.ApproveRuleId + case "warden.warden.v1beta3.EventUpdateKey.approve_template_id": + value := x.ApproveTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": - value := x.RejectRuleId + case "warden.warden.v1beta3.EventUpdateKey.reject_template_id": + value := x.RejectTemplateId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { @@ -4213,12 +4213,12 @@ func (x *fastReflection_EventUpdateKey) Set(fd protoreflect.FieldDescriptor, val switch fd.FullName() { case "warden.warden.v1beta3.EventUpdateKey.id": x.Id = value.Uint() - case "warden.warden.v1beta3.EventUpdateKey.rule_id": - x.RuleId = value.Uint() - case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": - x.ApproveRuleId = value.Uint() - case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": - x.RejectRuleId = value.Uint() + case "warden.warden.v1beta3.EventUpdateKey.template_id": + x.TemplateId = value.Uint() + case "warden.warden.v1beta3.EventUpdateKey.approve_template_id": + x.ApproveTemplateId = value.Uint() + case "warden.warden.v1beta3.EventUpdateKey.reject_template_id": + x.RejectTemplateId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateKey")) @@ -4241,12 +4241,12 @@ func (x *fastReflection_EventUpdateKey) Mutable(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "warden.warden.v1beta3.EventUpdateKey.id": panic(fmt.Errorf("field id of message warden.warden.v1beta3.EventUpdateKey is not mutable")) - case "warden.warden.v1beta3.EventUpdateKey.rule_id": - panic(fmt.Errorf("field rule_id of message warden.warden.v1beta3.EventUpdateKey is not mutable")) - case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": - panic(fmt.Errorf("field approve_rule_id of message warden.warden.v1beta3.EventUpdateKey is not mutable")) - case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": - panic(fmt.Errorf("field reject_rule_id of message warden.warden.v1beta3.EventUpdateKey is not mutable")) + case "warden.warden.v1beta3.EventUpdateKey.template_id": + panic(fmt.Errorf("field template_id of message warden.warden.v1beta3.EventUpdateKey is not mutable")) + case "warden.warden.v1beta3.EventUpdateKey.approve_template_id": + panic(fmt.Errorf("field approve_template_id of message warden.warden.v1beta3.EventUpdateKey is not mutable")) + case "warden.warden.v1beta3.EventUpdateKey.reject_template_id": + panic(fmt.Errorf("field reject_template_id of message warden.warden.v1beta3.EventUpdateKey is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.EventUpdateKey")) @@ -4262,11 +4262,11 @@ func (x *fastReflection_EventUpdateKey) NewField(fd protoreflect.FieldDescriptor switch fd.FullName() { case "warden.warden.v1beta3.EventUpdateKey.id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventUpdateKey.rule_id": + case "warden.warden.v1beta3.EventUpdateKey.template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventUpdateKey.approve_rule_id": + case "warden.warden.v1beta3.EventUpdateKey.approve_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.EventUpdateKey.reject_rule_id": + case "warden.warden.v1beta3.EventUpdateKey.reject_template_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -4340,14 +4340,14 @@ func (x *fastReflection_EventUpdateKey) ProtoMethods() *protoiface.Methods { if x.Id != 0 { n += 1 + runtime.Sov(uint64(x.Id)) } - if x.RuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RuleId)) + if x.TemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.TemplateId)) } - if x.ApproveRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.ApproveRuleId)) + if x.ApproveTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveTemplateId)) } - if x.RejectRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RejectRuleId)) + if x.RejectTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectTemplateId)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -4378,18 +4378,18 @@ func (x *fastReflection_EventUpdateKey) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.RejectRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectRuleId)) + if x.RejectTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectTemplateId)) i-- dAtA[i] = 0x20 } - if x.ApproveRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveRuleId)) + if x.ApproveTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveTemplateId)) i-- dAtA[i] = 0x18 } - if x.RuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RuleId)) + if x.TemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TemplateId)) i-- dAtA[i] = 0x10 } @@ -4468,9 +4468,9 @@ func (x *fastReflection_EventUpdateKey) ProtoMethods() *protoiface.Methods { } case 2: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - x.RuleId = 0 + x.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4480,16 +4480,16 @@ func (x *fastReflection_EventUpdateKey) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RuleId |= uint64(b&0x7F) << shift + x.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveTemplateId", wireType) } - x.ApproveRuleId = 0 + x.ApproveTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4499,16 +4499,16 @@ func (x *fastReflection_EventUpdateKey) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.ApproveRuleId |= uint64(b&0x7F) << shift + x.ApproveTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectTemplateId", wireType) } - x.RejectRuleId = 0 + x.RejectTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4518,7 +4518,7 @@ func (x *fastReflection_EventUpdateKey) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RejectRuleId |= uint64(b&0x7F) << shift + x.RejectTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8485,10 +8485,10 @@ type EventCreateSpace struct { Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // owners_count is the count of the space owners OwnersCount uint64 `protobuf:"varint,3,opt,name=owners_count,json=ownersCount,proto3" json:"owners_count,omitempty"` - // id of the rule to be applied to every admin operation - AdminRuleId uint64 `protobuf:"varint,4,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - // id of the rule to be applied to every sign operation - SignRuleId uint64 `protobuf:"varint,5,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` + // id of the template to be applied to every admin operation + AdminTemplateId uint64 `protobuf:"varint,4,opt,name=admin_template_id,json=adminTemplateId,proto3" json:"admin_template_id,omitempty"` + // id of the template to be applied to every sign operation + SignTemplateId uint64 `protobuf:"varint,5,opt,name=sign_template_id,json=signTemplateId,proto3" json:"sign_template_id,omitempty"` } func (x *EventCreateSpace) Reset() { @@ -8532,16 +8532,16 @@ func (x *EventCreateSpace) GetOwnersCount() uint64 { return 0 } -func (x *EventCreateSpace) GetAdminRuleId() uint64 { +func (x *EventCreateSpace) GetAdminTemplateId() uint64 { if x != nil { - return x.AdminRuleId + return x.AdminTemplateId } return 0 } -func (x *EventCreateSpace) GetSignRuleId() uint64 { +func (x *EventCreateSpace) GetSignTemplateId() uint64 { if x != nil { - return x.SignRuleId + return x.SignTemplateId } return 0 } @@ -8554,18 +8554,18 @@ type EventUpdateSpace struct { // id of the space being updated SpaceId uint64 `protobuf:"varint,1,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` - // id of the rule to be applied to every admin operation - AdminRuleId uint64 `protobuf:"varint,2,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - // id of the rule to be applied to every sign operation - SignRuleId uint64 `protobuf:"varint,3,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` - // id of the rule to be applied to every approve admin operation - ApproveAdminRuleId uint64 `protobuf:"varint,4,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` - // id of the rule to be applied to every reject admin operation - RejectAdminRuleId uint64 `protobuf:"varint,5,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` - // id of the rule to be applied to every approve sign operation - ApproveSignRuleId uint64 `protobuf:"varint,6,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` - // id of the rule to be applied to every reject sign operation - RejectSignRuleId uint64 `protobuf:"varint,7,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` + // id of the template to be applied to every admin operation + AdminTemplateId uint64 `protobuf:"varint,2,opt,name=admin_template_id,json=adminTemplateId,proto3" json:"admin_template_id,omitempty"` + // id of the template to be applied to every sign operation + SignTemplateId uint64 `protobuf:"varint,3,opt,name=sign_template_id,json=signTemplateId,proto3" json:"sign_template_id,omitempty"` + // id of the template to be applied to every approve admin operation + ApproveAdminTemplateId uint64 `protobuf:"varint,4,opt,name=approve_admin_template_id,json=approveAdminTemplateId,proto3" json:"approve_admin_template_id,omitempty"` + // id of the template to be applied to every reject admin operation + RejectAdminTemplateId uint64 `protobuf:"varint,5,opt,name=reject_admin_template_id,json=rejectAdminTemplateId,proto3" json:"reject_admin_template_id,omitempty"` + // id of the template to be applied to every approve sign operation + ApproveSignTemplateId uint64 `protobuf:"varint,6,opt,name=approve_sign_template_id,json=approveSignTemplateId,proto3" json:"approve_sign_template_id,omitempty"` + // id of the template to be applied to every reject sign operation + RejectSignTemplateId uint64 `protobuf:"varint,7,opt,name=reject_sign_template_id,json=rejectSignTemplateId,proto3" json:"reject_sign_template_id,omitempty"` } func (x *EventUpdateSpace) Reset() { @@ -8595,44 +8595,44 @@ func (x *EventUpdateSpace) GetSpaceId() uint64 { return 0 } -func (x *EventUpdateSpace) GetAdminRuleId() uint64 { +func (x *EventUpdateSpace) GetAdminTemplateId() uint64 { if x != nil { - return x.AdminRuleId + return x.AdminTemplateId } return 0 } -func (x *EventUpdateSpace) GetSignRuleId() uint64 { +func (x *EventUpdateSpace) GetSignTemplateId() uint64 { if x != nil { - return x.SignRuleId + return x.SignTemplateId } return 0 } -func (x *EventUpdateSpace) GetApproveAdminRuleId() uint64 { +func (x *EventUpdateSpace) GetApproveAdminTemplateId() uint64 { if x != nil { - return x.ApproveAdminRuleId + return x.ApproveAdminTemplateId } return 0 } -func (x *EventUpdateSpace) GetRejectAdminRuleId() uint64 { +func (x *EventUpdateSpace) GetRejectAdminTemplateId() uint64 { if x != nil { - return x.RejectAdminRuleId + return x.RejectAdminTemplateId } return 0 } -func (x *EventUpdateSpace) GetApproveSignRuleId() uint64 { +func (x *EventUpdateSpace) GetApproveSignTemplateId() uint64 { if x != nil { - return x.ApproveSignRuleId + return x.ApproveSignTemplateId } return 0 } -func (x *EventUpdateSpace) GetRejectSignRuleId() uint64 { +func (x *EventUpdateSpace) GetRejectSignTemplateId() uint64 { if x != nil { - return x.RejectSignRuleId + return x.RejectSignTemplateId } return 0 } @@ -8759,8 +8759,8 @@ type EventNewKeyRequest struct { SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` // keychain_id associated with the key request KeychainId uint64 `protobuf:"varint,3,opt,name=keychain_id,json=keychainId,proto3" json:"keychain_id,omitempty"` - // id of the rule to be applied to every sign operation for this key - RuleId uint64 `protobuf:"varint,4,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + // id of the template to be applied to every sign operation for this key + TemplateId uint64 `protobuf:"varint,4,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` // the crypto scheme requested for this key KeyType KeyType `protobuf:"varint,5,opt,name=key_type,json=keyType,proto3,enum=warden.warden.v1beta3.KeyType" json:"key_type,omitempty"` // address of the account that requested the key @@ -8808,9 +8808,9 @@ func (x *EventNewKeyRequest) GetKeychainId() uint64 { return 0 } -func (x *EventNewKeyRequest) GetRuleId() uint64 { +func (x *EventNewKeyRequest) GetTemplateId() uint64 { if x != nil { - return x.RuleId + return x.TemplateId } return 0 } @@ -8843,8 +8843,8 @@ type EventNewKey struct { SpaceId uint64 `protobuf:"varint,3,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` // keychain_id associated with the key request KeychainId uint64 `protobuf:"varint,4,opt,name=keychain_id,json=keychainId,proto3" json:"keychain_id,omitempty"` - // id of the rule to be applied to every sign operation for this key - RuleId uint64 `protobuf:"varint,5,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + // id of the template to be applied to every sign operation for this key + TemplateId uint64 `protobuf:"varint,5,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` } func (x *EventNewKey) Reset() { @@ -8895,9 +8895,9 @@ func (x *EventNewKey) GetKeychainId() uint64 { return 0 } -func (x *EventNewKey) GetRuleId() uint64 { +func (x *EventNewKey) GetTemplateId() uint64 { if x != nil { - return x.RuleId + return x.TemplateId } return 0 } @@ -8947,12 +8947,12 @@ type EventUpdateKey struct { // id of the key Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - // id of the rule to be applied to every sign operation - RuleId uint64 `protobuf:"varint,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` - // id of the rule to be applied to every approve sign operation - ApproveRuleId uint64 `protobuf:"varint,3,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` - // id of the rule to be applied to every reject sign operation - RejectRuleId uint64 `protobuf:"varint,4,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` + // id of the template to be applied to every sign operation + TemplateId uint64 `protobuf:"varint,2,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + // id of the template to be applied to every approve sign operation + ApproveTemplateId uint64 `protobuf:"varint,3,opt,name=approve_template_id,json=approveTemplateId,proto3" json:"approve_template_id,omitempty"` + // id of the template to be applied to every reject sign operation + RejectTemplateId uint64 `protobuf:"varint,4,opt,name=reject_template_id,json=rejectTemplateId,proto3" json:"reject_template_id,omitempty"` } func (x *EventUpdateKey) Reset() { @@ -8982,23 +8982,23 @@ func (x *EventUpdateKey) GetId() uint64 { return 0 } -func (x *EventUpdateKey) GetRuleId() uint64 { +func (x *EventUpdateKey) GetTemplateId() uint64 { if x != nil { - return x.RuleId + return x.TemplateId } return 0 } -func (x *EventUpdateKey) GetApproveRuleId() uint64 { +func (x *EventUpdateKey) GetApproveTemplateId() uint64 { if x != nil { - return x.ApproveRuleId + return x.ApproveTemplateId } return 0 } -func (x *EventUpdateKey) GetRejectRuleId() uint64 { +func (x *EventUpdateKey) GetRejectTemplateId() uint64 { if x != nil { - return x.RejectRuleId + return x.RejectTemplateId } return 0 } @@ -9412,37 +9412,41 @@ var file_warden_warden_v1beta3_events_proto_rawDesc = []byte{ 0x74, 0x61, 0x33, 0x2f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2f, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xa5, 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, + 0x6f, 0x74, 0x6f, 0x22, 0xb5, 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x72, - 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x69, 0x67, - 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xb7, 0x02, 0x0a, 0x10, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x74, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, + 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x69, 0x67, + 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x22, 0xe7, 0x02, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, - 0x20, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, - 0x64, 0x12, 0x31, 0x0a, 0x15, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x12, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, - 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, - 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, - 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, 0x6e, - 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x13, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, - 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x10, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x52, - 0x75, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x6f, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x64, + 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x5f, + 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, + 0x64, 0x12, 0x39, 0x0a, 0x19, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x18, + 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, + 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x18, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, + 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, + 0x53, 0x69, 0x67, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x35, + 0x0a, 0x17, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x14, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x49, 0x64, 0x22, 0x6f, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x53, 0x70, 0x61, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, @@ -9457,108 +9461,110 @@ var file_warden_warden_v1beta3_events_proto_rawDesc = []byte{ 0x09, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x22, 0xce, 0x01, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x4b, + 0x6e, 0x74, 0x22, 0xd6, 0x01, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x39, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0xad, 0x01, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, - 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, - 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, - 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, - 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, - 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, - 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, + 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, + 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xb5, 0x01, 0x0a, 0x0b, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x6b, + 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, + 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, + 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x22, 0x27, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x87, 0x01, 0x0a, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x9f, 0x01, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x72, - 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, - 0x12, 0x24, 0x0a, 0x0e, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, - 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, - 0x65, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, - 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, - 0x65, 0x79, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, - 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x28, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, - 0x69, 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x4b, - 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x4e, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, - 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, - 0x2e, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, - 0x73, 0x22, 0x75, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x4e, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x46, 0x65, 0x65, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6b, 0x65, 0x79, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x22, 0x6c, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x57, 0x72, 0x69, 0x74, - 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x57, 0x72, 0x69, 0x74, 0x65, - 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, - 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x1f, 0x0a, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, + 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x74, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x61, + 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, + 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x72, 0x65, + 0x6a, 0x65, 0x63, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x22, 0x56, + 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, + 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x35, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6e, - 0x65, 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x7d, 0x0a, 0x18, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, - 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xf1, 0x01, 0x0a, 0x19, 0x63, 0x6f, - 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 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, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x3b, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xa2, 0x02, 0x03, 0x57, 0x57, 0x58, 0xaa, - 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xca, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xe2, - 0x02, 0x21, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x57, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x22, 0x28, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, + 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x10, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x4e, 0x0a, 0x0d, 0x6b, 0x65, 0x79, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x46, 0x65, 0x65, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6b, 0x65, 0x79, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x22, 0x75, 0x0a, 0x13, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x4e, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, + 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x0c, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, + 0x22, 0x6c, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, + 0x77, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x6e, 0x65, 0x77, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x77, 0x72, 0x69, + 0x74, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0c, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x81, + 0x01, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, + 0x21, 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x22, 0x7d, 0x0a, 0x18, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, + 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x21, + 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x42, 0xf1, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x42, + 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, + 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, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x33, 0x3b, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x33, 0xa2, 0x02, 0x03, 0x57, 0x57, 0x58, 0xaa, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xca, + 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, + 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0xe2, 0x02, 0x21, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x57, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/warden/warden/v1beta3/key.pulsar.go b/api/warden/warden/v1beta3/key.pulsar.go index d4253bc39..447ba8db0 100644 --- a/api/warden/warden/v1beta3/key.pulsar.go +++ b/api/warden/warden/v1beta3/key.pulsar.go @@ -75,7 +75,7 @@ var ( fd_KeyRequest_key_type protoreflect.FieldDescriptor fd_KeyRequest_status protoreflect.FieldDescriptor fd_KeyRequest_reject_reason protoreflect.FieldDescriptor - fd_KeyRequest_rule_id protoreflect.FieldDescriptor + fd_KeyRequest_template_id protoreflect.FieldDescriptor fd_KeyRequest_deducted_keychain_fees protoreflect.FieldDescriptor ) @@ -89,7 +89,7 @@ func init() { fd_KeyRequest_key_type = md_KeyRequest.Fields().ByName("key_type") fd_KeyRequest_status = md_KeyRequest.Fields().ByName("status") fd_KeyRequest_reject_reason = md_KeyRequest.Fields().ByName("reject_reason") - fd_KeyRequest_rule_id = md_KeyRequest.Fields().ByName("rule_id") + fd_KeyRequest_template_id = md_KeyRequest.Fields().ByName("template_id") fd_KeyRequest_deducted_keychain_fees = md_KeyRequest.Fields().ByName("deducted_keychain_fees") } @@ -200,9 +200,9 @@ func (x *fastReflection_KeyRequest) Range(f func(protoreflect.FieldDescriptor, p return } } - if x.RuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RuleId) - if !f(fd_KeyRequest_rule_id, value) { + if x.TemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TemplateId) + if !f(fd_KeyRequest_template_id, value) { return } } @@ -241,8 +241,8 @@ func (x *fastReflection_KeyRequest) Has(fd protoreflect.FieldDescriptor) bool { return x.Status != 0 case "warden.warden.v1beta3.KeyRequest.reject_reason": return x.RejectReason != "" - case "warden.warden.v1beta3.KeyRequest.rule_id": - return x.RuleId != uint64(0) + case "warden.warden.v1beta3.KeyRequest.template_id": + return x.TemplateId != uint64(0) case "warden.warden.v1beta3.KeyRequest.deducted_keychain_fees": return len(x.DeductedKeychainFees) != 0 default: @@ -275,8 +275,8 @@ func (x *fastReflection_KeyRequest) Clear(fd protoreflect.FieldDescriptor) { x.Status = 0 case "warden.warden.v1beta3.KeyRequest.reject_reason": x.RejectReason = "" - case "warden.warden.v1beta3.KeyRequest.rule_id": - x.RuleId = uint64(0) + case "warden.warden.v1beta3.KeyRequest.template_id": + x.TemplateId = uint64(0) case "warden.warden.v1beta3.KeyRequest.deducted_keychain_fees": x.DeductedKeychainFees = nil default: @@ -316,8 +316,8 @@ func (x *fastReflection_KeyRequest) Get(descriptor protoreflect.FieldDescriptor) case "warden.warden.v1beta3.KeyRequest.reject_reason": value := x.RejectReason return protoreflect.ValueOfString(value) - case "warden.warden.v1beta3.KeyRequest.rule_id": - value := x.RuleId + case "warden.warden.v1beta3.KeyRequest.template_id": + value := x.TemplateId return protoreflect.ValueOfUint64(value) case "warden.warden.v1beta3.KeyRequest.deducted_keychain_fees": if len(x.DeductedKeychainFees) == 0 { @@ -359,8 +359,8 @@ func (x *fastReflection_KeyRequest) Set(fd protoreflect.FieldDescriptor, value p x.Status = (KeyRequestStatus)(value.Enum()) case "warden.warden.v1beta3.KeyRequest.reject_reason": x.RejectReason = value.Interface().(string) - case "warden.warden.v1beta3.KeyRequest.rule_id": - x.RuleId = value.Uint() + case "warden.warden.v1beta3.KeyRequest.template_id": + x.TemplateId = value.Uint() case "warden.warden.v1beta3.KeyRequest.deducted_keychain_fees": lv := value.List() clv := lv.(*_KeyRequest_9_list) @@ -405,8 +405,8 @@ func (x *fastReflection_KeyRequest) Mutable(fd protoreflect.FieldDescriptor) pro panic(fmt.Errorf("field status of message warden.warden.v1beta3.KeyRequest is not mutable")) case "warden.warden.v1beta3.KeyRequest.reject_reason": panic(fmt.Errorf("field reject_reason of message warden.warden.v1beta3.KeyRequest is not mutable")) - case "warden.warden.v1beta3.KeyRequest.rule_id": - panic(fmt.Errorf("field rule_id of message warden.warden.v1beta3.KeyRequest is not mutable")) + case "warden.warden.v1beta3.KeyRequest.template_id": + panic(fmt.Errorf("field template_id of message warden.warden.v1beta3.KeyRequest is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.KeyRequest")) @@ -434,7 +434,7 @@ func (x *fastReflection_KeyRequest) NewField(fd protoreflect.FieldDescriptor) pr return protoreflect.ValueOfEnum(0) case "warden.warden.v1beta3.KeyRequest.reject_reason": return protoreflect.ValueOfString("") - case "warden.warden.v1beta3.KeyRequest.rule_id": + case "warden.warden.v1beta3.KeyRequest.template_id": return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.KeyRequest.deducted_keychain_fees": list := []*v1beta1.Coin{} @@ -531,8 +531,8 @@ func (x *fastReflection_KeyRequest) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.RuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RuleId)) + if x.TemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.TemplateId)) } if len(x.DeductedKeychainFees) > 0 { for _, e := range x.DeductedKeychainFees { @@ -585,8 +585,8 @@ func (x *fastReflection_KeyRequest) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x4a } } - if x.RuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RuleId)) + if x.TemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TemplateId)) i-- dAtA[i] = 0x40 } @@ -839,9 +839,9 @@ func (x *fastReflection_KeyRequest) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 8: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - x.RuleId = 0 + x.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -851,7 +851,7 @@ func (x *fastReflection_KeyRequest) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RuleId |= uint64(b&0x7F) << shift + x.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -926,15 +926,15 @@ func (x *fastReflection_KeyRequest) ProtoMethods() *protoiface.Methods { } var ( - md_Key protoreflect.MessageDescriptor - fd_Key_id protoreflect.FieldDescriptor - fd_Key_space_id protoreflect.FieldDescriptor - fd_Key_keychain_id protoreflect.FieldDescriptor - fd_Key_type protoreflect.FieldDescriptor - fd_Key_public_key protoreflect.FieldDescriptor - fd_Key_rule_id protoreflect.FieldDescriptor - fd_Key_approve_rule_id protoreflect.FieldDescriptor - fd_Key_reject_rule_id protoreflect.FieldDescriptor + md_Key protoreflect.MessageDescriptor + fd_Key_id protoreflect.FieldDescriptor + fd_Key_space_id protoreflect.FieldDescriptor + fd_Key_keychain_id protoreflect.FieldDescriptor + fd_Key_type protoreflect.FieldDescriptor + fd_Key_public_key protoreflect.FieldDescriptor + fd_Key_template_id protoreflect.FieldDescriptor + fd_Key_approve_template_id protoreflect.FieldDescriptor + fd_Key_reject_template_id protoreflect.FieldDescriptor ) func init() { @@ -945,9 +945,9 @@ func init() { fd_Key_keychain_id = md_Key.Fields().ByName("keychain_id") fd_Key_type = md_Key.Fields().ByName("type") fd_Key_public_key = md_Key.Fields().ByName("public_key") - fd_Key_rule_id = md_Key.Fields().ByName("rule_id") - fd_Key_approve_rule_id = md_Key.Fields().ByName("approve_rule_id") - fd_Key_reject_rule_id = md_Key.Fields().ByName("reject_rule_id") + fd_Key_template_id = md_Key.Fields().ByName("template_id") + fd_Key_approve_template_id = md_Key.Fields().ByName("approve_template_id") + fd_Key_reject_template_id = md_Key.Fields().ByName("reject_template_id") } var _ protoreflect.Message = (*fastReflection_Key)(nil) @@ -1045,21 +1045,21 @@ func (x *fastReflection_Key) Range(f func(protoreflect.FieldDescriptor, protoref return } } - if x.RuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RuleId) - if !f(fd_Key_rule_id, value) { + if x.TemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TemplateId) + if !f(fd_Key_template_id, value) { return } } - if x.ApproveRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ApproveRuleId) - if !f(fd_Key_approve_rule_id, value) { + if x.ApproveTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveTemplateId) + if !f(fd_Key_approve_template_id, value) { return } } - if x.RejectRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RejectRuleId) - if !f(fd_Key_reject_rule_id, value) { + if x.RejectTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectTemplateId) + if !f(fd_Key_reject_template_id, value) { return } } @@ -1088,12 +1088,12 @@ func (x *fastReflection_Key) Has(fd protoreflect.FieldDescriptor) bool { return x.Type_ != 0 case "warden.warden.v1beta3.Key.public_key": return len(x.PublicKey) != 0 - case "warden.warden.v1beta3.Key.rule_id": - return x.RuleId != uint64(0) - case "warden.warden.v1beta3.Key.approve_rule_id": - return x.ApproveRuleId != uint64(0) - case "warden.warden.v1beta3.Key.reject_rule_id": - return x.RejectRuleId != uint64(0) + case "warden.warden.v1beta3.Key.template_id": + return x.TemplateId != uint64(0) + case "warden.warden.v1beta3.Key.approve_template_id": + return x.ApproveTemplateId != uint64(0) + case "warden.warden.v1beta3.Key.reject_template_id": + return x.RejectTemplateId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Key")) @@ -1120,12 +1120,12 @@ func (x *fastReflection_Key) Clear(fd protoreflect.FieldDescriptor) { x.Type_ = 0 case "warden.warden.v1beta3.Key.public_key": x.PublicKey = nil - case "warden.warden.v1beta3.Key.rule_id": - x.RuleId = uint64(0) - case "warden.warden.v1beta3.Key.approve_rule_id": - x.ApproveRuleId = uint64(0) - case "warden.warden.v1beta3.Key.reject_rule_id": - x.RejectRuleId = uint64(0) + case "warden.warden.v1beta3.Key.template_id": + x.TemplateId = uint64(0) + case "warden.warden.v1beta3.Key.approve_template_id": + x.ApproveTemplateId = uint64(0) + case "warden.warden.v1beta3.Key.reject_template_id": + x.RejectTemplateId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Key")) @@ -1157,14 +1157,14 @@ func (x *fastReflection_Key) Get(descriptor protoreflect.FieldDescriptor) protor case "warden.warden.v1beta3.Key.public_key": value := x.PublicKey return protoreflect.ValueOfBytes(value) - case "warden.warden.v1beta3.Key.rule_id": - value := x.RuleId + case "warden.warden.v1beta3.Key.template_id": + value := x.TemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.Key.approve_rule_id": - value := x.ApproveRuleId + case "warden.warden.v1beta3.Key.approve_template_id": + value := x.ApproveTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.Key.reject_rule_id": - value := x.RejectRuleId + case "warden.warden.v1beta3.Key.reject_template_id": + value := x.RejectTemplateId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { @@ -1196,12 +1196,12 @@ func (x *fastReflection_Key) Set(fd protoreflect.FieldDescriptor, value protoref x.Type_ = (KeyType)(value.Enum()) case "warden.warden.v1beta3.Key.public_key": x.PublicKey = value.Bytes() - case "warden.warden.v1beta3.Key.rule_id": - x.RuleId = value.Uint() - case "warden.warden.v1beta3.Key.approve_rule_id": - x.ApproveRuleId = value.Uint() - case "warden.warden.v1beta3.Key.reject_rule_id": - x.RejectRuleId = value.Uint() + case "warden.warden.v1beta3.Key.template_id": + x.TemplateId = value.Uint() + case "warden.warden.v1beta3.Key.approve_template_id": + x.ApproveTemplateId = value.Uint() + case "warden.warden.v1beta3.Key.reject_template_id": + x.RejectTemplateId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Key")) @@ -1232,12 +1232,12 @@ func (x *fastReflection_Key) Mutable(fd protoreflect.FieldDescriptor) protorefle panic(fmt.Errorf("field type of message warden.warden.v1beta3.Key is not mutable")) case "warden.warden.v1beta3.Key.public_key": panic(fmt.Errorf("field public_key of message warden.warden.v1beta3.Key is not mutable")) - case "warden.warden.v1beta3.Key.rule_id": - panic(fmt.Errorf("field rule_id of message warden.warden.v1beta3.Key is not mutable")) - case "warden.warden.v1beta3.Key.approve_rule_id": - panic(fmt.Errorf("field approve_rule_id of message warden.warden.v1beta3.Key is not mutable")) - case "warden.warden.v1beta3.Key.reject_rule_id": - panic(fmt.Errorf("field reject_rule_id of message warden.warden.v1beta3.Key is not mutable")) + case "warden.warden.v1beta3.Key.template_id": + panic(fmt.Errorf("field template_id of message warden.warden.v1beta3.Key is not mutable")) + case "warden.warden.v1beta3.Key.approve_template_id": + panic(fmt.Errorf("field approve_template_id of message warden.warden.v1beta3.Key is not mutable")) + case "warden.warden.v1beta3.Key.reject_template_id": + panic(fmt.Errorf("field reject_template_id of message warden.warden.v1beta3.Key is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Key")) @@ -1261,11 +1261,11 @@ func (x *fastReflection_Key) NewField(fd protoreflect.FieldDescriptor) protorefl return protoreflect.ValueOfEnum(0) case "warden.warden.v1beta3.Key.public_key": return protoreflect.ValueOfBytes(nil) - case "warden.warden.v1beta3.Key.rule_id": + case "warden.warden.v1beta3.Key.template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.Key.approve_rule_id": + case "warden.warden.v1beta3.Key.approve_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.Key.reject_rule_id": + case "warden.warden.v1beta3.Key.reject_template_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -1352,14 +1352,14 @@ func (x *fastReflection_Key) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.RuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RuleId)) + if x.TemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.TemplateId)) } - if x.ApproveRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.ApproveRuleId)) + if x.ApproveTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveTemplateId)) } - if x.RejectRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RejectRuleId)) + if x.RejectTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectTemplateId)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -1390,18 +1390,18 @@ func (x *fastReflection_Key) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.RejectRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectRuleId)) + if x.RejectTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectTemplateId)) i-- dAtA[i] = 0x40 } - if x.ApproveRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveRuleId)) + if x.ApproveTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveTemplateId)) i-- dAtA[i] = 0x38 } - if x.RuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RuleId)) + if x.TemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TemplateId)) i-- dAtA[i] = 0x30 } @@ -1593,9 +1593,9 @@ func (x *fastReflection_Key) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 6: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - x.RuleId = 0 + x.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1605,16 +1605,16 @@ func (x *fastReflection_Key) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RuleId |= uint64(b&0x7F) << shift + x.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveTemplateId", wireType) } - x.ApproveRuleId = 0 + x.ApproveTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1624,16 +1624,16 @@ func (x *fastReflection_Key) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.ApproveRuleId |= uint64(b&0x7F) << shift + x.ApproveTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 8: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectTemplateId", wireType) } - x.RejectRuleId = 0 + x.RejectTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1643,7 +1643,7 @@ func (x *fastReflection_Key) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RejectRuleId |= uint64(b&0x7F) << shift + x.RejectTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1889,8 +1889,8 @@ type KeyRequest struct { Status KeyRequestStatus `protobuf:"varint,6,opt,name=status,proto3,enum=warden.warden.v1beta3.KeyRequestStatus" json:"status,omitempty"` // If the request is rejected, this field will contain the reason. RejectReason string `protobuf:"bytes,7,opt,name=reject_reason,json=rejectReason,proto3" json:"reject_reason,omitempty"` - // ID of the Rule that the resulting Key will use. - RuleId uint64 `protobuf:"varint,8,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + // ID of the Template that the resulting Key will use. + TemplateId uint64 `protobuf:"varint,8,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` // Amount of fees deducted during new key request DeductedKeychainFees []*v1beta1.Coin `protobuf:"bytes,9,rep,name=deducted_keychain_fees,json=deductedKeychainFees,proto3" json:"deducted_keychain_fees,omitempty"` } @@ -1964,9 +1964,9 @@ func (x *KeyRequest) GetRejectReason() string { return "" } -func (x *KeyRequest) GetRuleId() uint64 { +func (x *KeyRequest) GetTemplateId() uint64 { if x != nil { - return x.RuleId + return x.TemplateId } return 0 } @@ -1995,18 +1995,18 @@ type Key struct { // Public key of the key. The private key is only known to the Keychain that // generated it. PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - // ID of the Rule that will need to be satisfied for using this key to sign + // ID of the Template that will need to be satisfied for using this key to sign // data. - // If this is not set, the key will use the signing Rule of the Space. - RuleId uint64 `protobuf:"varint,6,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` - // ID of the Rule that will need to be satisfied for using this key to sign + // If this is not set, the key will use the signing Template of the Space. + TemplateId uint64 `protobuf:"varint,6,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + // ID of the Template that will need to be satisfied for using this key to sign // data. - // If this is not set, the key will use the approve signing Rule of the Space. - ApproveRuleId uint64 `protobuf:"varint,7,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` - // ID of the Rule that will need to be satisfied for rejecting using this key to sign + // If this is not set, the key will use the approve signing Template of the Space. + ApproveTemplateId uint64 `protobuf:"varint,7,opt,name=approve_template_id,json=approveTemplateId,proto3" json:"approve_template_id,omitempty"` + // ID of the Template that will need to be satisfied for rejecting using this key to sign // data. - // If this is not set, the key will use the reject signing Rule of the Space. - RejectRuleId uint64 `protobuf:"varint,8,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` + // If this is not set, the key will use the reject signing Template of the Space. + RejectTemplateId uint64 `protobuf:"varint,8,opt,name=reject_template_id,json=rejectTemplateId,proto3" json:"reject_template_id,omitempty"` } func (x *Key) Reset() { @@ -2064,23 +2064,23 @@ func (x *Key) GetPublicKey() []byte { return nil } -func (x *Key) GetRuleId() uint64 { +func (x *Key) GetTemplateId() uint64 { if x != nil { - return x.RuleId + return x.TemplateId } return 0 } -func (x *Key) GetApproveRuleId() uint64 { +func (x *Key) GetApproveTemplateId() uint64 { if x != nil { - return x.ApproveRuleId + return x.ApproveTemplateId } return 0 } -func (x *Key) GetRejectRuleId() uint64 { +func (x *Key) GetRejectTemplateId() uint64 { if x != nil { - return x.RejectRuleId + return x.RejectTemplateId } return 0 } @@ -2096,7 +2096,7 @@ var file_warden_warden_v1beta3_key_proto_rawDesc = []byte{ 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xc6, 0x03, 0x0a, 0x0a, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x6f, 0x22, 0xce, 0x03, 0x0a, 0x0a, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, @@ -2113,35 +2113,37 @@ var file_warden_warden_v1beta3_key_proto_rawDesc = []byte{ 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, 0x63, - 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, - 0x12, 0x97, 0x01, 0x0a, 0x16, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, - 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x46, 0xc8, 0xde, - 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, - 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x9a, 0xe7, - 0xb0, 0x2a, 0x0c, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0xa8, - 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x14, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x22, 0x8b, 0x02, 0x0a, 0x03, 0x4b, - 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, - 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x32, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, - 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, - 0x79, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70, - 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x52, 0x75, 0x6c, 0x65, - 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x75, 0x6c, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x2a, 0x99, 0x01, 0x0a, 0x10, 0x4b, 0x65, 0x79, + 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x97, 0x01, 0x0a, 0x16, 0x64, 0x65, 0x64, + 0x75, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, + 0x65, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x46, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x9a, 0xe7, 0xb0, 0x2a, 0x0c, 0x6c, 0x65, 0x67, 0x61, 0x63, + 0x79, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x14, 0x64, 0x65, + 0x64, 0x75, 0x63, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, + 0x65, 0x73, 0x22, 0xa3, 0x02, 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, + 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x70, + 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, + 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x2a, 0x99, 0x01, 0x0a, 0x10, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x0a, 0x1e, 0x4b, 0x45, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, diff --git a/api/warden/warden/v1beta3/space.pulsar.go b/api/warden/warden/v1beta3/space.pulsar.go index d2cde51c3..e9b37726b 100644 --- a/api/warden/warden/v1beta3/space.pulsar.go +++ b/api/warden/warden/v1beta3/space.pulsar.go @@ -59,17 +59,17 @@ func (x *_Space_3_list) IsValid() bool { } var ( - md_Space protoreflect.MessageDescriptor - fd_Space_id protoreflect.FieldDescriptor - fd_Space_creator protoreflect.FieldDescriptor - fd_Space_owners protoreflect.FieldDescriptor - fd_Space_admin_rule_id protoreflect.FieldDescriptor - fd_Space_sign_rule_id protoreflect.FieldDescriptor - fd_Space_nonce protoreflect.FieldDescriptor - fd_Space_approve_admin_rule_id protoreflect.FieldDescriptor - fd_Space_reject_admin_rule_id protoreflect.FieldDescriptor - fd_Space_approve_sign_rule_id protoreflect.FieldDescriptor - fd_Space_reject_sign_rule_id protoreflect.FieldDescriptor + md_Space protoreflect.MessageDescriptor + fd_Space_id protoreflect.FieldDescriptor + fd_Space_creator protoreflect.FieldDescriptor + fd_Space_owners protoreflect.FieldDescriptor + fd_Space_admin_template_id protoreflect.FieldDescriptor + fd_Space_sign_template_id protoreflect.FieldDescriptor + fd_Space_nonce protoreflect.FieldDescriptor + fd_Space_approve_admin_template_id protoreflect.FieldDescriptor + fd_Space_reject_admin_template_id protoreflect.FieldDescriptor + fd_Space_approve_sign_template_id protoreflect.FieldDescriptor + fd_Space_reject_sign_template_id protoreflect.FieldDescriptor ) func init() { @@ -78,13 +78,13 @@ func init() { fd_Space_id = md_Space.Fields().ByName("id") fd_Space_creator = md_Space.Fields().ByName("creator") fd_Space_owners = md_Space.Fields().ByName("owners") - fd_Space_admin_rule_id = md_Space.Fields().ByName("admin_rule_id") - fd_Space_sign_rule_id = md_Space.Fields().ByName("sign_rule_id") + fd_Space_admin_template_id = md_Space.Fields().ByName("admin_template_id") + fd_Space_sign_template_id = md_Space.Fields().ByName("sign_template_id") fd_Space_nonce = md_Space.Fields().ByName("nonce") - fd_Space_approve_admin_rule_id = md_Space.Fields().ByName("approve_admin_rule_id") - fd_Space_reject_admin_rule_id = md_Space.Fields().ByName("reject_admin_rule_id") - fd_Space_approve_sign_rule_id = md_Space.Fields().ByName("approve_sign_rule_id") - fd_Space_reject_sign_rule_id = md_Space.Fields().ByName("reject_sign_rule_id") + fd_Space_approve_admin_template_id = md_Space.Fields().ByName("approve_admin_template_id") + fd_Space_reject_admin_template_id = md_Space.Fields().ByName("reject_admin_template_id") + fd_Space_approve_sign_template_id = md_Space.Fields().ByName("approve_sign_template_id") + fd_Space_reject_sign_template_id = md_Space.Fields().ByName("reject_sign_template_id") } var _ protoreflect.Message = (*fastReflection_Space)(nil) @@ -170,15 +170,15 @@ func (x *fastReflection_Space) Range(f func(protoreflect.FieldDescriptor, protor return } } - if x.AdminRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.AdminRuleId) - if !f(fd_Space_admin_rule_id, value) { + if x.AdminTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.AdminTemplateId) + if !f(fd_Space_admin_template_id, value) { return } } - if x.SignRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SignRuleId) - if !f(fd_Space_sign_rule_id, value) { + if x.SignTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SignTemplateId) + if !f(fd_Space_sign_template_id, value) { return } } @@ -188,27 +188,27 @@ func (x *fastReflection_Space) Range(f func(protoreflect.FieldDescriptor, protor return } } - if x.ApproveAdminRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ApproveAdminRuleId) - if !f(fd_Space_approve_admin_rule_id, value) { + if x.ApproveAdminTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveAdminTemplateId) + if !f(fd_Space_approve_admin_template_id, value) { return } } - if x.RejectAdminRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RejectAdminRuleId) - if !f(fd_Space_reject_admin_rule_id, value) { + if x.RejectAdminTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectAdminTemplateId) + if !f(fd_Space_reject_admin_template_id, value) { return } } - if x.ApproveSignRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ApproveSignRuleId) - if !f(fd_Space_approve_sign_rule_id, value) { + if x.ApproveSignTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveSignTemplateId) + if !f(fd_Space_approve_sign_template_id, value) { return } } - if x.RejectSignRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RejectSignRuleId) - if !f(fd_Space_reject_sign_rule_id, value) { + if x.RejectSignTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectSignTemplateId) + if !f(fd_Space_reject_sign_template_id, value) { return } } @@ -233,20 +233,20 @@ func (x *fastReflection_Space) Has(fd protoreflect.FieldDescriptor) bool { return x.Creator != "" case "warden.warden.v1beta3.Space.owners": return len(x.Owners) != 0 - case "warden.warden.v1beta3.Space.admin_rule_id": - return x.AdminRuleId != uint64(0) - case "warden.warden.v1beta3.Space.sign_rule_id": - return x.SignRuleId != uint64(0) + case "warden.warden.v1beta3.Space.admin_template_id": + return x.AdminTemplateId != uint64(0) + case "warden.warden.v1beta3.Space.sign_template_id": + return x.SignTemplateId != uint64(0) case "warden.warden.v1beta3.Space.nonce": return x.Nonce != uint64(0) - case "warden.warden.v1beta3.Space.approve_admin_rule_id": - return x.ApproveAdminRuleId != uint64(0) - case "warden.warden.v1beta3.Space.reject_admin_rule_id": - return x.RejectAdminRuleId != uint64(0) - case "warden.warden.v1beta3.Space.approve_sign_rule_id": - return x.ApproveSignRuleId != uint64(0) - case "warden.warden.v1beta3.Space.reject_sign_rule_id": - return x.RejectSignRuleId != uint64(0) + case "warden.warden.v1beta3.Space.approve_admin_template_id": + return x.ApproveAdminTemplateId != uint64(0) + case "warden.warden.v1beta3.Space.reject_admin_template_id": + return x.RejectAdminTemplateId != uint64(0) + case "warden.warden.v1beta3.Space.approve_sign_template_id": + return x.ApproveSignTemplateId != uint64(0) + case "warden.warden.v1beta3.Space.reject_sign_template_id": + return x.RejectSignTemplateId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Space")) @@ -269,20 +269,20 @@ func (x *fastReflection_Space) Clear(fd protoreflect.FieldDescriptor) { x.Creator = "" case "warden.warden.v1beta3.Space.owners": x.Owners = nil - case "warden.warden.v1beta3.Space.admin_rule_id": - x.AdminRuleId = uint64(0) - case "warden.warden.v1beta3.Space.sign_rule_id": - x.SignRuleId = uint64(0) + case "warden.warden.v1beta3.Space.admin_template_id": + x.AdminTemplateId = uint64(0) + case "warden.warden.v1beta3.Space.sign_template_id": + x.SignTemplateId = uint64(0) case "warden.warden.v1beta3.Space.nonce": x.Nonce = uint64(0) - case "warden.warden.v1beta3.Space.approve_admin_rule_id": - x.ApproveAdminRuleId = uint64(0) - case "warden.warden.v1beta3.Space.reject_admin_rule_id": - x.RejectAdminRuleId = uint64(0) - case "warden.warden.v1beta3.Space.approve_sign_rule_id": - x.ApproveSignRuleId = uint64(0) - case "warden.warden.v1beta3.Space.reject_sign_rule_id": - x.RejectSignRuleId = uint64(0) + case "warden.warden.v1beta3.Space.approve_admin_template_id": + x.ApproveAdminTemplateId = uint64(0) + case "warden.warden.v1beta3.Space.reject_admin_template_id": + x.RejectAdminTemplateId = uint64(0) + case "warden.warden.v1beta3.Space.approve_sign_template_id": + x.ApproveSignTemplateId = uint64(0) + case "warden.warden.v1beta3.Space.reject_sign_template_id": + x.RejectSignTemplateId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Space")) @@ -311,26 +311,26 @@ func (x *fastReflection_Space) Get(descriptor protoreflect.FieldDescriptor) prot } listValue := &_Space_3_list{list: &x.Owners} return protoreflect.ValueOfList(listValue) - case "warden.warden.v1beta3.Space.admin_rule_id": - value := x.AdminRuleId + case "warden.warden.v1beta3.Space.admin_template_id": + value := x.AdminTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.Space.sign_rule_id": - value := x.SignRuleId + case "warden.warden.v1beta3.Space.sign_template_id": + value := x.SignTemplateId return protoreflect.ValueOfUint64(value) case "warden.warden.v1beta3.Space.nonce": value := x.Nonce return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.Space.approve_admin_rule_id": - value := x.ApproveAdminRuleId + case "warden.warden.v1beta3.Space.approve_admin_template_id": + value := x.ApproveAdminTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.Space.reject_admin_rule_id": - value := x.RejectAdminRuleId + case "warden.warden.v1beta3.Space.reject_admin_template_id": + value := x.RejectAdminTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.Space.approve_sign_rule_id": - value := x.ApproveSignRuleId + case "warden.warden.v1beta3.Space.approve_sign_template_id": + value := x.ApproveSignTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.Space.reject_sign_rule_id": - value := x.RejectSignRuleId + case "warden.warden.v1beta3.Space.reject_sign_template_id": + value := x.RejectSignTemplateId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { @@ -360,20 +360,20 @@ func (x *fastReflection_Space) Set(fd protoreflect.FieldDescriptor, value protor lv := value.List() clv := lv.(*_Space_3_list) x.Owners = *clv.list - case "warden.warden.v1beta3.Space.admin_rule_id": - x.AdminRuleId = value.Uint() - case "warden.warden.v1beta3.Space.sign_rule_id": - x.SignRuleId = value.Uint() + case "warden.warden.v1beta3.Space.admin_template_id": + x.AdminTemplateId = value.Uint() + case "warden.warden.v1beta3.Space.sign_template_id": + x.SignTemplateId = value.Uint() case "warden.warden.v1beta3.Space.nonce": x.Nonce = value.Uint() - case "warden.warden.v1beta3.Space.approve_admin_rule_id": - x.ApproveAdminRuleId = value.Uint() - case "warden.warden.v1beta3.Space.reject_admin_rule_id": - x.RejectAdminRuleId = value.Uint() - case "warden.warden.v1beta3.Space.approve_sign_rule_id": - x.ApproveSignRuleId = value.Uint() - case "warden.warden.v1beta3.Space.reject_sign_rule_id": - x.RejectSignRuleId = value.Uint() + case "warden.warden.v1beta3.Space.approve_admin_template_id": + x.ApproveAdminTemplateId = value.Uint() + case "warden.warden.v1beta3.Space.reject_admin_template_id": + x.RejectAdminTemplateId = value.Uint() + case "warden.warden.v1beta3.Space.approve_sign_template_id": + x.ApproveSignTemplateId = value.Uint() + case "warden.warden.v1beta3.Space.reject_sign_template_id": + x.RejectSignTemplateId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Space")) @@ -404,20 +404,20 @@ func (x *fastReflection_Space) Mutable(fd protoreflect.FieldDescriptor) protoref panic(fmt.Errorf("field id of message warden.warden.v1beta3.Space is not mutable")) case "warden.warden.v1beta3.Space.creator": panic(fmt.Errorf("field creator of message warden.warden.v1beta3.Space is not mutable")) - case "warden.warden.v1beta3.Space.admin_rule_id": - panic(fmt.Errorf("field admin_rule_id of message warden.warden.v1beta3.Space is not mutable")) - case "warden.warden.v1beta3.Space.sign_rule_id": - panic(fmt.Errorf("field sign_rule_id of message warden.warden.v1beta3.Space is not mutable")) + case "warden.warden.v1beta3.Space.admin_template_id": + panic(fmt.Errorf("field admin_template_id of message warden.warden.v1beta3.Space is not mutable")) + case "warden.warden.v1beta3.Space.sign_template_id": + panic(fmt.Errorf("field sign_template_id of message warden.warden.v1beta3.Space is not mutable")) case "warden.warden.v1beta3.Space.nonce": panic(fmt.Errorf("field nonce of message warden.warden.v1beta3.Space is not mutable")) - case "warden.warden.v1beta3.Space.approve_admin_rule_id": - panic(fmt.Errorf("field approve_admin_rule_id of message warden.warden.v1beta3.Space is not mutable")) - case "warden.warden.v1beta3.Space.reject_admin_rule_id": - panic(fmt.Errorf("field reject_admin_rule_id of message warden.warden.v1beta3.Space is not mutable")) - case "warden.warden.v1beta3.Space.approve_sign_rule_id": - panic(fmt.Errorf("field approve_sign_rule_id of message warden.warden.v1beta3.Space is not mutable")) - case "warden.warden.v1beta3.Space.reject_sign_rule_id": - panic(fmt.Errorf("field reject_sign_rule_id of message warden.warden.v1beta3.Space is not mutable")) + case "warden.warden.v1beta3.Space.approve_admin_template_id": + panic(fmt.Errorf("field approve_admin_template_id of message warden.warden.v1beta3.Space is not mutable")) + case "warden.warden.v1beta3.Space.reject_admin_template_id": + panic(fmt.Errorf("field reject_admin_template_id of message warden.warden.v1beta3.Space is not mutable")) + case "warden.warden.v1beta3.Space.approve_sign_template_id": + panic(fmt.Errorf("field approve_sign_template_id of message warden.warden.v1beta3.Space is not mutable")) + case "warden.warden.v1beta3.Space.reject_sign_template_id": + panic(fmt.Errorf("field reject_sign_template_id of message warden.warden.v1beta3.Space is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.Space")) @@ -438,19 +438,19 @@ func (x *fastReflection_Space) NewField(fd protoreflect.FieldDescriptor) protore case "warden.warden.v1beta3.Space.owners": list := []string{} return protoreflect.ValueOfList(&_Space_3_list{list: &list}) - case "warden.warden.v1beta3.Space.admin_rule_id": + case "warden.warden.v1beta3.Space.admin_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.Space.sign_rule_id": + case "warden.warden.v1beta3.Space.sign_template_id": return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.Space.nonce": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.Space.approve_admin_rule_id": + case "warden.warden.v1beta3.Space.approve_admin_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.Space.reject_admin_rule_id": + case "warden.warden.v1beta3.Space.reject_admin_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.Space.approve_sign_rule_id": + case "warden.warden.v1beta3.Space.approve_sign_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.Space.reject_sign_rule_id": + case "warden.warden.v1beta3.Space.reject_sign_template_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -534,26 +534,26 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } - if x.AdminRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.AdminRuleId)) + if x.AdminTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.AdminTemplateId)) } - if x.SignRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.SignRuleId)) + if x.SignTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.SignTemplateId)) } if x.Nonce != 0 { n += 1 + runtime.Sov(uint64(x.Nonce)) } - if x.ApproveAdminRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.ApproveAdminRuleId)) + if x.ApproveAdminTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveAdminTemplateId)) } - if x.RejectAdminRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RejectAdminRuleId)) + if x.RejectAdminTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectAdminTemplateId)) } - if x.ApproveSignRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.ApproveSignRuleId)) + if x.ApproveSignTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveSignTemplateId)) } - if x.RejectSignRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RejectSignRuleId)) + if x.RejectSignTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectSignTemplateId)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -584,23 +584,23 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.RejectSignRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectSignRuleId)) + if x.RejectSignTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectSignTemplateId)) i-- dAtA[i] = 0x58 } - if x.ApproveSignRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveSignRuleId)) + if x.ApproveSignTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveSignTemplateId)) i-- dAtA[i] = 0x50 } - if x.RejectAdminRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectAdminRuleId)) + if x.RejectAdminTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectAdminTemplateId)) i-- dAtA[i] = 0x48 } - if x.ApproveAdminRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveAdminRuleId)) + if x.ApproveAdminTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveAdminTemplateId)) i-- dAtA[i] = 0x40 } @@ -609,13 +609,13 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x38 } - if x.SignRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SignRuleId)) + if x.SignTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SignTemplateId)) i-- dAtA[i] = 0x30 } - if x.AdminRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.AdminRuleId)) + if x.AdminTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.AdminTemplateId)) i-- dAtA[i] = 0x28 } @@ -774,9 +774,9 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AdminRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AdminTemplateId", wireType) } - x.AdminRuleId = 0 + x.AdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -786,16 +786,16 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.AdminRuleId |= uint64(b&0x7F) << shift + x.AdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignTemplateId", wireType) } - x.SignRuleId = 0 + x.SignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -805,7 +805,7 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.SignRuleId |= uint64(b&0x7F) << shift + x.SignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -831,9 +831,9 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { } case 8: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminTemplateId", wireType) } - x.ApproveAdminRuleId = 0 + x.ApproveAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -843,16 +843,16 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.ApproveAdminRuleId |= uint64(b&0x7F) << shift + x.ApproveAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 9: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectAdminTemplateId", wireType) } - x.RejectAdminRuleId = 0 + x.RejectAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -862,16 +862,16 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RejectAdminRuleId |= uint64(b&0x7F) << shift + x.RejectAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 10: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveSignTemplateId", wireType) } - x.ApproveSignRuleId = 0 + x.ApproveSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -881,16 +881,16 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.ApproveSignRuleId |= uint64(b&0x7F) << shift + x.ApproveSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 11: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectSignTemplateId", wireType) } - x.RejectSignRuleId = 0 + x.RejectSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -900,7 +900,7 @@ func (x *fastReflection_Space) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RejectSignRuleId |= uint64(b&0x7F) << shift + x.RejectSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -965,74 +965,74 @@ type Space struct { Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // List of owners of the space. Owners []string `protobuf:"bytes,3,rep,name=owners,proto3" json:"owners,omitempty"` - // Optional ID of the Rule to be applied to every *admin* operation. - // If not specified, the default Rule is used. + // Optional ID of the Template to be applied to every *admin* operation. + // If not specified, the default Template is used. // // Admin operations are: // - warden.warden.Msg.AddSpaceOwner // - warden.warden.Msg.RemoveSpaceOwner // - warden.warden.Msg.UpdateSpace // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - AdminRuleId uint64 `protobuf:"varint,5,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - // Optional ID of the Rule to be applied to every *sign* operation. - // If not specified, the default Rule is used. + AdminTemplateId uint64 `protobuf:"varint,5,opt,name=admin_template_id,json=adminTemplateId,proto3" json:"admin_template_id,omitempty"` + // Optional ID of the Template to be applied to every *sign* operation. + // If not specified, the default Template is used. // // Sign operations are: // - warden.warden.Msg.NewKeyRequest // - warden.warden.Msg.NewSignRequest // - warden.warden.Msg.UpdateKey // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - SignRuleId uint64 `protobuf:"varint,6,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` + SignTemplateId uint64 `protobuf:"varint,6,opt,name=sign_template_id,json=signTemplateId,proto3" json:"sign_template_id,omitempty"` // Version of the space. Every time the Space is updated, this number gets increasead by one. Nonce uint64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` - // Optional ID of the Rule to be applied to every approve vote on *admin* operation. - // If not specified, the default Rule is used. + // Optional ID of the Template to be applied to every approve vote on *admin* operation. + // If not specified, the default Template is used. // // Admin operations are: // - warden.warden.Msg.AddSpaceOwner // - warden.warden.Msg.RemoveSpaceOwner // - warden.warden.Msg.UpdateSpace // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - ApproveAdminRuleId uint64 `protobuf:"varint,8,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` - // Optional ID of the Rule to be applied to every reject vote on *admin* operation. - // If not specified, the default Rule is used. + ApproveAdminTemplateId uint64 `protobuf:"varint,8,opt,name=approve_admin_template_id,json=approveAdminTemplateId,proto3" json:"approve_admin_template_id,omitempty"` + // Optional ID of the Template to be applied to every reject vote on *admin* operation. + // If not specified, the default Template is used. // // Admin operations are: // - warden.warden.Msg.AddSpaceOwner // - warden.warden.Msg.RemoveSpaceOwner // - warden.warden.Msg.UpdateSpace // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - RejectAdminRuleId uint64 `protobuf:"varint,9,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` - // Optional ID of the Rule to be applied to every approve vote on *sign* operation. - // If not specified, the default Rule is used. + RejectAdminTemplateId uint64 `protobuf:"varint,9,opt,name=reject_admin_template_id,json=rejectAdminTemplateId,proto3" json:"reject_admin_template_id,omitempty"` + // Optional ID of the Template to be applied to every approve vote on *sign* operation. + // If not specified, the default Template is used. // // Sign operations are: // - warden.warden.Msg.NewKeyRequest // - warden.warden.Msg.NewSignRequest // - warden.warden.Msg.UpdateKey // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - ApproveSignRuleId uint64 `protobuf:"varint,10,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` - // Optional ID of the Rule to be applied to every reject vote on *sign* operation. - // If not specified, the default Rule is used. + ApproveSignTemplateId uint64 `protobuf:"varint,10,opt,name=approve_sign_template_id,json=approveSignTemplateId,proto3" json:"approve_sign_template_id,omitempty"` + // Optional ID of the Template to be applied to every reject vote on *sign* operation. + // If not specified, the default Template is used. // // Sign operations are: // - warden.warden.Msg.NewKeyRequest // - warden.warden.Msg.NewSignRequest // - warden.warden.Msg.UpdateKey // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - RejectSignRuleId uint64 `protobuf:"varint,11,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` + RejectSignTemplateId uint64 `protobuf:"varint,11,opt,name=reject_sign_template_id,json=rejectSignTemplateId,proto3" json:"reject_sign_template_id,omitempty"` } func (x *Space) Reset() { @@ -1076,16 +1076,16 @@ func (x *Space) GetOwners() []string { return nil } -func (x *Space) GetAdminRuleId() uint64 { +func (x *Space) GetAdminTemplateId() uint64 { if x != nil { - return x.AdminRuleId + return x.AdminTemplateId } return 0 } -func (x *Space) GetSignRuleId() uint64 { +func (x *Space) GetSignTemplateId() uint64 { if x != nil { - return x.SignRuleId + return x.SignTemplateId } return 0 } @@ -1097,30 +1097,30 @@ func (x *Space) GetNonce() uint64 { return 0 } -func (x *Space) GetApproveAdminRuleId() uint64 { +func (x *Space) GetApproveAdminTemplateId() uint64 { if x != nil { - return x.ApproveAdminRuleId + return x.ApproveAdminTemplateId } return 0 } -func (x *Space) GetRejectAdminRuleId() uint64 { +func (x *Space) GetRejectAdminTemplateId() uint64 { if x != nil { - return x.RejectAdminRuleId + return x.RejectAdminTemplateId } return 0 } -func (x *Space) GetApproveSignRuleId() uint64 { +func (x *Space) GetApproveSignTemplateId() uint64 { if x != nil { - return x.ApproveSignRuleId + return x.ApproveSignTemplateId } return 0 } -func (x *Space) GetRejectSignRuleId() uint64 { +func (x *Space) GetRejectSignTemplateId() uint64 { if x != nil { - return x.RejectSignRuleId + return x.RejectSignTemplateId } return 0 } @@ -1131,30 +1131,33 @@ var file_warden_warden_v1beta3_space_proto_rawDesc = []byte{ 0x0a, 0x21, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x22, 0xe9, 0x02, 0x0a, 0x05, 0x53, + 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x22, 0x99, 0x03, 0x0a, 0x05, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, - 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, - 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x69, - 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, + 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x69, + 0x67, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, - 0x63, 0x65, 0x12, 0x31, 0x0a, 0x15, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x12, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, - 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, - 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, - 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, - 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x13, 0x72, 0x65, 0x6a, 0x65, 0x63, - 0x74, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0b, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, - 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x42, 0xf0, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x77, + 0x63, 0x65, 0x12, 0x39, 0x0a, 0x19, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x37, 0x0a, + 0x18, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x15, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x18, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, + 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, + 0x65, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, + 0x35, 0x0a, 0x17, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x14, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x42, 0xf0, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x42, 0x0a, 0x53, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, diff --git a/api/warden/warden/v1beta3/tx.pulsar.go b/api/warden/warden/v1beta3/tx.pulsar.go index 839c1237a..6dc3c010f 100644 --- a/api/warden/warden/v1beta3/tx.pulsar.go +++ b/api/warden/warden/v1beta3/tx.pulsar.go @@ -922,8 +922,8 @@ func (x *_MsgNewSpace_4_list) IsValid() bool { var ( md_MsgNewSpace protoreflect.MessageDescriptor fd_MsgNewSpace_creator protoreflect.FieldDescriptor - fd_MsgNewSpace_admin_rule_id protoreflect.FieldDescriptor - fd_MsgNewSpace_sign_rule_id protoreflect.FieldDescriptor + fd_MsgNewSpace_admin_template_id protoreflect.FieldDescriptor + fd_MsgNewSpace_sign_template_id protoreflect.FieldDescriptor fd_MsgNewSpace_additional_owners protoreflect.FieldDescriptor ) @@ -931,8 +931,8 @@ func init() { file_warden_warden_v1beta3_tx_proto_init() md_MsgNewSpace = File_warden_warden_v1beta3_tx_proto.Messages().ByName("MsgNewSpace") fd_MsgNewSpace_creator = md_MsgNewSpace.Fields().ByName("creator") - fd_MsgNewSpace_admin_rule_id = md_MsgNewSpace.Fields().ByName("admin_rule_id") - fd_MsgNewSpace_sign_rule_id = md_MsgNewSpace.Fields().ByName("sign_rule_id") + fd_MsgNewSpace_admin_template_id = md_MsgNewSpace.Fields().ByName("admin_template_id") + fd_MsgNewSpace_sign_template_id = md_MsgNewSpace.Fields().ByName("sign_template_id") fd_MsgNewSpace_additional_owners = md_MsgNewSpace.Fields().ByName("additional_owners") } @@ -1007,15 +1007,15 @@ func (x *fastReflection_MsgNewSpace) Range(f func(protoreflect.FieldDescriptor, return } } - if x.AdminRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.AdminRuleId) - if !f(fd_MsgNewSpace_admin_rule_id, value) { + if x.AdminTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.AdminTemplateId) + if !f(fd_MsgNewSpace_admin_template_id, value) { return } } - if x.SignRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SignRuleId) - if !f(fd_MsgNewSpace_sign_rule_id, value) { + if x.SignTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SignTemplateId) + if !f(fd_MsgNewSpace_sign_template_id, value) { return } } @@ -1042,10 +1042,10 @@ func (x *fastReflection_MsgNewSpace) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "warden.warden.v1beta3.MsgNewSpace.creator": return x.Creator != "" - case "warden.warden.v1beta3.MsgNewSpace.admin_rule_id": - return x.AdminRuleId != uint64(0) - case "warden.warden.v1beta3.MsgNewSpace.sign_rule_id": - return x.SignRuleId != uint64(0) + case "warden.warden.v1beta3.MsgNewSpace.admin_template_id": + return x.AdminTemplateId != uint64(0) + case "warden.warden.v1beta3.MsgNewSpace.sign_template_id": + return x.SignTemplateId != uint64(0) case "warden.warden.v1beta3.MsgNewSpace.additional_owners": return len(x.AdditionalOwners) != 0 default: @@ -1066,10 +1066,10 @@ func (x *fastReflection_MsgNewSpace) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "warden.warden.v1beta3.MsgNewSpace.creator": x.Creator = "" - case "warden.warden.v1beta3.MsgNewSpace.admin_rule_id": - x.AdminRuleId = uint64(0) - case "warden.warden.v1beta3.MsgNewSpace.sign_rule_id": - x.SignRuleId = uint64(0) + case "warden.warden.v1beta3.MsgNewSpace.admin_template_id": + x.AdminTemplateId = uint64(0) + case "warden.warden.v1beta3.MsgNewSpace.sign_template_id": + x.SignTemplateId = uint64(0) case "warden.warden.v1beta3.MsgNewSpace.additional_owners": x.AdditionalOwners = nil default: @@ -1091,11 +1091,11 @@ func (x *fastReflection_MsgNewSpace) Get(descriptor protoreflect.FieldDescriptor case "warden.warden.v1beta3.MsgNewSpace.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "warden.warden.v1beta3.MsgNewSpace.admin_rule_id": - value := x.AdminRuleId + case "warden.warden.v1beta3.MsgNewSpace.admin_template_id": + value := x.AdminTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.MsgNewSpace.sign_rule_id": - value := x.SignRuleId + case "warden.warden.v1beta3.MsgNewSpace.sign_template_id": + value := x.SignTemplateId return protoreflect.ValueOfUint64(value) case "warden.warden.v1beta3.MsgNewSpace.additional_owners": if len(x.AdditionalOwners) == 0 { @@ -1125,10 +1125,10 @@ func (x *fastReflection_MsgNewSpace) Set(fd protoreflect.FieldDescriptor, value switch fd.FullName() { case "warden.warden.v1beta3.MsgNewSpace.creator": x.Creator = value.Interface().(string) - case "warden.warden.v1beta3.MsgNewSpace.admin_rule_id": - x.AdminRuleId = value.Uint() - case "warden.warden.v1beta3.MsgNewSpace.sign_rule_id": - x.SignRuleId = value.Uint() + case "warden.warden.v1beta3.MsgNewSpace.admin_template_id": + x.AdminTemplateId = value.Uint() + case "warden.warden.v1beta3.MsgNewSpace.sign_template_id": + x.SignTemplateId = value.Uint() case "warden.warden.v1beta3.MsgNewSpace.additional_owners": lv := value.List() clv := lv.(*_MsgNewSpace_4_list) @@ -1161,10 +1161,10 @@ func (x *fastReflection_MsgNewSpace) Mutable(fd protoreflect.FieldDescriptor) pr return protoreflect.ValueOfList(value) case "warden.warden.v1beta3.MsgNewSpace.creator": panic(fmt.Errorf("field creator of message warden.warden.v1beta3.MsgNewSpace is not mutable")) - case "warden.warden.v1beta3.MsgNewSpace.admin_rule_id": - panic(fmt.Errorf("field admin_rule_id of message warden.warden.v1beta3.MsgNewSpace is not mutable")) - case "warden.warden.v1beta3.MsgNewSpace.sign_rule_id": - panic(fmt.Errorf("field sign_rule_id of message warden.warden.v1beta3.MsgNewSpace is not mutable")) + case "warden.warden.v1beta3.MsgNewSpace.admin_template_id": + panic(fmt.Errorf("field admin_template_id of message warden.warden.v1beta3.MsgNewSpace is not mutable")) + case "warden.warden.v1beta3.MsgNewSpace.sign_template_id": + panic(fmt.Errorf("field sign_template_id of message warden.warden.v1beta3.MsgNewSpace is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgNewSpace")) @@ -1180,9 +1180,9 @@ func (x *fastReflection_MsgNewSpace) NewField(fd protoreflect.FieldDescriptor) p switch fd.FullName() { case "warden.warden.v1beta3.MsgNewSpace.creator": return protoreflect.ValueOfString("") - case "warden.warden.v1beta3.MsgNewSpace.admin_rule_id": + case "warden.warden.v1beta3.MsgNewSpace.admin_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.MsgNewSpace.sign_rule_id": + case "warden.warden.v1beta3.MsgNewSpace.sign_template_id": return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.MsgNewSpace.additional_owners": list := []string{} @@ -1260,11 +1260,11 @@ func (x *fastReflection_MsgNewSpace) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.AdminRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.AdminRuleId)) + if x.AdminTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.AdminTemplateId)) } - if x.SignRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.SignRuleId)) + if x.SignTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.SignTemplateId)) } if len(x.AdditionalOwners) > 0 { for _, s := range x.AdditionalOwners { @@ -1310,13 +1310,13 @@ func (x *fastReflection_MsgNewSpace) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x22 } } - if x.SignRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SignRuleId)) + if x.SignTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SignTemplateId)) i-- dAtA[i] = 0x18 } - if x.AdminRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.AdminRuleId)) + if x.AdminTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.AdminTemplateId)) i-- dAtA[i] = 0x10 } @@ -1410,9 +1410,9 @@ func (x *fastReflection_MsgNewSpace) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AdminRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AdminTemplateId", wireType) } - x.AdminRuleId = 0 + x.AdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1422,16 +1422,16 @@ func (x *fastReflection_MsgNewSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.AdminRuleId |= uint64(b&0x7F) << shift + x.AdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignTemplateId", wireType) } - x.SignRuleId = 0 + x.SignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1441,7 +1441,7 @@ func (x *fastReflection_MsgNewSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.SignRuleId |= uint64(b&0x7F) << shift + x.SignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5837,16 +5837,16 @@ func (x *fastReflection_MsgAddKeychainWriterResponse) ProtoMethods() *protoiface } var ( - md_MsgUpdateSpace protoreflect.MessageDescriptor - fd_MsgUpdateSpace_authority protoreflect.FieldDescriptor - fd_MsgUpdateSpace_space_id protoreflect.FieldDescriptor - fd_MsgUpdateSpace_admin_rule_id protoreflect.FieldDescriptor - fd_MsgUpdateSpace_sign_rule_id protoreflect.FieldDescriptor - fd_MsgUpdateSpace_nonce protoreflect.FieldDescriptor - fd_MsgUpdateSpace_approve_admin_rule_id protoreflect.FieldDescriptor - fd_MsgUpdateSpace_reject_admin_rule_id protoreflect.FieldDescriptor - fd_MsgUpdateSpace_approve_sign_rule_id protoreflect.FieldDescriptor - fd_MsgUpdateSpace_reject_sign_rule_id protoreflect.FieldDescriptor + md_MsgUpdateSpace protoreflect.MessageDescriptor + fd_MsgUpdateSpace_authority protoreflect.FieldDescriptor + fd_MsgUpdateSpace_space_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_admin_template_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_sign_template_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_nonce protoreflect.FieldDescriptor + fd_MsgUpdateSpace_approve_admin_template_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_reject_admin_template_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_approve_sign_template_id protoreflect.FieldDescriptor + fd_MsgUpdateSpace_reject_sign_template_id protoreflect.FieldDescriptor ) func init() { @@ -5854,13 +5854,13 @@ func init() { md_MsgUpdateSpace = File_warden_warden_v1beta3_tx_proto.Messages().ByName("MsgUpdateSpace") fd_MsgUpdateSpace_authority = md_MsgUpdateSpace.Fields().ByName("authority") fd_MsgUpdateSpace_space_id = md_MsgUpdateSpace.Fields().ByName("space_id") - fd_MsgUpdateSpace_admin_rule_id = md_MsgUpdateSpace.Fields().ByName("admin_rule_id") - fd_MsgUpdateSpace_sign_rule_id = md_MsgUpdateSpace.Fields().ByName("sign_rule_id") + fd_MsgUpdateSpace_admin_template_id = md_MsgUpdateSpace.Fields().ByName("admin_template_id") + fd_MsgUpdateSpace_sign_template_id = md_MsgUpdateSpace.Fields().ByName("sign_template_id") fd_MsgUpdateSpace_nonce = md_MsgUpdateSpace.Fields().ByName("nonce") - fd_MsgUpdateSpace_approve_admin_rule_id = md_MsgUpdateSpace.Fields().ByName("approve_admin_rule_id") - fd_MsgUpdateSpace_reject_admin_rule_id = md_MsgUpdateSpace.Fields().ByName("reject_admin_rule_id") - fd_MsgUpdateSpace_approve_sign_rule_id = md_MsgUpdateSpace.Fields().ByName("approve_sign_rule_id") - fd_MsgUpdateSpace_reject_sign_rule_id = md_MsgUpdateSpace.Fields().ByName("reject_sign_rule_id") + fd_MsgUpdateSpace_approve_admin_template_id = md_MsgUpdateSpace.Fields().ByName("approve_admin_template_id") + fd_MsgUpdateSpace_reject_admin_template_id = md_MsgUpdateSpace.Fields().ByName("reject_admin_template_id") + fd_MsgUpdateSpace_approve_sign_template_id = md_MsgUpdateSpace.Fields().ByName("approve_sign_template_id") + fd_MsgUpdateSpace_reject_sign_template_id = md_MsgUpdateSpace.Fields().ByName("reject_sign_template_id") } var _ protoreflect.Message = (*fastReflection_MsgUpdateSpace)(nil) @@ -5940,15 +5940,15 @@ func (x *fastReflection_MsgUpdateSpace) Range(f func(protoreflect.FieldDescripto return } } - if x.AdminRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.AdminRuleId) - if !f(fd_MsgUpdateSpace_admin_rule_id, value) { + if x.AdminTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.AdminTemplateId) + if !f(fd_MsgUpdateSpace_admin_template_id, value) { return } } - if x.SignRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SignRuleId) - if !f(fd_MsgUpdateSpace_sign_rule_id, value) { + if x.SignTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SignTemplateId) + if !f(fd_MsgUpdateSpace_sign_template_id, value) { return } } @@ -5958,27 +5958,27 @@ func (x *fastReflection_MsgUpdateSpace) Range(f func(protoreflect.FieldDescripto return } } - if x.ApproveAdminRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ApproveAdminRuleId) - if !f(fd_MsgUpdateSpace_approve_admin_rule_id, value) { + if x.ApproveAdminTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveAdminTemplateId) + if !f(fd_MsgUpdateSpace_approve_admin_template_id, value) { return } } - if x.RejectAdminRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RejectAdminRuleId) - if !f(fd_MsgUpdateSpace_reject_admin_rule_id, value) { + if x.RejectAdminTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectAdminTemplateId) + if !f(fd_MsgUpdateSpace_reject_admin_template_id, value) { return } } - if x.ApproveSignRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ApproveSignRuleId) - if !f(fd_MsgUpdateSpace_approve_sign_rule_id, value) { + if x.ApproveSignTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveSignTemplateId) + if !f(fd_MsgUpdateSpace_approve_sign_template_id, value) { return } } - if x.RejectSignRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RejectSignRuleId) - if !f(fd_MsgUpdateSpace_reject_sign_rule_id, value) { + if x.RejectSignTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectSignTemplateId) + if !f(fd_MsgUpdateSpace_reject_sign_template_id, value) { return } } @@ -6001,20 +6001,20 @@ func (x *fastReflection_MsgUpdateSpace) Has(fd protoreflect.FieldDescriptor) boo return x.Authority != "" case "warden.warden.v1beta3.MsgUpdateSpace.space_id": return x.SpaceId != uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.admin_rule_id": - return x.AdminRuleId != uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.sign_rule_id": - return x.SignRuleId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.admin_template_id": + return x.AdminTemplateId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.sign_template_id": + return x.SignTemplateId != uint64(0) case "warden.warden.v1beta3.MsgUpdateSpace.nonce": return x.Nonce != uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": - return x.ApproveAdminRuleId != uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": - return x.RejectAdminRuleId != uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": - return x.ApproveSignRuleId != uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": - return x.RejectSignRuleId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_template_id": + return x.ApproveAdminTemplateId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_template_id": + return x.RejectAdminTemplateId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_template_id": + return x.ApproveSignTemplateId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_template_id": + return x.RejectSignTemplateId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateSpace")) @@ -6035,20 +6035,20 @@ func (x *fastReflection_MsgUpdateSpace) Clear(fd protoreflect.FieldDescriptor) { x.Authority = "" case "warden.warden.v1beta3.MsgUpdateSpace.space_id": x.SpaceId = uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.admin_rule_id": - x.AdminRuleId = uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.sign_rule_id": - x.SignRuleId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.admin_template_id": + x.AdminTemplateId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.sign_template_id": + x.SignTemplateId = uint64(0) case "warden.warden.v1beta3.MsgUpdateSpace.nonce": x.Nonce = uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": - x.ApproveAdminRuleId = uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": - x.RejectAdminRuleId = uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": - x.ApproveSignRuleId = uint64(0) - case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": - x.RejectSignRuleId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_template_id": + x.ApproveAdminTemplateId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_template_id": + x.RejectAdminTemplateId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_template_id": + x.ApproveSignTemplateId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_template_id": + x.RejectSignTemplateId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateSpace")) @@ -6071,26 +6071,26 @@ func (x *fastReflection_MsgUpdateSpace) Get(descriptor protoreflect.FieldDescrip case "warden.warden.v1beta3.MsgUpdateSpace.space_id": value := x.SpaceId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.MsgUpdateSpace.admin_rule_id": - value := x.AdminRuleId + case "warden.warden.v1beta3.MsgUpdateSpace.admin_template_id": + value := x.AdminTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.MsgUpdateSpace.sign_rule_id": - value := x.SignRuleId + case "warden.warden.v1beta3.MsgUpdateSpace.sign_template_id": + value := x.SignTemplateId return protoreflect.ValueOfUint64(value) case "warden.warden.v1beta3.MsgUpdateSpace.nonce": value := x.Nonce return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": - value := x.ApproveAdminRuleId + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_template_id": + value := x.ApproveAdminTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": - value := x.RejectAdminRuleId + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_template_id": + value := x.RejectAdminTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": - value := x.ApproveSignRuleId + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_template_id": + value := x.ApproveSignTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": - value := x.RejectSignRuleId + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_template_id": + value := x.RejectSignTemplateId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { @@ -6116,20 +6116,20 @@ func (x *fastReflection_MsgUpdateSpace) Set(fd protoreflect.FieldDescriptor, val x.Authority = value.Interface().(string) case "warden.warden.v1beta3.MsgUpdateSpace.space_id": x.SpaceId = value.Uint() - case "warden.warden.v1beta3.MsgUpdateSpace.admin_rule_id": - x.AdminRuleId = value.Uint() - case "warden.warden.v1beta3.MsgUpdateSpace.sign_rule_id": - x.SignRuleId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateSpace.admin_template_id": + x.AdminTemplateId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateSpace.sign_template_id": + x.SignTemplateId = value.Uint() case "warden.warden.v1beta3.MsgUpdateSpace.nonce": x.Nonce = value.Uint() - case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": - x.ApproveAdminRuleId = value.Uint() - case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": - x.RejectAdminRuleId = value.Uint() - case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": - x.ApproveSignRuleId = value.Uint() - case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": - x.RejectSignRuleId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_template_id": + x.ApproveAdminTemplateId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_template_id": + x.RejectAdminTemplateId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_template_id": + x.ApproveSignTemplateId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_template_id": + x.RejectSignTemplateId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateSpace")) @@ -6154,20 +6154,20 @@ func (x *fastReflection_MsgUpdateSpace) Mutable(fd protoreflect.FieldDescriptor) panic(fmt.Errorf("field authority of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) case "warden.warden.v1beta3.MsgUpdateSpace.space_id": panic(fmt.Errorf("field space_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) - case "warden.warden.v1beta3.MsgUpdateSpace.admin_rule_id": - panic(fmt.Errorf("field admin_rule_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) - case "warden.warden.v1beta3.MsgUpdateSpace.sign_rule_id": - panic(fmt.Errorf("field sign_rule_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) + case "warden.warden.v1beta3.MsgUpdateSpace.admin_template_id": + panic(fmt.Errorf("field admin_template_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) + case "warden.warden.v1beta3.MsgUpdateSpace.sign_template_id": + panic(fmt.Errorf("field sign_template_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) case "warden.warden.v1beta3.MsgUpdateSpace.nonce": panic(fmt.Errorf("field nonce of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) - case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": - panic(fmt.Errorf("field approve_admin_rule_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) - case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": - panic(fmt.Errorf("field reject_admin_rule_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) - case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": - panic(fmt.Errorf("field approve_sign_rule_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) - case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": - panic(fmt.Errorf("field reject_sign_rule_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_template_id": + panic(fmt.Errorf("field approve_admin_template_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_template_id": + panic(fmt.Errorf("field reject_admin_template_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_template_id": + panic(fmt.Errorf("field approve_sign_template_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_template_id": + panic(fmt.Errorf("field reject_sign_template_id of message warden.warden.v1beta3.MsgUpdateSpace is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateSpace")) @@ -6185,19 +6185,19 @@ func (x *fastReflection_MsgUpdateSpace) NewField(fd protoreflect.FieldDescriptor return protoreflect.ValueOfString("") case "warden.warden.v1beta3.MsgUpdateSpace.space_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.MsgUpdateSpace.admin_rule_id": + case "warden.warden.v1beta3.MsgUpdateSpace.admin_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.MsgUpdateSpace.sign_rule_id": + case "warden.warden.v1beta3.MsgUpdateSpace.sign_template_id": return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.MsgUpdateSpace.nonce": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_rule_id": + case "warden.warden.v1beta3.MsgUpdateSpace.approve_admin_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_rule_id": + case "warden.warden.v1beta3.MsgUpdateSpace.reject_admin_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_rule_id": + case "warden.warden.v1beta3.MsgUpdateSpace.approve_sign_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_rule_id": + case "warden.warden.v1beta3.MsgUpdateSpace.reject_sign_template_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -6275,26 +6275,26 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { if x.SpaceId != 0 { n += 1 + runtime.Sov(uint64(x.SpaceId)) } - if x.AdminRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.AdminRuleId)) + if x.AdminTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.AdminTemplateId)) } - if x.SignRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.SignRuleId)) + if x.SignTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.SignTemplateId)) } if x.Nonce != 0 { n += 1 + runtime.Sov(uint64(x.Nonce)) } - if x.ApproveAdminRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.ApproveAdminRuleId)) + if x.ApproveAdminTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveAdminTemplateId)) } - if x.RejectAdminRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RejectAdminRuleId)) + if x.RejectAdminTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectAdminTemplateId)) } - if x.ApproveSignRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.ApproveSignRuleId)) + if x.ApproveSignTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveSignTemplateId)) } - if x.RejectSignRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RejectSignRuleId)) + if x.RejectSignTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectSignTemplateId)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -6325,23 +6325,23 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.RejectSignRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectSignRuleId)) + if x.RejectSignTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectSignTemplateId)) i-- dAtA[i] = 0x48 } - if x.ApproveSignRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveSignRuleId)) + if x.ApproveSignTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveSignTemplateId)) i-- dAtA[i] = 0x40 } - if x.RejectAdminRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectAdminRuleId)) + if x.RejectAdminTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectAdminTemplateId)) i-- dAtA[i] = 0x38 } - if x.ApproveAdminRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveAdminRuleId)) + if x.ApproveAdminTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveAdminTemplateId)) i-- dAtA[i] = 0x30 } @@ -6350,13 +6350,13 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x28 } - if x.SignRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SignRuleId)) + if x.SignTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SignTemplateId)) i-- dAtA[i] = 0x20 } - if x.AdminRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.AdminRuleId)) + if x.AdminTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.AdminTemplateId)) i-- dAtA[i] = 0x18 } @@ -6474,9 +6474,9 @@ func (x *fastReflection_MsgUpdateSpace) 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 AdminRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AdminTemplateId", wireType) } - x.AdminRuleId = 0 + x.AdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6486,16 +6486,16 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.AdminRuleId |= uint64(b&0x7F) << shift + x.AdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignTemplateId", wireType) } - x.SignRuleId = 0 + x.SignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6505,7 +6505,7 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.SignRuleId |= uint64(b&0x7F) << shift + x.SignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6531,9 +6531,9 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { } case 6: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminTemplateId", wireType) } - x.ApproveAdminRuleId = 0 + x.ApproveAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6543,16 +6543,16 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.ApproveAdminRuleId |= uint64(b&0x7F) << shift + x.ApproveAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectAdminTemplateId", wireType) } - x.RejectAdminRuleId = 0 + x.RejectAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6562,16 +6562,16 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RejectAdminRuleId |= uint64(b&0x7F) << shift + x.RejectAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 8: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveSignTemplateId", wireType) } - x.ApproveSignRuleId = 0 + x.ApproveSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6581,16 +6581,16 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.ApproveSignRuleId |= uint64(b&0x7F) << shift + x.ApproveSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 9: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectSignTemplateId", wireType) } - x.RejectSignRuleId = 0 + x.RejectSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6600,7 +6600,7 @@ func (x *fastReflection_MsgUpdateSpace) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RejectSignRuleId |= uint64(b&0x7F) << shift + x.RejectSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9988,7 +9988,7 @@ var ( fd_MsgNewKeyRequest_space_id protoreflect.FieldDescriptor fd_MsgNewKeyRequest_keychain_id protoreflect.FieldDescriptor fd_MsgNewKeyRequest_key_type protoreflect.FieldDescriptor - fd_MsgNewKeyRequest_rule_id protoreflect.FieldDescriptor + fd_MsgNewKeyRequest_template_id protoreflect.FieldDescriptor fd_MsgNewKeyRequest_max_keychain_fees protoreflect.FieldDescriptor fd_MsgNewKeyRequest_nonce protoreflect.FieldDescriptor ) @@ -10000,7 +10000,7 @@ func init() { fd_MsgNewKeyRequest_space_id = md_MsgNewKeyRequest.Fields().ByName("space_id") fd_MsgNewKeyRequest_keychain_id = md_MsgNewKeyRequest.Fields().ByName("keychain_id") fd_MsgNewKeyRequest_key_type = md_MsgNewKeyRequest.Fields().ByName("key_type") - fd_MsgNewKeyRequest_rule_id = md_MsgNewKeyRequest.Fields().ByName("rule_id") + fd_MsgNewKeyRequest_template_id = md_MsgNewKeyRequest.Fields().ByName("template_id") fd_MsgNewKeyRequest_max_keychain_fees = md_MsgNewKeyRequest.Fields().ByName("max_keychain_fees") fd_MsgNewKeyRequest_nonce = md_MsgNewKeyRequest.Fields().ByName("nonce") } @@ -10094,9 +10094,9 @@ func (x *fastReflection_MsgNewKeyRequest) Range(f func(protoreflect.FieldDescrip return } } - if x.RuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RuleId) - if !f(fd_MsgNewKeyRequest_rule_id, value) { + if x.TemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TemplateId) + if !f(fd_MsgNewKeyRequest_template_id, value) { return } } @@ -10135,8 +10135,8 @@ func (x *fastReflection_MsgNewKeyRequest) Has(fd protoreflect.FieldDescriptor) b return x.KeychainId != uint64(0) case "warden.warden.v1beta3.MsgNewKeyRequest.key_type": return x.KeyType != 0 - case "warden.warden.v1beta3.MsgNewKeyRequest.rule_id": - return x.RuleId != uint64(0) + case "warden.warden.v1beta3.MsgNewKeyRequest.template_id": + return x.TemplateId != uint64(0) case "warden.warden.v1beta3.MsgNewKeyRequest.max_keychain_fees": return len(x.MaxKeychainFees) != 0 case "warden.warden.v1beta3.MsgNewKeyRequest.nonce": @@ -10165,8 +10165,8 @@ func (x *fastReflection_MsgNewKeyRequest) Clear(fd protoreflect.FieldDescriptor) x.KeychainId = uint64(0) case "warden.warden.v1beta3.MsgNewKeyRequest.key_type": x.KeyType = 0 - case "warden.warden.v1beta3.MsgNewKeyRequest.rule_id": - x.RuleId = uint64(0) + case "warden.warden.v1beta3.MsgNewKeyRequest.template_id": + x.TemplateId = uint64(0) case "warden.warden.v1beta3.MsgNewKeyRequest.max_keychain_fees": x.MaxKeychainFees = nil case "warden.warden.v1beta3.MsgNewKeyRequest.nonce": @@ -10199,8 +10199,8 @@ func (x *fastReflection_MsgNewKeyRequest) Get(descriptor protoreflect.FieldDescr case "warden.warden.v1beta3.MsgNewKeyRequest.key_type": value := x.KeyType return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "warden.warden.v1beta3.MsgNewKeyRequest.rule_id": - value := x.RuleId + case "warden.warden.v1beta3.MsgNewKeyRequest.template_id": + value := x.TemplateId return protoreflect.ValueOfUint64(value) case "warden.warden.v1beta3.MsgNewKeyRequest.max_keychain_fees": if len(x.MaxKeychainFees) == 0 { @@ -10239,8 +10239,8 @@ func (x *fastReflection_MsgNewKeyRequest) Set(fd protoreflect.FieldDescriptor, v x.KeychainId = value.Uint() case "warden.warden.v1beta3.MsgNewKeyRequest.key_type": x.KeyType = (KeyType)(value.Enum()) - case "warden.warden.v1beta3.MsgNewKeyRequest.rule_id": - x.RuleId = value.Uint() + case "warden.warden.v1beta3.MsgNewKeyRequest.template_id": + x.TemplateId = value.Uint() case "warden.warden.v1beta3.MsgNewKeyRequest.max_keychain_fees": lv := value.List() clv := lv.(*_MsgNewKeyRequest_6_list) @@ -10281,8 +10281,8 @@ func (x *fastReflection_MsgNewKeyRequest) Mutable(fd protoreflect.FieldDescripto panic(fmt.Errorf("field keychain_id of message warden.warden.v1beta3.MsgNewKeyRequest is not mutable")) case "warden.warden.v1beta3.MsgNewKeyRequest.key_type": panic(fmt.Errorf("field key_type of message warden.warden.v1beta3.MsgNewKeyRequest is not mutable")) - case "warden.warden.v1beta3.MsgNewKeyRequest.rule_id": - panic(fmt.Errorf("field rule_id of message warden.warden.v1beta3.MsgNewKeyRequest is not mutable")) + case "warden.warden.v1beta3.MsgNewKeyRequest.template_id": + panic(fmt.Errorf("field template_id of message warden.warden.v1beta3.MsgNewKeyRequest is not mutable")) case "warden.warden.v1beta3.MsgNewKeyRequest.nonce": panic(fmt.Errorf("field nonce of message warden.warden.v1beta3.MsgNewKeyRequest is not mutable")) default: @@ -10306,7 +10306,7 @@ func (x *fastReflection_MsgNewKeyRequest) NewField(fd protoreflect.FieldDescript return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.MsgNewKeyRequest.key_type": return protoreflect.ValueOfEnum(0) - case "warden.warden.v1beta3.MsgNewKeyRequest.rule_id": + case "warden.warden.v1beta3.MsgNewKeyRequest.template_id": return protoreflect.ValueOfUint64(uint64(0)) case "warden.warden.v1beta3.MsgNewKeyRequest.max_keychain_fees": list := []*v1beta1.Coin{} @@ -10395,8 +10395,8 @@ func (x *fastReflection_MsgNewKeyRequest) ProtoMethods() *protoiface.Methods { if x.KeyType != 0 { n += 1 + runtime.Sov(uint64(x.KeyType)) } - if x.RuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RuleId)) + if x.TemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.TemplateId)) } if len(x.MaxKeychainFees) > 0 { for _, e := range x.MaxKeychainFees { @@ -10457,8 +10457,8 @@ func (x *fastReflection_MsgNewKeyRequest) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x32 } } - if x.RuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RuleId)) + if x.TemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TemplateId)) i-- dAtA[i] = 0x28 } @@ -10624,9 +10624,9 @@ func (x *fastReflection_MsgNewKeyRequest) ProtoMethods() *protoiface.Methods { } case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - x.RuleId = 0 + x.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -10636,7 +10636,7 @@ func (x *fastReflection_MsgNewKeyRequest) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RuleId |= uint64(b&0x7F) << shift + x.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12625,12 +12625,12 @@ func (x *fastReflection_MsgFulfilKeyRequestResponse) ProtoMethods() *protoiface. } var ( - md_MsgUpdateKey protoreflect.MessageDescriptor - fd_MsgUpdateKey_authority protoreflect.FieldDescriptor - fd_MsgUpdateKey_key_id protoreflect.FieldDescriptor - fd_MsgUpdateKey_rule_id protoreflect.FieldDescriptor - fd_MsgUpdateKey_approve_rule_id protoreflect.FieldDescriptor - fd_MsgUpdateKey_reject_rule_id protoreflect.FieldDescriptor + md_MsgUpdateKey protoreflect.MessageDescriptor + fd_MsgUpdateKey_authority protoreflect.FieldDescriptor + fd_MsgUpdateKey_key_id protoreflect.FieldDescriptor + fd_MsgUpdateKey_template_id protoreflect.FieldDescriptor + fd_MsgUpdateKey_approve_template_id protoreflect.FieldDescriptor + fd_MsgUpdateKey_reject_template_id protoreflect.FieldDescriptor ) func init() { @@ -12638,9 +12638,9 @@ func init() { md_MsgUpdateKey = File_warden_warden_v1beta3_tx_proto.Messages().ByName("MsgUpdateKey") fd_MsgUpdateKey_authority = md_MsgUpdateKey.Fields().ByName("authority") fd_MsgUpdateKey_key_id = md_MsgUpdateKey.Fields().ByName("key_id") - fd_MsgUpdateKey_rule_id = md_MsgUpdateKey.Fields().ByName("rule_id") - fd_MsgUpdateKey_approve_rule_id = md_MsgUpdateKey.Fields().ByName("approve_rule_id") - fd_MsgUpdateKey_reject_rule_id = md_MsgUpdateKey.Fields().ByName("reject_rule_id") + fd_MsgUpdateKey_template_id = md_MsgUpdateKey.Fields().ByName("template_id") + fd_MsgUpdateKey_approve_template_id = md_MsgUpdateKey.Fields().ByName("approve_template_id") + fd_MsgUpdateKey_reject_template_id = md_MsgUpdateKey.Fields().ByName("reject_template_id") } var _ protoreflect.Message = (*fastReflection_MsgUpdateKey)(nil) @@ -12720,21 +12720,21 @@ func (x *fastReflection_MsgUpdateKey) Range(f func(protoreflect.FieldDescriptor, return } } - if x.RuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RuleId) - if !f(fd_MsgUpdateKey_rule_id, value) { + if x.TemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TemplateId) + if !f(fd_MsgUpdateKey_template_id, value) { return } } - if x.ApproveRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ApproveRuleId) - if !f(fd_MsgUpdateKey_approve_rule_id, value) { + if x.ApproveTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ApproveTemplateId) + if !f(fd_MsgUpdateKey_approve_template_id, value) { return } } - if x.RejectRuleId != uint64(0) { - value := protoreflect.ValueOfUint64(x.RejectRuleId) - if !f(fd_MsgUpdateKey_reject_rule_id, value) { + if x.RejectTemplateId != uint64(0) { + value := protoreflect.ValueOfUint64(x.RejectTemplateId) + if !f(fd_MsgUpdateKey_reject_template_id, value) { return } } @@ -12757,12 +12757,12 @@ func (x *fastReflection_MsgUpdateKey) Has(fd protoreflect.FieldDescriptor) bool return x.Authority != "" case "warden.warden.v1beta3.MsgUpdateKey.key_id": return x.KeyId != uint64(0) - case "warden.warden.v1beta3.MsgUpdateKey.rule_id": - return x.RuleId != uint64(0) - case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": - return x.ApproveRuleId != uint64(0) - case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": - return x.RejectRuleId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateKey.template_id": + return x.TemplateId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateKey.approve_template_id": + return x.ApproveTemplateId != uint64(0) + case "warden.warden.v1beta3.MsgUpdateKey.reject_template_id": + return x.RejectTemplateId != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateKey")) @@ -12783,12 +12783,12 @@ func (x *fastReflection_MsgUpdateKey) Clear(fd protoreflect.FieldDescriptor) { x.Authority = "" case "warden.warden.v1beta3.MsgUpdateKey.key_id": x.KeyId = uint64(0) - case "warden.warden.v1beta3.MsgUpdateKey.rule_id": - x.RuleId = uint64(0) - case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": - x.ApproveRuleId = uint64(0) - case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": - x.RejectRuleId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateKey.template_id": + x.TemplateId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateKey.approve_template_id": + x.ApproveTemplateId = uint64(0) + case "warden.warden.v1beta3.MsgUpdateKey.reject_template_id": + x.RejectTemplateId = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateKey")) @@ -12811,14 +12811,14 @@ func (x *fastReflection_MsgUpdateKey) Get(descriptor protoreflect.FieldDescripto case "warden.warden.v1beta3.MsgUpdateKey.key_id": value := x.KeyId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.MsgUpdateKey.rule_id": - value := x.RuleId + case "warden.warden.v1beta3.MsgUpdateKey.template_id": + value := x.TemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": - value := x.ApproveRuleId + case "warden.warden.v1beta3.MsgUpdateKey.approve_template_id": + value := x.ApproveTemplateId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": - value := x.RejectRuleId + case "warden.warden.v1beta3.MsgUpdateKey.reject_template_id": + value := x.RejectTemplateId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { @@ -12844,12 +12844,12 @@ func (x *fastReflection_MsgUpdateKey) Set(fd protoreflect.FieldDescriptor, value x.Authority = value.Interface().(string) case "warden.warden.v1beta3.MsgUpdateKey.key_id": x.KeyId = value.Uint() - case "warden.warden.v1beta3.MsgUpdateKey.rule_id": - x.RuleId = value.Uint() - case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": - x.ApproveRuleId = value.Uint() - case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": - x.RejectRuleId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateKey.template_id": + x.TemplateId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateKey.approve_template_id": + x.ApproveTemplateId = value.Uint() + case "warden.warden.v1beta3.MsgUpdateKey.reject_template_id": + x.RejectTemplateId = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateKey")) @@ -12874,12 +12874,12 @@ func (x *fastReflection_MsgUpdateKey) Mutable(fd protoreflect.FieldDescriptor) p panic(fmt.Errorf("field authority of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) case "warden.warden.v1beta3.MsgUpdateKey.key_id": panic(fmt.Errorf("field key_id of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) - case "warden.warden.v1beta3.MsgUpdateKey.rule_id": - panic(fmt.Errorf("field rule_id of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) - case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": - panic(fmt.Errorf("field approve_rule_id of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) - case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": - panic(fmt.Errorf("field reject_rule_id of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) + case "warden.warden.v1beta3.MsgUpdateKey.template_id": + panic(fmt.Errorf("field template_id of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) + case "warden.warden.v1beta3.MsgUpdateKey.approve_template_id": + panic(fmt.Errorf("field approve_template_id of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) + case "warden.warden.v1beta3.MsgUpdateKey.reject_template_id": + panic(fmt.Errorf("field reject_template_id of message warden.warden.v1beta3.MsgUpdateKey is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta3.MsgUpdateKey")) @@ -12897,11 +12897,11 @@ func (x *fastReflection_MsgUpdateKey) NewField(fd protoreflect.FieldDescriptor) return protoreflect.ValueOfString("") case "warden.warden.v1beta3.MsgUpdateKey.key_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.MsgUpdateKey.rule_id": + case "warden.warden.v1beta3.MsgUpdateKey.template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.MsgUpdateKey.approve_rule_id": + case "warden.warden.v1beta3.MsgUpdateKey.approve_template_id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta3.MsgUpdateKey.reject_rule_id": + case "warden.warden.v1beta3.MsgUpdateKey.reject_template_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -12979,14 +12979,14 @@ func (x *fastReflection_MsgUpdateKey) ProtoMethods() *protoiface.Methods { if x.KeyId != 0 { n += 1 + runtime.Sov(uint64(x.KeyId)) } - if x.RuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RuleId)) + if x.TemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.TemplateId)) } - if x.ApproveRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.ApproveRuleId)) + if x.ApproveTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.ApproveTemplateId)) } - if x.RejectRuleId != 0 { - n += 1 + runtime.Sov(uint64(x.RejectRuleId)) + if x.RejectTemplateId != 0 { + n += 1 + runtime.Sov(uint64(x.RejectTemplateId)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -13017,18 +13017,18 @@ func (x *fastReflection_MsgUpdateKey) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.RejectRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectRuleId)) + if x.RejectTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RejectTemplateId)) i-- dAtA[i] = 0x28 } - if x.ApproveRuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveRuleId)) + if x.ApproveTemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ApproveTemplateId)) i-- dAtA[i] = 0x20 } - if x.RuleId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RuleId)) + if x.TemplateId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TemplateId)) i-- dAtA[i] = 0x18 } @@ -13146,9 +13146,9 @@ func (x *fastReflection_MsgUpdateKey) 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 RuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - x.RuleId = 0 + x.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -13158,16 +13158,16 @@ func (x *fastReflection_MsgUpdateKey) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RuleId |= uint64(b&0x7F) << shift + x.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveTemplateId", wireType) } - x.ApproveRuleId = 0 + x.ApproveTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -13177,16 +13177,16 @@ func (x *fastReflection_MsgUpdateKey) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.ApproveRuleId |= uint64(b&0x7F) << shift + x.ApproveTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectTemplateId", wireType) } - x.RejectRuleId = 0 + x.RejectTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -13196,7 +13196,7 @@ func (x *fastReflection_MsgUpdateKey) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.RejectRuleId |= uint64(b&0x7F) << shift + x.RejectTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -16492,8 +16492,8 @@ type MsgNewSpace struct { unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - AdminRuleId uint64 `protobuf:"varint,2,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - SignRuleId uint64 `protobuf:"varint,3,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` + AdminTemplateId uint64 `protobuf:"varint,2,opt,name=admin_template_id,json=adminTemplateId,proto3" json:"admin_template_id,omitempty"` + SignTemplateId uint64 `protobuf:"varint,3,opt,name=sign_template_id,json=signTemplateId,proto3" json:"sign_template_id,omitempty"` AdditionalOwners []string `protobuf:"bytes,4,rep,name=additional_owners,json=additionalOwners,proto3" json:"additional_owners,omitempty"` } @@ -16524,16 +16524,16 @@ func (x *MsgNewSpace) GetCreator() string { return "" } -func (x *MsgNewSpace) GetAdminRuleId() uint64 { +func (x *MsgNewSpace) GetAdminTemplateId() uint64 { if x != nil { - return x.AdminRuleId + return x.AdminTemplateId } return 0 } -func (x *MsgNewSpace) GetSignRuleId() uint64 { +func (x *MsgNewSpace) GetSignTemplateId() uint64 { if x != nil { - return x.SignRuleId + return x.SignTemplateId } return 0 } @@ -16942,15 +16942,15 @@ type MsgUpdateSpace struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` - AdminRuleId uint64 `protobuf:"varint,3,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - SignRuleId uint64 `protobuf:"varint,4,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` - Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"` - ApproveAdminRuleId uint64 `protobuf:"varint,6,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` - RejectAdminRuleId uint64 `protobuf:"varint,7,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` - ApproveSignRuleId uint64 `protobuf:"varint,8,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` - RejectSignRuleId uint64 `protobuf:"varint,9,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` + AdminTemplateId uint64 `protobuf:"varint,3,opt,name=admin_template_id,json=adminTemplateId,proto3" json:"admin_template_id,omitempty"` + SignTemplateId uint64 `protobuf:"varint,4,opt,name=sign_template_id,json=signTemplateId,proto3" json:"sign_template_id,omitempty"` + Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"` + ApproveAdminTemplateId uint64 `protobuf:"varint,6,opt,name=approve_admin_template_id,json=approveAdminTemplateId,proto3" json:"approve_admin_template_id,omitempty"` + RejectAdminTemplateId uint64 `protobuf:"varint,7,opt,name=reject_admin_template_id,json=rejectAdminTemplateId,proto3" json:"reject_admin_template_id,omitempty"` + ApproveSignTemplateId uint64 `protobuf:"varint,8,opt,name=approve_sign_template_id,json=approveSignTemplateId,proto3" json:"approve_sign_template_id,omitempty"` + RejectSignTemplateId uint64 `protobuf:"varint,9,opt,name=reject_sign_template_id,json=rejectSignTemplateId,proto3" json:"reject_sign_template_id,omitempty"` } func (x *MsgUpdateSpace) Reset() { @@ -16987,16 +16987,16 @@ func (x *MsgUpdateSpace) GetSpaceId() uint64 { return 0 } -func (x *MsgUpdateSpace) GetAdminRuleId() uint64 { +func (x *MsgUpdateSpace) GetAdminTemplateId() uint64 { if x != nil { - return x.AdminRuleId + return x.AdminTemplateId } return 0 } -func (x *MsgUpdateSpace) GetSignRuleId() uint64 { +func (x *MsgUpdateSpace) GetSignTemplateId() uint64 { if x != nil { - return x.SignRuleId + return x.SignTemplateId } return 0 } @@ -17008,30 +17008,30 @@ func (x *MsgUpdateSpace) GetNonce() uint64 { return 0 } -func (x *MsgUpdateSpace) GetApproveAdminRuleId() uint64 { +func (x *MsgUpdateSpace) GetApproveAdminTemplateId() uint64 { if x != nil { - return x.ApproveAdminRuleId + return x.ApproveAdminTemplateId } return 0 } -func (x *MsgUpdateSpace) GetRejectAdminRuleId() uint64 { +func (x *MsgUpdateSpace) GetRejectAdminTemplateId() uint64 { if x != nil { - return x.RejectAdminRuleId + return x.RejectAdminTemplateId } return 0 } -func (x *MsgUpdateSpace) GetApproveSignRuleId() uint64 { +func (x *MsgUpdateSpace) GetApproveSignTemplateId() uint64 { if x != nil { - return x.ApproveSignRuleId + return x.ApproveSignTemplateId } return 0 } -func (x *MsgUpdateSpace) GetRejectSignRuleId() uint64 { +func (x *MsgUpdateSpace) GetRejectSignTemplateId() uint64 { if x != nil { - return x.RejectSignRuleId + return x.RejectSignTemplateId } return 0 } @@ -17334,7 +17334,7 @@ type MsgNewKeyRequest struct { SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` KeychainId uint64 `protobuf:"varint,3,opt,name=keychain_id,json=keychainId,proto3" json:"keychain_id,omitempty"` KeyType KeyType `protobuf:"varint,4,opt,name=key_type,json=keyType,proto3,enum=warden.warden.v1beta3.KeyType" json:"key_type,omitempty"` - RuleId uint64 `protobuf:"varint,5,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + TemplateId uint64 `protobuf:"varint,5,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` MaxKeychainFees []*v1beta1.Coin `protobuf:"bytes,6,rep,name=max_keychain_fees,json=maxKeychainFees,proto3" json:"max_keychain_fees,omitempty"` Nonce uint64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` } @@ -17387,9 +17387,9 @@ func (x *MsgNewKeyRequest) GetKeyType() KeyType { return KeyType_KEY_TYPE_UNSPECIFIED } -func (x *MsgNewKeyRequest) GetRuleId() uint64 { +func (x *MsgNewKeyRequest) GetTemplateId() uint64 { if x != nil { - return x.RuleId + return x.TemplateId } return 0 } @@ -17602,11 +17602,11 @@ type MsgUpdateKey struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - KeyId uint64 `protobuf:"varint,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - RuleId uint64 `protobuf:"varint,3,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` - ApproveRuleId uint64 `protobuf:"varint,4,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` - RejectRuleId uint64 `protobuf:"varint,5,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + KeyId uint64 `protobuf:"varint,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + TemplateId uint64 `protobuf:"varint,3,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + ApproveTemplateId uint64 `protobuf:"varint,4,opt,name=approve_template_id,json=approveTemplateId,proto3" json:"approve_template_id,omitempty"` + RejectTemplateId uint64 `protobuf:"varint,5,opt,name=reject_template_id,json=rejectTemplateId,proto3" json:"reject_template_id,omitempty"` } func (x *MsgUpdateKey) Reset() { @@ -17643,23 +17643,23 @@ func (x *MsgUpdateKey) GetKeyId() uint64 { return 0 } -func (x *MsgUpdateKey) GetRuleId() uint64 { +func (x *MsgUpdateKey) GetTemplateId() uint64 { if x != nil { - return x.RuleId + return x.TemplateId } return 0 } -func (x *MsgUpdateKey) GetApproveRuleId() uint64 { +func (x *MsgUpdateKey) GetApproveTemplateId() uint64 { if x != nil { - return x.ApproveRuleId + return x.ApproveTemplateId } return 0 } -func (x *MsgUpdateKey) GetRejectRuleId() uint64 { +func (x *MsgUpdateKey) GetRejectTemplateId() uint64 { if x != nil { - return x.RejectRuleId + return x.RejectTemplateId } return 0 } @@ -18004,14 +18004,15 @@ var file_warden_warden_v1beta3_tx_proto_rawDesc = []byte{ 0xe7, 0xb0, 0x2a, 0x1f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x78, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa8, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0c, - 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2b, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, + 0x73, 0x69, 0x67, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, @@ -18067,29 +18068,32 @@ var file_warden_warden_v1beta3_tx_proto_rawDesc = []byte{ 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf9, 0x02, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa9, 0x03, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, - 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, - 0x6c, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x75, 0x6c, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, - 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x31, 0x0a, 0x15, - 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, - 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x61, 0x70, 0x70, - 0x72, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, - 0x2f, 0x0a, 0x14, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, - 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, - 0x65, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, - 0x12, 0x2f, 0x0a, 0x14, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, - 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, - 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, - 0x64, 0x12, 0x2d, 0x0a, 0x13, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x6e, - 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, - 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, + 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, + 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x19, + 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x16, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x18, 0x72, 0x65, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x72, 0x65, 0x6a, 0x65, 0x63, + 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, + 0x12, 0x37, 0x0a, 0x18, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, + 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x15, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x54, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x17, 0x72, 0x65, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x72, 0x65, 0x6a, 0x65, + 0x63, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x99, 0x02, 0x0a, 0x11, 0x4d, @@ -18136,7 +18140,7 @@ var file_warden_warden_v1beta3_tx_proto_rawDesc = []byte{ 0x67, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf6, 0x02, 0x0a, 0x10, 0x4d, + 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xfe, 0x02, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x19, 0x0a, @@ -18147,54 +18151,56 @@ var file_warden_warden_v1beta3_tx_proto_rawDesc = []byte{ 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x8d, 0x01, - 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x5f, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, - 0x65, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x46, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x9a, 0xe7, 0xb0, 0x2a, 0x0c, 0x6c, 0x65, 0x67, 0x61, 0x63, - 0x79, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x6d, 0x61, - 0x78, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x14, 0x0a, - 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, - 0x6e, 0x63, 0x65, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x22, 0x2a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x2a, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x84, 0x02, 0x0a, 0x13, - 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, - 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x77, - 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0d, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, - 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, - 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0xba, 0x01, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, - 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, - 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x75, 0x6c, 0x65, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x72, 0x6f, - 0x76, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x72, 0x65, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x3a, 0x0e, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x8d, 0x01, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x5f, 0x6b, 0x65, + 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x46, 0xc8, 0xde, + 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, + 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x9a, 0xe7, + 0xb0, 0x2a, 0x0c, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, + 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x2a, 0x0a, 0x18, 0x4d, + 0x73, 0x67, 0x4e, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x4e, 0x65, + 0x77, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x4b, 0x65, 0x79, 0x22, 0x84, 0x02, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, + 0x6c, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4b, 0x65, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x4d, 0x73, 0x67, 0x4e, 0x65, + 0x77, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0d, 0x72, + 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, + 0x67, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x0c, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, + 0x1f, 0x0a, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, + 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x74, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x61, + 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, + 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x72, 0x65, + 0x6a, 0x65, 0x63, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf3, 0x02, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x4e, 0x65, diff --git a/cmd/wardend/cmd/gen-spaces.go b/cmd/wardend/cmd/gen-spaces.go index 1d2727956..f796e8642 100644 --- a/cmd/wardend/cmd/gen-spaces.go +++ b/cmd/wardend/cmd/gen-spaces.go @@ -31,12 +31,12 @@ func AddGenesisSpaceCmd(defaultNodeHome string) *cobra.Command { wardenGenState := wardentypes.GetGenesisStateFromAppState(cdc, appState) wardenGenState.Spaces = append(wardenGenState.Spaces, wardentypes.Space{ - Id: 1 + uint64(len(wardenGenState.Spaces)), - Creator: creator, - Owners: []string{creator}, - AdminRuleId: 0, - SignRuleId: 0, - Nonce: 0, + Id: 1 + uint64(len(wardenGenState.Spaces)), + Creator: creator, + Owners: []string{creator}, + AdminTemplateId: 0, + SignTemplateId: 0, + Nonce: 0, }) wardenGenStateBz, err := cdc.MarshalJSON(wardenGenState) diff --git a/docs/help-center/.spelling b/docs/help-center/.spelling index 1a18c4217..dbeffd879 100644 --- a/docs/help-center/.spelling +++ b/docs/help-center/.spelling @@ -219,8 +219,8 @@ Tendermint struct preprocessing preprocessor -MsgNewRule -MsgUpdateRule +MsgNewTemplate +MsgUpdateTemplate MsgNewAction MsgApproveAction MsgRevokeAction diff --git a/proto/warden/act/v1beta1/action.proto b/proto/warden/act/v1beta1/action.proto index deac379da..7e2a31aaf 100644 --- a/proto/warden/act/v1beta1/action.proto +++ b/proto/warden/act/v1beta1/action.proto @@ -6,7 +6,7 @@ import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; import "google/protobuf/timestamp.proto"; import "shield/ast/ast.proto"; -import "warden/act/v1beta1/rule.proto"; +import "warden/act/v1beta1/template.proto"; import "warden/act/v1beta1/action_vote.proto"; option go_package = "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1"; @@ -19,14 +19,14 @@ message Approver { [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; } -// Action wraps a message that will be executed when its associated rule is +// Action wraps a message that will be executed when its associated template is // satisfied. message Action { uint64 id = 1; repeated Approver approvers = 2; ActionStatus status = 3; // Original message that started the action, it will be executed when the - // rule is satisfied. + // template is satisfied. google.protobuf.Any msg = 5; // Result of the action, it will be set when the action is completed. google.protobuf.Any result = 6; @@ -39,11 +39,11 @@ message Action { // updated_at is a timestamp specifying when the action's status was updated google.protobuf.Timestamp updated_at = 10 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; - // rule is the condition that this action is associated with. Instead of - // storing the rule ID, we store the entire Rule object so that is immutable + // template is the condition that this action is associated with. Instead of + // storing the template ID, we store the entire Template object so that is immutable // and cannot be changed later. - warden.act.v1beta1.Rule rule = 11 [(gogoproto.nullable) = false]; - // mentions is a list of addresses that are mentioned in the rule. + warden.act.v1beta1.Template template = 11 [(gogoproto.nullable) = false]; + // mentions is a list of addresses that are mentioned in the template. repeated string mentions = 12; // The expression to be evaluated for approval. .shield.ast.Expression approve_expression = 13 [(gogoproto.nullable) = false]; @@ -61,7 +61,7 @@ enum ActionStatus { // Action is pending approval. This is the initial status. ACTION_STATUS_PENDING = 1; - // Rule has been satified, action has been executed. + // Template has been satified, action has been executed. ACTION_STATUS_COMPLETED = 2; // Action has been revoked by its creator. diff --git a/proto/warden/act/v1beta1/events.proto b/proto/warden/act/v1beta1/events.proto index 0d971b5f0..820f687b1 100644 --- a/proto/warden/act/v1beta1/events.proto +++ b/proto/warden/act/v1beta1/events.proto @@ -7,8 +7,8 @@ import "warden/act/v1beta1/action_vote.proto"; option go_package = "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1"; -// EventCreateRule is emitted on Rule creation -message EventCreateRule { +// EventCreateTemplate is emitted on Template creation +message EventCreateTemplate { // id of the new intent uint64 id = 1; @@ -16,8 +16,8 @@ message EventCreateRule { string creator = 2; } -// EventUpdateRule is emitted when Rule is updated -message EventUpdateRule { +// EventUpdateTemplate is emitted when Template is updated +message EventUpdateTemplate { // id of updated intent uint64 id = 1; } diff --git a/proto/warden/act/v1beta1/genesis.proto b/proto/warden/act/v1beta1/genesis.proto index 984c6b150..34e743e0c 100644 --- a/proto/warden/act/v1beta1/genesis.proto +++ b/proto/warden/act/v1beta1/genesis.proto @@ -5,7 +5,7 @@ import "amino/amino.proto"; import "gogoproto/gogo.proto"; import "warden/act/v1beta1/params.proto"; import "warden/act/v1beta1/action.proto"; -import "warden/act/v1beta1/rule.proto"; +import "warden/act/v1beta1/template.proto"; option go_package = "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1"; @@ -18,5 +18,5 @@ message GenesisState { ]; repeated Action actions = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - repeated Rule rules = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + repeated Template templates = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } diff --git a/proto/warden/act/v1beta1/query.proto b/proto/warden/act/v1beta1/query.proto index 7594a4e50..521825407 100644 --- a/proto/warden/act/v1beta1/query.proto +++ b/proto/warden/act/v1beta1/query.proto @@ -8,7 +8,7 @@ import "google/protobuf/any.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "warden/act/v1beta1/params.proto"; import "warden/act/v1beta1/action.proto"; -import "warden/act/v1beta1/rule.proto"; +import "warden/act/v1beta1/template.proto"; option go_package = "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1"; @@ -24,19 +24,19 @@ service Query { option (google.api.http).get = "/wardenprotocol/warden/act/actions"; } - // Queries a list of Rules items. - rpc Rules(QueryRulesRequest) returns (QueryRulesResponse) { - option (google.api.http).get = "/wardenprotocol/warden/act/rules"; + // Queries a list of Templates items. + rpc Templates(QueryTemplatesRequest) returns (QueryTemplatesResponse) { + option (google.api.http).get = "/wardenprotocol/warden/act/templates"; } - // Queries to simulate a Rule - rpc SimulateRule(QuerySimulateRuleRequest) returns (QuerySimulateRuleResponse) { + // Queries to simulate a Template + rpc SimulateTemplate(QuerySimulateTemplateRequest) returns (QuerySimulateTemplateResponse) { option (google.api.http).get = "/wardenprotocol/warden/act/simulate"; } - // Queries a list of RuleById items. - rpc RuleById(QueryRuleByIdRequest) returns (QueryRuleByIdResponse) { - option (google.api.http).get = "/wardenprotocol/warden/act/rule_by_id"; + // Queries a list of TemplateById items. + rpc TemplateById(QueryTemplateByIdRequest) returns (QueryTemplateByIdResponse) { + option (google.api.http).get = "/wardenprotocol/warden/act/template_by_id"; } // Queries a list of Actions items by one participant address. @@ -70,27 +70,27 @@ message QueryActionsResponse { repeated Action actions = 2 [ (gogoproto.nullable) = false ]; } -message QueryRulesRequest { +message QueryTemplatesRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryRulesResponse { +message QueryTemplatesResponse { cosmos.base.query.v1beta1.PageResponse pagination = 1; - repeated Rule rules = 2 [ (gogoproto.nullable) = false ]; + repeated Template templates = 2 [ (gogoproto.nullable) = false ]; } -message QuerySimulateRuleRequest { +message QuerySimulateTemplateRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; string definition = 2; } -message QuerySimulateRuleResponse { +message QuerySimulateTemplateResponse { string evaluation = 1; } -message QueryRuleByIdRequest { uint64 id = 1; } +message QueryTemplateByIdRequest { uint64 id = 1; } -message QueryRuleByIdResponse { Rule rule = 1; } +message QueryTemplateByIdResponse { Template template = 1; } message QueryActionsByAddressRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; diff --git a/proto/warden/act/v1beta1/rule.proto b/proto/warden/act/v1beta1/template.proto similarity index 80% rename from proto/warden/act/v1beta1/rule.proto rename to proto/warden/act/v1beta1/template.proto index 37fb613ab..e81f0b780 100644 --- a/proto/warden/act/v1beta1/rule.proto +++ b/proto/warden/act/v1beta1/template.proto @@ -6,11 +6,11 @@ import "shield/ast/ast.proto"; option go_package = "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1"; -message Rule { +message Template { uint64 id = 1; string creator = 2; string name = 3; - // The expression to be evaluated for this rule. + // The expression to be evaluated for this template. .shield.ast.Expression expression = 4; } diff --git a/proto/warden/act/v1beta1/tx.proto b/proto/warden/act/v1beta1/tx.proto index b7dbc5fd1..937d7e0a4 100644 --- a/proto/warden/act/v1beta1/tx.proto +++ b/proto/warden/act/v1beta1/tx.proto @@ -30,11 +30,11 @@ service Msg { // Checks a pending action and executes it if its in a valid state. rpc CheckAction (MsgCheckAction) returns (MsgCheckActionResponse); - // Create a new Rule. - rpc NewRule (MsgNewRule) returns (MsgNewRuleResponse); + // Create a new Template. + rpc NewTemplate (MsgNewTemplate) returns (MsgNewTemplateResponse); // Update an existing act name and definition. - rpc UpdateRule (MsgUpdateRule) returns (MsgUpdateRuleResponse); + rpc UpdateTemplate (MsgUpdateTemplate) returns (MsgUpdateTemplateResponse); // Revoke an existing Action while in pending state. rpc RevokeAction (MsgRevokeAction) returns (MsgRevokeActionResponse); @@ -90,18 +90,18 @@ message MsgApproveActionResponse { string status = 1; } -message MsgNewRule { +message MsgNewTemplate { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string name = 2; string definition = 3; } -message MsgNewRuleResponse { +message MsgNewTemplateResponse { uint64 id = 1; } -message MsgUpdateRule { +message MsgUpdateTemplate { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; uint64 id = 2; @@ -109,7 +109,7 @@ message MsgUpdateRule { string definition = 4; } -message MsgUpdateRuleResponse {} +message MsgUpdateTemplateResponse {} message MsgRevokeAction { option (cosmos.msg.v1.signer) = "creator"; diff --git a/proto/warden/warden/v1beta3/events.proto b/proto/warden/warden/v1beta3/events.proto index ba363f938..5ddf6c4b7 100644 --- a/proto/warden/warden/v1beta3/events.proto +++ b/proto/warden/warden/v1beta3/events.proto @@ -19,11 +19,11 @@ message EventCreateSpace { // owners_count is the count of the space owners uint64 owners_count = 3; - // id of the rule to be applied to every admin operation - uint64 admin_rule_id = 4; + // id of the template to be applied to every admin operation + uint64 admin_template_id = 4; - // id of the rule to be applied to every sign operation - uint64 sign_rule_id = 5; + // id of the template to be applied to every sign operation + uint64 sign_template_id = 5; } // EventUpdateSpace is emitted when Space is updated @@ -31,23 +31,23 @@ message EventUpdateSpace { // id of the space being updated uint64 space_id = 1; - // id of the rule to be applied to every admin operation - uint64 admin_rule_id = 2; + // id of the template to be applied to every admin operation + uint64 admin_template_id = 2; - // id of the rule to be applied to every sign operation - uint64 sign_rule_id = 3; + // id of the template to be applied to every sign operation + uint64 sign_template_id = 3; - // id of the rule to be applied to every approve admin operation - uint64 approve_admin_rule_id = 4; + // id of the template to be applied to every approve admin operation + uint64 approve_admin_template_id = 4; - // id of the rule to be applied to every reject admin operation - uint64 reject_admin_rule_id = 5; + // id of the template to be applied to every reject admin operation + uint64 reject_admin_template_id = 5; - // id of the rule to be applied to every approve sign operation - uint64 approve_sign_rule_id = 6; + // id of the template to be applied to every approve sign operation + uint64 approve_sign_template_id = 6; - // id of the rule to be applied to every reject sign operation - uint64 reject_sign_rule_id = 7; + // id of the template to be applied to every reject sign operation + uint64 reject_sign_template_id = 7; } // EventAddSpaceOwner is emitted when a new owner is added @@ -85,8 +85,8 @@ message EventNewKeyRequest { // keychain_id associated with the key request uint64 keychain_id = 3; - // id of the rule to be applied to every sign operation for this key - uint64 rule_id = 4; + // id of the template to be applied to every sign operation for this key + uint64 template_id = 4; // the crypto scheme requested for this key KeyType key_type = 5; @@ -109,8 +109,8 @@ message EventNewKey { // keychain_id associated with the key request uint64 keychain_id = 4; - // id of the rule to be applied to every sign operation for this key - uint64 rule_id = 5; + // id of the template to be applied to every sign operation for this key + uint64 template_id = 5; } // EventRejectKeyRequest is emitted when a Key request is rejected @@ -124,14 +124,14 @@ message EventUpdateKey { // id of the key uint64 id = 1; - // id of the rule to be applied to every sign operation - uint64 rule_id = 2; + // id of the template to be applied to every sign operation + uint64 template_id = 2; - // id of the rule to be applied to every approve sign operation - uint64 approve_rule_id = 3; + // id of the template to be applied to every approve sign operation + uint64 approve_template_id = 3; - // id of the rule to be applied to every reject sign operation - uint64 reject_rule_id = 4; + // id of the template to be applied to every reject sign operation + uint64 reject_template_id = 4; } // EventNewSignRequest is emitted on new signature requests diff --git a/proto/warden/warden/v1beta3/key.proto b/proto/warden/warden/v1beta3/key.proto index 90bcec112..852035043 100644 --- a/proto/warden/warden/v1beta3/key.proto +++ b/proto/warden/warden/v1beta3/key.proto @@ -56,8 +56,8 @@ message KeyRequest { // If the request is rejected, this field will contain the reason. string reject_reason = 7; - // ID of the Rule that the resulting Key will use. - uint64 rule_id = 8; + // ID of the Template that the resulting Key will use. + uint64 template_id = 8; // Amount of fees deducted during new key request repeated cosmos.base.v1beta1.Coin deducted_keychain_fees = 9 [ @@ -98,20 +98,20 @@ message Key { // generated it. bytes public_key = 5; - // ID of the Rule that will need to be satisfied for using this key to sign + // ID of the Template that will need to be satisfied for using this key to sign // data. - // If this is not set, the key will use the signing Rule of the Space. - uint64 rule_id = 6; + // If this is not set, the key will use the signing Template of the Space. + uint64 template_id = 6; - // ID of the Rule that will need to be satisfied for using this key to sign + // ID of the Template that will need to be satisfied for using this key to sign // data. - // If this is not set, the key will use the approve signing Rule of the Space. - uint64 approve_rule_id = 7; + // If this is not set, the key will use the approve signing Template of the Space. + uint64 approve_template_id = 7; - // ID of the Rule that will need to be satisfied for rejecting using this key to sign + // ID of the Template that will need to be satisfied for rejecting using this key to sign // data. - // If this is not set, the key will use the reject signing Rule of the Space. - uint64 reject_rule_id = 8; + // If this is not set, the key will use the reject signing Template of the Space. + uint64 reject_template_id = 8; } enum AddressType { diff --git a/proto/warden/warden/v1beta3/space.proto b/proto/warden/warden/v1beta3/space.proto index a566c3fcc..4011862ca 100644 --- a/proto/warden/warden/v1beta3/space.proto +++ b/proto/warden/warden/v1beta3/space.proto @@ -14,79 +14,79 @@ message Space { // List of owners of the space. repeated string owners = 3; - // Optional ID of the Rule to be applied to every *admin* operation. - // If not specified, the default Rule is used. + // Optional ID of the Template to be applied to every *admin* operation. + // If not specified, the default Template is used. // // Admin operations are: // - warden.warden.Msg.AddSpaceOwner // - warden.warden.Msg.RemoveSpaceOwner // - warden.warden.Msg.UpdateSpace // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - uint64 admin_rule_id = 5; + uint64 admin_template_id = 5; - // Optional ID of the Rule to be applied to every *sign* operation. - // If not specified, the default Rule is used. + // Optional ID of the Template to be applied to every *sign* operation. + // If not specified, the default Template is used. // // Sign operations are: // - warden.warden.Msg.NewKeyRequest // - warden.warden.Msg.NewSignRequest // - warden.warden.Msg.UpdateKey // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - uint64 sign_rule_id = 6; + uint64 sign_template_id = 6; // Version of the space. Every time the Space is updated, this number gets increasead by one. uint64 nonce = 7; - // Optional ID of the Rule to be applied to every approve vote on *admin* operation. - // If not specified, the default Rule is used. + // Optional ID of the Template to be applied to every approve vote on *admin* operation. + // If not specified, the default Template is used. // // Admin operations are: // - warden.warden.Msg.AddSpaceOwner // - warden.warden.Msg.RemoveSpaceOwner // - warden.warden.Msg.UpdateSpace // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - uint64 approve_admin_rule_id = 8; + uint64 approve_admin_template_id = 8; - // Optional ID of the Rule to be applied to every reject vote on *admin* operation. - // If not specified, the default Rule is used. + // Optional ID of the Template to be applied to every reject vote on *admin* operation. + // If not specified, the default Template is used. // // Admin operations are: // - warden.warden.Msg.AddSpaceOwner // - warden.warden.Msg.RemoveSpaceOwner // - warden.warden.Msg.UpdateSpace // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - uint64 reject_admin_rule_id = 9; + uint64 reject_admin_template_id = 9; - // Optional ID of the Rule to be applied to every approve vote on *sign* operation. - // If not specified, the default Rule is used. + // Optional ID of the Template to be applied to every approve vote on *sign* operation. + // If not specified, the default Template is used. // // Sign operations are: // - warden.warden.Msg.NewKeyRequest // - warden.warden.Msg.NewSignRequest // - warden.warden.Msg.UpdateKey // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - uint64 approve_sign_rule_id = 10; + uint64 approve_sign_template_id = 10; - // Optional ID of the Rule to be applied to every reject vote on *sign* operation. - // If not specified, the default Rule is used. + // Optional ID of the Template to be applied to every reject vote on *sign* operation. + // If not specified, the default Template is used. // // Sign operations are: // - warden.warden.Msg.NewKeyRequest // - warden.warden.Msg.NewSignRequest // - warden.warden.Msg.UpdateKey // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - uint64 reject_sign_rule_id = 11; + uint64 reject_sign_template_id = 11; } diff --git a/proto/warden/warden/v1beta3/tx.proto b/proto/warden/warden/v1beta3/tx.proto index 52b73eea1..759646093 100644 --- a/proto/warden/warden/v1beta3/tx.proto +++ b/proto/warden/warden/v1beta3/tx.proto @@ -89,8 +89,8 @@ message MsgUpdateParamsResponse {} message MsgNewSpace { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; - uint64 admin_rule_id = 2; - uint64 sign_rule_id = 3; + uint64 admin_template_id = 2; + uint64 sign_template_id = 3; repeated string additional_owners = 4; } @@ -142,13 +142,13 @@ message MsgUpdateSpace { option (cosmos.msg.v1.signer) = "authority"; string authority = 1; uint64 space_id = 2; - uint64 admin_rule_id = 3; - uint64 sign_rule_id = 4; + uint64 admin_template_id = 3; + uint64 sign_template_id = 4; uint64 nonce = 5; - uint64 approve_admin_rule_id = 6; - uint64 reject_admin_rule_id = 7; - uint64 approve_sign_rule_id = 8; - uint64 reject_sign_rule_id = 9; + uint64 approve_admin_template_id = 6; + uint64 reject_admin_template_id = 7; + uint64 approve_sign_template_id = 8; + uint64 reject_sign_template_id = 9; } message MsgUpdateSpaceResponse {} @@ -191,7 +191,7 @@ message MsgNewKeyRequest { uint64 space_id = 2; uint64 keychain_id = 3; KeyType key_type = 4; - uint64 rule_id = 5; + uint64 template_id = 5; repeated cosmos.base.v1beta1.Coin max_keychain_fees = 6 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", @@ -223,9 +223,9 @@ message MsgUpdateKey { option (cosmos.msg.v1.signer) = "authority"; string authority = 1; uint64 key_id = 2; - uint64 rule_id = 3; - uint64 approve_rule_id = 4; - uint64 reject_rule_id = 5; + uint64 template_id = 3; + uint64 approve_template_id = 4; + uint64 reject_template_id = 5; } message MsgUpdateKeyResponse {} diff --git a/tests/cases/approve_any_3_action.go b/tests/cases/approve_any_3_action.go index 2d8ff3501..55a358d12 100644 --- a/tests/cases/approve_any_3_action.go +++ b/tests/cases/approve_any_3_action.go @@ -50,22 +50,22 @@ func (c *Test_ApproveAny3Action) Run(t *testing.T, ctx context.Context, _ framew checks.SuccessTx(t, resAddOwner2) client.EnsureSpaceAmount(t, ctx, charlie.Address(t), 1) - newApproveRuleDefinition := "\"any(3, warden.space.owners)\"" - resNewRule := alice.Tx(t, "act new-rule --name approve_requires_three --definition "+newApproveRuleDefinition) - checks.SuccessTx(t, resNewRule) + newApproveTemplateDefinition := "\"any(3, warden.space.owners)\"" + resNewTemplate := alice.Tx(t, "act new-template --name approve_requires_three --definition "+newApproveTemplateDefinition) + checks.SuccessTx(t, resNewTemplate) - resUpdateSpaceAdminRuleByAlice := alice.Tx(t, "warden new-action update-space --space-id 1 --approve-admin-rule-id 1 --nonce 2") //3 - checks.SuccessTx(t, resUpdateSpaceAdminRuleByAlice) + resUpdateSpaceAdminTemplateByAlice := alice.Tx(t, "warden new-action update-space --space-id 1 --approve-admin-template-id 1 --nonce 2") //3 + checks.SuccessTx(t, resUpdateSpaceAdminTemplateByAlice) spaceAfterValidApprove, err := client.Warden.SpaceById(ctx, &types.QuerySpaceByIdRequest{ Id: 1, }) require.NoError(t, err) - require.Equal(t, uint64(1), spaceAfterValidApprove.Space.ApproveAdminRuleId) + require.Equal(t, uint64(1), spaceAfterValidApprove.Space.ApproveAdminTemplateId) addNewOwnerCommandTemplate = "warden new-action add-space-owner --space-id %d --new-owner %s --nonce %d --expected-approve-expression %s" - resAliceAddOwnerDave := alice.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, dave.Address(t), 3, newApproveRuleDefinition)) //4 + resAliceAddOwnerDave := alice.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, dave.Address(t), 3, newApproveTemplateDefinition)) //4 checks.SuccessTx(t, resAliceAddOwnerDave) client.EnsureSpaceAmount(t, ctx, dave.Address(t), 0) diff --git a/tests/cases/keychain_writers.go b/tests/cases/keychain_writers.go index 975130aac..64b12685f 100644 --- a/tests/cases/keychain_writers.go +++ b/tests/cases/keychain_writers.go @@ -40,12 +40,12 @@ func (c *Test_KeychainWriters) Run(t *testing.T, ctx context.Context, build fram t.Run("create key request", func(t *testing.T) { // create a KeyRequest - newReqTx := bob.Tx(t, "warden new-action new-key-request --space-id 1 --keychain-id 1 --key-type 1 --max-keychain-fees \"1award\" --rule-id 0 --nonce 0") + newReqTx := bob.Tx(t, "warden new-action new-key-request --space-id 1 --keychain-id 1 --key-type 1 --max-keychain-fees \"1award\" --template-id 0 --nonce 0") checks.SuccessTx(t, newReqTx) client.EnsureActionStatus(t, ctx, 1, v1beta1.ActionStatus_ACTION_STATUS_REVOKED) client.EnsureBalanceAmount(t, ctx, wardenAddress, balance) - newReqTx = bob.Tx(t, "warden new-action new-key-request --space-id 1 --keychain-id 1 --key-type 1 --max-keychain-fees \"3award\" --rule-id 0 --nonce 0") + newReqTx = bob.Tx(t, "warden new-action new-key-request --space-id 1 --keychain-id 1 --key-type 1 --max-keychain-fees \"3award\" --template-id 0 --nonce 0") checks.SuccessTx(t, newReqTx) client.EnsureActionStatus(t, ctx, 2, v1beta1.ActionStatus_ACTION_STATUS_COMPLETED) client.EnsureBalanceAmount(t, ctx, wardenAddress, balance.Add(sdk.NewCoin("award", math.NewInt(2)))) diff --git a/tests/cases/owner_approve_action.go b/tests/cases/owner_approve_action.go index a8a8877fc..f23ea0857 100644 --- a/tests/cases/owner_approve_action.go +++ b/tests/cases/owner_approve_action.go @@ -50,33 +50,33 @@ func (c *Test_OwnerApproveAction) Run(t *testing.T, ctx context.Context, _ frame checks.SuccessTx(t, resApproveBob) client.EnsureSpaceAmount(t, ctx, bob.Address(t), 1) - newApproveRuleDefinition := "\"any(2, warden.space.owners)\"" - resNewRule := alice.Tx(t, "act new-rule --name approve_requires_two --definition "+newApproveRuleDefinition) - checks.SuccessTx(t, resNewRule) + newApproveTemplateDefinition := "\"any(2, warden.space.owners)\"" + resNewTemplate := alice.Tx(t, "act new-template --name approve_requires_two --definition "+newApproveTemplateDefinition) + checks.SuccessTx(t, resNewTemplate) - updateSpaceApproveAdminRuleIdCommand := "warden new-action update-space --space-id 1 --approve-admin-rule-id 1 --nonce 1" + updateSpaceApproveAdminTemplateIdCommand := "warden new-action update-space --space-id 1 --approve-admin-template-id 1 --nonce 1" - resUpdateSpaceAdminRuleByCharlie := charlie.Tx(t, updateSpaceApproveAdminRuleIdCommand) - checks.SuccessTx(t, resUpdateSpaceAdminRuleByCharlie) + resUpdateSpaceAdminTemplateByCharlie := charlie.Tx(t, updateSpaceApproveAdminTemplateIdCommand) + checks.SuccessTx(t, resUpdateSpaceAdminTemplateByCharlie) spaceAfterInvalidApprove, err := client.Warden.SpaceById(ctx, &types.QuerySpaceByIdRequest{ Id: 1, }) require.NoError(t, err) - require.Equal(t, uint64(0), spaceAfterInvalidApprove.Space.ApproveAdminRuleId) + require.Equal(t, uint64(0), spaceAfterInvalidApprove.Space.ApproveAdminTemplateId) - resUpdateSpaceAdminRuleByAlice := alice.Tx(t, updateSpaceApproveAdminRuleIdCommand) - checks.SuccessTx(t, resUpdateSpaceAdminRuleByAlice) + resUpdateSpaceAdminTemplateByAlice := alice.Tx(t, updateSpaceApproveAdminTemplateIdCommand) + checks.SuccessTx(t, resUpdateSpaceAdminTemplateByAlice) spaceAfterValidApprove, err := client.Warden.SpaceById(ctx, &types.QuerySpaceByIdRequest{ Id: 1, }) require.NoError(t, err) - require.Equal(t, uint64(1), spaceAfterValidApprove.Space.ApproveAdminRuleId) + require.Equal(t, uint64(1), spaceAfterValidApprove.Space.ApproveAdminTemplateId) addNewOwnerCommandTemplate = "warden new-action add-space-owner --space-id %d --new-owner %s --nonce %d --expected-approve-expression %s" - resAliceAddOwnerCharlie := alice.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, charlie.Address(t), 2, newApproveRuleDefinition)) + resAliceAddOwnerCharlie := alice.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, charlie.Address(t), 2, newApproveTemplateDefinition)) checks.SuccessTx(t, resAliceAddOwnerCharlie) client.EnsureSpaceAmount(t, ctx, charlie.Address(t), 0) @@ -84,7 +84,7 @@ func (c *Test_OwnerApproveAction) Run(t *testing.T, ctx context.Context, _ frame checks.SuccessTx(t, resApproveCharlie) client.EnsureSpaceAmount(t, ctx, charlie.Address(t), 1) - resCharlieAddOwnerDave := charlie.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, dave.Address(t), 3, newApproveRuleDefinition)) + resCharlieAddOwnerDave := charlie.Tx(t, fmt.Sprintf(addNewOwnerCommandTemplate, 1, dave.Address(t), 3, newApproveTemplateDefinition)) checks.SuccessTx(t, resCharlieAddOwnerDave) client.EnsureSpaceAmount(t, ctx, dave.Address(t), 0) diff --git a/warden/app/wasm-interop/custom_msg.go b/warden/app/wasm-interop/custom_msg.go index 99ff980cd..80511e4b3 100644 --- a/warden/app/wasm-interop/custom_msg.go +++ b/warden/app/wasm-interop/custom_msg.go @@ -20,7 +20,7 @@ type WardenMsg struct { } type NewKeyRequest struct { - RuleId uint64 `json:"rule_id"` + TemplateId uint64 `json:"template_id"` KeyType types.KeyType `json:"key_type"` KeychainID uint64 `json:"keychain_id"` SpaceID uint64 `json:"space_id"` @@ -59,7 +59,7 @@ func handleNewKeyRequest(sender sdk.AccAddress, msg WardenProtocolMsg) ([]sdk.Ms SpaceId: newKeyRequest.SpaceID, KeychainId: newKeyRequest.KeychainID, KeyType: newKeyRequest.KeyType, - RuleId: newKeyRequest.RuleId, + TemplateId: newKeyRequest.TemplateId, } msgAny, err := codectypes.NewAnyWithValue(newKeyMsg) if err != nil { diff --git a/warden/testutil/keeper/act.go b/warden/testutil/keeper/act.go index 1ca50f7b1..eb9a047eb 100644 --- a/warden/testutil/keeper/act.go +++ b/warden/testutil/keeper/act.go @@ -33,7 +33,7 @@ func ActKeeper(t testing.TB) (keeper.Keeper, sdk.Context) { cdc := codec.NewProtoCodec(registry) authority := authtypes.NewModuleAddress(govtypes.ModuleName) actAuthority := authtypes.NewModuleAddress(types.ModuleName) - rulesRegistry := types.NewRulesRegistry() + templatesRegistry := types.NewTemplatesRegistry() k := keeper.NewKeeper( cdc, @@ -43,7 +43,7 @@ func ActKeeper(t testing.TB) (keeper.Keeper, sdk.Context) { authority.String(), actAuthority.String(), nil, - rulesRegistry, + templatesRegistry, ) ctx := sdk.NewContext(stateStore, cmtproto.Header{}, false, log.NewNopLogger()) diff --git a/warden/x/act/keeper/actions.go b/warden/x/act/keeper/actions.go index 9bea2d4dd..e32e0934c 100644 --- a/warden/x/act/keeper/actions.go +++ b/warden/x/act/keeper/actions.go @@ -51,7 +51,7 @@ func (k Keeper) TryExecuteAction(ctx context.Context, act *types.Action) error { } func (k Keeper) checkActionReady(ctx context.Context, act types.Action) (bool, error) { - return act.Rule.Eval(ctx, ApproversEnv(act.Approvers)) + return act.Template.Eval(ctx, ApproversEnv(act.Approvers)) } func (k Keeper) executeAction(ctx context.Context, act *types.Action) error { @@ -142,16 +142,16 @@ func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, time } ctx = ctxWithActionCreator(sdk.UnwrapSDKContext(ctx), creator) - ctx, approveRule, rejectRule, err := k.rulesRegistry.Get(ctx, msg) + ctx, approveTemplate, rejectTemplate, err := k.templatesRegistry.Get(ctx, msg) if err != nil { - return nil, errors.Wrapf(types.ErrNoRuleRegistryHandler, "%v", err) + return nil, errors.Wrapf(types.ErrNoTemplateRegistryHandler, "%v", err) } - if approveRule.Expression.String() != expectedApproveExpression.String() { + if approveTemplate.Expression.String() != expectedApproveExpression.String() { return nil, types.ErrApproveExpressionNotMatched } - if rejectRule.Expression.String() != expectedRejectExpression.String() { + if rejectTemplate.Expression.String() != expectedRejectExpression.String() { return nil, types.ErrRejectExpressionNotMatched } @@ -161,12 +161,12 @@ func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, time } ctxWithMsg := cosmoshield.NewContext(ctx, msg) - preprocessedApproveExpr, approveMentions, err := k.preprocessRule(ctxWithMsg, approveRule) + preprocessedApproveExpr, approveMentions, err := k.preprocessTemplate(ctxWithMsg, approveTemplate) if err != nil { return nil, err } - preprocessedRejectExpr, rejectMentions, err := k.preprocessRule(ctxWithMsg, rejectRule) + preprocessedRejectExpr, rejectMentions, err := k.preprocessTemplate(ctxWithMsg, rejectTemplate) if err != nil { return nil, err } @@ -186,16 +186,16 @@ func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, time } } - // update the rule of this Action with the preprocessed expression - // todo: should be removed with removing Rule field in Action - approveRule.Expression = preprocessedApproveExpr + // update the template of this Action with the preprocessed expression + // todo: should be removed with removing Template field in Action + approveTemplate.Expression = preprocessedApproveExpr // create action object timestamp := k.getBlockTime(ctx) act := &types.Action{ Status: types.ActionStatus_ACTION_STATUS_PENDING, Approvers: nil, - Rule: approveRule, + Template: approveTemplate, Mentions: mentions, Msg: wrappedMsg, Creator: creator, diff --git a/warden/x/act/keeper/genesis.go b/warden/x/act/keeper/genesis.go index 74adeb8fb..067e450ea 100644 --- a/warden/x/act/keeper/genesis.go +++ b/warden/x/act/keeper/genesis.go @@ -7,11 +7,11 @@ import ( ) func (k *Keeper) ImportState(ctx sdk.Context, genState types.GenesisState) error { - err := k.rules.Import(ctx, genState.Rules, func(k types.Rule) uint64 { + err := k.templates.Import(ctx, genState.Templates, func(k types.Template) uint64 { return k.Id }) if err != nil { - return fmt.Errorf("failed to import rules: %w", err) + return fmt.Errorf("failed to import templates: %w", err) } err = k.ActionKeeper.Import(ctx, genState.Actions) @@ -23,11 +23,11 @@ func (k *Keeper) ImportState(ctx sdk.Context, genState types.GenesisState) error } func (k *Keeper) ExportState(ctx sdk.Context, genState *types.GenesisState) error { - rules, err := k.rules.Export(ctx) + templates, err := k.templates.Export(ctx) if err != nil { - return fmt.Errorf("failed to export rules: %w", err) + return fmt.Errorf("failed to export templates: %w", err) } - genState.Rules = rules + genState.Templates = templates actions, err := k.ActionKeeper.Coll().Export(ctx) if err != nil { diff --git a/warden/x/act/keeper/keeper.go b/warden/x/act/keeper/keeper.go index e8bb26e94..86a5cd087 100644 --- a/warden/x/act/keeper/keeper.go +++ b/warden/x/act/keeper/keeper.go @@ -26,10 +26,10 @@ type ( // shieldExpanderFunc returns an injected AST expander shieldExpanderFunc func() ast.Expander - rulesRegistry *types.RulesRegistry + templatesRegistry *types.TemplatesRegistry ActionKeeper ActionKeeper - rules repo.SeqCollection[types.Rule] + templates repo.SeqCollection[types.Template] // the address capable of executing a MsgUpdateParams message. Typically, this // should be the x/gov module account. @@ -40,7 +40,7 @@ type ( var ( ActionPrefix = collections.NewPrefix(0) - RulePrefix = collections.NewPrefix(1) + TemplatePrefix = collections.NewPrefix(1) ActionByAddressPrefix = collections.NewPrefix(2) PreviousPruneBlockHeightPrefix = collections.NewPrefix(3) ) @@ -53,7 +53,7 @@ func NewKeeper( authority string, actModuleAddress string, shieldExpanderFunc func() ast.Expander, - rulesRegistry *types.RulesRegistry, + templatesRegistry *types.TemplatesRegistry, ) Keeper { if _, err := sdk.AccAddressFromBech32(authority); err != nil { panic(fmt.Sprintf("invalid authority address: %s", authority)) @@ -65,9 +65,9 @@ func NewKeeper( sb := collections.NewSchemaBuilder(storeService) - rulesStore := collections.NewMap(sb, RulePrefix, "rule", collections.Uint64Key, codec.CollValue[types.Rule](cdc)) - rulesCount := collections.NewSequence(sb, types.KeyPrefix(types.RuleCountKey), "rules_count") - rules := repo.NewSeqCollection(rulesCount, rulesStore, func(i *types.Rule, u uint64) { i.Id = u }) + templatesStore := collections.NewMap(sb, TemplatePrefix, "template", collections.Uint64Key, codec.CollValue[types.Template](cdc)) + templatesCount := collections.NewSequence(sb, types.KeyPrefix(types.TemplateCountKey), "templates_count") + templates := repo.NewSeqCollection(templatesCount, templatesStore, func(i *types.Template, u uint64) { i.Id = u }) _, err := sb.Build() if err != nil { @@ -83,10 +83,10 @@ func NewKeeper( router: router, shieldExpanderFunc: shieldExpanderFunc, - rulesRegistry: rulesRegistry, + templatesRegistry: templatesRegistry, ActionKeeper: newActionKeeper(storeService, cdc), - rules: rules, + templates: templates, } } @@ -108,6 +108,6 @@ func (k Keeper) getBlockTime(ctx context.Context) time.Time { return sdk.UnwrapSDKContext(ctx).HeaderInfo().Time } -func (k Keeper) RulesRegistry() *types.RulesRegistry { - return k.rulesRegistry +func (k Keeper) TemplatesRegistry() *types.TemplatesRegistry { + return k.templatesRegistry } diff --git a/warden/x/act/keeper/msg_server_new_action.go b/warden/x/act/keeper/msg_server_new_action.go index 973a47884..eaacd9b96 100644 --- a/warden/x/act/keeper/msg_server_new_action.go +++ b/warden/x/act/keeper/msg_server_new_action.go @@ -19,12 +19,12 @@ func (k msgServer) NewAction(ctx context.Context, msg *types.MsgNewAction) (*typ expectedApproveExpression, err := shield.Parse(msg.ExpectedApproveExpression) if err != nil { - return nil, errors.Wrapf(types.ErrInvalidRuleDefinition, "%v", err) + return nil, errors.Wrapf(types.ErrInvalidExpressionDefinition, "%v", err) } expectedRejectExpression, err := shield.Parse(msg.ExpectedRejectExpression) if err != nil { - return nil, errors.Wrapf(types.ErrInvalidRuleDefinition, "%v", err) + return nil, errors.Wrapf(types.ErrInvalidExpressionDefinition, "%v", err) } act, err := k.AddAction(ctx, msg.Creator, message, msg.ActionTimeoutHeight, expectedApproveExpression, expectedRejectExpression) diff --git a/warden/x/act/keeper/msg_server_new_rule.go b/warden/x/act/keeper/msg_server_new_rule.go index 5194e39d7..b9703940e 100644 --- a/warden/x/act/keeper/msg_server_new_rule.go +++ b/warden/x/act/keeper/msg_server_new_rule.go @@ -9,37 +9,37 @@ import ( types "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" ) -func (k msgServer) NewRule(goCtx context.Context, msg *types.MsgNewRule) (*types.MsgNewRuleResponse, error) { +func (k msgServer) NewTemplate(goCtx context.Context, msg *types.MsgNewTemplate) (*types.MsgNewTemplateResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) expr, err := shield.Parse(msg.Definition) if err != nil { - return nil, errors.Wrapf(types.ErrInvalidRuleDefinition, "%v", err) + return nil, errors.Wrapf(types.ErrInvalidExpressionDefinition, "%v", err) } - rule := types.Rule{ + template := types.Template{ Creator: msg.Creator, Name: msg.Name, Expression: expr, } - if err := rule.Validate(); err != nil { + if err := template.Validate(); err != nil { return nil, err } - id, err := k.rules.Append(ctx, &rule) + id, err := k.templates.Append(ctx, &template) if err != nil { return nil, err } - if err = ctx.EventManager().EmitTypedEvent(&types.EventCreateRule{ + if err = ctx.EventManager().EmitTypedEvent(&types.EventCreateTemplate{ Id: id, Creator: msg.Creator, }); err != nil { return nil, err } - return &types.MsgNewRuleResponse{ + return &types.MsgNewTemplateResponse{ Id: id, }, nil } diff --git a/warden/x/act/keeper/msg_server_update_rule.go b/warden/x/act/keeper/msg_server_update_rule.go index c97e1b4f1..4e11e0cfa 100644 --- a/warden/x/act/keeper/msg_server_update_rule.go +++ b/warden/x/act/keeper/msg_server_update_rule.go @@ -9,38 +9,38 @@ import ( types "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" ) -func (k msgServer) UpdateRule(ctx context.Context, msg *types.MsgUpdateRule) (*types.MsgUpdateRuleResponse, error) { +func (k msgServer) UpdateTemplate(ctx context.Context, msg *types.MsgUpdateTemplate) (*types.MsgUpdateTemplateResponse, error) { expr, err := shield.Parse(msg.Definition) if err != nil { return nil, err } - rule, err := k.rules.Get(ctx, msg.Id) + template, err := k.templates.Get(ctx, msg.Id) if err != nil { return nil, err } - if rule.Creator != msg.Creator { - return nil, types.ErrInvalidUpdateRuleAccount + if template.Creator != msg.Creator { + return nil, types.ErrInvalidUpdateTemplateAccount } - rule.Expression = expr - rule.Name = msg.Name + template.Expression = expr + template.Name = msg.Name - if err := rule.Validate(); err != nil { + if err := template.Validate(); err != nil { return nil, err } - if err := k.rules.Set(ctx, rule.Id, rule); err != nil { + if err := k.templates.Set(ctx, template.Id, template); err != nil { return nil, err } sdkCtx := sdk.UnwrapSDKContext(ctx) - if err := sdkCtx.EventManager().EmitTypedEvent(&types.EventUpdateRule{ - Id: rule.Id, + if err := sdkCtx.EventManager().EmitTypedEvent(&types.EventUpdateTemplate{ + Id: template.Id, }); err != nil { return nil, err } - return &types.MsgUpdateRuleResponse{}, nil + return &types.MsgUpdateTemplateResponse{}, nil } diff --git a/warden/x/act/keeper/query_actions_by_address_test.go b/warden/x/act/keeper/query_actions_by_address_test.go index b9cb0eeea..f4d6925d8 100644 --- a/warden/x/act/keeper/query_actions_by_address_test.go +++ b/warden/x/act/keeper/query_actions_by_address_test.go @@ -27,7 +27,7 @@ func Benchmark_QueryActionsByAddress(b *testing.B) { _, err := k.ActionKeeper.New( ctx, &types.Action{ - Rule: types.Rule{ + Template: types.Template{ Id: uint64(i), }, Mentions: []string{ diff --git a/warden/x/act/keeper/query_rule_by_id.go b/warden/x/act/keeper/query_rule_by_id.go index 02b6788a3..acd822f57 100644 --- a/warden/x/act/keeper/query_rule_by_id.go +++ b/warden/x/act/keeper/query_rule_by_id.go @@ -11,17 +11,17 @@ import ( // nolint:stylecheck,st1003 // revive:disable-next-line var-naming -func (k Keeper) RuleById(goCtx context.Context, req *types.QueryRuleByIdRequest) (*types.QueryRuleByIdResponse, error) { +func (k Keeper) TemplateById(goCtx context.Context, req *types.QueryTemplateByIdRequest) (*types.QueryTemplateByIdResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } ctx := sdk.UnwrapSDKContext(goCtx) - rulePb, err := k.GetRule(ctx, req.Id) + templatePb, err := k.GetTemplate(ctx, req.Id) if err != nil { return nil, err } - return &types.QueryRuleByIdResponse{Rule: &rulePb}, nil + return &types.QueryTemplateByIdResponse{Template: &templatePb}, nil } diff --git a/warden/x/act/keeper/query_rules.go b/warden/x/act/keeper/query_rules.go index 64672d0f2..e8b13c3d7 100644 --- a/warden/x/act/keeper/query_rules.go +++ b/warden/x/act/keeper/query_rules.go @@ -10,14 +10,14 @@ import ( "google.golang.org/grpc/status" ) -func (k Keeper) Rules(goCtx context.Context, req *types.QueryRulesRequest) (*types.QueryRulesResponse, error) { +func (k Keeper) Templates(goCtx context.Context, req *types.QueryTemplatesRequest) (*types.QueryTemplatesResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } ctx := sdk.UnwrapSDKContext(goCtx) - rules, pageRes, err := query.CollectionPaginate(ctx, k.rules, req.Pagination, func(key uint64, value types.Rule) (types.Rule, error) { + templates, pageRes, err := query.CollectionPaginate(ctx, k.templates, req.Pagination, func(key uint64, value types.Template) (types.Template, error) { return value, nil }) @@ -25,8 +25,8 @@ func (k Keeper) Rules(goCtx context.Context, req *types.QueryRulesRequest) (*typ return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryRulesResponse{ - Rules: rules, + return &types.QueryTemplatesResponse{ + Templates: templates, Pagination: pageRes, }, nil } diff --git a/warden/x/act/keeper/query_simulate_rule.go b/warden/x/act/keeper/query_simulate_rule.go index f49140aba..0dd35ffad 100644 --- a/warden/x/act/keeper/query_simulate_rule.go +++ b/warden/x/act/keeper/query_simulate_rule.go @@ -11,7 +11,7 @@ import ( "google.golang.org/grpc/status" ) -func (k Keeper) SimulateRule(goCtx context.Context, req *types.QuerySimulateRuleRequest) (*types.QuerySimulateRuleResponse, error) { +func (k Keeper) SimulateTemplate(goCtx context.Context, req *types.QuerySimulateTemplateRequest) (*types.QuerySimulateTemplateResponse, error) { expr, err := shield.Parse(req.Definition) if err != nil { return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("Failed to parse input definition: %s", err)) @@ -24,7 +24,7 @@ func (k Keeper) SimulateRule(goCtx context.Context, req *types.QuerySimulateRule return nil, status.Error(codes.InvalidArgument, evaluated.Inspect()) } - return &types.QuerySimulateRuleResponse{ + return &types.QuerySimulateTemplateResponse{ Evaluation: evaluated.Inspect(), }, nil } diff --git a/warden/x/act/keeper/query_simulate_rule_test.go b/warden/x/act/keeper/query_simulate_rule_test.go index 24682a4cd..2652c80ae 100644 --- a/warden/x/act/keeper/query_simulate_rule_test.go +++ b/warden/x/act/keeper/query_simulate_rule_test.go @@ -9,14 +9,14 @@ import ( types "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" ) -func TestSimulateRuleQuery(t *testing.T) { +func TestSimulateTemplateQuery(t *testing.T) { keeper, ctx := keepertest.ActKeeper(t) - response, err := keeper.SimulateRule(ctx, &types.QuerySimulateRuleRequest{Definition: "1 + 2 * 2 <= 5"}) + response, err := keeper.SimulateTemplate(ctx, &types.QuerySimulateTemplateRequest{Definition: "1 + 2 * 2 <= 5"}) require.NoError(t, err) - require.Equal(t, &types.QuerySimulateRuleResponse{Evaluation: "true"}, response) + require.Equal(t, &types.QuerySimulateTemplateResponse{Evaluation: "true"}, response) - _, err = keeper.SimulateRule(ctx, &types.QuerySimulateRuleRequest{Definition: "1 + 2 * 2 <="}) + _, err = keeper.SimulateTemplate(ctx, &types.QuerySimulateTemplateRequest{Definition: "1 + 2 * 2 <="}) require.Error(t, err) } diff --git a/warden/x/act/keeper/rules.go b/warden/x/act/keeper/rules.go index 032636eeb..035b3dd57 100644 --- a/warden/x/act/keeper/rules.go +++ b/warden/x/act/keeper/rules.go @@ -10,25 +10,25 @@ import ( types "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" ) -func (k Keeper) IsValidRule(ctx context.Context, id uint64) error { +func (k Keeper) IsValidTemplate(ctx context.Context, id uint64) error { if id == 0 { - // we consider 0 as a valid rule id for the "default" rule + // we consider 0 as a valid template id for the "default" template return nil } - _, err := k.GetRule(ctx, id) + _, err := k.GetTemplate(ctx, id) return err } -func (k Keeper) GetRule(ctx context.Context, id uint64) (types.Rule, error) { - return k.rules.Get(ctx, id) +func (k Keeper) GetTemplate(ctx context.Context, id uint64) (types.Template, error) { + return k.templates.Get(ctx, id) } -// preprocessRule preprocesses an rule and returns the root AST and a list +// preprocessTemplate preprocesses an template and returns the root AST and a list // of addresses that are referenced in the expression. -func (k *Keeper) preprocessRule(ctx context.Context, rule types.Rule) (*ast.Expression, []string, error) { +func (k *Keeper) preprocessTemplate(ctx context.Context, template types.Template) (*ast.Expression, []string, error) { expander := k.shieldExpanderFunc() - rootAst, err := shield.Preprocess(ctx, rule.Expression, expander) + rootAst, err := shield.Preprocess(ctx, template.Expression, expander) if err != nil { return nil, nil, err } diff --git a/warden/x/act/migrations/v3/store.go b/warden/x/act/migrations/v3/store.go index d5aafaa41..8e6fa0e9d 100644 --- a/warden/x/act/migrations/v3/store.go +++ b/warden/x/act/migrations/v3/store.go @@ -86,8 +86,8 @@ func migrate(ctx sdk.Context, ns NewStore, os OldStore) error { if err != nil { return fmt.Errorf("failed to get intent: %w", err) } - newRule := migrateIntentToRule(intent) - if err := ns.Rules.Set(ctx, newRule.Id, newRule); err != nil { + newTemplate := migrateIntentToTemplate(intent) + if err := ns.Templates.Set(ctx, newTemplate.Id, newTemplate); err != nil { return fmt.Errorf("failed to set intent: %w", err) } } @@ -117,13 +117,13 @@ func migrateAction(a v1beta0.Action) v1beta1.Action { TimeoutHeight: a.Btl, CreatedAt: a.CreatedAt, UpdatedAt: a.UpdatedAt, - Rule: migrateIntentToRule(a.Intent), + Template: migrateIntentToTemplate(a.Intent), Mentions: a.Mentions, } } -func migrateIntentToRule(i v1beta0.Intent) v1beta1.Rule { - return v1beta1.Rule{ +func migrateIntentToTemplate(i v1beta0.Intent) v1beta1.Template { + return v1beta1.Template{ Id: i.Id, Creator: i.Creator, Name: i.Name, @@ -224,14 +224,14 @@ func migrateToken(t v1beta0.Token) token.Token { type NewStore struct { Actions repo.SeqCollection[v1beta1.Action] - Rules repo.SeqCollection[v1beta1.Rule] + Templates repo.SeqCollection[v1beta1.Template] ActionByAddress collections.Map[collections.Pair[sdk.AccAddress, uint64], uint64] } func newStore(storeService store.KVStoreService, cdc codec.BinaryCodec) (NewStore, error) { var ( ActionPrefix = collections.NewPrefix(0) - RulePrefix = collections.NewPrefix(1) + TemplatePrefix = collections.NewPrefix(1) ActionByAddressPrefix = collections.NewPrefix(2) ) @@ -241,9 +241,9 @@ func newStore(storeService store.KVStoreService, cdc codec.BinaryCodec) (NewStor actionsCount := collections.NewSequence(sb, v1beta1.KeyPrefix(v1beta1.ActionCountKey), "actions_count") actions := repo.NewSeqCollection(actionsCount, actionsStore, func(i *v1beta1.Action, u uint64) { i.Id = u }) - rulesStore := collections.NewMap(sb, RulePrefix, "rules", collections.Uint64Key, codec.CollValue[v1beta1.Rule](cdc)) - rulesCount := collections.NewSequence(sb, v1beta1.KeyPrefix(v1beta1.RuleCountKey), "rules_count") - rules := repo.NewSeqCollection(rulesCount, rulesStore, func(i *v1beta1.Rule, u uint64) { i.Id = u }) + templatesStore := collections.NewMap(sb, TemplatePrefix, "templates", collections.Uint64Key, codec.CollValue[v1beta1.Template](cdc)) + templatesCount := collections.NewSequence(sb, v1beta1.KeyPrefix(v1beta1.TemplateCountKey), "templates_count") + templates := repo.NewSeqCollection(templatesCount, templatesStore, func(i *v1beta1.Template, u uint64) { i.Id = u }) actionByAddress := collections.NewMap( sb, ActionByAddressPrefix, "action_by_address", @@ -253,7 +253,7 @@ func newStore(storeService store.KVStoreService, cdc codec.BinaryCodec) (NewStor return NewStore{ Actions: actions, - Rules: rules, + Templates: templates, ActionByAddress: actionByAddress, }, nil } diff --git a/warden/x/act/module/autocli.go b/warden/x/act/module/autocli.go index 2eae33bfa..ca0343f68 100644 --- a/warden/x/act/module/autocli.go +++ b/warden/x/act/module/autocli.go @@ -18,9 +18,9 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Short: "Shows the parameters of the module", }, { - RpcMethod: "Rules", - Use: "rules", - Short: "List all rules", + RpcMethod: "Templates", + Use: "templates", + Short: "List all templates", }, // this line is used by ignite scaffolding # autocli/query }, diff --git a/warden/x/act/module/module.go b/warden/x/act/module/module.go index c8adc888d..e4fc8f7b5 100644 --- a/warden/x/act/module/module.go +++ b/warden/x/act/module/module.go @@ -201,9 +201,9 @@ type ModuleInputs struct { type ModuleOutputs struct { depinject.Out - ActKeeper keeper.Keeper - Module appmodule.AppModule - RuleRegistry *types.RulesRegistry + ActKeeper keeper.Keeper + Module appmodule.AppModule + TemplateRegistry *types.TemplatesRegistry } func ProvideModule(in ModuleInputs) ModuleOutputs { @@ -222,7 +222,7 @@ func ProvideModule(in ModuleInputs) ModuleOutputs { shieldExpanderFunc = in.ShieldExpanderFunc } - r := types.NewRulesRegistry() + r := types.NewTemplatesRegistry() k := keeper.NewKeeper( in.Cdc, in.StoreService, @@ -241,8 +241,8 @@ func ProvideModule(in ModuleInputs) ModuleOutputs { ) return ModuleOutputs{ - ActKeeper: k, - Module: m, - RuleRegistry: r, + ActKeeper: k, + Module: m, + TemplateRegistry: r, } } diff --git a/warden/x/act/types/v1beta1/action.pb.go b/warden/x/act/types/v1beta1/action.pb.go index 3bb856fee..f0c414037 100644 --- a/warden/x/act/types/v1beta1/action.pb.go +++ b/warden/x/act/types/v1beta1/action.pb.go @@ -38,7 +38,7 @@ const ( ActionStatus_ACTION_STATUS_UNSPECIFIED ActionStatus = 0 // Action is pending approval. This is the initial status. ActionStatus_ACTION_STATUS_PENDING ActionStatus = 1 - // Rule has been satified, action has been executed. + // Template has been satified, action has been executed. ActionStatus_ACTION_STATUS_COMPLETED ActionStatus = 2 // Action has been revoked by its creator. ActionStatus_ACTION_STATUS_REVOKED ActionStatus = 3 @@ -124,14 +124,14 @@ func (m *Approver) GetApprovedAt() time.Time { return time.Time{} } -// Action wraps a message that will be executed when its associated rule is +// Action wraps a message that will be executed when its associated template is // satisfied. type Action struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Approvers []*Approver `protobuf:"bytes,2,rep,name=approvers,proto3" json:"approvers,omitempty"` Status ActionStatus `protobuf:"varint,3,opt,name=status,proto3,enum=warden.act.v1beta1.ActionStatus" json:"status,omitempty"` // Original message that started the action, it will be executed when the - // rule is satisfied. + // template is satisfied. Msg *types.Any `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"` // Result of the action, it will be set when the action is completed. Result *types.Any `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"` @@ -142,11 +142,11 @@ type Action struct { CreatedAt time.Time `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"` // updated_at is a timestamp specifying when the action's status was updated UpdatedAt time.Time `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"` - // rule is the condition that this action is associated with. Instead of - // storing the rule ID, we store the entire Rule object so that is immutable + // template is the condition that this action is associated with. Instead of + // storing the template ID, we store the entire Template object so that is immutable // and cannot be changed later. - Rule Rule `protobuf:"bytes,11,opt,name=rule,proto3" json:"rule"` - // mentions is a list of addresses that are mentioned in the rule. + Template Template `protobuf:"bytes,11,opt,name=template,proto3" json:"template"` + // mentions is a list of addresses that are mentioned in the template. Mentions []string `protobuf:"bytes,12,rep,name=mentions,proto3" json:"mentions,omitempty"` // The expression to be evaluated for approval. ApproveExpression ast.Expression `protobuf:"bytes,13,opt,name=approve_expression,json=approveExpression,proto3" json:"approve_expression"` @@ -252,11 +252,11 @@ func (m *Action) GetUpdatedAt() time.Time { return time.Time{} } -func (m *Action) GetRule() Rule { +func (m *Action) GetTemplate() Template { if m != nil { - return m.Rule + return m.Template } - return Rule{} + return Template{} } func (m *Action) GetMentions() []string { @@ -296,49 +296,50 @@ func init() { func init() { proto.RegisterFile("warden/act/v1beta1/action.proto", fileDescriptor_ed852fba5dd71480) } var fileDescriptor_ed852fba5dd71480 = []byte{ - // 671 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4f, 0x53, 0xd3, 0x40, - 0x1c, 0x6d, 0xda, 0x52, 0xe8, 0x16, 0x6a, 0xd9, 0x41, 0x5d, 0xaa, 0xb4, 0x1d, 0x46, 0x9d, 0x0e, - 0xa3, 0xc9, 0x50, 0x3d, 0x38, 0xde, 0x02, 0x8d, 0x52, 0x91, 0x96, 0x49, 0x03, 0x07, 0x0f, 0x76, - 0xb6, 0xcd, 0x9a, 0xc6, 0x69, 0xb3, 0x99, 0xec, 0x06, 0xe1, 0x5b, 0x70, 0xf7, 0x0b, 0x78, 0xf4, - 0x63, 0x70, 0xe4, 0xa6, 0x27, 0x75, 0xe0, 0xe0, 0xd7, 0x70, 0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, 0xad, - 0x28, 0x26, 0x48, 0xd8, 0x3a, 0x5f, 0xfe, 0x3e, 0x05, 0x72, 0xba, 0x98, 0x03, 0x16, 0x41, 0xda, - 0xb5, 0xc5, 0xb3, 0xb2, 0x66, 0xda, 0xb5, 0xe1, 0x2b, 0x90, 0x97, 0xc0, 0x80, 0xa1, 0x74, 0x2d, - 0x53, 0x2f, 0x34, 0x1e, 0xaa, 0x93, 0xa6, 0xab, 0xc9, 0xc4, 0xe6, 0x39, 0x1c, 0xbe, 0x04, 0x39, - 0xc6, 0x31, 0x0f, 0x19, 0xca, 0xd4, 0x94, 0x7a, 0xb1, 0x51, 0xbb, 0x96, 0x28, 0x9e, 0xdb, 0x15, - 0x38, 0x53, 0xe2, 0xe1, 0x13, 0x90, 0x19, 0x33, 0x07, 0x4d, 0x89, 0x43, 0x2d, 0x4c, 0x1c, 0x4a, - 0xf7, 0x0e, 0xcc, 0x08, 0x00, 0x9f, 0x82, 0x5c, 0x40, 0x58, 0x38, 0xe2, 0x28, 0xf7, 0x0f, 0xa8, - 0xc4, 0x44, 0x66, 0x0e, 0x02, 0x82, 0x39, 0x0d, 0xd0, 0x74, 0x6c, 0xa6, 0x2c, 0xe1, 0x63, 0x50, - 0x8c, 0x5e, 0x30, 0x0d, 0x79, 0x6f, 0x48, 0x5c, 0x67, 0xc8, 0xd1, 0x8c, 0x70, 0x60, 0x4e, 0xee, - 0x6e, 0x88, 0x4d, 0xb8, 0x01, 0x80, 0x60, 0xc4, 0x96, 0xe7, 0x6f, 0x6b, 0x79, 0x5e, 0x92, 0x75, - 0xa1, 0x14, 0xfa, 0x76, 0xa2, 0x04, 0x6e, 0xad, 0x24, 0xc9, 0x3a, 0x87, 0x0d, 0x90, 0x8d, 0x12, - 0x86, 0x0a, 0x42, 0x03, 0x5d, 0x67, 0xb1, 0x19, 0x8e, 0xc8, 0x5a, 0x36, 0x52, 0x30, 0x05, 0x16, - 0x96, 0xc1, 0xcc, 0x98, 0x78, 0x91, 0xef, 0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f, 0x3a, - 0x2e, 0x1f, 0x86, 0x7d, 0x75, 0x40, 0xc7, 0x5a, 0x7c, 0xd0, 0x67, 0x22, 0x15, 0x03, 0x3a, 0x92, - 0xf5, 0x95, 0x52, 0xdb, 0x17, 0xb7, 0x0a, 0x3f, 0xf0, 0x09, 0x4b, 0xee, 0x96, 0x7e, 0x4e, 0x80, - 0x9e, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xa0, 0xe0, 0x5c, 0x8f, 0x47, 0x05, 0x00, 0x00, + // 673 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4d, 0x53, 0xd3, 0x40, + 0x18, 0x6e, 0x5a, 0x28, 0xed, 0x16, 0x6a, 0xd9, 0x41, 0x5d, 0xaa, 0xb6, 0x95, 0x51, 0xa7, 0xc3, + 0x68, 0x32, 0xa0, 0x07, 0xc7, 0x83, 0x33, 0x81, 0x46, 0xa9, 0x48, 0xcb, 0xa4, 0x81, 0x83, 0x07, + 0x3b, 0xdb, 0x66, 0x4d, 0xe3, 0x34, 0xd9, 0x4c, 0x76, 0x8b, 0xf0, 0x2f, 0xb8, 0xfb, 0x07, 0x3c, + 0xfa, 0x33, 0x38, 0x72, 0xf4, 0xa4, 0x0e, 0x3d, 0xf8, 0x37, 0x9c, 0x6c, 0x36, 0x7c, 0x15, 0x1c, + 0x39, 0xb4, 0xb3, 0xef, 0xfb, 0x3e, 0xcf, 0xb3, 0xef, 0xd7, 0x06, 0x54, 0xbf, 0xe0, 0xd0, 0x26, + 0xbe, 0x86, 0xfb, 0x5c, 0xdb, 0x5b, 0xe9, 0x11, 0x8e, 0x57, 0xa2, 0xb3, 0x4b, 0x7d, 0x35, 0x08, + 0x29, 0xa7, 0x10, 0xc6, 0x00, 0x15, 0xf7, 0xb9, 0x2a, 0x01, 0xe5, 0x79, 0xec, 0xb9, 0x3e, 0xd5, + 0xc4, 0x7f, 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0xe7, 0xa4, 0x5e, 0x80, 0xe9, 0xe8, 0xbd, 0x30, 0x74, 0x4b, 0x2c, 0x64, 0xe5, 0xfa, 0xbd, 0xda, + 0xa5, 0x9c, 0x98, 0x31, 0x78, 0xf9, 0xab, 0x02, 0x66, 0xcf, 0x6f, 0x1b, 0x7c, 0x00, 0x16, 0xf5, + 0x75, 0xab, 0xd9, 0x6e, 0x75, 0x3b, 0x96, 0x6e, 0xed, 0x74, 0xba, 0x3b, 0xad, 0xce, 0xb6, 0xb1, + 0xde, 0x7c, 0xd3, 0x34, 0x1a, 0xa5, 0x14, 0x5c, 0x04, 0xb7, 0x2f, 0x86, 0xb7, 0x8d, 0x56, 0xa3, + 0xd9, 0x7a, 0x5b, 0x52, 0xe0, 0x3d, 0x70, 0xf7, 0x62, 0x68, 0xbd, 0xbd, 0xb5, 0xfd, 0xde, 0xb0, + 0x8c, 0x46, 0x29, 0x3d, 0xc9, 0x33, 0x8d, 0xdd, 0xf6, 0xa6, 0xd1, 0x28, 0x65, 0x26, 0x43, 0x56, + 0x73, 0xcb, 0x68, 0xef, 0x58, 0xa5, 0xa9, 0xb5, 0x8f, 0x47, 0x27, 0x15, 0xe5, 0xf8, 0xa4, 0xa2, + 0xfc, 0x3e, 0xa9, 0x28, 0x87, 0xe3, 0x4a, 0xea, 0x78, 0x5c, 0x49, 0xfd, 0x18, 0x57, 0x52, 0x1f, + 0x1a, 0x8e, 0xcb, 0x07, 0xa3, 0x9e, 0xda, 0xa7, 0x9e, 0x16, 0x17, 0xfa, 0x4c, 0x6c, 0x48, 0x9f, + 0x0e, 0xa5, 0x7d, 0xc9, 0xd4, 0xf6, 0xc5, 0x17, 0x86, 0x1f, 0x04, 0x84, 0x25, 0xdf, 0x99, 0x5e, + 0x56, 0x80, 0x9e, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x36, 0x81, 0x3d, 0xa3, 0x57, 0x05, 0x00, + 0x00, } func (m *Approver) Marshal() (dAtA []byte, err error) { @@ -443,7 +444,7 @@ func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } { - size, err := m.Rule.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -594,7 +595,7 @@ func (m *Action) Size() (n int) { n += 1 + l + sovAction(uint64(l)) l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UpdatedAt) n += 1 + l + sovAction(uint64(l)) - l = m.Rule.Size() + l = m.Template.Size() n += 1 + l + sovAction(uint64(l)) if len(m.Mentions) > 0 { for _, s := range m.Mentions { @@ -1028,7 +1029,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 11: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1055,7 +1056,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Rule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/warden/x/act/types/v1beta1/codec.go b/warden/x/act/types/v1beta1/codec.go index 4381c3e56..3b670e242 100644 --- a/warden/x/act/types/v1beta1/codec.go +++ b/warden/x/act/types/v1beta1/codec.go @@ -11,9 +11,9 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgNewAction{}, &MsgApproveAction{}, - &MsgNewRule{}, + &MsgNewTemplate{}, &MsgRevokeAction{}, - &MsgUpdateRule{}, + &MsgUpdateTemplate{}, ) // this line is used by starport scaffolding # 3 diff --git a/warden/x/act/types/v1beta1/errors.go b/warden/x/act/types/v1beta1/errors.go index febe262c2..da58a0f76 100644 --- a/warden/x/act/types/v1beta1/errors.go +++ b/warden/x/act/types/v1beta1/errors.go @@ -8,21 +8,21 @@ import ( // x/act module sentinel errors var ( - ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") - ErrSample = sdkerrors.Register(ModuleName, 1101, "sample error") - ErrInvalidActionMsgSigner = sdkerrors.Register(ModuleName, 1102, "expected x/act account as only signer for action message") - ErrInvalidActionStatus = sdkerrors.Register(ModuleName, 1103, "invalid action status") - ErrInvalidActionStatusChange = sdkerrors.Register(ModuleName, 1104, "invalid status change") - ErrApproverExists = sdkerrors.Register(ModuleName, 1105, "approver already exists") - ErrRuleEvaluationFailed = sdkerrors.Register(ModuleName, 1106, "rule evaluation failed") - ErrRuleNotBoolean = sdkerrors.Register(ModuleName, 1107, "rule must evaluate to a boolean") - ErrInvalidRule = sdkerrors.Register(ModuleName, 1108, "rule is invalid") - ErrInvalidActionMsg = sdkerrors.Register(ModuleName, 1109, "invalid action message") - ErrNoActionMsgHandler = sdkerrors.Register(ModuleName, 1110, "no action message handler registered for message type") - ErrNoRuleRegistryHandler = sdkerrors.Register(ModuleName, 1111, "no rule registry handler registered for message type") - ErrInvalidRuleDefinition = sdkerrors.Register(ModuleName, 1112, "invalid rule definition") - ErrInvalidRevoker = sdkerrors.Register(ModuleName, 1113, "this account can't revoke this action") - ErrInvalidUpdateRuleAccount = sdkerrors.Register(ModuleName, 1114, "this account can't update this rule") - ErrApproveExpressionNotMatched = sdkerrors.Register(ModuleName, 1115, "approve expression not matched with expected") - ErrRejectExpressionNotMatched = sdkerrors.Register(ModuleName, 1116, "reject expression not matched with expected") + ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") + ErrSample = sdkerrors.Register(ModuleName, 1101, "sample error") + ErrInvalidActionMsgSigner = sdkerrors.Register(ModuleName, 1102, "expected x/act account as only signer for action message") + ErrInvalidActionStatus = sdkerrors.Register(ModuleName, 1103, "invalid action status") + ErrInvalidActionStatusChange = sdkerrors.Register(ModuleName, 1104, "invalid status change") + ErrApproverExists = sdkerrors.Register(ModuleName, 1105, "approver already exists") + ErrTemplateEvaluationFailed = sdkerrors.Register(ModuleName, 1106, "template evaluation failed") + ErrTemplateNotBoolean = sdkerrors.Register(ModuleName, 1107, "template must evaluate to a boolean") + ErrInvalidTemplate = sdkerrors.Register(ModuleName, 1108, "template is invalid") + ErrInvalidActionMsg = sdkerrors.Register(ModuleName, 1109, "invalid action message") + ErrNoActionMsgHandler = sdkerrors.Register(ModuleName, 1110, "no action message handler registered for message type") + ErrNoTemplateRegistryHandler = sdkerrors.Register(ModuleName, 1111, "no template registry handler registered for message type") + ErrInvalidExpressionDefinition = sdkerrors.Register(ModuleName, 1112, "invalid template definition") + ErrInvalidRevoker = sdkerrors.Register(ModuleName, 1113, "this account can't revoke this action") + ErrInvalidUpdateTemplateAccount = sdkerrors.Register(ModuleName, 1114, "this account can't update this template") + ErrApproveExpressionNotMatched = sdkerrors.Register(ModuleName, 1115, "approve expression not matched with expected") + ErrRejectExpressionNotMatched = sdkerrors.Register(ModuleName, 1116, "reject expression not matched with expected") ) diff --git a/warden/x/act/types/v1beta1/events.pb.go b/warden/x/act/types/v1beta1/events.pb.go index c529653b1..03d98ab8b 100644 --- a/warden/x/act/types/v1beta1/events.pb.go +++ b/warden/x/act/types/v1beta1/events.pb.go @@ -22,26 +22,26 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// EventCreateRule is emitted on Rule creation -type EventCreateRule struct { +// EventCreateTemplate is emitted on Template creation +type EventCreateTemplate struct { // id of the new intent Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // creator is the address that created the intent Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` } -func (m *EventCreateRule) Reset() { *m = EventCreateRule{} } -func (m *EventCreateRule) String() string { return proto.CompactTextString(m) } -func (*EventCreateRule) ProtoMessage() {} -func (*EventCreateRule) Descriptor() ([]byte, []int) { +func (m *EventCreateTemplate) Reset() { *m = EventCreateTemplate{} } +func (m *EventCreateTemplate) String() string { return proto.CompactTextString(m) } +func (*EventCreateTemplate) ProtoMessage() {} +func (*EventCreateTemplate) Descriptor() ([]byte, []int) { return fileDescriptor_912b51dfb11e99b6, []int{0} } -func (m *EventCreateRule) XXX_Unmarshal(b []byte) error { +func (m *EventCreateTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EventCreateRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventCreateTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EventCreateRule.Marshal(b, m, deterministic) + return xxx_messageInfo_EventCreateTemplate.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -51,50 +51,50 @@ func (m *EventCreateRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *EventCreateRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventCreateRule.Merge(m, src) +func (m *EventCreateTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventCreateTemplate.Merge(m, src) } -func (m *EventCreateRule) XXX_Size() int { +func (m *EventCreateTemplate) XXX_Size() int { return m.Size() } -func (m *EventCreateRule) XXX_DiscardUnknown() { - xxx_messageInfo_EventCreateRule.DiscardUnknown(m) +func (m *EventCreateTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_EventCreateTemplate.DiscardUnknown(m) } -var xxx_messageInfo_EventCreateRule proto.InternalMessageInfo +var xxx_messageInfo_EventCreateTemplate proto.InternalMessageInfo -func (m *EventCreateRule) GetId() uint64 { +func (m *EventCreateTemplate) GetId() uint64 { if m != nil { return m.Id } return 0 } -func (m *EventCreateRule) GetCreator() string { +func (m *EventCreateTemplate) GetCreator() string { if m != nil { return m.Creator } return "" } -// EventUpdateRule is emitted when Rule is updated -type EventUpdateRule struct { +// EventUpdateTemplate is emitted when Template is updated +type EventUpdateTemplate struct { // id of updated intent Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *EventUpdateRule) Reset() { *m = EventUpdateRule{} } -func (m *EventUpdateRule) String() string { return proto.CompactTextString(m) } -func (*EventUpdateRule) ProtoMessage() {} -func (*EventUpdateRule) Descriptor() ([]byte, []int) { +func (m *EventUpdateTemplate) Reset() { *m = EventUpdateTemplate{} } +func (m *EventUpdateTemplate) String() string { return proto.CompactTextString(m) } +func (*EventUpdateTemplate) ProtoMessage() {} +func (*EventUpdateTemplate) Descriptor() ([]byte, []int) { return fileDescriptor_912b51dfb11e99b6, []int{1} } -func (m *EventUpdateRule) XXX_Unmarshal(b []byte) error { +func (m *EventUpdateTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EventUpdateRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventUpdateTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EventUpdateRule.Marshal(b, m, deterministic) + return xxx_messageInfo_EventUpdateTemplate.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -104,19 +104,19 @@ func (m *EventUpdateRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *EventUpdateRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventUpdateRule.Merge(m, src) +func (m *EventUpdateTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUpdateTemplate.Merge(m, src) } -func (m *EventUpdateRule) XXX_Size() int { +func (m *EventUpdateTemplate) XXX_Size() int { return m.Size() } -func (m *EventUpdateRule) XXX_DiscardUnknown() { - xxx_messageInfo_EventUpdateRule.DiscardUnknown(m) +func (m *EventUpdateTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_EventUpdateTemplate.DiscardUnknown(m) } -var xxx_messageInfo_EventUpdateRule proto.InternalMessageInfo +var xxx_messageInfo_EventUpdateTemplate proto.InternalMessageInfo -func (m *EventUpdateRule) GetId() uint64 { +func (m *EventUpdateTemplate) GetId() uint64 { if m != nil { return m.Id } @@ -409,8 +409,8 @@ func (m *EventActionPruned) GetId() uint64 { } func init() { - proto.RegisterType((*EventCreateRule)(nil), "warden.act.v1beta1.EventCreateRule") - proto.RegisterType((*EventUpdateRule)(nil), "warden.act.v1beta1.EventUpdateRule") + proto.RegisterType((*EventCreateTemplate)(nil), "warden.act.v1beta1.EventCreateTemplate") + proto.RegisterType((*EventUpdateTemplate)(nil), "warden.act.v1beta1.EventUpdateTemplate") proto.RegisterType((*EventCreateAction)(nil), "warden.act.v1beta1.EventCreateAction") proto.RegisterType((*EventApproveAction)(nil), "warden.act.v1beta1.EventApproveAction") proto.RegisterType((*EventActionVoted)(nil), "warden.act.v1beta1.EventActionVoted") @@ -421,35 +421,35 @@ 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, -} - -func (m *EventCreateRule) Marshal() (dAtA []byte, err error) { + // 396 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0xae, 0xd2, 0x40, + 0x14, 0x86, 0x19, 0x20, 0x2a, 0x63, 0x52, 0xb5, 0x26, 0xa6, 0x61, 0x51, 0x9b, 0xaa, 0x09, 0x1b, + 0xdb, 0x80, 0x89, 0x3b, 0x83, 0x88, 0x2e, 0xdc, 0x99, 0x82, 0x2e, 0x5c, 0x48, 0x86, 0xf6, 0x04, + 0x9a, 0xc0, 0xcc, 0x64, 0x7a, 0x5a, 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 0xd3, 0xf6, 0x71, 0x78, + 0x4e, 0xcb, 0x23, 0x3d, 0x6b, 0xe0, 0x07, 0xf5, 0x87, 0x09, 0x2e, 0x0a, 0xa6, 0x5b, 0x09, 0x91, + 0xe6, 0xfd, 0x5f, 0x84, 0x3e, 0x39, 0xa9, 0x9f, 0x20, 0x43, 0x18, 0x2f, 0x19, 0x5f, 0xd4, 0x47, + 0xfd, 0x91, 0x3e, 0x90, 0x0a, 0x8a, 0x54, 0xe4, 0xd9, 0x2c, 0x43, 0x86, 0x79, 0xa6, 0x2f, 0x62, + 0x0d, 0xbc, 0xf3, 0x6d, 0x13, 0xcd, 0x45, 0x56, 0x65, 0x34, 0xda, 0x1e, 0x52, 0xca, 0x61, 0x53, + 0xa5, 0xb4, 0x6e, 0x98, 0xd2, 0xe1, 0xb0, 0x31, 0x9f, 0xfe, 0xb3, 0xf2, 0xd5, 0xcc, 0xf9, 0x27, + 0x95, 0xf3, 0xfa, 0xd4, 0xde, 0x7d, 0xfb, 0xbd, 0x77, 0xc9, 0x6e, 0xef, 0x92, 0xbf, 0x7b, 0x97, + 0xfc, 0x3c, 0xb8, 0x8d, 0xdd, 0xc1, 0x6d, 0xfc, 0x39, 0xb8, 0x8d, 0xaf, 0xef, 0x17, 0x29, 0x2e, + 0xf3, 0x79, 0x10, 0x8b, 0x75, 0x68, 0x5a, 0x5f, 0xea, 0xad, 0x8b, 0xc5, 0xaa, 0xd4, 0x97, 0x64, + 0xf8, 0x5d, 0xaf, 0x2b, 0x6e, 0x25, 0x64, 0xd5, 0xd2, 0xce, 0xef, 0x68, 0xe8, 0xd5, 0xbf, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xa0, 0x00, 0x87, 0x86, 0x27, 0x03, 0x00, 0x00, +} + +func (m *EventCreateTemplate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -459,12 +459,12 @@ func (m *EventCreateRule) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventCreateRule) MarshalTo(dAtA []byte) (int, error) { +func (m *EventCreateTemplate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventCreateRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventCreateTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -484,7 +484,7 @@ func (m *EventCreateRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *EventUpdateRule) Marshal() (dAtA []byte, err error) { +func (m *EventUpdateTemplate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -494,12 +494,12 @@ func (m *EventUpdateRule) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventUpdateRule) MarshalTo(dAtA []byte) (int, error) { +func (m *EventUpdateTemplate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventUpdateRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventUpdateTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -699,7 +699,7 @@ func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *EventCreateRule) Size() (n int) { +func (m *EventCreateTemplate) Size() (n int) { if m == nil { return 0 } @@ -715,7 +715,7 @@ func (m *EventCreateRule) Size() (n int) { return n } -func (m *EventUpdateRule) Size() (n int) { +func (m *EventUpdateTemplate) Size() (n int) { if m == nil { return 0 } @@ -814,7 +814,7 @@ func sovEvents(x uint64) (n int) { func sozEvents(x uint64) (n int) { return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *EventCreateRule) Unmarshal(dAtA []byte) error { +func (m *EventCreateTemplate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -837,10 +837,10 @@ func (m *EventCreateRule) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventCreateRule: wiretype end group for non-group") + return fmt.Errorf("proto: EventCreateTemplate: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventCreateRule: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventCreateTemplate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -915,7 +915,7 @@ func (m *EventCreateRule) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventUpdateRule) Unmarshal(dAtA []byte) error { +func (m *EventUpdateTemplate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -938,10 +938,10 @@ func (m *EventUpdateRule) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventUpdateRule: wiretype end group for non-group") + return fmt.Errorf("proto: EventUpdateTemplate: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventUpdateRule: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventUpdateTemplate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/warden/x/act/types/v1beta1/genesis.pb.go b/warden/x/act/types/v1beta1/genesis.pb.go index b54f2283a..cb9083e5a 100644 --- a/warden/x/act/types/v1beta1/genesis.pb.go +++ b/warden/x/act/types/v1beta1/genesis.pb.go @@ -27,9 +27,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState defines the act module's genesis state. type GenesisState struct { // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - Actions []Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions"` - Rules []Rule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules"` + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + Actions []Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions"` + Templates []Template `protobuf:"bytes,3,rep,name=templates,proto3" json:"templates"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -79,9 +79,9 @@ func (m *GenesisState) GetActions() []Action { return nil } -func (m *GenesisState) GetRules() []Rule { +func (m *GenesisState) GetTemplates() []Template { if m != nil { - return m.Rules + return m.Templates } return nil } @@ -93,25 +93,25 @@ func init() { func init() { proto.RegisterFile("warden/act/v1beta1/genesis.proto", fileDescriptor_e2f5a34a355818db) } var fileDescriptor_e2f5a34a355818db = []byte{ - // 284 bytes of a gzipped FileDescriptorProto + // 287 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0x4f, 0x2c, 0x4a, 0x49, 0xcd, 0xd3, 0x4f, 0x4c, 0x2e, 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0xa8, 0xd0, 0x4b, 0x4c, 0x2e, 0xd1, 0x83, 0xaa, 0x90, 0x12, 0x4c, 0xcc, 0xcd, 0xcc, 0xcb, 0xd7, 0x07, 0x93, 0x10, 0x65, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, 0xa6, 0x3e, 0x88, 0x05, 0x15, 0x95, 0xc7, 0x62, 0x7c, 0x41, 0x62, 0x51, 0x62, 0x6e, 0x31, 0x1e, 0x05, 0x89, 0xc9, 0x25, 0x99, 0xf9, - 0x79, 0x50, 0x05, 0xb2, 0x58, 0x14, 0x14, 0x95, 0xe6, 0xa4, 0x42, 0xa4, 0x95, 0x4e, 0x32, 0x72, - 0xf1, 0xb8, 0x43, 0xdc, 0x1b, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0x64, 0xcb, 0xc5, 0x06, 0xb1, 0x40, - 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x4a, 0x0f, 0xd3, 0xfd, 0x7a, 0x01, 0x60, 0x15, 0x4e, - 0x9c, 0x27, 0xee, 0xc9, 0x33, 0xac, 0x78, 0xbe, 0x41, 0x8b, 0x31, 0x08, 0xaa, 0x49, 0xc8, 0x9e, - 0x8b, 0x1d, 0x62, 0x7d, 0xb1, 0x04, 0x93, 0x02, 0x33, 0x2e, 0xfd, 0x8e, 0x60, 0x25, 0xc8, 0xfa, - 0x61, 0xba, 0x84, 0x2c, 0xb9, 0x58, 0x41, 0xce, 0x2b, 0x96, 0x60, 0x06, 0x6b, 0x97, 0xc0, 0xa6, - 0x3d, 0xa8, 0x34, 0x27, 0x15, 0x59, 0x33, 0x44, 0x87, 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, 0xcc, 0xd3, 0x05, 0x7b, 0x3f, 0x39, 0x3f, 0x07, 0xca, 0x47, 0xe3, 0xea, 0x57, 0x80, - 0x03, 0xac, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x16, 0x6c, 0x49, 0x6c, 0x60, 0x45, 0xc6, 0x80, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xf3, 0xf0, 0x43, 0xc7, 0xf4, 0x01, 0x00, 0x00, + 0x79, 0x50, 0x05, 0x8a, 0x58, 0x14, 0x94, 0xa4, 0xe6, 0x16, 0xe4, 0x24, 0x96, 0xa4, 0x42, 0x94, + 0x28, 0x5d, 0x65, 0xe4, 0xe2, 0x71, 0x87, 0xb8, 0x39, 0xb8, 0x24, 0xb1, 0x24, 0x55, 0xc8, 0x96, + 0x8b, 0x0d, 0x62, 0x89, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x94, 0x1e, 0xa6, 0x1f, 0xf4, + 0x02, 0xc0, 0x2a, 0x9c, 0x38, 0x4f, 0xdc, 0x93, 0x67, 0x58, 0xf1, 0x7c, 0x83, 0x16, 0x63, 0x10, + 0x54, 0x93, 0x90, 0x3d, 0x17, 0x3b, 0xc4, 0x09, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0xb8, 0xf4, 0x3b, + 0x82, 0x95, 0x20, 0xeb, 0x87, 0xe9, 0x12, 0x72, 0xe5, 0xe2, 0x84, 0x39, 0xb1, 0x58, 0x82, 0x19, + 0x6c, 0x84, 0x0c, 0x36, 0x23, 0x42, 0xa0, 0x8a, 0x90, 0x0d, 0x41, 0xe8, 0x74, 0x8a, 0x3b, 0xf1, + 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, + 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x97, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, + 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x88, 0xb9, 0xba, 0xe0, 0xa0, 0x48, 0xce, 0xcf, 0x81, 0xf2, 0xd1, + 0xb8, 0xfa, 0x15, 0xe0, 0x00, 0x2c, 0xa9, 0x2c, 0x48, 0x2d, 0x86, 0x05, 0x63, 0x12, 0x1b, 0x58, + 0x91, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xc0, 0xde, 0x8d, 0x9e, 0x04, 0x02, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -134,10 +134,10 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Templates) > 0 { + for iNdEx := len(m.Templates) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Templates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -200,8 +200,8 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - if len(m.Rules) > 0 { - for _, e := range m.Rules { + if len(m.Templates) > 0 { + for _, e := range m.Templates { l = e.Size() n += 1 + l + sovGenesis(uint64(l)) } @@ -313,7 +313,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Templates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -340,8 +340,8 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Rules = append(m.Rules, Rule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Templates = append(m.Templates, Template{}) + if err := m.Templates[len(m.Templates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/warden/x/act/types/v1beta1/keys.go b/warden/x/act/types/v1beta1/keys.go index 1dbe6ab3e..730c2f10e 100644 --- a/warden/x/act/types/v1beta1/keys.go +++ b/warden/x/act/types/v1beta1/keys.go @@ -13,8 +13,8 @@ const ( ActionCountKey = "action/count" ActionKey = "action/value/" - RuleCountKey = "rule/count" - RuleKey = "rule/value/" + TemplateCountKey = "template/count" + TemplateKey = "template/value/" ) var ( diff --git a/warden/x/act/types/v1beta1/query.pb.go b/warden/x/act/types/v1beta1/query.pb.go index c6e2f44f0..0cee090f2 100644 --- a/warden/x/act/types/v1beta1/query.pb.go +++ b/warden/x/act/types/v1beta1/query.pb.go @@ -211,22 +211,22 @@ func (m *QueryActionsResponse) GetActions() []Action { return nil } -type QueryRulesRequest struct { +type QueryTemplatesRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryRulesRequest) Reset() { *m = QueryRulesRequest{} } -func (m *QueryRulesRequest) String() string { return proto.CompactTextString(m) } -func (*QueryRulesRequest) ProtoMessage() {} -func (*QueryRulesRequest) Descriptor() ([]byte, []int) { +func (m *QueryTemplatesRequest) Reset() { *m = QueryTemplatesRequest{} } +func (m *QueryTemplatesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTemplatesRequest) ProtoMessage() {} +func (*QueryTemplatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_f7ace4ffc8dacc6b, []int{4} } -func (m *QueryRulesRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryTemplatesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryRulesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTemplatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryRulesRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTemplatesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -236,42 +236,42 @@ func (m *QueryRulesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *QueryRulesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRulesRequest.Merge(m, src) +func (m *QueryTemplatesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTemplatesRequest.Merge(m, src) } -func (m *QueryRulesRequest) XXX_Size() int { +func (m *QueryTemplatesRequest) XXX_Size() int { return m.Size() } -func (m *QueryRulesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRulesRequest.DiscardUnknown(m) +func (m *QueryTemplatesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTemplatesRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryRulesRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryTemplatesRequest proto.InternalMessageInfo -func (m *QueryRulesRequest) GetPagination() *query.PageRequest { +func (m *QueryTemplatesRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryRulesResponse struct { +type QueryTemplatesResponse struct { Pagination *query.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Rules []Rule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules"` + Templates []Template `protobuf:"bytes,2,rep,name=templates,proto3" json:"templates"` } -func (m *QueryRulesResponse) Reset() { *m = QueryRulesResponse{} } -func (m *QueryRulesResponse) String() string { return proto.CompactTextString(m) } -func (*QueryRulesResponse) ProtoMessage() {} -func (*QueryRulesResponse) Descriptor() ([]byte, []int) { +func (m *QueryTemplatesResponse) Reset() { *m = QueryTemplatesResponse{} } +func (m *QueryTemplatesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTemplatesResponse) ProtoMessage() {} +func (*QueryTemplatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f7ace4ffc8dacc6b, []int{5} } -func (m *QueryRulesResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryTemplatesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryRulesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTemplatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryRulesResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTemplatesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -281,49 +281,49 @@ func (m *QueryRulesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryRulesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRulesResponse.Merge(m, src) +func (m *QueryTemplatesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTemplatesResponse.Merge(m, src) } -func (m *QueryRulesResponse) XXX_Size() int { +func (m *QueryTemplatesResponse) XXX_Size() int { return m.Size() } -func (m *QueryRulesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRulesResponse.DiscardUnknown(m) +func (m *QueryTemplatesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTemplatesResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryRulesResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryTemplatesResponse proto.InternalMessageInfo -func (m *QueryRulesResponse) GetPagination() *query.PageResponse { +func (m *QueryTemplatesResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } -func (m *QueryRulesResponse) GetRules() []Rule { +func (m *QueryTemplatesResponse) GetTemplates() []Template { if m != nil { - return m.Rules + return m.Templates } return nil } -type QuerySimulateRuleRequest struct { +type QuerySimulateTemplateRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"` } -func (m *QuerySimulateRuleRequest) Reset() { *m = QuerySimulateRuleRequest{} } -func (m *QuerySimulateRuleRequest) String() string { return proto.CompactTextString(m) } -func (*QuerySimulateRuleRequest) ProtoMessage() {} -func (*QuerySimulateRuleRequest) Descriptor() ([]byte, []int) { +func (m *QuerySimulateTemplateRequest) Reset() { *m = QuerySimulateTemplateRequest{} } +func (m *QuerySimulateTemplateRequest) String() string { return proto.CompactTextString(m) } +func (*QuerySimulateTemplateRequest) ProtoMessage() {} +func (*QuerySimulateTemplateRequest) Descriptor() ([]byte, []int) { return fileDescriptor_f7ace4ffc8dacc6b, []int{6} } -func (m *QuerySimulateRuleRequest) XXX_Unmarshal(b []byte) error { +func (m *QuerySimulateTemplateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QuerySimulateRuleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QuerySimulateTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QuerySimulateRuleRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QuerySimulateTemplateRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -333,48 +333,48 @@ func (m *QuerySimulateRuleRequest) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *QuerySimulateRuleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuerySimulateRuleRequest.Merge(m, src) +func (m *QuerySimulateTemplateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySimulateTemplateRequest.Merge(m, src) } -func (m *QuerySimulateRuleRequest) XXX_Size() int { +func (m *QuerySimulateTemplateRequest) XXX_Size() int { return m.Size() } -func (m *QuerySimulateRuleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QuerySimulateRuleRequest.DiscardUnknown(m) +func (m *QuerySimulateTemplateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySimulateTemplateRequest.DiscardUnknown(m) } -var xxx_messageInfo_QuerySimulateRuleRequest proto.InternalMessageInfo +var xxx_messageInfo_QuerySimulateTemplateRequest proto.InternalMessageInfo -func (m *QuerySimulateRuleRequest) GetPagination() *query.PageRequest { +func (m *QuerySimulateTemplateRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -func (m *QuerySimulateRuleRequest) GetDefinition() string { +func (m *QuerySimulateTemplateRequest) GetDefinition() string { if m != nil { return m.Definition } return "" } -type QuerySimulateRuleResponse struct { +type QuerySimulateTemplateResponse struct { Evaluation string `protobuf:"bytes,1,opt,name=evaluation,proto3" json:"evaluation,omitempty"` } -func (m *QuerySimulateRuleResponse) Reset() { *m = QuerySimulateRuleResponse{} } -func (m *QuerySimulateRuleResponse) String() string { return proto.CompactTextString(m) } -func (*QuerySimulateRuleResponse) ProtoMessage() {} -func (*QuerySimulateRuleResponse) Descriptor() ([]byte, []int) { +func (m *QuerySimulateTemplateResponse) Reset() { *m = QuerySimulateTemplateResponse{} } +func (m *QuerySimulateTemplateResponse) String() string { return proto.CompactTextString(m) } +func (*QuerySimulateTemplateResponse) ProtoMessage() {} +func (*QuerySimulateTemplateResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f7ace4ffc8dacc6b, []int{7} } -func (m *QuerySimulateRuleResponse) XXX_Unmarshal(b []byte) error { +func (m *QuerySimulateTemplateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QuerySimulateRuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QuerySimulateTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QuerySimulateRuleResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QuerySimulateTemplateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -384,41 +384,41 @@ func (m *QuerySimulateRuleResponse) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *QuerySimulateRuleResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuerySimulateRuleResponse.Merge(m, src) +func (m *QuerySimulateTemplateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySimulateTemplateResponse.Merge(m, src) } -func (m *QuerySimulateRuleResponse) XXX_Size() int { +func (m *QuerySimulateTemplateResponse) XXX_Size() int { return m.Size() } -func (m *QuerySimulateRuleResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QuerySimulateRuleResponse.DiscardUnknown(m) +func (m *QuerySimulateTemplateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySimulateTemplateResponse.DiscardUnknown(m) } -var xxx_messageInfo_QuerySimulateRuleResponse proto.InternalMessageInfo +var xxx_messageInfo_QuerySimulateTemplateResponse proto.InternalMessageInfo -func (m *QuerySimulateRuleResponse) GetEvaluation() string { +func (m *QuerySimulateTemplateResponse) GetEvaluation() string { if m != nil { return m.Evaluation } return "" } -type QueryRuleByIdRequest struct { +type QueryTemplateByIdRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *QueryRuleByIdRequest) Reset() { *m = QueryRuleByIdRequest{} } -func (m *QueryRuleByIdRequest) String() string { return proto.CompactTextString(m) } -func (*QueryRuleByIdRequest) ProtoMessage() {} -func (*QueryRuleByIdRequest) Descriptor() ([]byte, []int) { +func (m *QueryTemplateByIdRequest) Reset() { *m = QueryTemplateByIdRequest{} } +func (m *QueryTemplateByIdRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTemplateByIdRequest) ProtoMessage() {} +func (*QueryTemplateByIdRequest) Descriptor() ([]byte, []int) { return fileDescriptor_f7ace4ffc8dacc6b, []int{8} } -func (m *QueryRuleByIdRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryTemplateByIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryRuleByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTemplateByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryRuleByIdRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTemplateByIdRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -428,41 +428,41 @@ func (m *QueryRuleByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *QueryRuleByIdRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRuleByIdRequest.Merge(m, src) +func (m *QueryTemplateByIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTemplateByIdRequest.Merge(m, src) } -func (m *QueryRuleByIdRequest) XXX_Size() int { +func (m *QueryTemplateByIdRequest) XXX_Size() int { return m.Size() } -func (m *QueryRuleByIdRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRuleByIdRequest.DiscardUnknown(m) +func (m *QueryTemplateByIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTemplateByIdRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryRuleByIdRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryTemplateByIdRequest proto.InternalMessageInfo -func (m *QueryRuleByIdRequest) GetId() uint64 { +func (m *QueryTemplateByIdRequest) GetId() uint64 { if m != nil { return m.Id } return 0 } -type QueryRuleByIdResponse struct { - Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` +type QueryTemplateByIdResponse struct { + Template *Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` } -func (m *QueryRuleByIdResponse) Reset() { *m = QueryRuleByIdResponse{} } -func (m *QueryRuleByIdResponse) String() string { return proto.CompactTextString(m) } -func (*QueryRuleByIdResponse) ProtoMessage() {} -func (*QueryRuleByIdResponse) Descriptor() ([]byte, []int) { +func (m *QueryTemplateByIdResponse) Reset() { *m = QueryTemplateByIdResponse{} } +func (m *QueryTemplateByIdResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTemplateByIdResponse) ProtoMessage() {} +func (*QueryTemplateByIdResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f7ace4ffc8dacc6b, []int{9} } -func (m *QueryRuleByIdResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryTemplateByIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryRuleByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTemplateByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryRuleByIdResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTemplateByIdResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -472,21 +472,21 @@ func (m *QueryRuleByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryRuleByIdResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRuleByIdResponse.Merge(m, src) +func (m *QueryTemplateByIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTemplateByIdResponse.Merge(m, src) } -func (m *QueryRuleByIdResponse) XXX_Size() int { +func (m *QueryTemplateByIdResponse) XXX_Size() int { return m.Size() } -func (m *QueryRuleByIdResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRuleByIdResponse.DiscardUnknown(m) +func (m *QueryTemplateByIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTemplateByIdResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryRuleByIdResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryTemplateByIdResponse proto.InternalMessageInfo -func (m *QueryRuleByIdResponse) GetRule() *Rule { +func (m *QueryTemplateByIdResponse) GetTemplate() *Template { if m != nil { - return m.Rule + return m.Template } return nil } @@ -696,12 +696,12 @@ func init() { proto.RegisterType((*QueryParamsResponse)(nil), "warden.act.v1beta1.QueryParamsResponse") proto.RegisterType((*QueryActionsRequest)(nil), "warden.act.v1beta1.QueryActionsRequest") proto.RegisterType((*QueryActionsResponse)(nil), "warden.act.v1beta1.QueryActionsResponse") - proto.RegisterType((*QueryRulesRequest)(nil), "warden.act.v1beta1.QueryRulesRequest") - proto.RegisterType((*QueryRulesResponse)(nil), "warden.act.v1beta1.QueryRulesResponse") - proto.RegisterType((*QuerySimulateRuleRequest)(nil), "warden.act.v1beta1.QuerySimulateRuleRequest") - proto.RegisterType((*QuerySimulateRuleResponse)(nil), "warden.act.v1beta1.QuerySimulateRuleResponse") - proto.RegisterType((*QueryRuleByIdRequest)(nil), "warden.act.v1beta1.QueryRuleByIdRequest") - proto.RegisterType((*QueryRuleByIdResponse)(nil), "warden.act.v1beta1.QueryRuleByIdResponse") + proto.RegisterType((*QueryTemplatesRequest)(nil), "warden.act.v1beta1.QueryTemplatesRequest") + proto.RegisterType((*QueryTemplatesResponse)(nil), "warden.act.v1beta1.QueryTemplatesResponse") + proto.RegisterType((*QuerySimulateTemplateRequest)(nil), "warden.act.v1beta1.QuerySimulateTemplateRequest") + proto.RegisterType((*QuerySimulateTemplateResponse)(nil), "warden.act.v1beta1.QuerySimulateTemplateResponse") + proto.RegisterType((*QueryTemplateByIdRequest)(nil), "warden.act.v1beta1.QueryTemplateByIdRequest") + proto.RegisterType((*QueryTemplateByIdResponse)(nil), "warden.act.v1beta1.QueryTemplateByIdResponse") proto.RegisterType((*QueryActionsByAddressRequest)(nil), "warden.act.v1beta1.QueryActionsByAddressRequest") proto.RegisterType((*QueryActionsByAddressResponse)(nil), "warden.act.v1beta1.QueryActionsByAddressResponse") proto.RegisterType((*QueryActionByIdRequest)(nil), "warden.act.v1beta1.QueryActionByIdRequest") @@ -711,60 +711,60 @@ func init() { func init() { proto.RegisterFile("warden/act/v1beta1/query.proto", fileDescriptor_f7ace4ffc8dacc6b) } var fileDescriptor_f7ace4ffc8dacc6b = []byte{ - // 834 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0xcf, 0x6f, 0xd3, 0x48, - 0x14, 0xc7, 0x33, 0x69, 0x9b, 0xb6, 0x6f, 0x57, 0xd5, 0x76, 0xb6, 0xbb, 0x9b, 0x5a, 0xad, 0x9b, - 0x75, 0xb7, 0x49, 0xfa, 0x23, 0xf6, 0x36, 0xbb, 0x48, 0x08, 0x24, 0xa4, 0x56, 0xfc, 0x10, 0x07, - 0x04,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xd4, 0xd4, 0xd1, 0x89, - 0x9a, 0xfa, 0x74, 0xa2, 0xa6, 0xee, 0x5d, 0xad, 0xd9, 0xfe, 0xa3, 0xa0, 0xa2, 0x57, 0xdd, 0x06, - 0x46, 0x97, 0xba, 0xdc, 0xba, 0xcd, 0x9f, 0x08, 0x7b, 0xbf, 0xdd, 0xe4, 0x5e, 0xf4, 0x53, 0xaf, - 0x92, 0x11, 0xa2, 0xff, 0xbe, 0x05, 0x00, 0x00, 0xff, 0xff, 0x01, 0xf3, 0x6d, 0xde, 0x0b, 0x0b, - 0x00, 0x00, + // 837 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcf, 0x6f, 0xd3, 0x48, + 0x14, 0xce, 0xa4, 0xdd, 0xb4, 0x79, 0xbb, 0xaa, 0xba, 0xb3, 0xdd, 0xdd, 0xd4, 0xea, 0xba, 0xa9, + 0xdb, 0x6d, 0x93, 0xb4, 0xb5, 0x37, 0x59, 0x21, 0x21, 0x0e, 0x40, 0x23, 0x04, 0xe2, 0x80, 0x00, + 0x17, 0x2e, 0x48, 0x50, 0x4d, 0x62, 0x37, 0x58, 0x4a, 0xec, 0x34, 0x76, 0x0a, 0xb9, 0x22, 0x84, + 0x38, 0x56, 0x42, 0xe2, 0x82, 0xc4, 0x85, 0x9e, 0xf9, 0x13, 0x10, 0xc7, 0x1e, 0x2b, 0x71, 0xe1, + 0x84, 0x50, 0xcb, 0x1f, 0x82, 0x32, 0xf3, 0x9c, 0x38, 0x3f, 0xec, 0x04, 0x29, 0x07, 0x2e, 0x55, + 0x32, 0xf3, 0xbd, 0xef, 0x7d, 0xef, 0x9b, 0x99, 0x2f, 0x05, 0xf9, 0x09, 0x6b, 0x18, 0xa6, 0xad, + 0xb1, 0xb2, 0xa7, 0x1d, 0xe6, 0x4b, 0xa6, 0xc7, 0xf2, 0xda, 0x41, 0xd3, 0x6c, 0xb4,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x97, 0xbb, 0x62, 0x62, 0xad, 0x1e, 0xa8, 0x54, 0xde, 0x10, 0x58, 0xe8, + 0xe5, 0x47, 0xc5, 0x37, 0x86, 0x34, 0xd8, 0x18, 0xd9, 0x40, 0x14, 0x07, 0x3b, 0xd0, 0x4b, 0x30, + 0x23, 0xac, 0x75, 0x53, 0xf1, 0xf4, 0x54, 0xd8, 0xec, 0xa2, 0x3d, 0xce, 0xee, 0x17, 0x28, 0x7b, + 0xf0, 0x27, 0x17, 0x77, 0x0f, 0xad, 0x9f, 0xf8, 0xf8, 0xef, 0x08, 0xfc, 0xd5, 0xdf, 0x61, 0xd2, + 0x06, 0x5c, 0x85, 0xa4, 0x7f, 0x75, 0x7c, 0x0b, 0x96, 0x86, 0x59, 0xe0, 0x4b, 0x40, 0x13, 0xba, + 0x45, 0xca, 0x0b, 0x02, 0x4b, 0x5c, 0xe5, 0xae, 0x55, 0x6b, 0xb6, 0x97, 0x7c, 0xe8, 0x84, 0xed, + 0xa0, 0x32, 0x80, 0x61, 0xee, 0x5b, 0xb6, 0xc5, 0x79, 0xe2, 0x69, 0x92, 0x49, 0xea, 0x81, 0x15, + 0xe5, 0x0a, 0xfc, 0x13, 0xa2, 0x03, 0x4d, 0x93, 0x01, 0xcc, 0x43, 0x56, 0x6d, 0x76, 0x85, 0x24, + 0xf5, 0xc0, 0x8a, 0x92, 0x83, 0x54, 0x8f, 0xdd, 0xc5, 0xd6, 0x4d, 0xc3, 0x1f, 0x62, 0x0e, 0xe2, + 0x96, 0xc1, 0x6b, 0xa6, 0xf5, 0xb8, 0x65, 0x28, 0xf7, 0x61, 0x71, 0x08, 0xb6, 0xf3, 0xa0, 0x66, + 0x7d, 0x7f, 0x70, 0xde, 0x48, 0x4f, 0xf5, 0x0e, 0x5a, 0xf9, 0xe8, 0x9b, 0x89, 0x37, 0xbe, 0xd8, + 0xda, 0x31, 0x8c, 0x86, 0xe9, 0x4e, 0xfa, 0x6e, 0xd1, 0x14, 0xcc, 0x30, 0x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 0xd7, 0xf9, 0x2f, 0x5d, 0x8d, 0xd0, 0xe9, 0x62, 0x31, 0x7d, 0x4b, 0xe0, 0xb7, + 0x60, 0x16, 0xd1, 0xad, 0x91, 0x8e, 0x04, 0xee, 0xbc, 0xb4, 0x3d, 0x26, 0x1a, 0xa5, 0xe5, 0xb9, + 0xb4, 0x4d, 0x9a, 0x1d, 0xc3, 0xc2, 0xbd, 0x52, 0x6b, 0xcf, 0x32, 0xe8, 0x7b, 0x02, 0xf3, 0xfd, + 0x89, 0x10, 0xe1, 0x63, 0x48, 0xfe, 0x45, 0xf8, 0x18, 0x16, 0x37, 0xca, 0x05, 0x2e, 0x56, 0xa3, + 0xdb, 0xa3, 0x2f, 0x60, 0x5b, 0xab, 0x9f, 0x83, 0xaf, 0x09, 0x40, 0xf7, 0xc9, 0xd3, 0xdc, 0x88, + 0xc6, 0x41, 0x37, 0x37, 0xc7, 0xc2, 0xa2, 0x3c, 0x8d, 0xcb, 0xcb, 0xd2, 0x8d, 0x91, 0xf2, 0x84, + 0x93, 0xc5, 0x47, 0x27, 0x67, 0x32, 0x39, 0x3d, 0x93, 0xc9, 0xd7, 0x33, 0x99, 0x1c, 0x9d, 0xcb, + 0xb1, 0xd3, 0x73, 0x39, 0xf6, 0xf9, 0x5c, 0x8e, 0x3d, 0xb8, 0x56, 0xb1, 0xbc, 0xc7, 0xcd, 0x92, + 0x5a, 0x76, 0x6a, 0x58, 0xbd, 0xdd, 0xc7, 0xd6, 0x4f, 0xfe, 0x54, 0x1c, 0x55, 0xab, 0x6e, 0xba, + 0xfe, 0xbf, 0x92, 0xa5, 0x04, 0x07, 0xfd, 0xff, 0x3d, 0x00, 0x00, 0xff, 0xff, 0x97, 0x61, 0x03, + 0xcb, 0x6b, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -783,12 +783,12 @@ type QueryClient interface { Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of Actions items. Actions(ctx context.Context, in *QueryActionsRequest, opts ...grpc.CallOption) (*QueryActionsResponse, error) - // Queries a list of Rules items. - Rules(ctx context.Context, in *QueryRulesRequest, opts ...grpc.CallOption) (*QueryRulesResponse, error) - // Queries to simulate a Rule - SimulateRule(ctx context.Context, in *QuerySimulateRuleRequest, opts ...grpc.CallOption) (*QuerySimulateRuleResponse, error) - // Queries a list of RuleById items. - RuleById(ctx context.Context, in *QueryRuleByIdRequest, opts ...grpc.CallOption) (*QueryRuleByIdResponse, error) + // Queries a list of Templates items. + Templates(ctx context.Context, in *QueryTemplatesRequest, opts ...grpc.CallOption) (*QueryTemplatesResponse, error) + // Queries to simulate a Template + SimulateTemplate(ctx context.Context, in *QuerySimulateTemplateRequest, opts ...grpc.CallOption) (*QuerySimulateTemplateResponse, error) + // Queries a list of TemplateById items. + TemplateById(ctx context.Context, in *QueryTemplateByIdRequest, opts ...grpc.CallOption) (*QueryTemplateByIdResponse, error) // Queries a list of Actions items by one participant address. ActionsByAddress(ctx context.Context, in *QueryActionsByAddressRequest, opts ...grpc.CallOption) (*QueryActionsByAddressResponse, error) ActionById(ctx context.Context, in *QueryActionByIdRequest, opts ...grpc.CallOption) (*QueryActionByIdResponse, error) @@ -820,27 +820,27 @@ func (c *queryClient) Actions(ctx context.Context, in *QueryActionsRequest, opts return out, nil } -func (c *queryClient) Rules(ctx context.Context, in *QueryRulesRequest, opts ...grpc.CallOption) (*QueryRulesResponse, error) { - out := new(QueryRulesResponse) - err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Query/Rules", in, out, opts...) +func (c *queryClient) Templates(ctx context.Context, in *QueryTemplatesRequest, opts ...grpc.CallOption) (*QueryTemplatesResponse, error) { + out := new(QueryTemplatesResponse) + err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Query/Templates", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) SimulateRule(ctx context.Context, in *QuerySimulateRuleRequest, opts ...grpc.CallOption) (*QuerySimulateRuleResponse, error) { - out := new(QuerySimulateRuleResponse) - err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Query/SimulateRule", in, out, opts...) +func (c *queryClient) SimulateTemplate(ctx context.Context, in *QuerySimulateTemplateRequest, opts ...grpc.CallOption) (*QuerySimulateTemplateResponse, error) { + out := new(QuerySimulateTemplateResponse) + err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Query/SimulateTemplate", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) RuleById(ctx context.Context, in *QueryRuleByIdRequest, opts ...grpc.CallOption) (*QueryRuleByIdResponse, error) { - out := new(QueryRuleByIdResponse) - err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Query/RuleById", in, out, opts...) +func (c *queryClient) TemplateById(ctx context.Context, in *QueryTemplateByIdRequest, opts ...grpc.CallOption) (*QueryTemplateByIdResponse, error) { + out := new(QueryTemplateByIdResponse) + err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Query/TemplateById", in, out, opts...) if err != nil { return nil, err } @@ -871,12 +871,12 @@ type QueryServer interface { Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of Actions items. Actions(context.Context, *QueryActionsRequest) (*QueryActionsResponse, error) - // Queries a list of Rules items. - Rules(context.Context, *QueryRulesRequest) (*QueryRulesResponse, error) - // Queries to simulate a Rule - SimulateRule(context.Context, *QuerySimulateRuleRequest) (*QuerySimulateRuleResponse, error) - // Queries a list of RuleById items. - RuleById(context.Context, *QueryRuleByIdRequest) (*QueryRuleByIdResponse, error) + // Queries a list of Templates items. + Templates(context.Context, *QueryTemplatesRequest) (*QueryTemplatesResponse, error) + // Queries to simulate a Template + SimulateTemplate(context.Context, *QuerySimulateTemplateRequest) (*QuerySimulateTemplateResponse, error) + // Queries a list of TemplateById items. + TemplateById(context.Context, *QueryTemplateByIdRequest) (*QueryTemplateByIdResponse, error) // Queries a list of Actions items by one participant address. ActionsByAddress(context.Context, *QueryActionsByAddressRequest) (*QueryActionsByAddressResponse, error) ActionById(context.Context, *QueryActionByIdRequest) (*QueryActionByIdResponse, error) @@ -892,14 +892,14 @@ func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsReq func (*UnimplementedQueryServer) Actions(ctx context.Context, req *QueryActionsRequest) (*QueryActionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Actions not implemented") } -func (*UnimplementedQueryServer) Rules(ctx context.Context, req *QueryRulesRequest) (*QueryRulesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Rules not implemented") +func (*UnimplementedQueryServer) Templates(ctx context.Context, req *QueryTemplatesRequest) (*QueryTemplatesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Templates not implemented") } -func (*UnimplementedQueryServer) SimulateRule(ctx context.Context, req *QuerySimulateRuleRequest) (*QuerySimulateRuleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SimulateRule not implemented") +func (*UnimplementedQueryServer) SimulateTemplate(ctx context.Context, req *QuerySimulateTemplateRequest) (*QuerySimulateTemplateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SimulateTemplate not implemented") } -func (*UnimplementedQueryServer) RuleById(ctx context.Context, req *QueryRuleByIdRequest) (*QueryRuleByIdResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RuleById not implemented") +func (*UnimplementedQueryServer) TemplateById(ctx context.Context, req *QueryTemplateByIdRequest) (*QueryTemplateByIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TemplateById not implemented") } func (*UnimplementedQueryServer) ActionsByAddress(ctx context.Context, req *QueryActionsByAddressRequest) (*QueryActionsByAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ActionsByAddress not implemented") @@ -948,56 +948,56 @@ func _Query_Actions_Handler(srv interface{}, ctx context.Context, dec func(inter return interceptor(ctx, in, info, handler) } -func _Query_Rules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRulesRequest) +func _Query_Templates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTemplatesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Rules(ctx, in) + return srv.(QueryServer).Templates(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/warden.act.v1beta1.Query/Rules", + FullMethod: "/warden.act.v1beta1.Query/Templates", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Rules(ctx, req.(*QueryRulesRequest)) + return srv.(QueryServer).Templates(ctx, req.(*QueryTemplatesRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_SimulateRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QuerySimulateRuleRequest) +func _Query_SimulateTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuerySimulateTemplateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).SimulateRule(ctx, in) + return srv.(QueryServer).SimulateTemplate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/warden.act.v1beta1.Query/SimulateRule", + FullMethod: "/warden.act.v1beta1.Query/SimulateTemplate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).SimulateRule(ctx, req.(*QuerySimulateRuleRequest)) + return srv.(QueryServer).SimulateTemplate(ctx, req.(*QuerySimulateTemplateRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_RuleById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRuleByIdRequest) +func _Query_TemplateById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTemplateByIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).RuleById(ctx, in) + return srv.(QueryServer).TemplateById(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/warden.act.v1beta1.Query/RuleById", + FullMethod: "/warden.act.v1beta1.Query/TemplateById", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).RuleById(ctx, req.(*QueryRuleByIdRequest)) + return srv.(QueryServer).TemplateById(ctx, req.(*QueryTemplateByIdRequest)) } return interceptor(ctx, in, info, handler) } @@ -1052,16 +1052,16 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_Actions_Handler, }, { - MethodName: "Rules", - Handler: _Query_Rules_Handler, + MethodName: "Templates", + Handler: _Query_Templates_Handler, }, { - MethodName: "SimulateRule", - Handler: _Query_SimulateRule_Handler, + MethodName: "SimulateTemplate", + Handler: _Query_SimulateTemplate_Handler, }, { - MethodName: "RuleById", - Handler: _Query_RuleById_Handler, + MethodName: "TemplateById", + Handler: _Query_TemplateById_Handler, }, { MethodName: "ActionsByAddress", @@ -1216,7 +1216,7 @@ func (m *QueryActionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryRulesRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTemplatesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1226,12 +1226,12 @@ func (m *QueryRulesRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryRulesRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTemplatesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryRulesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTemplatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1251,7 +1251,7 @@ func (m *QueryRulesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryRulesResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTemplatesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1261,20 +1261,20 @@ func (m *QueryRulesResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryRulesResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTemplatesResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryRulesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTemplatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Templates) > 0 { + for iNdEx := len(m.Templates) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Templates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1300,7 +1300,7 @@ func (m *QueryRulesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QuerySimulateRuleRequest) Marshal() (dAtA []byte, err error) { +func (m *QuerySimulateTemplateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1310,12 +1310,12 @@ func (m *QuerySimulateRuleRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QuerySimulateRuleRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QuerySimulateTemplateRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QuerySimulateRuleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QuerySimulateTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1342,7 +1342,7 @@ func (m *QuerySimulateRuleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QuerySimulateRuleResponse) Marshal() (dAtA []byte, err error) { +func (m *QuerySimulateTemplateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1352,12 +1352,12 @@ func (m *QuerySimulateRuleResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QuerySimulateRuleResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QuerySimulateTemplateResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QuerySimulateRuleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QuerySimulateTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1372,7 +1372,7 @@ func (m *QuerySimulateRuleResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *QueryRuleByIdRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTemplateByIdRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1382,12 +1382,12 @@ func (m *QueryRuleByIdRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryRuleByIdRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTemplateByIdRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryRuleByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTemplateByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1400,7 +1400,7 @@ func (m *QueryRuleByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryRuleByIdResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTemplateByIdResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1410,19 +1410,19 @@ func (m *QueryRuleByIdResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryRuleByIdResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTemplateByIdResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryRuleByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTemplateByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Rule != nil { + if m.Template != nil { { - size, err := m.Rule.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1657,7 +1657,7 @@ func (m *QueryActionsResponse) Size() (n int) { return n } -func (m *QueryRulesRequest) Size() (n int) { +func (m *QueryTemplatesRequest) Size() (n int) { if m == nil { return 0 } @@ -1670,7 +1670,7 @@ func (m *QueryRulesRequest) Size() (n int) { return n } -func (m *QueryRulesResponse) Size() (n int) { +func (m *QueryTemplatesResponse) Size() (n int) { if m == nil { return 0 } @@ -1680,8 +1680,8 @@ func (m *QueryRulesResponse) Size() (n int) { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } - if len(m.Rules) > 0 { - for _, e := range m.Rules { + if len(m.Templates) > 0 { + for _, e := range m.Templates { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -1689,7 +1689,7 @@ func (m *QueryRulesResponse) Size() (n int) { return n } -func (m *QuerySimulateRuleRequest) Size() (n int) { +func (m *QuerySimulateTemplateRequest) Size() (n int) { if m == nil { return 0 } @@ -1706,7 +1706,7 @@ func (m *QuerySimulateRuleRequest) Size() (n int) { return n } -func (m *QuerySimulateRuleResponse) Size() (n int) { +func (m *QuerySimulateTemplateResponse) Size() (n int) { if m == nil { return 0 } @@ -1719,7 +1719,7 @@ func (m *QuerySimulateRuleResponse) Size() (n int) { return n } -func (m *QueryRuleByIdRequest) Size() (n int) { +func (m *QueryTemplateByIdRequest) Size() (n int) { if m == nil { return 0 } @@ -1731,14 +1731,14 @@ func (m *QueryRuleByIdRequest) Size() (n int) { return n } -func (m *QueryRuleByIdResponse) Size() (n int) { +func (m *QueryTemplateByIdResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Rule != nil { - l = m.Rule.Size() + if m.Template != nil { + l = m.Template.Size() n += 1 + l + sovQuery(uint64(l)) } return n @@ -2153,7 +2153,7 @@ func (m *QueryActionsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryRulesRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTemplatesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2176,10 +2176,10 @@ func (m *QueryRulesRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTemplatesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTemplatesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2239,7 +2239,7 @@ func (m *QueryRulesRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryRulesResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTemplatesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2262,10 +2262,10 @@ func (m *QueryRulesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryRulesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTemplatesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTemplatesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2306,7 +2306,7 @@ func (m *QueryRulesResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Templates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2333,8 +2333,8 @@ func (m *QueryRulesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Rules = append(m.Rules, Rule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Templates = append(m.Templates, Template{}) + if err := m.Templates[len(m.Templates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2359,7 +2359,7 @@ func (m *QueryRulesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QuerySimulateRuleRequest) Unmarshal(dAtA []byte) error { +func (m *QuerySimulateTemplateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2382,10 +2382,10 @@ func (m *QuerySimulateRuleRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QuerySimulateRuleRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QuerySimulateTemplateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QuerySimulateRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QuerySimulateTemplateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2477,7 +2477,7 @@ func (m *QuerySimulateRuleRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QuerySimulateRuleResponse) Unmarshal(dAtA []byte) error { +func (m *QuerySimulateTemplateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2500,10 +2500,10 @@ func (m *QuerySimulateRuleResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QuerySimulateRuleResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QuerySimulateTemplateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QuerySimulateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QuerySimulateTemplateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2559,7 +2559,7 @@ func (m *QuerySimulateRuleResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryRuleByIdRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTemplateByIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2582,10 +2582,10 @@ func (m *QueryRuleByIdRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryRuleByIdRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTemplateByIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRuleByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTemplateByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2628,7 +2628,7 @@ func (m *QueryRuleByIdRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryRuleByIdResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTemplateByIdResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2651,15 +2651,15 @@ func (m *QueryRuleByIdResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryRuleByIdResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTemplateByIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRuleByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTemplateByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2686,10 +2686,10 @@ func (m *QueryRuleByIdResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Rule == nil { - m.Rule = &Rule{} + if m.Template == nil { + m.Template = &Template{} } - if err := m.Rule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/warden/x/act/types/v1beta1/query.pb.gw.go b/warden/x/act/types/v1beta1/query.pb.gw.go index 4b6999f91..8740b471e 100644 --- a/warden/x/act/types/v1beta1/query.pb.gw.go +++ b/warden/x/act/types/v1beta1/query.pb.gw.go @@ -88,109 +88,109 @@ func local_request_Query_Actions_0(ctx context.Context, marshaler runtime.Marsha } var ( - filter_Query_Rules_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_Templates_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_Rules_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryRulesRequest +func request_Query_Templates_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTemplatesRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Rules_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Templates_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.Rules(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Templates(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_Rules_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryRulesRequest +func local_request_Query_Templates_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTemplatesRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Rules_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Templates_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.Rules(ctx, &protoReq) + msg, err := server.Templates(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_SimulateRule_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_SimulateTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_SimulateRule_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QuerySimulateRuleRequest +func request_Query_SimulateTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QuerySimulateTemplateRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_SimulateRule_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_SimulateTemplate_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.SimulateRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.SimulateTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_SimulateRule_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QuerySimulateRuleRequest +func local_request_Query_SimulateTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QuerySimulateTemplateRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_SimulateRule_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_SimulateTemplate_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.SimulateRule(ctx, &protoReq) + msg, err := server.SimulateTemplate(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_RuleById_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_TemplateById_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_RuleById_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryRuleByIdRequest +func request_Query_TemplateById_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTemplateByIdRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_RuleById_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_TemplateById_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.RuleById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.TemplateById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_RuleById_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryRuleByIdRequest +func local_request_Query_TemplateById_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTemplateByIdRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_RuleById_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_TemplateById_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.RuleById(ctx, &protoReq) + msg, err := server.TemplateById(ctx, &protoReq) return msg, metadata, err } @@ -319,7 +319,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_Rules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Templates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -330,7 +330,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Rules_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Templates_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -338,11 +338,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Rules_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Templates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_SimulateRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_SimulateTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -353,7 +353,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_SimulateRule_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_SimulateTemplate_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -361,11 +361,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_SimulateRule_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_SimulateTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_RuleById_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_TemplateById_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -376,7 +376,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_RuleById_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_TemplateById_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -384,7 +384,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_RuleById_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_TemplateById_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -515,7 +515,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_Rules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Templates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -524,18 +524,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_Rules_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_Templates_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_Rules_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Templates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_SimulateRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_SimulateTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -544,18 +544,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_SimulateRule_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_SimulateTemplate_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_SimulateRule_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_SimulateTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_RuleById_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_TemplateById_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -564,14 +564,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_RuleById_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_TemplateById_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_RuleById_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_TemplateById_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -623,11 +623,11 @@ var ( pattern_Query_Actions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"wardenprotocol", "warden", "act", "actions"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Rules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"wardenprotocol", "warden", "act", "rules"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Templates_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"wardenprotocol", "warden", "act", "templates"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_SimulateRule_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"wardenprotocol", "warden", "act", "simulate"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_SimulateTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"wardenprotocol", "warden", "act", "simulate"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RuleById_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"wardenprotocol", "warden", "act", "rule_by_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_TemplateById_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"wardenprotocol", "warden", "act", "template_by_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_ActionsByAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"wardenprotocol", "warden", "act", "actions_by_address"}, "", runtime.AssumeColonVerbOpt(false))) @@ -639,11 +639,11 @@ var ( forward_Query_Actions_0 = runtime.ForwardResponseMessage - forward_Query_Rules_0 = runtime.ForwardResponseMessage + forward_Query_Templates_0 = runtime.ForwardResponseMessage - forward_Query_SimulateRule_0 = runtime.ForwardResponseMessage + forward_Query_SimulateTemplate_0 = runtime.ForwardResponseMessage - forward_Query_RuleById_0 = runtime.ForwardResponseMessage + forward_Query_TemplateById_0 = runtime.ForwardResponseMessage forward_Query_ActionsByAddress_0 = runtime.ForwardResponseMessage diff --git a/warden/x/act/types/v1beta1/registry.go b/warden/x/act/types/v1beta1/registry.go index 5f1c88fb9..9b8365ecf 100644 --- a/warden/x/act/types/v1beta1/registry.go +++ b/warden/x/act/types/v1beta1/registry.go @@ -7,34 +7,34 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -// RulesRegistry stores the mapping between Msg types and the function the -// provides the approve and reject Rules for them. +// TemplatesRegistry stores the mapping between Msg types and the function the +// provides the approve and reject Templates for them. // -// The registered Rules is fetched only once during Action creation. (The +// The registered Templates is fetched only once during Action creation. (The // provider function is not called every time a new vote is added to an Action). // // The provider function receives the context.Context of the current execution. // Optionally, it can return a new context.Context that will be used further -// during the Rule evaluation. This is especially useful for modules that +// during the Expression evaluation. This is especially useful for modules that // want to enrich the context for their Expanders. -type RulesRegistry struct { +type TemplatesRegistry struct { p map[string]ProviderFnWithCtx } -type ProviderFnG[T sdk.Msg] func(context.Context, T) (Rule, Rule, error) -type ProviderFnWithCtxG[T sdk.Msg] func(context.Context, T) (context.Context, Rule, Rule, error) +type ProviderFnG[T sdk.Msg] func(context.Context, T) (Template, Template, error) +type ProviderFnWithCtxG[T sdk.Msg] func(context.Context, T) (context.Context, Template, Template, error) type registry interface { Register(typeUrl string, fn ProviderFn) } -// Register is a type-safe version of RulesRegistry.Register that uses +// Register is a type-safe version of TemplatesRegistry.Register that uses // generics to ensure that the callback function accepts a sdk.Msg of the // correct type. func Register[T sdk.Msg](reg registry, fn ProviderFnG[T]) { var msg T typeUrl := sdk.MsgTypeURL(msg) - reg.Register(typeUrl, func(ctx context.Context, m sdk.Msg) (Rule, Rule, error) { + reg.Register(typeUrl, func(ctx context.Context, m sdk.Msg) (Template, Template, error) { return fn(ctx, m.(T)) }) } @@ -43,23 +43,23 @@ type registryWithCtx interface { RegisterCtx(typeUrl string, fn ProviderFnWithCtx) } -// RegisterCtx is a type-safe version of RulesRegistry.RegisterCtx that uses +// RegisterCtx is a type-safe version of TemplatesRegistry.RegisterCtx that uses // generics to ensure that the callback function accepts a sdk.Msg of the // correct type. func RegisterCtx[T sdk.Msg](reg registryWithCtx, fn ProviderFnWithCtxG[T]) { var msg T typeUrl := sdk.MsgTypeURL(msg) - reg.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Rule, Rule, error) { + reg.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Template, Template, error) { return fn(ctx, m.(T)) }) } -type ProviderFn func(context.Context, sdk.Msg) (Rule, Rule, error) -type ProviderFnWithCtx func(context.Context, sdk.Msg) (context.Context, Rule, Rule, error) +type ProviderFn func(context.Context, sdk.Msg) (Template, Template, error) +type ProviderFnWithCtx func(context.Context, sdk.Msg) (context.Context, Template, Template, error) -// NewRulesRegistry returns an empty initialized *RulesRegistry. -func NewRulesRegistry() *RulesRegistry { - return &RulesRegistry{ +// NewTemplatesRegistry returns an empty initialized *TemplatesRegistry. +func NewTemplatesRegistry() *TemplatesRegistry { + return &TemplatesRegistry{ p: make(map[string]ProviderFnWithCtx), } } @@ -67,8 +67,8 @@ func NewRulesRegistry() *RulesRegistry { // Register registers the ProviderFn for the typeUrl. Only one // ProviderMsg can be registered for each typeUrl, attempting to register // a provider for the same typeUrl twice will panic. -func (p *RulesRegistry) Register(typeUrl string, fn ProviderFn) { - p.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Rule, Rule, error) { +func (p *TemplatesRegistry) Register(typeUrl string, fn ProviderFn) { + p.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Template, Template, error) { approve, reject, err := fn(ctx, m) return ctx, approve, reject, err }) @@ -77,7 +77,7 @@ func (p *RulesRegistry) Register(typeUrl string, fn ProviderFn) { // RegisterCtx registers the ProviderFnWithCtx for the typeUrl. Only one // ProviderMsg can be registered for each typeUrl, attempting to register // a provider for the same typeUrl twice will panic. -func (p *RulesRegistry) RegisterCtx(typeUrl string, fn ProviderFnWithCtx) { +func (p *TemplatesRegistry) RegisterCtx(typeUrl string, fn ProviderFnWithCtx) { if len(typeUrl) == 0 { panic(fmt.Errorf("typeUrl cannot be empty")) } @@ -87,7 +87,7 @@ func (p *RulesRegistry) RegisterCtx(typeUrl string, fn ProviderFnWithCtx) { } if _, found := p.p[typeUrl]; found { - panic(fmt.Errorf("RuleRegistry already has a handler for %s", typeUrl)) + panic(fmt.Errorf("TemplateRegistry already has a handler for %s", typeUrl)) } p.p[typeUrl] = fn @@ -97,10 +97,10 @@ func (p *RulesRegistry) RegisterCtx(typeUrl string, fn ProviderFnWithCtx) { // // An error is returned if there are no provider functions registered for the // sdk.Msg type. -func (p *RulesRegistry) Get(ctx context.Context, msg sdk.Msg) (context.Context, Rule, Rule, error) { +func (p *TemplatesRegistry) Get(ctx context.Context, msg sdk.Msg) (context.Context, Template, Template, error) { typeUrl := sdk.MsgTypeURL(msg) if fn, found := p.p[typeUrl]; found { return fn(ctx, msg) } - return nil, Rule{}, Rule{}, fmt.Errorf("no rule provider registered for %s", typeUrl) + return nil, Template{}, Template{}, fmt.Errorf("no Template provider registered for %s", typeUrl) } diff --git a/warden/x/act/types/v1beta1/rule.go b/warden/x/act/types/v1beta1/rule.go deleted file mode 100644 index 4cdcd2315..000000000 --- a/warden/x/act/types/v1beta1/rule.go +++ /dev/null @@ -1,35 +0,0 @@ -package v1beta1 - -import ( - "context" - - "cosmossdk.io/errors" - "github.com/warden-protocol/wardenprotocol/shield" - "github.com/warden-protocol/wardenprotocol/shield/object" -) - -func (r *Rule) Eval(ctx context.Context, env shield.Environment) (bool, error) { - obj := shield.Eval(r.Expression, env) - - if obj.Type() == object.ERROR_OBJ { - return false, errors.Wrapf(ErrRuleEvaluationFailed, "result: %s", obj.Inspect()) - } - - if obj.Type() != object.BOOLEAN_OBJ { - return false, errors.Wrapf(ErrRuleNotBoolean, "expected boolean, got %s (%s)", obj.Type(), obj.Inspect()) - } - - return obj.(*object.Boolean).Value, nil -} - -func (r *Rule) Validate() error { - if len(r.Creator) == 0 { - return errors.Wrapf(ErrInvalidRule, "creator is required") - } - - if len(r.Name) == 0 { - return errors.Wrapf(ErrInvalidRule, "name is required") - } - - return nil -} diff --git a/warden/x/act/types/v1beta1/template.go b/warden/x/act/types/v1beta1/template.go new file mode 100644 index 000000000..b5fe2f819 --- /dev/null +++ b/warden/x/act/types/v1beta1/template.go @@ -0,0 +1,35 @@ +package v1beta1 + +import ( + "context" + + "cosmossdk.io/errors" + "github.com/warden-protocol/wardenprotocol/shield" + "github.com/warden-protocol/wardenprotocol/shield/object" +) + +func (r *Template) Eval(ctx context.Context, env shield.Environment) (bool, error) { + obj := shield.Eval(r.Expression, env) + + if obj.Type() == object.ERROR_OBJ { + return false, errors.Wrapf(ErrTemplateEvaluationFailed, "result: %s", obj.Inspect()) + } + + if obj.Type() != object.BOOLEAN_OBJ { + return false, errors.Wrapf(ErrTemplateNotBoolean, "expected boolean, got %s (%s)", obj.Type(), obj.Inspect()) + } + + return obj.(*object.Boolean).Value, nil +} + +func (r *Template) Validate() error { + if len(r.Creator) == 0 { + return errors.Wrapf(ErrInvalidTemplate, "creator is required") + } + + if len(r.Name) == 0 { + return errors.Wrapf(ErrInvalidTemplate, "name is required") + } + + return nil +} diff --git a/warden/x/act/types/v1beta1/rule.pb.go b/warden/x/act/types/v1beta1/template.pb.go similarity index 58% rename from warden/x/act/types/v1beta1/rule.pb.go rename to warden/x/act/types/v1beta1/template.pb.go index 092eea974..3740ae66c 100644 --- a/warden/x/act/types/v1beta1/rule.pb.go +++ b/warden/x/act/types/v1beta1/template.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: warden/act/v1beta1/rule.proto +// source: warden/act/v1beta1/template.proto package v1beta1 @@ -24,26 +24,26 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type Rule struct { +type Template struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // The expression to be evaluated for this rule. + // The expression to be evaluated for this template. Expression *ast.Expression `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression,omitempty"` } -func (m *Rule) Reset() { *m = Rule{} } -func (m *Rule) String() string { return proto.CompactTextString(m) } -func (*Rule) ProtoMessage() {} -func (*Rule) Descriptor() ([]byte, []int) { - return fileDescriptor_53ebeb86c5a0f3ba, []int{0} +func (m *Template) Reset() { *m = Template{} } +func (m *Template) String() string { return proto.CompactTextString(m) } +func (*Template) ProtoMessage() {} +func (*Template) Descriptor() ([]byte, []int) { + return fileDescriptor_97dfdf8dfcd7e7bf, []int{0} } -func (m *Rule) XXX_Unmarshal(b []byte) error { +func (m *Template) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Template) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rule.Marshal(b, m, deterministic) + return xxx_messageInfo_Template.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -53,40 +53,40 @@ func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *Rule) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rule.Merge(m, src) +func (m *Template) XXX_Merge(src proto.Message) { + xxx_messageInfo_Template.Merge(m, src) } -func (m *Rule) XXX_Size() int { +func (m *Template) XXX_Size() int { return m.Size() } -func (m *Rule) XXX_DiscardUnknown() { - xxx_messageInfo_Rule.DiscardUnknown(m) +func (m *Template) XXX_DiscardUnknown() { + xxx_messageInfo_Template.DiscardUnknown(m) } -var xxx_messageInfo_Rule proto.InternalMessageInfo +var xxx_messageInfo_Template proto.InternalMessageInfo -func (m *Rule) GetId() uint64 { +func (m *Template) GetId() uint64 { if m != nil { return m.Id } return 0 } -func (m *Rule) GetCreator() string { +func (m *Template) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *Rule) GetName() string { +func (m *Template) GetName() string { if m != nil { return m.Name } return "" } -func (m *Rule) GetExpression() *ast.Expression { +func (m *Template) GetExpression() *ast.Expression { if m != nil { return m.Expression } @@ -94,33 +94,33 @@ func (m *Rule) GetExpression() *ast.Expression { } func init() { - proto.RegisterType((*Rule)(nil), "warden.act.v1beta1.Rule") + proto.RegisterType((*Template)(nil), "warden.act.v1beta1.Template") } -func init() { proto.RegisterFile("warden/act/v1beta1/rule.proto", fileDescriptor_53ebeb86c5a0f3ba) } +func init() { proto.RegisterFile("warden/act/v1beta1/template.proto", fileDescriptor_97dfdf8dfcd7e7bf) } -var fileDescriptor_53ebeb86c5a0f3ba = []byte{ - // 260 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x41, 0x4a, 0xc4, 0x30, - 0x18, 0x85, 0x9b, 0x5a, 0x14, 0x23, 0xb8, 0x08, 0x22, 0x75, 0xc0, 0x50, 0x5c, 0x75, 0x63, 0xc2, - 0x28, 0x78, 0x00, 0xd1, 0x0b, 0x74, 0xe9, 0x42, 0x48, 0xd3, 0xdf, 0x4e, 0x20, 0xd3, 0x94, 0x24, - 0xd5, 0x19, 0xf0, 0x10, 0x1e, 0xcb, 0xe5, 0x2c, 0x5d, 0x4a, 0x7b, 0x11, 0x99, 0x64, 0x46, 0xc4, - 0x45, 0x20, 0xef, 0xbd, 0x0f, 0x5e, 0xf2, 0xf0, 0xe5, 0x9b, 0xb0, 0x0d, 0x74, 0x5c, 0x48, 0xcf, - 0x5f, 0xe7, 0x35, 0x78, 0x31, 0xe7, 0x76, 0xd0, 0xc0, 0x7a, 0x6b, 0xbc, 0x21, 0x24, 0xc6, 0x4c, - 0x48, 0xcf, 0x76, 0xf1, 0xec, 0xa2, 0x35, 0xa6, 0xd5, 0xc0, 0x03, 0x51, 0x0f, 0x2f, 0x5c, 0x74, - 0xeb, 0x88, 0xcf, 0xce, 0xdc, 0x42, 0x81, 0x6e, 0xb8, 0x70, 0x7e, 0x7b, 0xa2, 0x7b, 0xf5, 0x8e, - 0xb3, 0x6a, 0xd0, 0x40, 0x4e, 0x71, 0xaa, 0x9a, 0x1c, 0x15, 0xa8, 0xcc, 0xaa, 0x54, 0x35, 0x24, - 0xc7, 0x47, 0xd2, 0x82, 0xf0, 0xc6, 0xe6, 0x69, 0x81, 0xca, 0xe3, 0x6a, 0x2f, 0x09, 0xc1, 0x59, - 0x27, 0x96, 0x90, 0x1f, 0x04, 0x3b, 0xdc, 0xc9, 0x1d, 0xc6, 0xb0, 0xea, 0x2d, 0x38, 0xa7, 0x4c, - 0x97, 0x67, 0x05, 0x2a, 0x4f, 0x6e, 0xce, 0x59, 0x2c, 0x64, 0xdb, 0xb2, 0xc7, 0xdf, 0xb4, 0xfa, - 0x43, 0xde, 0x3f, 0x7f, 0x8e, 0x14, 0x6d, 0x46, 0x8a, 0xbe, 0x47, 0x8a, 0x3e, 0x26, 0x9a, 0x6c, - 0x26, 0x9a, 0x7c, 0x4d, 0x34, 0x79, 0x7a, 0x68, 0x95, 0x5f, 0x0c, 0x35, 0x93, 0x66, 0xc9, 0xe3, - 0x3f, 0xaf, 0xc3, 0x83, 0xa5, 0xd1, 0x3b, 0xfd, 0x4f, 0xf2, 0x55, 0xd8, 0xc9, 0xaf, 0x7b, 0x70, - 0xfb, 0xb5, 0xea, 0xc3, 0x00, 0xdd, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0x48, 0x45, 0x54, 0x9f, - 0x4a, 0x01, 0x00, 0x00, +var fileDescriptor_97dfdf8dfcd7e7bf = []byte{ + // 266 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xcd, 0x4a, 0xc4, 0x30, + 0x14, 0x85, 0x9b, 0x5a, 0xfc, 0x89, 0xe0, 0x22, 0x88, 0xd4, 0x59, 0x84, 0xea, 0xaa, 0x1b, 0x13, + 0x46, 0xc1, 0x07, 0x10, 0x7d, 0x81, 0xe2, 0xca, 0x85, 0x90, 0xb6, 0xd7, 0x4e, 0xa1, 0x6d, 0x4a, + 0x72, 0x47, 0x67, 0x76, 0x3e,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 0x2e, 0x74, 0x33, 0xe9, 0x7f, 0x52, + 0xae, 0x5c, 0x61, 0xb8, 0xee, 0xc1, 0xee, 0x6a, 0xcb, 0xf7, 0x1d, 0x74, 0xf3, 0x13, 0x00, 0x00, + 0xff, 0xff, 0x76, 0x89, 0x49, 0x8e, 0x53, 0x01, 0x00, 0x00, } -func (m *Rule) Marshal() (dAtA []byte, err error) { +func (m *Template) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -130,12 +130,12 @@ func (m *Rule) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rule) MarshalTo(dAtA []byte) (int, error) { +func (m *Template) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rule) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Template) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -147,7 +147,7 @@ func (m *Rule) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRule(dAtA, i, uint64(size)) + i = encodeVarintTemplate(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -155,27 +155,27 @@ func (m *Rule) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarintRule(dAtA, i, uint64(len(m.Name))) + i = encodeVarintTemplate(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x1a } if len(m.Creator) > 0 { i -= len(m.Creator) copy(dAtA[i:], m.Creator) - i = encodeVarintRule(dAtA, i, uint64(len(m.Creator))) + i = encodeVarintTemplate(dAtA, i, uint64(len(m.Creator))) i-- dAtA[i] = 0x12 } if m.Id != 0 { - i = encodeVarintRule(dAtA, i, uint64(m.Id)) + i = encodeVarintTemplate(dAtA, i, uint64(m.Id)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func encodeVarintRule(dAtA []byte, offset int, v uint64) int { - offset -= sovRule(v) +func encodeVarintTemplate(dAtA []byte, offset int, v uint64) int { + offset -= sovTemplate(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -185,37 +185,37 @@ func encodeVarintRule(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *Rule) Size() (n int) { +func (m *Template) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Id != 0 { - n += 1 + sovRule(uint64(m.Id)) + n += 1 + sovTemplate(uint64(m.Id)) } l = len(m.Creator) if l > 0 { - n += 1 + l + sovRule(uint64(l)) + n += 1 + l + sovTemplate(uint64(l)) } l = len(m.Name) if l > 0 { - n += 1 + l + sovRule(uint64(l)) + n += 1 + l + sovTemplate(uint64(l)) } if m.Expression != nil { l = m.Expression.Size() - n += 1 + l + sovRule(uint64(l)) + n += 1 + l + sovTemplate(uint64(l)) } return n } -func sovRule(x uint64) (n int) { +func sovTemplate(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozRule(x uint64) (n int) { - return sovRule(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozTemplate(x uint64) (n int) { + return sovTemplate(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Rule) Unmarshal(dAtA []byte) error { +func (m *Template) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -223,7 +223,7 @@ func (m *Rule) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRule + return ErrIntOverflowTemplate } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -238,10 +238,10 @@ func (m *Rule) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Rule: wiretype end group for non-group") + return fmt.Errorf("proto: Template: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Template: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -251,7 +251,7 @@ func (m *Rule) Unmarshal(dAtA []byte) error { m.Id = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRule + return ErrIntOverflowTemplate } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -270,7 +270,7 @@ func (m *Rule) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRule + return ErrIntOverflowTemplate } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -284,11 +284,11 @@ func (m *Rule) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRule + return ErrInvalidLengthTemplate } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRule + return ErrInvalidLengthTemplate } if postIndex > l { return io.ErrUnexpectedEOF @@ -302,7 +302,7 @@ func (m *Rule) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRule + return ErrIntOverflowTemplate } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -316,11 +316,11 @@ func (m *Rule) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRule + return ErrInvalidLengthTemplate } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRule + return ErrInvalidLengthTemplate } if postIndex > l { return io.ErrUnexpectedEOF @@ -334,7 +334,7 @@ func (m *Rule) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRule + return ErrIntOverflowTemplate } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -347,11 +347,11 @@ func (m *Rule) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRule + return ErrInvalidLengthTemplate } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRule + return ErrInvalidLengthTemplate } if postIndex > l { return io.ErrUnexpectedEOF @@ -365,12 +365,12 @@ func (m *Rule) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRule(dAtA[iNdEx:]) + skippy, err := skipTemplate(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRule + return ErrInvalidLengthTemplate } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -384,7 +384,7 @@ func (m *Rule) Unmarshal(dAtA []byte) error { } return nil } -func skipRule(dAtA []byte) (n int, err error) { +func skipTemplate(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -392,7 +392,7 @@ func skipRule(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowRule + return 0, ErrIntOverflowTemplate } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -409,7 +409,7 @@ func skipRule(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowRule + return 0, ErrIntOverflowTemplate } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -425,7 +425,7 @@ func skipRule(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowRule + return 0, ErrIntOverflowTemplate } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -438,14 +438,14 @@ func skipRule(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthRule + return 0, ErrInvalidLengthTemplate } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupRule + return 0, ErrUnexpectedEndOfGroupTemplate } depth-- case 5: @@ -454,7 +454,7 @@ func skipRule(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthRule + return 0, ErrInvalidLengthTemplate } if depth == 0 { return iNdEx, nil @@ -464,7 +464,7 @@ func skipRule(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthRule = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRule = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRule = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthTemplate = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTemplate = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTemplate = fmt.Errorf("proto: unexpected end of group") ) diff --git a/warden/x/act/types/v1beta1/tx.pb.go b/warden/x/act/types/v1beta1/tx.pb.go index 1a8b9d74d..5992a1abc 100644 --- a/warden/x/act/types/v1beta1/tx.pb.go +++ b/warden/x/act/types/v1beta1/tx.pb.go @@ -348,24 +348,24 @@ func (m *MsgApproveActionResponse) GetStatus() string { return "" } -type MsgNewRule struct { +type MsgNewTemplate struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Definition string `protobuf:"bytes,3,opt,name=definition,proto3" json:"definition,omitempty"` } -func (m *MsgNewRule) Reset() { *m = MsgNewRule{} } -func (m *MsgNewRule) String() string { return proto.CompactTextString(m) } -func (*MsgNewRule) ProtoMessage() {} -func (*MsgNewRule) Descriptor() ([]byte, []int) { +func (m *MsgNewTemplate) Reset() { *m = MsgNewTemplate{} } +func (m *MsgNewTemplate) String() string { return proto.CompactTextString(m) } +func (*MsgNewTemplate) ProtoMessage() {} +func (*MsgNewTemplate) Descriptor() ([]byte, []int) { return fileDescriptor_f059980976488200, []int{6} } -func (m *MsgNewRule) XXX_Unmarshal(b []byte) error { +func (m *MsgNewTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgNewRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgNewTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgNewRule.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgNewTemplate.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -375,55 +375,55 @@ func (m *MsgNewRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *MsgNewRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgNewRule.Merge(m, src) +func (m *MsgNewTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgNewTemplate.Merge(m, src) } -func (m *MsgNewRule) XXX_Size() int { +func (m *MsgNewTemplate) XXX_Size() int { return m.Size() } -func (m *MsgNewRule) XXX_DiscardUnknown() { - xxx_messageInfo_MsgNewRule.DiscardUnknown(m) +func (m *MsgNewTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_MsgNewTemplate.DiscardUnknown(m) } -var xxx_messageInfo_MsgNewRule proto.InternalMessageInfo +var xxx_messageInfo_MsgNewTemplate proto.InternalMessageInfo -func (m *MsgNewRule) GetCreator() string { +func (m *MsgNewTemplate) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgNewRule) GetName() string { +func (m *MsgNewTemplate) GetName() string { if m != nil { return m.Name } return "" } -func (m *MsgNewRule) GetDefinition() string { +func (m *MsgNewTemplate) GetDefinition() string { if m != nil { return m.Definition } return "" } -type MsgNewRuleResponse struct { +type MsgNewTemplateResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *MsgNewRuleResponse) Reset() { *m = MsgNewRuleResponse{} } -func (m *MsgNewRuleResponse) String() string { return proto.CompactTextString(m) } -func (*MsgNewRuleResponse) ProtoMessage() {} -func (*MsgNewRuleResponse) Descriptor() ([]byte, []int) { +func (m *MsgNewTemplateResponse) Reset() { *m = MsgNewTemplateResponse{} } +func (m *MsgNewTemplateResponse) String() string { return proto.CompactTextString(m) } +func (*MsgNewTemplateResponse) ProtoMessage() {} +func (*MsgNewTemplateResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f059980976488200, []int{7} } -func (m *MsgNewRuleResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgNewTemplateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgNewRuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgNewTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgNewRuleResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgNewTemplateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -433,44 +433,44 @@ func (m *MsgNewRuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *MsgNewRuleResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgNewRuleResponse.Merge(m, src) +func (m *MsgNewTemplateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgNewTemplateResponse.Merge(m, src) } -func (m *MsgNewRuleResponse) XXX_Size() int { +func (m *MsgNewTemplateResponse) XXX_Size() int { return m.Size() } -func (m *MsgNewRuleResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgNewRuleResponse.DiscardUnknown(m) +func (m *MsgNewTemplateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgNewTemplateResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgNewRuleResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgNewTemplateResponse proto.InternalMessageInfo -func (m *MsgNewRuleResponse) GetId() uint64 { +func (m *MsgNewTemplateResponse) GetId() uint64 { if m != nil { return m.Id } return 0 } -type MsgUpdateRule struct { +type MsgUpdateTemplate struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Definition string `protobuf:"bytes,4,opt,name=definition,proto3" json:"definition,omitempty"` } -func (m *MsgUpdateRule) Reset() { *m = MsgUpdateRule{} } -func (m *MsgUpdateRule) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateRule) ProtoMessage() {} -func (*MsgUpdateRule) Descriptor() ([]byte, []int) { +func (m *MsgUpdateTemplate) Reset() { *m = MsgUpdateTemplate{} } +func (m *MsgUpdateTemplate) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateTemplate) ProtoMessage() {} +func (*MsgUpdateTemplate) Descriptor() ([]byte, []int) { return fileDescriptor_f059980976488200, []int{8} } -func (m *MsgUpdateRule) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateRule.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateTemplate.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -480,61 +480,61 @@ func (m *MsgUpdateRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (m *MsgUpdateRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateRule.Merge(m, src) +func (m *MsgUpdateTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateTemplate.Merge(m, src) } -func (m *MsgUpdateRule) XXX_Size() int { +func (m *MsgUpdateTemplate) XXX_Size() int { return m.Size() } -func (m *MsgUpdateRule) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateRule.DiscardUnknown(m) +func (m *MsgUpdateTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateTemplate.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateRule proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateTemplate proto.InternalMessageInfo -func (m *MsgUpdateRule) GetCreator() string { +func (m *MsgUpdateTemplate) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgUpdateRule) GetId() uint64 { +func (m *MsgUpdateTemplate) GetId() uint64 { if m != nil { return m.Id } return 0 } -func (m *MsgUpdateRule) GetName() string { +func (m *MsgUpdateTemplate) GetName() string { if m != nil { return m.Name } return "" } -func (m *MsgUpdateRule) GetDefinition() string { +func (m *MsgUpdateTemplate) GetDefinition() string { if m != nil { return m.Definition } return "" } -type MsgUpdateRuleResponse struct { +type MsgUpdateTemplateResponse struct { } -func (m *MsgUpdateRuleResponse) Reset() { *m = MsgUpdateRuleResponse{} } -func (m *MsgUpdateRuleResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateRuleResponse) ProtoMessage() {} -func (*MsgUpdateRuleResponse) Descriptor() ([]byte, []int) { +func (m *MsgUpdateTemplateResponse) Reset() { *m = MsgUpdateTemplateResponse{} } +func (m *MsgUpdateTemplateResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateTemplateResponse) ProtoMessage() {} +func (*MsgUpdateTemplateResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f059980976488200, []int{9} } -func (m *MsgUpdateRuleResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateTemplateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateRuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateRuleResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateTemplateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -544,17 +544,17 @@ func (m *MsgUpdateRuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *MsgUpdateRuleResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateRuleResponse.Merge(m, src) +func (m *MsgUpdateTemplateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateTemplateResponse.Merge(m, src) } -func (m *MsgUpdateRuleResponse) XXX_Size() int { +func (m *MsgUpdateTemplateResponse) XXX_Size() int { return m.Size() } -func (m *MsgUpdateRuleResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateRuleResponse.DiscardUnknown(m) +func (m *MsgUpdateTemplateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateTemplateResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateRuleResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateTemplateResponse proto.InternalMessageInfo type MsgRevokeAction struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` @@ -851,10 +851,10 @@ func init() { proto.RegisterType((*MsgNewActionResponse)(nil), "warden.act.v1beta1.MsgNewActionResponse") proto.RegisterType((*MsgApproveAction)(nil), "warden.act.v1beta1.MsgApproveAction") proto.RegisterType((*MsgApproveActionResponse)(nil), "warden.act.v1beta1.MsgApproveActionResponse") - proto.RegisterType((*MsgNewRule)(nil), "warden.act.v1beta1.MsgNewRule") - proto.RegisterType((*MsgNewRuleResponse)(nil), "warden.act.v1beta1.MsgNewRuleResponse") - proto.RegisterType((*MsgUpdateRule)(nil), "warden.act.v1beta1.MsgUpdateRule") - proto.RegisterType((*MsgUpdateRuleResponse)(nil), "warden.act.v1beta1.MsgUpdateRuleResponse") + proto.RegisterType((*MsgNewTemplate)(nil), "warden.act.v1beta1.MsgNewTemplate") + proto.RegisterType((*MsgNewTemplateResponse)(nil), "warden.act.v1beta1.MsgNewTemplateResponse") + proto.RegisterType((*MsgUpdateTemplate)(nil), "warden.act.v1beta1.MsgUpdateTemplate") + proto.RegisterType((*MsgUpdateTemplateResponse)(nil), "warden.act.v1beta1.MsgUpdateTemplateResponse") proto.RegisterType((*MsgRevokeAction)(nil), "warden.act.v1beta1.MsgRevokeAction") proto.RegisterType((*MsgRevokeActionResponse)(nil), "warden.act.v1beta1.MsgRevokeActionResponse") proto.RegisterType((*MsgCheckAction)(nil), "warden.act.v1beta1.MsgCheckAction") @@ -868,62 +868,62 @@ func init() { proto.RegisterFile("warden/act/v1beta1/tx.proto", fileDescriptor_f var fileDescriptor_f059980976488200 = []byte{ // 909 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, 0x6d, 0xea, 0x22, 0x6f, 0x30, 0xd5, - 0xaa, 0x14, 0xd6, 0xa6, 0x41, 0xda, 0x43, 0x05, 0x48, 0x2d, 0x7f, 0x04, 0x87, 0x20, 0x30, 0xfb, - 0x47, 0x5a, 0x09, 0xb2, 0x53, 0x7b, 0xd6, 0x19, 0xb6, 0xf6, 0x58, 0x9e, 0x49, 0xb6, 0x11, 0x17, - 0xe0, 0xc8, 0x89, 0x23, 0x12, 0x5f, 0x80, 0x63, 0x0f, 0x5c, 0xf8, 0x06, 0x7b, 0x5c, 0x71, 0xe2, - 0x84, 0x50, 0x7b, 0xe8, 0xd7, 0x40, 0x9e, 0x19, 0x3b, 0x76, 0x36, 0x8e, 0xf7, 0xd0, 0x43, 0x12, - 0xbf, 0x79, 0xbf, 0xf7, 0xde, 0xef, 0xfd, 0x99, 0x17, 0xc3, 0xd6, 0x53, 0x94, 0xf8, 0x38, 0x72, - 0x90, 0xc7, 0x9d, 0xd1, 0xde, 0x11, 0xe6, 0x68, 0xcf, 0xe1, 0x27, 0x76, 0x9c, 0x50, 0x4e, 0x75, - 0x5d, 0x2a, 0x6d, 0xe4, 0x71, 0x5b, 0x29, 0x8d, 0xd7, 0x50, 0x48, 0x22, 0xea, 0x88, 0x6f, 0x09, - 0x33, 0x36, 0x3c, 0xca, 0x42, 0xca, 0x9c, 0x90, 0x05, 0xce, 0x68, 0x2f, 0xfd, 0x51, 0x8a, 0x4d, - 0xa9, 0xe8, 0x0b, 0xc9, 0x91, 0x82, 0x52, 0xad, 0x07, 0x34, 0xa0, 0xf2, 0x3c, 0x7d, 0xca, 0x0c, - 0x02, 0x4a, 0x83, 0x63, 0xec, 0x08, 0xe9, 0x68, 0xf8, 0xd8, 0x41, 0xd1, 0x58, 0xa9, 0x6e, 0xce, - 0x20, 0x1a, 0xa3, 0x04, 0x85, 0x99, 0xc7, 0xed, 0x19, 0x00, 0xe4, 0x71, 0x42, 0xa3, 0xfe, 0x88, - 0x72, 0x9c, 0xc5, 0x65, 0x03, 0x82, 0x8f, 0x7d, 0x07, 0x31, 0x9e, 0x7e, 0xe4, 0xa9, 0xf5, 0x97, - 0x06, 0xaf, 0xf6, 0x58, 0x70, 0x2f, 0xf6, 0x11, 0xc7, 0x5f, 0x09, 0xaf, 0xfa, 0x1d, 0x68, 0xa1, - 0x21, 0x1f, 0xd0, 0x84, 0xf0, 0x71, 0x5b, 0xeb, 0x68, 0x3b, 0xad, 0xc3, 0xf6, 0xdf, 0x7f, 0xde, - 0x5e, 0x57, 0x69, 0x1c, 0xf8, 0x7e, 0x82, 0x19, 0xfb, 0x86, 0x27, 0x24, 0x0a, 0xdc, 0x09, 0x54, - 0xff, 0x10, 0x96, 0x24, 0xaf, 0x76, 0xa3, 0xa3, 0xed, 0xac, 0x74, 0x0d, 0xfb, 0xc5, 0x2a, 0xda, - 0x32, 0xc6, 0x61, 0xeb, 0xd9, 0xbf, 0x37, 0x17, 0xfe, 0xb8, 0x38, 0xdd, 0xd5, 0x5c, 0x65, 0xb4, - 0xef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 0x3d, 0x1a, 0x3a, 0xd2, 0xf1, 0x8e, 0xf8, 0x5f, 0xf7, 0xe8, 0x50, 0xc9, + 0x15, 0x51, 0xbd, 0x6c, 0xf0, 0x49, 0x8c, 0x59, 0xf6, 0x3a, 0x75, 0xbc, 0x22, 0x40, 0x1f, 0x3c, + 0x0f, 0x00, 0x00, 0xff, 0xff, 0x95, 0x5f, 0x23, 0xbf, 0x35, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -947,10 +947,10 @@ type MsgClient interface { ApproveAction(ctx context.Context, in *MsgApproveAction, opts ...grpc.CallOption) (*MsgApproveActionResponse, error) // Checks a pending action and executes it if its in a valid state. CheckAction(ctx context.Context, in *MsgCheckAction, opts ...grpc.CallOption) (*MsgCheckActionResponse, error) - // Create a new Rule. - NewRule(ctx context.Context, in *MsgNewRule, opts ...grpc.CallOption) (*MsgNewRuleResponse, error) + // Create a new Template. + NewTemplate(ctx context.Context, in *MsgNewTemplate, opts ...grpc.CallOption) (*MsgNewTemplateResponse, error) // Update an existing act name and definition. - UpdateRule(ctx context.Context, in *MsgUpdateRule, opts ...grpc.CallOption) (*MsgUpdateRuleResponse, error) + UpdateTemplate(ctx context.Context, in *MsgUpdateTemplate, opts ...grpc.CallOption) (*MsgUpdateTemplateResponse, error) // Revoke an existing Action while in pending state. RevokeAction(ctx context.Context, in *MsgRevokeAction, opts ...grpc.CallOption) (*MsgRevokeActionResponse, error) // Vote for or against a particular Action. @@ -1001,18 +1001,18 @@ func (c *msgClient) CheckAction(ctx context.Context, in *MsgCheckAction, opts .. return out, nil } -func (c *msgClient) NewRule(ctx context.Context, in *MsgNewRule, opts ...grpc.CallOption) (*MsgNewRuleResponse, error) { - out := new(MsgNewRuleResponse) - err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Msg/NewRule", in, out, opts...) +func (c *msgClient) NewTemplate(ctx context.Context, in *MsgNewTemplate, opts ...grpc.CallOption) (*MsgNewTemplateResponse, error) { + out := new(MsgNewTemplateResponse) + err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Msg/NewTemplate", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *msgClient) UpdateRule(ctx context.Context, in *MsgUpdateRule, opts ...grpc.CallOption) (*MsgUpdateRuleResponse, error) { - out := new(MsgUpdateRuleResponse) - err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Msg/UpdateRule", in, out, opts...) +func (c *msgClient) UpdateTemplate(ctx context.Context, in *MsgUpdateTemplate, opts ...grpc.CallOption) (*MsgUpdateTemplateResponse, error) { + out := new(MsgUpdateTemplateResponse) + err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Msg/UpdateTemplate", in, out, opts...) if err != nil { return nil, err } @@ -1048,10 +1048,10 @@ type MsgServer interface { ApproveAction(context.Context, *MsgApproveAction) (*MsgApproveActionResponse, error) // Checks a pending action and executes it if its in a valid state. CheckAction(context.Context, *MsgCheckAction) (*MsgCheckActionResponse, error) - // Create a new Rule. - NewRule(context.Context, *MsgNewRule) (*MsgNewRuleResponse, error) + // Create a new Template. + NewTemplate(context.Context, *MsgNewTemplate) (*MsgNewTemplateResponse, error) // Update an existing act name and definition. - UpdateRule(context.Context, *MsgUpdateRule) (*MsgUpdateRuleResponse, error) + UpdateTemplate(context.Context, *MsgUpdateTemplate) (*MsgUpdateTemplateResponse, error) // Revoke an existing Action while in pending state. RevokeAction(context.Context, *MsgRevokeAction) (*MsgRevokeActionResponse, error) // Vote for or against a particular Action. @@ -1074,11 +1074,11 @@ func (*UnimplementedMsgServer) ApproveAction(ctx context.Context, req *MsgApprov func (*UnimplementedMsgServer) CheckAction(ctx context.Context, req *MsgCheckAction) (*MsgCheckActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckAction not implemented") } -func (*UnimplementedMsgServer) NewRule(ctx context.Context, req *MsgNewRule) (*MsgNewRuleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NewRule not implemented") +func (*UnimplementedMsgServer) NewTemplate(ctx context.Context, req *MsgNewTemplate) (*MsgNewTemplateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NewTemplate not implemented") } -func (*UnimplementedMsgServer) UpdateRule(ctx context.Context, req *MsgUpdateRule) (*MsgUpdateRuleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateRule not implemented") +func (*UnimplementedMsgServer) UpdateTemplate(ctx context.Context, req *MsgUpdateTemplate) (*MsgUpdateTemplateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateTemplate not implemented") } func (*UnimplementedMsgServer) RevokeAction(ctx context.Context, req *MsgRevokeAction) (*MsgRevokeActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RevokeAction not implemented") @@ -1163,38 +1163,38 @@ func _Msg_CheckAction_Handler(srv interface{}, ctx context.Context, dec func(int return interceptor(ctx, in, info, handler) } -func _Msg_NewRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgNewRule) +func _Msg_NewTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgNewTemplate) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).NewRule(ctx, in) + return srv.(MsgServer).NewTemplate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/warden.act.v1beta1.Msg/NewRule", + FullMethod: "/warden.act.v1beta1.Msg/NewTemplate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).NewRule(ctx, req.(*MsgNewRule)) + return srv.(MsgServer).NewTemplate(ctx, req.(*MsgNewTemplate)) } return interceptor(ctx, in, info, handler) } -func _Msg_UpdateRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateRule) +func _Msg_UpdateTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateTemplate) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).UpdateRule(ctx, in) + return srv.(MsgServer).UpdateTemplate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/warden.act.v1beta1.Msg/UpdateRule", + FullMethod: "/warden.act.v1beta1.Msg/UpdateTemplate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateRule(ctx, req.(*MsgUpdateRule)) + return srv.(MsgServer).UpdateTemplate(ctx, req.(*MsgUpdateTemplate)) } return interceptor(ctx, in, info, handler) } @@ -1257,12 +1257,12 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_CheckAction_Handler, }, { - MethodName: "NewRule", - Handler: _Msg_NewRule_Handler, + MethodName: "NewTemplate", + Handler: _Msg_NewTemplate_Handler, }, { - MethodName: "UpdateRule", - Handler: _Msg_UpdateRule_Handler, + MethodName: "UpdateTemplate", + Handler: _Msg_UpdateTemplate_Handler, }, { MethodName: "RevokeAction", @@ -1494,7 +1494,7 @@ func (m *MsgApproveActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *MsgNewRule) Marshal() (dAtA []byte, err error) { +func (m *MsgNewTemplate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1504,12 +1504,12 @@ func (m *MsgNewRule) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgNewRule) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgNewTemplate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgNewRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgNewTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1538,7 +1538,7 @@ func (m *MsgNewRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgNewRuleResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgNewTemplateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1548,12 +1548,12 @@ func (m *MsgNewRuleResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgNewRuleResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgNewTemplateResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgNewRuleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgNewTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1566,7 +1566,7 @@ func (m *MsgNewRuleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgUpdateRule) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateTemplate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1576,12 +1576,12 @@ func (m *MsgUpdateRule) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateRule) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateTemplate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1615,7 +1615,7 @@ func (m *MsgUpdateRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgUpdateRuleResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateTemplateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1625,12 +1625,12 @@ func (m *MsgUpdateRuleResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateRuleResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateTemplateResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateRuleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1935,7 +1935,7 @@ func (m *MsgApproveActionResponse) Size() (n int) { return n } -func (m *MsgNewRule) Size() (n int) { +func (m *MsgNewTemplate) Size() (n int) { if m == nil { return 0 } @@ -1956,7 +1956,7 @@ func (m *MsgNewRule) Size() (n int) { return n } -func (m *MsgNewRuleResponse) Size() (n int) { +func (m *MsgNewTemplateResponse) Size() (n int) { if m == nil { return 0 } @@ -1968,7 +1968,7 @@ func (m *MsgNewRuleResponse) Size() (n int) { return n } -func (m *MsgUpdateRule) Size() (n int) { +func (m *MsgUpdateTemplate) Size() (n int) { if m == nil { return 0 } @@ -1992,7 +1992,7 @@ func (m *MsgUpdateRule) Size() (n int) { return n } -func (m *MsgUpdateRuleResponse) Size() (n int) { +func (m *MsgUpdateTemplateResponse) Size() (n int) { if m == nil { return 0 } @@ -2711,7 +2711,7 @@ func (m *MsgApproveActionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgNewRule) Unmarshal(dAtA []byte) error { +func (m *MsgNewTemplate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2734,10 +2734,10 @@ func (m *MsgNewRule) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgNewRule: wiretype end group for non-group") + return fmt.Errorf("proto: MsgNewTemplate: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgNewRule: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgNewTemplate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2857,7 +2857,7 @@ func (m *MsgNewRule) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgNewRuleResponse) Unmarshal(dAtA []byte) error { +func (m *MsgNewTemplateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2880,10 +2880,10 @@ func (m *MsgNewRuleResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgNewRuleResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgNewTemplateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgNewRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgNewTemplateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2926,7 +2926,7 @@ func (m *MsgNewRuleResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdateRule) Unmarshal(dAtA []byte) error { +func (m *MsgUpdateTemplate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2949,10 +2949,10 @@ func (m *MsgUpdateRule) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateRule: wiretype end group for non-group") + return fmt.Errorf("proto: MsgUpdateTemplate: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateRule: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgUpdateTemplate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3091,7 +3091,7 @@ func (m *MsgUpdateRule) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdateRuleResponse) Unmarshal(dAtA []byte) error { +func (m *MsgUpdateTemplateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3114,10 +3114,10 @@ func (m *MsgUpdateRuleResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateRuleResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgUpdateTemplateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgUpdateTemplateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: diff --git a/warden/x/warden/keeper/keeper.go b/warden/x/warden/keeper/keeper.go index 47a128e6b..a99b14018 100644 --- a/warden/x/warden/keeper/keeper.go +++ b/warden/x/warden/keeper/keeper.go @@ -118,7 +118,7 @@ func NewKeeper( actKeeper: actKeeper, getWasmKeeper: getWasmKeeper, } - k.RegisterRules(actKeeper.RulesRegistry()) + k.RegisterTemplates(actKeeper.TemplatesRegistry()) return k } diff --git a/warden/x/warden/keeper/key_requests.go b/warden/x/warden/keeper/key_requests.go index adcd57bcb..aca80ebea 100644 --- a/warden/x/warden/keeper/key_requests.go +++ b/warden/x/warden/keeper/key_requests.go @@ -21,7 +21,7 @@ func (k Keeper) fulfillKeyRequest(ctx sdk.Context, msg *types.MsgFulfilKeyReques KeychainId: req.KeychainId, Type: req.KeyType, PublicKey: pubKey, - RuleId: req.RuleId, + TemplateId: req.TemplateId, } if err := k.KeysKeeper.New(ctx, key, req); err != nil { diff --git a/warden/x/warden/keeper/msg_server_fulfil_key_request.go b/warden/x/warden/keeper/msg_server_fulfil_key_request.go index e2b456457..69814c7d1 100644 --- a/warden/x/warden/keeper/msg_server_fulfil_key_request.go +++ b/warden/x/warden/keeper/msg_server_fulfil_key_request.go @@ -45,7 +45,7 @@ func (k msgServer) FulfilKeyRequest(goCtx context.Context, msg *types.MsgFulfilK KeyType: key.Type, SpaceId: key.SpaceId, KeychainId: key.KeychainId, - RuleId: key.RuleId, + TemplateId: key.TemplateId, }); err != nil { return nil, err } diff --git a/warden/x/warden/keeper/msg_server_new_key_request.go b/warden/x/warden/keeper/msg_server_new_key_request.go index 124e59380..f10ded5cd 100644 --- a/warden/x/warden/keeper/msg_server_new_key_request.go +++ b/warden/x/warden/keeper/msg_server_new_key_request.go @@ -45,7 +45,7 @@ func (k msgServer) NewKeyRequest(ctx context.Context, msg *types.MsgNewKeyReques KeychainId: msg.KeychainId, KeyType: msg.KeyType, Status: types.KeyRequestStatus_KEY_REQUEST_STATUS_PENDING, - RuleId: msg.RuleId, + TemplateId: msg.TemplateId, DeductedKeychainFees: keychain.Fees.KeyReq, } @@ -59,7 +59,7 @@ func (k msgServer) NewKeyRequest(ctx context.Context, msg *types.MsgNewKeyReques Id: id, SpaceId: req.SpaceId, KeychainId: req.KeychainId, - RuleId: req.RuleId, + TemplateId: req.TemplateId, KeyType: req.KeyType, Creator: req.Creator, }); err != nil { diff --git a/warden/x/warden/keeper/msg_server_new_space.go b/warden/x/warden/keeper/msg_server_new_space.go index 6f017afe5..8480b748b 100644 --- a/warden/x/warden/keeper/msg_server_new_space.go +++ b/warden/x/warden/keeper/msg_server_new_space.go @@ -11,10 +11,10 @@ func (k msgServer) NewSpace(goCtx context.Context, msg *types.MsgNewSpace) (*typ ctx := sdk.UnwrapSDKContext(goCtx) space := &types.Space{ - Creator: msg.Creator, - AdminRuleId: msg.AdminRuleId, - SignRuleId: msg.SignRuleId, - Nonce: 0, + Creator: msg.Creator, + AdminTemplateId: msg.AdminTemplateId, + SignTemplateId: msg.SignTemplateId, + Nonce: 0, } if err := space.AddOwner(msg.Creator, space.Nonce); err != nil { @@ -32,11 +32,11 @@ func (k msgServer) NewSpace(goCtx context.Context, msg *types.MsgNewSpace) (*typ } if err := ctx.EventManager().EmitTypedEvent(&types.EventCreateSpace{ - Id: space.Id, - Creator: space.Creator, - OwnersCount: uint64(len(space.Owners)), - AdminRuleId: space.AdminRuleId, - SignRuleId: space.SignRuleId, + Id: space.Id, + Creator: space.Creator, + OwnersCount: uint64(len(space.Owners)), + AdminTemplateId: space.AdminTemplateId, + SignTemplateId: space.SignTemplateId, }); err != nil { return nil, err } diff --git a/warden/x/warden/keeper/msg_server_update_key.go b/warden/x/warden/keeper/msg_server_update_key.go index fe3a40185..33be73723 100644 --- a/warden/x/warden/keeper/msg_server_update_key.go +++ b/warden/x/warden/keeper/msg_server_update_key.go @@ -17,25 +17,25 @@ func (k msgServer) UpdateKey(ctx context.Context, msg *types.MsgUpdateKey) (*typ return nil, err } - if key.RuleId != msg.RuleId { - if err = k.actKeeper.IsValidRule(ctx, msg.RuleId); err != nil { + if key.TemplateId != msg.TemplateId { + if err = k.actKeeper.IsValidTemplate(ctx, msg.TemplateId); err != nil { return nil, err } - key.RuleId = msg.RuleId + key.TemplateId = msg.TemplateId } - if key.ApproveRuleId != msg.ApproveRuleId { - if err = k.actKeeper.IsValidRule(ctx, msg.ApproveRuleId); err != nil { + if key.ApproveTemplateId != msg.ApproveTemplateId { + if err = k.actKeeper.IsValidTemplate(ctx, msg.ApproveTemplateId); err != nil { return nil, err } - key.ApproveRuleId = msg.ApproveRuleId + key.ApproveTemplateId = msg.ApproveTemplateId } - if key.RejectRuleId != msg.RejectRuleId { - if err = k.actKeeper.IsValidRule(ctx, msg.RejectRuleId); err != nil { + if key.RejectTemplateId != msg.RejectTemplateId { + if err = k.actKeeper.IsValidTemplate(ctx, msg.RejectTemplateId); err != nil { return nil, err } - key.RejectRuleId = msg.RejectRuleId + key.RejectTemplateId = msg.RejectTemplateId } if err := k.KeysKeeper.Set(ctx, key); err != nil { @@ -44,10 +44,10 @@ func (k msgServer) UpdateKey(ctx context.Context, msg *types.MsgUpdateKey) (*typ sdkCtx := sdk.UnwrapSDKContext(ctx) if err := sdkCtx.EventManager().EmitTypedEvent(&types.EventUpdateKey{ - Id: key.Id, - RuleId: key.RuleId, - ApproveRuleId: key.ApproveRuleId, - RejectRuleId: key.RejectRuleId, + Id: key.Id, + TemplateId: key.TemplateId, + ApproveTemplateId: key.ApproveTemplateId, + RejectTemplateId: key.RejectTemplateId, }); err != nil { return nil, err } diff --git a/warden/x/warden/keeper/msg_server_update_space.go b/warden/x/warden/keeper/msg_server_update_space.go index c4046acd9..bcf774ecc 100644 --- a/warden/x/warden/keeper/msg_server_update_space.go +++ b/warden/x/warden/keeper/msg_server_update_space.go @@ -17,46 +17,46 @@ func (k msgServer) UpdateSpace(ctx context.Context, msg *types.MsgUpdateSpace) ( return nil, err } - if msg.AdminRuleId != space.AdminRuleId { - if err := k.actKeeper.IsValidRule(ctx, msg.AdminRuleId); err != nil { + if msg.AdminTemplateId != space.AdminTemplateId { + if err := k.actKeeper.IsValidTemplate(ctx, msg.AdminTemplateId); err != nil { return nil, err } - space.AdminRuleId = msg.AdminRuleId + space.AdminTemplateId = msg.AdminTemplateId } - if msg.SignRuleId != space.SignRuleId { - if err := k.actKeeper.IsValidRule(ctx, msg.SignRuleId); err != nil { + if msg.SignTemplateId != space.SignTemplateId { + if err := k.actKeeper.IsValidTemplate(ctx, msg.SignTemplateId); err != nil { return nil, err } - space.SignRuleId = msg.SignRuleId + space.SignTemplateId = msg.SignTemplateId } - if msg.ApproveAdminRuleId != space.ApproveAdminRuleId { - if err := k.actKeeper.IsValidRule(ctx, msg.ApproveAdminRuleId); err != nil { + if msg.ApproveAdminTemplateId != space.ApproveAdminTemplateId { + if err := k.actKeeper.IsValidTemplate(ctx, msg.ApproveAdminTemplateId); err != nil { return nil, err } - space.ApproveAdminRuleId = msg.ApproveAdminRuleId + space.ApproveAdminTemplateId = msg.ApproveAdminTemplateId } - if msg.RejectAdminRuleId != space.RejectAdminRuleId { - if err := k.actKeeper.IsValidRule(ctx, msg.RejectAdminRuleId); err != nil { + if msg.RejectAdminTemplateId != space.RejectAdminTemplateId { + if err := k.actKeeper.IsValidTemplate(ctx, msg.RejectAdminTemplateId); err != nil { return nil, err } - space.RejectAdminRuleId = msg.RejectAdminRuleId + space.RejectAdminTemplateId = msg.RejectAdminTemplateId } - if msg.ApproveSignRuleId != space.ApproveSignRuleId { - if err := k.actKeeper.IsValidRule(ctx, msg.ApproveSignRuleId); err != nil { + if msg.ApproveSignTemplateId != space.ApproveSignTemplateId { + if err := k.actKeeper.IsValidTemplate(ctx, msg.ApproveSignTemplateId); err != nil { return nil, err } - space.ApproveSignRuleId = msg.ApproveSignRuleId + space.ApproveSignTemplateId = msg.ApproveSignTemplateId } - if msg.RejectSignRuleId != space.RejectSignRuleId { - if err := k.actKeeper.IsValidRule(ctx, msg.RejectSignRuleId); err != nil { + if msg.RejectSignTemplateId != space.RejectSignTemplateId { + if err := k.actKeeper.IsValidTemplate(ctx, msg.RejectSignTemplateId); err != nil { return nil, err } - space.RejectSignRuleId = msg.RejectSignRuleId + space.RejectSignTemplateId = msg.RejectSignTemplateId } if _, err := space.IncrementNonce(msg.Nonce); err != nil { @@ -69,9 +69,9 @@ func (k msgServer) UpdateSpace(ctx context.Context, msg *types.MsgUpdateSpace) ( sdkCtx := sdk.UnwrapSDKContext(ctx) if err := sdkCtx.EventManager().EmitTypedEvent(&types.EventUpdateSpace{ - SpaceId: space.Id, - AdminRuleId: space.AdminRuleId, - SignRuleId: space.SignRuleId, + SpaceId: space.Id, + AdminTemplateId: space.AdminTemplateId, + SignTemplateId: space.SignTemplateId, }); err != nil { return nil, err } diff --git a/warden/x/warden/keeper/rules.go b/warden/x/warden/keeper/rules.go deleted file mode 100644 index 22771a23e..000000000 --- a/warden/x/warden/keeper/rules.go +++ /dev/null @@ -1,282 +0,0 @@ -package keeper - -import ( - "context" - - "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/warden-protocol/wardenprotocol/shield/ast" - acttypes "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" - "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta3" -) - -func (k Keeper) RegisterRules(reg *acttypes.RulesRegistry) { - acttypes.Register(reg, k.addSpaceOwnerRule) - acttypes.Register(reg, k.newKeyRequestRule) - acttypes.Register(reg, k.removeSpaceOwnerRule) - acttypes.Register(reg, k.updateKeyRule) - acttypes.Register(reg, k.updateSpaceRule) - acttypes.RegisterCtx(reg, k.newSignRequestRule) -} - -func (k Keeper) addSpaceOwnerRule(ctx context.Context, msg *v1beta3.MsgAddSpaceOwner) (acttypes.Rule, acttypes.Rule, error) { - space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - approveRule, err := k.getApproveAddOwnerRule(ctx, space) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - rejectRule, err := k.getRejectAddOwnerRule(ctx, space) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - return approveRule, rejectRule, nil -} - -func (k Keeper) removeSpaceOwnerRule(ctx context.Context, msg *v1beta3.MsgRemoveSpaceOwner) (acttypes.Rule, acttypes.Rule, error) { - space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - approveRule, err := k.getApproveRemoveOwnerRule(ctx, space) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - rejectRule, err := k.getRejectRemoveOwnerRule(ctx, space) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - return approveRule, rejectRule, nil -} - -func (k Keeper) newKeyRequestRule(ctx context.Context, msg *v1beta3.MsgNewKeyRequest) (acttypes.Rule, acttypes.Rule, error) { - space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - approveRule, err := k.getApproveNewKeyRequestRule(ctx, space) - - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - rejectRule, err := k.getRejectNewKeyRequestRule(ctx, space) - - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - return approveRule, rejectRule, nil -} - -func (k Keeper) newSignRequestRule(ctx context.Context, msg *v1beta3.MsgNewSignRequest) (context.Context, acttypes.Rule, acttypes.Rule, error) { - key, err := k.KeysKeeper.Get(ctx, msg.KeyId) - if err != nil { - return nil, acttypes.Rule{}, acttypes.Rule{}, err - } - - space, err := k.SpacesKeeper.Get(ctx, key.SpaceId) - if err != nil { - return nil, acttypes.Rule{}, acttypes.Rule{}, err - } - - approveRule, err := k.getApproveKeyRule(ctx, space, key) - if err != nil { - return nil, acttypes.Rule{}, acttypes.Rule{}, err - } - - rejectRule, err := k.getRejectKeyRule(ctx, space, key) - if err != nil { - return nil, acttypes.Rule{}, acttypes.Rule{}, err - } - - creator := k.actKeeper.GetActionCreator(ctx) - - ctxWithVals, dataForSigning, err := k.executeAnalyzers(ctx, creator, msg.Analyzers, msg.Input) - if err != nil { - return nil, acttypes.Rule{}, acttypes.Rule{}, errors.Wrapf(v1beta3.ErrAnalyzer, "%v", err) - } - - if dataForSigning != nil { - msg.Input = dataForSigning - } - - return ctxWithVals, approveRule, rejectRule, nil -} - -func (k Keeper) updateKeyRule(ctx context.Context, msg *v1beta3.MsgUpdateKey) (acttypes.Rule, acttypes.Rule, error) { - key, err := k.KeysKeeper.Get(ctx, msg.KeyId) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - space, err := k.SpacesKeeper.Get(ctx, key.SpaceId) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - approveRule, err := k.getApproveUpdateKeyRule(ctx, space, key) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - rejectRule, err := k.getRejectUpdateKeyRule(ctx, space, key) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - return approveRule, rejectRule, nil -} - -func (k Keeper) updateSpaceRule(ctx context.Context, msg *v1beta3.MsgUpdateSpace) (acttypes.Rule, acttypes.Rule, error) { - space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - approveRule, err := k.getApproveUpdateSpaceRule(ctx, space) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - rejectRule, err := k.getRejectUpdateSpaceRule(ctx, space) - if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err - } - - return approveRule, rejectRule, nil -} - -func (k Keeper) getApproveKeyRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { - if key.ApproveRuleId > 0 { - return k.actKeeper.GetRule(ctx, key.ApproveRuleId) - } else if space.ApproveSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveSignRuleId) - } else { - return space.RuleApproveNewSignRequest(), nil - } -} - -func (k Keeper) getRejectKeyRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { - if key.RejectRuleId > 0 { - return k.actKeeper.GetRule(ctx, key.RejectRuleId) - } else if space.RejectSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectSignRuleId) - } else { - return space.RuleRejectNewSignRequest(), nil - } -} - -func (k Keeper) getApproveAddOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.ApproveAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveAdminRuleId) - } else { - return space.RuleApproveAddOwner(), nil - } -} - -func (k Keeper) getRejectAddOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.RejectAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectAdminRuleId) - } else { - return space.RuleRejectAddOwner(), nil - } -} - -func (k Keeper) getApproveRemoveOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.ApproveAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveAdminRuleId) - } else { - return space.RuleApproveRemoveOwner(), nil - } -} - -func (k Keeper) getRejectRemoveOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.RejectAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectAdminRuleId) - } else { - return space.RuleRejectRemoveOwner(), nil - } -} - -func (k Keeper) getApproveNewKeyRequestRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.ApproveSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveSignRuleId) - } else { - return space.RuleApproveNewKeyRequest(), nil - } -} - -func (k Keeper) getRejectNewKeyRequestRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.RejectSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectSignRuleId) - } else { - return space.RuleRejectNewKeyRequest(), nil - } -} - -func (k Keeper) getApproveUpdateKeyRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { - if space.ApproveSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveSignRuleId) - } else { - return space.RuleApproveUpdateKey(), nil - } -} - -func (k Keeper) getRejectUpdateKeyRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { - if space.RejectSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectSignRuleId) - } else { - return space.RuleRejectUpdateKey(), nil - } -} - -func (k Keeper) getApproveUpdateSpaceRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.ApproveAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveAdminRuleId) - } else { - return space.RuleApproveUpdateSpace(), nil - } - -} - -func (k Keeper) getRejectUpdateSpaceRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.RejectAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectAdminRuleId) - } else { - return space.RuleRejectUpdateSpace(), nil - } -} - -func (k Keeper) executeAnalyzers(ctx context.Context, creator string, contracts []string, input []byte) (context.Context, []byte, error) { - sdkCtx := sdk.UnwrapSDKContext(ctx) - creatorAddr := sdk.MustAccAddressFromBech32(creator) - analyzerVals := make(map[string]map[string]*ast.Expression) - var dataForSigning []byte - for _, contract := range contracts { - contractAddr, err := sdk.AccAddressFromBech32(contract) - if err != nil { - return nil, nil, err - } - dfs, vals, err := k.ExecuteAnalyzer(sdkCtx, contractAddr, creatorAddr, input) - if err != nil { - return nil, nil, err - } - if dfs != nil && dataForSigning != nil { - return nil, nil, v1beta3.ErrDuplicateAnalyzersDataForSigning - } - if dfs != nil { - dataForSigning = dfs - } - analyzerVals[contract] = vals - } - return WithAnalyzerValues(ctx, analyzerVals), dataForSigning, nil -} diff --git a/warden/x/warden/keeper/templates.go b/warden/x/warden/keeper/templates.go new file mode 100644 index 000000000..29248b918 --- /dev/null +++ b/warden/x/warden/keeper/templates.go @@ -0,0 +1,282 @@ +package keeper + +import ( + "context" + + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/warden-protocol/wardenprotocol/shield/ast" + acttypes "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" + "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta3" +) + +func (k Keeper) RegisterTemplates(reg *acttypes.TemplatesRegistry) { + acttypes.Register(reg, k.addSpaceOwnerTemplate) + acttypes.Register(reg, k.newKeyRequestTemplate) + acttypes.Register(reg, k.removeSpaceOwnerTemplate) + acttypes.Register(reg, k.updateKeyTemplate) + acttypes.Register(reg, k.updateSpaceTemplate) + acttypes.RegisterCtx(reg, k.newSignRequestTemplate) +} + +func (k Keeper) addSpaceOwnerTemplate(ctx context.Context, msg *v1beta3.MsgAddSpaceOwner) (acttypes.Template, acttypes.Template, error) { + space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + approveTemplate, err := k.getApproveAddOwnerTemplate(ctx, space) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + rejectTemplate, err := k.getRejectAddOwnerTemplate(ctx, space) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + return approveTemplate, rejectTemplate, nil +} + +func (k Keeper) removeSpaceOwnerTemplate(ctx context.Context, msg *v1beta3.MsgRemoveSpaceOwner) (acttypes.Template, acttypes.Template, error) { + space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + approveTemplate, err := k.getApproveRemoveOwnerTemplate(ctx, space) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + rejectTemplate, err := k.getRejectRemoveOwnerTemplate(ctx, space) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + return approveTemplate, rejectTemplate, nil +} + +func (k Keeper) newKeyRequestTemplate(ctx context.Context, msg *v1beta3.MsgNewKeyRequest) (acttypes.Template, acttypes.Template, error) { + space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + approveTemplate, err := k.getApproveNewKeyRequestTemplate(ctx, space) + + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + rejectTemplate, err := k.getRejectNewKeyRequestTemplate(ctx, space) + + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + return approveTemplate, rejectTemplate, nil +} + +func (k Keeper) newSignRequestTemplate(ctx context.Context, msg *v1beta3.MsgNewSignRequest) (context.Context, acttypes.Template, acttypes.Template, error) { + key, err := k.KeysKeeper.Get(ctx, msg.KeyId) + if err != nil { + return nil, acttypes.Template{}, acttypes.Template{}, err + } + + space, err := k.SpacesKeeper.Get(ctx, key.SpaceId) + if err != nil { + return nil, acttypes.Template{}, acttypes.Template{}, err + } + + approveTemplate, err := k.getApproveKeyTemplate(ctx, space, key) + if err != nil { + return nil, acttypes.Template{}, acttypes.Template{}, err + } + + rejectTemplate, err := k.getRejectKeyTemplate(ctx, space, key) + if err != nil { + return nil, acttypes.Template{}, acttypes.Template{}, err + } + + creator := k.actKeeper.GetActionCreator(ctx) + + ctxWithVals, dataForSigning, err := k.executeAnalyzers(ctx, creator, msg.Analyzers, msg.Input) + if err != nil { + return nil, acttypes.Template{}, acttypes.Template{}, errors.Wrapf(v1beta3.ErrAnalyzer, "%v", err) + } + + if dataForSigning != nil { + msg.Input = dataForSigning + } + + return ctxWithVals, approveTemplate, rejectTemplate, nil +} + +func (k Keeper) updateKeyTemplate(ctx context.Context, msg *v1beta3.MsgUpdateKey) (acttypes.Template, acttypes.Template, error) { + key, err := k.KeysKeeper.Get(ctx, msg.KeyId) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + space, err := k.SpacesKeeper.Get(ctx, key.SpaceId) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + approveTemplate, err := k.getApproveUpdateKeyTemplate(ctx, space, key) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + rejectTemplate, err := k.getRejectUpdateKeyTemplate(ctx, space, key) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + return approveTemplate, rejectTemplate, nil +} + +func (k Keeper) updateSpaceTemplate(ctx context.Context, msg *v1beta3.MsgUpdateSpace) (acttypes.Template, acttypes.Template, error) { + space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + approveTemplate, err := k.getApproveUpdateSpaceTemplate(ctx, space) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + rejectTemplate, err := k.getRejectUpdateSpaceTemplate(ctx, space) + if err != nil { + return acttypes.Template{}, acttypes.Template{}, err + } + + return approveTemplate, rejectTemplate, nil +} + +func (k Keeper) getApproveKeyTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { + if key.ApproveTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, key.ApproveTemplateId) + } else if space.ApproveSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveSignTemplateId) + } else { + return space.TemplateApproveNewSignRequest(), nil + } +} + +func (k Keeper) getRejectKeyTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { + if key.RejectTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, key.RejectTemplateId) + } else if space.RejectSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectSignTemplateId) + } else { + return space.TemplateRejectNewSignRequest(), nil + } +} + +func (k Keeper) getApproveAddOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.ApproveAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveAdminTemplateId) + } else { + return space.TemplateApproveAddOwner(), nil + } +} + +func (k Keeper) getRejectAddOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.RejectAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectAdminTemplateId) + } else { + return space.TemplateRejectAddOwner(), nil + } +} + +func (k Keeper) getApproveRemoveOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.ApproveAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveAdminTemplateId) + } else { + return space.TemplateApproveRemoveOwner(), nil + } +} + +func (k Keeper) getRejectRemoveOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.RejectAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectAdminTemplateId) + } else { + return space.TemplateRejectRemoveOwner(), nil + } +} + +func (k Keeper) getApproveNewKeyRequestTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.ApproveSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveSignTemplateId) + } else { + return space.TemplateApproveNewKeyRequest(), nil + } +} + +func (k Keeper) getRejectNewKeyRequestTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.RejectSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectSignTemplateId) + } else { + return space.TemplateRejectNewKeyRequest(), nil + } +} + +func (k Keeper) getApproveUpdateKeyTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { + if space.ApproveSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveSignTemplateId) + } else { + return space.TemplateApproveUpdateKey(), nil + } +} + +func (k Keeper) getRejectUpdateKeyTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { + if space.RejectSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectSignTemplateId) + } else { + return space.TemplateRejectUpdateKey(), nil + } +} + +func (k Keeper) getApproveUpdateSpaceTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.ApproveAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveAdminTemplateId) + } else { + return space.TemplateApproveUpdateSpace(), nil + } + +} + +func (k Keeper) getRejectUpdateSpaceTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.RejectAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectAdminTemplateId) + } else { + return space.TemplateRejectUpdateSpace(), nil + } +} + +func (k Keeper) executeAnalyzers(ctx context.Context, creator string, contracts []string, input []byte) (context.Context, []byte, error) { + sdkCtx := sdk.UnwrapSDKContext(ctx) + creatorAddr := sdk.MustAccAddressFromBech32(creator) + analyzerVals := make(map[string]map[string]*ast.Expression) + var dataForSigning []byte + for _, contract := range contracts { + contractAddr, err := sdk.AccAddressFromBech32(contract) + if err != nil { + return nil, nil, err + } + dfs, vals, err := k.ExecuteAnalyzer(sdkCtx, contractAddr, creatorAddr, input) + if err != nil { + return nil, nil, err + } + if dfs != nil && dataForSigning != nil { + return nil, nil, v1beta3.ErrDuplicateAnalyzersDataForSigning + } + if dfs != nil { + dataForSigning = dfs + } + analyzerVals[contract] = vals + } + return WithAnalyzerValues(ctx, analyzerVals), dataForSigning, nil +} diff --git a/warden/x/warden/migrations/v3/store.go b/warden/x/warden/migrations/v3/store.go index 477c26c1e..9e90cc0f7 100644 --- a/warden/x/warden/migrations/v3/store.go +++ b/warden/x/warden/migrations/v3/store.go @@ -140,7 +140,7 @@ func migrateKeyRequest(kr v1beta2.KeyRequest) v1beta3.KeyRequest { KeyType: v1beta3.KeyType(kr.KeyType), Status: v1beta3.KeyRequestStatus(kr.Status), RejectReason: kr.RejectReason, - RuleId: kr.IntentId, + TemplateId: kr.IntentId, } } @@ -165,11 +165,11 @@ func migrateKeychain(kc v1beta2.Keychain) v1beta3.Keychain { func migrateSpace(spc v1beta2.Space) v1beta3.Space { return v1beta3.Space{ - Id: spc.Id, - Creator: spc.Creator, - Owners: spc.Owners, - AdminRuleId: spc.AdminIntentId, - SignRuleId: spc.SignIntentId, + Id: spc.Id, + Creator: spc.Creator, + Owners: spc.Owners, + AdminTemplateId: spc.AdminIntentId, + SignTemplateId: spc.SignIntentId, } } @@ -217,7 +217,7 @@ func migrateKey(key v1beta2.Key) v1beta3.Key { KeychainId: key.KeychainId, Type: v1beta3.KeyType(key.Type), PublicKey: key.PublicKey, - RuleId: key.IntentId, + TemplateId: key.IntentId, } } diff --git a/warden/x/warden/types/expected_keepers.go b/warden/x/warden/types/expected_keepers.go index 55a8d5b3c..87a4aa910 100644 --- a/warden/x/warden/types/expected_keepers.go +++ b/warden/x/warden/types/expected_keepers.go @@ -22,10 +22,10 @@ type BankKeeper interface { // ActKeeper defined the expected interface for the Act module. type ActKeeper interface { - IsValidRule(ctx context.Context, id uint64) error - GetRule(ctx context.Context, id uint64) (acttypes.Rule, error) + IsValidTemplate(ctx context.Context, id uint64) error + GetTemplate(ctx context.Context, id uint64) (acttypes.Template, error) GetActionCreator(ctx context.Context) string - RulesRegistry() *acttypes.RulesRegistry + TemplatesRegistry() *acttypes.TemplatesRegistry } // ParamSubspace defines the expected Subspace interface for parameters. diff --git a/warden/x/warden/types/v1beta3/events.pb.go b/warden/x/warden/types/v1beta3/events.pb.go index 8b8e1bc8c..f55a72823 100644 --- a/warden/x/warden/types/v1beta3/events.pb.go +++ b/warden/x/warden/types/v1beta3/events.pb.go @@ -32,10 +32,10 @@ type EventCreateSpace struct { Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // owners_count is the count of the space owners OwnersCount uint64 `protobuf:"varint,3,opt,name=owners_count,json=ownersCount,proto3" json:"owners_count,omitempty"` - // id of the rule to be applied to every admin operation - AdminRuleId uint64 `protobuf:"varint,4,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - // id of the rule to be applied to every sign operation - SignRuleId uint64 `protobuf:"varint,5,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` + // id of the template to be applied to every admin operation + AdminTemplateId uint64 `protobuf:"varint,4,opt,name=admin_template_id,json=adminTemplateId,proto3" json:"admin_template_id,omitempty"` + // id of the template to be applied to every sign operation + SignTemplateId uint64 `protobuf:"varint,5,opt,name=sign_template_id,json=signTemplateId,proto3" json:"sign_template_id,omitempty"` } func (m *EventCreateSpace) Reset() { *m = EventCreateSpace{} } @@ -92,16 +92,16 @@ func (m *EventCreateSpace) GetOwnersCount() uint64 { return 0 } -func (m *EventCreateSpace) GetAdminRuleId() uint64 { +func (m *EventCreateSpace) GetAdminTemplateId() uint64 { if m != nil { - return m.AdminRuleId + return m.AdminTemplateId } return 0 } -func (m *EventCreateSpace) GetSignRuleId() uint64 { +func (m *EventCreateSpace) GetSignTemplateId() uint64 { if m != nil { - return m.SignRuleId + return m.SignTemplateId } return 0 } @@ -110,18 +110,18 @@ func (m *EventCreateSpace) GetSignRuleId() uint64 { type EventUpdateSpace struct { // id of the space being updated SpaceId uint64 `protobuf:"varint,1,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` - // id of the rule to be applied to every admin operation - AdminRuleId uint64 `protobuf:"varint,2,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - // id of the rule to be applied to every sign operation - SignRuleId uint64 `protobuf:"varint,3,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` - // id of the rule to be applied to every approve admin operation - ApproveAdminRuleId uint64 `protobuf:"varint,4,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` - // id of the rule to be applied to every reject admin operation - RejectAdminRuleId uint64 `protobuf:"varint,5,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` - // id of the rule to be applied to every approve sign operation - ApproveSignRuleId uint64 `protobuf:"varint,6,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` - // id of the rule to be applied to every reject sign operation - RejectSignRuleId uint64 `protobuf:"varint,7,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` + // id of the template to be applied to every admin operation + AdminTemplateId uint64 `protobuf:"varint,2,opt,name=admin_template_id,json=adminTemplateId,proto3" json:"admin_template_id,omitempty"` + // id of the template to be applied to every sign operation + SignTemplateId uint64 `protobuf:"varint,3,opt,name=sign_template_id,json=signTemplateId,proto3" json:"sign_template_id,omitempty"` + // id of the template to be applied to every approve admin operation + ApproveAdminTemplateId uint64 `protobuf:"varint,4,opt,name=approve_admin_template_id,json=approveAdminTemplateId,proto3" json:"approve_admin_template_id,omitempty"` + // id of the template to be applied to every reject admin operation + RejectAdminTemplateId uint64 `protobuf:"varint,5,opt,name=reject_admin_template_id,json=rejectAdminTemplateId,proto3" json:"reject_admin_template_id,omitempty"` + // id of the template to be applied to every approve sign operation + ApproveSignTemplateId uint64 `protobuf:"varint,6,opt,name=approve_sign_template_id,json=approveSignTemplateId,proto3" json:"approve_sign_template_id,omitempty"` + // id of the template to be applied to every reject sign operation + RejectSignTemplateId uint64 `protobuf:"varint,7,opt,name=reject_sign_template_id,json=rejectSignTemplateId,proto3" json:"reject_sign_template_id,omitempty"` } func (m *EventUpdateSpace) Reset() { *m = EventUpdateSpace{} } @@ -164,44 +164,44 @@ func (m *EventUpdateSpace) GetSpaceId() uint64 { return 0 } -func (m *EventUpdateSpace) GetAdminRuleId() uint64 { +func (m *EventUpdateSpace) GetAdminTemplateId() uint64 { if m != nil { - return m.AdminRuleId + return m.AdminTemplateId } return 0 } -func (m *EventUpdateSpace) GetSignRuleId() uint64 { +func (m *EventUpdateSpace) GetSignTemplateId() uint64 { if m != nil { - return m.SignRuleId + return m.SignTemplateId } return 0 } -func (m *EventUpdateSpace) GetApproveAdminRuleId() uint64 { +func (m *EventUpdateSpace) GetApproveAdminTemplateId() uint64 { if m != nil { - return m.ApproveAdminRuleId + return m.ApproveAdminTemplateId } return 0 } -func (m *EventUpdateSpace) GetRejectAdminRuleId() uint64 { +func (m *EventUpdateSpace) GetRejectAdminTemplateId() uint64 { if m != nil { - return m.RejectAdminRuleId + return m.RejectAdminTemplateId } return 0 } -func (m *EventUpdateSpace) GetApproveSignRuleId() uint64 { +func (m *EventUpdateSpace) GetApproveSignTemplateId() uint64 { if m != nil { - return m.ApproveSignRuleId + return m.ApproveSignTemplateId } return 0 } -func (m *EventUpdateSpace) GetRejectSignRuleId() uint64 { +func (m *EventUpdateSpace) GetRejectSignTemplateId() uint64 { if m != nil { - return m.RejectSignRuleId + return m.RejectSignTemplateId } return 0 } @@ -342,8 +342,8 @@ type EventNewKeyRequest struct { SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` // keychain_id associated with the key request KeychainId uint64 `protobuf:"varint,3,opt,name=keychain_id,json=keychainId,proto3" json:"keychain_id,omitempty"` - // id of the rule to be applied to every sign operation for this key - RuleId uint64 `protobuf:"varint,4,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + // id of the template to be applied to every sign operation for this key + TemplateId uint64 `protobuf:"varint,4,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` // the crypto scheme requested for this key KeyType KeyType `protobuf:"varint,5,opt,name=key_type,json=keyType,proto3,enum=warden.warden.v1beta3.KeyType" json:"key_type,omitempty"` // address of the account that requested the key @@ -404,9 +404,9 @@ func (m *EventNewKeyRequest) GetKeychainId() uint64 { return 0 } -func (m *EventNewKeyRequest) GetRuleId() uint64 { +func (m *EventNewKeyRequest) GetTemplateId() uint64 { if m != nil { - return m.RuleId + return m.TemplateId } return 0 } @@ -435,8 +435,8 @@ type EventNewKey struct { SpaceId uint64 `protobuf:"varint,3,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` // keychain_id associated with the key request KeychainId uint64 `protobuf:"varint,4,opt,name=keychain_id,json=keychainId,proto3" json:"keychain_id,omitempty"` - // id of the rule to be applied to every sign operation for this key - RuleId uint64 `protobuf:"varint,5,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + // id of the template to be applied to every sign operation for this key + TemplateId uint64 `protobuf:"varint,5,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` } func (m *EventNewKey) Reset() { *m = EventNewKey{} } @@ -500,9 +500,9 @@ func (m *EventNewKey) GetKeychainId() uint64 { return 0 } -func (m *EventNewKey) GetRuleId() uint64 { +func (m *EventNewKey) GetTemplateId() uint64 { if m != nil { - return m.RuleId + return m.TemplateId } return 0 } @@ -557,12 +557,12 @@ func (m *EventRejectKeyRequest) GetId() uint64 { type EventUpdateKey struct { // id of the key Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - // id of the rule to be applied to every sign operation - RuleId uint64 `protobuf:"varint,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` - // id of the rule to be applied to every approve sign operation - ApproveRuleId uint64 `protobuf:"varint,3,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` - // id of the rule to be applied to every reject sign operation - RejectRuleId uint64 `protobuf:"varint,4,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` + // id of the template to be applied to every sign operation + TemplateId uint64 `protobuf:"varint,2,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + // id of the template to be applied to every approve sign operation + ApproveTemplateId uint64 `protobuf:"varint,3,opt,name=approve_template_id,json=approveTemplateId,proto3" json:"approve_template_id,omitempty"` + // id of the template to be applied to every reject sign operation + RejectTemplateId uint64 `protobuf:"varint,4,opt,name=reject_template_id,json=rejectTemplateId,proto3" json:"reject_template_id,omitempty"` } func (m *EventUpdateKey) Reset() { *m = EventUpdateKey{} } @@ -605,23 +605,23 @@ func (m *EventUpdateKey) GetId() uint64 { return 0 } -func (m *EventUpdateKey) GetRuleId() uint64 { +func (m *EventUpdateKey) GetTemplateId() uint64 { if m != nil { - return m.RuleId + return m.TemplateId } return 0 } -func (m *EventUpdateKey) GetApproveRuleId() uint64 { +func (m *EventUpdateKey) GetApproveTemplateId() uint64 { if m != nil { - return m.ApproveRuleId + return m.ApproveTemplateId } return 0 } -func (m *EventUpdateKey) GetRejectRuleId() uint64 { +func (m *EventUpdateKey) GetRejectTemplateId() uint64 { if m != nil { - return m.RejectRuleId + return m.RejectTemplateId } return 0 } @@ -1117,59 +1117,59 @@ func init() { } var fileDescriptor_322e8707aae1015e = []byte{ - // 820 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcb, 0x6e, 0xd3, 0x40, - 0x14, 0x8d, 0x9d, 0x57, 0x7b, 0xf3, 0xa0, 0xb8, 0x0d, 0xa4, 0x45, 0xa4, 0xad, 0x5b, 0x41, 0x37, - 0x4d, 0xd4, 0x56, 0x2c, 0x58, 0xa6, 0x15, 0x45, 0x51, 0xa5, 0x22, 0xb9, 0x3c, 0x24, 0x36, 0x96, - 0xeb, 0xb9, 0x4d, 0x4d, 0x12, 0x3b, 0xd8, 0x4e, 0x43, 0x90, 0x58, 0xb0, 0x62, 0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xc9, 0xf7, 0x03, 0xdb, 0xca, 0x3b, 0x7f, 0xe1, 0xcd, 0x2c, 0xc7, 0xff, - 0x2e, 0x39, 0x4e, 0x51, 0xdc, 0xce, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x73, 0x7d, 0xf3, - 0x44, 0x09, 0x00, 0x00, + // 826 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcd, 0x4e, 0xdb, 0x58, + 0x14, 0x8e, 0x9d, 0x3f, 0x38, 0x09, 0x19, 0x30, 0x84, 0x31, 0x8c, 0x26, 0x80, 0x19, 0x69, 0xa2, + 0xaa, 0x24, 0x2a, 0x08, 0x55, 0x5d, 0x06, 0x54, 0x2a, 0x84, 0x44, 0xa5, 0x40, 0x5b, 0xa9, 0x1b, + 0xcb, 0xd8, 0x87, 0xe0, 0x26, 0xb1, 0x5d, 0xdb, 0x21, 0x4d, 0xa5, 0x2e, 0xba, 0xef, 0xa2, 0x6f, + 0xd0, 0x97, 0x68, 0xdf, 0x81, 0x25, 0xea, 0xa2, 0xea, 0xaa, 0xaa, 0x60, 0xd1, 0xd7, 0xa8, 0x7c, + 0xef, 0xb5, 0xb1, 0x63, 0x27, 0x04, 0x75, 0x15, 0xdf, 0x73, 0xbe, 0x93, 0xef, 0xbb, 0xe7, 0xcf, + 0x06, 0xa9, 0xaf, 0xd8, 0x1a, 0x1a, 0x75, 0xf6, 0x73, 0xfe, 0xe0, 0x04, 0x5d, 0x65, 0xab, 0x8e, + 0xe7, 0x68, 0xb8, 0x4e, 0xcd, 0xb2, 0x4d, 0xd7, 0x14, 0xca, 0xd4, 0x59, 0x63, 0x3f, 0x0c, 0xb3, + 0xbc, 0xa4, 0x9a, 0x4e, 0xd7, 0x74, 0x64, 0x02, 0xaa, 0xd3, 0x03, 0x8d, 0x58, 0x5e, 0x68, 0x99, + 0x2d, 0x93, 0xda, 0x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, 0xcb, 0x3f, 0xc6, 0xb6, 0x4d, 0x37, 0x2c, 0x79, 0x71, 0x50, 0xb2, 0x1d, + 0xf1, 0xeb, 0xe7, 0x8d, 0x05, 0xf6, 0xd9, 0xd0, 0xd0, 0x34, 0x1b, 0x1d, 0xe7, 0xc8, 0xb5, 0x75, + 0xa3, 0x45, 0x76, 0x2f, 0xfd, 0x9b, 0x35, 0x28, 0x92, 0x90, 0xa1, 0xfd, 0x47, 0x6d, 0x54, 0xc3, + 0x3b, 0x10, 0x43, 0xbb, 0x77, 0xbc, 0x8a, 0x1a, 0x64, 0x27, 0x53, 0x40, 0x61, 0x13, 0xd0, 0xef, + 0x28, 0x17, 0x57, 0x15, 0xee, 0xf2, 0xaa, 0xc2, 0xfd, 0xbc, 0xaa, 0x70, 0x1f, 0xaf, 0x2b, 0xa9, + 0xcb, 0xeb, 0x4a, 0xea, 0xfb, 0x75, 0x25, 0xf5, 0xf2, 0x49, 0x4b, 0x77, 0xcf, 0x7a, 0x27, 0x35, + 0xd5, 0xec, 0xb2, 0x2f, 0x9a, 0x0d, 0xf2, 0x01, 0xa3, 0x9a, 0x1d, 0x76, 0x1e, 0x3a, 0xd6, 0xdf, + 0xf8, 0x0f, 0xde, 0x4e, 0x73, 0xfc, 0xef, 0x9f, 0x93, 0x1c, 0xc1, 0x6d, 0xfd, 0x0e, 0x00, 0x00, + 0xff, 0xff, 0x47, 0x38, 0xc7, 0xe9, 0xac, 0x09, 0x00, 0x00, } func (m *EventCreateSpace) Marshal() (dAtA []byte, err error) { @@ -1192,13 +1192,13 @@ func (m *EventCreateSpace) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.SignRuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.SignRuleId)) + if m.SignTemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.SignTemplateId)) i-- dAtA[i] = 0x28 } - if m.AdminRuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.AdminRuleId)) + if m.AdminTemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.AdminTemplateId)) i-- dAtA[i] = 0x20 } @@ -1242,33 +1242,33 @@ func (m *EventUpdateSpace) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.RejectSignRuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.RejectSignRuleId)) + if m.RejectSignTemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RejectSignTemplateId)) i-- dAtA[i] = 0x38 } - if m.ApproveSignRuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.ApproveSignRuleId)) + if m.ApproveSignTemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ApproveSignTemplateId)) i-- dAtA[i] = 0x30 } - if m.RejectAdminRuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.RejectAdminRuleId)) + if m.RejectAdminTemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RejectAdminTemplateId)) i-- dAtA[i] = 0x28 } - if m.ApproveAdminRuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.ApproveAdminRuleId)) + if m.ApproveAdminTemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ApproveAdminTemplateId)) i-- dAtA[i] = 0x20 } - if m.SignRuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.SignRuleId)) + if m.SignTemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.SignTemplateId)) i-- dAtA[i] = 0x18 } - if m.AdminRuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.AdminRuleId)) + if m.AdminTemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.AdminTemplateId)) i-- dAtA[i] = 0x10 } @@ -1392,8 +1392,8 @@ func (m *EventNewKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x28 } - if m.RuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.RuleId)) + if m.TemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.TemplateId)) i-- dAtA[i] = 0x20 } @@ -1435,8 +1435,8 @@ func (m *EventNewKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.RuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.RuleId)) + if m.TemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.TemplateId)) i-- dAtA[i] = 0x28 } @@ -1511,18 +1511,18 @@ func (m *EventUpdateKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.RejectRuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.RejectRuleId)) + if m.RejectTemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RejectTemplateId)) i-- dAtA[i] = 0x20 } - if m.ApproveRuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.ApproveRuleId)) + if m.ApproveTemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ApproveTemplateId)) i-- dAtA[i] = 0x18 } - if m.RuleId != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.RuleId)) + if m.TemplateId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.TemplateId)) i-- dAtA[i] = 0x10 } @@ -1860,11 +1860,11 @@ func (m *EventCreateSpace) Size() (n int) { if m.OwnersCount != 0 { n += 1 + sovEvents(uint64(m.OwnersCount)) } - if m.AdminRuleId != 0 { - n += 1 + sovEvents(uint64(m.AdminRuleId)) + if m.AdminTemplateId != 0 { + n += 1 + sovEvents(uint64(m.AdminTemplateId)) } - if m.SignRuleId != 0 { - n += 1 + sovEvents(uint64(m.SignRuleId)) + if m.SignTemplateId != 0 { + n += 1 + sovEvents(uint64(m.SignTemplateId)) } return n } @@ -1878,23 +1878,23 @@ func (m *EventUpdateSpace) Size() (n int) { if m.SpaceId != 0 { n += 1 + sovEvents(uint64(m.SpaceId)) } - if m.AdminRuleId != 0 { - n += 1 + sovEvents(uint64(m.AdminRuleId)) + if m.AdminTemplateId != 0 { + n += 1 + sovEvents(uint64(m.AdminTemplateId)) } - if m.SignRuleId != 0 { - n += 1 + sovEvents(uint64(m.SignRuleId)) + if m.SignTemplateId != 0 { + n += 1 + sovEvents(uint64(m.SignTemplateId)) } - if m.ApproveAdminRuleId != 0 { - n += 1 + sovEvents(uint64(m.ApproveAdminRuleId)) + if m.ApproveAdminTemplateId != 0 { + n += 1 + sovEvents(uint64(m.ApproveAdminTemplateId)) } - if m.RejectAdminRuleId != 0 { - n += 1 + sovEvents(uint64(m.RejectAdminRuleId)) + if m.RejectAdminTemplateId != 0 { + n += 1 + sovEvents(uint64(m.RejectAdminTemplateId)) } - if m.ApproveSignRuleId != 0 { - n += 1 + sovEvents(uint64(m.ApproveSignRuleId)) + if m.ApproveSignTemplateId != 0 { + n += 1 + sovEvents(uint64(m.ApproveSignTemplateId)) } - if m.RejectSignRuleId != 0 { - n += 1 + sovEvents(uint64(m.RejectSignRuleId)) + if m.RejectSignTemplateId != 0 { + n += 1 + sovEvents(uint64(m.RejectSignTemplateId)) } return n } @@ -1952,8 +1952,8 @@ func (m *EventNewKeyRequest) Size() (n int) { if m.KeychainId != 0 { n += 1 + sovEvents(uint64(m.KeychainId)) } - if m.RuleId != 0 { - n += 1 + sovEvents(uint64(m.RuleId)) + if m.TemplateId != 0 { + n += 1 + sovEvents(uint64(m.TemplateId)) } if m.KeyType != 0 { n += 1 + sovEvents(uint64(m.KeyType)) @@ -1983,8 +1983,8 @@ func (m *EventNewKey) Size() (n int) { if m.KeychainId != 0 { n += 1 + sovEvents(uint64(m.KeychainId)) } - if m.RuleId != 0 { - n += 1 + sovEvents(uint64(m.RuleId)) + if m.TemplateId != 0 { + n += 1 + sovEvents(uint64(m.TemplateId)) } return n } @@ -2010,14 +2010,14 @@ func (m *EventUpdateKey) Size() (n int) { if m.Id != 0 { n += 1 + sovEvents(uint64(m.Id)) } - if m.RuleId != 0 { - n += 1 + sovEvents(uint64(m.RuleId)) + if m.TemplateId != 0 { + n += 1 + sovEvents(uint64(m.TemplateId)) } - if m.ApproveRuleId != 0 { - n += 1 + sovEvents(uint64(m.ApproveRuleId)) + if m.ApproveTemplateId != 0 { + n += 1 + sovEvents(uint64(m.ApproveTemplateId)) } - if m.RejectRuleId != 0 { - n += 1 + sovEvents(uint64(m.RejectRuleId)) + if m.RejectTemplateId != 0 { + n += 1 + sovEvents(uint64(m.RejectTemplateId)) } return n } @@ -2261,9 +2261,9 @@ func (m *EventCreateSpace) Unmarshal(dAtA []byte) error { } case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AdminRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AdminTemplateId", wireType) } - m.AdminRuleId = 0 + m.AdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -2273,16 +2273,16 @@ func (m *EventCreateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AdminRuleId |= uint64(b&0x7F) << shift + m.AdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SignRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SignTemplateId", wireType) } - m.SignRuleId = 0 + m.SignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -2292,7 +2292,7 @@ func (m *EventCreateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SignRuleId |= uint64(b&0x7F) << shift + m.SignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2368,9 +2368,9 @@ func (m *EventUpdateSpace) Unmarshal(dAtA []byte) error { } case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AdminRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AdminTemplateId", wireType) } - m.AdminRuleId = 0 + m.AdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -2380,16 +2380,16 @@ func (m *EventUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AdminRuleId |= uint64(b&0x7F) << shift + m.AdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SignRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SignTemplateId", wireType) } - m.SignRuleId = 0 + m.SignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -2399,16 +2399,16 @@ func (m *EventUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SignRuleId |= uint64(b&0x7F) << shift + m.SignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminTemplateId", wireType) } - m.ApproveAdminRuleId = 0 + m.ApproveAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -2418,16 +2418,16 @@ func (m *EventUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproveAdminRuleId |= uint64(b&0x7F) << shift + m.ApproveAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RejectAdminTemplateId", wireType) } - m.RejectAdminRuleId = 0 + m.RejectAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -2437,16 +2437,16 @@ func (m *EventUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RejectAdminRuleId |= uint64(b&0x7F) << shift + m.RejectAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApproveSignTemplateId", wireType) } - m.ApproveSignRuleId = 0 + m.ApproveSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -2456,16 +2456,16 @@ func (m *EventUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproveSignRuleId |= uint64(b&0x7F) << shift + m.ApproveSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RejectSignTemplateId", wireType) } - m.RejectSignRuleId = 0 + m.RejectSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -2475,7 +2475,7 @@ func (m *EventUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RejectSignRuleId |= uint64(b&0x7F) << shift + m.RejectSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2829,9 +2829,9 @@ func (m *EventNewKeyRequest) Unmarshal(dAtA []byte) error { } case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - m.RuleId = 0 + m.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -2841,7 +2841,7 @@ func (m *EventNewKeyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RuleId |= uint64(b&0x7F) << shift + m.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3025,9 +3025,9 @@ func (m *EventNewKey) Unmarshal(dAtA []byte) error { } case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - m.RuleId = 0 + m.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -3037,7 +3037,7 @@ func (m *EventNewKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RuleId |= uint64(b&0x7F) << shift + m.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3182,9 +3182,9 @@ func (m *EventUpdateKey) Unmarshal(dAtA []byte) error { } case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - m.RuleId = 0 + m.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -3194,16 +3194,16 @@ func (m *EventUpdateKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RuleId |= uint64(b&0x7F) << shift + m.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApproveTemplateId", wireType) } - m.ApproveRuleId = 0 + m.ApproveTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -3213,16 +3213,16 @@ func (m *EventUpdateKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproveRuleId |= uint64(b&0x7F) << shift + m.ApproveTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RejectTemplateId", wireType) } - m.RejectRuleId = 0 + m.RejectTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvents @@ -3232,7 +3232,7 @@ func (m *EventUpdateKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RejectRuleId |= uint64(b&0x7F) << shift + m.RejectTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } diff --git a/warden/x/warden/types/v1beta3/key.pb.go b/warden/x/warden/types/v1beta3/key.pb.go index a3b18a9fe..d7fa9a148 100644 --- a/warden/x/warden/types/v1beta3/key.pb.go +++ b/warden/x/warden/types/v1beta3/key.pb.go @@ -152,8 +152,8 @@ type KeyRequest struct { Status KeyRequestStatus `protobuf:"varint,6,opt,name=status,proto3,enum=warden.warden.v1beta3.KeyRequestStatus" json:"status,omitempty"` // If the request is rejected, this field will contain the reason. RejectReason string `protobuf:"bytes,7,opt,name=reject_reason,json=rejectReason,proto3" json:"reject_reason,omitempty"` - // ID of the Rule that the resulting Key will use. - RuleId uint64 `protobuf:"varint,8,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + // ID of the Template that the resulting Key will use. + TemplateId uint64 `protobuf:"varint,8,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` // Amount of fees deducted during new key request DeductedKeychainFees github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,9,rep,name=deducted_keychain_fees,json=deductedKeychainFees,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"deducted_keychain_fees"` } @@ -240,9 +240,9 @@ func (m *KeyRequest) GetRejectReason() string { return "" } -func (m *KeyRequest) GetRuleId() uint64 { +func (m *KeyRequest) GetTemplateId() uint64 { if m != nil { - return m.RuleId + return m.TemplateId } return 0 } @@ -267,18 +267,18 @@ type Key struct { // Public key of the key. The private key is only known to the Keychain that // generated it. PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - // ID of the Rule that will need to be satisfied for using this key to sign + // ID of the Template that will need to be satisfied for using this key to sign // data. - // If this is not set, the key will use the signing Rule of the Space. - RuleId uint64 `protobuf:"varint,6,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` - // ID of the Rule that will need to be satisfied for using this key to sign + // If this is not set, the key will use the signing Template of the Space. + TemplateId uint64 `protobuf:"varint,6,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + // ID of the Template that will need to be satisfied for using this key to sign // data. - // If this is not set, the key will use the approve signing Rule of the Space. - ApproveRuleId uint64 `protobuf:"varint,7,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` - // ID of the Rule that will need to be satisfied for rejecting using this key to sign + // If this is not set, the key will use the approve signing Template of the Space. + ApproveTemplateId uint64 `protobuf:"varint,7,opt,name=approve_template_id,json=approveTemplateId,proto3" json:"approve_template_id,omitempty"` + // ID of the Template that will need to be satisfied for rejecting using this key to sign // data. - // If this is not set, the key will use the reject signing Rule of the Space. - RejectRuleId uint64 `protobuf:"varint,8,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` + // If this is not set, the key will use the reject signing Template of the Space. + RejectTemplateId uint64 `protobuf:"varint,8,opt,name=reject_template_id,json=rejectTemplateId,proto3" json:"reject_template_id,omitempty"` } func (m *Key) Reset() { *m = Key{} } @@ -349,23 +349,23 @@ func (m *Key) GetPublicKey() []byte { return nil } -func (m *Key) GetRuleId() uint64 { +func (m *Key) GetTemplateId() uint64 { if m != nil { - return m.RuleId + return m.TemplateId } return 0 } -func (m *Key) GetApproveRuleId() uint64 { +func (m *Key) GetApproveTemplateId() uint64 { if m != nil { - return m.ApproveRuleId + return m.ApproveTemplateId } return 0 } -func (m *Key) GetRejectRuleId() uint64 { +func (m *Key) GetRejectTemplateId() uint64 { if m != nil { - return m.RejectRuleId + return m.RejectTemplateId } return 0 } @@ -381,53 +381,53 @@ func init() { func init() { proto.RegisterFile("warden/warden/v1beta3/key.proto", fileDescriptor_ea87ed804a1dfb88) } var fileDescriptor_ea87ed804a1dfb88 = []byte{ - // 729 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0x8e, 0x9d, 0x90, 0xb4, 0xdb, 0x1f, 0xcc, 0xaa, 0x2d, 0x6e, 0x28, 0x4e, 0x54, 0x10, 0x44, - 0x91, 0x6a, 0x2b, 0xa9, 0x8a, 0xd4, 0x13, 0x4a, 0xe3, 0x4d, 0x31, 0xe9, 0x4f, 0xb0, 0x93, 0x43, - 0x91, 0x90, 0x71, 0xec, 0x25, 0x35, 0x49, 0xe3, 0xe0, 0x75, 0x0a, 0x7e, 0x06, 0x2e, 0xdc, 0x10, - 0x3c, 0x01, 0xe2, 0xd4, 0xa7, 0x40, 0x3d, 0xf6, 0xc8, 0x09, 0x50, 0x7b, 0xe8, 0x6b, 0x20, 0xaf, - 0xed, 0xd2, 0xb4, 0x01, 0x71, 0xf1, 0xce, 0xcc, 0xf7, 0x8d, 0x77, 0x66, 0xbe, 0xd1, 0x82, 0xdc, - 0x5b, 0xc3, 0xb5, 0x70, 0x5f, 0x8a, 0x8e, 0xc3, 0x52, 0x1b, 0x7b, 0xc6, 0xaa, 0xd4, 0xc5, 0xbe, - 0x38, 0x70, 0x1d, 0xcf, 0x81, 0xf3, 0x21, 0x22, 0x46, 0x47, 0x44, 0xc8, 0xde, 0x32, 0x0e, 0xec, - 0xbe, 0x23, 0xd1, 0x6f, 0xc8, 0xcc, 0x0a, 0xa6, 0x43, 0x0e, 0x1c, 0x22, 0xb5, 0x0d, 0x82, 0xa3, - 0x1f, 0x95, 0x24, 0xd3, 0xb1, 0xfb, 0x11, 0x3e, 0xd7, 0x71, 0x3a, 0x0e, 0x35, 0xa5, 0xc0, 0x0a, - 0xa3, 0xcb, 0xdf, 0x92, 0x00, 0xd4, 0xb1, 0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x43, 0x54, 0x4d, 0x49, - 0xac, 0x3a, 0x76, 0x7f, 0xa3, 0x76, 0xfc, 0x23, 0x97, 0xf8, 0xfa, 0x33, 0x57, 0xe8, 0xd8, 0xde, - 0xfe, 0xb0, 0x2d, 0x9a, 0xce, 0x81, 0x14, 0x69, 0x16, 0x1e, 0x2b, 0xc4, 0xea, 0x4a, 0xc1, 0x50, - 0x08, 0x4d, 0x20, 0x9f, 0xcf, 0x8f, 0x8a, 0xd3, 0x3d, 0xdc, 0x31, 0x4c, 0x5f, 0x0f, 0x84, 0x24, - 0x5f, 0xce, 0x8f, 0x8a, 0x8c, 0x3a, 0x17, 0x17, 0x50, 0x8f, 0xee, 0xaf, 0x61, 0x4c, 0x96, 0xdf, - 0xb3, 0x20, 0x59, 0xc7, 0xfe, 0x35, 0x05, 0x2f, 0xeb, 0xc4, 0xfe, 0x53, 0xa7, 0xe4, 0x35, 0x9d, - 0xca, 0x20, 0x45, 0x35, 0x4a, 0xfd, 0x97, 0x46, 0x94, 0x0b, 0xef, 0x02, 0x30, 0x18, 0xb6, 0x7b, - 0xb6, 0x19, 0x8c, 0x87, 0xaa, 0x3b, 0xad, 0x4e, 0x86, 0x91, 0xa0, 0xbc, 0x4b, 0x93, 0x4d, 0x8f, - 0x4c, 0xf6, 0x01, 0xb8, 0x69, 0x0c, 0x06, 0xae, 0x73, 0x88, 0xf5, 0x98, 0x90, 0xa1, 0x84, 0x99, - 0x28, 0xac, 0x86, 0xbc, 0xfb, 0x60, 0x36, 0xd6, 0x6f, 0x44, 0xa1, 0x58, 0x40, 0xca, 0x2a, 0x7e, - 0x62, 0x00, 0x77, 0x75, 0x05, 0xe0, 0x32, 0x10, 0xea, 0x68, 0x4f, 0x57, 0xd1, 0xb3, 0x16, 0xd2, - 0x9a, 0xba, 0xd6, 0xac, 0x34, 0x5b, 0x9a, 0xde, 0xda, 0xd1, 0x1a, 0xa8, 0xaa, 0xd4, 0x14, 0x24, - 0x73, 0x09, 0x28, 0x80, 0xec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 0x77, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x1b, 0xbb, 0x55, 0xec, 0x20, 0x05, 0x00, 0x00, + // 734 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x4d, 0x4f, 0xdb, 0x48, + 0x18, 0x8e, 0x9d, 0x6c, 0x02, 0x03, 0x8b, 0xcc, 0x2c, 0x20, 0x93, 0x65, 0x9d, 0x88, 0x3d, 0x6c, + 0x14, 0x2d, 0xb6, 0x12, 0xc4, 0x4a, 0x9c, 0x56, 0x21, 0x9e, 0xb0, 0xde, 0xf0, 0x91, 0xb5, 0x9d, + 0x03, 0x2b, 0x55, 0xae, 0x63, 0x4f, 0x83, 0x9b, 0x0f, 0xbb, 0x1e, 0x87, 0xd6, 0xff, 0xa2, 0xb7, + 0xaa, 0xbd, 0xf6, 0x52, 0xf5, 0xc4, 0xcf, 0xe0, 0x54, 0x71, 0xec, 0xa9, 0xad, 0xe0, 0xc0, 0xdf, + 0xa8, 0x3c, 0x76, 0xf8, 0x48, 0xd2, 0xaa, 0x97, 0xcc, 0xbc, 0xef, 0xf3, 0xbc, 0x99, 0xf7, 0x79, + 0x9f, 0xf1, 0x80, 0xc2, 0x73, 0xd3, 0xb7, 0xf1, 0x50, 0x4a, 0x96, 0xb3, 0x4a, 0x07, 0x07, 0xe6, + 0xb6, 0xd4, 0xc3, 0xa1, 0xe8, 0xf9, 0x6e, 0xe0, 0xc2, 0xd5, 0x18, 0x11, 0x93, 0x25, 0x21, 0xe4, + 0x97, 0xcd, 0x81, 0x33, 0x74, 0x25, 0xfa, 0x1b, 0x33, 0xf3, 0x82, 0xe5, 0x92, 0x81, 0x4b, 0xa4, + 0x8e, 0x49, 0x70, 0xf2, 0x47, 0x15, 0xc9, 0x72, 0x9d, 0x61, 0x82, 0xaf, 0x74, 0xdd, 0xae, 0x4b, + 0xb7, 0x52, 0xb4, 0x8b, 0xb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 0x95, 0x86, 0x82, 0x64, 0x2e, 0x05, 0x05, 0x90, 0x9f, 0xc1, 0x69, 0xa1, 0x23, 0x59, 0x39, + 0xda, 0xe7, 0x18, 0x58, 0x04, 0x1b, 0x33, 0xf0, 0x46, 0xfb, 0xa0, 0xa1, 0x1c, 0x1c, 0x20, 0x99, + 0x63, 0x61, 0x01, 0xfc, 0x3a, 0x83, 0xa1, 0xa2, 0x7f, 0x51, 0x5d, 0x47, 0x32, 0x97, 0x2e, 0x3f, + 0x02, 0xb9, 0x64, 0x94, 0x90, 0x07, 0x2b, 0x11, 0x57, 0x3f, 0x69, 0xa1, 0x89, 0x3e, 0x36, 0x00, + 0x7f, 0x8b, 0xa0, 0xba, 0xac, 0xd5, 0x0c, 0x0d, 0xd5, 0x5b, 0xd5, 0x9d, 0xbf, 0x9a, 0x15, 0x8e, + 0x81, 0x79, 0xb0, 0x76, 0x87, 0xca, 0x11, 0x8a, 0xe4, 0xea, 0xce, 0x4e, 0x65, 0x97, 0x63, 0xcb, + 0x8f, 0xc1, 0x42, 0xcd, 0xb6, 0x7d, 0x4c, 0x08, 0x3d, 0x62, 0x03, 0xf0, 0x35, 0x59, 0x56, 0x91, + 0xa6, 0xcd, 0x3a, 0x66, 0x1d, 0xac, 0x3e, 0x40, 0x91, 0xfe, 0x0f, 0x52, 0x51, 0xfb, 0x90, 0x63, + 0xa2, 0xde, 0x1e, 0x40, 0xc7, 0xda, 0xe1, 0xb1, 0xa6, 0x68, 0x1c, 0xbb, 0x67, 0x5e, 0x5c, 0x09, + 0xcc, 0xe5, 0x95, 0xc0, 0x7c, 0xb9, 0x12, 0x98, 0x97, 0xd7, 0x42, 0xea, 0xf2, 0x5a, 0x48, 0x7d, + 0xbc, 0x16, 0x52, 0xff, 0xef, 0xdf, 0xbb, 0xf2, 0xf1, 0xed, 0xd9, 0xa2, 0xcf, 0x90, 0xe5, 0xf6, + 0x93, 0x78, 0x22, 0x94, 0x5e, 0x8c, 0x37, 0xf4, 0x7b, 0x18, 0x3f, 0x90, 0x9d, 0x2c, 0xe5, 0x6d, + 0x7f, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x76, 0x04, 0x4a, 0x40, 0x05, 0x00, 0x00, } func (m *KeyRequest) Marshal() (dAtA []byte, err error) { @@ -464,8 +464,8 @@ func (m *KeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x4a } } - if m.RuleId != 0 { - i = encodeVarintKey(dAtA, i, uint64(m.RuleId)) + if m.TemplateId != 0 { + i = encodeVarintKey(dAtA, i, uint64(m.TemplateId)) i-- dAtA[i] = 0x40 } @@ -531,18 +531,18 @@ func (m *Key) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.RejectRuleId != 0 { - i = encodeVarintKey(dAtA, i, uint64(m.RejectRuleId)) + if m.RejectTemplateId != 0 { + i = encodeVarintKey(dAtA, i, uint64(m.RejectTemplateId)) i-- dAtA[i] = 0x40 } - if m.ApproveRuleId != 0 { - i = encodeVarintKey(dAtA, i, uint64(m.ApproveRuleId)) + if m.ApproveTemplateId != 0 { + i = encodeVarintKey(dAtA, i, uint64(m.ApproveTemplateId)) i-- dAtA[i] = 0x38 } - if m.RuleId != 0 { - i = encodeVarintKey(dAtA, i, uint64(m.RuleId)) + if m.TemplateId != 0 { + i = encodeVarintKey(dAtA, i, uint64(m.TemplateId)) i-- dAtA[i] = 0x30 } @@ -616,8 +616,8 @@ func (m *KeyRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKey(uint64(l)) } - if m.RuleId != 0 { - n += 1 + sovKey(uint64(m.RuleId)) + if m.TemplateId != 0 { + n += 1 + sovKey(uint64(m.TemplateId)) } if len(m.DeductedKeychainFees) > 0 { for _, e := range m.DeductedKeychainFees { @@ -650,14 +650,14 @@ func (m *Key) Size() (n int) { if l > 0 { n += 1 + l + sovKey(uint64(l)) } - if m.RuleId != 0 { - n += 1 + sovKey(uint64(m.RuleId)) + if m.TemplateId != 0 { + n += 1 + sovKey(uint64(m.TemplateId)) } - if m.ApproveRuleId != 0 { - n += 1 + sovKey(uint64(m.ApproveRuleId)) + if m.ApproveTemplateId != 0 { + n += 1 + sovKey(uint64(m.ApproveTemplateId)) } - if m.RejectRuleId != 0 { - n += 1 + sovKey(uint64(m.RejectRuleId)) + if m.RejectTemplateId != 0 { + n += 1 + sovKey(uint64(m.RejectTemplateId)) } return n } @@ -858,9 +858,9 @@ func (m *KeyRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 8: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - m.RuleId = 0 + m.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKey @@ -870,7 +870,7 @@ func (m *KeyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RuleId |= uint64(b&0x7F) << shift + m.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1071,9 +1071,9 @@ func (m *Key) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - m.RuleId = 0 + m.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKey @@ -1083,16 +1083,16 @@ func (m *Key) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RuleId |= uint64(b&0x7F) << shift + m.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApproveTemplateId", wireType) } - m.ApproveRuleId = 0 + m.ApproveTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKey @@ -1102,16 +1102,16 @@ func (m *Key) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproveRuleId |= uint64(b&0x7F) << shift + m.ApproveTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 8: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RejectTemplateId", wireType) } - m.RejectRuleId = 0 + m.RejectTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKey @@ -1121,7 +1121,7 @@ func (m *Key) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RejectRuleId |= uint64(b&0x7F) << shift + m.RejectTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } diff --git a/warden/x/warden/types/v1beta3/space.go b/warden/x/warden/types/v1beta3/space.go index 6afc80145..c3a36d390 100644 --- a/warden/x/warden/types/v1beta3/space.go +++ b/warden/x/warden/types/v1beta3/space.go @@ -61,62 +61,62 @@ func (w *Space) IncrementNonce(nonce uint64) (uint64, error) { return w.Nonce, nil } -func (w *Space) RuleApproveAddOwner() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateApproveAddOwner() acttypes.Template { + return w.AnyOwnerTemplate() } -func (w *Space) RuleRejectAddOwner() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateRejectAddOwner() acttypes.Template { + return w.AnyOwnerTemplate() } -func (w *Space) RuleApproveRemoveOwner() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateApproveRemoveOwner() acttypes.Template { + return w.AnyOwnerTemplate() } -func (w *Space) RuleRejectRemoveOwner() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateRejectRemoveOwner() acttypes.Template { + return w.AnyOwnerTemplate() } -func (w *Space) RuleApproveNewKeyRequest() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateApproveNewKeyRequest() acttypes.Template { + return w.AnyOwnerTemplate() } -func (w *Space) RuleRejectNewKeyRequest() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateRejectNewKeyRequest() acttypes.Template { + return w.AnyOwnerTemplate() } -func (w *Space) RuleApproveUpdateKey() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateApproveUpdateKey() acttypes.Template { + return w.AnyOwnerTemplate() } -func (w *Space) RuleRejectUpdateKey() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateRejectUpdateKey() acttypes.Template { + return w.AnyOwnerTemplate() } -func (w *Space) RuleApproveNewSignRequest() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateApproveNewSignRequest() acttypes.Template { + return w.AnyOwnerTemplate() } -func (w *Space) RuleRejectNewSignRequest() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateRejectNewSignRequest() acttypes.Template { + return w.AnyOwnerTemplate() } -func (w *Space) RuleApproveUpdateSpace() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateApproveUpdateSpace() acttypes.Template { + return w.AnyOwnerTemplate() } -func (w *Space) RuleRejectUpdateSpace() acttypes.Rule { - return w.AnyOwnerRule() +func (w *Space) TemplateRejectUpdateSpace() acttypes.Template { + return w.AnyOwnerTemplate() } -// AnyOwnerRule returns a rule that is satisfied when at least one of the owners of the space approves. -func (w *Space) AnyOwnerRule() acttypes.Rule { +// AnyOwnerTemplate returns a template that is satisfied when at least one of the owners of the space approves. +func (w *Space) AnyOwnerTemplate() acttypes.Template { expr, err := shield.Parse("any(1, warden.space.owners)") if err != nil { panic(err) } - return acttypes.Rule{ + return acttypes.Template{ Name: "AnyOwner", Expression: expr, } diff --git a/warden/x/warden/types/v1beta3/space.pb.go b/warden/x/warden/types/v1beta3/space.pb.go index b59da6143..d0a867803 100644 --- a/warden/x/warden/types/v1beta3/space.pb.go +++ b/warden/x/warden/types/v1beta3/space.pb.go @@ -30,74 +30,74 @@ type Space struct { Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // List of owners of the space. Owners []string `protobuf:"bytes,3,rep,name=owners,proto3" json:"owners,omitempty"` - // Optional ID of the Rule to be applied to every *admin* operation. - // If not specified, the default Rule is used. + // Optional ID of the Template to be applied to every *admin* operation. + // If not specified, the default Template is used. // // Admin operations are: // - warden.warden.Msg.AddSpaceOwner // - warden.warden.Msg.RemoveSpaceOwner // - warden.warden.Msg.UpdateSpace // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - AdminRuleId uint64 `protobuf:"varint,5,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - // Optional ID of the Rule to be applied to every *sign* operation. - // If not specified, the default Rule is used. + AdminTemplateId uint64 `protobuf:"varint,5,opt,name=admin_template_id,json=adminTemplateId,proto3" json:"admin_template_id,omitempty"` + // Optional ID of the Template to be applied to every *sign* operation. + // If not specified, the default Template is used. // // Sign operations are: // - warden.warden.Msg.NewKeyRequest // - warden.warden.Msg.NewSignRequest // - warden.warden.Msg.UpdateKey // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - SignRuleId uint64 `protobuf:"varint,6,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` + SignTemplateId uint64 `protobuf:"varint,6,opt,name=sign_template_id,json=signTemplateId,proto3" json:"sign_template_id,omitempty"` // Version of the space. Every time the Space is updated, this number gets increasead by one. Nonce uint64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` - // Optional ID of the Rule to be applied to every approve vote on *admin* operation. - // If not specified, the default Rule is used. + // Optional ID of the Template to be applied to every approve vote on *admin* operation. + // If not specified, the default Template is used. // // Admin operations are: // - warden.warden.Msg.AddSpaceOwner // - warden.warden.Msg.RemoveSpaceOwner // - warden.warden.Msg.UpdateSpace // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - ApproveAdminRuleId uint64 `protobuf:"varint,8,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` - // Optional ID of the Rule to be applied to every reject vote on *admin* operation. - // If not specified, the default Rule is used. + ApproveAdminTemplateId uint64 `protobuf:"varint,8,opt,name=approve_admin_template_id,json=approveAdminTemplateId,proto3" json:"approve_admin_template_id,omitempty"` + // Optional ID of the Template to be applied to every reject vote on *admin* operation. + // If not specified, the default Template is used. // // Admin operations are: // - warden.warden.Msg.AddSpaceOwner // - warden.warden.Msg.RemoveSpaceOwner // - warden.warden.Msg.UpdateSpace // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - RejectAdminRuleId uint64 `protobuf:"varint,9,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` - // Optional ID of the Rule to be applied to every approve vote on *sign* operation. - // If not specified, the default Rule is used. + RejectAdminTemplateId uint64 `protobuf:"varint,9,opt,name=reject_admin_template_id,json=rejectAdminTemplateId,proto3" json:"reject_admin_template_id,omitempty"` + // Optional ID of the Template to be applied to every approve vote on *sign* operation. + // If not specified, the default Template is used. // // Sign operations are: // - warden.warden.Msg.NewKeyRequest // - warden.warden.Msg.NewSignRequest // - warden.warden.Msg.UpdateKey // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - ApproveSignRuleId uint64 `protobuf:"varint,10,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` - // Optional ID of the Rule to be applied to every reject vote on *sign* operation. - // If not specified, the default Rule is used. + ApproveSignTemplateId uint64 `protobuf:"varint,10,opt,name=approve_sign_template_id,json=approveSignTemplateId,proto3" json:"approve_sign_template_id,omitempty"` + // Optional ID of the Template to be applied to every reject vote on *sign* operation. + // If not specified, the default Template is used. // // Sign operations are: // - warden.warden.Msg.NewKeyRequest // - warden.warden.Msg.NewSignRequest // - warden.warden.Msg.UpdateKey // - // The default Rule is to allow any operation when at least one of its + // The default Template is to allow any operation when at least one of its // owner approves it. - RejectSignRuleId uint64 `protobuf:"varint,11,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` + RejectSignTemplateId uint64 `protobuf:"varint,11,opt,name=reject_sign_template_id,json=rejectSignTemplateId,proto3" json:"reject_sign_template_id,omitempty"` } func (m *Space) Reset() { *m = Space{} } @@ -154,16 +154,16 @@ func (m *Space) GetOwners() []string { return nil } -func (m *Space) GetAdminRuleId() uint64 { +func (m *Space) GetAdminTemplateId() uint64 { if m != nil { - return m.AdminRuleId + return m.AdminTemplateId } return 0 } -func (m *Space) GetSignRuleId() uint64 { +func (m *Space) GetSignTemplateId() uint64 { if m != nil { - return m.SignRuleId + return m.SignTemplateId } return 0 } @@ -175,30 +175,30 @@ func (m *Space) GetNonce() uint64 { return 0 } -func (m *Space) GetApproveAdminRuleId() uint64 { +func (m *Space) GetApproveAdminTemplateId() uint64 { if m != nil { - return m.ApproveAdminRuleId + return m.ApproveAdminTemplateId } return 0 } -func (m *Space) GetRejectAdminRuleId() uint64 { +func (m *Space) GetRejectAdminTemplateId() uint64 { if m != nil { - return m.RejectAdminRuleId + return m.RejectAdminTemplateId } return 0 } -func (m *Space) GetApproveSignRuleId() uint64 { +func (m *Space) GetApproveSignTemplateId() uint64 { if m != nil { - return m.ApproveSignRuleId + return m.ApproveSignTemplateId } return 0 } -func (m *Space) GetRejectSignRuleId() uint64 { +func (m *Space) GetRejectSignTemplateId() uint64 { if m != nil { - return m.RejectSignRuleId + return m.RejectSignTemplateId } return 0 } @@ -210,27 +210,28 @@ func init() { func init() { proto.RegisterFile("warden/warden/v1beta3/space.proto", fileDescriptor_da76bdfe3c1772b2) } var fileDescriptor_da76bdfe3c1772b2 = []byte{ - // 314 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xc1, 0x4e, 0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 0xc9, 0x71, 0xc7, 0xb9, 0xa3, 0x88, 0x37, 0x1f, 0xfe, 0x55, - 0xc5, 0xd0, 0x36, 0xf8, 0x86, 0xc2, 0x9e, 0x24, 0x9a, 0x2e, 0x71, 0x53, 0x78, 0x27, 0x81, 0xb2, - 0xe3, 0x68, 0x47, 0x28, 0x02, 0xde, 0x1b, 0x1f, 0x56, 0xed, 0xc3, 0xad, 0x6f, 0x38, 0xe2, 0x5b, - 0x8e, 0xbf, 0x2e, 0xac, 0x03, 0xfe, 0xc8, 0xbf, 0xb6, 0x2c, 0xd8, 0x6c, 0x59, 0xf0, 0xb3, 0x65, - 0xc1, 0xe7, 0x8e, 0x55, 0x36, 0x3b, 0x56, 0xf9, 0xde, 0xb1, 0xca, 0xcb, 0xd3, 0x4c, 0xd9, 0xd7, - 0xe5, 0x74, 0x20, 0xf4, 0xc2, 0xdf, 0xb0, 0xef, 0xae, 0x26, 0xf4, 0xdc, 0xeb, 0x13, 0x19, 0xbf, - 0x97, 0x1f, 0xf6, 0x23, 0xc3, 0xbc, 0xbc, 0xf8, 0xb4, 0xee, 0xb8, 0xd1, 0x5f, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x34, 0xbf, 0xba, 0x4a, 0x11, 0x02, 0x00, 0x00, + // 323 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xb1, 0x4f, 0x02, 0x31, + 0x14, 0xc6, 0x39, 0x10, 0x90, 0x67, 0x82, 0xda, 0x00, 0xd6, 0xe5, 0x82, 0x4e, 0x17, 0x13, 0x21, + 0x86, 0x18, 0xe3, 0xa8, 0x8b, 0x71, 0x05, 0x27, 0x17, 0x52, 0xda, 0x17, 0xac, 0x81, 0x6b, 0xd3, + 0xab, 0xa0, 0xff, 0x85, 0xab, 0xff, 0x91, 0x23, 0xa3, 0xa3, 0x81, 0x7f, 0xc4, 0xd0, 0xeb, 0x25, + 0x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c0, 0xe5, 0x1a, 0xa9, 0xbd, 0x19, 0xbb, 0x67, 0xdf, + 0xcb, 0x30, 0x58, 0x2c, 0xc3, 0xe0, 0x77, 0x19, 0x06, 0x9f, 0xab, 0xb0, 0xb0, 0x58, 0x85, 0x85, + 0x9f, 0x55, 0x58, 0x78, 0x7e, 0x18, 0x4b, 0xfb, 0xf2, 0x36, 0xea, 0x70, 0x35, 0xf5, 0x3b, 0xbf, + 0x74, 0x5b, 0xe6, 0x6a, 0xe2, 0xf5, 0x96, 0xec, 0xbe, 0x67, 0x0f, 0xf6, 0x43, 0x63, 0x92, 0xdd, + 0x90, 0x51, 0xc5, 0x71, 0xbd, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0xa6, 0x7a, 0x79, 0x41, + 0x02, 0x00, 0x00, } func (m *Space) Marshal() (dAtA []byte, err error) { @@ -253,23 +254,23 @@ func (m *Space) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.RejectSignRuleId != 0 { - i = encodeVarintSpace(dAtA, i, uint64(m.RejectSignRuleId)) + if m.RejectSignTemplateId != 0 { + i = encodeVarintSpace(dAtA, i, uint64(m.RejectSignTemplateId)) i-- dAtA[i] = 0x58 } - if m.ApproveSignRuleId != 0 { - i = encodeVarintSpace(dAtA, i, uint64(m.ApproveSignRuleId)) + if m.ApproveSignTemplateId != 0 { + i = encodeVarintSpace(dAtA, i, uint64(m.ApproveSignTemplateId)) i-- dAtA[i] = 0x50 } - if m.RejectAdminRuleId != 0 { - i = encodeVarintSpace(dAtA, i, uint64(m.RejectAdminRuleId)) + if m.RejectAdminTemplateId != 0 { + i = encodeVarintSpace(dAtA, i, uint64(m.RejectAdminTemplateId)) i-- dAtA[i] = 0x48 } - if m.ApproveAdminRuleId != 0 { - i = encodeVarintSpace(dAtA, i, uint64(m.ApproveAdminRuleId)) + if m.ApproveAdminTemplateId != 0 { + i = encodeVarintSpace(dAtA, i, uint64(m.ApproveAdminTemplateId)) i-- dAtA[i] = 0x40 } @@ -278,13 +279,13 @@ func (m *Space) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x38 } - if m.SignRuleId != 0 { - i = encodeVarintSpace(dAtA, i, uint64(m.SignRuleId)) + if m.SignTemplateId != 0 { + i = encodeVarintSpace(dAtA, i, uint64(m.SignTemplateId)) i-- dAtA[i] = 0x30 } - if m.AdminRuleId != 0 { - i = encodeVarintSpace(dAtA, i, uint64(m.AdminRuleId)) + if m.AdminTemplateId != 0 { + i = encodeVarintSpace(dAtA, i, uint64(m.AdminTemplateId)) i-- dAtA[i] = 0x28 } @@ -342,26 +343,26 @@ func (m *Space) Size() (n int) { n += 1 + l + sovSpace(uint64(l)) } } - if m.AdminRuleId != 0 { - n += 1 + sovSpace(uint64(m.AdminRuleId)) + if m.AdminTemplateId != 0 { + n += 1 + sovSpace(uint64(m.AdminTemplateId)) } - if m.SignRuleId != 0 { - n += 1 + sovSpace(uint64(m.SignRuleId)) + if m.SignTemplateId != 0 { + n += 1 + sovSpace(uint64(m.SignTemplateId)) } if m.Nonce != 0 { n += 1 + sovSpace(uint64(m.Nonce)) } - if m.ApproveAdminRuleId != 0 { - n += 1 + sovSpace(uint64(m.ApproveAdminRuleId)) + if m.ApproveAdminTemplateId != 0 { + n += 1 + sovSpace(uint64(m.ApproveAdminTemplateId)) } - if m.RejectAdminRuleId != 0 { - n += 1 + sovSpace(uint64(m.RejectAdminRuleId)) + if m.RejectAdminTemplateId != 0 { + n += 1 + sovSpace(uint64(m.RejectAdminTemplateId)) } - if m.ApproveSignRuleId != 0 { - n += 1 + sovSpace(uint64(m.ApproveSignRuleId)) + if m.ApproveSignTemplateId != 0 { + n += 1 + sovSpace(uint64(m.ApproveSignTemplateId)) } - if m.RejectSignRuleId != 0 { - n += 1 + sovSpace(uint64(m.RejectSignRuleId)) + if m.RejectSignTemplateId != 0 { + n += 1 + sovSpace(uint64(m.RejectSignTemplateId)) } return n } @@ -486,9 +487,9 @@ func (m *Space) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AdminRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AdminTemplateId", wireType) } - m.AdminRuleId = 0 + m.AdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpace @@ -498,16 +499,16 @@ func (m *Space) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AdminRuleId |= uint64(b&0x7F) << shift + m.AdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SignRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SignTemplateId", wireType) } - m.SignRuleId = 0 + m.SignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpace @@ -517,7 +518,7 @@ func (m *Space) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SignRuleId |= uint64(b&0x7F) << shift + m.SignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -543,9 +544,9 @@ func (m *Space) Unmarshal(dAtA []byte) error { } case 8: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminTemplateId", wireType) } - m.ApproveAdminRuleId = 0 + m.ApproveAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpace @@ -555,16 +556,16 @@ func (m *Space) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproveAdminRuleId |= uint64(b&0x7F) << shift + m.ApproveAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 9: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RejectAdminTemplateId", wireType) } - m.RejectAdminRuleId = 0 + m.RejectAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpace @@ -574,16 +575,16 @@ func (m *Space) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RejectAdminRuleId |= uint64(b&0x7F) << shift + m.RejectAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 10: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApproveSignTemplateId", wireType) } - m.ApproveSignRuleId = 0 + m.ApproveSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpace @@ -593,16 +594,16 @@ func (m *Space) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproveSignRuleId |= uint64(b&0x7F) << shift + m.ApproveSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 11: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RejectSignTemplateId", wireType) } - m.RejectSignRuleId = 0 + m.RejectSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpace @@ -612,7 +613,7 @@ func (m *Space) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RejectSignRuleId |= uint64(b&0x7F) << shift + m.RejectSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } diff --git a/warden/x/warden/types/v1beta3/tx.pb.go b/warden/x/warden/types/v1beta3/tx.pb.go index 0c6dcde84..3a3f927ac 100644 --- a/warden/x/warden/types/v1beta3/tx.pb.go +++ b/warden/x/warden/types/v1beta3/tx.pb.go @@ -131,8 +131,8 @@ var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo type MsgNewSpace struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - AdminRuleId uint64 `protobuf:"varint,2,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - SignRuleId uint64 `protobuf:"varint,3,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` + AdminTemplateId uint64 `protobuf:"varint,2,opt,name=admin_template_id,json=adminTemplateId,proto3" json:"admin_template_id,omitempty"` + SignTemplateId uint64 `protobuf:"varint,3,opt,name=sign_template_id,json=signTemplateId,proto3" json:"sign_template_id,omitempty"` AdditionalOwners []string `protobuf:"bytes,4,rep,name=additional_owners,json=additionalOwners,proto3" json:"additional_owners,omitempty"` } @@ -176,16 +176,16 @@ func (m *MsgNewSpace) GetCreator() string { return "" } -func (m *MsgNewSpace) GetAdminRuleId() uint64 { +func (m *MsgNewSpace) GetAdminTemplateId() uint64 { if m != nil { - return m.AdminRuleId + return m.AdminTemplateId } return 0 } -func (m *MsgNewSpace) GetSignRuleId() uint64 { +func (m *MsgNewSpace) GetSignTemplateId() uint64 { if m != nil { - return m.SignRuleId + return m.SignTemplateId } return 0 } @@ -674,15 +674,15 @@ func (m *MsgAddKeychainWriterResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAddKeychainWriterResponse proto.InternalMessageInfo type MsgUpdateSpace struct { - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` - AdminRuleId uint64 `protobuf:"varint,3,opt,name=admin_rule_id,json=adminRuleId,proto3" json:"admin_rule_id,omitempty"` - SignRuleId uint64 `protobuf:"varint,4,opt,name=sign_rule_id,json=signRuleId,proto3" json:"sign_rule_id,omitempty"` - Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"` - ApproveAdminRuleId uint64 `protobuf:"varint,6,opt,name=approve_admin_rule_id,json=approveAdminRuleId,proto3" json:"approve_admin_rule_id,omitempty"` - RejectAdminRuleId uint64 `protobuf:"varint,7,opt,name=reject_admin_rule_id,json=rejectAdminRuleId,proto3" json:"reject_admin_rule_id,omitempty"` - ApproveSignRuleId uint64 `protobuf:"varint,8,opt,name=approve_sign_rule_id,json=approveSignRuleId,proto3" json:"approve_sign_rule_id,omitempty"` - RejectSignRuleId uint64 `protobuf:"varint,9,opt,name=reject_sign_rule_id,json=rejectSignRuleId,proto3" json:"reject_sign_rule_id,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` + AdminTemplateId uint64 `protobuf:"varint,3,opt,name=admin_template_id,json=adminTemplateId,proto3" json:"admin_template_id,omitempty"` + SignTemplateId uint64 `protobuf:"varint,4,opt,name=sign_template_id,json=signTemplateId,proto3" json:"sign_template_id,omitempty"` + Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"` + ApproveAdminTemplateId uint64 `protobuf:"varint,6,opt,name=approve_admin_template_id,json=approveAdminTemplateId,proto3" json:"approve_admin_template_id,omitempty"` + RejectAdminTemplateId uint64 `protobuf:"varint,7,opt,name=reject_admin_template_id,json=rejectAdminTemplateId,proto3" json:"reject_admin_template_id,omitempty"` + ApproveSignTemplateId uint64 `protobuf:"varint,8,opt,name=approve_sign_template_id,json=approveSignTemplateId,proto3" json:"approve_sign_template_id,omitempty"` + RejectSignTemplateId uint64 `protobuf:"varint,9,opt,name=reject_sign_template_id,json=rejectSignTemplateId,proto3" json:"reject_sign_template_id,omitempty"` } func (m *MsgUpdateSpace) Reset() { *m = MsgUpdateSpace{} } @@ -732,16 +732,16 @@ func (m *MsgUpdateSpace) GetSpaceId() uint64 { return 0 } -func (m *MsgUpdateSpace) GetAdminRuleId() uint64 { +func (m *MsgUpdateSpace) GetAdminTemplateId() uint64 { if m != nil { - return m.AdminRuleId + return m.AdminTemplateId } return 0 } -func (m *MsgUpdateSpace) GetSignRuleId() uint64 { +func (m *MsgUpdateSpace) GetSignTemplateId() uint64 { if m != nil { - return m.SignRuleId + return m.SignTemplateId } return 0 } @@ -753,30 +753,30 @@ func (m *MsgUpdateSpace) GetNonce() uint64 { return 0 } -func (m *MsgUpdateSpace) GetApproveAdminRuleId() uint64 { +func (m *MsgUpdateSpace) GetApproveAdminTemplateId() uint64 { if m != nil { - return m.ApproveAdminRuleId + return m.ApproveAdminTemplateId } return 0 } -func (m *MsgUpdateSpace) GetRejectAdminRuleId() uint64 { +func (m *MsgUpdateSpace) GetRejectAdminTemplateId() uint64 { if m != nil { - return m.RejectAdminRuleId + return m.RejectAdminTemplateId } return 0 } -func (m *MsgUpdateSpace) GetApproveSignRuleId() uint64 { +func (m *MsgUpdateSpace) GetApproveSignTemplateId() uint64 { if m != nil { - return m.ApproveSignRuleId + return m.ApproveSignTemplateId } return 0 } -func (m *MsgUpdateSpace) GetRejectSignRuleId() uint64 { +func (m *MsgUpdateSpace) GetRejectSignTemplateId() uint64 { if m != nil { - return m.RejectSignRuleId + return m.RejectSignTemplateId } return 0 } @@ -1142,7 +1142,7 @@ type MsgNewKeyRequest struct { SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` KeychainId uint64 `protobuf:"varint,3,opt,name=keychain_id,json=keychainId,proto3" json:"keychain_id,omitempty"` KeyType KeyType `protobuf:"varint,4,opt,name=key_type,json=keyType,proto3,enum=warden.warden.v1beta3.KeyType" json:"key_type,omitempty"` - RuleId uint64 `protobuf:"varint,5,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + TemplateId uint64 `protobuf:"varint,5,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` MaxKeychainFees github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=max_keychain_fees,json=maxKeychainFees,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"max_keychain_fees"` Nonce uint64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` } @@ -1208,9 +1208,9 @@ func (m *MsgNewKeyRequest) GetKeyType() KeyType { return KeyType_KEY_TYPE_UNSPECIFIED } -func (m *MsgNewKeyRequest) GetRuleId() uint64 { +func (m *MsgNewKeyRequest) GetTemplateId() uint64 { if m != nil { - return m.RuleId + return m.TemplateId } return 0 } @@ -1464,11 +1464,11 @@ func (m *MsgFulfilKeyRequestResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgFulfilKeyRequestResponse proto.InternalMessageInfo type MsgUpdateKey struct { - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - KeyId uint64 `protobuf:"varint,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - RuleId uint64 `protobuf:"varint,3,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` - ApproveRuleId uint64 `protobuf:"varint,4,opt,name=approve_rule_id,json=approveRuleId,proto3" json:"approve_rule_id,omitempty"` - RejectRuleId uint64 `protobuf:"varint,5,opt,name=reject_rule_id,json=rejectRuleId,proto3" json:"reject_rule_id,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + KeyId uint64 `protobuf:"varint,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + TemplateId uint64 `protobuf:"varint,3,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + ApproveTemplateId uint64 `protobuf:"varint,4,opt,name=approve_template_id,json=approveTemplateId,proto3" json:"approve_template_id,omitempty"` + RejectTemplateId uint64 `protobuf:"varint,5,opt,name=reject_template_id,json=rejectTemplateId,proto3" json:"reject_template_id,omitempty"` } func (m *MsgUpdateKey) Reset() { *m = MsgUpdateKey{} } @@ -1518,23 +1518,23 @@ func (m *MsgUpdateKey) GetKeyId() uint64 { return 0 } -func (m *MsgUpdateKey) GetRuleId() uint64 { +func (m *MsgUpdateKey) GetTemplateId() uint64 { if m != nil { - return m.RuleId + return m.TemplateId } return 0 } -func (m *MsgUpdateKey) GetApproveRuleId() uint64 { +func (m *MsgUpdateKey) GetApproveTemplateId() uint64 { if m != nil { - return m.ApproveRuleId + return m.ApproveTemplateId } return 0 } -func (m *MsgUpdateKey) GetRejectRuleId() uint64 { +func (m *MsgUpdateKey) GetRejectTemplateId() uint64 { if m != nil { - return m.RejectRuleId + return m.RejectTemplateId } return 0 } @@ -1943,112 +1943,112 @@ func init() { func init() { proto.RegisterFile("warden/warden/v1beta3/tx.proto", fileDescriptor_35889fa9428b2166) } var fileDescriptor_35889fa9428b2166 = []byte{ - // 1677 bytes of a gzipped FileDescriptorProto + // 1679 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0xcf, 0x6f, 0x1b, 0xc5, - 0x1e, 0xcf, 0xfa, 0xb7, 0xbf, 0x76, 0x5c, 0x67, 0x9b, 0xb6, 0x8e, 0xdb, 0x38, 0x96, 0xdb, 0xb4, - 0x56, 0xa2, 0xd8, 0x8d, 0xf3, 0xde, 0x93, 0x5e, 0x2f, 0xaf, 0xcd, 0x43, 0xa5, 0xa1, 0x4a, 0x41, - 0x1b, 0x10, 0x52, 0x25, 0x64, 0x4d, 0xbc, 0x13, 0x77, 0xc9, 0x7a, 0xd7, 0xec, 0xec, 0xc6, 0x31, - 0x27, 0x40, 0x9c, 0x2a, 0x81, 0x10, 0x37, 0x38, 0x70, 0xe0, 0x54, 0x71, 0xca, 0x81, 0x13, 0x17, - 0xae, 0x3d, 0x56, 0x9c, 0x38, 0x01, 0x6a, 0x0f, 0xf9, 0x03, 0x10, 0x48, 0xdc, 0xd0, 0xce, 0xcc, - 0xae, 0x77, 0xd7, 0xde, 0xb5, 0x5b, 0xca, 0x81, 0x4b, 0xbc, 0x33, 0xf3, 0x99, 0xf9, 0xfe, 0xfc, - 0x7c, 0xbf, 0x33, 0x81, 0xca, 0x00, 0x19,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, + 0x1b, 0x47, 0xb1, 0x61, 0xd9, 0x18, 0x74, 0x5f, 0x10, 0xdf, 0x83, 0xcc, 0xf0, 0xae, 0x70, 0x21, + 0x82, 0x77, 0x4a, 0xab, 0x11, 0x40, 0xee, 0x58, 0x8d, 0x74, 0xe7, 0x6a, 0x78, 0x25, 0x18, 0x22, + 0xc3, 0x62, 0x15, 0xd0, 0x7c, 0xfa, 0x30, 0xeb, 0x6f, 0x1b, 0xab, 0x93, 0xbc, 0xe2, 0x96, 0xb9, + 0xf1, 0x0c, 0x60, 0x5b, 0x6c, 0x29, 0xf1, 0x91, 0xd5, 0x4e, 0x37, 0xd1, 0xc3, 0x27, 0x65, 0xe1, + 0xd1, 0x93, 0xb2, 0xf0, 0xfb, 0x93, 0xb2, 0xf0, 0xc5, 0xd3, 0xf2, 0xd4, 0xa3, 0xa7, 0xe5, 0xa9, + 0x5f, 0x9e, 0x96, 0xa7, 0xee, 0xbd, 0xe1, 0x6a, 0xd4, 0xec, 0xe0, 0x35, 0xfa, 0x2f, 0x70, 0x5b, + 0xef, 0xf0, 0xf1, 0xc8, 0x70, 0xf8, 0xaf, 0x2b, 0xed, 0xe2, 0xf6, 0xbf, 0xc8, 0xbb, 0x49, 0x8a, + 0xdb, 0xf8, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x1b, 0xec, 0xc2, 0x97, 0x9f, 0x17, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2684,13 +2684,13 @@ func (m *MsgNewSpace) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x22 } } - if m.SignRuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.SignRuleId)) + if m.SignTemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SignTemplateId)) i-- dAtA[i] = 0x18 } - if m.AdminRuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AdminRuleId)) + if m.AdminTemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AdminTemplateId)) i-- dAtA[i] = 0x10 } @@ -3053,23 +3053,23 @@ func (m *MsgUpdateSpace) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.RejectSignRuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.RejectSignRuleId)) + if m.RejectSignTemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RejectSignTemplateId)) i-- dAtA[i] = 0x48 } - if m.ApproveSignRuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.ApproveSignRuleId)) + if m.ApproveSignTemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ApproveSignTemplateId)) i-- dAtA[i] = 0x40 } - if m.RejectAdminRuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.RejectAdminRuleId)) + if m.RejectAdminTemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RejectAdminTemplateId)) i-- dAtA[i] = 0x38 } - if m.ApproveAdminRuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.ApproveAdminRuleId)) + if m.ApproveAdminTemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ApproveAdminTemplateId)) i-- dAtA[i] = 0x30 } @@ -3078,13 +3078,13 @@ func (m *MsgUpdateSpace) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x28 } - if m.SignRuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.SignRuleId)) + if m.SignTemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SignTemplateId)) i-- dAtA[i] = 0x20 } - if m.AdminRuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AdminRuleId)) + if m.AdminTemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AdminTemplateId)) i-- dAtA[i] = 0x18 } @@ -3391,8 +3391,8 @@ func (m *MsgNewKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x32 } } - if m.RuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.RuleId)) + if m.TemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TemplateId)) i-- dAtA[i] = 0x28 } @@ -3606,18 +3606,18 @@ func (m *MsgUpdateKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.RejectRuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.RejectRuleId)) + if m.RejectTemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RejectTemplateId)) i-- dAtA[i] = 0x28 } - if m.ApproveRuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.ApproveRuleId)) + if m.ApproveTemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ApproveTemplateId)) i-- dAtA[i] = 0x20 } - if m.RuleId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.RuleId)) + if m.TemplateId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TemplateId)) i-- dAtA[i] = 0x18 } @@ -3946,11 +3946,11 @@ func (m *MsgNewSpace) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.AdminRuleId != 0 { - n += 1 + sovTx(uint64(m.AdminRuleId)) + if m.AdminTemplateId != 0 { + n += 1 + sovTx(uint64(m.AdminTemplateId)) } - if m.SignRuleId != 0 { - n += 1 + sovTx(uint64(m.SignRuleId)) + if m.SignTemplateId != 0 { + n += 1 + sovTx(uint64(m.SignTemplateId)) } if len(m.AdditionalOwners) > 0 { for _, s := range m.AdditionalOwners { @@ -4122,26 +4122,26 @@ func (m *MsgUpdateSpace) Size() (n int) { if m.SpaceId != 0 { n += 1 + sovTx(uint64(m.SpaceId)) } - if m.AdminRuleId != 0 { - n += 1 + sovTx(uint64(m.AdminRuleId)) + if m.AdminTemplateId != 0 { + n += 1 + sovTx(uint64(m.AdminTemplateId)) } - if m.SignRuleId != 0 { - n += 1 + sovTx(uint64(m.SignRuleId)) + if m.SignTemplateId != 0 { + n += 1 + sovTx(uint64(m.SignTemplateId)) } if m.Nonce != 0 { n += 1 + sovTx(uint64(m.Nonce)) } - if m.ApproveAdminRuleId != 0 { - n += 1 + sovTx(uint64(m.ApproveAdminRuleId)) + if m.ApproveAdminTemplateId != 0 { + n += 1 + sovTx(uint64(m.ApproveAdminTemplateId)) } - if m.RejectAdminRuleId != 0 { - n += 1 + sovTx(uint64(m.RejectAdminRuleId)) + if m.RejectAdminTemplateId != 0 { + n += 1 + sovTx(uint64(m.RejectAdminTemplateId)) } - if m.ApproveSignRuleId != 0 { - n += 1 + sovTx(uint64(m.ApproveSignRuleId)) + if m.ApproveSignTemplateId != 0 { + n += 1 + sovTx(uint64(m.ApproveSignTemplateId)) } - if m.RejectSignRuleId != 0 { - n += 1 + sovTx(uint64(m.RejectSignRuleId)) + if m.RejectSignTemplateId != 0 { + n += 1 + sovTx(uint64(m.RejectSignTemplateId)) } return n } @@ -4275,8 +4275,8 @@ func (m *MsgNewKeyRequest) Size() (n int) { if m.KeyType != 0 { n += 1 + sovTx(uint64(m.KeyType)) } - if m.RuleId != 0 { - n += 1 + sovTx(uint64(m.RuleId)) + if m.TemplateId != 0 { + n += 1 + sovTx(uint64(m.TemplateId)) } if len(m.MaxKeychainFees) > 0 { for _, e := range m.MaxKeychainFees { @@ -4381,14 +4381,14 @@ func (m *MsgUpdateKey) Size() (n int) { if m.KeyId != 0 { n += 1 + sovTx(uint64(m.KeyId)) } - if m.RuleId != 0 { - n += 1 + sovTx(uint64(m.RuleId)) + if m.TemplateId != 0 { + n += 1 + sovTx(uint64(m.TemplateId)) } - if m.ApproveRuleId != 0 { - n += 1 + sovTx(uint64(m.ApproveRuleId)) + if m.ApproveTemplateId != 0 { + n += 1 + sovTx(uint64(m.ApproveTemplateId)) } - if m.RejectRuleId != 0 { - n += 1 + sovTx(uint64(m.RejectRuleId)) + if m.RejectTemplateId != 0 { + n += 1 + sovTx(uint64(m.RejectTemplateId)) } return n } @@ -4753,9 +4753,9 @@ func (m *MsgNewSpace) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AdminRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AdminTemplateId", wireType) } - m.AdminRuleId = 0 + m.AdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4765,16 +4765,16 @@ func (m *MsgNewSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AdminRuleId |= uint64(b&0x7F) << shift + m.AdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SignRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SignTemplateId", wireType) } - m.SignRuleId = 0 + m.SignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4784,7 +4784,7 @@ func (m *MsgNewSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SignRuleId |= uint64(b&0x7F) << shift + m.SignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5892,9 +5892,9 @@ func (m *MsgUpdateSpace) Unmarshal(dAtA []byte) error { } case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AdminRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AdminTemplateId", wireType) } - m.AdminRuleId = 0 + m.AdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -5904,16 +5904,16 @@ func (m *MsgUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AdminRuleId |= uint64(b&0x7F) << shift + m.AdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SignRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SignTemplateId", wireType) } - m.SignRuleId = 0 + m.SignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -5923,7 +5923,7 @@ func (m *MsgUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SignRuleId |= uint64(b&0x7F) << shift + m.SignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5949,9 +5949,9 @@ func (m *MsgUpdateSpace) Unmarshal(dAtA []byte) error { } case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApproveAdminTemplateId", wireType) } - m.ApproveAdminRuleId = 0 + m.ApproveAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -5961,16 +5961,16 @@ func (m *MsgUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproveAdminRuleId |= uint64(b&0x7F) << shift + m.ApproveAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RejectAdminRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RejectAdminTemplateId", wireType) } - m.RejectAdminRuleId = 0 + m.RejectAdminTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -5980,16 +5980,16 @@ func (m *MsgUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RejectAdminRuleId |= uint64(b&0x7F) << shift + m.RejectAdminTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 8: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproveSignRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApproveSignTemplateId", wireType) } - m.ApproveSignRuleId = 0 + m.ApproveSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -5999,16 +5999,16 @@ func (m *MsgUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproveSignRuleId |= uint64(b&0x7F) << shift + m.ApproveSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 9: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RejectSignRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RejectSignTemplateId", wireType) } - m.RejectSignRuleId = 0 + m.RejectSignTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -6018,7 +6018,7 @@ func (m *MsgUpdateSpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RejectSignRuleId |= uint64(b&0x7F) << shift + m.RejectSignTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6892,9 +6892,9 @@ func (m *MsgNewKeyRequest) Unmarshal(dAtA []byte) error { } case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - m.RuleId = 0 + m.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -6904,7 +6904,7 @@ func (m *MsgNewKeyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RuleId |= uint64(b&0x7F) << shift + m.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7455,9 +7455,9 @@ func (m *MsgUpdateKey) Unmarshal(dAtA []byte) error { } case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) } - m.RuleId = 0 + m.TemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -7467,16 +7467,16 @@ func (m *MsgUpdateKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RuleId |= uint64(b&0x7F) << shift + m.TemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproveRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApproveTemplateId", wireType) } - m.ApproveRuleId = 0 + m.ApproveTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -7486,16 +7486,16 @@ func (m *MsgUpdateKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproveRuleId |= uint64(b&0x7F) << shift + m.ApproveTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RejectRuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RejectTemplateId", wireType) } - m.RejectRuleId = 0 + m.RejectTemplateId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -7505,7 +7505,7 @@ func (m *MsgUpdateKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RejectRuleId |= uint64(b&0x7F) << shift + m.RejectTemplateId |= uint64(b&0x7F) << shift if b < 0x80 { break } diff --git a/wardenjs/proto/cosmos/group/v1/types.proto b/wardenjs/proto/cosmos/group/v1/types.proto index 604fe0aec..9390630f2 100644 --- a/wardenjs/proto/cosmos/group/v1/types.proto +++ b/wardenjs/proto/cosmos/group/v1/types.proto @@ -209,7 +209,7 @@ message Proposal { // as `status` and `result` fields will be accordingly updated. google.protobuf.Timestamp voting_period_end = 11 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - // executor_result is the final result based on the votes and election rule. Initial value is NotRun. + // executor_result is the final result based on the votes and election template. Initial value is NotRun. ProposalExecutorResult executor_result = 12; // messages is a list of Msgs that will be executed if the proposal passes. From b4baf86c241480421ee8fb31c91c8bad3dc182fb Mon Sep 17 00:00:00 2001 From: Aleksandr Tretiakov Date: Thu, 12 Sep 2024 15:12:35 +0300 Subject: [PATCH 09/18] Merge conflicts --- warden/x/warden/keeper/rules.go | 216 ++++++++++----------- warden/x/warden/keeper/templates.go | 282 ---------------------------- 2 files changed, 108 insertions(+), 390 deletions(-) delete mode 100644 warden/x/warden/keeper/templates.go diff --git a/warden/x/warden/keeper/rules.go b/warden/x/warden/keeper/rules.go index 5792ffcb0..741c34880 100644 --- a/warden/x/warden/keeper/rules.go +++ b/warden/x/warden/keeper/rules.go @@ -10,251 +10,251 @@ import ( "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta3" ) -func (k Keeper) RegisterRules(reg *acttypes.RulesRegistry) { - acttypes.Register(reg, k.addSpaceOwnerRule) - acttypes.Register(reg, k.newKeyRequestRule) - acttypes.Register(reg, k.removeSpaceOwnerRule) - acttypes.Register(reg, k.updateKeyRule) - acttypes.Register(reg, k.updateSpaceRule) - acttypes.RegisterCtx(reg, k.newSignRequestRule) +func (k Keeper) RegisterTemplates(reg *acttypes.TemplatesRegistry) { + acttypes.Register(reg, k.addSpaceOwnerTemplate) + acttypes.Register(reg, k.newKeyRequestTemplate) + acttypes.Register(reg, k.removeSpaceOwnerTemplate) + acttypes.Register(reg, k.updateKeyTemplate) + acttypes.Register(reg, k.updateSpaceTemplate) + acttypes.RegisterCtx(reg, k.newSignRequestTemplate) } -func (k Keeper) addSpaceOwnerRule(ctx context.Context, msg *v1beta3.MsgAddSpaceOwner) (acttypes.Rule, acttypes.Rule, error) { +func (k Keeper) addSpaceOwnerTemplate(ctx context.Context, msg *v1beta3.MsgAddSpaceOwner) (acttypes.Template, acttypes.Template, error) { space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - approveRule, err := k.getApproveAddOwnerRule(ctx, space) + approveTemplate, err := k.getApproveAddOwnerTemplate(ctx, space) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - rejectRule, err := k.getRejectAddOwnerRule(ctx, space) + rejectTemplate, err := k.getRejectAddOwnerTemplate(ctx, space) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - return approveRule, rejectRule, nil + return approveTemplate, rejectTemplate, nil } -func (k Keeper) removeSpaceOwnerRule(ctx context.Context, msg *v1beta3.MsgRemoveSpaceOwner) (acttypes.Rule, acttypes.Rule, error) { +func (k Keeper) removeSpaceOwnerTemplate(ctx context.Context, msg *v1beta3.MsgRemoveSpaceOwner) (acttypes.Template, acttypes.Template, error) { space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - approveRule, err := k.getApproveRemoveOwnerRule(ctx, space) + approveTemplate, err := k.getApproveRemoveOwnerTemplate(ctx, space) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - rejectRule, err := k.getRejectRemoveOwnerRule(ctx, space) + rejectTemplate, err := k.getRejectRemoveOwnerTemplate(ctx, space) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - return approveRule, rejectRule, nil + return approveTemplate, rejectTemplate, nil } -func (k Keeper) newKeyRequestRule(ctx context.Context, msg *v1beta3.MsgNewKeyRequest) (acttypes.Rule, acttypes.Rule, error) { +func (k Keeper) newKeyRequestTemplate(ctx context.Context, msg *v1beta3.MsgNewKeyRequest) (acttypes.Template, acttypes.Template, error) { space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - approveRule, err := k.getApproveNewKeyRequestRule(ctx, space) + approveTemplate, err := k.getApproveNewKeyRequestTemplate(ctx, space) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - rejectRule, err := k.getRejectNewKeyRequestRule(ctx, space) + rejectTemplate, err := k.getRejectNewKeyRequestTemplate(ctx, space) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - return approveRule, rejectRule, nil + return approveTemplate, rejectTemplate, nil } -func (k Keeper) newSignRequestRule(ctx context.Context, msg *v1beta3.MsgNewSignRequest) (context.Context, acttypes.Rule, acttypes.Rule, error) { +func (k Keeper) newSignRequestTemplate(ctx context.Context, msg *v1beta3.MsgNewSignRequest) (context.Context, acttypes.Template, acttypes.Template, error) { key, err := k.KeysKeeper.Get(ctx, msg.KeyId) if err != nil { - return nil, acttypes.Rule{}, acttypes.Rule{}, err + return nil, acttypes.Template{}, acttypes.Template{}, err } space, err := k.SpacesKeeper.Get(ctx, key.SpaceId) if err != nil { - return nil, acttypes.Rule{}, acttypes.Rule{}, err + return nil, acttypes.Template{}, acttypes.Template{}, err } - approveRule, err := k.getApproveSignRule(ctx, space, key) + approveTemplate, err := k.getApproveSignTemplate(ctx, space, key) if err != nil { - return nil, acttypes.Rule{}, acttypes.Rule{}, err + return nil, acttypes.Template{}, acttypes.Template{}, err } - rejectRule, err := k.getRejectSignRule(ctx, space, key) + rejectTemplate, err := k.getRejectSignTemplate(ctx, space, key) if err != nil { - return nil, acttypes.Rule{}, acttypes.Rule{}, err + return nil, acttypes.Template{}, acttypes.Template{}, err } creator := k.actKeeper.GetActionCreator(ctx) ctxWithVals, dataForSigning, err := k.executeAnalyzers(ctx, creator, msg.Analyzers, msg.Input) if err != nil { - return nil, acttypes.Rule{}, acttypes.Rule{}, errors.Wrapf(v1beta3.ErrAnalyzer, "%v", err) + return nil, acttypes.Template{}, acttypes.Template{}, errors.Wrapf(v1beta3.ErrAnalyzer, "%v", err) } if dataForSigning != nil { msg.Input = dataForSigning } - return ctxWithVals, approveRule, rejectRule, nil + return ctxWithVals, approveTemplate, rejectTemplate, nil } -func (k Keeper) updateKeyRule(ctx context.Context, msg *v1beta3.MsgUpdateKey) (acttypes.Rule, acttypes.Rule, error) { +func (k Keeper) updateKeyTemplate(ctx context.Context, msg *v1beta3.MsgUpdateKey) (acttypes.Template, acttypes.Template, error) { key, err := k.KeysKeeper.Get(ctx, msg.KeyId) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } space, err := k.SpacesKeeper.Get(ctx, key.SpaceId) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - approveRule, err := k.getApproveUpdateKeyRule(ctx, space, key) + approveTemplate, err := k.getApproveUpdateKeyTemplate(ctx, space, key) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - rejectRule, err := k.getRejectUpdateKeyRule(ctx, space, key) + rejectTemplate, err := k.getRejectUpdateKeyTemplate(ctx, space, key) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - return approveRule, rejectRule, nil + return approveTemplate, rejectTemplate, nil } -func (k Keeper) updateSpaceRule(ctx context.Context, msg *v1beta3.MsgUpdateSpace) (acttypes.Rule, acttypes.Rule, error) { +func (k Keeper) updateSpaceTemplate(ctx context.Context, msg *v1beta3.MsgUpdateSpace) (acttypes.Template, acttypes.Template, error) { space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - approveRule, err := k.getApproveUpdateSpaceRule(ctx, space) + approveTemplate, err := k.getApproveUpdateSpaceTemplate(ctx, space) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - rejectRule, err := k.getRejectUpdateSpaceRule(ctx, space) + rejectTemplate, err := k.getRejectUpdateSpaceTemplate(ctx, space) if err != nil { - return acttypes.Rule{}, acttypes.Rule{}, err + return acttypes.Template{}, acttypes.Template{}, err } - return approveRule, rejectRule, nil + return approveTemplate, rejectTemplate, nil } -func (k Keeper) getApproveSignRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { - if key.ApproveRuleId > 0 { - return k.actKeeper.GetRule(ctx, key.ApproveRuleId) - } else if space.ApproveSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveSignRuleId) +func (k Keeper) getApproveSignTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { + if key.ApproveTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, key.ApproveTemplateId) + } else if space.ApproveSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveSignTemplateId) } else { - return space.RuleApproveNewSignRequest(), nil + return space.TemplateApproveNewSignRequest(), nil } } -func (k Keeper) getRejectSignRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { - if key.RejectRuleId > 0 { - return k.actKeeper.GetRule(ctx, key.RejectRuleId) - } else if space.RejectSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectSignRuleId) +func (k Keeper) getRejectSignTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { + if key.RejectTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, key.RejectTemplateId) + } else if space.RejectSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectSignTemplateId) } else { - return space.RuleRejectNewSignRequest(), nil + return space.TemplateRejectNewSignRequest(), nil } } -func (k Keeper) getApproveAddOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.ApproveAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveAdminRuleId) +func (k Keeper) getApproveAddOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.ApproveAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveAdminTemplateId) } else { - return space.RuleApproveAddOwner(), nil + return space.TemplateApproveAddOwner(), nil } } -func (k Keeper) getRejectAddOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.RejectAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectAdminRuleId) +func (k Keeper) getRejectAddOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.RejectAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectAdminTemplateId) } else { - return space.RuleRejectAddOwner(), nil + return space.TemplateRejectAddOwner(), nil } } -func (k Keeper) getApproveRemoveOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.ApproveAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveAdminRuleId) +func (k Keeper) getApproveRemoveOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.ApproveAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveAdminTemplateId) } else { - return space.RuleApproveRemoveOwner(), nil + return space.TemplateApproveRemoveOwner(), nil } } -func (k Keeper) getRejectRemoveOwnerRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.RejectAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectAdminRuleId) +func (k Keeper) getRejectRemoveOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.RejectAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectAdminTemplateId) } else { - return space.RuleRejectRemoveOwner(), nil + return space.TemplateRejectRemoveOwner(), nil } } -func (k Keeper) getApproveNewKeyRequestRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.ApproveSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveSignRuleId) +func (k Keeper) getApproveNewKeyRequestTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.ApproveSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveSignTemplateId) } else { - return space.RuleApproveNewKeyRequest(), nil + return space.TemplateApproveNewKeyRequest(), nil } } -func (k Keeper) getRejectNewKeyRequestRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.RejectSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectSignRuleId) +func (k Keeper) getRejectNewKeyRequestTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.RejectSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectSignTemplateId) } else { - return space.RuleRejectNewKeyRequest(), nil + return space.TemplateRejectNewKeyRequest(), nil } } -func (k Keeper) getApproveUpdateKeyRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { - if key.ApproveRuleId > 0 { - return k.actKeeper.GetRule(ctx, key.ApproveRuleId) - } else if space.ApproveSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveSignRuleId) +func (k Keeper) getApproveUpdateKeyTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { + if key.ApproveTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, key.ApproveTemplateId) + } else if space.ApproveSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveSignTemplateId) } else { - return space.RuleApproveUpdateKey(), nil + return space.TemplateApproveUpdateKey(), nil } } -func (k Keeper) getRejectUpdateKeyRule(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Rule, error) { - if key.RejectRuleId > 0 { - return k.actKeeper.GetRule(ctx, key.RejectRuleId) - } else if space.RejectSignRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectSignRuleId) +func (k Keeper) getRejectUpdateKeyTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { + if key.RejectTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, key.RejectTemplateId) + } else if space.RejectSignTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectSignTemplateId) } else { - return space.RuleRejectUpdateKey(), nil + return space.TemplateRejectUpdateKey(), nil } } -func (k Keeper) getApproveUpdateSpaceRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.ApproveAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.ApproveAdminRuleId) +func (k Keeper) getApproveUpdateSpaceTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.ApproveAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.ApproveAdminTemplateId) } else { - return space.RuleApproveUpdateSpace(), nil + return space.TemplateApproveUpdateSpace(), nil } } -func (k Keeper) getRejectUpdateSpaceRule(ctx context.Context, space v1beta3.Space) (acttypes.Rule, error) { - if space.RejectAdminRuleId > 0 { - return k.actKeeper.GetRule(ctx, space.RejectAdminRuleId) +func (k Keeper) getRejectUpdateSpaceTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { + if space.RejectAdminTemplateId > 0 { + return k.actKeeper.GetTemplate(ctx, space.RejectAdminTemplateId) } else { - return space.RuleRejectUpdateSpace(), nil + return space.TemplateRejectUpdateSpace(), nil } } diff --git a/warden/x/warden/keeper/templates.go b/warden/x/warden/keeper/templates.go deleted file mode 100644 index 29248b918..000000000 --- a/warden/x/warden/keeper/templates.go +++ /dev/null @@ -1,282 +0,0 @@ -package keeper - -import ( - "context" - - "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/warden-protocol/wardenprotocol/shield/ast" - acttypes "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" - "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta3" -) - -func (k Keeper) RegisterTemplates(reg *acttypes.TemplatesRegistry) { - acttypes.Register(reg, k.addSpaceOwnerTemplate) - acttypes.Register(reg, k.newKeyRequestTemplate) - acttypes.Register(reg, k.removeSpaceOwnerTemplate) - acttypes.Register(reg, k.updateKeyTemplate) - acttypes.Register(reg, k.updateSpaceTemplate) - acttypes.RegisterCtx(reg, k.newSignRequestTemplate) -} - -func (k Keeper) addSpaceOwnerTemplate(ctx context.Context, msg *v1beta3.MsgAddSpaceOwner) (acttypes.Template, acttypes.Template, error) { - space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - approveTemplate, err := k.getApproveAddOwnerTemplate(ctx, space) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - rejectTemplate, err := k.getRejectAddOwnerTemplate(ctx, space) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - return approveTemplate, rejectTemplate, nil -} - -func (k Keeper) removeSpaceOwnerTemplate(ctx context.Context, msg *v1beta3.MsgRemoveSpaceOwner) (acttypes.Template, acttypes.Template, error) { - space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - approveTemplate, err := k.getApproveRemoveOwnerTemplate(ctx, space) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - rejectTemplate, err := k.getRejectRemoveOwnerTemplate(ctx, space) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - return approveTemplate, rejectTemplate, nil -} - -func (k Keeper) newKeyRequestTemplate(ctx context.Context, msg *v1beta3.MsgNewKeyRequest) (acttypes.Template, acttypes.Template, error) { - space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - approveTemplate, err := k.getApproveNewKeyRequestTemplate(ctx, space) - - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - rejectTemplate, err := k.getRejectNewKeyRequestTemplate(ctx, space) - - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - return approveTemplate, rejectTemplate, nil -} - -func (k Keeper) newSignRequestTemplate(ctx context.Context, msg *v1beta3.MsgNewSignRequest) (context.Context, acttypes.Template, acttypes.Template, error) { - key, err := k.KeysKeeper.Get(ctx, msg.KeyId) - if err != nil { - return nil, acttypes.Template{}, acttypes.Template{}, err - } - - space, err := k.SpacesKeeper.Get(ctx, key.SpaceId) - if err != nil { - return nil, acttypes.Template{}, acttypes.Template{}, err - } - - approveTemplate, err := k.getApproveKeyTemplate(ctx, space, key) - if err != nil { - return nil, acttypes.Template{}, acttypes.Template{}, err - } - - rejectTemplate, err := k.getRejectKeyTemplate(ctx, space, key) - if err != nil { - return nil, acttypes.Template{}, acttypes.Template{}, err - } - - creator := k.actKeeper.GetActionCreator(ctx) - - ctxWithVals, dataForSigning, err := k.executeAnalyzers(ctx, creator, msg.Analyzers, msg.Input) - if err != nil { - return nil, acttypes.Template{}, acttypes.Template{}, errors.Wrapf(v1beta3.ErrAnalyzer, "%v", err) - } - - if dataForSigning != nil { - msg.Input = dataForSigning - } - - return ctxWithVals, approveTemplate, rejectTemplate, nil -} - -func (k Keeper) updateKeyTemplate(ctx context.Context, msg *v1beta3.MsgUpdateKey) (acttypes.Template, acttypes.Template, error) { - key, err := k.KeysKeeper.Get(ctx, msg.KeyId) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - space, err := k.SpacesKeeper.Get(ctx, key.SpaceId) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - approveTemplate, err := k.getApproveUpdateKeyTemplate(ctx, space, key) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - rejectTemplate, err := k.getRejectUpdateKeyTemplate(ctx, space, key) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - return approveTemplate, rejectTemplate, nil -} - -func (k Keeper) updateSpaceTemplate(ctx context.Context, msg *v1beta3.MsgUpdateSpace) (acttypes.Template, acttypes.Template, error) { - space, err := k.SpacesKeeper.Get(ctx, msg.SpaceId) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - approveTemplate, err := k.getApproveUpdateSpaceTemplate(ctx, space) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - rejectTemplate, err := k.getRejectUpdateSpaceTemplate(ctx, space) - if err != nil { - return acttypes.Template{}, acttypes.Template{}, err - } - - return approveTemplate, rejectTemplate, nil -} - -func (k Keeper) getApproveKeyTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { - if key.ApproveTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, key.ApproveTemplateId) - } else if space.ApproveSignTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.ApproveSignTemplateId) - } else { - return space.TemplateApproveNewSignRequest(), nil - } -} - -func (k Keeper) getRejectKeyTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { - if key.RejectTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, key.RejectTemplateId) - } else if space.RejectSignTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.RejectSignTemplateId) - } else { - return space.TemplateRejectNewSignRequest(), nil - } -} - -func (k Keeper) getApproveAddOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { - if space.ApproveAdminTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.ApproveAdminTemplateId) - } else { - return space.TemplateApproveAddOwner(), nil - } -} - -func (k Keeper) getRejectAddOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { - if space.RejectAdminTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.RejectAdminTemplateId) - } else { - return space.TemplateRejectAddOwner(), nil - } -} - -func (k Keeper) getApproveRemoveOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { - if space.ApproveAdminTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.ApproveAdminTemplateId) - } else { - return space.TemplateApproveRemoveOwner(), nil - } -} - -func (k Keeper) getRejectRemoveOwnerTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { - if space.RejectAdminTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.RejectAdminTemplateId) - } else { - return space.TemplateRejectRemoveOwner(), nil - } -} - -func (k Keeper) getApproveNewKeyRequestTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { - if space.ApproveSignTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.ApproveSignTemplateId) - } else { - return space.TemplateApproveNewKeyRequest(), nil - } -} - -func (k Keeper) getRejectNewKeyRequestTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { - if space.RejectSignTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.RejectSignTemplateId) - } else { - return space.TemplateRejectNewKeyRequest(), nil - } -} - -func (k Keeper) getApproveUpdateKeyTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { - if space.ApproveSignTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.ApproveSignTemplateId) - } else { - return space.TemplateApproveUpdateKey(), nil - } -} - -func (k Keeper) getRejectUpdateKeyTemplate(ctx context.Context, space v1beta3.Space, key v1beta3.Key) (acttypes.Template, error) { - if space.RejectSignTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.RejectSignTemplateId) - } else { - return space.TemplateRejectUpdateKey(), nil - } -} - -func (k Keeper) getApproveUpdateSpaceTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { - if space.ApproveAdminTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.ApproveAdminTemplateId) - } else { - return space.TemplateApproveUpdateSpace(), nil - } - -} - -func (k Keeper) getRejectUpdateSpaceTemplate(ctx context.Context, space v1beta3.Space) (acttypes.Template, error) { - if space.RejectAdminTemplateId > 0 { - return k.actKeeper.GetTemplate(ctx, space.RejectAdminTemplateId) - } else { - return space.TemplateRejectUpdateSpace(), nil - } -} - -func (k Keeper) executeAnalyzers(ctx context.Context, creator string, contracts []string, input []byte) (context.Context, []byte, error) { - sdkCtx := sdk.UnwrapSDKContext(ctx) - creatorAddr := sdk.MustAccAddressFromBech32(creator) - analyzerVals := make(map[string]map[string]*ast.Expression) - var dataForSigning []byte - for _, contract := range contracts { - contractAddr, err := sdk.AccAddressFromBech32(contract) - if err != nil { - return nil, nil, err - } - dfs, vals, err := k.ExecuteAnalyzer(sdkCtx, contractAddr, creatorAddr, input) - if err != nil { - return nil, nil, err - } - if dfs != nil && dataForSigning != nil { - return nil, nil, v1beta3.ErrDuplicateAnalyzersDataForSigning - } - if dfs != nil { - dataForSigning = dfs - } - analyzerVals[contract] = vals - } - return WithAnalyzerValues(ctx, analyzerVals), dataForSigning, nil -} From d6089d0ef1cf3e35799ef91854dbc5f0a1768757 Mon Sep 17 00:00:00 2001 From: Aleksandr Tretiakov Date: Thu, 12 Sep 2024 15:14:34 +0300 Subject: [PATCH 10/18] Merge conflicts --- api/warden/act/v1beta1/events.pulsar.go | 126 +++++++-------- api/warden/act/v1beta1/query.pulsar.go | 78 ++++++++- api/warden/act/v1beta1/tx.pulsar.go | 193 ++++++++++++----------- proto/warden/warden/v1beta3/events.proto | 12 -- proto/warden/warden/v1beta3/key.proto | 10 -- warden/x/act/types/v1beta1/events.pb.go | 72 ++++----- warden/x/act/types/v1beta1/query.pb.go | 160 ++++++++++++------- warden/x/act/types/v1beta1/tx.pb.go | 137 ++++++++-------- 8 files changed, 447 insertions(+), 341 deletions(-) diff --git a/api/warden/act/v1beta1/events.pulsar.go b/api/warden/act/v1beta1/events.pulsar.go index df24b6d80..e7ee0b21c 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 } @@ -3601,43 +3601,43 @@ var file_warden_act_v1beta1_events_proto_rawDesc = []byte{ 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, 0x20, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 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, + 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, } var ( @@ -3665,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/query.pulsar.go b/api/warden/act/v1beta1/query.pulsar.go index 42bd41254..ae7448e56 100644 --- a/api/warden/act/v1beta1/query.pulsar.go +++ b/api/warden/act/v1beta1/query.pulsar.go @@ -1819,12 +1819,14 @@ func (x *fastReflection_QueryActionsResponse) ProtoMethods() *protoiface.Methods var ( md_QueryTemplatesRequest protoreflect.MessageDescriptor fd_QueryTemplatesRequest_pagination protoreflect.FieldDescriptor + fd_QueryTemplatesRequest_creator protoreflect.FieldDescriptor ) func init() { file_warden_act_v1beta1_query_proto_init() md_QueryTemplatesRequest = File_warden_act_v1beta1_query_proto.Messages().ByName("QueryTemplatesRequest") fd_QueryTemplatesRequest_pagination = md_QueryTemplatesRequest.Fields().ByName("pagination") + fd_QueryTemplatesRequest_creator = md_QueryTemplatesRequest.Fields().ByName("creator") } var _ protoreflect.Message = (*fastReflection_QueryTemplatesRequest)(nil) @@ -1898,6 +1900,12 @@ func (x *fastReflection_QueryTemplatesRequest) Range(f func(protoreflect.FieldDe return } } + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_QueryTemplatesRequest_creator, value) { + return + } + } } // Has reports whether a field is populated. @@ -1915,6 +1923,8 @@ func (x *fastReflection_QueryTemplatesRequest) Has(fd protoreflect.FieldDescript switch fd.FullName() { case "warden.act.v1beta1.QueryTemplatesRequest.pagination": return x.Pagination != nil + case "warden.act.v1beta1.QueryTemplatesRequest.creator": + return x.Creator != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) @@ -1933,6 +1943,8 @@ func (x *fastReflection_QueryTemplatesRequest) Clear(fd protoreflect.FieldDescri switch fd.FullName() { case "warden.act.v1beta1.QueryTemplatesRequest.pagination": x.Pagination = nil + case "warden.act.v1beta1.QueryTemplatesRequest.creator": + x.Creator = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) @@ -1952,6 +1964,9 @@ func (x *fastReflection_QueryTemplatesRequest) Get(descriptor protoreflect.Field case "warden.act.v1beta1.QueryTemplatesRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "warden.act.v1beta1.QueryTemplatesRequest.creator": + value := x.Creator + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) @@ -1974,6 +1989,8 @@ func (x *fastReflection_QueryTemplatesRequest) Set(fd protoreflect.FieldDescript switch fd.FullName() { case "warden.act.v1beta1.QueryTemplatesRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + case "warden.act.v1beta1.QueryTemplatesRequest.creator": + x.Creator = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) @@ -1999,6 +2016,8 @@ func (x *fastReflection_QueryTemplatesRequest) Mutable(fd protoreflect.FieldDesc x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "warden.act.v1beta1.QueryTemplatesRequest.creator": + panic(fmt.Errorf("field creator of message warden.act.v1beta1.QueryTemplatesRequest is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) @@ -2015,6 +2034,8 @@ func (x *fastReflection_QueryTemplatesRequest) NewField(fd protoreflect.FieldDes case "warden.act.v1beta1.QueryTemplatesRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "warden.act.v1beta1.QueryTemplatesRequest.creator": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.QueryTemplatesRequest")) @@ -2088,6 +2109,10 @@ func (x *fastReflection_QueryTemplatesRequest) ProtoMethods() *protoiface.Method l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2117,6 +2142,13 @@ func (x *fastReflection_QueryTemplatesRequest) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0x12 + } if x.Pagination != nil { encoded, err := options.Marshal(x.Pagination) if err != nil { @@ -2216,6 +2248,38 @@ func (x *fastReflection_QueryTemplatesRequest) ProtoMethods() *protoiface.Method return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -6702,6 +6766,7 @@ type QueryTemplatesRequest struct { unknownFields protoimpl.UnknownFields Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` } func (x *QueryTemplatesRequest) Reset() { @@ -6731,6 +6796,13 @@ func (x *QueryTemplatesRequest) GetPagination() *v1beta1.PageRequest { return nil } +func (x *QueryTemplatesRequest) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + type QueryTemplatesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -7129,13 +7201,15 @@ var file_warden_act_v1beta1_query_proto_rawDesc = []byte{ 0x3a, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 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, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x5f, 0x0a, 0x15, 0x51, + 0x1f, 0x00, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7f, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa3, 0x01, 0x0a, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x01, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, diff --git a/api/warden/act/v1beta1/tx.pulsar.go b/api/warden/act/v1beta1/tx.pulsar.go index 9a842b603..693cca5c5 100644 --- a/api/warden/act/v1beta1/tx.pulsar.go +++ b/api/warden/act/v1beta1/tx.pulsar.go @@ -6460,7 +6460,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() { @@ -6468,7 +6468,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) @@ -6548,9 +6548,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 } } @@ -6573,8 +6573,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")) @@ -6595,8 +6595,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")) @@ -6619,8 +6619,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() { @@ -6646,8 +6646,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")) @@ -6672,8 +6672,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")) @@ -6691,7 +6691,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() { @@ -6769,8 +6769,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) @@ -6801,8 +6801,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 } @@ -6920,9 +6920,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 @@ -6932,7 +6932,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 } @@ -7990,7 +7990,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() { @@ -8027,9 +8027,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 } @@ -8166,83 +8166,84 @@ var file_warden_act_v1beta1_tx_proto_rawDesc = []byte{ 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, 0x4d, 0x73, 0x67, 0x56, 0x6f, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x41, 0x63, + 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, 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, 0x99, 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, 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, 0x5d, 0x0a, 0x0b, 0x4e, 0x65, 0x77, 0x54, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x6e, 0x49, 0x64, 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, 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, 0x99, 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, - 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 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, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x25, 0x2e, 0x77, 0x61, 0x72, 0x64, + 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, 0x5d, 0x0a, 0x0b, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 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, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 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, 0x4e, 0x65, 0x77, + 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x66, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x12, 0x25, 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, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x1a, 0x2d, 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, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x1a, 0x2d, 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, 0x54, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 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, 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, + 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, + 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 ( @@ -8282,7 +8283,7 @@ var file_warden_act_v1beta1_tx_proto_goTypes = []interface{}{ var file_warden_act_v1beta1_tx_proto_depIdxs = []int32{ 16, // 0: warden.act.v1beta1.MsgUpdateParams.params:type_name -> warden.act.v1beta1.Params 17, // 1: warden.act.v1beta1.MsgNewAction.message:type_name -> google.protobuf.Any - 18, // 2: warden.act.v1beta1.MsgVoteForAction.vote:type_name -> warden.act.v1beta1.ActionVoteType + 18, // 2: warden.act.v1beta1.MsgVoteForAction.vote_type:type_name -> warden.act.v1beta1.ActionVoteType 0, // 3: warden.act.v1beta1.Msg.UpdateParams:input_type -> warden.act.v1beta1.MsgUpdateParams 2, // 4: warden.act.v1beta1.Msg.NewAction:input_type -> warden.act.v1beta1.MsgNewAction 4, // 5: warden.act.v1beta1.Msg.ApproveAction:input_type -> warden.act.v1beta1.MsgApproveAction diff --git a/proto/warden/warden/v1beta3/events.proto b/proto/warden/warden/v1beta3/events.proto index c3b518e64..5ddf6c4b7 100644 --- a/proto/warden/warden/v1beta3/events.proto +++ b/proto/warden/warden/v1beta3/events.proto @@ -48,18 +48,6 @@ message EventUpdateSpace { // id of the template to be applied to every reject sign operation uint64 reject_sign_template_id = 7; - - // id of the rule to be applied to every approve admin operation - uint64 approve_admin_rule_id = 4; - - // id of the rule to be applied to every reject admin operation - uint64 reject_admin_rule_id = 5; - - // id of the rule to be applied to every approve sign operation - uint64 approve_sign_rule_id = 6; - - // id of the rule to be applied to every reject sign operation - uint64 reject_sign_rule_id = 7; } // EventAddSpaceOwner is emitted when a new owner is added diff --git a/proto/warden/warden/v1beta3/key.proto b/proto/warden/warden/v1beta3/key.proto index 9f26aaebf..852035043 100644 --- a/proto/warden/warden/v1beta3/key.proto +++ b/proto/warden/warden/v1beta3/key.proto @@ -112,16 +112,6 @@ message Key { // data. // If this is not set, the key will use the reject signing Template of the Space. uint64 reject_template_id = 8; - - // ID of the Rule that will need to be satisfied for using this key to sign - // data. - // If this is not set, the key will use the approve signing Rule of the Space. - uint64 approve_rule_id = 7; - - // ID of the Rule that will need to be satisfied for rejecting using this key to sign - // data. - // If this is not set, the key will use the reject signing Rule of the Space. - uint64 reject_rule_id = 8; } enum AddressType { diff --git a/warden/x/act/types/v1beta1/events.pb.go b/warden/x/act/types/v1beta1/events.pb.go index 03d98ab8b..0ed3aed60 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{ - // 396 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0xae, 0xd2, 0x40, - 0x14, 0x86, 0x19, 0x20, 0x2a, 0x63, 0x52, 0xb5, 0x26, 0xa6, 0x61, 0x51, 0x9b, 0xaa, 0x09, 0x1b, - 0xdb, 0x80, 0x89, 0x3b, 0x83, 0x88, 0x2e, 0xdc, 0x99, 0x82, 0x2e, 0x5c, 0x48, 0x86, 0xf6, 0x04, - 0x9a, 0xc0, 0xcc, 0x64, 0x7a, 0x5a, 0x24, 0xf1, 0x21, 0x7c, 0x18, 0x1f, 0xc2, 0x25, 0x4b, 0x97, - 0x06, 0x5e, 0xc4, 0x30, 0xd3, 0x7a, 0xc9, 0xed, 0xe5, 0xe6, 0xde, 0x5d, 0xff, 0xce, 0xf7, 0xff, - 0xff, 0xe4, 0xcc, 0xa1, 0x4f, 0x37, 0x4c, 0x25, 0xc0, 0x43, 0x16, 0x63, 0x58, 0xf4, 0xe7, 0x80, - 0xac, 0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54, 0xe4, 0xd9, 0x2c, 0x43, 0x86, 0x79, 0xa6, 0x2f, 0x62, - 0x0d, 0xbc, 0xf3, 0x6d, 0x13, 0xcd, 0x45, 0x56, 0x65, 0x34, 0xda, 0x1e, 0x52, 0xca, 0x61, 0x53, - 0xa5, 0xb4, 0x6e, 0x98, 0xd2, 0xe1, 0xb0, 0x31, 0x9f, 0xfe, 0xb3, 0xf2, 0xd5, 0xcc, 0xf9, 0x27, - 0x95, 0xf3, 0xfa, 0xd4, 0xde, 0x7d, 0xfb, 0xbd, 0x77, 0xc9, 0x6e, 0xef, 0x92, 0xbf, 0x7b, 0x97, - 0xfc, 0x3c, 0xb8, 0x8d, 0xdd, 0xc1, 0x6d, 0xfc, 0x39, 0xb8, 0x8d, 0xaf, 0xef, 0x17, 0x29, 0x2e, - 0xf3, 0x79, 0x10, 0x8b, 0x75, 0x68, 0x5a, 0x5f, 0xea, 0xad, 0x8b, 0xc5, 0xaa, 0xd4, 0x97, 0x64, - 0xf8, 0x5d, 0xaf, 0x2b, 0x6e, 0x25, 0x64, 0xd5, 0xd2, 0xce, 0xef, 0x68, 0xe8, 0xd5, 0xbf, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xa0, 0x00, 0x87, 0x86, 0x27, 0x03, 0x00, 0x00, + // 398 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcd, 0xae, 0xd2, 0x40, + 0x14, 0x66, 0xc0, 0x28, 0x8c, 0x49, 0xd5, 0x9a, 0x98, 0x86, 0x45, 0x6d, 0xaa, 0x26, 0x6c, 0x6c, + 0x03, 0xae, 0x0d, 0x22, 0xba, 0x70, 0x67, 0x0a, 0xba, 0x70, 0x21, 0x19, 0xda, 0x13, 0x68, 0x02, + 0x33, 0x93, 0xe9, 0x69, 0x91, 0x07, 0x70, 0xef, 0xc3, 0xf8, 0x10, 0x2e, 0x59, 0xba, 0x34, 0xf0, + 0x22, 0xa6, 0x33, 0xad, 0x12, 0x2b, 0x37, 0xf7, 0xee, 0xe6, 0x6b, 0xbf, 0x9f, 0x93, 0xef, 0x1c, + 0xfa, 0x78, 0xc7, 0x54, 0x02, 0x3c, 0x64, 0x31, 0x86, 0xc5, 0x70, 0x09, 0xc8, 0x86, 0x21, 0x14, + 0xc0, 0x31, 0x0b, 0xa4, 0x12, 0x28, 0x6c, 0xdb, 0x10, 0x02, 0x16, 0x63, 0x50, 0x11, 0xfa, 0xff, + 0x13, 0xb1, 0x18, 0x53, 0xc1, 0x8d, 0xa8, 0xff, 0xf4, 0x22, 0x61, 0x51, 0x08, 0x04, 0xc3, 0xf2, + 0xc7, 0xf4, 0xe1, 0xdb, 0x32, 0x6a, 0xaa, 0x80, 0x21, 0xcc, 0x61, 0x2b, 0x37, 0x0c, 0xc1, 0xb6, + 0x68, 0x3b, 0x4d, 0x1c, 0xe2, 0x91, 0xc1, 0xad, 0xa8, 0x9d, 0x26, 0xb6, 0x43, 0xef, 0xc4, 0x25, + 0x43, 0x28, 0xa7, 0xed, 0x91, 0x41, 0x2f, 0xaa, 0xa1, 0xff, 0xac, 0x32, 0xf8, 0x20, 0x93, 0x2b, + 0x0c, 0xfc, 0x97, 0xf4, 0xc1, 0x59, 0xce, 0x44, 0xcf, 0x71, 0x83, 0x94, 0x57, 0xd4, 0xd6, 0xf2, + 0x89, 0x94, 0x4a, 0x14, 0x97, 0xf4, 0x7d, 0xda, 0x65, 0x86, 0x50, 0x1b, 0xfc, 0xc1, 0xfe, 0x57, + 0x42, 0xef, 0x1b, 0x0b, 0xad, 0xfd, 0x28, 0x10, 0x92, 0x86, 0x81, 0x47, 0xef, 0x4a, 0xa6, 0x30, + 0x8d, 0x53, 0xc9, 0x38, 0x56, 0x1e, 0xe7, 0x9f, 0xec, 0x31, 0xed, 0x95, 0xed, 0x2d, 0x70, 0x2f, + 0xc1, 0xe9, 0x78, 0x64, 0x60, 0x8d, 0xfc, 0xa0, 0xb9, 0x9e, 0xe0, 0x6f, 0xca, 0x7c, 0x2f, 0x21, + 0xea, 0x16, 0xd5, 0xcb, 0xff, 0x4e, 0xe8, 0xa3, 0xb3, 0x39, 0x66, 0xc8, 0x10, 0xa6, 0x6b, 0xc6, + 0x57, 0xcd, 0xd2, 0xdf, 0xd1, 0x7b, 0x52, 0x41, 0x91, 0x8a, 0x3c, 0x5b, 0x64, 0xc8, 0x30, 0xcf, + 0xf4, 0x44, 0xd6, 0xc8, 0xbb, 0x9c, 0x38, 0xd3, 0xbc, 0xc8, 0xaa, 0x85, 0x06, 0xdb, 0x63, 0x4a, + 0x39, 0xec, 0x6a, 0x97, 0xce, 0x35, 0x5d, 0x7a, 0x1c, 0x76, 0xe6, 0xe9, 0x3f, 0xa9, 0xf6, 0x67, + 0xfe, 0xbf, 0x57, 0x39, 0x6f, 0xd6, 0xf7, 0xfa, 0xf3, 0x8f, 0xa3, 0x4b, 0x0e, 0x47, 0x97, 0xfc, + 0x3a, 0xba, 0xe4, 0xdb, 0xc9, 0x6d, 0x1d, 0x4e, 0x6e, 0xeb, 0xe7, 0xc9, 0x6d, 0x7d, 0x7a, 0xb3, + 0x4a, 0x71, 0x9d, 0x2f, 0x83, 0x58, 0x6c, 0x43, 0x93, 0xfa, 0x5c, 0xdf, 0x5f, 0x2c, 0x36, 0x15, + 0xfe, 0x07, 0x86, 0x5f, 0xf4, 0xe1, 0x96, 0x35, 0x67, 0xf5, 0xf9, 0x2e, 0x6f, 0x6b, 0xd2, 0x8b, + 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x14, 0x72, 0x9e, 0xf5, 0x31, 0x03, 0x00, 0x00, } func (m *EventCreateTemplate) 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/query.pb.go b/warden/x/act/types/v1beta1/query.pb.go index 0cee090f2..d43b9a9c0 100644 --- a/warden/x/act/types/v1beta1/query.pb.go +++ b/warden/x/act/types/v1beta1/query.pb.go @@ -213,6 +213,7 @@ func (m *QueryActionsResponse) GetActions() []Action { type QueryTemplatesRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` } func (m *QueryTemplatesRequest) Reset() { *m = QueryTemplatesRequest{} } @@ -255,6 +256,13 @@ func (m *QueryTemplatesRequest) GetPagination() *query.PageRequest { return nil } +func (m *QueryTemplatesRequest) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + type QueryTemplatesResponse struct { Pagination *query.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Templates []Template `protobuf:"bytes,2,rep,name=templates,proto3" json:"templates"` @@ -711,60 +719,61 @@ func init() { func init() { proto.RegisterFile("warden/act/v1beta1/query.proto", fileDescriptor_f7ace4ffc8dacc6b) } var fileDescriptor_f7ace4ffc8dacc6b = []byte{ - // 837 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcf, 0x6f, 0xd3, 0x48, - 0x14, 0xce, 0xa4, 0xdd, 0xb4, 0x79, 0xbb, 0xaa, 0xba, 0xb3, 0xdd, 0xdd, 0xd4, 0xea, 0xba, 0xa9, - 0xdb, 0x6d, 0x93, 0xb4, 0xb5, 0x37, 0x59, 0x21, 0x21, 0x0e, 0x40, 0x23, 0x04, 0xe2, 0x80, 0x00, - 0x17, 0x2e, 0x48, 0x50, 0x4d, 0x62, 0x37, 0x58, 0x4a, 0xec, 0x34, 0x76, 0x0a, 0xb9, 0x22, 0x84, - 0x38, 0x56, 0x42, 0xe2, 0x82, 0xc4, 0x85, 0x9e, 0xf9, 0x13, 0x10, 0xc7, 0x1e, 0x2b, 0x71, 0xe1, - 0x84, 0x50, 0xcb, 0x1f, 0x82, 0x32, 0xf3, 0x9c, 0x38, 0x3f, 0xec, 0x04, 0x29, 0x07, 0x2e, 0x55, - 0x32, 0xf3, 0xbd, 0xef, 0x7d, 0xef, 0x9b, 0x99, 0x2f, 0x05, 0xf9, 0x09, 0x6b, 0x18, 0xa6, 0xad, - 0xb1, 0xb2, 0xa7, 0x1d, 0xe6, 0x4b, 0xa6, 0xc7, 0xf2, 0xda, 0x41, 0xd3, 0x6c, 0xb4, 0xd4, 0x7a, - 0xc3, 0xf1, 0x1c, 0x4a, 0xc5, 0xbe, 0xca, 0xca, 0x9e, 0x8a, 0xfb, 0xd2, 0xef, 0xac, 0x66, 0xd9, - 0x8e, 0xc6, 0xff, 0x0a, 0x98, 0xb4, 0x50, 0x71, 0x2a, 0x0e, 0xff, 0xa8, 0xb5, 0x3f, 0xe1, 0xea, - 0x52, 0xc5, 0x71, 0x2a, 0x55, 0x53, 0x63, 0x75, 0x4b, 0x63, 0xb6, 0xed, 0x78, 0xcc, 0xb3, 0x1c, - 0xdb, 0xc5, 0xdd, 0x45, 0xdc, 0xe5, 0xdf, 0x4a, 0xcd, 0x7d, 0x8d, 0xd9, 0xd8, 0x55, 0xca, 0x95, - 0x1d, 0xb7, 0xe6, 0xb8, 0x5a, 0x89, 0xb9, 0xa6, 0x90, 0xd3, 0x11, 0x57, 0x67, 0x15, 0xcb, 0xe6, - 0x3c, 0x88, 0x5d, 0x1e, 0x32, 0x41, 0x9d, 0x35, 0x58, 0xcd, 0x8d, 0x00, 0xb0, 0x72, 0x80, 0x61, - 0x65, 0x08, 0xc0, 0x33, 0x6b, 0xf5, 0x2a, 0xf3, 0x4c, 0x01, 0x51, 0x16, 0x80, 0xde, 0x6d, 0xcb, - 0xb8, 0xc3, 0x89, 0x75, 0xf3, 0xa0, 0x69, 0xba, 0x9e, 0x72, 0x1b, 0xfe, 0xe8, 0x59, 0x75, 0xeb, - 0x8e, 0xed, 0x9a, 0xf4, 0x22, 0x24, 0x84, 0x80, 0x14, 0x49, 0x93, 0xcc, 0xaf, 0x05, 0x49, 0x1d, - 0x34, 0x51, 0x15, 0x35, 0xc5, 0xe9, 0x93, 0x2f, 0xcb, 0x31, 0x1d, 0xf1, 0xca, 0x43, 0x24, 0xdc, - 0xe1, 0xf2, 0xfc, 0x3e, 0xf4, 0x3a, 0x40, 0x77, 0x6c, 0x24, 0x5d, 0x57, 0x85, 0x47, 0x6a, 0xdb, - 0x23, 0x55, 0x1c, 0x59, 0x97, 0xbb, 0x62, 0x62, 0xad, 0x1e, 0xa8, 0x54, 0xde, 0x10, 0x58, 0xe8, - 0xe5, 0x47, 0xc5, 0x37, 0x86, 0x34, 0xd8, 0x18, 0xd9, 0x40, 0x14, 0x07, 0x3b, 0xd0, 0x4b, 0x30, - 0x23, 0xac, 0x75, 0x53, 0xf1, 0xf4, 0x54, 0xd8, 0xec, 0xa2, 0x3d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0x52, 0x6b, 0xcf, 0x32, 0xe8, 0x7b, 0x02, 0xf3, 0xfd, - 0x89, 0x10, 0xe1, 0x63, 0x48, 0xfe, 0x45, 0xf8, 0x18, 0x16, 0x37, 0xca, 0x05, 0x2e, 0x56, 0xa3, - 0xdb, 0xa3, 0x2f, 0x60, 0x5b, 0xab, 0x9f, 0x83, 0xaf, 0x09, 0x40, 0xf7, 0xc9, 0xd3, 0xdc, 0x88, - 0xc6, 0x41, 0x37, 0x37, 0xc7, 0xc2, 0xa2, 0x3c, 0x8d, 0xcb, 0xcb, 0xd2, 0x8d, 0x91, 0xf2, 0x84, - 0x93, 0xc5, 0x47, 0x27, 0x67, 0x32, 0x39, 0x3d, 0x93, 0xc9, 0xd7, 0x33, 0x99, 0x1c, 0x9d, 0xcb, - 0xb1, 0xd3, 0x73, 0x39, 0xf6, 0xf9, 0x5c, 0x8e, 0x3d, 0xb8, 0x56, 0xb1, 0xbc, 0xc7, 0xcd, 0x92, - 0x5a, 0x76, 0x6a, 0x58, 0xbd, 0xdd, 0xc7, 0xd6, 0x4f, 0xfe, 0x54, 0x1c, 0x55, 0xab, 0x6e, 0xba, - 0xfe, 0xbf, 0x92, 0xa5, 0x04, 0x07, 0xfd, 0xff, 0x3d, 0x00, 0x00, 0xff, 0xff, 0x97, 0x61, 0x03, - 0xcb, 0x6b, 0x0b, 0x00, 0x00, + // 854 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0xcf, 0x6b, 0x1b, 0x47, + 0x14, 0xc7, 0x35, 0xb2, 0x2b, 0x59, 0xaf, 0xc5, 0xb8, 0x53, 0xb7, 0x95, 0x17, 0x77, 0x2d, 0xaf, + 0x5d, 0x5b, 0x92, 0xed, 0xdd, 0x4a, 0xa5, 0x50, 0x7a, 0x68, 0x6b, 0x51, 0x5a, 0x7a, 0x28, 0x6d, + 0xd7, 0xed, 0xa5, 0xd0, 0x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, 0xa4, + 0x93, 0x95, 0x7f, 0x2e, 0xaf, 0x55, 0x72, 0x75, 0xad, 0x92, 0x57, 0xd7, 0x2a, 0x39, 0xbf, 0x51, + 0x13, 0x57, 0x37, 0x6a, 0xe2, 0xc5, 0x8d, 0x9a, 0xf8, 0xeb, 0x87, 0xba, 0xed, 0xff, 0xdb, 0xa9, + 0xea, 0x35, 0xb7, 0x89, 0xd1, 0x07, 0x23, 0xd9, 0x46, 0x93, 0xff, 0x2f, 0x8f, 0xaa, 0xdb, 0xe2, + 0x5e, 0xf0, 0xaf, 0x66, 0x35, 0x25, 0x44, 0x5f, 0xbe, 0x09, 0x00, 0x00, 0xff, 0xff, 0xf3, 0xb8, + 0x8d, 0xac, 0x8b, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1236,6 +1245,13 @@ func (m *QueryTemplatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) @@ -1667,6 +1683,10 @@ func (m *QueryTemplatesRequest) Size() (n int) { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -2218,6 +2238,38 @@ func (m *QueryTemplatesRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/warden/x/act/types/v1beta1/tx.pb.go b/warden/x/act/types/v1beta1/tx.pb.go index 5992a1abc..f111aef73 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,64 +866,65 @@ func init() { func init() { proto.RegisterFile("warden/act/v1beta1/tx.proto", fileDescriptor_f059980976488200) } var fileDescriptor_f059980976488200 = []byte{ - // 909 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, 0x97, 0xbc, 0x96, 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c, - 0x6f, 0x11, 0x54, 0x1e, 0xe4, 0x3b, 0x58, 0x2d, 0xde, 0x3f, 0xab, 0xc6, 0xb8, 0x80, 0x31, 0xb7, - 0xe7, 0x63, 0x8a, 0xee, 0x8b, 0x7b, 0xc8, 0xaa, 0x4f, 0x3e, 0xc3, 0xd4, 0xba, 0x9f, 0xb5, 0x61, - 0x4e, 0x60, 0xbd, 0xb2, 0x4e, 0xde, 0xbe, 0xb2, 0x75, 0x79, 0x90, 0x9d, 0x85, 0x60, 0x79, 0x9c, - 0x47, 0xb0, 0x56, 0x5a, 0x0c, 0x75, 0xb7, 0xa8, 0x08, 0xaa, 0xbd, 0x45, 0xb3, 0x56, 0x41, 0xda, - 0xec, 0xf2, 0xf4, 0xd5, 0x35, 0xbb, 0x84, 0xaa, 0x6d, 0xf6, 0xcc, 0x61, 0x31, 0xaf, 0xfd, 0x94, - 0xbe, 0x43, 0x1c, 0x7c, 0xff, 0xf4, 0xbc, 0xad, 0x3d, 0x3b, 0x6f, 0x6b, 0xff, 0x9f, 0xb7, 0xb5, - 0x5f, 0x2f, 0xda, 0x4b, 0xcf, 0x2e, 0xda, 0x4b, 0xff, 0x5e, 0xb4, 0x97, 0xbe, 0xfd, 0x34, 0x20, - 0x7c, 0x30, 0x3a, 0xb6, 0x3d, 0x1a, 0x3a, 0xd2, 0xf1, 0x8e, 0xf8, 0x5f, 0xf7, 0xe8, 0x50, 0xc9, - 0x15, 0x51, 0xbd, 0x6c, 0xf0, 0x49, 0x8c, 0x59, 0xf6, 0x3a, 0x75, 0xbc, 0x22, 0x40, 0x1f, 0x3c, - 0x0f, 0x00, 0x00, 0xff, 0xff, 0x95, 0x5f, 0x23, 0xbf, 0x35, 0x0a, 0x00, 0x00, + // 914 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x6f, 0xdc, 0x44, + 0x14, 0x8f, 0x37, 0xdb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55, + 0x15, 0x97, 0x93, 0x08, 0xd3, 0x31, 0x1f, 0x0c, 0x31, 0x09, 0x87, 0xdc, 0x5c, 0xec, 0x6a, 0xbd, + 0xb6, 0xf7, 0x8a, 0x54, 0x1e, 0x48, 0xdd, 0xe7, 0x42, 0x65, 0x7c, 0x08, 0x1b, 0xf8, 0x38, 0xc1, + 0x3e, 0xc7, 0xc1, 0x00, 0x25, 0x49, 0x4a, 0x27, 0x78, 0x80, 0x8f, 0x93, 0xac, 0x8c, 0x84, 0xc6, + 0x66, 0x5b, 0x30, 0x5a, 0xcf, 0x21, 0xbb, 0x12, 0xf1, 0x69, 0x01, 0x30, 0xde, 0x07, 0xab, 0xb0, + 0x4f, 0xf1, 0xf7, 0xd8, 0xe7, 0x65, 0xf3, 0x6b, 0xc2, 0xdc, 0xcc, 0x11, 0x9e, 0x00, 0x5c, 0x58, + 0xef, 0xac, 0x64, 0x85, 0xcd, 0xf3, 0xb5, 0xdf, 0x84, 0xb5, 0x72, 0x65, 0xf2, 0x92, 0x19, 0xab, + 0xd0, 0x22, 0x81, 0x28, 0x4e, 0xdb, 0x6b, 0x91, 0xc0, 0x7e, 0x08, 0x37, 0xf7, 0x59, 0xa8, 0xb8, + 0xcc, 0xad, 0xe2, 0x06, 0xe8, 0xaa, 0x2a, 0x24, 0x10, 0x75, 0x6c, 0x7b, 0x37, 0xe4, 0xc1, 0x17, + 0x41, 0x8d, 0x40, 0x1f, 0xcc, 0xba, 0xe3, 0x82, 0xc4, 0x6d, 0x58, 0x62, 0x1c, 0xf1, 0x31, 0x53, + 0xfe, 0x95, 0x64, 0x8f, 0x60, 0x55, 0x92, 0x3e, 0xc0, 0x51, 0x32, 0x42, 0x1c, 0x5f, 0x42, 0xc5, + 0x80, 0x76, 0x8c, 0x22, 0xd9, 0x4d, 0xdd, 0x13, 0xcf, 0x46, 0x07, 0x20, 0xc0, 0x47, 0x24, 0x26, + 0x59, 0x34, 0xd1, 0x29, 0xdd, 0x2b, 0x9d, 0xd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72, 0xaf, + 0xc1, 0xb4, 0x82, 0xb2, 0xde, 0xbe, 0x0a, 0xaa, 0x08, 0xf2, 0x2d, 0x2c, 0x97, 0x2f, 0xa2, 0xdd, + 0x60, 0x5c, 0xc2, 0x58, 0x9b, 0xf3, 0x31, 0x65, 0xf7, 0xe5, 0x85, 0x64, 0x37, 0x27, 0x9f, 0x63, + 0x1a, 0xdd, 0xcf, 0x5a, 0x35, 0x47, 0xb0, 0x5a, 0xdb, 0x2b, 0x6f, 0x5c, 0xda, 0xba, 0x22, 0xc8, + 0xd6, 0x95, 0x60, 0x45, 0x9c, 0x47, 0xb0, 0x52, 0xd9, 0x10, 0x4d, 0xb7, 0xa8, 0x0c, 0x6a, 0xbc, + 0x45, 0xb3, 0x76, 0x42, 0xd6, 0xec, 0xea, 0x18, 0x36, 0x35, 0xbb, 0x82, 0x6a, 0x6c, 0xf6, 0xcc, + 0x61, 0xb1, 0xae, 0xfd, 0x98, 0xbd, 0x4c, 0xec, 0x7d, 0xf7, 0xf4, 0xb4, 0xa3, 0x3d, 0x3b, 0xed, + 0x68, 0xff, 0x9d, 0x76, 0xb4, 0x5f, 0xce, 0x3a, 0x0b, 0xcf, 0xce, 0x3a, 0x0b, 0xff, 0x9c, 0x75, + 0x16, 0xbe, 0xf9, 0x24, 0x24, 0x7c, 0x38, 0x3e, 0x74, 0x7c, 0x1a, 0xb9, 0xd2, 0xf1, 0x96, 0xf8, + 0x83, 0xf7, 0xe9, 0x48, 0xc9, 0x35, 0x51, 0xbd, 0x75, 0x64, 0xc3, 0xce, 0xf2, 0xf7, 0xaa, 0xc3, + 0x25, 0x01, 0x7a, 0xf7, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x56, 0x09, 0xf1, 0x16, 0x3e, 0x0a, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1781,8 +1782,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 } @@ -2068,8 +2069,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 } @@ -3557,9 +3558,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 @@ -3569,7 +3570,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 } From 627663e1f7a0ccb56fcb3cb41324ba5963963334 Mon Sep 17 00:00:00 2001 From: Aleksandr Tretiakov Date: Thu, 12 Sep 2024 15:41:35 +0300 Subject: [PATCH 11/18] Build fixed --- warden/x/act/keeper/query_rules.go | 2 +- warden/x/act/types/v1beta1/expression.go | 4 +-- warden/x/act/types/v1beta1/registry.go | 10 +++---- .../x/warden/keeper/msg_server_update_key.go | 18 +----------- .../warden/keeper/msg_server_update_space.go | 28 ------------------- 5 files changed, 9 insertions(+), 53 deletions(-) diff --git a/warden/x/act/keeper/query_rules.go b/warden/x/act/keeper/query_rules.go index 90f0809e1..19442abaf 100644 --- a/warden/x/act/keeper/query_rules.go +++ b/warden/x/act/keeper/query_rules.go @@ -21,7 +21,7 @@ func (k Keeper) Templates(goCtx context.Context, req *types.QueryTemplatesReques ctx, k.templates, req.Pagination, - func(key uint64, value types.Rule) (bool, error) { + func(key uint64, value types.Template) (bool, error) { return req.Creator == "" || value.Creator == req.Creator, nil }, func(key uint64, value types.Template) (types.Template, error) { diff --git a/warden/x/act/types/v1beta1/expression.go b/warden/x/act/types/v1beta1/expression.go index 8f820bf6c..49f3cc664 100644 --- a/warden/x/act/types/v1beta1/expression.go +++ b/warden/x/act/types/v1beta1/expression.go @@ -15,11 +15,11 @@ func (r *ActExpression) EvalExpression(ctx context.Context, env shield.Environme obj := shield.Eval((*ast.Expression)(r), env) if obj.Type() == object.ERROR_OBJ { - return false, errors.Wrapf(ErrRuleEvaluationFailed, "result: %s", obj.Inspect()) + return false, errors.Wrapf(ErrTemplateEvaluationFailed, "result: %s", obj.Inspect()) } if obj.Type() != object.BOOLEAN_OBJ { - return false, errors.Wrapf(ErrRuleNotBoolean, "expected boolean, got %s (%s)", obj.Type(), obj.Inspect()) + return false, errors.Wrapf(ErrTemplateNotBoolean, "expected boolean, got %s (%s)", obj.Type(), obj.Inspect()) } return obj.(*object.Boolean).Value, nil diff --git a/warden/x/act/types/v1beta1/registry.go b/warden/x/act/types/v1beta1/registry.go index a786ce62e..9b8365ecf 100644 --- a/warden/x/act/types/v1beta1/registry.go +++ b/warden/x/act/types/v1beta1/registry.go @@ -34,7 +34,7 @@ type registry interface { func Register[T sdk.Msg](reg registry, fn ProviderFnG[T]) { var msg T typeUrl := sdk.MsgTypeURL(msg) - reg.Register(typeUrl, func(ctx context.Context, m sdk.Msg) (Template, Template, Rule, error) { + reg.Register(typeUrl, func(ctx context.Context, m sdk.Msg) (Template, Template, error) { return fn(ctx, m.(T)) }) } @@ -49,7 +49,7 @@ type registryWithCtx interface { func RegisterCtx[T sdk.Msg](reg registryWithCtx, fn ProviderFnWithCtxG[T]) { var msg T typeUrl := sdk.MsgTypeURL(msg) - reg.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Template, Template, Rule, error) { + reg.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Template, Template, error) { return fn(ctx, m.(T)) }) } @@ -68,7 +68,7 @@ func NewTemplatesRegistry() *TemplatesRegistry { // ProviderMsg can be registered for each typeUrl, attempting to register // a provider for the same typeUrl twice will panic. func (p *TemplatesRegistry) Register(typeUrl string, fn ProviderFn) { - p.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Template, Template, Rule, error) { + p.RegisterCtx(typeUrl, func(ctx context.Context, m sdk.Msg) (context.Context, Template, Template, error) { approve, reject, err := fn(ctx, m) return ctx, approve, reject, err }) @@ -97,10 +97,10 @@ func (p *TemplatesRegistry) RegisterCtx(typeUrl string, fn ProviderFnWithCtx) { // // An error is returned if there are no provider functions registered for the // sdk.Msg type. -func (p *TemplatesRegistry) Get(ctx context.Context, msg sdk.Msg) (context.Context, Template, Template, Rule, error) { +func (p *TemplatesRegistry) Get(ctx context.Context, msg sdk.Msg) (context.Context, Template, Template, error) { typeUrl := sdk.MsgTypeURL(msg) if fn, found := p.p[typeUrl]; found { return fn(ctx, msg) } - return nil, Template{}, Template{}, Rule{}, fmt.Errorf("no Template provider registered for %s", typeUrl) + return nil, Template{}, Template{}, fmt.Errorf("no Template provider registered for %s", typeUrl) } diff --git a/warden/x/warden/keeper/msg_server_update_key.go b/warden/x/warden/keeper/msg_server_update_key.go index 87abfcf40..33be73723 100644 --- a/warden/x/warden/keeper/msg_server_update_key.go +++ b/warden/x/warden/keeper/msg_server_update_key.go @@ -38,20 +38,6 @@ func (k msgServer) UpdateKey(ctx context.Context, msg *types.MsgUpdateKey) (*typ key.RejectTemplateId = msg.RejectTemplateId } - if key.ApproveRuleId != msg.ApproveRuleId { - if err = k.actKeeper.IsValidRule(ctx, msg.ApproveRuleId); err != nil { - return nil, err - } - key.ApproveRuleId = msg.ApproveRuleId - } - - if key.RejectRuleId != msg.RejectRuleId { - if err = k.actKeeper.IsValidRule(ctx, msg.RejectRuleId); err != nil { - return nil, err - } - key.RejectRuleId = msg.RejectRuleId - } - if err := k.KeysKeeper.Set(ctx, key); err != nil { return nil, err } @@ -60,10 +46,8 @@ func (k msgServer) UpdateKey(ctx context.Context, msg *types.MsgUpdateKey) (*typ if err := sdkCtx.EventManager().EmitTypedEvent(&types.EventUpdateKey{ Id: key.Id, TemplateId: key.TemplateId, - ApproveTemplateId: key.ApproveTemplateId, + ApproveTemplateId: key.ApproveTemplateId, RejectTemplateId: key.RejectTemplateId, - ApproveRuleId: key.ApproveRuleId, - RejectRuleId: key.RejectRuleId, }); err != nil { return nil, err } diff --git a/warden/x/warden/keeper/msg_server_update_space.go b/warden/x/warden/keeper/msg_server_update_space.go index 8dae65e10..bcf774ecc 100644 --- a/warden/x/warden/keeper/msg_server_update_space.go +++ b/warden/x/warden/keeper/msg_server_update_space.go @@ -59,34 +59,6 @@ func (k msgServer) UpdateSpace(ctx context.Context, msg *types.MsgUpdateSpace) ( space.RejectSignTemplateId = msg.RejectSignTemplateId } - if msg.ApproveAdminRuleId != space.ApproveAdminRuleId { - if err := k.actKeeper.IsValidRule(ctx, msg.ApproveAdminRuleId); err != nil { - return nil, err - } - space.ApproveAdminRuleId = msg.ApproveAdminRuleId - } - - if msg.RejectAdminRuleId != space.RejectAdminRuleId { - if err := k.actKeeper.IsValidRule(ctx, msg.RejectAdminRuleId); err != nil { - return nil, err - } - space.RejectAdminRuleId = msg.RejectAdminRuleId - } - - if msg.ApproveSignRuleId != space.ApproveSignRuleId { - if err := k.actKeeper.IsValidRule(ctx, msg.ApproveSignRuleId); err != nil { - return nil, err - } - space.ApproveSignRuleId = msg.ApproveSignRuleId - } - - if msg.RejectSignRuleId != space.RejectSignRuleId { - if err := k.actKeeper.IsValidRule(ctx, msg.RejectSignRuleId); err != nil { - return nil, err - } - space.RejectSignRuleId = msg.RejectSignRuleId - } - if _, err := space.IncrementNonce(msg.Nonce); err != nil { return nil, err } From fc43391520e7cf4f78955834a36a333dbb130663 Mon Sep 17 00:00:00 2001 From: Aleksandr Tretiakov Date: Thu, 12 Sep 2024 15:50:08 +0300 Subject: [PATCH 12/18] Brought back --- warden/x/act/types/v1beta1/{template.go => rule.go} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename warden/x/act/types/v1beta1/{template.go => rule.go} (100%) diff --git a/warden/x/act/types/v1beta1/template.go b/warden/x/act/types/v1beta1/rule.go similarity index 100% rename from warden/x/act/types/v1beta1/template.go rename to warden/x/act/types/v1beta1/rule.go From 696d24978c99c8b07db2b9000e98a8494f3def3f Mon Sep 17 00:00:00 2001 From: Aleksandr Tretiakov Date: Thu, 12 Sep 2024 15:51:27 +0300 Subject: [PATCH 13/18] Fixes --- warden/x/act/keeper/actions.go | 2 -- warden/x/act/keeper/msg_server_check_action.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/warden/x/act/keeper/actions.go b/warden/x/act/keeper/actions.go index 97deac854..2a863396b 100644 --- a/warden/x/act/keeper/actions.go +++ b/warden/x/act/keeper/actions.go @@ -3,7 +3,6 @@ package keeper import ( "context" "fmt" - "log" "reflect" "runtime/debug" @@ -104,7 +103,6 @@ func (k Keeper) TryRejectVotedAction(ctx context.Context, act *types.Action) err // result in the database. func (k Keeper) TryExecuteAction(ctx context.Context, act *types.Action) error { ready, err := k.checkActionReady(ctx, *act) - log.Printf("\nready %v\n", ready) if err != nil { return err } diff --git a/warden/x/act/keeper/msg_server_check_action.go b/warden/x/act/keeper/msg_server_check_action.go index 9b88c3e9e..1317ea7ad 100644 --- a/warden/x/act/keeper/msg_server_check_action.go +++ b/warden/x/act/keeper/msg_server_check_action.go @@ -30,7 +30,7 @@ func (k msgServer) CheckAction(goCtx context.Context, msg *types.MsgCheckAction) return &types.MsgCheckActionResponse{Status: act.Status.String()}, nil } - if err := k.TryExecuteAction(ctx, &act); err != nil { + if err := k.TryExecuteVotedAction(ctx, &act); err != nil { return nil, err } From 067e327a9a6b588fc9b9bf90f9f71a94d08fa989 Mon Sep 17 00:00:00 2001 From: Aleksandr Tretiakov Date: Thu, 12 Sep 2024 15:57:24 +0300 Subject: [PATCH 14/18] Reverted changes --- wardenjs/proto/cosmos/group/v1/types.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wardenjs/proto/cosmos/group/v1/types.proto b/wardenjs/proto/cosmos/group/v1/types.proto index 9390630f2..604fe0aec 100644 --- a/wardenjs/proto/cosmos/group/v1/types.proto +++ b/wardenjs/proto/cosmos/group/v1/types.proto @@ -209,7 +209,7 @@ message Proposal { // as `status` and `result` fields will be accordingly updated. google.protobuf.Timestamp voting_period_end = 11 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - // executor_result is the final result based on the votes and election template. Initial value is NotRun. + // executor_result is the final result based on the votes and election rule. Initial value is NotRun. ProposalExecutorResult executor_result = 12; // messages is a list of Msgs that will be executed if the proposal passes. From 52e09301ebcf4fa38a94d834ad3991e0c214cbc9 Mon Sep 17 00:00:00 2001 From: Artur Abliazimov Date: Thu, 12 Sep 2024 17:24:51 +0300 Subject: [PATCH 15/18] Start removing unnecessary code --- api/warden/act/v1beta1/action.pulsar.go | 1114 ++------------ api/warden/act/v1beta1/events.pulsar.go | 647 +------- api/warden/act/v1beta1/tx.pulsar.go | 1359 +++-------------- api/warden/act/v1beta1/tx_grpc.pb.go | 39 - proto/warden/act/v1beta1/action.proto | 35 +- proto/warden/act/v1beta1/events.proto | 9 - proto/warden/act/v1beta1/tx.proto | 13 - warden/x/act/keeper/actions.go | 44 - warden/x/act/keeper/migrations.go | 20 - .../x/act/keeper/msg_server_approve_action.go | 44 - warden/x/act/keeper/msg_server_new_action.go | 1 + .../keeper/query_actions_by_address_test.go | 3 - warden/x/act/migrations/v3/store.go | 300 ---- warden/x/act/module/module.go | 5 - warden/x/act/types/v1beta1/action.go | 31 - warden/x/act/types/v1beta1/action.pb.go | 512 +------ warden/x/act/types/v1beta1/codec.go | 2 +- warden/x/act/types/v1beta1/errors.go | 2 - warden/x/act/types/v1beta1/events.pb.go | 265 +--- warden/x/act/types/v1beta1/tx.pb.go | 549 +------ warden/x/warden/keeper/migrations.go | 20 - warden/x/warden/migrations/v3/store.go | 368 ----- warden/x/warden/module/module.go | 10 - 23 files changed, 575 insertions(+), 4817 deletions(-) delete mode 100644 warden/x/act/keeper/migrations.go delete mode 100644 warden/x/act/keeper/msg_server_approve_action.go delete mode 100644 warden/x/act/migrations/v3/store.go delete mode 100644 warden/x/warden/keeper/migrations.go delete mode 100644 warden/x/warden/migrations/v3/store.go diff --git a/api/warden/act/v1beta1/action.pulsar.go b/api/warden/act/v1beta1/action.pulsar.go index 77c1dad96..fe8919e95 100644 --- a/api/warden/act/v1beta1/action.pulsar.go +++ b/api/warden/act/v1beta1/action.pulsar.go @@ -17,657 +17,106 @@ import ( sync "sync" ) -var ( - md_Approver protoreflect.MessageDescriptor - fd_Approver_address protoreflect.FieldDescriptor - fd_Approver_approved_at protoreflect.FieldDescriptor -) - -func init() { - file_warden_act_v1beta1_action_proto_init() - md_Approver = File_warden_act_v1beta1_action_proto.Messages().ByName("Approver") - fd_Approver_address = md_Approver.Fields().ByName("address") - fd_Approver_approved_at = md_Approver.Fields().ByName("approved_at") -} - -var _ protoreflect.Message = (*fastReflection_Approver)(nil) - -type fastReflection_Approver Approver - -func (x *Approver) ProtoReflect() protoreflect.Message { - return (*fastReflection_Approver)(x) -} - -func (x *Approver) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_action_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Approver_messageType fastReflection_Approver_messageType -var _ protoreflect.MessageType = fastReflection_Approver_messageType{} - -type fastReflection_Approver_messageType struct{} - -func (x fastReflection_Approver_messageType) Zero() protoreflect.Message { - return (*fastReflection_Approver)(nil) -} -func (x fastReflection_Approver_messageType) New() protoreflect.Message { - return new(fastReflection_Approver) -} -func (x fastReflection_Approver_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Approver -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Approver) Descriptor() protoreflect.MessageDescriptor { - return md_Approver -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Approver) Type() protoreflect.MessageType { - return _fastReflection_Approver_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Approver) New() protoreflect.Message { - return new(fastReflection_Approver) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Approver) Interface() protoreflect.ProtoMessage { - return (*Approver)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Approver) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_Approver_address, value) { - return - } - } - if x.ApprovedAt != nil { - value := protoreflect.ValueOfMessage(x.ApprovedAt.ProtoReflect()) - if !f(fd_Approver_approved_at, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Approver) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "warden.act.v1beta1.Approver.address": - return x.Address != "" - case "warden.act.v1beta1.Approver.approved_at": - return x.ApprovedAt != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Approver")) - } - panic(fmt.Errorf("message warden.act.v1beta1.Approver does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Approver) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "warden.act.v1beta1.Approver.address": - x.Address = "" - case "warden.act.v1beta1.Approver.approved_at": - x.ApprovedAt = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Approver")) - } - panic(fmt.Errorf("message warden.act.v1beta1.Approver does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Approver) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "warden.act.v1beta1.Approver.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "warden.act.v1beta1.Approver.approved_at": - value := x.ApprovedAt - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Approver")) - } - panic(fmt.Errorf("message warden.act.v1beta1.Approver does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Approver) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "warden.act.v1beta1.Approver.address": - x.Address = value.Interface().(string) - case "warden.act.v1beta1.Approver.approved_at": - x.ApprovedAt = value.Message().Interface().(*timestamppb.Timestamp) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Approver")) - } - panic(fmt.Errorf("message warden.act.v1beta1.Approver does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Approver) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "warden.act.v1beta1.Approver.approved_at": - if x.ApprovedAt == nil { - x.ApprovedAt = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.ApprovedAt.ProtoReflect()) - case "warden.act.v1beta1.Approver.address": - panic(fmt.Errorf("field address of message warden.act.v1beta1.Approver is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Approver")) - } - panic(fmt.Errorf("message warden.act.v1beta1.Approver does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Approver) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "warden.act.v1beta1.Approver.address": - return protoreflect.ValueOfString("") - case "warden.act.v1beta1.Approver.approved_at": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Approver")) - } - panic(fmt.Errorf("message warden.act.v1beta1.Approver does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Approver) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.Approver", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Approver) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Approver) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Approver) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Approver) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Approver) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.ApprovedAt != nil { - l = options.Size(x.ApprovedAt) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Approver) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ApprovedAt != nil { - encoded, err := options.Marshal(x.ApprovedAt) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Approver) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Approver: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Approver: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApprovedAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.ApprovedAt == nil { - x.ApprovedAt = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ApprovedAt); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_Action_2_list)(nil) - -type _Action_2_list struct { - list *[]*Approver -} - -func (x *_Action_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Action_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Action_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Approver) - (*x.list)[i] = concreteValue -} - -func (x *_Action_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Approver) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Action_2_list) AppendMutable() protoreflect.Value { - v := new(Approver) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} +var _ protoreflect.List = (*_Action_9_list)(nil) -func (x *_Action_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Action_2_list) NewElement() protoreflect.Value { - v := new(Approver) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Action_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_Action_12_list)(nil) - -type _Action_12_list struct { +type _Action_9_list struct { list *[]string } -func (x *_Action_12_list) Len() int { +func (x *_Action_9_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Action_12_list) Get(i int) protoreflect.Value { +func (x *_Action_9_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfString((*x.list)[i]) } -func (x *_Action_12_list) Set(i int, value protoreflect.Value) { +func (x *_Action_9_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_Action_12_list) Append(value protoreflect.Value) { +func (x *_Action_9_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_Action_12_list) AppendMutable() protoreflect.Value { +func (x *_Action_9_list) AppendMutable() protoreflect.Value { panic(fmt.Errorf("AppendMutable can not be called on message Action at list field Mentions as it is not of Message kind")) } -func (x *_Action_12_list) Truncate(n int) { +func (x *_Action_9_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_Action_12_list) NewElement() protoreflect.Value { +func (x *_Action_9_list) NewElement() protoreflect.Value { v := "" return protoreflect.ValueOfString(v) } -func (x *_Action_12_list) IsValid() bool { +func (x *_Action_9_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_Action_15_list)(nil) +var _ protoreflect.List = (*_Action_12_list)(nil) -type _Action_15_list struct { +type _Action_12_list struct { list *[]*ActionVote } -func (x *_Action_15_list) Len() int { +func (x *_Action_12_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Action_15_list) Get(i int) protoreflect.Value { +func (x *_Action_12_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_Action_15_list) Set(i int, value protoreflect.Value) { +func (x *_Action_12_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ActionVote) (*x.list)[i] = concreteValue } -func (x *_Action_15_list) Append(value protoreflect.Value) { +func (x *_Action_12_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ActionVote) *x.list = append(*x.list, concreteValue) } -func (x *_Action_15_list) AppendMutable() protoreflect.Value { +func (x *_Action_12_list) AppendMutable() protoreflect.Value { v := new(ActionVote) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Action_15_list) Truncate(n int) { +func (x *_Action_12_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_Action_15_list) NewElement() protoreflect.Value { +func (x *_Action_12_list) NewElement() protoreflect.Value { v := new(ActionVote) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Action_15_list) IsValid() bool { +func (x *_Action_12_list) IsValid() bool { return x.list != nil } var ( md_Action protoreflect.MessageDescriptor fd_Action_id protoreflect.FieldDescriptor - fd_Action_approvers protoreflect.FieldDescriptor fd_Action_status protoreflect.FieldDescriptor fd_Action_msg protoreflect.FieldDescriptor fd_Action_result protoreflect.FieldDescriptor @@ -675,7 +124,6 @@ var ( fd_Action_timeout_height protoreflect.FieldDescriptor fd_Action_created_at protoreflect.FieldDescriptor fd_Action_updated_at protoreflect.FieldDescriptor - fd_Action_template protoreflect.FieldDescriptor fd_Action_mentions protoreflect.FieldDescriptor fd_Action_approve_expression protoreflect.FieldDescriptor fd_Action_reject_expression protoreflect.FieldDescriptor @@ -686,7 +134,6 @@ func init() { file_warden_act_v1beta1_action_proto_init() md_Action = File_warden_act_v1beta1_action_proto.Messages().ByName("Action") fd_Action_id = md_Action.Fields().ByName("id") - fd_Action_approvers = md_Action.Fields().ByName("approvers") fd_Action_status = md_Action.Fields().ByName("status") fd_Action_msg = md_Action.Fields().ByName("msg") fd_Action_result = md_Action.Fields().ByName("result") @@ -694,7 +141,6 @@ func init() { fd_Action_timeout_height = md_Action.Fields().ByName("timeout_height") fd_Action_created_at = md_Action.Fields().ByName("created_at") fd_Action_updated_at = md_Action.Fields().ByName("updated_at") - fd_Action_template = md_Action.Fields().ByName("template") fd_Action_mentions = md_Action.Fields().ByName("mentions") fd_Action_approve_expression = md_Action.Fields().ByName("approve_expression") fd_Action_reject_expression = md_Action.Fields().ByName("reject_expression") @@ -710,7 +156,7 @@ func (x *Action) ProtoReflect() protoreflect.Message { } func (x *Action) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_action_proto_msgTypes[1] + mi := &file_warden_act_v1beta1_action_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -772,12 +218,6 @@ func (x *fastReflection_Action) Range(f func(protoreflect.FieldDescriptor, proto return } } - if len(x.Approvers) != 0 { - value := protoreflect.ValueOfList(&_Action_2_list{list: &x.Approvers}) - if !f(fd_Action_approvers, value) { - return - } - } if x.Status != 0 { value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) if !f(fd_Action_status, value) { @@ -820,14 +260,8 @@ func (x *fastReflection_Action) Range(f func(protoreflect.FieldDescriptor, proto return } } - if x.Template != nil { - value := protoreflect.ValueOfMessage(x.Template.ProtoReflect()) - if !f(fd_Action_template, value) { - return - } - } if len(x.Mentions) != 0 { - value := protoreflect.ValueOfList(&_Action_12_list{list: &x.Mentions}) + value := protoreflect.ValueOfList(&_Action_9_list{list: &x.Mentions}) if !f(fd_Action_mentions, value) { return } @@ -845,7 +279,7 @@ func (x *fastReflection_Action) Range(f func(protoreflect.FieldDescriptor, proto } } if len(x.Votes) != 0 { - value := protoreflect.ValueOfList(&_Action_15_list{list: &x.Votes}) + value := protoreflect.ValueOfList(&_Action_12_list{list: &x.Votes}) if !f(fd_Action_votes, value) { return } @@ -867,8 +301,6 @@ func (x *fastReflection_Action) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "warden.act.v1beta1.Action.id": return x.Id != uint64(0) - case "warden.act.v1beta1.Action.approvers": - return len(x.Approvers) != 0 case "warden.act.v1beta1.Action.status": return x.Status != 0 case "warden.act.v1beta1.Action.msg": @@ -883,8 +315,6 @@ func (x *fastReflection_Action) Has(fd protoreflect.FieldDescriptor) bool { return x.CreatedAt != nil case "warden.act.v1beta1.Action.updated_at": return x.UpdatedAt != nil - case "warden.act.v1beta1.Action.template": - return x.Template != nil case "warden.act.v1beta1.Action.mentions": return len(x.Mentions) != 0 case "warden.act.v1beta1.Action.approve_expression": @@ -911,8 +341,6 @@ func (x *fastReflection_Action) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "warden.act.v1beta1.Action.id": x.Id = uint64(0) - case "warden.act.v1beta1.Action.approvers": - x.Approvers = nil case "warden.act.v1beta1.Action.status": x.Status = 0 case "warden.act.v1beta1.Action.msg": @@ -927,8 +355,6 @@ func (x *fastReflection_Action) Clear(fd protoreflect.FieldDescriptor) { x.CreatedAt = nil case "warden.act.v1beta1.Action.updated_at": x.UpdatedAt = nil - case "warden.act.v1beta1.Action.template": - x.Template = nil case "warden.act.v1beta1.Action.mentions": x.Mentions = nil case "warden.act.v1beta1.Action.approve_expression": @@ -956,12 +382,6 @@ func (x *fastReflection_Action) Get(descriptor protoreflect.FieldDescriptor) pro case "warden.act.v1beta1.Action.id": value := x.Id return protoreflect.ValueOfUint64(value) - case "warden.act.v1beta1.Action.approvers": - if len(x.Approvers) == 0 { - return protoreflect.ValueOfList(&_Action_2_list{}) - } - listValue := &_Action_2_list{list: &x.Approvers} - return protoreflect.ValueOfList(listValue) case "warden.act.v1beta1.Action.status": value := x.Status return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) @@ -983,14 +403,11 @@ func (x *fastReflection_Action) Get(descriptor protoreflect.FieldDescriptor) pro case "warden.act.v1beta1.Action.updated_at": value := x.UpdatedAt return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "warden.act.v1beta1.Action.template": - value := x.Template - return protoreflect.ValueOfMessage(value.ProtoReflect()) case "warden.act.v1beta1.Action.mentions": if len(x.Mentions) == 0 { - return protoreflect.ValueOfList(&_Action_12_list{}) + return protoreflect.ValueOfList(&_Action_9_list{}) } - listValue := &_Action_12_list{list: &x.Mentions} + listValue := &_Action_9_list{list: &x.Mentions} return protoreflect.ValueOfList(listValue) case "warden.act.v1beta1.Action.approve_expression": value := x.ApproveExpression @@ -1000,9 +417,9 @@ func (x *fastReflection_Action) Get(descriptor protoreflect.FieldDescriptor) pro return protoreflect.ValueOfMessage(value.ProtoReflect()) case "warden.act.v1beta1.Action.votes": if len(x.Votes) == 0 { - return protoreflect.ValueOfList(&_Action_15_list{}) + return protoreflect.ValueOfList(&_Action_12_list{}) } - listValue := &_Action_15_list{list: &x.Votes} + listValue := &_Action_12_list{list: &x.Votes} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -1026,10 +443,6 @@ func (x *fastReflection_Action) Set(fd protoreflect.FieldDescriptor, value proto switch fd.FullName() { case "warden.act.v1beta1.Action.id": x.Id = value.Uint() - case "warden.act.v1beta1.Action.approvers": - lv := value.List() - clv := lv.(*_Action_2_list) - x.Approvers = *clv.list case "warden.act.v1beta1.Action.status": x.Status = (ActionStatus)(value.Enum()) case "warden.act.v1beta1.Action.msg": @@ -1044,11 +457,9 @@ func (x *fastReflection_Action) Set(fd protoreflect.FieldDescriptor, value proto x.CreatedAt = value.Message().Interface().(*timestamppb.Timestamp) case "warden.act.v1beta1.Action.updated_at": x.UpdatedAt = value.Message().Interface().(*timestamppb.Timestamp) - case "warden.act.v1beta1.Action.template": - x.Template = value.Message().Interface().(*Template) case "warden.act.v1beta1.Action.mentions": lv := value.List() - clv := lv.(*_Action_12_list) + clv := lv.(*_Action_9_list) x.Mentions = *clv.list case "warden.act.v1beta1.Action.approve_expression": x.ApproveExpression = value.Message().Interface().(*ast.Expression) @@ -1056,7 +467,7 @@ func (x *fastReflection_Action) Set(fd protoreflect.FieldDescriptor, value proto x.RejectExpression = value.Message().Interface().(*ast.Expression) case "warden.act.v1beta1.Action.votes": lv := value.List() - clv := lv.(*_Action_15_list) + clv := lv.(*_Action_12_list) x.Votes = *clv.list default: if fd.IsExtension() { @@ -1078,12 +489,6 @@ func (x *fastReflection_Action) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Action) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.act.v1beta1.Action.approvers": - if x.Approvers == nil { - x.Approvers = []*Approver{} - } - value := &_Action_2_list{list: &x.Approvers} - return protoreflect.ValueOfList(value) case "warden.act.v1beta1.Action.msg": if x.Msg == nil { x.Msg = new(anypb.Any) @@ -1104,16 +509,11 @@ func (x *fastReflection_Action) Mutable(fd protoreflect.FieldDescriptor) protore x.UpdatedAt = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.UpdatedAt.ProtoReflect()) - case "warden.act.v1beta1.Action.template": - if x.Template == nil { - x.Template = new(Template) - } - return protoreflect.ValueOfMessage(x.Template.ProtoReflect()) case "warden.act.v1beta1.Action.mentions": if x.Mentions == nil { x.Mentions = []string{} } - value := &_Action_12_list{list: &x.Mentions} + value := &_Action_9_list{list: &x.Mentions} return protoreflect.ValueOfList(value) case "warden.act.v1beta1.Action.approve_expression": if x.ApproveExpression == nil { @@ -1129,7 +529,7 @@ func (x *fastReflection_Action) Mutable(fd protoreflect.FieldDescriptor) protore if x.Votes == nil { x.Votes = []*ActionVote{} } - value := &_Action_15_list{list: &x.Votes} + value := &_Action_12_list{list: &x.Votes} return protoreflect.ValueOfList(value) case "warden.act.v1beta1.Action.id": panic(fmt.Errorf("field id of message warden.act.v1beta1.Action is not mutable")) @@ -1154,9 +554,6 @@ func (x *fastReflection_Action) NewField(fd protoreflect.FieldDescriptor) protor switch fd.FullName() { case "warden.act.v1beta1.Action.id": return protoreflect.ValueOfUint64(uint64(0)) - case "warden.act.v1beta1.Action.approvers": - list := []*Approver{} - return protoreflect.ValueOfList(&_Action_2_list{list: &list}) case "warden.act.v1beta1.Action.status": return protoreflect.ValueOfEnum(0) case "warden.act.v1beta1.Action.msg": @@ -1175,12 +572,9 @@ func (x *fastReflection_Action) NewField(fd protoreflect.FieldDescriptor) protor case "warden.act.v1beta1.Action.updated_at": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "warden.act.v1beta1.Action.template": - m := new(Template) - return protoreflect.ValueOfMessage(m.ProtoReflect()) case "warden.act.v1beta1.Action.mentions": list := []string{} - return protoreflect.ValueOfList(&_Action_12_list{list: &list}) + return protoreflect.ValueOfList(&_Action_9_list{list: &list}) case "warden.act.v1beta1.Action.approve_expression": m := new(ast.Expression) return protoreflect.ValueOfMessage(m.ProtoReflect()) @@ -1189,7 +583,7 @@ func (x *fastReflection_Action) NewField(fd protoreflect.FieldDescriptor) protor return protoreflect.ValueOfMessage(m.ProtoReflect()) case "warden.act.v1beta1.Action.votes": list := []*ActionVote{} - return protoreflect.ValueOfList(&_Action_15_list{list: &list}) + return protoreflect.ValueOfList(&_Action_12_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.Action")) @@ -1262,12 +656,6 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { if x.Id != 0 { n += 1 + runtime.Sov(uint64(x.Id)) } - if len(x.Approvers) > 0 { - for _, e := range x.Approvers { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } if x.Status != 0 { n += 1 + runtime.Sov(uint64(x.Status)) } @@ -1294,10 +682,6 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { l = options.Size(x.UpdatedAt) n += 1 + l + runtime.Sov(uint64(l)) } - if x.Template != nil { - l = options.Size(x.Template) - n += 1 + l + runtime.Sov(uint64(l)) - } if len(x.Mentions) > 0 { for _, s := range x.Mentions { l = len(s) @@ -1360,7 +744,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x7a + dAtA[i] = 0x62 } } if x.RejectExpression != nil { @@ -1375,7 +759,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x72 + dAtA[i] = 0x5a } if x.ApproveExpression != nil { encoded, err := options.Marshal(x.ApproveExpression) @@ -1389,7 +773,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x6a + dAtA[i] = 0x52 } if len(x.Mentions) > 0 { for iNdEx := len(x.Mentions) - 1; iNdEx >= 0; iNdEx-- { @@ -1397,23 +781,9 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Mentions[iNdEx]) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Mentions[iNdEx]))) i-- - dAtA[i] = 0x62 + dAtA[i] = 0x4a } } - if x.Template != nil { - encoded, err := options.Marshal(x.Template) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x5a - } if x.UpdatedAt != nil { encoded, err := options.Marshal(x.UpdatedAt) if err != nil { @@ -1426,7 +796,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x52 + dAtA[i] = 0x42 } if x.CreatedAt != nil { encoded, err := options.Marshal(x.CreatedAt) @@ -1440,19 +810,19 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x4a + dAtA[i] = 0x3a } if x.TimeoutHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TimeoutHeight)) i-- - dAtA[i] = 0x40 + dAtA[i] = 0x30 } if len(x.Creator) > 0 { i -= len(x.Creator) copy(dAtA[i:], x.Creator) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) i-- - dAtA[i] = 0x3a + dAtA[i] = 0x2a } if x.Result != nil { encoded, err := options.Marshal(x.Result) @@ -1466,7 +836,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x22 } if x.Msg != nil { encoded, err := options.Marshal(x.Msg) @@ -1480,28 +850,12 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x1a } if x.Status != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) i-- - dAtA[i] = 0x18 - } - if len(x.Approvers) > 0 { - for iNdEx := len(x.Approvers) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Approvers[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } + dAtA[i] = 0x10 } if x.Id != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) @@ -1577,40 +931,6 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { } } case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Approvers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Approvers = append(x.Approvers, &Approver{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Approvers[len(x.Approvers)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 3: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } @@ -1629,7 +949,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { break } } - case 5: + case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) } @@ -1665,7 +985,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 6: + case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } @@ -1701,7 +1021,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 7: + case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } @@ -1733,7 +1053,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { } x.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: + case 6: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimeoutHeight", wireType) } @@ -1752,7 +1072,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { break } } - case 9: + case 7: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) } @@ -1788,7 +1108,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 10: + case 8: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType) } @@ -1824,43 +1144,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 11: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Template == nil { - x.Template = &Template{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Template); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 12: + case 9: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Mentions", wireType) } @@ -1892,7 +1176,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { } x.Mentions = append(x.Mentions, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 13: + case 10: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApproveExpression", wireType) } @@ -1928,7 +1212,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 14: + case 11: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RejectExpression", wireType) } @@ -1964,7 +1248,7 @@ func (x *fastReflection_Action) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 15: + case 12: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType) } @@ -2107,51 +1391,6 @@ func (ActionStatus) EnumDescriptor() ([]byte, []int) { return file_warden_act_v1beta1_action_proto_rawDescGZIP(), []int{0} } -type Approver struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address is the address of the approver - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // approved_at is a timestamp specifying when the approver approved an action - ApprovedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=approved_at,json=approvedAt,proto3" json:"approved_at,omitempty"` -} - -func (x *Approver) Reset() { - *x = Approver{} - if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_action_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Approver) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Approver) ProtoMessage() {} - -// Deprecated: Use Approver.ProtoReflect.Descriptor instead. -func (*Approver) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_action_proto_rawDescGZIP(), []int{0} -} - -func (x *Approver) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *Approver) GetApprovedAt() *timestamppb.Timestamp { - if x != nil { - return x.ApprovedAt - } - return nil -} - // Action wraps a message that will be executed when its associated template is // satisfied. type Action struct { @@ -2159,39 +1398,34 @@ type Action struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Approvers []*Approver `protobuf:"bytes,2,rep,name=approvers,proto3" json:"approvers,omitempty"` - Status ActionStatus `protobuf:"varint,3,opt,name=status,proto3,enum=warden.act.v1beta1.ActionStatus" json:"status,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Status ActionStatus `protobuf:"varint,2,opt,name=status,proto3,enum=warden.act.v1beta1.ActionStatus" json:"status,omitempty"` // Original message that started the action, it will be executed when the // template is satisfied. - Msg *anypb.Any `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"` + Msg *anypb.Any `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // Result of the action, it will be set when the action is completed. - Result *anypb.Any `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"` - Creator string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"` + Result *anypb.Any `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` + Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"` // TimeoutHeight is the block height up until this action can be executed. - TimeoutHeight uint64 `protobuf:"varint,8,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"` + TimeoutHeight uint64 `protobuf:"varint,6,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"` // created_at is a timestamp specifying when the action was created - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // updated_at is a timestamp specifying when the action's status was updated - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - // template is the condition that this action is associated with. Instead of - // storing the template ID, we store the entire Template object so that is immutable - // and cannot be changed later. - Template *Template `protobuf:"bytes,11,opt,name=template,proto3" json:"template,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // mentions is a list of addresses that are mentioned in the template. - Mentions []string `protobuf:"bytes,12,rep,name=mentions,proto3" json:"mentions,omitempty"` + Mentions []string `protobuf:"bytes,9,rep,name=mentions,proto3" json:"mentions,omitempty"` // The expression to be evaluated for approval. - ApproveExpression *ast.Expression `protobuf:"bytes,13,opt,name=approve_expression,json=approveExpression,proto3" json:"approve_expression,omitempty"` + ApproveExpression *ast.Expression `protobuf:"bytes,10,opt,name=approve_expression,json=approveExpression,proto3" json:"approve_expression,omitempty"` // The expression to be evaluated for rejection. - RejectExpression *ast.Expression `protobuf:"bytes,14,opt,name=reject_expression,json=rejectExpression,proto3" json:"reject_expression,omitempty"` + RejectExpression *ast.Expression `protobuf:"bytes,11,opt,name=reject_expression,json=rejectExpression,proto3" json:"reject_expression,omitempty"` // The votes accepted from the voting participants. - Votes []*ActionVote `protobuf:"bytes,15,rep,name=votes,proto3" json:"votes,omitempty"` + Votes []*ActionVote `protobuf:"bytes,12,rep,name=votes,proto3" json:"votes,omitempty"` } func (x *Action) Reset() { *x = Action{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_action_proto_msgTypes[1] + mi := &file_warden_act_v1beta1_action_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2205,7 +1439,7 @@ func (*Action) ProtoMessage() {} // Deprecated: Use Action.ProtoReflect.Descriptor instead. func (*Action) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_action_proto_rawDescGZIP(), []int{1} + return file_warden_act_v1beta1_action_proto_rawDescGZIP(), []int{0} } func (x *Action) GetId() uint64 { @@ -2215,13 +1449,6 @@ func (x *Action) GetId() uint64 { return 0 } -func (x *Action) GetApprovers() []*Approver { - if x != nil { - return x.Approvers - } - return nil -} - func (x *Action) GetStatus() ActionStatus { if x != nil { return x.Status @@ -2271,13 +1498,6 @@ func (x *Action) GetUpdatedAt() *timestamppb.Timestamp { return nil } -func (x *Action) GetTemplate() *Template { - if x != nil { - return x.Template - } - return nil -} - func (x *Action) GetMentions() []string { if x != nil { return x.Mentions @@ -2324,85 +1544,70 @@ var file_warden_act_v1beta1_action_proto_rawDesc = []byte{ 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x61, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, - 0x6f, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x70, 0x0a, 0x08, 0x41, 0x70, 0x70, - 0x72, 0x6f, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x4a, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 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, - 0x0a, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x64, 0x41, 0x74, 0x22, 0xe3, 0x05, 0x0a, 0x06, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, - 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, - 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x09, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, - 0x72, 0x73, 0x12, 0x38, 0x0a, 0x06, 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, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x03, - 0x6d, 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x03, 0x6d, 0x73, 0x67, 0x12, 0x2c, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, - 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x12, 0x48, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, - 0x74, 0x18, 0x09, 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, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x48, 0x0a, - 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 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, 0x09, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3e, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x74, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x6e, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x6e, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x4b, 0x0a, 0x12, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x5f, 0x65, - 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x73, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x70, - 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x61, - 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x49, 0x0a, 0x11, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x68, - 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x72, 0x65, 0x6a, 0x65, 0x63, - 0x74, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x05, 0x76, - 0x6f, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 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, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, - 0x73, 0x2a, 0x9b, 0x01, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x19, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, - 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, - 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x43, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x56, 0x4f, 0x4b, - 0x45, 0x44, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x04, 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, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 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, + 0x6f, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe7, 0x04, 0x0a, 0x06, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x06, 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, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, + 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, + 0x79, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x2c, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x06, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x25, + 0x0a, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x48, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x07, 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, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x48, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 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, 0x09, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x6e, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x6e, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4b, 0x0a, 0x12, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, + 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x45, + 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x11, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x70, + 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x73, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x72, 0x65, 0x6a, + 0x65, 0x63, 0x74, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, + 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 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, 0x52, 0x05, 0x76, 0x6f, + 0x74, 0x65, 0x73, 0x2a, 0x9b, 0x01, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x19, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, + 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x1b, + 0x0a, 0x17, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x41, + 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x56, + 0x4f, 0x4b, 0x45, 0x44, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, + 0x04, 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, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 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 ( @@ -2418,34 +1623,29 @@ func file_warden_act_v1beta1_action_proto_rawDescGZIP() []byte { } var file_warden_act_v1beta1_action_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_warden_act_v1beta1_action_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_warden_act_v1beta1_action_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_warden_act_v1beta1_action_proto_goTypes = []interface{}{ (ActionStatus)(0), // 0: warden.act.v1beta1.ActionStatus - (*Approver)(nil), // 1: warden.act.v1beta1.Approver - (*Action)(nil), // 2: warden.act.v1beta1.Action + (*Action)(nil), // 1: warden.act.v1beta1.Action + (*anypb.Any)(nil), // 2: google.protobuf.Any (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp - (*anypb.Any)(nil), // 4: google.protobuf.Any - (*Template)(nil), // 5: warden.act.v1beta1.Template - (*ast.Expression)(nil), // 6: shield.ast.Expression - (*ActionVote)(nil), // 7: warden.act.v1beta1.ActionVote + (*ast.Expression)(nil), // 4: shield.ast.Expression + (*ActionVote)(nil), // 5: warden.act.v1beta1.ActionVote } var file_warden_act_v1beta1_action_proto_depIdxs = []int32{ - 3, // 0: warden.act.v1beta1.Approver.approved_at:type_name -> google.protobuf.Timestamp - 1, // 1: warden.act.v1beta1.Action.approvers:type_name -> warden.act.v1beta1.Approver - 0, // 2: warden.act.v1beta1.Action.status:type_name -> warden.act.v1beta1.ActionStatus - 4, // 3: warden.act.v1beta1.Action.msg:type_name -> google.protobuf.Any - 4, // 4: warden.act.v1beta1.Action.result:type_name -> google.protobuf.Any - 3, // 5: warden.act.v1beta1.Action.created_at:type_name -> google.protobuf.Timestamp - 3, // 6: warden.act.v1beta1.Action.updated_at:type_name -> google.protobuf.Timestamp - 5, // 7: warden.act.v1beta1.Action.template:type_name -> warden.act.v1beta1.Template - 6, // 8: warden.act.v1beta1.Action.approve_expression:type_name -> shield.ast.Expression - 6, // 9: warden.act.v1beta1.Action.reject_expression:type_name -> shield.ast.Expression - 7, // 10: warden.act.v1beta1.Action.votes:type_name -> warden.act.v1beta1.ActionVote - 11, // [11:11] is the sub-list for method output_type - 11, // [11:11] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name + 0, // 0: warden.act.v1beta1.Action.status:type_name -> warden.act.v1beta1.ActionStatus + 2, // 1: warden.act.v1beta1.Action.msg:type_name -> google.protobuf.Any + 2, // 2: warden.act.v1beta1.Action.result:type_name -> google.protobuf.Any + 3, // 3: warden.act.v1beta1.Action.created_at:type_name -> google.protobuf.Timestamp + 3, // 4: warden.act.v1beta1.Action.updated_at:type_name -> google.protobuf.Timestamp + 4, // 5: warden.act.v1beta1.Action.approve_expression:type_name -> shield.ast.Expression + 4, // 6: warden.act.v1beta1.Action.reject_expression:type_name -> shield.ast.Expression + 5, // 7: warden.act.v1beta1.Action.votes:type_name -> warden.act.v1beta1.ActionVote + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name } func init() { file_warden_act_v1beta1_action_proto_init() } @@ -2457,18 +1657,6 @@ func file_warden_act_v1beta1_action_proto_init() { file_warden_act_v1beta1_action_vote_proto_init() if !protoimpl.UnsafeEnabled { file_warden_act_v1beta1_action_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Approver); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_warden_act_v1beta1_action_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Action); i { case 0: return &v.state @@ -2487,7 +1675,7 @@ func file_warden_act_v1beta1_action_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_warden_act_v1beta1_action_proto_rawDesc, NumEnums: 1, - NumMessages: 2, + NumMessages: 1, NumExtensions: 0, NumServices: 0, }, diff --git a/api/warden/act/v1beta1/events.pulsar.go b/api/warden/act/v1beta1/events.pulsar.go index e7ee0b21c..90e9df9b4 100644 --- a/api/warden/act/v1beta1/events.pulsar.go +++ b/api/warden/act/v1beta1/events.pulsar.go @@ -1352,474 +1352,6 @@ func (x *fastReflection_EventCreateAction) ProtoMethods() *protoiface.Methods { } } -var ( - md_EventApproveAction protoreflect.MessageDescriptor - fd_EventApproveAction_id protoreflect.FieldDescriptor - fd_EventApproveAction_approver protoreflect.FieldDescriptor -) - -func init() { - file_warden_act_v1beta1_events_proto_init() - md_EventApproveAction = File_warden_act_v1beta1_events_proto.Messages().ByName("EventApproveAction") - fd_EventApproveAction_id = md_EventApproveAction.Fields().ByName("id") - fd_EventApproveAction_approver = md_EventApproveAction.Fields().ByName("approver") -} - -var _ protoreflect.Message = (*fastReflection_EventApproveAction)(nil) - -type fastReflection_EventApproveAction EventApproveAction - -func (x *EventApproveAction) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventApproveAction)(x) -} - -func (x *EventApproveAction) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_events_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventApproveAction_messageType fastReflection_EventApproveAction_messageType -var _ protoreflect.MessageType = fastReflection_EventApproveAction_messageType{} - -type fastReflection_EventApproveAction_messageType struct{} - -func (x fastReflection_EventApproveAction_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventApproveAction)(nil) -} -func (x fastReflection_EventApproveAction_messageType) New() protoreflect.Message { - return new(fastReflection_EventApproveAction) -} -func (x fastReflection_EventApproveAction_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventApproveAction -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventApproveAction) Descriptor() protoreflect.MessageDescriptor { - return md_EventApproveAction -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventApproveAction) Type() protoreflect.MessageType { - return _fastReflection_EventApproveAction_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventApproveAction) New() protoreflect.Message { - return new(fastReflection_EventApproveAction) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventApproveAction) Interface() protoreflect.ProtoMessage { - return (*EventApproveAction)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventApproveAction) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_EventApproveAction_id, value) { - return - } - } - if x.Approver != "" { - value := protoreflect.ValueOfString(x.Approver) - if !f(fd_EventApproveAction_approver, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventApproveAction) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "warden.act.v1beta1.EventApproveAction.id": - return x.Id != uint64(0) - case "warden.act.v1beta1.EventApproveAction.approver": - return x.Approver != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.EventApproveAction does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventApproveAction) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "warden.act.v1beta1.EventApproveAction.id": - x.Id = uint64(0) - case "warden.act.v1beta1.EventApproveAction.approver": - x.Approver = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.EventApproveAction does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventApproveAction) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "warden.act.v1beta1.EventApproveAction.id": - value := x.Id - return protoreflect.ValueOfUint64(value) - case "warden.act.v1beta1.EventApproveAction.approver": - value := x.Approver - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.EventApproveAction does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventApproveAction) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "warden.act.v1beta1.EventApproveAction.id": - x.Id = value.Uint() - case "warden.act.v1beta1.EventApproveAction.approver": - x.Approver = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.EventApproveAction does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventApproveAction) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "warden.act.v1beta1.EventApproveAction.id": - panic(fmt.Errorf("field id of message warden.act.v1beta1.EventApproveAction is not mutable")) - case "warden.act.v1beta1.EventApproveAction.approver": - panic(fmt.Errorf("field approver of message warden.act.v1beta1.EventApproveAction is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.EventApproveAction does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventApproveAction) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "warden.act.v1beta1.EventApproveAction.id": - return protoreflect.ValueOfUint64(uint64(0)) - case "warden.act.v1beta1.EventApproveAction.approver": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.EventApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.EventApproveAction does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventApproveAction) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.EventApproveAction", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventApproveAction) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventApproveAction) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventApproveAction) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventApproveAction) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventApproveAction) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) - } - l = len(x.Approver) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventApproveAction) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Approver) > 0 { - i -= len(x.Approver) - copy(dAtA[i:], x.Approver) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Approver))) - i-- - dAtA[i] = 0x12 - } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventApproveAction) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventApproveAction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventApproveAction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - x.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Approver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Approver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - var ( md_EventActionVoted protoreflect.MessageDescriptor fd_EventActionVoted_id protoreflect.FieldDescriptor @@ -1844,7 +1376,7 @@ func (x *EventActionVoted) ProtoReflect() protoreflect.Message { } func (x *EventActionVoted) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_events_proto_msgTypes[4] + mi := &file_warden_act_v1beta1_events_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2360,7 +1892,7 @@ func (x *EventActionStateChange) ProtoReflect() protoreflect.Message { } func (x *EventActionStateChange) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_events_proto_msgTypes[5] + mi := &file_warden_act_v1beta1_events_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2856,7 +2388,7 @@ func (x *EventActionPruned) ProtoReflect() protoreflect.Message { } func (x *EventActionPruned) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_events_proto_msgTypes[6] + mi := &file_warden_act_v1beta1_events_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3382,52 +2914,6 @@ func (x *EventCreateAction) GetCreator() string { return "" } -// EventApproveAction is emitted when an Action is approved -type EventApproveAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id of action - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - // address of the account that approved the action - Approver string `protobuf:"bytes,2,opt,name=approver,proto3" json:"approver,omitempty"` -} - -func (x *EventApproveAction) Reset() { - *x = EventApproveAction{} - if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_events_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventApproveAction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventApproveAction) ProtoMessage() {} - -// Deprecated: Use EventApproveAction.ProtoReflect.Descriptor instead. -func (*EventApproveAction) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_events_proto_rawDescGZIP(), []int{3} -} - -func (x *EventApproveAction) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *EventApproveAction) GetApprover() string { - if x != nil { - return x.Approver - } - return "" -} - // EventActionVoted is emitted when an Action is voted on type EventActionVoted struct { state protoimpl.MessageState @@ -3445,7 +2931,7 @@ type EventActionVoted struct { func (x *EventActionVoted) Reset() { *x = EventActionVoted{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_events_proto_msgTypes[4] + mi := &file_warden_act_v1beta1_events_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3459,7 +2945,7 @@ func (*EventActionVoted) ProtoMessage() {} // Deprecated: Use EventActionVoted.ProtoReflect.Descriptor instead. func (*EventActionVoted) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_events_proto_rawDescGZIP(), []int{4} + return file_warden_act_v1beta1_events_proto_rawDescGZIP(), []int{3} } func (x *EventActionVoted) GetId() uint64 { @@ -3500,7 +2986,7 @@ type EventActionStateChange struct { func (x *EventActionStateChange) Reset() { *x = EventActionStateChange{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_events_proto_msgTypes[5] + mi := &file_warden_act_v1beta1_events_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3514,7 +3000,7 @@ func (*EventActionStateChange) ProtoMessage() {} // Deprecated: Use EventActionStateChange.ProtoReflect.Descriptor instead. func (*EventActionStateChange) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_events_proto_rawDescGZIP(), []int{5} + return file_warden_act_v1beta1_events_proto_rawDescGZIP(), []int{4} } func (x *EventActionStateChange) GetId() uint64 { @@ -3552,7 +3038,7 @@ type EventActionPruned struct { func (x *EventActionPruned) Reset() { *x = EventActionPruned{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_events_proto_msgTypes[6] + mi := &file_warden_act_v1beta1_events_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3566,7 +3052,7 @@ func (*EventActionPruned) ProtoMessage() {} // Deprecated: Use EventActionPruned.ProtoReflect.Descriptor instead. func (*EventActionPruned) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_events_proto_rawDescGZIP(), []int{6} + return file_warden_act_v1beta1_events_proto_rawDescGZIP(), []int{5} } func (x *EventActionPruned) GetId() uint64 { @@ -3597,47 +3083,43 @@ var file_warden_act_v1beta1_events_proto_rawDesc = []byte{ 0x61, 0x74, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x40, 0x0a, 0x12, 0x45, 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, 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, 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, + 0x74, 0x6f, 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, 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 ( @@ -3652,22 +3134,21 @@ func file_warden_act_v1beta1_events_proto_rawDescGZIP() []byte { return file_warden_act_v1beta1_events_proto_rawDescData } -var file_warden_act_v1beta1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_warden_act_v1beta1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_warden_act_v1beta1_events_proto_goTypes = []interface{}{ (*EventCreateTemplate)(nil), // 0: warden.act.v1beta1.EventCreateTemplate (*EventUpdateTemplate)(nil), // 1: warden.act.v1beta1.EventUpdateTemplate (*EventCreateAction)(nil), // 2: warden.act.v1beta1.EventCreateAction - (*EventApproveAction)(nil), // 3: warden.act.v1beta1.EventApproveAction - (*EventActionVoted)(nil), // 4: warden.act.v1beta1.EventActionVoted - (*EventActionStateChange)(nil), // 5: warden.act.v1beta1.EventActionStateChange - (*EventActionPruned)(nil), // 6: warden.act.v1beta1.EventActionPruned - (ActionVoteType)(0), // 7: warden.act.v1beta1.ActionVoteType - (ActionStatus)(0), // 8: warden.act.v1beta1.ActionStatus + (*EventActionVoted)(nil), // 3: warden.act.v1beta1.EventActionVoted + (*EventActionStateChange)(nil), // 4: warden.act.v1beta1.EventActionStateChange + (*EventActionPruned)(nil), // 5: warden.act.v1beta1.EventActionPruned + (ActionVoteType)(0), // 6: warden.act.v1beta1.ActionVoteType + (ActionStatus)(0), // 7: warden.act.v1beta1.ActionStatus } var file_warden_act_v1beta1_events_proto_depIdxs = []int32{ - 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 + 6, // 0: warden.act.v1beta1.EventActionVoted.vote_type:type_name -> warden.act.v1beta1.ActionVoteType + 7, // 1: warden.act.v1beta1.EventActionStateChange.previous_status:type_name -> warden.act.v1beta1.ActionStatus + 7, // 2: warden.act.v1beta1.EventActionStateChange.new_status:type_name -> warden.act.v1beta1.ActionStatus 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name @@ -3720,18 +3201,6 @@ func file_warden_act_v1beta1_events_proto_init() { } } file_warden_act_v1beta1_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventApproveAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_warden_act_v1beta1_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventActionVoted); i { case 0: return &v.state @@ -3743,7 +3212,7 @@ func file_warden_act_v1beta1_events_proto_init() { return nil } } - file_warden_act_v1beta1_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_warden_act_v1beta1_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventActionStateChange); i { case 0: return &v.state @@ -3755,7 +3224,7 @@ func file_warden_act_v1beta1_events_proto_init() { return nil } } - file_warden_act_v1beta1_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_warden_act_v1beta1_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventActionPruned); i { case 0: return &v.state @@ -3774,7 +3243,7 @@ func file_warden_act_v1beta1_events_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_warden_act_v1beta1_events_proto_rawDesc, NumEnums: 0, - NumMessages: 7, + NumMessages: 6, NumExtensions: 0, NumServices: 0, }, diff --git a/api/warden/act/v1beta1/tx.pulsar.go b/api/warden/act/v1beta1/tx.pulsar.go index 693cca5c5..eddbc94a0 100644 --- a/api/warden/act/v1beta1/tx.pulsar.go +++ b/api/warden/act/v1beta1/tx.pulsar.go @@ -1952,894 +1952,6 @@ func (x *fastReflection_MsgNewActionResponse) ProtoMethods() *protoiface.Methods } } -var ( - md_MsgApproveAction protoreflect.MessageDescriptor - fd_MsgApproveAction_creator protoreflect.FieldDescriptor - fd_MsgApproveAction_action_id protoreflect.FieldDescriptor -) - -func init() { - file_warden_act_v1beta1_tx_proto_init() - md_MsgApproveAction = File_warden_act_v1beta1_tx_proto.Messages().ByName("MsgApproveAction") - fd_MsgApproveAction_creator = md_MsgApproveAction.Fields().ByName("creator") - fd_MsgApproveAction_action_id = md_MsgApproveAction.Fields().ByName("action_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgApproveAction)(nil) - -type fastReflection_MsgApproveAction MsgApproveAction - -func (x *MsgApproveAction) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgApproveAction)(x) -} - -func (x *MsgApproveAction) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgApproveAction_messageType fastReflection_MsgApproveAction_messageType -var _ protoreflect.MessageType = fastReflection_MsgApproveAction_messageType{} - -type fastReflection_MsgApproveAction_messageType struct{} - -func (x fastReflection_MsgApproveAction_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgApproveAction)(nil) -} -func (x fastReflection_MsgApproveAction_messageType) New() protoreflect.Message { - return new(fastReflection_MsgApproveAction) -} -func (x fastReflection_MsgApproveAction_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgApproveAction -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgApproveAction) Descriptor() protoreflect.MessageDescriptor { - return md_MsgApproveAction -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgApproveAction) Type() protoreflect.MessageType { - return _fastReflection_MsgApproveAction_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgApproveAction) New() protoreflect.Message { - return new(fastReflection_MsgApproveAction) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgApproveAction) Interface() protoreflect.ProtoMessage { - return (*MsgApproveAction)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgApproveAction) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgApproveAction_creator, value) { - return - } - } - if x.ActionId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ActionId) - if !f(fd_MsgApproveAction_action_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgApproveAction) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "warden.act.v1beta1.MsgApproveAction.creator": - return x.Creator != "" - case "warden.act.v1beta1.MsgApproveAction.action_id": - return x.ActionId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveAction does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgApproveAction) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "warden.act.v1beta1.MsgApproveAction.creator": - x.Creator = "" - case "warden.act.v1beta1.MsgApproveAction.action_id": - x.ActionId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveAction does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgApproveAction) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "warden.act.v1beta1.MsgApproveAction.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "warden.act.v1beta1.MsgApproveAction.action_id": - value := x.ActionId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveAction does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgApproveAction) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "warden.act.v1beta1.MsgApproveAction.creator": - x.Creator = value.Interface().(string) - case "warden.act.v1beta1.MsgApproveAction.action_id": - x.ActionId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveAction does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgApproveAction) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "warden.act.v1beta1.MsgApproveAction.creator": - panic(fmt.Errorf("field creator of message warden.act.v1beta1.MsgApproveAction is not mutable")) - case "warden.act.v1beta1.MsgApproveAction.action_id": - panic(fmt.Errorf("field action_id of message warden.act.v1beta1.MsgApproveAction is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveAction does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgApproveAction) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "warden.act.v1beta1.MsgApproveAction.creator": - return protoreflect.ValueOfString("") - case "warden.act.v1beta1.MsgApproveAction.action_id": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveAction")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveAction does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgApproveAction) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.MsgApproveAction", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgApproveAction) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgApproveAction) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgApproveAction) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgApproveAction) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgApproveAction) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.ActionId != 0 { - n += 1 + runtime.Sov(uint64(x.ActionId)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgApproveAction) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ActionId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ActionId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgApproveAction) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgApproveAction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgApproveAction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActionId", wireType) - } - x.ActionId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ActionId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgApproveActionResponse protoreflect.MessageDescriptor - fd_MsgApproveActionResponse_status protoreflect.FieldDescriptor -) - -func init() { - file_warden_act_v1beta1_tx_proto_init() - md_MsgApproveActionResponse = File_warden_act_v1beta1_tx_proto.Messages().ByName("MsgApproveActionResponse") - fd_MsgApproveActionResponse_status = md_MsgApproveActionResponse.Fields().ByName("status") -} - -var _ protoreflect.Message = (*fastReflection_MsgApproveActionResponse)(nil) - -type fastReflection_MsgApproveActionResponse MsgApproveActionResponse - -func (x *MsgApproveActionResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgApproveActionResponse)(x) -} - -func (x *MsgApproveActionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgApproveActionResponse_messageType fastReflection_MsgApproveActionResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgApproveActionResponse_messageType{} - -type fastReflection_MsgApproveActionResponse_messageType struct{} - -func (x fastReflection_MsgApproveActionResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgApproveActionResponse)(nil) -} -func (x fastReflection_MsgApproveActionResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgApproveActionResponse) -} -func (x fastReflection_MsgApproveActionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgApproveActionResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgApproveActionResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgApproveActionResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgApproveActionResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgApproveActionResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgApproveActionResponse) New() protoreflect.Message { - return new(fastReflection_MsgApproveActionResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgApproveActionResponse) Interface() protoreflect.ProtoMessage { - return (*MsgApproveActionResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgApproveActionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Status != "" { - value := protoreflect.ValueOfString(x.Status) - if !f(fd_MsgApproveActionResponse_status, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgApproveActionResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "warden.act.v1beta1.MsgApproveActionResponse.status": - return x.Status != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveActionResponse")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveActionResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgApproveActionResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "warden.act.v1beta1.MsgApproveActionResponse.status": - x.Status = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveActionResponse")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveActionResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgApproveActionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "warden.act.v1beta1.MsgApproveActionResponse.status": - value := x.Status - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveActionResponse")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveActionResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgApproveActionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "warden.act.v1beta1.MsgApproveActionResponse.status": - x.Status = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveActionResponse")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveActionResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgApproveActionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "warden.act.v1beta1.MsgApproveActionResponse.status": - panic(fmt.Errorf("field status of message warden.act.v1beta1.MsgApproveActionResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveActionResponse")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveActionResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgApproveActionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "warden.act.v1beta1.MsgApproveActionResponse.status": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.act.v1beta1.MsgApproveActionResponse")) - } - panic(fmt.Errorf("message warden.act.v1beta1.MsgApproveActionResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgApproveActionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in warden.act.v1beta1.MsgApproveActionResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgApproveActionResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgApproveActionResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgApproveActionResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgApproveActionResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgApproveActionResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Status) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgApproveActionResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Status) > 0 { - i -= len(x.Status) - copy(dAtA[i:], x.Status) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Status))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgApproveActionResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgApproveActionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgApproveActionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Status = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - var ( md_MsgNewTemplate protoreflect.MessageDescriptor fd_MsgNewTemplate_creator protoreflect.FieldDescriptor @@ -2864,7 +1976,7 @@ func (x *MsgNewTemplate) ProtoReflect() protoreflect.Message { } func (x *MsgNewTemplate) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[6] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3408,7 +2520,7 @@ func (x *MsgNewTemplateResponse) ProtoReflect() protoreflect.Message { } func (x *MsgNewTemplateResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[7] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3818,7 +2930,7 @@ func (x *MsgUpdateTemplate) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateTemplate) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[8] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4406,7 +3518,7 @@ func (x *MsgUpdateTemplateResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateTemplateResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[9] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4766,7 +3878,7 @@ func (x *MsgRevokeAction) ProtoReflect() protoreflect.Message { } func (x *MsgRevokeAction) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[10] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5230,7 +4342,7 @@ func (x *MsgRevokeActionResponse) ProtoReflect() protoreflect.Message { } func (x *MsgRevokeActionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[11] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5590,7 +4702,7 @@ func (x *MsgCheckAction) ProtoReflect() protoreflect.Message { } func (x *MsgCheckAction) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[12] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6056,7 +5168,7 @@ func (x *MsgCheckActionResponse) ProtoReflect() protoreflect.Message { } func (x *MsgCheckActionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[13] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6480,7 +5592,7 @@ func (x *MsgVoteForAction) ProtoReflect() protoreflect.Message { } func (x *MsgVoteForAction) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[14] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6992,7 +6104,7 @@ func (x *MsgVoteForActionResponse) ProtoReflect() protoreflect.Message { } func (x *MsgVoteForActionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[15] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7587,84 +6699,6 @@ func (x *MsgNewActionResponse) GetId() uint64 { return 0 } -type MsgApproveAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ActionId uint64 `protobuf:"varint,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"` -} - -func (x *MsgApproveAction) Reset() { - *x = MsgApproveAction{} - if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgApproveAction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgApproveAction) ProtoMessage() {} - -// Deprecated: Use MsgApproveAction.ProtoReflect.Descriptor instead. -func (*MsgApproveAction) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{4} -} - -func (x *MsgApproveAction) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgApproveAction) GetActionId() uint64 { - if x != nil { - return x.ActionId - } - return 0 -} - -type MsgApproveActionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *MsgApproveActionResponse) Reset() { - *x = MsgApproveActionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgApproveActionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgApproveActionResponse) ProtoMessage() {} - -// Deprecated: Use MsgApproveActionResponse.ProtoReflect.Descriptor instead. -func (*MsgApproveActionResponse) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{5} -} - -func (x *MsgApproveActionResponse) GetStatus() string { - if x != nil { - return x.Status - } - return "" -} - type MsgNewTemplate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -7678,7 +6712,7 @@ type MsgNewTemplate struct { func (x *MsgNewTemplate) Reset() { *x = MsgNewTemplate{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[6] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7692,7 +6726,7 @@ func (*MsgNewTemplate) ProtoMessage() {} // Deprecated: Use MsgNewTemplate.ProtoReflect.Descriptor instead. func (*MsgNewTemplate) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{6} + return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{4} } func (x *MsgNewTemplate) GetCreator() string { @@ -7727,7 +6761,7 @@ type MsgNewTemplateResponse struct { func (x *MsgNewTemplateResponse) Reset() { *x = MsgNewTemplateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[7] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7741,7 +6775,7 @@ func (*MsgNewTemplateResponse) ProtoMessage() {} // Deprecated: Use MsgNewTemplateResponse.ProtoReflect.Descriptor instead. func (*MsgNewTemplateResponse) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{7} + return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{5} } func (x *MsgNewTemplateResponse) GetId() uint64 { @@ -7765,7 +6799,7 @@ type MsgUpdateTemplate struct { func (x *MsgUpdateTemplate) Reset() { *x = MsgUpdateTemplate{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[8] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7779,7 +6813,7 @@ func (*MsgUpdateTemplate) ProtoMessage() {} // Deprecated: Use MsgUpdateTemplate.ProtoReflect.Descriptor instead. func (*MsgUpdateTemplate) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{8} + return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{6} } func (x *MsgUpdateTemplate) GetCreator() string { @@ -7819,7 +6853,7 @@ type MsgUpdateTemplateResponse struct { func (x *MsgUpdateTemplateResponse) Reset() { *x = MsgUpdateTemplateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[9] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7833,7 +6867,7 @@ func (*MsgUpdateTemplateResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateTemplateResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateTemplateResponse) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{9} + return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{7} } type MsgRevokeAction struct { @@ -7848,7 +6882,7 @@ type MsgRevokeAction struct { func (x *MsgRevokeAction) Reset() { *x = MsgRevokeAction{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[10] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7862,7 +6896,7 @@ func (*MsgRevokeAction) ProtoMessage() {} // Deprecated: Use MsgRevokeAction.ProtoReflect.Descriptor instead. func (*MsgRevokeAction) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{10} + return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{8} } func (x *MsgRevokeAction) GetCreator() string { @@ -7888,7 +6922,7 @@ type MsgRevokeActionResponse struct { func (x *MsgRevokeActionResponse) Reset() { *x = MsgRevokeActionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[11] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7902,7 +6936,7 @@ func (*MsgRevokeActionResponse) ProtoMessage() {} // Deprecated: Use MsgRevokeActionResponse.ProtoReflect.Descriptor instead. func (*MsgRevokeActionResponse) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{11} + return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{9} } type MsgCheckAction struct { @@ -7917,7 +6951,7 @@ type MsgCheckAction struct { func (x *MsgCheckAction) Reset() { *x = MsgCheckAction{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[12] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7931,7 +6965,7 @@ func (*MsgCheckAction) ProtoMessage() {} // Deprecated: Use MsgCheckAction.ProtoReflect.Descriptor instead. func (*MsgCheckAction) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{12} + return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{10} } func (x *MsgCheckAction) GetCreator() string { @@ -7959,7 +6993,7 @@ type MsgCheckActionResponse struct { func (x *MsgCheckActionResponse) Reset() { *x = MsgCheckActionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[13] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7973,7 +7007,7 @@ func (*MsgCheckActionResponse) ProtoMessage() {} // Deprecated: Use MsgCheckActionResponse.ProtoReflect.Descriptor instead. func (*MsgCheckActionResponse) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{13} + return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{11} } func (x *MsgCheckActionResponse) GetStatus() string { @@ -7996,7 +7030,7 @@ type MsgVoteForAction struct { func (x *MsgVoteForAction) Reset() { *x = MsgVoteForAction{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[14] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8010,7 +7044,7 @@ func (*MsgVoteForAction) ProtoMessage() {} // Deprecated: Use MsgVoteForAction.ProtoReflect.Descriptor instead. func (*MsgVoteForAction) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{14} + return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{12} } func (x *MsgVoteForAction) GetParticipant() string { @@ -8045,7 +7079,7 @@ type MsgVoteForActionResponse struct { func (x *MsgVoteForActionResponse) Reset() { *x = MsgVoteForActionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_warden_act_v1beta1_tx_proto_msgTypes[15] + mi := &file_warden_act_v1beta1_tx_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8059,7 +7093,7 @@ func (*MsgVoteForActionResponse) ProtoMessage() {} // Deprecated: Use MsgVoteForActionResponse.ProtoReflect.Descriptor instead. func (*MsgVoteForActionResponse) Descriptor() ([]byte, []int) { - return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{15} + return file_warden_act_v1beta1_tx_proto_rawDescGZIP(), []int{13} } func (x *MsgVoteForActionResponse) GetStatus() string { @@ -8122,128 +7156,113 @@ var file_warden_act_v1beta1_tx_proto_rawDesc = []byte{ 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x26, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, - 0x22, 0x57, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 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, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, - 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x32, 0x0a, 0x18, 0x4d, 0x73, 0x67, - 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x22, 0x6c, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, + 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7f, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, + 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x56, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, + 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 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, + 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x19, + 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x0a, 0x0e, 0x4d, 0x73, 0x67, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 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, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 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, 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, 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, 0x22, 0x6c, 0x0a, - 0x0e, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, - 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, - 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x16, 0x4d, - 0x73, 0x67, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7f, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x56, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 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, 0x3a, 0x0c, 0x82, - 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x19, 0x0a, 0x17, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x43, 0x68, 0x65, - 0x63, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 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, 0x3a, - 0x0c, 0x82, 0xe7, 0xb0, 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, - 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, 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, 0x99, 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, 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, 0x5d, 0x0a, 0x0b, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 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, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, - 0x6c, 0x61, 0x74, 0x65, 0x1a, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0xb4, 0x05, + 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, 0x4d, 0x73, 0x67, 0x4e, 0x65, 0x77, - 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x66, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x12, 0x25, 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, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x1a, 0x2d, 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, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 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, 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, + 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, 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, + 0x5d, 0x0a, 0x0b, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 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, 0x4e, 0x65, 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 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, 0x4e, 0x65, 0x77, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, + 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x12, 0x25, 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, 0x54, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x1a, 0x2d, 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, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 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, 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, + 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 ( @@ -8258,50 +7277,46 @@ func file_warden_act_v1beta1_tx_proto_rawDescGZIP() []byte { return file_warden_act_v1beta1_tx_proto_rawDescData } -var file_warden_act_v1beta1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_warden_act_v1beta1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 14) var file_warden_act_v1beta1_tx_proto_goTypes = []interface{}{ (*MsgUpdateParams)(nil), // 0: warden.act.v1beta1.MsgUpdateParams (*MsgUpdateParamsResponse)(nil), // 1: warden.act.v1beta1.MsgUpdateParamsResponse (*MsgNewAction)(nil), // 2: warden.act.v1beta1.MsgNewAction (*MsgNewActionResponse)(nil), // 3: warden.act.v1beta1.MsgNewActionResponse - (*MsgApproveAction)(nil), // 4: warden.act.v1beta1.MsgApproveAction - (*MsgApproveActionResponse)(nil), // 5: warden.act.v1beta1.MsgApproveActionResponse - (*MsgNewTemplate)(nil), // 6: warden.act.v1beta1.MsgNewTemplate - (*MsgNewTemplateResponse)(nil), // 7: warden.act.v1beta1.MsgNewTemplateResponse - (*MsgUpdateTemplate)(nil), // 8: warden.act.v1beta1.MsgUpdateTemplate - (*MsgUpdateTemplateResponse)(nil), // 9: warden.act.v1beta1.MsgUpdateTemplateResponse - (*MsgRevokeAction)(nil), // 10: warden.act.v1beta1.MsgRevokeAction - (*MsgRevokeActionResponse)(nil), // 11: warden.act.v1beta1.MsgRevokeActionResponse - (*MsgCheckAction)(nil), // 12: warden.act.v1beta1.MsgCheckAction - (*MsgCheckActionResponse)(nil), // 13: warden.act.v1beta1.MsgCheckActionResponse - (*MsgVoteForAction)(nil), // 14: warden.act.v1beta1.MsgVoteForAction - (*MsgVoteForActionResponse)(nil), // 15: warden.act.v1beta1.MsgVoteForActionResponse - (*Params)(nil), // 16: warden.act.v1beta1.Params - (*anypb.Any)(nil), // 17: google.protobuf.Any - (ActionVoteType)(0), // 18: warden.act.v1beta1.ActionVoteType + (*MsgNewTemplate)(nil), // 4: warden.act.v1beta1.MsgNewTemplate + (*MsgNewTemplateResponse)(nil), // 5: warden.act.v1beta1.MsgNewTemplateResponse + (*MsgUpdateTemplate)(nil), // 6: warden.act.v1beta1.MsgUpdateTemplate + (*MsgUpdateTemplateResponse)(nil), // 7: warden.act.v1beta1.MsgUpdateTemplateResponse + (*MsgRevokeAction)(nil), // 8: warden.act.v1beta1.MsgRevokeAction + (*MsgRevokeActionResponse)(nil), // 9: warden.act.v1beta1.MsgRevokeActionResponse + (*MsgCheckAction)(nil), // 10: warden.act.v1beta1.MsgCheckAction + (*MsgCheckActionResponse)(nil), // 11: warden.act.v1beta1.MsgCheckActionResponse + (*MsgVoteForAction)(nil), // 12: warden.act.v1beta1.MsgVoteForAction + (*MsgVoteForActionResponse)(nil), // 13: warden.act.v1beta1.MsgVoteForActionResponse + (*Params)(nil), // 14: warden.act.v1beta1.Params + (*anypb.Any)(nil), // 15: google.protobuf.Any + (ActionVoteType)(0), // 16: warden.act.v1beta1.ActionVoteType } var file_warden_act_v1beta1_tx_proto_depIdxs = []int32{ - 16, // 0: warden.act.v1beta1.MsgUpdateParams.params:type_name -> warden.act.v1beta1.Params - 17, // 1: warden.act.v1beta1.MsgNewAction.message:type_name -> google.protobuf.Any - 18, // 2: warden.act.v1beta1.MsgVoteForAction.vote_type:type_name -> warden.act.v1beta1.ActionVoteType + 14, // 0: warden.act.v1beta1.MsgUpdateParams.params:type_name -> warden.act.v1beta1.Params + 15, // 1: warden.act.v1beta1.MsgNewAction.message:type_name -> google.protobuf.Any + 16, // 2: warden.act.v1beta1.MsgVoteForAction.vote_type:type_name -> warden.act.v1beta1.ActionVoteType 0, // 3: warden.act.v1beta1.Msg.UpdateParams:input_type -> warden.act.v1beta1.MsgUpdateParams 2, // 4: warden.act.v1beta1.Msg.NewAction:input_type -> warden.act.v1beta1.MsgNewAction - 4, // 5: warden.act.v1beta1.Msg.ApproveAction:input_type -> warden.act.v1beta1.MsgApproveAction - 12, // 6: warden.act.v1beta1.Msg.CheckAction:input_type -> warden.act.v1beta1.MsgCheckAction - 6, // 7: warden.act.v1beta1.Msg.NewTemplate:input_type -> warden.act.v1beta1.MsgNewTemplate - 8, // 8: warden.act.v1beta1.Msg.UpdateTemplate:input_type -> warden.act.v1beta1.MsgUpdateTemplate - 10, // 9: warden.act.v1beta1.Msg.RevokeAction:input_type -> warden.act.v1beta1.MsgRevokeAction - 14, // 10: warden.act.v1beta1.Msg.VoteForAction:input_type -> warden.act.v1beta1.MsgVoteForAction - 1, // 11: warden.act.v1beta1.Msg.UpdateParams:output_type -> warden.act.v1beta1.MsgUpdateParamsResponse - 3, // 12: warden.act.v1beta1.Msg.NewAction:output_type -> warden.act.v1beta1.MsgNewActionResponse - 5, // 13: warden.act.v1beta1.Msg.ApproveAction:output_type -> warden.act.v1beta1.MsgApproveActionResponse - 13, // 14: warden.act.v1beta1.Msg.CheckAction:output_type -> warden.act.v1beta1.MsgCheckActionResponse - 7, // 15: warden.act.v1beta1.Msg.NewTemplate:output_type -> warden.act.v1beta1.MsgNewTemplateResponse - 9, // 16: warden.act.v1beta1.Msg.UpdateTemplate:output_type -> warden.act.v1beta1.MsgUpdateTemplateResponse - 11, // 17: warden.act.v1beta1.Msg.RevokeAction:output_type -> warden.act.v1beta1.MsgRevokeActionResponse - 15, // 18: warden.act.v1beta1.Msg.VoteForAction:output_type -> warden.act.v1beta1.MsgVoteForActionResponse - 11, // [11:19] is the sub-list for method output_type - 3, // [3:11] is the sub-list for method input_type + 10, // 5: warden.act.v1beta1.Msg.CheckAction:input_type -> warden.act.v1beta1.MsgCheckAction + 4, // 6: warden.act.v1beta1.Msg.NewTemplate:input_type -> warden.act.v1beta1.MsgNewTemplate + 6, // 7: warden.act.v1beta1.Msg.UpdateTemplate:input_type -> warden.act.v1beta1.MsgUpdateTemplate + 8, // 8: warden.act.v1beta1.Msg.RevokeAction:input_type -> warden.act.v1beta1.MsgRevokeAction + 12, // 9: warden.act.v1beta1.Msg.VoteForAction:input_type -> warden.act.v1beta1.MsgVoteForAction + 1, // 10: warden.act.v1beta1.Msg.UpdateParams:output_type -> warden.act.v1beta1.MsgUpdateParamsResponse + 3, // 11: warden.act.v1beta1.Msg.NewAction:output_type -> warden.act.v1beta1.MsgNewActionResponse + 11, // 12: warden.act.v1beta1.Msg.CheckAction:output_type -> warden.act.v1beta1.MsgCheckActionResponse + 5, // 13: warden.act.v1beta1.Msg.NewTemplate:output_type -> warden.act.v1beta1.MsgNewTemplateResponse + 7, // 14: warden.act.v1beta1.Msg.UpdateTemplate:output_type -> warden.act.v1beta1.MsgUpdateTemplateResponse + 9, // 15: warden.act.v1beta1.Msg.RevokeAction:output_type -> warden.act.v1beta1.MsgRevokeActionResponse + 13, // 16: warden.act.v1beta1.Msg.VoteForAction:output_type -> warden.act.v1beta1.MsgVoteForActionResponse + 10, // [10:17] is the sub-list for method output_type + 3, // [3:10] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee 0, // [0:3] is the sub-list for field type_name @@ -8364,30 +7379,6 @@ func file_warden_act_v1beta1_tx_proto_init() { } } file_warden_act_v1beta1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgApproveAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_warden_act_v1beta1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgApproveActionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_warden_act_v1beta1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgNewTemplate); i { case 0: return &v.state @@ -8399,7 +7390,7 @@ func file_warden_act_v1beta1_tx_proto_init() { return nil } } - file_warden_act_v1beta1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_warden_act_v1beta1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgNewTemplateResponse); i { case 0: return &v.state @@ -8411,7 +7402,7 @@ func file_warden_act_v1beta1_tx_proto_init() { return nil } } - file_warden_act_v1beta1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_warden_act_v1beta1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateTemplate); i { case 0: return &v.state @@ -8423,7 +7414,7 @@ func file_warden_act_v1beta1_tx_proto_init() { return nil } } - file_warden_act_v1beta1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_warden_act_v1beta1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateTemplateResponse); i { case 0: return &v.state @@ -8435,7 +7426,7 @@ func file_warden_act_v1beta1_tx_proto_init() { return nil } } - file_warden_act_v1beta1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_warden_act_v1beta1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRevokeAction); i { case 0: return &v.state @@ -8447,7 +7438,7 @@ func file_warden_act_v1beta1_tx_proto_init() { return nil } } - file_warden_act_v1beta1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_warden_act_v1beta1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRevokeActionResponse); i { case 0: return &v.state @@ -8459,7 +7450,7 @@ func file_warden_act_v1beta1_tx_proto_init() { return nil } } - file_warden_act_v1beta1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_warden_act_v1beta1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCheckAction); i { case 0: return &v.state @@ -8471,7 +7462,7 @@ func file_warden_act_v1beta1_tx_proto_init() { return nil } } - file_warden_act_v1beta1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_warden_act_v1beta1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCheckActionResponse); i { case 0: return &v.state @@ -8483,7 +7474,7 @@ func file_warden_act_v1beta1_tx_proto_init() { return nil } } - file_warden_act_v1beta1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_warden_act_v1beta1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgVoteForAction); i { case 0: return &v.state @@ -8495,7 +7486,7 @@ func file_warden_act_v1beta1_tx_proto_init() { return nil } } - file_warden_act_v1beta1_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_warden_act_v1beta1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgVoteForActionResponse); i { case 0: return &v.state @@ -8514,7 +7505,7 @@ func file_warden_act_v1beta1_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_warden_act_v1beta1_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 16, + NumMessages: 14, NumExtensions: 0, NumServices: 1, }, diff --git a/api/warden/act/v1beta1/tx_grpc.pb.go b/api/warden/act/v1beta1/tx_grpc.pb.go index 0c1532fd0..f34009d2e 100644 --- a/api/warden/act/v1beta1/tx_grpc.pb.go +++ b/api/warden/act/v1beta1/tx_grpc.pb.go @@ -21,7 +21,6 @@ const _ = grpc.SupportPackageIsVersion7 const ( Msg_UpdateParams_FullMethodName = "/warden.act.v1beta1.Msg/UpdateParams" Msg_NewAction_FullMethodName = "/warden.act.v1beta1.Msg/NewAction" - Msg_ApproveAction_FullMethodName = "/warden.act.v1beta1.Msg/ApproveAction" Msg_CheckAction_FullMethodName = "/warden.act.v1beta1.Msg/CheckAction" Msg_NewTemplate_FullMethodName = "/warden.act.v1beta1.Msg/NewTemplate" Msg_UpdateTemplate_FullMethodName = "/warden.act.v1beta1.Msg/UpdateTemplate" @@ -38,8 +37,6 @@ type MsgClient interface { UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // NewAction creates a new Action. NewAction(ctx context.Context, in *MsgNewAction, opts ...grpc.CallOption) (*MsgNewActionResponse, error) - // Add an approval to an existing Action. - ApproveAction(ctx context.Context, in *MsgApproveAction, opts ...grpc.CallOption) (*MsgApproveActionResponse, error) // Checks a pending action and executes it if its in a valid state. CheckAction(ctx context.Context, in *MsgCheckAction, opts ...grpc.CallOption) (*MsgCheckActionResponse, error) // Create a new Template. @@ -78,15 +75,6 @@ func (c *msgClient) NewAction(ctx context.Context, in *MsgNewAction, opts ...grp return out, nil } -func (c *msgClient) ApproveAction(ctx context.Context, in *MsgApproveAction, opts ...grpc.CallOption) (*MsgApproveActionResponse, error) { - out := new(MsgApproveActionResponse) - err := c.cc.Invoke(ctx, Msg_ApproveAction_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) CheckAction(ctx context.Context, in *MsgCheckAction, opts ...grpc.CallOption) (*MsgCheckActionResponse, error) { out := new(MsgCheckActionResponse) err := c.cc.Invoke(ctx, Msg_CheckAction_FullMethodName, in, out, opts...) @@ -141,8 +129,6 @@ type MsgServer interface { UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // NewAction creates a new Action. NewAction(context.Context, *MsgNewAction) (*MsgNewActionResponse, error) - // Add an approval to an existing Action. - ApproveAction(context.Context, *MsgApproveAction) (*MsgApproveActionResponse, error) // Checks a pending action and executes it if its in a valid state. CheckAction(context.Context, *MsgCheckAction) (*MsgCheckActionResponse, error) // Create a new Template. @@ -166,9 +152,6 @@ func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (* func (UnimplementedMsgServer) NewAction(context.Context, *MsgNewAction) (*MsgNewActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NewAction not implemented") } -func (UnimplementedMsgServer) ApproveAction(context.Context, *MsgApproveAction) (*MsgApproveActionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApproveAction not implemented") -} func (UnimplementedMsgServer) CheckAction(context.Context, *MsgCheckAction) (*MsgCheckActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckAction not implemented") } @@ -233,24 +216,6 @@ func _Msg_NewAction_Handler(srv interface{}, ctx context.Context, dec func(inter return interceptor(ctx, in, info, handler) } -func _Msg_ApproveAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgApproveAction) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ApproveAction(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_ApproveAction_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ApproveAction(ctx, req.(*MsgApproveAction)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_CheckAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgCheckAction) if err := dec(in); err != nil { @@ -356,10 +321,6 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "NewAction", Handler: _Msg_NewAction_Handler, }, - { - MethodName: "ApproveAction", - Handler: _Msg_ApproveAction_Handler, - }, { MethodName: "CheckAction", Handler: _Msg_CheckAction_Handler, diff --git a/proto/warden/act/v1beta1/action.proto b/proto/warden/act/v1beta1/action.proto index 7e2a31aaf..2401e44cc 100644 --- a/proto/warden/act/v1beta1/action.proto +++ b/proto/warden/act/v1beta1/action.proto @@ -11,46 +11,33 @@ import "warden/act/v1beta1/action_vote.proto"; option go_package = "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1"; -message Approver { - // address is the address of the approver - string address = 1; - // approved_at is a timestamp specifying when the approver approved an action - google.protobuf.Timestamp approved_at = 2 - [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; -} - // Action wraps a message that will be executed when its associated template is // satisfied. message Action { uint64 id = 1; - repeated Approver approvers = 2; - ActionStatus status = 3; + ActionStatus status = 2; // Original message that started the action, it will be executed when the // template is satisfied. - google.protobuf.Any msg = 5; + google.protobuf.Any msg = 3; // Result of the action, it will be set when the action is completed. - google.protobuf.Any result = 6; - string creator = 7; + google.protobuf.Any result = 4; + string creator = 5; // TimeoutHeight is the block height up until this action can be executed. - uint64 timeout_height = 8; + uint64 timeout_height = 6; // created_at is a timestamp specifying when the action was created - google.protobuf.Timestamp created_at = 9 + google.protobuf.Timestamp created_at = 7 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; // updated_at is a timestamp specifying when the action's status was updated - google.protobuf.Timestamp updated_at = 10 + google.protobuf.Timestamp updated_at = 8 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; - // template is the condition that this action is associated with. Instead of - // storing the template ID, we store the entire Template object so that is immutable - // and cannot be changed later. - warden.act.v1beta1.Template template = 11 [(gogoproto.nullable) = false]; // mentions is a list of addresses that are mentioned in the template. - repeated string mentions = 12; + repeated string mentions = 9; // The expression to be evaluated for approval. - .shield.ast.Expression approve_expression = 13 [(gogoproto.nullable) = false]; + .shield.ast.Expression approve_expression = 10 [(gogoproto.nullable) = false]; // The expression to be evaluated for rejection. - .shield.ast.Expression reject_expression = 14 [(gogoproto.nullable) = false]; + .shield.ast.Expression reject_expression = 11 [(gogoproto.nullable) = false]; // The votes accepted from the voting participants. - repeated ActionVote votes = 15; + repeated ActionVote votes = 12; } // Current status of an action. diff --git a/proto/warden/act/v1beta1/events.proto b/proto/warden/act/v1beta1/events.proto index 089e27b19..ed466d597 100644 --- a/proto/warden/act/v1beta1/events.proto +++ b/proto/warden/act/v1beta1/events.proto @@ -31,15 +31,6 @@ message EventCreateAction { string creator = 2; } -// EventApproveAction is emitted when an Action is approved -message EventApproveAction { - // id of action - uint64 id = 1; - - // address of the account that approved the action - string approver = 2; -} - // EventActionVoted is emitted when an Action is voted on message EventActionVoted { // id of action diff --git a/proto/warden/act/v1beta1/tx.proto b/proto/warden/act/v1beta1/tx.proto index 8e5fb6fad..3bc589eab 100644 --- a/proto/warden/act/v1beta1/tx.proto +++ b/proto/warden/act/v1beta1/tx.proto @@ -24,9 +24,6 @@ service Msg { // NewAction creates a new Action. rpc NewAction (MsgNewAction) returns (MsgNewActionResponse); - // Add an approval to an existing Action. - rpc ApproveAction (MsgApproveAction) returns (MsgApproveActionResponse); - // Checks a pending action and executes it if its in a valid state. rpc CheckAction (MsgCheckAction) returns (MsgCheckActionResponse); @@ -80,16 +77,6 @@ message MsgNewActionResponse { uint64 id = 1; } -message MsgApproveAction { - option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - uint64 action_id = 2; -} - -message MsgApproveActionResponse { - string status = 1; -} - message MsgNewTemplate { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; diff --git a/warden/x/act/keeper/actions.go b/warden/x/act/keeper/actions.go index 2a863396b..d4dc4213c 100644 --- a/warden/x/act/keeper/actions.go +++ b/warden/x/act/keeper/actions.go @@ -16,21 +16,6 @@ import ( types "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" ) -// TODO: Remove when Approve/Reject expressions ready -// ApproversEnv is an environment that resolves approvers' addresses to true. -type ApproversEnv []*types.Approver - -// TODO: Remove when Approve/Reject expressions ready -// Get implements evaluator.Environment. -func (approvers ApproversEnv) Get(name string) (object.Object, bool) { - for _, s := range approvers { - if s.Address == name { - return object.TRUE, true - } - } - return object.FALSE, true -} - // ActionApprovedVotesEnv is an environment that resolves action positive votes addresses to true. type ActionApprovedVotesEnv []*types.ActionVote @@ -98,29 +83,6 @@ func (k Keeper) TryRejectVotedAction(ctx context.Context, act *types.Action) err return nil } -// TODO: Remove when Approve/Reject expressions ready -// TryExecuteAction checks if the action's intent is satisfied and stores the -// result in the database. -func (k Keeper) TryExecuteAction(ctx context.Context, act *types.Action) error { - ready, err := k.checkActionReady(ctx, *act) - if err != nil { - return err - } - - if ready { - if err := k.executeAction(ctx, act); err != nil { - return err - } - } - - return nil -} - -// TODO: Remove when Approve/Reject expressions ready -func (k Keeper) checkActionReady(ctx context.Context, act types.Action) (bool, error) { - return act.Template.Eval(ctx, ApproversEnv(act.Approvers)) -} - func (k Keeper) executeAction(ctx context.Context, act *types.Action) error { sdkCtx := sdk.UnwrapSDKContext(ctx) cacheCtx, writeCache := prepareHandlerContext(sdkCtx, act.Creator) @@ -240,16 +202,10 @@ func (k Keeper) AddAction(ctx context.Context, creator string, msg sdk.Msg, time mentions := mergeMentions(approveMentions, rejectMentions) - // update the template of this Action with the preprocessed expression - // todo: should be removed with removing Template field in Action - approveTemplate.Expression = preprocessedApproveExpr - // create action object timestamp := k.getBlockTime(ctx) act := &types.Action{ Status: types.ActionStatus_ACTION_STATUS_PENDING, - Approvers: nil, - Template: approveTemplate, Mentions: mentions, Msg: wrappedMsg, Creator: creator, diff --git a/warden/x/act/keeper/migrations.go b/warden/x/act/keeper/migrations.go deleted file mode 100644 index 22dd95b12..000000000 --- a/warden/x/act/keeper/migrations.go +++ /dev/null @@ -1,20 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - v3 "github.com/warden-protocol/wardenprotocol/warden/x/act/migrations/v3" -) - -// Migrator is a struct for handling in-place store migrations. -type Migrator struct { - keeper Keeper -} - -// NewMigrator returns a new Migrator. -func NewMigrator(keeper Keeper) Migrator { - return Migrator{keeper: keeper} -} - -func (m Migrator) Migrate2to3(ctx sdk.Context) error { - return v3.MigrateStore(ctx, m.keeper.storeService, m.keeper.cdc) -} diff --git a/warden/x/act/keeper/msg_server_approve_action.go b/warden/x/act/keeper/msg_server_approve_action.go deleted file mode 100644 index d84ae8b08..000000000 --- a/warden/x/act/keeper/msg_server_approve_action.go +++ /dev/null @@ -1,44 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - types "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" -) - -func (k msgServer) ApproveAction(goCtx context.Context, msg *types.MsgApproveAction) (*types.MsgApproveActionResponse, error) { - 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 - } - err := k.ActionKeeper.Set(ctx, act) - if err != nil { - return nil, err - } - - return &types.MsgApproveActionResponse{ - Status: act.Status.String(), - }, nil - } - - if err := act.AddApprover(ctx, msg.Creator); err != nil { - return nil, err - } - - if err := k.ActionKeeper.Set(ctx, act); err != nil { - return nil, err - } - - if err := k.TryExecuteAction(ctx, &act); err != nil { - return nil, err - } - - return &types.MsgApproveActionResponse{Status: act.Status.String()}, nil -} diff --git a/warden/x/act/keeper/msg_server_new_action.go b/warden/x/act/keeper/msg_server_new_action.go index eaacd9b96..0daa4e935 100644 --- a/warden/x/act/keeper/msg_server_new_action.go +++ b/warden/x/act/keeper/msg_server_new_action.go @@ -39,6 +39,7 @@ func (k msgServer) NewAction(ctx context.Context, msg *types.MsgNewAction) (*typ }); err != nil { return nil, err } + return &types.MsgNewActionResponse{ Id: act.Id, }, nil diff --git a/warden/x/act/keeper/query_actions_by_address_test.go b/warden/x/act/keeper/query_actions_by_address_test.go index f4d6925d8..2a81d5616 100644 --- a/warden/x/act/keeper/query_actions_by_address_test.go +++ b/warden/x/act/keeper/query_actions_by_address_test.go @@ -27,9 +27,6 @@ func Benchmark_QueryActionsByAddress(b *testing.B) { _, err := k.ActionKeeper.New( ctx, &types.Action{ - Template: types.Template{ - Id: uint64(i), - }, Mentions: []string{ addr, }, diff --git a/warden/x/act/migrations/v3/store.go b/warden/x/act/migrations/v3/store.go deleted file mode 100644 index 8e6fa0e9d..000000000 --- a/warden/x/act/migrations/v3/store.go +++ /dev/null @@ -1,300 +0,0 @@ -package v3 - -import ( - "fmt" - - "cosmossdk.io/collections" - "cosmossdk.io/core/store" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/warden-protocol/wardenprotocol/shield/ast" - token "github.com/warden-protocol/wardenprotocol/shield/token" - "github.com/warden-protocol/wardenprotocol/warden/repo" - "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta0" - "github.com/warden-protocol/wardenprotocol/warden/x/act/types/v1beta1" -) - -func MigrateStore(ctx sdk.Context, storeService store.KVStoreService, cdc codec.BinaryCodec) error { - if err := migrateParams(ctx, storeService); err != nil { - return err - } - - os, err := oldStore(storeService, cdc) - if err != nil { - return err - } - - ns, err := newStore(storeService, cdc) - if err != nil { - return err - } - - return migrate(ctx, ns, os) -} - -func migrateParams(ctx sdk.Context, storeService store.KVStoreService) error { - s := storeService.OpenKVStore(ctx) - p, err := s.Get(v1beta0.ParamsKey) - if err != nil { - return err - } - - if err := s.Delete(v1beta0.ParamsKey); err != nil { - return err - } - - return s.Set(v1beta1.ParamsKey, p) -} - -func migrate(ctx sdk.Context, ns NewStore, os OldStore) error { - acts, err := os.Actions.Iterate(ctx, nil) - if err != nil { - return err - } - defer acts.Close() - - ctx.Logger().Info("migrating actions") - for ; acts.Valid(); acts.Next() { - act, err := acts.Value() - if err != nil { - return fmt.Errorf("failed to get action: %w", err) - } - - ctx.Logger().Info("migrating action", "id", act.Id) - newAct := migrateAction(act) - if err := ns.Actions.Set(ctx, newAct.Id, newAct); err != nil { - return fmt.Errorf("failed to set action: %w", err) - } - - for _, mention := range act.Mentions { - addr := sdk.MustAccAddressFromBech32(mention) - if err := ns.ActionByAddress.Set(ctx, collections.Join(addr, act.Id), act.Id); err != nil { - return fmt.Errorf("failed to set action by address: %w", err) - } - } - } - ctx.Logger().Info("done migrating actions") - - ctx.Logger().Info("migrating intents") - intents, err := os.Intents.Iterate(ctx, nil) - if err != nil { - return err - } - for ; intents.Valid(); intents.Next() { - intent, err := intents.Value() - if err != nil { - return fmt.Errorf("failed to get intent: %w", err) - } - newTemplate := migrateIntentToTemplate(intent) - if err := ns.Templates.Set(ctx, newTemplate.Id, newTemplate); err != nil { - return fmt.Errorf("failed to set intent: %w", err) - } - } - ctx.Logger().Info("done migrating intents") - - return nil -} - -func migrateAction(a v1beta0.Action) v1beta1.Action { - approvers := make([]*v1beta1.Approver, len(a.Approvers)) - for i, approver := range a.Approvers { - approvers[i] = &v1beta1.Approver{ - Address: approver.Address, - ApprovedAt: approver.ApprovedAt, - } - } - - status := v1beta1.ActionStatus(a.Status) - - return v1beta1.Action{ - Id: a.Id, - Approvers: approvers, - Status: status, - Msg: a.Msg, - Result: a.Result, - Creator: a.Creator, - TimeoutHeight: a.Btl, - CreatedAt: a.CreatedAt, - UpdatedAt: a.UpdatedAt, - Template: migrateIntentToTemplate(a.Intent), - Mentions: a.Mentions, - } -} - -func migrateIntentToTemplate(i v1beta0.Intent) v1beta1.Template { - return v1beta1.Template{ - Id: i.Id, - Creator: i.Creator, - Name: i.Name, - Expression: migrateExpression(i.Expression), - } -} - -func migrateExpression(e *v1beta0.Expression) *ast.Expression { - if e == nil { - return nil - } - expr := &ast.Expression{} - - switch v := e.Value.(type) { - case *v1beta0.Expression_Identifier: - expr.Value = &ast.Expression_Identifier{ - Identifier: migrateIdentifier(v.Identifier), - } - case *v1beta0.Expression_IntegerLiteral: - expr.Value = &ast.Expression_IntegerLiteral{ - IntegerLiteral: &ast.IntegerLiteral{ - Token: migrateToken(v.IntegerLiteral.Token), - Value: fmt.Sprint(v.IntegerLiteral.Value), - }, - } - case *v1beta0.Expression_BooleanLiteral: - expr.Value = &ast.Expression_BooleanLiteral{ - BooleanLiteral: &ast.BooleanLiteral{ - Token: migrateToken(v.BooleanLiteral.Token), - Value: v.BooleanLiteral.Value, - }, - } - case *v1beta0.Expression_ArrayLiteral: - expr.Value = &ast.Expression_ArrayLiteral{ - ArrayLiteral: &ast.ArrayLiteral{ - Token: migrateToken(v.ArrayLiteral.Token), - Elements: migrateExpressions(v.ArrayLiteral.Elements), - }, - } - case *v1beta0.Expression_CallExpression: - expr.Value = &ast.Expression_CallExpression{ - CallExpression: &ast.CallExpression{ - Token: migrateToken(v.CallExpression.Token), - Function: migrateIdentifier(v.CallExpression.Function), - Arguments: migrateExpressions(v.CallExpression.Arguments), - }, - } - case *v1beta0.Expression_InfixExpression: - expr.Value = &ast.Expression_InfixExpression{ - InfixExpression: &ast.InfixExpression{ - Token: migrateToken(v.InfixExpression.Token), - Left: migrateExpression(v.InfixExpression.Left), - Operator: v.InfixExpression.Operator, - Right: migrateExpression(v.InfixExpression.Right), - }, - } - } - - return expr -} - -func migrateIdentifier(i *v1beta0.Identifier) *ast.Identifier { - if i == nil { - return nil - } - - return &ast.Identifier{ - Token: migrateToken(i.Token), - Value: i.Value, - } -} - -func migrateExpressions(es []*v1beta0.Expression) []*ast.Expression { - if es == nil { - return nil - } - - res := make([]*ast.Expression, len(es)) - for i, e := range es { - res[i] = migrateExpression(e) - } - - return res -} - -func migrateToken(t v1beta0.Token) token.Token { - typeName := t.Type.String() - typ, found := token.Type_value[typeName] - if !found { - panic(fmt.Sprintf("unknown token type: %s", typeName)) - } - - return token.Token{ - Type: token.Type(typ), - Literal: t.Literal, - } -} - -type NewStore struct { - Actions repo.SeqCollection[v1beta1.Action] - Templates repo.SeqCollection[v1beta1.Template] - ActionByAddress collections.Map[collections.Pair[sdk.AccAddress, uint64], uint64] -} - -func newStore(storeService store.KVStoreService, cdc codec.BinaryCodec) (NewStore, error) { - var ( - ActionPrefix = collections.NewPrefix(0) - TemplatePrefix = collections.NewPrefix(1) - ActionByAddressPrefix = collections.NewPrefix(2) - ) - - sb := collections.NewSchemaBuilder(storeService) - - actionsStore := collections.NewMap(sb, ActionPrefix, "actions", collections.Uint64Key, codec.CollValue[v1beta1.Action](cdc)) - actionsCount := collections.NewSequence(sb, v1beta1.KeyPrefix(v1beta1.ActionCountKey), "actions_count") - actions := repo.NewSeqCollection(actionsCount, actionsStore, func(i *v1beta1.Action, u uint64) { i.Id = u }) - - templatesStore := collections.NewMap(sb, TemplatePrefix, "templates", collections.Uint64Key, codec.CollValue[v1beta1.Template](cdc)) - templatesCount := collections.NewSequence(sb, v1beta1.KeyPrefix(v1beta1.TemplateCountKey), "templates_count") - templates := repo.NewSeqCollection(templatesCount, templatesStore, func(i *v1beta1.Template, u uint64) { i.Id = u }) - - actionByAddress := collections.NewMap( - sb, ActionByAddressPrefix, "action_by_address", - collections.PairKeyCodec(sdk.AccAddressKey, collections.Uint64Key), - collections.Uint64Value, - ) - - return NewStore{ - Actions: actions, - Templates: templates, - ActionByAddress: actionByAddress, - }, nil -} - -type OldStore struct { - Actions repo.SeqCollection[v1beta0.Action] - Intents repo.SeqCollection[v1beta0.Intent] - ActionByAddress collections.Map[collections.Pair[sdk.AccAddress, uint64], uint64] -} - -func oldStore(storeService store.KVStoreService, cdc codec.BinaryCodec) (OldStore, error) { - var ( - ActionPrefix = collections.NewPrefix(0) - IntentPrefix = collections.NewPrefix(1) - ActionByAddressPrefix = collections.NewPrefix(2) - ) - - sb := collections.NewSchemaBuilder(storeService) - - intentsStore := collections.NewMap(sb, IntentPrefix, "intent", collections.Uint64Key, codec.CollValue[v1beta0.Intent](cdc)) - intentsCount := collections.NewSequence(sb, v1beta0.KeyPrefix(v1beta0.IntentCountKey), "intents_count") - intents := repo.NewSeqCollection(intentsCount, intentsStore, func(i *v1beta0.Intent, u uint64) { i.Id = u }) - - actionsStore := collections.NewMap(sb, ActionPrefix, "action", collections.Uint64Key, codec.CollValue[v1beta0.Action](cdc)) - actionsCount := collections.NewSequence(sb, v1beta0.KeyPrefix(v1beta0.ActionCountKey), "actions_count") - actions := repo.NewSeqCollection(actionsCount, actionsStore, func(a *v1beta0.Action, u uint64) { a.Id = u }) - - actionByAddress := collections.NewMap( - sb, ActionByAddressPrefix, "action_by_address", - collections.PairKeyCodec(sdk.AccAddressKey, collections.Uint64Key), - collections.Uint64Value, - ) - - _, err := sb.Build() - if err != nil { - return OldStore{}, err - } - - return OldStore{ - Actions: actions, - Intents: intents, - ActionByAddress: actionByAddress, - }, nil -} diff --git a/warden/x/act/module/module.go b/warden/x/act/module/module.go index e4fc8f7b5..4950323f0 100644 --- a/warden/x/act/module/module.go +++ b/warden/x/act/module/module.go @@ -120,11 +120,6 @@ func NewAppModule( func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) types.RegisterQueryServer(cfg.QueryServer(), am.keeper) - - m := keeper.NewMigrator(am.keeper) - if err := cfg.RegisterMigration(types.ModuleName, 2, m.Migrate2to3); err != nil { - panic(fmt.Sprintf("failed to migrate x/act from version 2 to 3: %v", err)) - } } // RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) diff --git a/warden/x/act/types/v1beta1/action.go b/warden/x/act/types/v1beta1/action.go index 09d3f2f8b..4fff330f1 100644 --- a/warden/x/act/types/v1beta1/action.go +++ b/warden/x/act/types/v1beta1/action.go @@ -8,13 +8,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -func NewApprover(address string, timestamp time.Time) *Approver { - return &Approver{ - Address: address, - ApprovedAt: timestamp, - } -} - func NewVote(participant string, voteType ActionVoteType, timestamp time.Time) *ActionVote { return &ActionVote{ Participant: participant, @@ -48,30 +41,6 @@ func (a *Action) SetStatus(ctx sdk.Context, status ActionStatus) error { }) } -func (a *Action) AddApprover(ctx sdk.Context, address string) error { - if a.Status != ActionStatus_ACTION_STATUS_PENDING { - return errors.Wrapf(ErrInvalidActionStatus, "can't add approver to an action that's not pending") - } - - for _, a := range a.Approvers { - if a.Address == address { - return ErrApproverExists - } - } - - a.UpdatedAt = ctx.BlockTime() - a.Approvers = append(a.Approvers, NewApprover(address, a.UpdatedAt)) - - if err := ctx.EventManager().EmitTypedEvent(&EventApproveAction{ - Id: a.Id, - Approver: address, - }); err != nil { - return err - } - - 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") diff --git a/warden/x/act/types/v1beta1/action.pb.go b/warden/x/act/types/v1beta1/action.pb.go index f0c414037..09bd341be 100644 --- a/warden/x/act/types/v1beta1/action.pb.go +++ b/warden/x/act/types/v1beta1/action.pb.go @@ -70,97 +70,38 @@ func (ActionStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor_ed852fba5dd71480, []int{0} } -type Approver struct { - // address is the address of the approver - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // approved_at is a timestamp specifying when the approver approved an action - ApprovedAt time.Time `protobuf:"bytes,2,opt,name=approved_at,json=approvedAt,proto3,stdtime" json:"approved_at"` -} - -func (m *Approver) Reset() { *m = Approver{} } -func (m *Approver) String() string { return proto.CompactTextString(m) } -func (*Approver) ProtoMessage() {} -func (*Approver) Descriptor() ([]byte, []int) { - return fileDescriptor_ed852fba5dd71480, []int{0} -} -func (m *Approver) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Approver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Approver.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Approver) XXX_Merge(src proto.Message) { - xxx_messageInfo_Approver.Merge(m, src) -} -func (m *Approver) XXX_Size() int { - return m.Size() -} -func (m *Approver) XXX_DiscardUnknown() { - xxx_messageInfo_Approver.DiscardUnknown(m) -} - -var xxx_messageInfo_Approver proto.InternalMessageInfo - -func (m *Approver) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *Approver) GetApprovedAt() time.Time { - if m != nil { - return m.ApprovedAt - } - return time.Time{} -} - // Action wraps a message that will be executed when its associated template is // satisfied. type Action struct { - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Approvers []*Approver `protobuf:"bytes,2,rep,name=approvers,proto3" json:"approvers,omitempty"` - Status ActionStatus `protobuf:"varint,3,opt,name=status,proto3,enum=warden.act.v1beta1.ActionStatus" json:"status,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Status ActionStatus `protobuf:"varint,2,opt,name=status,proto3,enum=warden.act.v1beta1.ActionStatus" json:"status,omitempty"` // Original message that started the action, it will be executed when the // template is satisfied. - Msg *types.Any `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"` + Msg *types.Any `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // Result of the action, it will be set when the action is completed. - Result *types.Any `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"` - Creator string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"` + Result *types.Any `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` + Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"` // TimeoutHeight is the block height up until this action can be executed. - TimeoutHeight uint64 `protobuf:"varint,8,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"` + TimeoutHeight uint64 `protobuf:"varint,6,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"` // created_at is a timestamp specifying when the action was created - CreatedAt time.Time `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"` + CreatedAt time.Time `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"` // updated_at is a timestamp specifying when the action's status was updated - UpdatedAt time.Time `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"` - // template is the condition that this action is associated with. Instead of - // storing the template ID, we store the entire Template object so that is immutable - // and cannot be changed later. - Template Template `protobuf:"bytes,11,opt,name=template,proto3" json:"template"` + UpdatedAt time.Time `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"` // mentions is a list of addresses that are mentioned in the template. - Mentions []string `protobuf:"bytes,12,rep,name=mentions,proto3" json:"mentions,omitempty"` + Mentions []string `protobuf:"bytes,9,rep,name=mentions,proto3" json:"mentions,omitempty"` // The expression to be evaluated for approval. - ApproveExpression ast.Expression `protobuf:"bytes,13,opt,name=approve_expression,json=approveExpression,proto3" json:"approve_expression"` + ApproveExpression ast.Expression `protobuf:"bytes,10,opt,name=approve_expression,json=approveExpression,proto3" json:"approve_expression"` // The expression to be evaluated for rejection. - RejectExpression ast.Expression `protobuf:"bytes,14,opt,name=reject_expression,json=rejectExpression,proto3" json:"reject_expression"` + RejectExpression ast.Expression `protobuf:"bytes,11,opt,name=reject_expression,json=rejectExpression,proto3" json:"reject_expression"` // The votes accepted from the voting participants. - Votes []*ActionVote `protobuf:"bytes,15,rep,name=votes,proto3" json:"votes,omitempty"` + Votes []*ActionVote `protobuf:"bytes,12,rep,name=votes,proto3" json:"votes,omitempty"` } func (m *Action) Reset() { *m = Action{} } func (m *Action) String() string { return proto.CompactTextString(m) } func (*Action) ProtoMessage() {} func (*Action) Descriptor() ([]byte, []int) { - return fileDescriptor_ed852fba5dd71480, []int{1} + return fileDescriptor_ed852fba5dd71480, []int{0} } func (m *Action) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -196,13 +137,6 @@ func (m *Action) GetId() uint64 { return 0 } -func (m *Action) GetApprovers() []*Approver { - if m != nil { - return m.Approvers - } - return nil -} - func (m *Action) GetStatus() ActionStatus { if m != nil { return m.Status @@ -252,13 +186,6 @@ func (m *Action) GetUpdatedAt() time.Time { return time.Time{} } -func (m *Action) GetTemplate() Template { - if m != nil { - return m.Template - } - return Template{} -} - func (m *Action) GetMentions() []string { if m != nil { return m.Mentions @@ -289,95 +216,51 @@ func (m *Action) GetVotes() []*ActionVote { func init() { proto.RegisterEnum("warden.act.v1beta1.ActionStatus", ActionStatus_name, ActionStatus_value) - proto.RegisterType((*Approver)(nil), "warden.act.v1beta1.Approver") proto.RegisterType((*Action)(nil), "warden.act.v1beta1.Action") } func init() { proto.RegisterFile("warden/act/v1beta1/action.proto", fileDescriptor_ed852fba5dd71480) } var fileDescriptor_ed852fba5dd71480 = []byte{ - // 673 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4d, 0x53, 0xd3, 0x40, - 0x18, 0x6e, 0x5a, 0x28, 0xed, 0x16, 0x6a, 0xd9, 0x41, 0x5d, 0xaa, 0xb6, 0x95, 0x51, 0xa7, 0xc3, - 0x68, 0x32, 0xa0, 0x07, 0xc7, 0x83, 0x33, 0x81, 0x46, 0xa9, 0x48, 0xcb, 0xa4, 0x81, 0x83, 0x07, - 0x3b, 0xdb, 0x66, 0x4d, 0xe3, 0x34, 0xd9, 0x4c, 0x76, 0x8b, 0xf0, 0x2f, 0xb8, 0xfb, 0x07, 0x3c, - 0xfa, 0x33, 0x38, 0x72, 0xf4, 0xa4, 0x0e, 0x3d, 0xf8, 0x37, 0x9c, 0x6c, 0x36, 0x7c, 0x15, 0x1c, - 0x39, 0xb4, 0xb3, 0xef, 0xfb, 0x3e, 0xcf, 0xb3, 0xef, 0xd7, 0x06, 0x54, 0xbf, 0xe0, 0xd0, 0x26, - 0xbe, 0x86, 0xfb, 0x5c, 0xdb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, 0x86, 0x1f, 0x04, 0x84, 0x25, 0xdf, 0x99, 0x5e, - 0x56, 0x80, 0x9e, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x36, 0x81, 0x3d, 0xa3, 0x57, 0x05, 0x00, - 0x00, -} - -func (m *Approver) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Approver) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Approver) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ApprovedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ApprovedAt):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintAction(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x12 - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintAction(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + // 603 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4f, 0x53, 0xd3, 0x40, + 0x14, 0xef, 0xb6, 0xa5, 0xd0, 0xe5, 0xcf, 0x94, 0x1d, 0xd4, 0x50, 0xc7, 0x34, 0x3a, 0xea, 0x74, + 0x18, 0x4d, 0x06, 0xf4, 0xe0, 0xb5, 0xd0, 0x28, 0x1d, 0xa4, 0x65, 0xd2, 0xc0, 0xc1, 0x83, 0x9d, + 0x6d, 0xb2, 0xa6, 0x71, 0x9a, 0x6c, 0x26, 0xbb, 0x41, 0xf8, 0x16, 0xdc, 0xfd, 0x02, 0x1e, 0xfd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1, 0x4c, 0xba, + 0x41, 0x4c, 0x59, 0xd0, 0x4a, 0xcd, 0xf9, 0x0d, 0xf5, 0xf6, 0xbd, 0x38, 0xa0, 0x9c, 0x58, 0x19, + 0x79, 0xed, 0x33, 0x80, 0x0b, 0x93, 0xdb, 0x82, 0x1e, 0xc0, 0xd5, 0xd6, 0x96, 0xdd, 0xe9, 0x75, + 0x07, 0x7d, 0xbb, 0x65, 0xef, 0xf7, 0x07, 0xfb, 0xdd, 0xfe, 0x9e, 0xb9, 0xd5, 0x79, 0xdd, 0x31, + 0xdb, 0xb5, 0x02, 0x5a, 0x85, 0x77, 0xae, 0xc3, 0x7b, 0x66, 0xb7, 0xdd, 0xe9, 0xbe, 0xa9, 0x01, + 0x74, 0x1f, 0xde, 0xbb, 0x0e, 0x6d, 0xf5, 0x76, 0xf7, 0xde, 0x9a, 0xb6, 0xd9, 0xae, 0x15, 0xa7, + 0x75, 0x96, 0x79, 0xd0, 0xdb, 0x31, 0xdb, 0xb5, 0xd2, 0x34, 0x64, 0x77, 0x76, 0xcd, 0xde, 0xbe, + 0x5d, 0x2b, 0x6f, 0xbe, 0x3f, 0x3d, 0x57, 0xc1, 0xd9, 0xb9, 0x0a, 0x7e, 0x9e, 0xab, 0xe0, 0xe4, + 0x42, 0x2d, 0x9c, 0x5d, 0xa8, 0x85, 0x6f, 0x17, 0x6a, 0xe1, 0x5d, 0xdb, 0xf3, 0xf9, 0x28, 0x19, + 0xea, 0x0e, 0x0d, 0x8c, 0xac, 0xd1, 0xe7, 0xe2, 0x86, 0x1d, 0x3a, 0x96, 0xf1, 0x8d, 0xd0, 0x38, + 0x12, 0x6f, 0x8e, 0x1f, 0x47, 0x84, 0xe5, 0x2f, 0x6f, 0x58, 0x11, 0xa4, 0x17, 0xbf, 0x02, 0x00, + 0x00, 0xff, 0xff, 0x6c, 0x25, 0x0c, 0xad, 0x69, 0x04, 0x00, 0x00, } func (m *Action) Marshal() (dAtA []byte, err error) { @@ -411,7 +294,7 @@ func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintAction(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x7a + dAtA[i] = 0x62 } } { @@ -423,7 +306,7 @@ func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintAction(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x72 + dAtA[i] = 0x5a { size, err := m.ApproveExpression.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -433,53 +316,43 @@ func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintAction(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x6a + dAtA[i] = 0x52 if len(m.Mentions) > 0 { for iNdEx := len(m.Mentions) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Mentions[iNdEx]) copy(dAtA[i:], m.Mentions[iNdEx]) i = encodeVarintAction(dAtA, i, uint64(len(m.Mentions[iNdEx]))) i-- - dAtA[i] = 0x62 - } - } - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + dAtA[i] = 0x4a } - i -= size - i = encodeVarintAction(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x5a - n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.UpdatedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UpdatedAt):]) - if err5 != nil { - return 0, err5 + n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.UpdatedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UpdatedAt):]) + if err3 != nil { + return 0, err3 } - i -= n5 - i = encodeVarintAction(dAtA, i, uint64(n5)) + i -= n3 + i = encodeVarintAction(dAtA, i, uint64(n3)) i-- - dAtA[i] = 0x52 - n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CreatedAt):]) - if err6 != nil { - return 0, err6 + dAtA[i] = 0x42 + n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CreatedAt):]) + if err4 != nil { + return 0, err4 } - i -= n6 - i = encodeVarintAction(dAtA, i, uint64(n6)) + i -= n4 + i = encodeVarintAction(dAtA, i, uint64(n4)) i-- - dAtA[i] = 0x4a + dAtA[i] = 0x3a if m.TimeoutHeight != 0 { i = encodeVarintAction(dAtA, i, uint64(m.TimeoutHeight)) i-- - dAtA[i] = 0x40 + dAtA[i] = 0x30 } if len(m.Creator) > 0 { i -= len(m.Creator) copy(dAtA[i:], m.Creator) i = encodeVarintAction(dAtA, i, uint64(len(m.Creator))) i-- - dAtA[i] = 0x3a + dAtA[i] = 0x2a } if m.Result != nil { { @@ -491,7 +364,7 @@ func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintAction(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 + dAtA[i] = 0x22 } if m.Msg != nil { { @@ -503,26 +376,12 @@ func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintAction(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x1a } if m.Status != 0 { i = encodeVarintAction(dAtA, i, uint64(m.Status)) i-- - dAtA[i] = 0x18 - } - if len(m.Approvers) > 0 { - for iNdEx := len(m.Approvers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Approvers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAction(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + dAtA[i] = 0x10 } if m.Id != 0 { i = encodeVarintAction(dAtA, i, uint64(m.Id)) @@ -543,21 +402,6 @@ func encodeVarintAction(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *Approver) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovAction(uint64(l)) - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ApprovedAt) - n += 1 + l + sovAction(uint64(l)) - return n -} - func (m *Action) Size() (n int) { if m == nil { return 0 @@ -567,12 +411,6 @@ func (m *Action) Size() (n int) { if m.Id != 0 { n += 1 + sovAction(uint64(m.Id)) } - if len(m.Approvers) > 0 { - for _, e := range m.Approvers { - l = e.Size() - n += 1 + l + sovAction(uint64(l)) - } - } if m.Status != 0 { n += 1 + sovAction(uint64(m.Status)) } @@ -595,8 +433,6 @@ func (m *Action) Size() (n int) { n += 1 + l + sovAction(uint64(l)) l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UpdatedAt) n += 1 + l + sovAction(uint64(l)) - l = m.Template.Size() - n += 1 + l + sovAction(uint64(l)) if len(m.Mentions) > 0 { for _, s := range m.Mentions { l = len(s) @@ -622,121 +458,6 @@ func sovAction(x uint64) (n int) { func sozAction(x uint64) (n int) { return sovAction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Approver) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAction - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Approver: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Approver: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAction - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAction - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAction - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApprovedAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAction - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAction - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAction - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ApprovedAt, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAction(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAction - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *Action) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -786,40 +507,6 @@ func (m *Action) Unmarshal(dAtA []byte) error { } } case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Approvers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAction - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAction - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAction - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Approvers = append(m.Approvers, &Approver{}) - if err := m.Approvers[len(m.Approvers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } @@ -838,7 +525,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { break } } - case 5: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) } @@ -874,7 +561,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 6: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } @@ -910,7 +597,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 7: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } @@ -942,7 +629,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { } m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: + case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field TimeoutHeight", wireType) } @@ -961,7 +648,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { break } } - case 9: + case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) } @@ -994,7 +681,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 10: + case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType) } @@ -1027,40 +714,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAction - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAction - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAction - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: + case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Mentions", wireType) } @@ -1092,7 +746,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { } m.Mentions = append(m.Mentions, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 13: + case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ApproveExpression", wireType) } @@ -1125,7 +779,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 14: + case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RejectExpression", wireType) } @@ -1158,7 +812,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 15: + case 12: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType) } diff --git a/warden/x/act/types/v1beta1/codec.go b/warden/x/act/types/v1beta1/codec.go index 3b670e242..ec6b36d1f 100644 --- a/warden/x/act/types/v1beta1/codec.go +++ b/warden/x/act/types/v1beta1/codec.go @@ -10,10 +10,10 @@ import ( func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgNewAction{}, - &MsgApproveAction{}, &MsgNewTemplate{}, &MsgRevokeAction{}, &MsgUpdateTemplate{}, + &MsgVoteForAction{}, ) // this line is used by starport scaffolding # 3 diff --git a/warden/x/act/types/v1beta1/errors.go b/warden/x/act/types/v1beta1/errors.go index da58a0f76..186384128 100644 --- a/warden/x/act/types/v1beta1/errors.go +++ b/warden/x/act/types/v1beta1/errors.go @@ -9,11 +9,9 @@ import ( // x/act module sentinel errors var ( ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") - ErrSample = sdkerrors.Register(ModuleName, 1101, "sample error") ErrInvalidActionMsgSigner = sdkerrors.Register(ModuleName, 1102, "expected x/act account as only signer for action message") ErrInvalidActionStatus = sdkerrors.Register(ModuleName, 1103, "invalid action status") ErrInvalidActionStatusChange = sdkerrors.Register(ModuleName, 1104, "invalid status change") - ErrApproverExists = sdkerrors.Register(ModuleName, 1105, "approver already exists") ErrTemplateEvaluationFailed = sdkerrors.Register(ModuleName, 1106, "template evaluation failed") ErrTemplateNotBoolean = sdkerrors.Register(ModuleName, 1107, "template must evaluate to a boolean") ErrInvalidTemplate = sdkerrors.Register(ModuleName, 1108, "template is invalid") diff --git a/warden/x/act/types/v1beta1/events.pb.go b/warden/x/act/types/v1beta1/events.pb.go index 0ed3aed60..11ab9d30f 100644 --- a/warden/x/act/types/v1beta1/events.pb.go +++ b/warden/x/act/types/v1beta1/events.pb.go @@ -178,61 +178,6 @@ func (m *EventCreateAction) GetCreator() string { return "" } -// EventApproveAction is emitted when an Action is approved -type EventApproveAction struct { - // id of action - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - // address of the account that approved the action - Approver string `protobuf:"bytes,2,opt,name=approver,proto3" json:"approver,omitempty"` -} - -func (m *EventApproveAction) Reset() { *m = EventApproveAction{} } -func (m *EventApproveAction) String() string { return proto.CompactTextString(m) } -func (*EventApproveAction) ProtoMessage() {} -func (*EventApproveAction) Descriptor() ([]byte, []int) { - return fileDescriptor_912b51dfb11e99b6, []int{3} -} -func (m *EventApproveAction) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventApproveAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventApproveAction.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *EventApproveAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventApproveAction.Merge(m, src) -} -func (m *EventApproveAction) XXX_Size() int { - return m.Size() -} -func (m *EventApproveAction) XXX_DiscardUnknown() { - xxx_messageInfo_EventApproveAction.DiscardUnknown(m) -} - -var xxx_messageInfo_EventApproveAction proto.InternalMessageInfo - -func (m *EventApproveAction) GetId() uint64 { - if m != nil { - return m.Id - } - return 0 -} - -func (m *EventApproveAction) GetApprover() string { - if m != nil { - return m.Approver - } - return "" -} - // EventActionVoted is emitted when an Action is voted on type EventActionVoted struct { // id of action @@ -247,7 +192,7 @@ func (m *EventActionVoted) Reset() { *m = EventActionVoted{} } func (m *EventActionVoted) String() string { return proto.CompactTextString(m) } func (*EventActionVoted) ProtoMessage() {} func (*EventActionVoted) Descriptor() ([]byte, []int) { - return fileDescriptor_912b51dfb11e99b6, []int{4} + return fileDescriptor_912b51dfb11e99b6, []int{3} } func (m *EventActionVoted) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -311,7 +256,7 @@ func (m *EventActionStateChange) Reset() { *m = EventActionStateChange{} func (m *EventActionStateChange) String() string { return proto.CompactTextString(m) } func (*EventActionStateChange) ProtoMessage() {} func (*EventActionStateChange) Descriptor() ([]byte, []int) { - return fileDescriptor_912b51dfb11e99b6, []int{5} + return fileDescriptor_912b51dfb11e99b6, []int{4} } func (m *EventActionStateChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -372,7 +317,7 @@ func (m *EventActionPruned) Reset() { *m = EventActionPruned{} } func (m *EventActionPruned) String() string { return proto.CompactTextString(m) } func (*EventActionPruned) ProtoMessage() {} func (*EventActionPruned) Descriptor() ([]byte, []int) { - return fileDescriptor_912b51dfb11e99b6, []int{6} + return fileDescriptor_912b51dfb11e99b6, []int{5} } func (m *EventActionPruned) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -412,7 +357,6 @@ func init() { proto.RegisterType((*EventCreateTemplate)(nil), "warden.act.v1beta1.EventCreateTemplate") proto.RegisterType((*EventUpdateTemplate)(nil), "warden.act.v1beta1.EventUpdateTemplate") proto.RegisterType((*EventCreateAction)(nil), "warden.act.v1beta1.EventCreateAction") - proto.RegisterType((*EventApproveAction)(nil), "warden.act.v1beta1.EventApproveAction") proto.RegisterType((*EventActionVoted)(nil), "warden.act.v1beta1.EventActionVoted") proto.RegisterType((*EventActionStateChange)(nil), "warden.act.v1beta1.EventActionStateChange") proto.RegisterType((*EventActionPruned)(nil), "warden.act.v1beta1.EventActionPruned") @@ -421,32 +365,31 @@ func init() { func init() { proto.RegisterFile("warden/act/v1beta1/events.proto", fileDescriptor_912b51dfb11e99b6) } var fileDescriptor_912b51dfb11e99b6 = []byte{ - // 398 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcd, 0xae, 0xd2, 0x40, - 0x14, 0x66, 0xc0, 0x28, 0x8c, 0x49, 0xd5, 0x9a, 0x98, 0x86, 0x45, 0x6d, 0xaa, 0x26, 0x6c, 0x6c, - 0x03, 0xae, 0x0d, 0x22, 0xba, 0x70, 0x67, 0x0a, 0xba, 0x70, 0x21, 0x19, 0xda, 0x13, 0x68, 0x02, - 0x33, 0x93, 0xe9, 0x69, 0x91, 0x07, 0x70, 0xef, 0xc3, 0xf8, 0x10, 0x2e, 0x59, 0xba, 0x34, 0xf0, - 0x22, 0xa6, 0x33, 0xad, 0x12, 0x2b, 0x37, 0xf7, 0xee, 0xe6, 0x6b, 0xbf, 0x9f, 0x93, 0xef, 0x1c, - 0xfa, 0x78, 0xc7, 0x54, 0x02, 0x3c, 0x64, 0x31, 0x86, 0xc5, 0x70, 0x09, 0xc8, 0x86, 0x21, 0x14, - 0xc0, 0x31, 0x0b, 0xa4, 0x12, 0x28, 0x6c, 0xdb, 0x10, 0x02, 0x16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d6, 0xc8, 0xbb, 0x9c, 0x38, 0xd3, 0xbc, 0xc8, 0xaa, 0x85, 0x06, 0xdb, 0x63, 0x4a, - 0x39, 0xec, 0x6a, 0x97, 0xce, 0x35, 0x5d, 0x7a, 0x1c, 0x76, 0xe6, 0xe9, 0x3f, 0xa9, 0xf6, 0x67, - 0xfe, 0xbf, 0x57, 0x39, 0x6f, 0xd6, 0xf7, 0xfa, 0xf3, 0x8f, 0xa3, 0x4b, 0x0e, 0x47, 0x97, 0xfc, - 0x3a, 0xba, 0xe4, 0xdb, 0xc9, 0x6d, 0x1d, 0x4e, 0x6e, 0xeb, 0xe7, 0xc9, 0x6d, 0x7d, 0x7a, 0xb3, - 0x4a, 0x71, 0x9d, 0x2f, 0x83, 0x58, 0x6c, 0x43, 0x93, 0xfa, 0x5c, 0xdf, 0x5f, 0x2c, 0x36, 0x15, - 0xfe, 0x07, 0x86, 0x5f, 0xf4, 0xe1, 0x96, 0x35, 0x67, 0xf5, 0xf9, 0x2e, 0x6f, 0x6b, 0xd2, 0x8b, - 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x14, 0x72, 0x9e, 0xf5, 0x31, 0x03, 0x00, 0x00, + // 381 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcd, 0x4e, 0xdb, 0x40, + 0x10, 0xce, 0x26, 0x55, 0xdb, 0x6c, 0x25, 0xb7, 0x75, 0xa5, 0xca, 0xca, 0xc1, 0xb5, 0xdc, 0x56, + 0xca, 0x05, 0x5b, 0x09, 0x67, 0x14, 0x41, 0xe0, 0xc0, 0x0d, 0x39, 0x81, 0x03, 0x07, 0xa2, 0x8d, + 0x3d, 0x4a, 0x2c, 0x25, 0xbb, 0x2b, 0x7b, 0xec, 0x90, 0x07, 0xe0, 0xce, 0xc3, 0xf0, 0x10, 0x1c, + 0x73, 0xe4, 0x88, 0x92, 0x17, 0x41, 0xf6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x21, 0xf4, 0xa7, 0x8c, + 0x4f, 0xaa, 0x95, 0x9d, 0xd2, 0xef, 0x32, 0x82, 0x34, 0x14, 0x49, 0x3c, 0x8a, 0x91, 0x61, 0x12, + 0xe7, 0x1b, 0x69, 0x5d, 0x6b, 0x77, 0xe2, 0x20, 0xe7, 0x79, 0x5a, 0x29, 0x54, 0x58, 0xef, 0x51, + 0xca, 0x61, 0x51, 0xba, 0x34, 0xde, 0xe9, 0xd2, 0xe4, 0xb0, 0x50, 0xa3, 0xfd, 0xb7, 0x68, 0x5f, + 0xfd, 0x3f, 0x8b, 0x12, 0x5e, 0xad, 0xef, 0xe8, 0xea, 0x7e, 0x6d, 0x92, 0xd5, 0xda, 0x24, 0x8f, + 0x6b, 0x93, 0xdc, 0x6e, 0xcc, 0xda, 0x6a, 0x63, 0xd6, 0x1e, 0x36, 0x66, 0xed, 0xf2, 0x78, 0x12, + 0xe2, 0x34, 0x19, 0x3b, 0xbe, 0x98, 0xbb, 0x2a, 0x75, 0x2f, 0xbf, 0x1e, 0x5f, 0xcc, 0x0a, 0xfc, + 0x02, 0xba, 0xd7, 0xf9, 0xd9, 0x65, 0x35, 0xc7, 0xe5, 0xf1, 0x8d, 0x3f, 0xe7, 0xa4, 0xfd, 0xa7, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x6b, 0xfb, 0x84, 0x5f, 0xef, 0x02, 0x00, 0x00, } func (m *EventCreateTemplate) Marshal() (dAtA []byte, err error) { @@ -547,41 +490,6 @@ func (m *EventCreateAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *EventApproveAction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventApproveAction) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventApproveAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Approver) > 0 { - i -= len(m.Approver) - copy(dAtA[i:], m.Approver) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Approver))) - i-- - dAtA[i] = 0x12 - } - if m.Id != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - func (m *EventActionVoted) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -743,22 +651,6 @@ func (m *EventCreateAction) Size() (n int) { return n } -func (m *EventApproveAction) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 1 + sovEvents(uint64(m.Id)) - } - l = len(m.Approver) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - func (m *EventActionVoted) Size() (n int) { if m == nil { return 0 @@ -1085,107 +977,6 @@ func (m *EventCreateAction) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventApproveAction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventApproveAction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventApproveAction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Approver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Approver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *EventActionVoted) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/warden/x/act/types/v1beta1/tx.pb.go b/warden/x/act/types/v1beta1/tx.pb.go index f111aef73..543066e71 100644 --- a/warden/x/act/types/v1beta1/tx.pb.go +++ b/warden/x/act/types/v1beta1/tx.pb.go @@ -252,102 +252,6 @@ func (m *MsgNewActionResponse) GetId() uint64 { return 0 } -type MsgApproveAction struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ActionId uint64 `protobuf:"varint,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"` -} - -func (m *MsgApproveAction) Reset() { *m = MsgApproveAction{} } -func (m *MsgApproveAction) String() string { return proto.CompactTextString(m) } -func (*MsgApproveAction) ProtoMessage() {} -func (*MsgApproveAction) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{4} -} -func (m *MsgApproveAction) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgApproveAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgApproveAction.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgApproveAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgApproveAction.Merge(m, src) -} -func (m *MsgApproveAction) XXX_Size() int { - return m.Size() -} -func (m *MsgApproveAction) XXX_DiscardUnknown() { - xxx_messageInfo_MsgApproveAction.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgApproveAction proto.InternalMessageInfo - -func (m *MsgApproveAction) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgApproveAction) GetActionId() uint64 { - if m != nil { - return m.ActionId - } - return 0 -} - -type MsgApproveActionResponse struct { - Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` -} - -func (m *MsgApproveActionResponse) Reset() { *m = MsgApproveActionResponse{} } -func (m *MsgApproveActionResponse) String() string { return proto.CompactTextString(m) } -func (*MsgApproveActionResponse) ProtoMessage() {} -func (*MsgApproveActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{5} -} -func (m *MsgApproveActionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgApproveActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgApproveActionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgApproveActionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgApproveActionResponse.Merge(m, src) -} -func (m *MsgApproveActionResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgApproveActionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgApproveActionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgApproveActionResponse proto.InternalMessageInfo - -func (m *MsgApproveActionResponse) GetStatus() string { - if m != nil { - return m.Status - } - return "" -} - type MsgNewTemplate struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` @@ -358,7 +262,7 @@ func (m *MsgNewTemplate) Reset() { *m = MsgNewTemplate{} } func (m *MsgNewTemplate) String() string { return proto.CompactTextString(m) } func (*MsgNewTemplate) ProtoMessage() {} func (*MsgNewTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{6} + return fileDescriptor_f059980976488200, []int{4} } func (m *MsgNewTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -416,7 +320,7 @@ func (m *MsgNewTemplateResponse) Reset() { *m = MsgNewTemplateResponse{} func (m *MsgNewTemplateResponse) String() string { return proto.CompactTextString(m) } func (*MsgNewTemplateResponse) ProtoMessage() {} func (*MsgNewTemplateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{7} + return fileDescriptor_f059980976488200, []int{5} } func (m *MsgNewTemplateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -463,7 +367,7 @@ func (m *MsgUpdateTemplate) Reset() { *m = MsgUpdateTemplate{} } func (m *MsgUpdateTemplate) String() string { return proto.CompactTextString(m) } func (*MsgUpdateTemplate) ProtoMessage() {} func (*MsgUpdateTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{8} + return fileDescriptor_f059980976488200, []int{6} } func (m *MsgUpdateTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -527,7 +431,7 @@ func (m *MsgUpdateTemplateResponse) Reset() { *m = MsgUpdateTemplateResp func (m *MsgUpdateTemplateResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateTemplateResponse) ProtoMessage() {} func (*MsgUpdateTemplateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{9} + return fileDescriptor_f059980976488200, []int{7} } func (m *MsgUpdateTemplateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -565,7 +469,7 @@ func (m *MsgRevokeAction) Reset() { *m = MsgRevokeAction{} } func (m *MsgRevokeAction) String() string { return proto.CompactTextString(m) } func (*MsgRevokeAction) ProtoMessage() {} func (*MsgRevokeAction) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{10} + return fileDescriptor_f059980976488200, []int{8} } func (m *MsgRevokeAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -615,7 +519,7 @@ func (m *MsgRevokeActionResponse) Reset() { *m = MsgRevokeActionResponse func (m *MsgRevokeActionResponse) String() string { return proto.CompactTextString(m) } func (*MsgRevokeActionResponse) ProtoMessage() {} func (*MsgRevokeActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{11} + return fileDescriptor_f059980976488200, []int{9} } func (m *MsgRevokeActionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -653,7 +557,7 @@ func (m *MsgCheckAction) Reset() { *m = MsgCheckAction{} } func (m *MsgCheckAction) String() string { return proto.CompactTextString(m) } func (*MsgCheckAction) ProtoMessage() {} func (*MsgCheckAction) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{12} + return fileDescriptor_f059980976488200, []int{10} } func (m *MsgCheckAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -704,7 +608,7 @@ func (m *MsgCheckActionResponse) Reset() { *m = MsgCheckActionResponse{} func (m *MsgCheckActionResponse) String() string { return proto.CompactTextString(m) } func (*MsgCheckActionResponse) ProtoMessage() {} func (*MsgCheckActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{13} + return fileDescriptor_f059980976488200, []int{11} } func (m *MsgCheckActionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -750,7 +654,7 @@ func (m *MsgVoteForAction) Reset() { *m = MsgVoteForAction{} } func (m *MsgVoteForAction) String() string { return proto.CompactTextString(m) } func (*MsgVoteForAction) ProtoMessage() {} func (*MsgVoteForAction) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{14} + return fileDescriptor_f059980976488200, []int{12} } func (m *MsgVoteForAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -808,7 +712,7 @@ func (m *MsgVoteForActionResponse) Reset() { *m = MsgVoteForActionRespon func (m *MsgVoteForActionResponse) String() string { return proto.CompactTextString(m) } func (*MsgVoteForActionResponse) ProtoMessage() {} func (*MsgVoteForActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f059980976488200, []int{15} + return fileDescriptor_f059980976488200, []int{13} } func (m *MsgVoteForActionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -849,8 +753,6 @@ func init() { proto.RegisterType((*MsgUpdateParamsResponse)(nil), "warden.act.v1beta1.MsgUpdateParamsResponse") proto.RegisterType((*MsgNewAction)(nil), "warden.act.v1beta1.MsgNewAction") proto.RegisterType((*MsgNewActionResponse)(nil), "warden.act.v1beta1.MsgNewActionResponse") - proto.RegisterType((*MsgApproveAction)(nil), "warden.act.v1beta1.MsgApproveAction") - proto.RegisterType((*MsgApproveActionResponse)(nil), "warden.act.v1beta1.MsgApproveActionResponse") proto.RegisterType((*MsgNewTemplate)(nil), "warden.act.v1beta1.MsgNewTemplate") proto.RegisterType((*MsgNewTemplateResponse)(nil), "warden.act.v1beta1.MsgNewTemplateResponse") proto.RegisterType((*MsgUpdateTemplate)(nil), "warden.act.v1beta1.MsgUpdateTemplate") @@ -866,65 +768,63 @@ func init() { func init() { proto.RegisterFile("warden/act/v1beta1/tx.proto", fileDescriptor_f059980976488200) } var fileDescriptor_f059980976488200 = []byte{ - // 914 bytes of a gzipped FileDescriptorProto - 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0x50, 0x88, 0x15, 0xed, - 0x35, 0x47, 0xf6, 0xc2, 0xc9, 0x7b, 0xe1, 0xec, 0xc6, 0x53, 0x2f, 0x07, 0x19, 0x7d, 0x78, 0x55, - 0x15, 0x97, 0x93, 0x08, 0xd3, 0x31, 0x1f, 0x0c, 0x31, 0x09, 0x87, 0xdc, 0x5c, 0xec, 0x6a, 0xbd, - 0xb6, 0xf7, 0x8a, 0x54, 0x1e, 0x48, 0xdd, 0xe7, 0x42, 0x65, 0x7c, 0x08, 0x1b, 0xf8, 0x38, 0xc1, - 0x3e, 0xc7, 0xc1, 0x00, 0x25, 0x49, 0x4a, 0x27, 0x78, 0x80, 0x8f, 0x93, 0xac, 0x8c, 0x84, 0xc6, - 0x66, 0x5b, 0x30, 0x5a, 0xcf, 0x21, 0xbb, 0x12, 0xf1, 0x69, 0x01, 0x30, 0xde, 0x07, 0xab, 0xb0, - 0x4f, 0xf1, 0xf7, 0xd8, 0xe7, 0x65, 0xf3, 0x6b, 0xc2, 0xdc, 0xcc, 0x11, 0x9e, 0x00, 0x5c, 0x58, - 0xef, 0xac, 0x64, 0x85, 0xcd, 0xf3, 0xb5, 0xdf, 0x84, 0xb5, 0x72, 0x65, 0xf2, 0x92, 0x19, 0xab, - 0xd0, 0x22, 0x81, 0x28, 0x4e, 0xdb, 0x6b, 0x91, 0xc0, 0x7e, 0x08, 0x37, 0xf7, 0x59, 0xa8, 0xb8, - 0xcc, 0xad, 0xe2, 0x06, 0xe8, 0xaa, 0x2a, 0x24, 0x10, 0x75, 0x6c, 0x7b, 0x37, 0xe4, 0xc1, 0x17, - 0x41, 0x8d, 0x40, 0x1f, 0xcc, 0xba, 0xe3, 0x82, 0xc4, 0x6d, 0x58, 0x62, 0x1c, 0xf1, 0x31, 0x53, - 0xfe, 0x95, 0x64, 0x8f, 0x60, 0x55, 0x92, 0x3e, 0xc0, 0x51, 0x32, 0x42, 0x1c, 0x5f, 0x42, 0xc5, - 0x80, 0x76, 0x8c, 0x22, 0x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00, + // 883 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0xaf, 0xd3, 0xb4, 0xbb, 0x7e, 0x2d, 0x65, 0xd7, 0x94, 0x5d, 0xd7, 0x45, 0xd9, 0xc8, 0x2c, + 0x28, 0x2a, 0xd4, 0xa6, 0x41, 0xe2, 0x50, 0xf1, 0x47, 0x29, 0x7f, 0x04, 0x87, 0x20, 0x64, 0xba, + 0x8b, 0x84, 0x04, 0xd9, 0x89, 0x3d, 0x75, 0xcc, 0xc6, 0x1e, 0xcb, 0x33, 0xc9, 0x26, 0x27, 0x10, + 0x47, 0x4e, 0x1c, 0xf9, 0x00, 0x1c, 0x38, 0xf6, 0xb0, 0x17, 0xbe, 0xc1, 0x1e, 0x57, 0x9c, 0x38, + 0x21, 0xd4, 0x1e, 0xfa, 0x35, 0x90, 0x67, 0xc6, 0x8e, 0xe3, 0x8d, 0x9b, 0x1c, 0x38, 0x24, 0xf1, + 0xcc, 0xfb, 0xbd, 0xf7, 0xfb, 0xbd, 0xf7, 0x66, 0x9e, 0x03, 0xfb, 0x4f, 0x50, 0xe2, 0xe1, 0xc8, + 0x46, 0x2e, 0xb3, 0xc7, 0x47, 0x7d, 0xcc, 0xd0, 0x91, 0xcd, 0x26, 0x56, 0x9c, 0x10, 0x46, 0x34, + 0x4d, 0x18, 0x2d, 0xe4, 0x32, 0x4b, 0x1a, 0x8d, 0xdb, 0x28, 0x0c, 0x22, 0x62, 0xf3, 0x6f, 0x01, + 0x33, 0xee, 0xba, 0x84, 0x86, 0x84, 0xda, 0x21, 0xf5, 0xed, 0xf1, 0x51, 0xfa, 0x23, 0x0d, 0x7b, + 0xc2, 0xd0, 0xe3, 0x2b, 0x5b, 0x2c, 0xa4, 0x69, 0xd7, 0x27, 0x3e, 0x11, 0xfb, 0xe9, 0x53, 0xe6, + 0xe0, 0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0x05, 0x37, 0x42, 0x4c, 0x29, 0xf2, 0xb1, 0x94, 0xbd, + 0x6b, 0x89, 0x5e, 0x58, 0x59, 0x2f, 0xac, 0x4e, 0x34, 0x75, 0x32, 0x90, 0xd6, 0x86, 0x57, 0x65, + 0x71, 0x59, 0x10, 0x62, 0x32, 0x62, 0xbd, 0x01, 0x0e, 0xfc, 0x01, 0xd3, 0xd7, 0x9b, 0x4a, 0xab, + 0xee, 0xbc, 0x22, 0x8c, 0xa7, 0xc2, 0xf6, 0x39, 0x37, 0x69, 0x1f, 0xc2, 0x3e, 0x9e, 0xc4, 0xd8, + 0x65, 0xd8, 0xeb, 0xa1, 0x38, 0x4e, 0xc8, 0x18, 0xf7, 0xf0, 0x24, 0x4e, 0xcb, 0x18, 0x90, 0x48, + 0xaf, 0x73, 0x45, 0x7b, 0x19, 0xa4, 0x23, 0x10, 0x9f, 0xe6, 0x00, 0xed, 0x7d, 0x30, 0x72, 0xff, + 0x04, 0xff, 0x80, 0x5d, 0x56, 0x74, 0xdf, 0xe0, 0xee, 0x7a, 0x86, 0x70, 0x38, 0x60, 0xe6, 0x7d, + 0xbc, 0x9d, 0x16, 0x36, 0xcb, 0xd7, 0x7c, 0x13, 0x76, 0x8b, 0x95, 0xc9, 0x4a, 0xa6, 0xed, 0x40, + 0x2d, 0xf0, 0x78, 0x71, 0xea, 0x4e, 0x2d, 0xf0, 0xcc, 0x21, 0xec, 0x08, 0xdc, 0x29, 0x0e, 0xe3, + 0x21, 0x62, 0xf8, 0x9a, 0x1a, 0x6a, 0x50, 0x8f, 0x50, 0x28, 0x0a, 0xa8, 0x3a, 0xfc, 0x59, 0x6b, + 0x00, 0x78, 0xf8, 0x2c, 0x88, 0x82, 0x94, 0x85, 0x17, 0x47, 0x75, 0x0a, 0x3b, 0x25, 0x55, 0x2d, + 0xb8, 0x33, 0xcf, 0x56, 0xa9, 0xeb, 0x47, 0xb8, 0x9d, 0x77, 0x7d, 0x05, 0x69, 0xc2, 0xbd, 0x96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 0x86, 0xc8, 0x03, 0x7f, 0x07, 0x5b, 0xc5, 0x33, 0x62, 0x56, 0x38, + 0x16, 0x30, 0xc6, 0xc1, 0x72, 0x4c, 0x31, 0x7c, 0x71, 0x56, 0x98, 0xd5, 0xba, 0x32, 0x4c, 0x65, + 0xf8, 0x45, 0x53, 0xe0, 0x0c, 0x76, 0x4a, 0x57, 0xfe, 0x8d, 0x6b, 0xab, 0x9a, 0x93, 0x1c, 0xae, + 0x04, 0xcb, 0x79, 0x1e, 0xc1, 0xf6, 0xdc, 0xe5, 0xad, 0x6a, 0x70, 0x11, 0x54, 0xd9, 0xe0, 0x45, + 0xd7, 0x55, 0x73, 0xe1, 0xa5, 0xf9, 0x1b, 0x72, 0xbf, 0xc2, 0x7b, 0x0e, 0x65, 0xbc, 0xbd, 0x0a, + 0x2a, 0x23, 0x31, 0x36, 0x7e, 0x4a, 0x5f, 0xad, 0x27, 0xdf, 0x3f, 0xbb, 0x68, 0x28, 0xcf, 0x2f, + 0x1a, 0xca, 0xbf, 0x17, 0x0d, 0xe5, 0xd7, 0xcb, 0xc6, 0xda, 0xf3, 0xcb, 0xc6, 0xda, 0xdf, 0x97, + 0x8d, 0xb5, 0x6f, 0x3f, 0xf1, 0x03, 0x36, 0x18, 0xf5, 0x2d, 0x97, 0x84, 0xb6, 0x08, 0x7c, 0xc8, + 0x5f, 0x77, 0x2e, 0x19, 0xca, 0x75, 0x69, 0x29, 0xdf, 0xc1, 0xe9, 0x3d, 0xa4, 0xd9, 0xbf, 0x8c, + 0xfe, 0x26, 0x07, 0xbd, 0xfb, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x62, 0x05, 0x77, 0xb2, 0x4c, + 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -944,8 +844,6 @@ type MsgClient interface { UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // NewAction creates a new Action. NewAction(ctx context.Context, in *MsgNewAction, opts ...grpc.CallOption) (*MsgNewActionResponse, error) - // Add an approval to an existing Action. - ApproveAction(ctx context.Context, in *MsgApproveAction, opts ...grpc.CallOption) (*MsgApproveActionResponse, error) // Checks a pending action and executes it if its in a valid state. CheckAction(ctx context.Context, in *MsgCheckAction, opts ...grpc.CallOption) (*MsgCheckActionResponse, error) // Create a new Template. @@ -984,15 +882,6 @@ func (c *msgClient) NewAction(ctx context.Context, in *MsgNewAction, opts ...grp return out, nil } -func (c *msgClient) ApproveAction(ctx context.Context, in *MsgApproveAction, opts ...grpc.CallOption) (*MsgApproveActionResponse, error) { - out := new(MsgApproveActionResponse) - err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Msg/ApproveAction", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) CheckAction(ctx context.Context, in *MsgCheckAction, opts ...grpc.CallOption) (*MsgCheckActionResponse, error) { out := new(MsgCheckActionResponse) err := c.cc.Invoke(ctx, "/warden.act.v1beta1.Msg/CheckAction", in, out, opts...) @@ -1045,8 +934,6 @@ type MsgServer interface { UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // NewAction creates a new Action. NewAction(context.Context, *MsgNewAction) (*MsgNewActionResponse, error) - // Add an approval to an existing Action. - ApproveAction(context.Context, *MsgApproveAction) (*MsgApproveActionResponse, error) // Checks a pending action and executes it if its in a valid state. CheckAction(context.Context, *MsgCheckAction) (*MsgCheckActionResponse, error) // Create a new Template. @@ -1069,9 +956,6 @@ func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateP func (*UnimplementedMsgServer) NewAction(ctx context.Context, req *MsgNewAction) (*MsgNewActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NewAction not implemented") } -func (*UnimplementedMsgServer) ApproveAction(ctx context.Context, req *MsgApproveAction) (*MsgApproveActionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApproveAction not implemented") -} func (*UnimplementedMsgServer) CheckAction(ctx context.Context, req *MsgCheckAction) (*MsgCheckActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckAction not implemented") } @@ -1128,24 +1012,6 @@ func _Msg_NewAction_Handler(srv interface{}, ctx context.Context, dec func(inter return interceptor(ctx, in, info, handler) } -func _Msg_ApproveAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgApproveAction) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ApproveAction(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/warden.act.v1beta1.Msg/ApproveAction", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ApproveAction(ctx, req.(*MsgApproveAction)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_CheckAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgCheckAction) if err := dec(in); err != nil { @@ -1249,10 +1115,6 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "NewAction", Handler: _Msg_NewAction_Handler, }, - { - MethodName: "ApproveAction", - Handler: _Msg_ApproveAction_Handler, - }, { MethodName: "CheckAction", Handler: _Msg_CheckAction_Handler, @@ -1430,71 +1292,6 @@ func (m *MsgNewActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgApproveAction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgApproveAction) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgApproveAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ActionId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.ActionId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgApproveActionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgApproveActionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgApproveActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Status) > 0 { - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintTx(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *MsgNewTemplate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1907,35 +1704,6 @@ func (m *MsgNewActionResponse) Size() (n int) { return n } -func (m *MsgApproveAction) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.ActionId != 0 { - n += 1 + sovTx(uint64(m.ActionId)) - } - return n -} - -func (m *MsgApproveActionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Status) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - func (m *MsgNewTemplate) Size() (n int) { if m == nil { return 0 @@ -2529,189 +2297,6 @@ func (m *MsgNewActionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgApproveAction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgApproveAction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgApproveAction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActionId", wireType) - } - m.ActionId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ActionId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgApproveActionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgApproveActionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgApproveActionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *MsgNewTemplate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/warden/x/warden/keeper/migrations.go b/warden/x/warden/keeper/migrations.go deleted file mode 100644 index baad7b81e..000000000 --- a/warden/x/warden/keeper/migrations.go +++ /dev/null @@ -1,20 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - v3 "github.com/warden-protocol/wardenprotocol/warden/x/warden/migrations/v3" -) - -// Migrator is a struct for handling in-place store migrations. -type Migrator struct { - keeper Keeper -} - -// NewMigrator returns a new Migrator. -func NewMigrator(keeper Keeper) Migrator { - return Migrator{keeper: keeper} -} - -func (m Migrator) Migrate2to3(ctx sdk.Context) error { - return v3.MigrateStore(ctx, m.keeper.storeService, m.keeper.cdc) -} diff --git a/warden/x/warden/migrations/v3/store.go b/warden/x/warden/migrations/v3/store.go deleted file mode 100644 index 9e90cc0f7..000000000 --- a/warden/x/warden/migrations/v3/store.go +++ /dev/null @@ -1,368 +0,0 @@ -package v3 - -import ( - "bytes" - "sort" - - "cosmossdk.io/collections" - "cosmossdk.io/core/store" - "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/warden-protocol/wardenprotocol/warden/repo" - "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta2" - "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta3" -) - -func MigrateStore(ctx sdk.Context, storeService store.KVStoreService, cdc codec.BinaryCodec) error { - os, err := oldStore(storeService, cdc) - if err != nil { - return err - } - - ns, err := newStore(storeService, cdc) - if err != nil { - return err - } - - return migrate(ctx, ns, os) -} - -func migrate(ctx sdk.Context, ns NewStore, os OldStore) error { - krs, err := os.KeyRequests.Iterate(ctx, nil) - if err != nil { - return err - } - - for ; krs.Valid(); krs.Next() { - kr, err := krs.Value() - if err != nil { - return err - } - newKr := migrateKeyRequest(kr) - if err := ns.KeyRequests.Set(ctx, newKr.Id, newKr); err != nil { - return err - } - } - - kcs, err := os.Keychains.Iterate(ctx, nil) - if err != nil { - return err - } - for ; kcs.Valid(); kcs.Next() { - kc, err := kcs.Value() - if err != nil { - return err - } - newKc := migrateKeychain(kc) - if err := ns.Keychains.Set(ctx, newKc.Id, newKc); err != nil { - return err - } - } - - spcs, err := os.Spaces.Iterate(ctx, nil) - if err != nil { - return err - } - ownersMap := make(map[string][]uint64) - for ; spcs.Valid(); spcs.Next() { - spc, err := spcs.Value() - if err != nil { - return err - } - newSpc := migrateSpace(spc) - if err := ns.Spaces.Set(ctx, newSpc.Id, newSpc); err != nil { - return err - } - - for _, owner := range newSpc.Owners { - ownersMap[owner] = append(ownersMap[owner], newSpc.Id) - } - } - - if err := migrateSpacesByOwner(ctx, ns, ownersMap); err != nil { - return err - } - - keys, err := os.Keys.Iterate(ctx, nil) - if err != nil { - return err - } - for ; keys.Valid(); keys.Next() { - key, err := keys.Value() - if err != nil { - return err - } - newKey := migrateKey(key) - if err := ns.Keys.Set(ctx, newKey.Id, newKey); err != nil { - return err - } - } - - keysBySpace, err := os.KeysBySpace.Iterate(ctx, nil) - if err != nil { - return err - } - for ; keysBySpace.Valid(); keysBySpace.Next() { - keyBySpace, err := keysBySpace.Key() - if err != nil { - return err - } - if err := ns.KeysBySpace.Set(ctx, collections.Join(keyBySpace.K1(), keyBySpace.K2())); err != nil { - return err - } - } - - signRequests, err := os.SignRequests.Iterate(ctx, nil) - if err != nil { - return err - } - for ; signRequests.Valid(); signRequests.Next() { - signRequest, err := signRequests.Value() - if err != nil { - return err - } - newSignRequest := migrateSignRequest(signRequest) - if err := ns.SignRequests.Set(ctx, newSignRequest.Id, newSignRequest); err != nil { - return err - } - } - - return nil -} - -func migrateKeyRequest(kr v1beta2.KeyRequest) v1beta3.KeyRequest { - return v1beta3.KeyRequest{ - Id: kr.Id, - Creator: kr.Creator, - SpaceId: kr.SpaceId, - KeychainId: kr.KeychainId, - KeyType: v1beta3.KeyType(kr.KeyType), - Status: v1beta3.KeyRequestStatus(kr.Status), - RejectReason: kr.RejectReason, - TemplateId: kr.IntentId, - } -} - -func migrateKeychain(kc v1beta2.Keychain) v1beta3.Keychain { - var fees v1beta3.KeychainFees - if kc.Fees != nil { - fees = v1beta3.KeychainFees{ - KeyReq: sdk.NewCoins(sdk.NewCoin("uward", math.NewInt(kc.Fees.KeyReq))), - SigReq: sdk.NewCoins(sdk.NewCoin("uward", math.NewInt(kc.Fees.SigReq))), - } - } - - return v1beta3.Keychain{ - Id: kc.Id, - Creator: kc.Creator, - Description: kc.Description, - Admins: kc.Admins, - Writers: kc.Parties, - Fees: fees, - } -} - -func migrateSpace(spc v1beta2.Space) v1beta3.Space { - return v1beta3.Space{ - Id: spc.Id, - Creator: spc.Creator, - Owners: spc.Owners, - AdminTemplateId: spc.AdminIntentId, - SignTemplateId: spc.SignIntentId, - } -} - -func migrateSpacesByOwner(ctx sdk.Context, ns NewStore, ownersMap map[string][]uint64) error { - // fix spaces by owner index that contains owners that were removed from the space - // rebuild the index from scratch - // WARN: Clear() can use a lot of memory as it stores all delete records in memory - if err := ns.SpacesByOwner.Clear(ctx, nil); err != nil { - return err - } - - spacesByOwner := make([]struct { - Owner sdk.AccAddress - Spaces []uint64 - }, 0, len(ownersMap)) - for owner, spaceIds := range ownersMap { - ownerAddr := sdk.MustAccAddressFromBech32(owner) - spacesByOwner = append(spacesByOwner, struct { - Owner sdk.AccAddress - Spaces []uint64 - }{ - Owner: ownerAddr, - Spaces: spaceIds, - }) - } - sort.Slice(spacesByOwner, func(i, j int) bool { - return bytes.Compare(spacesByOwner[i].Owner, spacesByOwner[j].Owner) < 0 - }) - - for _, os := range spacesByOwner { - for _, spaceId := range os.Spaces { - if err := ns.SpacesByOwner.Set(ctx, collections.Join(os.Owner, spaceId)); err != nil { - return err - } - } - } - - return nil -} - -func migrateKey(key v1beta2.Key) v1beta3.Key { - return v1beta3.Key{ - Id: key.Id, - SpaceId: key.SpaceId, - KeychainId: key.KeychainId, - Type: v1beta3.KeyType(key.Type), - PublicKey: key.PublicKey, - TemplateId: key.IntentId, - } -} - -func migrateSignRequest(sr v1beta2.SignRequest) v1beta3.SignRequest { - newSr := v1beta3.SignRequest{ - Id: sr.Id, - Creator: sr.Creator, - KeyId: sr.KeyId, - DataForSigning: sr.DataForSigning, - Status: v1beta3.SignRequestStatus(sr.Status), - EncryptionKey: nil, - } - - switch r := sr.Result.(type) { - case *v1beta2.SignRequest_SignedData: - newSr.Result = &v1beta3.SignRequest_SignedData{SignedData: r.SignedData} - case *v1beta2.SignRequest_RejectReason: - newSr.Result = &v1beta3.SignRequest_RejectReason{RejectReason: r.RejectReason} - } - - return newSr -} - -type NewStore struct { - KeyRequests repo.SeqCollection[v1beta3.KeyRequest] - Keychains repo.SeqCollection[v1beta3.Keychain] - Spaces repo.SeqCollection[v1beta3.Space] - SpacesByOwner collections.KeySet[collections.Pair[sdk.AccAddress, uint64]] - Keys collections.Map[uint64, v1beta3.Key] - KeysBySpace collections.KeySet[collections.Pair[uint64, uint64]] - SignRequests repo.SeqCollection[v1beta3.SignRequest] -} - -func newStore(storeService store.KVStoreService, cdc codec.BinaryCodec) (NewStore, error) { - var ( - SpaceSeqPrefix = collections.NewPrefix(0) - SpacesPrefix = collections.NewPrefix(1) - KeychainSeqPrefix = collections.NewPrefix(2) - KeychainsPrefix = collections.NewPrefix(3) - KeyPrefix = collections.NewPrefix(5) - KeyRequestSeqPrefix = collections.NewPrefix(6) - KeyRequestsPrefix = collections.NewPrefix(7) - SignRequestSeqPrefix = collections.NewPrefix(8) - SignRequestsPrefix = collections.NewPrefix(9) - KeysSpaceIndexPrefix = collections.NewPrefix(12) - SpacesByOwnerPrefix = collections.NewPrefix(13) - ) - - sb := collections.NewSchemaBuilder(storeService) - - spaceSeq := collections.NewSequence(sb, SpaceSeqPrefix, "spaces_sequence") - spacesColl := collections.NewMap(sb, SpacesPrefix, "spaces", collections.Uint64Key, codec.CollValue[v1beta3.Space](cdc)) - spaces := repo.NewSeqCollection(spaceSeq, spacesColl, func(v *v1beta3.Space, u uint64) { v.Id = u }) - spacesByOwner := collections.NewKeySet(sb, SpacesByOwnerPrefix, "spaces_by_owner", collections.PairKeyCodec(sdk.AccAddressKey, collections.Uint64Key)) - - keychainSeq := collections.NewSequence(sb, KeychainSeqPrefix, "keychain_sequence") - keychainColl := collections.NewMap(sb, KeychainsPrefix, "keychains", collections.Uint64Key, codec.CollValue[v1beta3.Keychain](cdc)) - keychains := repo.NewSeqCollection(keychainSeq, keychainColl, func(v *v1beta3.Keychain, u uint64) { v.Id = u }) - - keyRequestsSeq := collections.NewSequence(sb, KeyRequestSeqPrefix, "key_requests_sequence") - keyRequestsColl := collections.NewMap(sb, KeyRequestsPrefix, "key_requests", collections.Uint64Key, codec.CollValue[v1beta3.KeyRequest](cdc)) - keyRequests := repo.NewSeqCollection(keyRequestsSeq, keyRequestsColl, func(kr *v1beta3.KeyRequest, u uint64) { kr.Id = u }) - - keys := collections.NewMap(sb, KeyPrefix, "keys", collections.Uint64Key, codec.CollValue[v1beta3.Key](cdc)) - keysBySpace := collections.NewKeySet( - sb, KeysSpaceIndexPrefix, "keys_by_space", - collections.PairKeyCodec(collections.Uint64Key, collections.Uint64Key), - ) - - signRequestsSeq := collections.NewSequence(sb, SignRequestSeqPrefix, "signature_requests_sequence") - signRequestsColl := collections.NewMap(sb, SignRequestsPrefix, "signature_requests", collections.Uint64Key, codec.CollValue[v1beta3.SignRequest](cdc)) - signRequests := repo.NewSeqCollection(signRequestsSeq, signRequestsColl, func(sr *v1beta3.SignRequest, u uint64) { sr.Id = u }) - - if _, err := sb.Build(); err != nil { - return NewStore{}, err - } - - return NewStore{ - KeyRequests: keyRequests, - Keychains: keychains, - Spaces: spaces, - SpacesByOwner: spacesByOwner, - Keys: keys, - KeysBySpace: keysBySpace, - SignRequests: signRequests, - }, nil -} - -type OldStore struct { - KeyRequests repo.SeqCollection[v1beta2.KeyRequest] - Keychains repo.SeqCollection[v1beta2.Keychain] - Spaces repo.SeqCollection[v1beta2.Space] - SpacesByOwner collections.KeySet[collections.Pair[sdk.AccAddress, uint64]] - Keys collections.Map[uint64, v1beta2.Key] - KeysBySpace collections.KeySet[collections.Pair[uint64, uint64]] - SignRequests repo.SeqCollection[v1beta2.SignRequest] -} - -func oldStore(storeService store.KVStoreService, cdc codec.BinaryCodec) (OldStore, error) { - var ( - SpaceSeqPrefix = collections.NewPrefix(0) - SpacesPrefix = collections.NewPrefix(1) - KeychainSeqPrefix = collections.NewPrefix(2) - KeychainsPrefix = collections.NewPrefix(3) - KeyPrefix = collections.NewPrefix(5) - KeyRequestSeqPrefix = collections.NewPrefix(6) - KeyRequestsPrefix = collections.NewPrefix(7) - SignRequestSeqPrefix = collections.NewPrefix(8) - SignRequestsPrefix = collections.NewPrefix(9) - KeysSpaceIndexPrefix = collections.NewPrefix(12) - SpacesByOwnerPrefix = collections.NewPrefix(13) - ) - - sb := collections.NewSchemaBuilder(storeService) - - spaceSeq := collections.NewSequence(sb, SpaceSeqPrefix, "spaces_sequence") - spacesColl := collections.NewMap(sb, SpacesPrefix, "spaces", collections.Uint64Key, codec.CollValue[v1beta2.Space](cdc)) - spaces := repo.NewSeqCollection(spaceSeq, spacesColl, func(v *v1beta2.Space, u uint64) { v.Id = u }) - spacesByOwner := collections.NewKeySet(sb, SpacesByOwnerPrefix, "spaces_by_owner", collections.PairKeyCodec(sdk.AccAddressKey, collections.Uint64Key)) - - keychainSeq := collections.NewSequence(sb, KeychainSeqPrefix, "keychain sequence") - keychainColl := collections.NewMap(sb, KeychainsPrefix, "keychains", collections.Uint64Key, codec.CollValue[v1beta2.Keychain](cdc)) - keychains := repo.NewSeqCollection(keychainSeq, keychainColl, func(v *v1beta2.Keychain, u uint64) { v.Id = u }) - - keys := collections.NewMap(sb, KeyPrefix, "keys", collections.Uint64Key, codec.CollValue[v1beta2.Key](cdc)) - keysBySpace := collections.NewKeySet( - sb, KeysSpaceIndexPrefix, "keys_by_space", - collections.PairKeyCodec(collections.Uint64Key, collections.Uint64Key), - ) - - keyRequestsSeq := collections.NewSequence(sb, KeyRequestSeqPrefix, "key requests sequence") - keyRequestsColl := collections.NewMap(sb, KeyRequestsPrefix, "key requests", collections.Uint64Key, codec.CollValue[v1beta2.KeyRequest](cdc)) - keyRequests := repo.NewSeqCollection(keyRequestsSeq, keyRequestsColl, func(kr *v1beta2.KeyRequest, u uint64) { kr.Id = u }) - - signatureRequestsSeq := collections.NewSequence(sb, SignRequestSeqPrefix, "signature requests sequence") - signatureRequestsColl := collections.NewMap(sb, SignRequestsPrefix, "signature requests", collections.Uint64Key, codec.CollValue[v1beta2.SignRequest](cdc)) - signatureRequests := repo.NewSeqCollection(signatureRequestsSeq, signatureRequestsColl, func(sr *v1beta2.SignRequest, u uint64) { sr.Id = u }) - - return OldStore{ - KeyRequests: keyRequests, - Keychains: keychains, - Spaces: spaces, - SpacesByOwner: spacesByOwner, - Keys: keys, - KeysBySpace: keysBySpace, - SignRequests: signatureRequests, - }, nil -} diff --git a/warden/x/warden/module/module.go b/warden/x/warden/module/module.go index 7030cf26d..c1f5e924d 100644 --- a/warden/x/warden/module/module.go +++ b/warden/x/warden/module/module.go @@ -123,16 +123,6 @@ func NewAppModule( func (am AppModule) RegisterServices(cfg module.Configurator) { v1beta3.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) v1beta3.RegisterQueryServer(cfg.QueryServer(), am.keeper) - - m := keeper.NewMigrator(am.keeper) - if err := cfg.RegisterMigration(v1beta3.ModuleName, 1, func(ctx sdk.Context) error { - return nil - }); err != nil { - panic(fmt.Sprintf("failed to migrate x/warden from version 1 to 2: %v", err)) - } - if err := cfg.RegisterMigration(v1beta3.ModuleName, 2, m.Migrate2to3); err != nil { - panic(fmt.Sprintf("failed to migrate x/warden from version 2 to 3: %v", err)) - } } // RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) From 0d2b5e2a06c14bb98bd57a34c5332bdbb0c8977e Mon Sep 17 00:00:00 2001 From: Artur Abliazimov Date: Thu, 12 Sep 2024 17:35:49 +0300 Subject: [PATCH 16/18] Fix tests --- tests/testdata/snapshot-base/config/genesis.json | 2 +- tests/testdata/snapshot-keychain/config/genesis.json | 6 +++--- tests/testdata/snapshot-many-users/config/genesis.json | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/testdata/snapshot-base/config/genesis.json b/tests/testdata/snapshot-base/config/genesis.json index 9dac23c68..2c18da1c6 100644 --- a/tests/testdata/snapshot-base/config/genesis.json +++ b/tests/testdata/snapshot-base/config/genesis.json @@ -15,7 +15,7 @@ "prune_check_block_frequency": "10000" }, "actions": [], - "rules": [] + "templates": [] }, "auth": { "params": { diff --git a/tests/testdata/snapshot-keychain/config/genesis.json b/tests/testdata/snapshot-keychain/config/genesis.json index e76181584..6d323926e 100644 --- a/tests/testdata/snapshot-keychain/config/genesis.json +++ b/tests/testdata/snapshot-keychain/config/genesis.json @@ -15,7 +15,7 @@ "prune_check_block_frequency": "10000" }, "actions": [], - "rules": [] + "templates": [] }, "auth": { "params": { @@ -495,8 +495,8 @@ "owners": [ "warden1l4tcq95pcut9rlr8wkyehm6t4w43a504mf80tf" ], - "admin_rule_id": "0", - "sign_rule_id": "0", + "admin_template_id": "0", + "sign_template_id": "0", "nonce": "0" } ], diff --git a/tests/testdata/snapshot-many-users/config/genesis.json b/tests/testdata/snapshot-many-users/config/genesis.json index db7e161ae..099ec951c 100644 --- a/tests/testdata/snapshot-many-users/config/genesis.json +++ b/tests/testdata/snapshot-many-users/config/genesis.json @@ -15,7 +15,7 @@ "prune_check_block_frequency": "10000" }, "actions": [], - "rules": [] + "templates": [] }, "auth": { "params": { @@ -466,8 +466,8 @@ "owners": [ "warden1mtmn23whdfz7npaqyvjsuqnv0e23cawz458kst" ], - "admin_rule_id": "0", - "sign_rule_id": "0", + "admin_template_id": "0", + "sign_template_id": "0", "nonce": "0" } ], From 47d92c5ef83177acda4f6c0433072a0e2a099ca9 Mon Sep 17 00:00:00 2001 From: Artur Abliazimov Date: Thu, 12 Sep 2024 18:25:02 +0300 Subject: [PATCH 17/18] Add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 717f8573a..2ef4f0c8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,6 +62,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * (x/act) Add expected expressions to MsgAddAction * (x/act) Set approve/reject expressions in MsgNewAction. Change rules registry to keep approve/reject expressions. * (x/act) Rename `Rule` to `Template` +* (x/act) Remove Template and Approvers from Action. ### Features (non-breaking) From 3d2dc3231f929f2b1d52262a5801f08ce1aaf53e Mon Sep 17 00:00:00 2001 From: Artur Abliazimov Date: Fri, 13 Sep 2024 11:08:19 +0300 Subject: [PATCH 18/18] Update test genesis --- .../snapshot-base/config/genesis.json | 18 ++++---- ...e2d789cdc74d572a48b6de76477d9d1d79c9.json} | 2 +- .../snapshot-base/config/node_key.json | 2 +- .../config/priv_validator_key.json | 6 +-- ...3111779219015b37e235b7052b532bed3e.address | 1 - .../snapshot-base/keyring-test/alice.info | 2 +- ...320eee612d53ee503b33d8aa26deaa7423.address | 1 + .../snapshot-keychain/config/genesis.json | 42 ++++++++++--------- ...c73652207de103158c338b33962456430b20.json} | 2 +- .../snapshot-keychain/config/node_key.json | 2 +- .../config/priv_validator_key.json | 6 +-- ...556cc34510107fe3bc0116bcdff066affd.address | 1 + ...becfe9fd99cd432cd0fb4d1ad55ee0dd7a.address | 1 - ...2e8edfa2f50ba335a86f342b1b28525161.address | 1 + .../snapshot-keychain/keyring-test/bob.info | 2 +- ...64d4b1e6bf5239b3f4a89d7fb257efd3e6.address | 1 - ...1bd583c4ef018dc24a9ca69cdb58a21e0b.address | 1 + ...1681c71651fc6775899bef4babab1ed1f5.address | 1 - .../snapshot-keychain/keyring-test/val.info | 2 +- .../keyring-test/writer.info | 2 +- .../snapshot-many-users/config/genesis.json | 36 +++++++++------- ...fa98eea8f957a7ee0c30d6a1333e40382b65.json} | 2 +- .../snapshot-many-users/config/node_key.json | 2 +- .../config/priv_validator_key.json | 6 +-- ...2369afa892c981bda57d01773fa17e15eb.address | 1 + ...7aa17effe4688897cd2d7eca0866988f9b.address | 1 + ...02a8c139ccee4e241ae8400711db123b77.address | 1 - ...eadba63655897c60fdc3f40bfd9e12f5f8.address | 1 - ...27d817ee57621e13015d1d5ea63c6fa121.address | 1 - ...b79bdcd57db625471ae1deff5c0af164dd.address | 1 + ...6a9fba5f6d42a6ce681fddc97e9f36bd04.address | 1 + ...be7f1b48c2cdfdf1cfa457315912258070.address | 1 + ...af0f1dc2c531f1fe20d7dccb04bbfb4e88.address | 1 - ...880a5b72f0c84426791a34a84887d778b6.address | 1 + .../keyring-test/alice.info | 2 +- .../snapshot-many-users/keyring-test/bob.info | 2 +- .../keyring-test/charlie.info | 2 +- ...45d76a45e987a023250e026c7e551c75c2.address | 1 - .../keyring-test/dave.info | 2 +- ...5ef2934e3e31e167f8beee40cf2acd1a2d.address | 1 - .../keyring-test/erin.info | 2 +- .../keyring-test/frank.info | 2 +- 42 files changed, 87 insertions(+), 79 deletions(-) rename tests/testdata/snapshot-base/config/gentx/{gentx-d59e2ba4ecdee7940f933f68c71454e806896b81.json => gentx-85d1e2d789cdc74d572a48b6de76477d9d1d79c9.json} (50%) delete mode 100644 tests/testdata/snapshot-base/keyring-test/711f0c3111779219015b37e235b7052b532bed3e.address create mode 100644 tests/testdata/snapshot-base/keyring-test/b0b3c0320eee612d53ee503b33d8aa26deaa7423.address rename tests/testdata/{snapshot-many-users/config/gentx/gentx-cf82fb22664e7acd9509ecc3e3ba620b10b3f4eb.json => snapshot-keychain/config/gentx/gentx-365bc73652207de103158c338b33962456430b20.json} (50%) create mode 100644 tests/testdata/snapshot-keychain/keyring-test/25f15d556cc34510107fe3bc0116bcdff066affd.address delete mode 100644 tests/testdata/snapshot-keychain/keyring-test/6ed425becfe9fd99cd432cd0fb4d1ad55ee0dd7a.address create mode 100644 tests/testdata/snapshot-keychain/keyring-test/a5180d2e8edfa2f50ba335a86f342b1b28525161.address delete mode 100644 tests/testdata/snapshot-keychain/keyring-test/c4a77064d4b1e6bf5239b3f4a89d7fb257efd3e6.address create mode 100644 tests/testdata/snapshot-keychain/keyring-test/d0e1f31bd583c4ef018dc24a9ca69cdb58a21e0b.address delete mode 100644 tests/testdata/snapshot-keychain/keyring-test/fd57801681c71651fc6775899bef4babab1ed1f5.address rename tests/testdata/{snapshot-keychain/config/gentx/gentx-f7301620dce3081655aeeee0727c7c24432c937a.json => snapshot-many-users/config/gentx/gentx-0af5fa98eea8f957a7ee0c30d6a1333e40382b65.json} (50%) create mode 100644 tests/testdata/snapshot-many-users/keyring-test/0d16cb2369afa892c981bda57d01773fa17e15eb.address create mode 100644 tests/testdata/snapshot-many-users/keyring-test/4321b27aa17effe4688897cd2d7eca0866988f9b.address delete mode 100644 tests/testdata/snapshot-many-users/keyring-test/5a8be402a8c139ccee4e241ae8400711db123b77.address delete mode 100644 tests/testdata/snapshot-many-users/keyring-test/5eece0eadba63655897c60fdc3f40bfd9e12f5f8.address delete mode 100644 tests/testdata/snapshot-many-users/keyring-test/6db1d127d817ee57621e13015d1d5ea63c6fa121.address create mode 100644 tests/testdata/snapshot-many-users/keyring-test/772e4eb79bdcd57db625471ae1deff5c0af164dd.address create mode 100644 tests/testdata/snapshot-many-users/keyring-test/7e2d7a6a9fba5f6d42a6ce681fddc97e9f36bd04.address create mode 100644 tests/testdata/snapshot-many-users/keyring-test/832cfcbe7f1b48c2cdfdf1cfa457315912258070.address delete mode 100644 tests/testdata/snapshot-many-users/keyring-test/a24792af0f1dc2c531f1fe20d7dccb04bbfb4e88.address create mode 100644 tests/testdata/snapshot-many-users/keyring-test/ac147d880a5b72f0c84426791a34a84887d778b6.address delete mode 100644 tests/testdata/snapshot-many-users/keyring-test/daf73545d76a45e987a023250e026c7e551c75c2.address delete mode 100644 tests/testdata/snapshot-many-users/keyring-test/ea55665ef2934e3e31e167f8beee40cf2acd1a2d.address diff --git a/tests/testdata/snapshot-base/config/genesis.json b/tests/testdata/snapshot-base/config/genesis.json index 2c18da1c6..b5876ee2a 100644 --- a/tests/testdata/snapshot-base/config/genesis.json +++ b/tests/testdata/snapshot-base/config/genesis.json @@ -1,7 +1,7 @@ { "app_name": "wardend", - "app_version": "v0.5.0-beta-15-g33ef432ea-dirty", - "genesis_time": "2024-09-06T08:34:32.925007Z", + "app_version": "v0.5.0-beta-54-g5eac4c25-dirty", + "genesis_time": "2024-09-13T08:07:57.433906Z", "chain_id": "warden_1337-1", "initial_height": 1, "app_hash": null, @@ -28,7 +28,7 @@ "accounts": [ { "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "warden1wy0scvg3w7fpjq2mxl3rtdc99dfjhmf7vk5f3n", + "address": "warden1kzeuqvswaesj65lw2qan8k92ym025apr9jp7u7", "pub_key": null, "account_number": "0", "sequence": "0" @@ -45,7 +45,7 @@ }, "balances": [ { - "address": "warden1wy0scvg3w7fpjq2mxl3rtdc99dfjhmf7vk5f3n", + "address": "warden1kzeuqvswaesj65lw2qan8k92ym025apr9jp7u7", "coins": [ { "denom": "award", @@ -190,10 +190,10 @@ }, "min_self_delegation": "1", "delegator_address": "", - "validator_address": "wardenvaloper1wy0scvg3w7fpjq2mxl3rtdc99dfjhmf7adkv7z", + "validator_address": "wardenvaloper1kzeuqvswaesj65lw2qan8k92ym025apr5frmn0", "pubkey": { "@type": "/cosmos.crypto.ed25519.PubKey", - "key": "Up9G57Y75Etn3NgcGmBXww4DPtmmBnNNwTlAji0dv5U=" + "key": "7lAejH10J2fxy8blpKUdJXFclj2ZL7VdUOWMpd9cU+E=" }, "value": { "denom": "award", @@ -201,7 +201,7 @@ } } ], - "memo": "d59e2ba4ecdee7940f933f68c71454e806896b81@192.168.1.130:26656", + "memo": "85d1e2d789cdc74d572a48b6de76477d9d1d79c9@192.168.1.100:26656", "timeout_height": "0", "extension_options": [], "non_critical_extension_options": [] @@ -211,7 +211,7 @@ { "public_key": { "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", - "key": "Anj1s81qYDyf6siqPWcwB6I3Catxxqv83Clv4eYC/yOx" + "key": "A8zyfhwnQZcG30I0AIh3SEBIVws69EMkPl0/pEWKVKao" }, "mode_info": { "single": { @@ -230,7 +230,7 @@ "tip": null }, "signatures": [ - "mEphqrxtsl4PRW7rfk/3giXasRd1satHx5WRSPSfXp8IpMmhNWNqfZTf0fqNFaJzCtINnHyM0rh7fERnGQCX2gE=" + "CFLeHwrWusRn7krscSw9fiv11vlVS2H9lpZzxbd7BhYRWWm71aTywCRhkBvPZwWjRKKFlHvAQhJl45f3TIURFwE=" ] } ] diff --git a/tests/testdata/snapshot-base/config/gentx/gentx-d59e2ba4ecdee7940f933f68c71454e806896b81.json b/tests/testdata/snapshot-base/config/gentx/gentx-85d1e2d789cdc74d572a48b6de76477d9d1d79c9.json similarity index 50% rename from tests/testdata/snapshot-base/config/gentx/gentx-d59e2ba4ecdee7940f933f68c71454e806896b81.json rename to tests/testdata/snapshot-base/config/gentx/gentx-85d1e2d789cdc74d572a48b6de76477d9d1d79c9.json index 600829965..a3325b46d 100644 --- a/tests/testdata/snapshot-base/config/gentx/gentx-d59e2ba4ecdee7940f933f68c71454e806896b81.json +++ b/tests/testdata/snapshot-base/config/gentx/gentx-85d1e2d789cdc74d572a48b6de76477d9d1d79c9.json @@ -1 +1 @@ -{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"testing","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"","validator_address":"wardenvaloper1wy0scvg3w7fpjq2mxl3rtdc99dfjhmf7adkv7z","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"Up9G57Y75Etn3NgcGmBXww4DPtmmBnNNwTlAji0dv5U="},"value":{"denom":"award","amount":"1000000000000000000000"}}],"memo":"d59e2ba4ecdee7940f933f68c71454e806896b81@192.168.1.130:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"Anj1s81qYDyf6siqPWcwB6I3Catxxqv83Clv4eYC/yOx"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["mEphqrxtsl4PRW7rfk/3giXasRd1satHx5WRSPSfXp8IpMmhNWNqfZTf0fqNFaJzCtINnHyM0rh7fERnGQCX2gE="]} +{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"testing","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"","validator_address":"wardenvaloper1kzeuqvswaesj65lw2qan8k92ym025apr5frmn0","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"7lAejH10J2fxy8blpKUdJXFclj2ZL7VdUOWMpd9cU+E="},"value":{"denom":"award","amount":"1000000000000000000000"}}],"memo":"85d1e2d789cdc74d572a48b6de76477d9d1d79c9@192.168.1.100:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A8zyfhwnQZcG30I0AIh3SEBIVws69EMkPl0/pEWKVKao"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["CFLeHwrWusRn7krscSw9fiv11vlVS2H9lpZzxbd7BhYRWWm71aTywCRhkBvPZwWjRKKFlHvAQhJl45f3TIURFwE="]} diff --git a/tests/testdata/snapshot-base/config/node_key.json b/tests/testdata/snapshot-base/config/node_key.json index 5dc779a5f..3f4974bc3 100644 --- a/tests/testdata/snapshot-base/config/node_key.json +++ b/tests/testdata/snapshot-base/config/node_key.json @@ -1 +1 @@ -{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"emc2JmrTZfDUV8vWtJwRtVWeh1Ya3+wbEe7maftoU7nqn4LLJh+ODp/KrhLMXjMwI/XBGzbuHWha0EhLrf3GRA=="}} \ No newline at end of file +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"OYYwn3eeuF1QwC0Vi9angksEkjPpqwK+Dxqy2CaXNMJEyc9iQAJaImKj3Qs655ohQZtMW/eLck5DZP78rMx/UA=="}} \ No newline at end of file diff --git a/tests/testdata/snapshot-base/config/priv_validator_key.json b/tests/testdata/snapshot-base/config/priv_validator_key.json index 7ad274595..9a240a8f4 100644 --- a/tests/testdata/snapshot-base/config/priv_validator_key.json +++ b/tests/testdata/snapshot-base/config/priv_validator_key.json @@ -1,11 +1,11 @@ { - "address": "F9B0FBB11D3BE84406B2B2DA15584E5A44EFEF95", + "address": "4C494426ADF9C407FC426143C9FF2BF35011932E", "pub_key": { "type": "tendermint/PubKeyEd25519", - "value": "Up9G57Y75Etn3NgcGmBXww4DPtmmBnNNwTlAji0dv5U=" + "value": "7lAejH10J2fxy8blpKUdJXFclj2ZL7VdUOWMpd9cU+E=" }, "priv_key": { "type": "tendermint/PrivKeyEd25519", - "value": "q2ruJVr2AXCD6qt/18N7PAw/2WCdsd9VBpEgR93QesVSn0bntjvkS2fc2BwaYFfDDgM+2aYGc03BOUCOLR2/lQ==" + "value": "gZM7iXKULKvd5sZq4hyc1+RCMiYaZZKU4Y2edMAbY2DuUB6MfXQnZ/HLxuWkpR0lcVyWPZkvtV1Q5Yyl31xT4Q==" } } \ No newline at end of file diff --git a/tests/testdata/snapshot-base/keyring-test/711f0c3111779219015b37e235b7052b532bed3e.address b/tests/testdata/snapshot-base/keyring-test/711f0c3111779219015b37e235b7052b532bed3e.address deleted file mode 100644 index 0dec19e31..000000000 --- a/tests/testdata/snapshot-base/keyring-test/711f0c3111779219015b37e235b7052b532bed3e.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozMy4wODQ1NyArMDIwMCBDRVNUIG09KzAuMDQ5MDk1OTYwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoibm9ZU0VGR1c5aTdVdUtJZyJ9.HBnUNciGoNzyyxPE1PZVnJkczYVMjDPAADGUzsigf2AhgHza9NR-Tw.DdX3lD_J6UifcpKo.flnUNX73pAC-hUtML2s7UcZNk2X4EIx6_OsMAGDvEtNM-rhm2eLxwOs94C8aIUKtFp0Xel7cSD1zMjFGs8beGAe0siTM1gCdWl7l0pK15a24QK2NzRgpSXLFcAZXIkPcnYZQVp71WcrHqpJA9_m5GBzhheNnmrl10gr8lboe0vQdRvldQstQDOL05u_gBawa8a3LAdd1LFGRq8Fs-xTz0ivamHwCulaVwj1EfH5VKDccB2oM7J4.uV04a9tuNHNO8bh2IjqGkA \ No newline at end of file diff --git a/tests/testdata/snapshot-base/keyring-test/alice.info b/tests/testdata/snapshot-base/keyring-test/alice.info index a1d6ede67..6ab67aac4 100644 --- a/tests/testdata/snapshot-base/keyring-test/alice.info +++ b/tests/testdata/snapshot-base/keyring-test/alice.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozMy4wODM0MTIgKzAyMDAgQ0VTVCBtPSswLjA0NzkzODAwMSIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6IkFCY2lrcFdnVWdqQ3g1bmUifQ.w5QO_4MUapxvoKpst830My8fMSnV0tpeURwlZGEJH_Usdndi5mbVag.wAghHuR5pHSWEyi-.SHhK93ZQgMKrYLKKmx3PEACSD8IBojxQDewFrqVJwsS3vxgLP1JNCjSW3lah-b8Ra_-moy7WSm9YonYsJVf7plqkTwa0iIbYt_Rm8CoGwiYYAZwUL0ndjFWwf4VI6WeN-J_frXgKdXFx4ed57AcDsfjeIb8F3oQFbgoOYb5R-HdJyTHar4KyVL-zoa2ivFTlEyMtzWX_BwCOttHLkIgH0qpjD5dtH8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data/snapshot-base/keyring-test/b0b3c0320eee612d53ee503b33d8aa26deaa7423.address b/tests/testdata/snapshot-base/keyring-test/b0b3c0320eee612d53ee503b33d8aa26deaa7423.address new file mode 100644 index 000000000..96a0959a4 --- /dev/null +++ b/tests/testdata/snapshot-base/keyring-test/b0b3c0320eee612d53ee503b33d8aa26deaa7423.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowNzo1Ny42NjIwNyArMDMwMCBNU0sgbT0rMC4wNjkzNzIxNjgiLCJlbmMiOiJBMjU2R0NNIiwicDJjIjo4MTkyLCJwMnMiOiJfT0RNSklkclp6Y212dnJIIn0.opIZ6JKwah6qNElwVn2XHBKPrUTgZdQ6KC9yQbbBd1LpOMTIaj3Wbg.QACB54N7WhfK0K60.PqcebSE06mzw6BwW5Acdn2Vo9125hmelN_URJC6TYnWySGpkDa9wXheepqNoKlY27QnGCSqMh_BsrMC0uNaWLLGYRxmHz-I2wVI69nkPdKRdWbo8EL8IPxN4l3CFrQslszhMlxpuhW66Gd0dJfviC-MUM8rRPS0d9Ws1GtQU237syVfjbQp0Pc1dvYcAfy-y5bvlZoj0Tw4U4cc7zxk_HZHFkUBylKhjspiV_9yH_z5AP4NP9gk.jfQ9Y2UsETsqxsIapFRwSA \ No newline at end of file diff --git a/tests/testdata/snapshot-keychain/config/genesis.json b/tests/testdata/snapshot-keychain/config/genesis.json index 6d323926e..e1130e1ed 100644 --- a/tests/testdata/snapshot-keychain/config/genesis.json +++ b/tests/testdata/snapshot-keychain/config/genesis.json @@ -1,7 +1,7 @@ { "app_name": "wardend", - "app_version": "v0.5.0-beta-15-g33ef432ea-dirty", - "genesis_time": "2024-09-06T08:34:34.67174Z", + "app_version": "v0.5.0-beta-54-g5eac4c25-dirty", + "genesis_time": "2024-09-13T08:07:59.322029Z", "chain_id": "warden_1337-1", "initial_height": 1, "app_hash": null, @@ -28,21 +28,21 @@ "accounts": [ { "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "warden1cjnhqex5k8nt753ek06238tlkft7l5lx2nphhp", + "address": "warden16rslxx74s0zw7qvdcf9fef5umdv2y8stwz0vfc", "pub_key": null, "account_number": "0", "sequence": "0" }, { "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "warden1dm2zt0k0a87enn2r9ng0kng6640wpht6u75e4y", + "address": "warden1yhc464tvcdz3qyrluw7qz94umlcxdtlam4ehps", "pub_key": null, "account_number": "1", "sequence": "0" }, { "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "warden1l4tcq95pcut9rlr8wkyehm6t4w43a504mf80tf", + "address": "warden155vq6t5wm7302zarxk5x7dptrv59y5tpap76n3", "pub_key": null, "account_number": "2", "sequence": "0" @@ -59,7 +59,7 @@ }, "balances": [ { - "address": "warden1dm2zt0k0a87enn2r9ng0kng6640wpht6u75e4y", + "address": "warden1yhc464tvcdz3qyrluw7qz94umlcxdtlam4ehps", "coins": [ { "denom": "award", @@ -68,7 +68,7 @@ ] }, { - "address": "warden1cjnhqex5k8nt753ek06238tlkft7l5lx2nphhp", + "address": "warden155vq6t5wm7302zarxk5x7dptrv59y5tpap76n3", "coins": [ { "denom": "award", @@ -77,7 +77,7 @@ ] }, { - "address": "warden1l4tcq95pcut9rlr8wkyehm6t4w43a504mf80tf", + "address": "warden16rslxx74s0zw7qvdcf9fef5umdv2y8stwz0vfc", "coins": [ { "denom": "award", @@ -222,10 +222,10 @@ }, "min_self_delegation": "1", "delegator_address": "", - "validator_address": "wardenvaloper1cjnhqex5k8nt753ek06238tlkft7l5lxmgrjcs", + "validator_address": "wardenvaloper16rslxx74s0zw7qvdcf9fef5umdv2y8stledfxf", "pubkey": { "@type": "/cosmos.crypto.ed25519.PubKey", - "key": "180aU3UpdMWa6Wre9x+JjSQng5DAzOHvfuV4aXbe9Hs=" + "key": "IVhUv1xTOABsyCUz7yR/+g6Q00/Fk9Psg6g0OQpzQXc=" }, "value": { "denom": "award", @@ -233,7 +233,7 @@ } } ], - "memo": "f7301620dce3081655aeeee0727c7c24432c937a@192.168.1.130:26656", + "memo": "365bc73652207de103158c338b33962456430b20@192.168.1.100:26656", "timeout_height": "0", "extension_options": [], "non_critical_extension_options": [] @@ -243,7 +243,7 @@ { "public_key": { "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", - "key": "A21CBG5QiJaGmJguJnL+ruf2mVDkX/9FEk5K0ZFGuA4E" + "key": "A7oULgUxzUr5QVK85++i8QFrSd978gOoYPj+aa1tc+XA" }, "mode_info": { "single": { @@ -262,7 +262,7 @@ "tip": null }, "signatures": [ - "uvvzNYMHRj7j+D3yJjSm/sHWYa1RF09aYCfC9+j1aKQEgKPss+XQEnDbarkYJHrhmCBu4EeECdArhQ5C2lM7/gE=" + "3MfCSl39gM6eFGssqjoHsejOTA1kg/NdZEMzSADr00dWKepMtmffCiIY6JfaxvT0yBtv8txjpg83hN0axvxwGQE=" ] } ] @@ -461,13 +461,13 @@ "keychains": [ { "id": "1", - "creator": "warden1dm2zt0k0a87enn2r9ng0kng6640wpht6u75e4y", + "creator": "warden1yhc464tvcdz3qyrluw7qz94umlcxdtlam4ehps", "name": "Test Keychain", "admins": [ - "warden1dm2zt0k0a87enn2r9ng0kng6640wpht6u75e4y" + "warden1yhc464tvcdz3qyrluw7qz94umlcxdtlam4ehps" ], "writers": [ - "warden1dm2zt0k0a87enn2r9ng0kng6640wpht6u75e4y" + "warden1yhc464tvcdz3qyrluw7qz94umlcxdtlam4ehps" ], "fees": { "key_req": [ @@ -491,13 +491,17 @@ "spaces": [ { "id": "1", - "creator": "warden1l4tcq95pcut9rlr8wkyehm6t4w43a504mf80tf", + "creator": "warden155vq6t5wm7302zarxk5x7dptrv59y5tpap76n3", "owners": [ - "warden1l4tcq95pcut9rlr8wkyehm6t4w43a504mf80tf" + "warden155vq6t5wm7302zarxk5x7dptrv59y5tpap76n3" ], "admin_template_id": "0", "sign_template_id": "0", - "nonce": "0" + "nonce": "0", + "approve_admin_template_id": "0", + "reject_admin_template_id": "0", + "approve_sign_template_id": "0", + "reject_sign_template_id": "0" } ], "keys": [], diff --git a/tests/testdata/snapshot-many-users/config/gentx/gentx-cf82fb22664e7acd9509ecc3e3ba620b10b3f4eb.json b/tests/testdata/snapshot-keychain/config/gentx/gentx-365bc73652207de103158c338b33962456430b20.json similarity index 50% rename from tests/testdata/snapshot-many-users/config/gentx/gentx-cf82fb22664e7acd9509ecc3e3ba620b10b3f4eb.json rename to tests/testdata/snapshot-keychain/config/gentx/gentx-365bc73652207de103158c338b33962456430b20.json index 9f252408f..04b9a1085 100644 --- a/tests/testdata/snapshot-many-users/config/gentx/gentx-cf82fb22664e7acd9509ecc3e3ba620b10b3f4eb.json +++ b/tests/testdata/snapshot-keychain/config/gentx/gentx-365bc73652207de103158c338b33962456430b20.json @@ -1 +1 @@ -{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"testing","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"","validator_address":"wardenvaloper1mtmn23whdfz7npaqyvjsuqnv0e23cawzy09nl6","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"Tn4oJx/cZ5+nRB8NVqQPXB4+Vu1IhUHfsAj+syD1EP0="},"value":{"denom":"award","amount":"1000000000000000000000"}}],"memo":"cf82fb22664e7acd9509ecc3e3ba620b10b3f4eb@192.168.1.130:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"Asdk74BI61C5rg7vSn01DRYsl6rh4u1HN2fBl4vYOl7e"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["WH8TkuQ00UQC/vtOT0D8X+5xJfRjhEFPwZQyNEolqLZcH7xUsj+GL4VOFsgeo+XAyjb85xotr/XvJ8aH1HDADQA="]} +{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"testing","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"","validator_address":"wardenvaloper16rslxx74s0zw7qvdcf9fef5umdv2y8stledfxf","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"IVhUv1xTOABsyCUz7yR/+g6Q00/Fk9Psg6g0OQpzQXc="},"value":{"denom":"award","amount":"1000000000000000000000"}}],"memo":"365bc73652207de103158c338b33962456430b20@192.168.1.100:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A7oULgUxzUr5QVK85++i8QFrSd978gOoYPj+aa1tc+XA"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["3MfCSl39gM6eFGssqjoHsejOTA1kg/NdZEMzSADr00dWKepMtmffCiIY6JfaxvT0yBtv8txjpg83hN0axvxwGQE="]} diff --git a/tests/testdata/snapshot-keychain/config/node_key.json b/tests/testdata/snapshot-keychain/config/node_key.json index dc99f3226..e2b78ac40 100644 --- a/tests/testdata/snapshot-keychain/config/node_key.json +++ b/tests/testdata/snapshot-keychain/config/node_key.json @@ -1 +1 @@ -{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"QLdbUw0XoMW0hW+6FBLVSu9Y7+dEAyfH8ompjX+CPzWmGq0FitBkLpLbijHY2gq0cIuyKDFegkKcYyt/dS5DdQ=="}} \ No newline at end of file +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"mlY6J9l77GOlY4Kl4gBphhy/NK/tx5fNWH8luXE5n5l5q8bhaLq2Bx2y5JDOZEIF9PEZTSLFH61diKk14jOizg=="}} \ No newline at end of file diff --git a/tests/testdata/snapshot-keychain/config/priv_validator_key.json b/tests/testdata/snapshot-keychain/config/priv_validator_key.json index 7b5433216..2f8e86197 100644 --- a/tests/testdata/snapshot-keychain/config/priv_validator_key.json +++ b/tests/testdata/snapshot-keychain/config/priv_validator_key.json @@ -1,11 +1,11 @@ { - "address": "0948E4B1CD67BD92A5E5E4BB0B8D16DEF0474868", + "address": "6D314D957C95BA8EE464BF9DC349C140E80237B3", "pub_key": { "type": "tendermint/PubKeyEd25519", - "value": "180aU3UpdMWa6Wre9x+JjSQng5DAzOHvfuV4aXbe9Hs=" + "value": "IVhUv1xTOABsyCUz7yR/+g6Q00/Fk9Psg6g0OQpzQXc=" }, "priv_key": { "type": "tendermint/PrivKeyEd25519", - "value": "aX27Pwj9tPvJqa3h/x0R9cAbKgWb6w1uahfVyOqP0sTXzRpTdSl0xZrpat73H4mNJCeDkMDM4e9+5Xhpdt70ew==" + "value": "UBStFeSy7Q2xBz5YFs0eufEg/haR++M2irC5N2ctvBQhWFS/XFM4AGzIJTPvJH/6DpDTT8WT0+yDqDQ5CnNBdw==" } } \ No newline at end of file diff --git a/tests/testdata/snapshot-keychain/keyring-test/25f15d556cc34510107fe3bc0116bcdff066affd.address b/tests/testdata/snapshot-keychain/keyring-test/25f15d556cc34510107fe3bc0116bcdff066affd.address new file mode 100644 index 000000000..ac4ba32fe --- /dev/null +++ b/tests/testdata/snapshot-keychain/keyring-test/25f15d556cc34510107fe3bc0116bcdff066affd.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowNzo1OS42MDEyMjkgKzAzMDAgTVNLIG09KzAuMDYxODU4NTQzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiYmRIVzdabUk4VlcxTXJFWSJ9.ngG43k1r39tSCXxAgg9_F9Rcf7pevd5RPOLs9NGJCbo2iPLXDA0tzQ.Yq9cw7HslhakIwlZ.meJ7B17oF6i-4Q3LRUOYCof2EEOCcsKKKXbVnO0OGp2d9Vp8baRdJwLfLzqjxdMVF55YxaOJmIDN_m4DKlB5hPgNEpkK_yGlFekvHFIDo7zzliIFxXwS5ve8ptxuwpqJwFkdVISTvYoOgMXKfaIMR20NuVE1cj8JMEk-vTcu69P9PFDpS5CyduIoepzRxJs3YxHzAgzMht31AvJlX1pi5HyUcN7VqMhcaG-piWGVOdM7i8SKHVw.gaApgiNflQPSQERteI3TNA \ No newline at end of file diff --git a/tests/testdata/snapshot-keychain/keyring-test/6ed425becfe9fd99cd432cd0fb4d1ad55ee0dd7a.address b/tests/testdata/snapshot-keychain/keyring-test/6ed425becfe9fd99cd432cd0fb4d1ad55ee0dd7a.address deleted file mode 100644 index 28b841f2f..000000000 --- a/tests/testdata/snapshot-keychain/keyring-test/6ed425becfe9fd99cd432cd0fb4d1ad55ee0dd7a.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNC44OTUyNDggKzAyMDAgQ0VTVCBtPSswLjA0NzQ4NzMzNCIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6Im5lV21PLW12emk4ekRUNDEifQ.1vqrIgdF3sW2SunEqa38V8qzBsUZOtt-n3T7oSpF9yt4e72bFvDySQ.sSnILY3MGv8uUuQQ.wh7uUihwhTvgt2N7DkInIMPlJLji-dcL6WPwyYxNzuB89nAFhWQ2w1dYlToO4LkCmgg-n7KbKGHiO6F2-Nmed2YsD1qeXnTwHWueaHCvCs8M15VT6QlTNeQKzu4wput8Ddw-WXmlpV550p6iTJvP2KzDMNj5lgQoke2Jv2bMs7HQ7YxUncaf29JCIpHHdtdOgr3l2CrqPL_UeLlSGIj1yyFnFldw6b8rP6Of2R6YDYB2faysb5U.uc0X4i2xpWKH6hh2qSBNig \ No newline at end of file diff --git a/tests/testdata/snapshot-keychain/keyring-test/a5180d2e8edfa2f50ba335a86f342b1b28525161.address b/tests/testdata/snapshot-keychain/keyring-test/a5180d2e8edfa2f50ba335a86f342b1b28525161.address new file mode 100644 index 000000000..3382c3383 --- /dev/null +++ b/tests/testdata/snapshot-keychain/keyring-test/a5180d2e8edfa2f50ba335a86f342b1b28525161.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowNzo1OS42NzM0OTEgKzAzMDAgTVNLIG09KzAuMDYwNzYxNzUxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoib2w1QjQ3Y3pyWVI3d1VSSiJ9.anMuxWRqiDIsYJ8-vQtV1PRMQN1aTfSQ-t9Z9HZxs7sAWMtG4c7gNA.UQCQm_Y8TdoopJKq.XKEF3QedJ-j_pw-tQOufj9WxtpdWi4EQAfzFTBcIpSXP8DaZnBjcMLGkrVo5ePQzUsdLWl3bfUfT8wQ97TlM1Kjat35uT9bOPU1YzE697pG6B4lyB5rM8oxkHyN3eYFl_3t2-iLNejWVyjUZaN0ASkhaLxK7EcaOQQozzk4jeBLpZ3nEtE-V6M0snjNHREXhE1AHFfEsWvRUWU8IwgRIyTm40sb1wGbfA-Z70zvQ5GO7Zg.0Ozw0pJBrpxG4RBOMzccfQ \ No newline at end of file diff --git a/tests/testdata/snapshot-keychain/keyring-test/bob.info b/tests/testdata/snapshot-keychain/keyring-test/bob.info index ba5f05741..dcb0f8ad4 100644 --- a/tests/testdata/snapshot-keychain/keyring-test/bob.info +++ b/tests/testdata/snapshot-keychain/keyring-test/bob.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNC45NTA2MTUgKz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sC56BkuiFx-NLUgR-Wy5-7J7mK28cuEiKn2vccOzKZ12Mp03rhOTa_UdiDumVvskY_keYevQCRZIAkm8HjfyT4qnsAGvGj38dDlHuIrA4qVzzSB421xMNSnx3AyYFrvPiWYrnH53KHz-fp3isx2TANhuf93eldq2-buFfqW8mBK-xhP-2UxP_01tp2YlvdRoUJir8wetbZmQlYfQ4sKHSkg4c4Ewg7KZXU8ra9yImnbHNSVkpyIRRfwk3OqG-RdMjFmQZD8vZAlBI9QxVNiXUOtu-CFGSgMkOkG-Jal4IM7ms9zl01XAGuuo_mjdicbwFixOfSc8oteQOmcPaEIgeK7sAvE3Ou.Cvc8NRlvoeDiRdh7GWGAMw \ No newline at end of file diff --git a/tests/testdata/snapshot-keychain/keyring-test/c4a77064d4b1e6bf5239b3f4a89d7fb257efd3e6.address b/tests/testdata/snapshot-keychain/keyring-test/c4a77064d4b1e6bf5239b3f4a89d7fb257efd3e6.address deleted file mode 100644 index 67d28c4e3..000000000 --- a/tests/testdata/snapshot-keychain/keyring-test/c4a77064d4b1e6bf5239b3f4a89d7fb257efd3e6.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNC44MzkzMTEgKzAyMDAgQ0VTVCBtPSswLjA1MzY1NjA0MiIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6IkI2T1loMG8tUlZjT0tnVFUifQ.H2twKiK97Lc3ULCn2ae3xY8IcAoF9_5xR07pm_wWKmroCT7PGOXGig.GDAog47kCME-cVwf.wAhwHFxT7BTtrLJGGxlceSKpGhc28dCw00YromDdg3mICfMyJCZrBxtJU4alCWW24eZ5wx7e8DiKKcxjXa21aRFpplgPle_MnKeQSys-xSySZzEkal_kXB918CHJspxzGQ8FXruWWWVAErKndPKBM1GPAfm-DKdjSXZXsmi8i036wn_m6mgQBeSCKLDHppumakKF-pGwgQ6FU0AJqpmKXwQXmjTPyfbFGE2EnUD0xrpXoA.PztULfBcjdkLfTjxXs1L4g \ No newline at end of file diff --git a/tests/testdata/snapshot-keychain/keyring-test/d0e1f31bd583c4ef018dc24a9ca69cdb58a21e0b.address b/tests/testdata/snapshot-keychain/keyring-test/d0e1f31bd583c4ef018dc24a9ca69cdb58a21e0b.address new file mode 100644 index 000000000..7323603b9 --- /dev/null +++ b/tests/testdata/snapshot-keychain/keyring-test/d0e1f31bd583c4ef018dc24a9ca69cdb58a21e0b.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowNzo1OS41MjgwNTQgKzAzMDAgTVNLIG09KzAuMDYwOTk1NTQzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiMkFxNUtxbnhGVEVmTFRIayJ9.rNWDW1J-E86KBZ4sggjSS0zFzIYEL1AAdhJMd7Bxa69xV17j_pa3UQ.l1pg0ob6OR6PKS4Q.EV3MlID1k6lhjG1zibcIwr5eodQ6uEqo1PkuhDVLhz2u9uja-ClSutW-wpOEaT-lEE_xZEVm0PKyIxAXo64aZuzdPx5z_OlOW6WGb8VK3gWoQhfq8AhPAwuzyEb7iKv2sg3iXCtwXFlJLi6YRnUdX4oNswE2kVJkXVPHJU9cNWQjry03sg7-L2JDno2blJ1AQthJuD_yhvrYJHWORZTnZ4E6sp6kblDGe2urpz8ypbqPFw.2JpgIbffaD8DxI2X-OOBeg \ No newline at end of file diff --git a/tests/testdata/snapshot-keychain/keyring-test/fd57801681c71651fc6775899bef4babab1ed1f5.address b/tests/testdata/snapshot-keychain/keyring-test/fd57801681c71651fc6775899bef4babab1ed1f5.address deleted file mode 100644 index 2708c5db8..000000000 --- a/tests/testdata/snapshot-keychain/keyring-test/fd57801681c71651fc6775899bef4babab1ed1f5.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNC45NTE3MzIgKzAyMDAgQ0VTVCBtPSswLjA0ODA4MDc1MSIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6Ikh4Y1dmYnI2RXZtbjZock8ifQ.eM2N0_u7du-OEFMYcC0Iqjxjb09UlBxp2gmFASBIwIh7pl5fEivSAQ.1w0j5PP2Y6BthBv6.jHc_hNU4shDmebbm_R0Ax42Hlf_tfbaVQedThb-zE_aHUZuNQWeYTcMLsvxaCgdsGiILM4gb3Wha62udIRcE8AE1B2xdqaw_HXF01g39-vUi1MVV8jbY96YNWnZ2QhPmeJlC32X0_Xxr48Ya56nm4pQ9KSEeAgFDxI4DKzDQaZgzCD9COczSgzhJt4-KupnMrQFjqAteXtHuYEWVQkwZtfaP7ppXrr0wp6mU54KxvZ4qLw.CMzk3sPGBze7DvAWnMz1OQ \ No newline at end of file diff --git a/tests/testdata/snapshot-keychain/keyring-test/val.info b/tests/testdata/snapshot-keychain/keyring-test/val.info index 6b1f96f84..7a16f372e 100644 --- a/tests/testdata/snapshot-keychain/keyring-test/val.info +++ b/tests/testdata/snapshot-keychain/keyring-test/val.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNC44MzY4NjkgKzAyMDAgQ0VTVCBtPSswLjA1MTIxNDA4NCIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6IkU4ZXdaYkhlY3l1WFJab1cifQ.wTrjgur7m5BP2RrY2xBzieRQmCqNB-CH6xmnFgcNsune9ceAPUsF-Q.EeU-qqjWD1sVztkK.RUhe7uGYwjQ_FuDme25GEvu9-OALLy3vE9--OjA84YGSPurHI5xx49juULaN_T4_Cp2RgREMqbRBxiuZfaEzZlwZHC59jrEmugmPok-PwXTHjLiOPJ2Lsnqpf34LnjCHi1qbZRZM6EZp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mwIHeZqVT3kcGJ0ijVTaU.ttMR7pE_cOI_B54h3bxygQ \ No newline at end of file diff --git a/tests/testdata/snapshot-keychain/keyring-test/writer.info b/tests/testdata/snapshot-keychain/keyring-test/writer.info index d5db71337..b54957a76 100644 --- a/tests/testdata/snapshot-keychain/keyring-test/writer.info +++ b/tests/testdata/snapshot-keychain/keyring-test/writer.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNC44OTQxMTggKzAyMDAgQ0VTVCBtPSswLjA0NjM1NzYyNiIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6ImVORXZxcGlqT1hPOUdhRHkifQ.dnQxp3-QnMT-v7b9ymCaMB7mRryT37Ebvxg-3IS91NyhfRZC5cv4-g.2vPJR7yAyEsCbPr1.yON9hzUGVf56oPk87Bmgstt5C5twX42R2tvO6Cb2ZQw9mslush72axbfIjWCG9OuqkMZZ2vHALmSjpmBC-xpH2JogOYNRmwXQ8HjyGzP5doSUniU642EjE13pduDcQ_AtMc7C1nspQaTMOSUaoYHwFhkbsKNwu0J3oZ_uiDXt_n8pvnfiGBDuZ07lMzfqqrshRN1PW4u79Ws0b4SArBrSrAJqB421PTwsxzPoaLBLz022ETZVIT2hFMCoVIMD1-DtktgQMaL8-rin-zOVXhpTUnSWEmlpF42HFQ5UR2Bv3uuBX7XcRSm6t7jrRFW_hATFnpSV8xfvj-D--eEXkdFnqOpvdE8AVxbdg0Kqf4bJ9lr5i8HJiRfeLHknf4C5_eP25ViE0nV9x_gDyspuHjaLEfNxFTjqQjkAtHZLo4ntT325OshRh5PnUBwUbf5qSP-nUBfFazym1wfSIEtWZUUovXKiQMZKamTaA.4TwW8zV8av_A_YmS05DJow \ No newline at end of file +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowNzo1OS41OTk3NiArMDMwMCBNU0sgbT0rMC4wNjAzOTAwODUiLCJlbmMiOiJBMjU2R0NNIiwicDJjIjo4MTkyLCJwMnMiOiJRSVU4UG1EWllxSExkYk1DIn0.hnboGMSo1z5RnkERSpjRA2k93XMk12wadQpsZqtVjnhRW1QfmHLHNg.4BVZcZbuFiuFwfEo.TaOBeYDbe0h2JORdBp2C_KqS47vfsVAeTfy8oKEy19sdP8kbmFiBbSVgaqt9UQFkVtXlywdhxf_VS5IQSFe2Dat4Inu0nz1yROIxipdjhZe1UbCv70Okc44oYZ-PutkNJ1h5MUfBMBtfHN1hm4vfU8U8auPVhHo_Aj40xS-76U4n6XS5JZ1WOuI87JIQiexxVEW9g5din4Lj-MZr7gVnGicq5t-XZk3FizjQee7rDUQgHDWsjjJIJ5LpVQTwvfkQk4PXv4B5mGAL5F3sRZPziGvcyCis72TmfJSajxtVOEjFzeQeGcTff-h5ROIKeZ9qY3zG5xXys4k8kKK-Y9miLAkTLhcnrg0FIJY9Y9y4_KEjGSuPLItLX8nIdHhBp1Cng66zF_CNpy5ZetMjCnrkF4YRd-S_ei0WJJpOtcn-Rrhjma8-ZBteiOF0AjOdXPGdSILoZ7rqidJ0nd8lh1JgjGenXnT4xxgyYg.9R4lh9cIPiprr-R8DvMzjA \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/config/genesis.json b/tests/testdata/snapshot-many-users/config/genesis.json index 099ec951c..f488115f7 100644 --- a/tests/testdata/snapshot-many-users/config/genesis.json +++ b/tests/testdata/snapshot-many-users/config/genesis.json @@ -1,7 +1,7 @@ { "app_name": "wardend", - "app_version": "v0.5.0-beta-15-g33ef432ea-dirty", - "genesis_time": "2024-09-06T08:34:36.897223Z", + "app_version": "v0.5.0-beta-54-g5eac4c25-dirty", + "genesis_time": "2024-09-13T08:08:01.646079Z", "chain_id": "warden_1337-1", "initial_height": 1, "app_hash": null, @@ -28,21 +28,21 @@ "accounts": [ { "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "warden1mtmn23whdfz7npaqyvjsuqnv0e23cawz458kst", + "address": "warden14s28mzq2tde0pjzyyeu35d9gfzraw79khn60ka", "pub_key": null, "account_number": "0", "sequence": "0" }, { "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "warden1dkcazf7czlh9wcs7zvq468275c7xlgfpc0u055", + "address": "warden1svk0e0nlrdyv9n0a7886g4e3tyfztqrsfh46tg", "pub_key": null, "account_number": "1", "sequence": "0" }, { "@type": "/cosmos.auth.v1beta1.BaseAccount", - "address": "warden1t297gq4gcyuuemjwysdwssq8z8d3ywmhum03hs", + "address": "warden1wuhyadummn2hmd39gudwrhhlts90zexage22c0", "pub_key": null, "account_number": "2", "sequence": "0" @@ -59,7 +59,7 @@ }, "balances": [ { - "address": "warden1t297gq4gcyuuemjwysdwssq8z8d3ywmhum03hs", + "address": "warden1wuhyadummn2hmd39gudwrhhlts90zexage22c0", "coins": [ { "denom": "award", @@ -68,7 +68,7 @@ ] }, { - "address": "warden1dkcazf7czlh9wcs7zvq468275c7xlgfpc0u055", + "address": "warden1svk0e0nlrdyv9n0a7886g4e3tyfztqrsfh46tg", "coins": [ { "denom": "award", @@ -77,7 +77,7 @@ ] }, { - "address": "warden1mtmn23whdfz7npaqyvjsuqnv0e23cawz458kst", + "address": "warden14s28mzq2tde0pjzyyeu35d9gfzraw79khn60ka", "coins": [ { "denom": "award", @@ -222,10 +222,10 @@ }, "min_self_delegation": "1", "delegator_address": "", - "validator_address": "wardenvaloper1mtmn23whdfz7npaqyvjsuqnv0e23cawzy09nl6", + "validator_address": "wardenvaloper14s28mzq2tde0pjzyyeu35d9gfzraw79kxgc2ev", "pubkey": { "@type": "/cosmos.crypto.ed25519.PubKey", - "key": "Tn4oJx/cZ5+nRB8NVqQPXB4+Vu1IhUHfsAj+syD1EP0=" + "key": "aPr1KQWENi1lDA/gqsar2JsnQ6sFABcpDmvXOvsEDbU=" }, "value": { "denom": "award", @@ -233,7 +233,7 @@ } } ], - "memo": "cf82fb22664e7acd9509ecc3e3ba620b10b3f4eb@192.168.1.130:26656", + "memo": "0af5fa98eea8f957a7ee0c30d6a1333e40382b65@192.168.1.100:26656", "timeout_height": "0", "extension_options": [], "non_critical_extension_options": [] @@ -243,7 +243,7 @@ { "public_key": { "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", - "key": "Asdk74BI61C5rg7vSn01DRYsl6rh4u1HN2fBl4vYOl7e" + "key": "AuqsBD+GKqEFQz+J3XpYdIiJoTzwbCh0zI5eV5pEKkaK" }, "mode_info": { "single": { @@ -262,7 +262,7 @@ "tip": null }, "signatures": [ - "WH8TkuQ00UQC/vtOT0D8X+5xJfRjhEFPwZQyNEolqLZcH7xUsj+GL4VOFsgeo+XAyjb85xotr/XvJ8aH1HDADQA=" + "gPeGxNfGAGCLusPQOfAXwfbMyx2+kHTxrEMEow+fIH4LAY1AxO5oSN7vu/kOWokFiT46iCLbiQFfVxGPKFXCRQA=" ] } ] @@ -462,13 +462,17 @@ "spaces": [ { "id": "1", - "creator": "warden1mtmn23whdfz7npaqyvjsuqnv0e23cawz458kst", + "creator": "warden14s28mzq2tde0pjzyyeu35d9gfzraw79khn60ka", "owners": [ - "warden1mtmn23whdfz7npaqyvjsuqnv0e23cawz458kst" + "warden14s28mzq2tde0pjzyyeu35d9gfzraw79khn60ka" ], "admin_template_id": "0", "sign_template_id": "0", - "nonce": "0" + "nonce": "0", + "approve_admin_template_id": "0", + "reject_admin_template_id": "0", + "approve_sign_template_id": "0", + "reject_sign_template_id": "0" } ], "keys": [], diff --git a/tests/testdata/snapshot-keychain/config/gentx/gentx-f7301620dce3081655aeeee0727c7c24432c937a.json b/tests/testdata/snapshot-many-users/config/gentx/gentx-0af5fa98eea8f957a7ee0c30d6a1333e40382b65.json similarity index 50% rename from tests/testdata/snapshot-keychain/config/gentx/gentx-f7301620dce3081655aeeee0727c7c24432c937a.json rename to tests/testdata/snapshot-many-users/config/gentx/gentx-0af5fa98eea8f957a7ee0c30d6a1333e40382b65.json index ef6a904fb..5207e0610 100644 --- a/tests/testdata/snapshot-keychain/config/gentx/gentx-f7301620dce3081655aeeee0727c7c24432c937a.json +++ b/tests/testdata/snapshot-many-users/config/gentx/gentx-0af5fa98eea8f957a7ee0c30d6a1333e40382b65.json @@ -1 +1 @@ -{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"testing","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"","validator_address":"wardenvaloper1cjnhqex5k8nt753ek06238tlkft7l5lxmgrjcs","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"180aU3UpdMWa6Wre9x+JjSQng5DAzOHvfuV4aXbe9Hs="},"value":{"denom":"award","amount":"1000000000000000000000"}}],"memo":"f7301620dce3081655aeeee0727c7c24432c937a@192.168.1.130:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A21CBG5QiJaGmJguJnL+ruf2mVDkX/9FEk5K0ZFGuA4E"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["uvvzNYMHRj7j+D3yJjSm/sHWYa1RF09aYCfC9+j1aKQEgKPss+XQEnDbarkYJHrhmCBu4EeECdArhQ5C2lM7/gE="]} +{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"testing","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"","validator_address":"wardenvaloper14s28mzq2tde0pjzyyeu35d9gfzraw79kxgc2ev","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"aPr1KQWENi1lDA/gqsar2JsnQ6sFABcpDmvXOvsEDbU="},"value":{"denom":"award","amount":"1000000000000000000000"}}],"memo":"0af5fa98eea8f957a7ee0c30d6a1333e40382b65@192.168.1.100:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AuqsBD+GKqEFQz+J3XpYdIiJoTzwbCh0zI5eV5pEKkaK"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["gPeGxNfGAGCLusPQOfAXwfbMyx2+kHTxrEMEow+fIH4LAY1AxO5oSN7vu/kOWokFiT46iCLbiQFfVxGPKFXCRQA="]} diff --git a/tests/testdata/snapshot-many-users/config/node_key.json b/tests/testdata/snapshot-many-users/config/node_key.json index 12cbbfee1..0b15a76b3 100644 --- a/tests/testdata/snapshot-many-users/config/node_key.json +++ b/tests/testdata/snapshot-many-users/config/node_key.json @@ -1 +1 @@ -{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"eloyx7mz9EeJ4CdD9LE+83D9/df0JILibV9h/egJ1NisaJdndYXS6DO6G1M9Tr/3XBPl2uSyKQDq5E8XxSnz8A=="}} \ No newline at end of file +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"yuRtvdk7xDStWp8qY/nPhDtEk+B1S6tFyl2yAQo7q/pxodNgm/1yBxeMGZBRimsBMa5AZFWDsx/UoTjbDhJenQ=="}} \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/config/priv_validator_key.json b/tests/testdata/snapshot-many-users/config/priv_validator_key.json index 84e37728b..f48060084 100644 --- a/tests/testdata/snapshot-many-users/config/priv_validator_key.json +++ b/tests/testdata/snapshot-many-users/config/priv_validator_key.json @@ -1,11 +1,11 @@ { - "address": "69C48F4C74C08A99BCDEF1D2FABA23C641DB1C1E", + "address": "FB81EFBBF5C0B1432F526889FD9CC5335E9DC64B", "pub_key": { "type": "tendermint/PubKeyEd25519", - "value": "Tn4oJx/cZ5+nRB8NVqQPXB4+Vu1IhUHfsAj+syD1EP0=" + "value": "aPr1KQWENi1lDA/gqsar2JsnQ6sFABcpDmvXOvsEDbU=" }, "priv_key": { "type": "tendermint/PrivKeyEd25519", - "value": "Z8JCWAxJkWMZ1ZQElIJ61ASkSVKIwtuC7xLk7OaNbMFOfignH9xnn6dEHw1WpA9cHj5W7UiFQd+wCP6zIPUQ/Q==" + "value": "C4ViGqq8va7DYuOiNbh5yCfqjOyUeBj9IgLN5jtPvwVo+vUpBYQ2LWUMD+CqxqvYmydDqwUAFykOa9c6+wQNtQ==" } } \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/0d16cb2369afa892c981bda57d01773fa17e15eb.address b/tests/testdata/snapshot-many-users/keyring-test/0d16cb2369afa892c981bda57d01773fa17e15eb.address new file mode 100644 index 000000000..c88340669 --- /dev/null +++ b/tests/testdata/snapshot-many-users/keyring-test/0d16cb2369afa892c981bda57d01773fa17e15eb.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowODowMi4xMzY3OTcgKzAzMDAgTVNLIG09KzAuMDYwNzY5NzEwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiU2F5b3R3LUdKTnpOWWJUTCJ9.GJ1JffirA9VJnzrlMdmYFiLaAPWgxzxeQemK_vkwx07t4zdPeDg9lQ.9G__-CHEOc4NfStl.xq3-9ppN1_00JwBstJaDAnJfRt0lr_sVzoeoMtOuMiPddoUFc0h4DWqPvDJIstTYZghFEkaeNU-w7lOXY_viGW-s4lJ_-QYP-Fy2LX3bunTUMZhCW-U5-s4yb1zU33v0w1EuJQfjE-x0GvYUbJfaXW8UraVFw5_y5ZN9g5XoPmVYRk7YmjCDxpK6fsO4Jk0DnMN3YDSkeZcYq7nVy_z0ck4uGXXDPXqu4sWHgrGNH9y-BA.9Z3X1A3FQTCO9C9-4SBZJg \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/4321b27aa17effe4688897cd2d7eca0866988f9b.address b/tests/testdata/snapshot-many-users/keyring-test/4321b27aa17effe4688897cd2d7eca0866988f9b.address new file mode 100644 index 000000000..e958a8a44 --- /dev/null +++ b/tests/testdata/snapshot-many-users/keyring-test/4321b27aa17effe4688897cd2d7eca0866988f9b.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowODowMi4yMDkxMiArMDMwMCBNU0sgbT0rMC4wNjE3NDk4NzYiLCJlbmMiOiJBMjU2R0NNIiwicDJjIjo4MTkyLCJwMnMiOiJWNzFuMmVEM2FzYmFwa2cyIn0.hXQAjCe8qoloCJQ5OyzsGAm7uium8BfaKLwcrVMYd2hz8cOymA2DTw.EIRV2VElPLCI48YF.f6shipkfyVrN8F4If5AptuEwkRlzOgSqNN-EJ26KQZ-mn2VdUNC5Pg_dN6VwMvWJy4AJjcyP0rFZrWT-ABVV3tYesNrrkA7YELoXo7Nyuu1u9D0q8MXOxwMAk5c6iGGjmFmp1zKgNmO4IKd8a3pzMB7ipftqvKAkmPS92hyUqaYj0IfB37hMrM6qmbQBzB8TDhIrbFnEpdJ-WMy09TT126CarwCF-2BOjHbRqtV44juZ8Qfvk1o.kkTXms3dbbsWqZubiLmhOQ \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/5a8be402a8c139ccee4e241ae8400711db123b77.address b/tests/testdata/snapshot-many-users/keyring-test/5a8be402a8c139ccee4e241ae8400711db123b77.address deleted file mode 100644 index 3c38d787e..000000000 --- a/tests/testdata/snapshot-many-users/keyring-test/5a8be402a8c139ccee4e241ae8400711db123b77.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNy4xNjg3NzggKzAyMDAgQ0VTVCBtPSswLjA0ODU0MDk1OSIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6Ik92MFg0cWdPd0RfdnhEM0EifQ.UMbVhXkCdKQPR1H7Q6ItCFeI4qjGzudk-dUs76B6dt9e7cg-xtW4Nw.WsQK9Es_UZa0DGdl.KuC02hPZOSt_WGVVOZ2xDy-dWr98ULNoGeMbEU2ILNBD85ixVNBrabNPxb9QMRgd9JnyJkZFskiL9ladzZu2Kf3zAnn3y7Tcvuy47Co8pGR-xQ7_IOulwJUbBEXmacJ5vp6NCFv9N6WlrF2kBXZXkdWU3g-KetufT8xY3h-5GMIHbGMROYmBYP7euVuuHkuMeVTYiOsUgkxoa2mimaGzDcwpyIfyKjUcWHBxoiQWVK78bf7XKOs.c3Qj5BGToUioXZE63cXbwA \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/5eece0eadba63655897c60fdc3f40bfd9e12f5f8.address b/tests/testdata/snapshot-many-users/keyring-test/5eece0eadba63655897c60fdc3f40bfd9e12f5f8.address deleted file mode 100644 index c7c249ca3..000000000 --- a/tests/testdata/snapshot-many-users/keyring-test/5eece0eadba63655897c60fdc3f40bfd9e12f5f8.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNy4yODE5OTUgKzAyMDAgQ0VTVCBtPSswLjA0ODM4OTI5MyIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6IjJQeGt2b3IyYU5ROE1SRmUifQ.T0k9WXiHxGAjHQ2lmO2-hAfO4aIkcn05k84HOLMx910obbX9WU49Dg.cgGaQ-udjAkmgVg5.0qqQoqBEcnYzES6g_E5A9hU5CVYsP2GE5IvtK_t6KvL8r9nxe2lV-EiA9mr-NMwNJCAt_DvqfWReyNznEUP9FWa2wkiypk1DlCOlcnB3mHpxk2MLjV9kzKY7puBm429QugMs9nDT5nnmn9qPb0Jd73dOxYa2ZXL5FAt-GDAMIGj6M5eMS7fD4kx2bB9_kjfoIdKrgybfELEBte2gNoFmu6rfcguHAmQ_ML9c_tOn_a4Gag.ZwdTK3mzrmINYTq6ASjF1A \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/6db1d127d817ee57621e13015d1d5ea63c6fa121.address b/tests/testdata/snapshot-many-users/keyring-test/6db1d127d817ee57621e13015d1d5ea63c6fa121.address deleted file mode 100644 index ce2310b8c..000000000 --- a/tests/testdata/snapshot-many-users/keyring-test/6db1d127d817ee57621e13015d1d5ea63c6fa121.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNy4xMTE2NTcgKzAyMDAgQ0VTVCBtPSswLjA0ODEzMTY2OCIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6InFObHNoNDBUTS1YVkNnZUMifQ.dV1svtOio1j96HtItM_tR15jMEFrSQxY9pRpEZr0Ad_RrCG_3LCibA.SCtMlrhSKQflbqiI.LYhOFCimjBTPPMl12Ho0U0NulOIMego5e0LGnZqSdANNq1MFa90jR9fsRVav3_7YlhXgFe0bN-cKGmtpcg__Z4smmty1U6VxN02oTy-wmnoY1yj_5bWrJbdNilEkKbPXSc-blTxk55jR781T2bU-x18WG_fHLA5ZAUVLsqJWD94ZPDiaYyuYfDyUR3BwUv0PQghoUw7LFemZl8eGG8JMbT9qZ88qQEpq3LZi0Zk6p_DELA.1Fyu5hUOXMJRoYCuUQbZ3Q \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/772e4eb79bdcd57db625471ae1deff5c0af164dd.address b/tests/testdata/snapshot-many-users/keyring-test/772e4eb79bdcd57db625471ae1deff5c0af164dd.address new file mode 100644 index 000000000..2f14fd2f0 --- /dev/null +++ b/tests/testdata/snapshot-many-users/keyring-test/772e4eb79bdcd57db625471ae1deff5c0af164dd.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowODowMS45OTEwMjkgKzAzMDAgTVNLIG09KzAuMDYwNDYwNTQzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiSWVEZDhGSkVfUTVFZEJDVyJ9.j2NxUdBQH_nnYH8qJa5s5jxkCfx6BmTPX18rhMncAVOeNT9TNE1IgA._ADeOuQRicX2sYob.heVLVfuN4RQC0wM20wSDvWVSJfoc5v-d6QAJ30e3a_y5ofMj5EmRN4e3pd90d_yG-tXIm0dfT231JhoAkcYy-B6XyIJE7xL34xnPKVon9YokLSzH4D_xsiItS7Bxpo0WvgMH68-vy_TCNd-ueili_6rIZoHHji8V2htwkfF6fCM0UyGcO3KoQ79rG6HaDKsk05zNZUmevyj7am630DhFFZ3oyPMr82ZfiTQNCJyAU3Ohb821ixs.6Wi4hMN6sLU3KjuXxNyYmQ \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/7e2d7a6a9fba5f6d42a6ce681fddc97e9f36bd04.address b/tests/testdata/snapshot-many-users/keyring-test/7e2d7a6a9fba5f6d42a6ce681fddc97e9f36bd04.address new file mode 100644 index 000000000..7b08cc3ba --- /dev/null +++ b/tests/testdata/snapshot-many-users/keyring-test/7e2d7a6a9fba5f6d42a6ce681fddc97e9f36bd04.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowODowMi4wNjQ5NyArMDMwMCBNU0sgbT0rMC4wNjI5OTQ4MzQiLCJlbmMiOiJBMjU2R0NNIiwicDJjIjo4MTkyLCJwMnMiOiJOQ3RfZ3UxS2doSjVuR0otIn0.2ujoxDCtRiNDw2cojDkVhWbXp4OFy_J3KSU6IfvBnIFgsizW6Z9m5Q.KUQCm-GG4DQOPniJ.Z_LbsL7hoP56Vt4DPSOqUMYngj7mrh8bAAbapd2vCcnQMjZ4EcbmXosUywGv1aBZcMEyQr3o1tkPoZK1ZEmsYsmJWC_dci3P3yB9qG1rJ9O6PdYTVeJDZsjRy-R2hiSzjKq5uKc0uBkOqOJWtGZS_Ez5kXOCC4s9vKZwyNMzaZTq-olBu1WzT1d0NJubsLt3zb1D4sWcyxfwiugaSH2F3aRd4qVpjNWG8Tzn6Syjd6c7tw.2A98K4uUvpkyKR9ai5qhOQ \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/832cfcbe7f1b48c2cdfdf1cfa457315912258070.address b/tests/testdata/snapshot-many-users/keyring-test/832cfcbe7f1b48c2cdfdf1cfa457315912258070.address new file mode 100644 index 000000000..ddf9c22ec --- /dev/null +++ b/tests/testdata/snapshot-many-users/keyring-test/832cfcbe7f1b48c2cdfdf1cfa457315912258070.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowODowMS45MTk4NzYgKzAzMDAgTVNLIG09KzAuMDU5OTg3OTU5IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiRHRRUjVMZWlpOE5zMnQ1cSJ9.8LRiSOIjV6mdx5jYpqlUnJHdEnhLziY1DKR7CZFI9Bdd8eCNo0FeLw.a_rUNllFJZf9AEBn.mFMTKrZ-sljHxg0OZNrfypQWX2ye_PD4DlrU-vWPCcxBh-KqXWJwjSJQdlnL_ATfafTpe5AHgsMPe0oOup4OLaz9gZpANM5zd31HN20yGkmjjXdCveb3Kx9x-Qgz_Qq9BQk1yRIdJ1BT__FDmHtTQXHmFkpdvSLODW0M984XTRkEPHVCvksO86E1R1gK4pH4ENLGNcqM_vh9aqb9gJ1SzaGMJGkkTGrJNNetrO_1ZsXc4w.ATxVmMkPHHPvMI2yqVezDg \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/a24792af0f1dc2c531f1fe20d7dccb04bbfb4e88.address b/tests/testdata/snapshot-many-users/keyring-test/a24792af0f1dc2c531f1fe20d7dccb04bbfb4e88.address deleted file mode 100644 index 3e5ec6fdc..000000000 --- a/tests/testdata/snapshot-many-users/keyring-test/a24792af0f1dc2c531f1fe20d7dccb04bbfb4e88.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNy4yMjUzNzggKzAyMDAgQ0VTVCBtPSswLjA0ODI0OTI5MiIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6Ik5ZaXdUcU5reER3ZUxpSWkifQ.lJ1MlnNKRn256ccUGt8-EitBm-2dvbESBEEGa85fSl-BNtMDGCeTUA.kJQBdnbDr04PJI0B.5V82yVpiycdxuWTHXo1NU2tux7LlYgPU8t1RzaHVvN2c6vHbZeWuGk11CGjvbTznq9W0Y5kdSa6CAloWbjShIoZYF-PU0V_kQRppGsF8wWeiCPoJH3TTozDRtKTT0vXsYyDRWEwBpv8PbCx5Km4Kj4EnpuH4CB7AGyv3sEIveVSzxPJrvAuUJm-vpnZf6kpmt-Gd8L_YD2SoKc4SUqr6IVbpzhWFqUCPMSsnCwGFMDBtVQ.gc89g5LA5wnXtCfxVj-40w \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/ac147d880a5b72f0c84426791a34a84887d778b6.address b/tests/testdata/snapshot-many-users/keyring-test/ac147d880a5b72f0c84426791a34a84887d778b6.address new file mode 100644 index 000000000..e5165b4e4 --- /dev/null +++ b/tests/testdata/snapshot-many-users/keyring-test/ac147d880a5b72f0c84426791a34a84887d778b6.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowODowMS44NDc5MzkgKzAzMDAgTVNLIG09KzAuMDYxNDA2MTI2IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiSjQxMV9PTDlUM2NLbVJ4SCJ9.vl4JUaHTAxgMc0DGTb2PkrhkUJVCT8um6iKSepHLTV2-ECTmlsT7KQ.KVZzvQHJSaIoxQsv.3IW7KwcYl7iTIiSUZ1VbFQIo8fnKzCuqQqG4XkGbMMDZvZZb2-Im-D8VivAv8vecQ6cLjXMHYVwkiQZW-NVhUXpEsV8xH2vCC2-1aBOZtuYt-_xa9jm1jwuXgXLIKN6knXghxd0JfO-2ECmzKRupZ9wDMXZh3Hu0PaUEGg6CtN9Z8SwKJUeD2ASpZWyW_9oJ0nMf4iyfy7MxZ_2imvzHbAQ9ANJr4xG4hcCTGM-m7nDJS30HgbI.c3aD2tAPkAPU0fDiCRNsFg \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/alice.info b/tests/testdata/snapshot-many-users/keyring-test/alice.info index bc730fc7b..379396f1e 100644 --- a/tests/testdata/snapshot-many-users/keyring-test/alice.info +++ b/tests/testdata/snapshot-many-users/keyring-test/alice.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNy4wNTQxMDEgKzAyMDAgQ0VTVCBtPSswLjA0ODc0OTU0MyIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6InRfVDJZMXV0eXVrM21nbnYifQ.WlZ8qwuPXOWi4Uyh5hlHLX-o3AyssomQAUprR0fxWLCaj-MR3kVjCQ.AbjWA7SwamqtS2Re.ofhuyvp0peXF7KoJ0ejUNmqQ8YMeNe8TfRKSRrx0iwEC9Bi31EJ11RTQPyCCWgWu3QwqnlltvweGfjbo2djW-zfMEivXx-OXX9iUseDwSwO0yJgux19IjjewyLrhHJjf5-byE05pn8TsbUho4Yjb2gx_72pELd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l2leIXKwRI69Bywv3O7rGm4p_4oBdvpkV5MkpXM.sX5A6Z_FMvZikw6MqMsn6g \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/bob.info b/tests/testdata/snapshot-many-users/keyring-test/bob.info index 4aa679646..d2bce6994 100644 --- a/tests/testdata/snapshot-many-users/keyring-test/bob.info +++ b/tests/testdata/snapshot-many-users/keyring-test/bob.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNy4xMTAzODIgKzAyMDAgQ0VTVCBtPSswLjA0Njg1NzMzNCIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6InVPdmZ5MlQ3blVoc1lsdTgifQ.4L2hh1_37hddJKX5PittNPtYzx6ukeA9HhVZYbPDfdWgrQ66LGnOVA.RKpFA9DmofwQdjwc.zza04EUXMMQjPedZe94w9b743Va0--9IztVrl5KxlFiFKFhdYMybO4gJyGg12fiLJ2R7xrzYIu4lulR_6vtcLmwmNeBGCR1Vj_yff7oMHamEDgFcrkKuM7TtDsuFUZmgJsJ2YkDUrq-G86fB5iCeS1huW0qF-e3daynttB5ZrjKI9HbWkKOgpJtNwpl25lMQzhdkq7kHGgAYmcfzORH1Ld8KJDlYOcVZomROne6az2JNCy4QuC4VZUQZNLg5at2hNPvTGQb8SdXVf9EREZEIWbWjCUiZEAUUhC5D6tWASa3_eTY1pcYDVn2Z4cc6VK0_9B9ybdqoE5j8hvovaA4sGq77wndQ9fGGdVS53kqBG_vLeAomvtTbmhv3He9Nwocj5EqKj6imW5z2EkliaX0Cln0sHBpX45RCsAMrTkaHWn5RUBz9urix9BKPcM7U0YWgO58n_Qy5TyHzklUpXLxXevwg.Gee2_uK4pJeEAq7RxPWjXg \ No newline at end of file +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowODowMS45MTg0ODYgKzAzMDAgTVNLIG09KzAuMDU4NTk3OTE4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiMUZPZ2ktSk9heHN5X1MtSiJ9.tDDGBpUmF5vCuYnXZ2MxsM1aPJt3zfERkHakMCZ2bi4vN6Fwu-qtQQ.qdMJRJlTzBkUIegf.BsYrcGSQk8lEKKQuO3plykFeB0tW1G83qOwsRmAIB1xS12jgeE-0ci7TbcOY9yMj8QoXSIHYtHxB-nACrg8WRlz4XNkQ_wtRUXt_3ng1jh0Kv-HimaPSOuqKStr1XC4uQcY7Pd5jmuwaktz63ZpTf-F8vMBY49Jz9z_7sif4IxgSrOp_vV3SOtrZBXrV_tsBkWkX1ZgW4vXOFbSDFLu3rYmj_H9SO2W8TFL1rGLih_7hqIoK0c3kISo84sOWgKYrwoReW9ByODZCpH7XT0z-yz_fdnvo72XPUPLEMUGDUrYWFArUWsULrmBR2Mv49SbJjpzl-mS4WEWlVU0XD09IK_Z2sHZb-5YP7Ndxm_PMiTHLw6AU_fuIUh72PRbAue5jfnzPwmeNkL_GrENt19W35FT-M272_NqDlC7GmIv_T2QALkd11t2AaQjkyTa_EnBRiQe2bAGd4VJAJOe_9MM6MgRI.44jWFCYCGROgnvCZNysm2w \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/charlie.info b/tests/testdata/snapshot-many-users/keyring-test/charlie.info index b3f3425e3..dde8378d5 100644 --- a/tests/testdata/snapshot-many-users/keyring-test/charlie.info +++ b/tests/testdata/snapshot-many-users/keyring-test/charlie.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNy4xNjc2ICswMjAwIENFU1QgbT0rMC4wNDczNjM1NDMiLCJlbmMiOiJBMjU2R0NNIiwicDJjIjo4MTkyLCJwMnMiOiJPcjJVZXlvWkRBMXBOcjU1In0.5zvioxas748kpUWvXxCoiMCI-1q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gXDPqMiHqVirEY7QI7LNCX0hYDv51dZmhO1xZR2Sh4tquOSXqki_9NsmWM0JixiGGU2DCkUO0HQeJEBXZd7UqwTZd-99FGsbuZGrX48DvL8oG6390F-EoxArgcML7dg6B6rvLfSdxyQkR30neOIuD5Z_JjWgDNvsWOFw4WF24t94Ll11sKEjNj9ptfc0lDnFjYShKFHn2IL1Z4Aww20nLSxbJt8IPg.QhUsNmNgPpl1V7d-jgyOFA \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/daf73545d76a45e987a023250e026c7e551c75c2.address b/tests/testdata/snapshot-many-users/keyring-test/daf73545d76a45e987a023250e026c7e551c75c2.address deleted file mode 100644 index 103343d1b..000000000 --- a/tests/testdata/snapshot-many-users/keyring-test/daf73545d76a45e987a023250e026c7e551c75c2.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNy4wNTUyMzYgKzAyMDAgQ0VTVCBtPSswLjA0OTg4NDEyNiIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6ImZPbS1aRkh1T3F1THNsR08ifQ.0VOOjR9EWGPWoz2AklQ4WwlxcEmG6ZTotiLPpURJ7AX11d5xHYQJ6w.DynsCkTWCByybJq3.X6vE-Ixomn1YT-6flHHruElwKSgaG-FXlXvVi4DF8NnREXu0avEbLd7kDQHqipPTQkkGqPA8TgidQKNN8DvXVXdF-eEVJYAvpB4gyKyfunmBgLQCzdTtU1ZVICUwaTKST3NSk7wAqigzvoTrVbB3xu2mI7h4ixKAkIaJvMXxhuZ-rXUUt2ESrzcIeUIWkbWnlFGLdcUhSDAAAeKqxG27XVXTEAPOXyN0s__pddb9od7T2v6Bmk8.6oh7tZMIREoXF6M3K_K-lw \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/dave.info b/tests/testdata/snapshot-many-users/keyring-test/dave.info index c9a99e675..cc6a88805 100644 --- a/tests/testdata/snapshot-many-users/keyring-test/dave.info +++ b/tests/testdata/snapshot-many-users/keyring-test/dave.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNy4yMjQyMjcgKzAyMDAgQ0VTVCBtPSswLjA0NzA5ODUwMSIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6IkQ2RlZxOW9XQnFnY0lPSUMifQ.Z2bq_uKV1TIOs5xqic79Jru4pvYUM2pLfZWlnarvNB0ZWnWhEZi_sg.5s3ePydSXVJKE-K3.c9fEHd88j3fkZellZYOMPfWJVywO8RDSjiSIg7fYSlwaVOh1o7kpIjrSKc5L01H_Gqc4OVMCjJWLN08t7fc4TzaBc4GWPuUhoLUjN6zYsl8xBp3HA8RALWTN18oohqjl-w1_QXMQtXAc5zfHrzTdvMuNhXPMdHMqF7Wn_QZMIPJkXwOLD4DrDqF5zpHjMlnM2r5HzuW9T-mCq7nJFqXA4a0LlVkkQDUa-yy9PPqaZg2JMKBQNw-8F5WiNrnrkH2XXv2zRyrdLtee16S7sT_QpFAQsiNaVwTT2cwE1nJesBql3jzC4oy3Q-B0p9CzfkxiHza--pyhjx0BlTwhdS77rfBHJLc_qpTtYlVKwFrrTAcl-mxpZ72f-hEJsARzdK6z0tfCKc8SbyxcWU8KYODLDZb_gZpUWPOyOpPYYIw5otVP3VzaRvO1EbVVpKXRwsQiE6INH_QeofvevNHYIJMT7U1cLQ.nBifKkDhPZk_Hc0rHP_A7g \ No newline at end of file +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowODowMi4wNjM0ODkgKzAzMDAgTVNLIG09KzAuMDYxNTE0Mzc2IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoibjNMZlVuQzNRT3g1T1VLZyJ9.J_V_g0yJDF5U3oNM3qmRAieW3e0GFb0NR2hscHSfiSvJZJZm6yA75Q.cVxV6Pr5DtI7x70k.GWKUm8Fh6PkUlHB-f69y46XPzAcOr60gJJX0NE0F-xdyZuYfDMn8IRV9aemciLlJa9YmuZMxx7rj8hM6wMmZHVj3EHcPltVEf5c6quadcipL3hOYSlu_-Mo8xvrjasNIjXd7FWViOwFKqf9rA8u2BZXXNVWJgvOWQze8h2zt1gIpL4XBx9_IMhLNljCH9uny7jHBGFwAtkrvvHDexCxAqnJxltGygqBOdkrx9begFA00ZN6J8cxqeO2aVIrU4D7yyUqPBzc6RrHuj1SijXNZ41XJ-VCvHY3HB-txcijyG0nLbSAa2QqeyCRFJizvUQlW3zhJaAkTNFqYU7yXxnJVWfgmPrOo1uxNTRCTrVSJQSiz5siQ4jXTZJKEcpfguuRDppq-RfLKOAfIaHPoL_1O7T8pReoLo9xEhoOXj2v7Ekm5xvl2bds2NH-hlMyc0-vqdNTGvMqmXF1hGKzs8RQhb61nmQ.ZPQCLVETUQZChDXhqR_99w \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/ea55665ef2934e3e31e167f8beee40cf2acd1a2d.address b/tests/testdata/snapshot-many-users/keyring-test/ea55665ef2934e3e31e167f8beee40cf2acd1a2d.address deleted file mode 100644 index dc50ac609..000000000 --- a/tests/testdata/snapshot-many-users/keyring-test/ea55665ef2934e3e31e167f8beee40cf2acd1a2d.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNy4zNDEwOCArMDIwMCBDRVNUIG09KzAuMDUwMzA0MTY3IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiZTJBVTR5YTZFVDU5dG9TYSJ9.BzRDR-O-wSrqHGm4TD8h-ogS_hVSpQj7no6XiO6y9RZ5iZJdpoelAg.AqF3BZWveyUMZ7o-.W1RdiTBvC6c8O6DuUFPK1nxC6yy1jMV4zhah30GIyvOJlbE9UulxaMOusZAzJXz80i5ttxvau6O2HMnN3PJB8KYZwPTvh9RlMpuuPLFLIqn26WhQGAV15O94CxBlBXsp95cdgP6zfMMD2sLrY_NVZW73IStXpmBPBlLk6GPmweyl-xt_DwMKd34ansyi3MbNCX2rtivzm9w24oG4qEhLeapDuiea81W1wmWr_dLnCbEorUouIns.1TA1WRsHaT-akJq_INkmMA \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/erin.info b/tests/testdata/snapshot-many-users/keyring-test/erin.info index 585820afd..55ee1ee14 100644 --- a/tests/testdata/snapshot-many-users/keyring-test/erin.info +++ b/tests/testdata/snapshot-many-users/keyring-test/erin.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0wNiAxMDozNDozNy4yODA2NSArMDIwMCBDRVNUIG09KzAuMDQ3MDQ0MDQzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiYVNJZDFaUjZMcHdLb3U2ZSJ9.ZwfHlhEP8Bojoehfy_Wp9FYM-8ucjLPnj4g4hGR1eboecab-esLdFQ.BQuNmSFqaxYjNm3-.P8ke3Ciinr4mRJpjroRfAtIRIpu1g-bb5bmunt_SSKLsbWiCDtwW_9E4MOXYxg12sZHYJxIF2pG25vxn0PB98ihd4-MgVksWqV8H9DFOKRdkSbiw-jLr-3vhqPLxBoQ-ymbv8cw1Ix1TOUxWL73TqjBW7CYC3eB05JlSoHQx351C623wzNaJcMtrxAqShs7XAuUn-tysXGhKmhRvHBL57k8gkrri6O_0NCjkfhODy6JbDAR93eUwTyuzgbzUMicZCxw61f7U7TccV1a-NLB70qa1y-k4u-o0tHbpT0OejFtkBApOHX3o-OCLudwm4InQuZtkrKlGs2fuvoYzynZJC_VjDsQ6s65JmF8IXb3mLW-rsYL-oPRZXqOiX8gHxJDZNUr91OubYP5ThzLbCqhZ7HzDfiuxLzf2e1GwcDf1sv__FLGd-VjGRHPiyXRa4iQGDlvbyXML2w-MBP-5qDv3mqHGYA.5fcnBJnJPR8X_cWVbC4XVQ \ No newline at end of file +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOS0xMyAxMTowODowMi4xMzU0MDMgKzAzMDAgTVNLIG09KzAuMDU5Mzc1MjUxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiNGFwaFdEZlRocnpZb19QViJ9.vnG5bMu7a_RMZyA-FDGzvb1Ql2auxjz1mKzFr7zRlz4QbBcQK4WZnw.-K7yehR_N5vdIG9G.jn-I9SIRFKker65G4Ax53538dC_mxapPCMLv5Ve3UpB49feGBpPlnD--D-_BQ37oZeeR6iVBVFg2VmbEyADknxkVxPZ4ar0bScAFuWQw455YuSZC3WuNpfS42mXyjwZ_EMN6_v2YB28w5QjZ9movZQY46qTTRDFUoS45vw_EFSTA7adnjEcS_h7ovDc1K1uOjTxO2g_1oC__VK8XhjJ8c6eHo1xrZj-lonSvoQxwsCDpXU7QE6r0yWQoolkAHWeEdJYkWYZW1xdnpOId4PCMMU0YEmK3T_lgjDZ-NDiW78Bj-so8HSzSPa_1Rs4yVatFrJM2xO6OFlf_ZbB1CoRXfiEOga3wJcqdA-DW5cJb_gefJ7LeRPF0vC-GIbme8ZWn-cFkWP1tRXBgRSxS1N_3rVAH5Kiyo1Wfw6q4c1nL8KtXP0AhcurHkvmyzZXGcjzOg3dt8lX4oF8hdmQAQdpjcxU3og.tEXaRXVo1j9VojCjV5NVpg \ No newline at end of file diff --git a/tests/testdata/snapshot-many-users/keyring-test/frank.info b/tests/testdata/snapshot-many-users/keyring-test/frank.info index b1605288e..edc39fa99 100644 --- a/tests/testdata/snapshot-many-users/keyring-test/frank.info +++ b/tests/testdata/snapshot-many-users/keyring-test/frank.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitB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