diff --git a/CHANGELOG.md b/CHANGELOG.md index 39a2e6dc3..717f8573a 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 f790fb625..e7ee0b21c 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,58 +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, 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, + 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, 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, 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, + 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 ( @@ -3654,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 @@ -3684,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: @@ -3696,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 7ff6561e2..ae7448e56 100644 --- a/api/warden/act/v1beta1/query.pulsar.go +++ b/api/warden/act/v1beta1/query.pulsar.go @@ -1817,27 +1817,27 @@ func (x *fastReflection_QueryActionsResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryRulesRequest protoreflect.MessageDescriptor - fd_QueryRulesRequest_pagination protoreflect.FieldDescriptor - fd_QueryRulesRequest_creator protoreflect.FieldDescriptor + md_QueryTemplatesRequest protoreflect.MessageDescriptor + fd_QueryTemplatesRequest_pagination protoreflect.FieldDescriptor + fd_QueryTemplatesRequest_creator 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") - fd_QueryRulesRequest_creator = md_QueryRulesRequest.Fields().ByName("creator") + 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_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)) @@ -1849,43 +1849,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, @@ -1893,16 +1893,16 @@ 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 } } if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_QueryRulesRequest_creator, value) { + if !f(fd_QueryTemplatesRequest_creator, value) { return } } @@ -1919,17 +1919,17 @@ 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 - case "warden.act.v1beta1.QueryRulesRequest.creator": + 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.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())) } } @@ -1939,17 +1939,17 @@ 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 - case "warden.act.v1beta1.QueryRulesRequest.creator": + 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.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())) } } @@ -1959,19 +1959,19 @@ 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()) - case "warden.act.v1beta1.QueryRulesRequest.creator": + 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.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())) } } @@ -1985,17 +1985,17 @@ 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) - case "warden.act.v1beta1.QueryRulesRequest.creator": + 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.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())) } } @@ -2009,48 +2009,48 @@ 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()) - case "warden.act.v1beta1.QueryRulesRequest.creator": - panic(fmt.Errorf("field creator of message warden.act.v1beta1.QueryRulesRequest is not mutable")) + 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.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()) - case "warden.act.v1beta1.QueryRulesRequest.creator": + 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.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") } @@ -2058,7 +2058,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 } @@ -2069,7 +2069,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 } @@ -2081,7 +2081,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 } @@ -2091,9 +2091,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, @@ -2123,7 +2123,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, @@ -2174,7 +2174,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, @@ -2206,10 +2206,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: @@ -2315,79 +2315,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)) @@ -2399,43 +2399,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, @@ -2443,16 +2443,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 } } @@ -2469,17 +2469,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())) } } @@ -2489,17 +2489,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())) } } @@ -2509,22 +2509,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())) } } @@ -2538,19 +2538,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())) } } @@ -2564,53 +2564,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") } @@ -2618,7 +2618,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 } @@ -2629,7 +2629,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 } @@ -2641,7 +2641,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 } @@ -2651,9 +2651,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, @@ -2669,8 +2669,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)) } @@ -2685,7 +2685,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, @@ -2704,9 +2704,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, @@ -2745,7 +2745,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, @@ -2777,10 +2777,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: @@ -2821,7 +2821,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 { @@ -2848,8 +2848,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 @@ -2889,27 +2889,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)) @@ -2921,43 +2921,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, @@ -2965,16 +2965,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 } } @@ -2991,17 +2991,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())) } } @@ -3011,17 +3011,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())) } } @@ -3031,19 +3031,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())) } } @@ -3057,17 +3057,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())) } } @@ -3081,48 +3081,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") } @@ -3130,7 +3130,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 } @@ -3141,7 +3141,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 } @@ -3153,7 +3153,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 } @@ -3163,9 +3163,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, @@ -3195,7 +3195,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, @@ -3246,7 +3246,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, @@ -3278,10 +3278,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: @@ -3388,25 +3388,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)) @@ -3418,43 +3418,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, @@ -3462,10 +3462,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 } } @@ -3482,15 +3482,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())) } } @@ -3500,15 +3500,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())) } } @@ -3518,16 +3518,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())) } } @@ -3541,15 +3541,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())) } } @@ -3563,40 +3563,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") } @@ -3604,7 +3604,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 } @@ -3615,7 +3615,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 } @@ -3627,7 +3627,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 } @@ -3637,9 +3637,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, @@ -3665,7 +3665,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, @@ -3702,7 +3702,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, @@ -3734,10 +3734,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: @@ -3808,25 +3808,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)) @@ -3838,43 +3838,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, @@ -3882,10 +3882,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 } } @@ -3902,15 +3902,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())) } } @@ -3920,15 +3920,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())) } } @@ -3938,16 +3938,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())) } } @@ -3961,15 +3961,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())) } } @@ -3983,40 +3983,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") } @@ -4024,7 +4024,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 } @@ -4035,7 +4035,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 } @@ -4047,7 +4047,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 } @@ -4057,9 +4057,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, @@ -4084,7 +4084,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, @@ -4119,7 +4119,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, @@ -4151,10 +4151,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: @@ -4212,25 +4212,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)) @@ -4242,43 +4242,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, @@ -4286,10 +4286,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 } } @@ -4306,15 +4306,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())) } } @@ -4324,15 +4324,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())) } } @@ -4342,16 +4342,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())) } } @@ -4365,15 +4365,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())) } } @@ -4387,44 +4387,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") } @@ -4432,7 +4432,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 } @@ -4443,7 +4443,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 } @@ -4455,7 +4455,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 } @@ -4465,9 +4465,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, @@ -4479,8 +4479,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 { @@ -4493,7 +4493,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, @@ -4512,8 +4512,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, @@ -4537,7 +4537,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, @@ -4569,15 +4569,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 { @@ -4604,10 +4604,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 @@ -6760,7 +6760,7 @@ func (x *QueryActionsResponse) GetActions() []*Action { return nil } -type QueryRulesRequest struct { +type QueryTemplatesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6769,8 +6769,8 @@ type QueryRulesRequest struct { Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,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)) @@ -6778,42 +6778,42 @@ 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 } -func (x *QueryRulesRequest) GetCreator() string { +func (x *QueryTemplatesRequest) GetCreator() string { if x != nil { return x.Creator } return "" } -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)) @@ -6821,32 +6821,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 @@ -6855,8 +6855,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)) @@ -6864,32 +6864,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 @@ -6897,8 +6897,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)) @@ -6906,25 +6906,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 @@ -6932,8 +6932,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)) @@ -6941,34 +6941,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)) @@ -6976,20 +6976,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 } @@ -7177,142 +7177,148 @@ 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, 0x7b, 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, 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, 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, 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, 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, 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, @@ -7368,12 +7374,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 @@ -7382,7 +7388,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{ @@ -7390,11 +7396,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 @@ -7402,16 +7408,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 @@ -7428,7 +7434,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 { @@ -7479,7 +7485,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: @@ -7491,7 +7497,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: @@ -7503,7 +7509,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: @@ -7515,7 +7521,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: @@ -7527,7 +7533,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: @@ -7539,7 +7545,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 298561c11..693cca5c5 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{ 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, + 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, @@ -8203,45 +8204,46 @@ var file_warden_act_v1beta1_tx_proto_rawDesc = []byte{ 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, + 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, 0x52, 0x75, 0x6c, 0x65, 0x1a, 0x29, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x60, 0x0a, 0x0c, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x23, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x61, 0x63, 0x74, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 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, 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, 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, + 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 ( @@ -8258,25 +8260,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 @@ -8286,16 +8288,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 @@ -8386,7 +8388,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: @@ -8398,7 +8400,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: @@ -8410,7 +8412,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: @@ -8422,7 +8424,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 854af5da9..089e27b19 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 69c5025f3..b5208e8ba 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,28 +70,28 @@ message QueryActionsResponse { repeated Action actions = 2 [ (gogoproto.nullable) = false ]; } -message QueryRulesRequest { +message QueryTemplatesRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; string creator = 2 [ (gogoproto.nullable) = true ]; } -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 0c3c82221..8e5fb6fad 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 f093efe71..00a0bdba6 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 6ecaa773a..3fbd82e09 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/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" } ], 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 bb642ff60..2a863396b 100644 --- a/warden/x/act/keeper/actions.go +++ b/warden/x/act/keeper/actions.go @@ -118,7 +118,7 @@ func (k Keeper) TryExecuteAction(ctx context.Context, act *types.Action) error { // TODO: Remove when Approve/Reject expressions ready 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 { @@ -209,16 +209,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 !reflect.DeepEqual(approveRule.Expression, expectedApproveExpression) { + if !reflect.DeepEqual(approveTemplate.Expression, expectedApproveExpression) { return nil, types.ErrApproveExpressionNotMatched } - if !reflect.DeepEqual(rejectRule.Expression, expectedRejectExpression) { + if !reflect.DeepEqual(rejectTemplate.Expression, expectedRejectExpression) { return nil, types.ErrRejectExpressionNotMatched } @@ -228,28 +228,28 @@ 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 } mentions := mergeMentions(approveMentions, rejectMentions) - // 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_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 } 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 634e875c6..19442abaf 100644 --- a/warden/x/act/keeper/query_rules.go +++ b/warden/x/act/keeper/query_rules.go @@ -10,21 +10,21 @@ 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.CollectionFilteredPaginate( + templates, pageRes, err := query.CollectionFilteredPaginate( ctx, - k.rules, + 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.Rule) (types.Rule, error) { + func(key uint64, value types.Template) (types.Template, error) { return value, nil }) @@ -32,8 +32,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, 0xb2, 0xd9, 0xf0, 0xaf, 0xe0, 0xc8, - 0xa1, 0x9d, 0xfd, 0xed, 0xef, 0xbd, 0x97, 0xdf, 0xbe, 0xbc, 0x2c, 0xa8, 0x7e, 0xc6, 0x81, 0x4d, - 0x3c, 0x0d, 0x0f, 0xb8, 0xb6, 0xb7, 0xda, 0x27, 0x1c, 0xaf, 0x46, 0x6b, 0x97, 0x7a, 0xaa, 0x1f, - 0x50, 0x4e, 0x21, 0x8c, 0x01, 0x2a, 0x1e, 0x70, 0x55, 0x02, 0xca, 0xf3, 0x78, 0xec, 0x7a, 0x54, - 0x13, 0xff, 0x31, 0xac, 0xbc, 0xe0, 0x50, 0x87, 0x8a, 0xa5, 0x16, 0xad, 0xe4, 0xee, 0xa2, 0x43, - 0xa9, 0x33, 0x22, 0x9a, 0xa8, 0xfa, 0xe1, 0x47, 0x0d, 0x7b, 0x07, 0xb2, 0x55, 0xbd, 0xda, 0xe2, - 0xee, 0x98, 0x30, 0x8e, 0xc7, 0x7e, 0xa2, 0xc8, 0x86, 0x2e, 0x19, 0xd9, 0x1a, 0x66, 0x3c, 0xfa, - 0xc9, 0xdd, 0xa5, 0x6b, 0xe6, 0x0d, 0xc2, 0x11, 0x91, 0xed, 0x47, 0x37, 0x1e, 0xa7, 0xb7, 0x47, - 0xb9, 0x44, 0x2d, 0xfb, 0x60, 0x46, 0xf7, 0xfd, 0x80, 0xee, 0x91, 0x00, 0x22, 0x30, 0x8d, 0x6d, - 0x3b, 0x20, 0x8c, 0x21, 0xa5, 0xa6, 0xd4, 0xf3, 0x66, 0x52, 0xc2, 0xb7, 0xa0, 0x80, 0x63, 0x94, - 0xdd, 0xc3, 0x1c, 0xa5, 0x6b, 0x4a, 0xbd, 0xd0, 0x28, 0xab, 0xf1, 0xdc, 0x6a, 0x32, 0xb7, 0x6a, - 0x25, 0x73, 0xaf, 0xcd, 0x1d, 0xfd, 0xac, 0xa6, 0x0e, 0x7f, 0x55, 0x95, 0xaf, 0x7f, 0xbe, 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, 0x0c, 0xcd, 0xd6, 0x32, 0xf5, 0xbc, 0x79, 0x56, 0xc3, - 0x4d, 0x00, 0xe5, 0x1b, 0xec, 0x91, 0x7d, 0x3f, 0x8a, 0x9a, 0x4b, 0x3d, 0x34, 0x27, 0xd4, 0xef, - 0xa9, 0x71, 0xea, 0xd5, 0x28, 0xf1, 0xc6, 0x59, 0x57, 0x6a, 0xcf, 0x4b, 0xde, 0x79, 0x03, 0xb6, - 0xc0, 0x7c, 0x40, 0x3e, 0x91, 0x01, 0xbf, 0xa8, 0x55, 0xfc, 0x0f, 0xad, 0x52, 0x4c, 0xbb, 0x20, - 0xf5, 0x02, 0x4c, 0x45, 0xdf, 0x08, 0x43, 0x77, 0x44, 0x08, 0x2b, 0x37, 0x67, 0x69, 0x97, 0x72, - 0x62, 0xc6, 0xe0, 0x95, 0x2f, 0x0a, 0x98, 0xbd, 0x98, 0x30, 0xb8, 0x04, 0x16, 0xf5, 0x75, 0xab, - 0xd5, 0x69, 0xf7, 0xba, 0x96, 0x6e, 0xed, 0x74, 0x7b, 0x3b, 0xed, 0xee, 0xb6, 0xb1, 0xde, 0x7a, - 0xdd, 0x32, 0x9a, 0xa5, 0x14, 0x5c, 0x04, 0x77, 0x2f, 0xb7, 0xb7, 0x8d, 0x76, 0xb3, 0xd5, 0x7e, - 0x53, 0x52, 0xe0, 0x03, 0x70, 0xff, 0x72, 0x6b, 0xbd, 0xb3, 0xb5, 0xfd, 0xce, 0xb0, 0x8c, 0x66, - 0x29, 0x3d, 0xc9, 0x33, 0x8d, 0xdd, 0xce, 0xa6, 0xd1, 0x2c, 0x65, 0x26, 0x5b, 0x56, 0x6b, 0xcb, - 0xe8, 0xec, 0x58, 0xa5, 0xec, 0xda, 0x87, 0xa3, 0x93, 0x8a, 0x72, 0x7c, 0x52, 0x51, 0x7e, 0x9f, - 0x54, 0x94, 0xc3, 0xd3, 0x4a, 0xea, 0xf8, 0xb4, 0x92, 0xfa, 0x71, 0x5a, 0x49, 0xbd, 0x6f, 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, 0x0c, 0x2b, 0x2f, 0x38, 0xd4, 0xa1, 0xe2, 0xa8, 0x45, 0x27, 0xe9, 0x5d, 0x74, 0x28, + 0x75, 0x86, 0x44, 0x13, 0x56, 0x6f, 0xf4, 0x49, 0xc3, 0xfe, 0x81, 0x0c, 0x55, 0x2f, 0x87, 0xb8, + 0xeb, 0x11, 0xc6, 0xb1, 0x17, 0x24, 0x8a, 0x6c, 0xe0, 0x92, 0xa1, 0xad, 0x61, 0xc6, 0xa3, 0x9f, + 0xf4, 0x3e, 0xbc, 0x22, 0x5f, 0x4e, 0xbc, 0x60, 0x88, 0x39, 0x91, 0x90, 0x47, 0xd7, 0x96, 0xd4, + 0xdd, 0xa3, 0x09, 0x6a, 0x29, 0x00, 0x39, 0x3d, 0x08, 0x42, 0xba, 0x47, 0x42, 0x88, 0xc0, 0x0c, + 0xb6, 0xed, 0x90, 0x30, 0x86, 0x94, 0x9a, 0x52, 0xcf, 0x9b, 0x89, 0x09, 0xdf, 0x81, 0x02, 0x8e, + 0x51, 0x76, 0x17, 0x73, 0x94, 0xae, 0x29, 0xf5, 0xc2, 0x6a, 0x59, 0x8d, 0x73, 0x57, 0x93, 0xdc, + 0x55, 0x2b, 0xc9, 0x7d, 0x6d, 0xee, 0xe8, 0x67, 0x35, 0x75, 0xf8, 0xab, 0xaa, 0x7c, 0xfb, 0xf3, + 0x7d, 0x59, 0x31, 0x41, 0xc2, 0xd6, 0xf9, 0xd2, 0x78, 0x1a, 0x64, 0x75, 0x91, 0x07, 0x2c, 0x82, + 0xb4, 0x6b, 0x8b, 0xbb, 0xa6, 0xcc, 0xb4, 0x6b, 0xc3, 0x57, 0x20, 0x2f, 0x81, 0x21, 0x43, 0xe9, + 0x5a, 0xa6, 0x5e, 0x58, 0xbd, 0xaf, 0x4e, 0x36, 0x5e, 0x4d, 0x32, 0x36, 0xcf, 0xe0, 0xf0, 0x25, + 0xc8, 0x32, 0x8e, 0xf9, 0x88, 0xa1, 0x4c, 0x4d, 0xa9, 0x17, 0x57, 0x6b, 0x57, 0x12, 0xc5, 0xbd, + 0x1d, 0x81, 0x33, 0x25, 0x1e, 0x3e, 0x01, 0x19, 0x8f, 0x39, 0x68, 0x5a, 0x14, 0xb5, 0x30, 0x51, + 0x94, 0xee, 0x1f, 0x98, 0x11, 0x00, 0x3e, 0x05, 0xd9, 0x90, 0xb0, 0xd1, 0x90, 0xa3, 0xec, 0x3f, + 0xa0, 0x12, 0x13, 0x35, 0xb3, 0x1f, 0x12, 0xcc, 0x69, 0x88, 0x66, 0xe2, 0x66, 0x4a, 0x13, 0x3e, + 0x06, 0xc5, 0x68, 0xc8, 0x74, 0xc4, 0xbb, 0x03, 0xe2, 0x3a, 0x03, 0x8e, 0x72, 0xa2, 0x03, 0x73, + 0xd2, 0xbb, 0x21, 0x9c, 0x70, 0x03, 0x00, 0xc1, 0x88, 0x5b, 0x9e, 0xbf, 0x69, 0xcb, 0xf3, 0x92, + 0xac, 0x0b, 0xa5, 0x51, 0x60, 0x27, 0x4a, 0xe0, 0xc6, 0x4a, 0x92, 0xac, 0x73, 0xf8, 0x1a, 0xe4, + 0x92, 0x2d, 0x43, 0x05, 0xa1, 0x73, 0xe5, 0x7c, 0x2c, 0x89, 0x59, 0x9b, 0x8a, 0x94, 0xcc, 0x53, + 0x0e, 0x2c, 0x83, 0x9c, 0x47, 0xfc, 0x68, 0x06, 0x0c, 0xcd, 0xd6, 0x32, 0xf5, 0xbc, 0x79, 0x6a, + 0xc3, 0x4d, 0x00, 0xe5, 0x34, 0xbb, 0x64, 0x3f, 0x88, 0xd6, 0xce, 0xa5, 0x3e, 0x9a, 0x13, 0xb7, + 0xdc, 0x51, 0xe3, 0x57, 0xa0, 0x46, 0x2f, 0xc0, 0x38, 0x8d, 0x4a, 0xfd, 0x79, 0xc9, 0x3b, 0x0b, + 0xc0, 0x26, 0x98, 0x0f, 0xc9, 0x67, 0xd2, 0xe7, 0xe7, 0xb5, 0x8a, 0xff, 0xa1, 0x55, 0x8a, 0x69, + 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 dab268a4f..0ed3aed60 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") @@ -422,34 +422,34 @@ func init() { proto.RegisterFile("warden/act/v1beta1/events.proto", fileDescript var fileDescriptor_912b51dfb11e99b6 = []byte{ // 398 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xbf, 0x6e, 0xda, 0x40, - 0x18, 0xe7, 0xa0, 0x6a, 0xe1, 0x2a, 0x99, 0xd6, 0x43, 0x65, 0x31, 0xb8, 0xae, 0xdb, 0x81, 0xa5, - 0xb6, 0xa0, 0x63, 0x55, 0x51, 0x4a, 0x3b, 0x74, 0xab, 0x4c, 0x93, 0x21, 0x43, 0xd0, 0x61, 0x9f, - 0xc0, 0x12, 0xb9, 0x3b, 0x9d, 0x3f, 0x9b, 0xf0, 0x00, 0xd9, 0xf3, 0x30, 0x79, 0x88, 0x8c, 0x8c, - 0x19, 0x23, 0x78, 0x91, 0xc8, 0x77, 0x76, 0x82, 0xe2, 0x58, 0x4a, 0xb6, 0xfb, 0xdd, 0xfd, 0xfe, - 0x9c, 0x7e, 0xdf, 0x87, 0x3f, 0xae, 0x89, 0x8c, 0x28, 0xf3, 0x49, 0x08, 0x7e, 0x36, 0x98, 0x53, - 0x20, 0x03, 0x9f, 0x66, 0x94, 0x41, 0xe2, 0x09, 0xc9, 0x81, 0x9b, 0xa6, 0x26, 0x78, 0x24, 0x04, - 0xaf, 0x20, 0xf4, 0x9e, 0x12, 0x91, 0x10, 0x62, 0xce, 0xb4, 0xa8, 0xf7, 0xa5, 0x96, 0x30, 0xcb, - 0x38, 0x50, 0xcd, 0x72, 0xbf, 0xe3, 0xee, 0x9f, 0x3c, 0x6a, 0x22, 0x29, 0x01, 0x1a, 0xa4, 0x2b, - 0x6a, 0x1a, 0xb8, 0x19, 0x47, 0x16, 0x72, 0x50, 0xff, 0x55, 0xd0, 0x8c, 0x23, 0xd3, 0xc2, 0x6f, - 0xc2, 0xfc, 0x95, 0x4b, 0xab, 0xe9, 0xa0, 0x7e, 0x27, 0x28, 0xa1, 0xfb, 0xa9, 0x10, 0x1f, 0x89, - 0xa8, 0x46, 0xec, 0xfe, 0xc0, 0xef, 0x0f, 0xfc, 0xc7, 0x2a, 0xff, 0x05, 0x09, 0x3f, 0xb1, 0xa9, - 0xe4, 0x63, 0x21, 0x24, 0xcf, 0xea, 0xf4, 0x3d, 0xdc, 0x26, 0x9a, 0x50, 0x1a, 0xdc, 0x63, 0xf7, - 0x02, 0xe1, 0x77, 0xda, 0x42, 0x69, 0x8f, 0x39, 0xd0, 0xa8, 0x62, 0xe0, 0xe0, 0xb7, 0x82, 0x48, - 0x88, 0xc3, 0x58, 0x10, 0x06, 0x85, 0xc7, 0xe1, 0x95, 0x39, 0xc2, 0x9d, 0xbc, 0xb5, 0x19, 0x6c, - 0x04, 0xb5, 0x5a, 0x0e, 0xea, 0x1b, 0x43, 0xd7, 0xab, 0x8e, 0xc5, 0x7b, 0x48, 0xf9, 0xbf, 0x11, - 0x34, 0x68, 0x67, 0xc5, 0xc9, 0xbd, 0x42, 0xf8, 0xc3, 0xc1, 0x3f, 0xa6, 0x40, 0x80, 0x4e, 0x96, - 0x84, 0x2d, 0xaa, 0x85, 0xff, 0xc5, 0x5d, 0x21, 0x69, 0x16, 0xf3, 0x34, 0x99, 0x25, 0x40, 0x20, - 0x4d, 0xd4, 0x8f, 0x8c, 0xa1, 0x53, 0x9f, 0x38, 0x55, 0xbc, 0xc0, 0x28, 0x85, 0x1a, 0x9b, 0x23, - 0x8c, 0x19, 0x5d, 0x97, 0x2e, 0xad, 0x67, 0xba, 0x74, 0x18, 0x5d, 0xeb, 0xa3, 0xfb, 0xb9, 0x98, - 0x9f, 0x7e, 0xff, 0x27, 0x53, 0x56, 0xad, 0xef, 0xd7, 0xe9, 0xf5, 0xce, 0x46, 0xdb, 0x9d, 0x8d, - 0x6e, 0x77, 0x36, 0xba, 0xdc, 0xdb, 0x8d, 0xed, 0xde, 0x6e, 0xdc, 0xec, 0xed, 0xc6, 0xc9, 0xef, - 0x45, 0x0c, 0xcb, 0x74, 0xee, 0x85, 0xfc, 0xcc, 0xd7, 0xa9, 0x5f, 0xd5, 0xde, 0x85, 0x7c, 0x55, - 0xe0, 0x47, 0xd0, 0x3f, 0x57, 0x0b, 0x9b, 0xd7, 0x9c, 0x94, 0x6b, 0x3b, 0x7f, 0xad, 0x48, 0xdf, - 0xee, 0x02, 0x00, 0x00, 0xff, 0xff, 0x58, 0x29, 0xa6, 0x90, 0x29, 0x03, 0x00, 0x00, -} - -func (m *EventCreateRule) Marshal() (dAtA []byte, err error) { + 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) { 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/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/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 6ea7344cf..d43b9a9c0 100644 --- a/warden/x/act/types/v1beta1/query.pb.go +++ b/warden/x/act/types/v1beta1/query.pb.go @@ -211,23 +211,23 @@ 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"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,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) @@ -237,49 +237,49 @@ 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 } -func (m *QueryRulesRequest) GetCreator() string { +func (m *QueryTemplatesRequest) GetCreator() string { if m != nil { return m.Creator } return "" } -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) @@ -289,49 +289,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) @@ -341,48 +341,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) @@ -392,41 +392,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) @@ -436,41 +436,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) @@ -480,21 +480,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 } @@ -704,12 +704,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") @@ -719,61 +719,61 @@ func init() { func init() { proto.RegisterFile("warden/act/v1beta1/query.proto", fileDescriptor_f7ace4ffc8dacc6b) } var fileDescriptor_f7ace4ffc8dacc6b = []byte{ - // 849 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcf, 0x6b, 0x1b, 0x47, - 0x14, 0xd6, 0xc8, 0xb6, 0x64, 0xbf, 0x16, 0x53, 0x4f, 0xdd, 0x56, 0x5e, 0xec, 0xb5, 0xba, 0xae, - 0x25, 0xf9, 0x87, 0x76, 0x6b, 0xb5, 0x85, 0xd2, 0x42, 0xc1, 0xa6, 0x3f, 0xe8, 0xa1, 0x34, 0x59, - 0xdf, 0x02, 0x89, 0x19, 0x69, 0xc7, 0xca, 0x82, 0xb4, 0x2b, 0xef, 0x0f, 0x27, 0x22, 0x97, 0x60, - 0x72, 0xc8, 0x29, 0x84, 0x18, 0x42, 0x20, 0xd7, 0x9c, 0xf3, 0x37, 0xe4, 0xe8, 0xa3, 0x21, 0x97, - 0x9c, 0x42, 0xb0, 0xf3, 0x87, 0x84, 0x9d, 0x79, 0x1b, 0xad, 0x65, 0x49, 0xeb, 0x80, 0x0e, 0xb9, - 0x88, 0xdd, 0x99, 0xef, 0x7d, 0xef, 0x7b, 0xdf, 0xbc, 0x79, 0x2b, 0x50, 0xef, 0x30, 0xcf, 0xe2, - 0x8e, 0xc1, 0x1a, 0x81, 0x71, 0xb8, 0x55, 0xe7, 0x01, 0xdb, 0x32, 0x0e, 0x42, 0xee, 0x75, 0xf5, - 0x8e, 0xe7, 0x06, 0x2e, 0xa5, 0x72, 0x5f, 0x67, 0x8d, 0x40, 0xc7, 0x7d, 0x65, 0x8e, 0xb5, 0x6d, - 0xc7, 0x35, 0xc4, 0xaf, 0x84, 0x29, 0xf3, 0x4d, 0xb7, 0xe9, 0x8a, 0x47, 0x23, 0x7a, 0xc2, 0xd5, - 0xc5, 0xa6, 0xeb, 0x36, 0x5b, 0xdc, 0x60, 0x1d, 0xdb, 0x60, 0x8e, 0xe3, 0x06, 0x2c, 0xb0, 0x5d, - 0xc7, 0xc7, 0xdd, 0x05, 0xdc, 0x15, 0x6f, 0xf5, 0x70, 0xdf, 0x60, 0x0e, 0x66, 0x55, 0xd6, 0x1b, - 0xae, 0xdf, 0x76, 0x7d, 0xa3, 0xce, 0x7c, 0x2e, 0xe5, 0x7c, 0x14, 0xd7, 0x61, 0x4d, 0xdb, 0x11, - 0x3c, 0x88, 0x5d, 0x1e, 0x50, 0x41, 0x87, 0x79, 0xac, 0xed, 0x8f, 0x00, 0xb0, 0x46, 0x82, 0x61, - 0x69, 0x00, 0xc0, 0x0b, 0x5b, 0x5c, 0x6e, 0x6b, 0xf3, 0x40, 0xaf, 0x47, 0x12, 0xae, 0x09, 0x52, - 0x93, 0x1f, 0x84, 0xdc, 0x0f, 0xb4, 0xff, 0xe1, 0xeb, 0x0b, 0xab, 0x7e, 0xc7, 0x75, 0x7c, 0x4e, - 0x7f, 0x85, 0x9c, 0x4c, 0x5e, 0x20, 0x45, 0x52, 0xf9, 0xa2, 0xa6, 0xe8, 0x97, 0x0d, 0xd4, 0x65, - 0xcc, 0xce, 0xe4, 0xc9, 0xdb, 0xe5, 0x8c, 0x89, 0x78, 0xed, 0x26, 0x12, 0x6e, 0x0b, 0x69, 0x71, - 0x1e, 0xfa, 0x37, 0x40, 0xaf, 0x64, 0x24, 0x2d, 0xe9, 0xd2, 0x1f, 0x3d, 0xf2, 0x47, 0x97, 0xc7, - 0xd5, 0xe3, 0x6e, 0x72, 0x8c, 0x35, 0x13, 0x91, 0xda, 0x73, 0x02, 0xf3, 0x17, 0xf9, 0x51, 0xf1, - 0x3f, 0x03, 0x12, 0x94, 0x53, 0x13, 0xc8, 0xe0, 0x64, 0x06, 0xfa, 0x1b, 0xe4, 0xa5, 0xad, 0x7e, - 0x21, 0x5b, 0x9c, 0x18, 0x56, 0xbb, 0x4c, 0x8f, 0xb5, 0xc7, 0x01, 0xda, 0x3d, 0x98, 0x13, 0xe2, - 0xcc, 0xb0, 0xc5, 0xc7, 0x5d, 0x3a, 0x55, 0x21, 0xdf, 0xf0, 0x38, 0x0b, 0x5c, 0xaf, 0x90, 0x2d, - 0x92, 0xca, 0x8c, 0x48, 0x4e, 0xcc, 0x78, 0x51, 0x3b, 0x26, 0x78, 0xc2, 0x98, 0x7d, 0xdc, 0xc6, - 0xfc, 0x0c, 0x53, 0x51, 0x3b, 0xc5, 0xb6, 0x14, 0x06, 0xd9, 0x12, 0xa5, 0x46, 0x53, 0x24, 0x58, - 0x3b, 0x22, 0x50, 0x10, 0xaa, 0x76, 0xed, 0x76, 0xd8, 0x62, 0x01, 0x8f, 0x20, 0xe3, 0xb7, 0x06, - 0x2c, 0xbe, 0x6f, 0x3b, 0xb6, 0xe0, 0x11, 0xee, 0x98, 0x89, 0x15, 0xed, 0x77, 0x58, 0x18, 0xa0, - 0x01, 0x0d, 0x52, 0x01, 0xf8, 0x21, 0x6b, 0x85, 0x3d, 0x11, 0x33, 0x66, 0x62, 0x45, 0x2b, 0x61, - 0xc7, 0x89, 0xda, 0xba, 0xff, 0x5a, 0xb1, 0xf8, 0x59, 0xc8, 0xda, 0x96, 0xc0, 0x4f, 0x9a, 0x59, - 0xdb, 0xd2, 0xfe, 0x82, 0x6f, 0xfa, 0x70, 0x98, 0x60, 0x13, 0x26, 0x23, 0x2f, 0xb0, 0xbe, 0xa1, - 0xbe, 0x99, 0x02, 0xa5, 0xbd, 0x22, 0xb0, 0x98, 0xec, 0xf0, 0x9d, 0xee, 0xb6, 0x65, 0x79, 0xdc, - 0x1f, 0x7b, 0x3f, 0x15, 0x20, 0xcf, 0x24, 0x33, 0x3a, 0x16, 0xbf, 0xd2, 0x3f, 0x20, 0xe7, 0x07, - 0x2c, 0x08, 0xfd, 0xc2, 0x44, 0x91, 0x54, 0x66, 0x6b, 0xc5, 0xe1, 0x37, 0x60, 0x57, 0xe0, 0xb0, - 0x15, 0x31, 0x4a, 0x7b, 0x41, 0x60, 0x69, 0x48, 0x09, 0x9f, 0xd3, 0x6d, 0xad, 0xc0, 0xb7, 0x09, - 0x95, 0xa3, 0x8e, 0xf6, 0x3f, 0xf8, 0xee, 0x12, 0x12, 0x2b, 0xa9, 0x41, 0x4e, 0xf2, 0x8d, 0x9a, - 0x94, 0x32, 0xce, 0x44, 0x64, 0xed, 0xc9, 0x34, 0x4c, 0x09, 0x3e, 0xfa, 0x80, 0x40, 0x4e, 0x8e, - 0x51, 0x5a, 0x1a, 0x14, 0x78, 0x79, 0x62, 0x2b, 0xe5, 0x54, 0x9c, 0x54, 0xa6, 0xad, 0x1d, 0xbd, - 0x7e, 0x7f, 0x9c, 0x5d, 0xa1, 0xdf, 0x1b, 0x32, 0x40, 0x7c, 0x06, 0x1a, 0x6e, 0xcb, 0x48, 0x7c, - 0x27, 0xe4, 0xd0, 0xa6, 0x0f, 0x09, 0xe4, 0xf1, 0xac, 0xe8, 0x70, 0xfe, 0x8b, 0x23, 0x5d, 0xa9, - 0xa4, 0x03, 0x51, 0xc9, 0xba, 0x50, 0xf2, 0x03, 0xd5, 0x46, 0x28, 0xc1, 0x43, 0xa1, 0xf7, 0x09, - 0x4c, 0x89, 0x01, 0x46, 0x57, 0x87, 0xf2, 0x27, 0xc7, 0xab, 0x52, 0x4a, 0x83, 0xa1, 0x88, 0x8a, - 0x10, 0xa1, 0xd1, 0xe2, 0x08, 0x11, 0x62, 0x64, 0xd1, 0x67, 0x04, 0xbe, 0x4c, 0x4e, 0x0a, 0xba, - 0x39, 0x34, 0xc5, 0x80, 0xa1, 0xa6, 0x54, 0xaf, 0x88, 0x46, 0x5d, 0x1b, 0x42, 0xd7, 0x2a, 0x5d, - 0x19, 0xa1, 0xcb, 0xc7, 0x40, 0xfa, 0x88, 0xc0, 0x74, 0x3c, 0x5f, 0x68, 0x65, 0x64, 0xe5, 0x89, - 0x7e, 0x56, 0xd6, 0xae, 0x80, 0x44, 0x39, 0x55, 0x21, 0xa7, 0x4c, 0x57, 0x53, 0x6c, 0xda, 0xab, - 0x77, 0xf7, 0x6c, 0x8b, 0xbe, 0x24, 0xf0, 0x55, 0xff, 0x2d, 0xa7, 0x3f, 0xa6, 0x75, 0x46, 0xff, - 0x4c, 0x53, 0xb6, 0x3e, 0x21, 0x02, 0x85, 0xfe, 0x22, 0x84, 0x1a, 0xb4, 0x9a, 0xde, 0x54, 0x91, - 0xd6, 0x78, 0xb6, 0x3d, 0x25, 0x00, 0xbd, 0x6b, 0x4c, 0xd7, 0x53, 0x12, 0x27, 0x5d, 0xdc, 0xb8, - 0x12, 0x16, 0xe5, 0x19, 0x42, 0xde, 0x1a, 0x2d, 0xa7, 0xca, 0x93, 0x4e, 0xee, 0xdc, 0x3a, 0x39, - 0x53, 0xc9, 0xe9, 0x99, 0x4a, 0xde, 0x9d, 0xa9, 0xe4, 0xf1, 0xb9, 0x9a, 0x39, 0x3d, 0x57, 0x33, - 0x6f, 0xce, 0xd5, 0xcc, 0x8d, 0x3f, 0x9b, 0x76, 0x70, 0x3b, 0xac, 0xeb, 0x0d, 0xb7, 0x8d, 0xd1, - 0xd5, 0x3e, 0xb6, 0x7e, 0xf2, 0xbb, 0x82, 0x3e, 0xe8, 0x76, 0xb8, 0x1f, 0xff, 0x15, 0xac, 0xe7, - 0x04, 0xe8, 0xa7, 0x0f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7e, 0xaf, 0x5f, 0xf1, 0x2b, 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, 0x9a, 0x91, 0x76, 0xac, 0x2e, 0x48, 0xbb, 0xb2, 0x76, 0xe5, 0x56, 0xa7, + 0x40, 0x08, 0x21, 0x47, 0x43, 0x20, 0x97, 0x40, 0x2e, 0xf1, 0x39, 0x7f, 0x42, 0xc8, 0xd1, 0x47, + 0x43, 0x2e, 0x39, 0x85, 0x60, 0xe7, 0x0f, 0x09, 0x9a, 0x79, 0x2b, 0xad, 0x7e, 0xec, 0x4a, 0x01, + 0x1d, 0x72, 0x31, 0xd2, 0xcc, 0xf7, 0xbd, 0xf7, 0x79, 0xdf, 0x99, 0x79, 0x32, 0xa8, 0xff, 0xb1, + 0xb6, 0xc5, 0x1d, 0x83, 0xd5, 0x7c, 0xe3, 0xac, 0x54, 0xe5, 0x3e, 0x2b, 0x19, 0xa7, 0x1d, 0xde, + 0xee, 0xea, 0xad, 0xb6, 0xeb, 0xbb, 0x94, 0xca, 0x7d, 0x9d, 0xd5, 0x7c, 0x1d, 0xf7, 0x95, 0x0f, + 0x59, 0xd3, 0x76, 0x5c, 0x43, 0xfc, 0x95, 0x32, 0x65, 0xb5, 0xee, 0xd6, 0x5d, 0xf1, 0xd1, 0xe8, + 0x7d, 0xc2, 0xd5, 0xf5, 0xba, 0xeb, 0xd6, 0x1b, 0xdc, 0x60, 0x2d, 0xdb, 0x60, 0x8e, 0xe3, 0xfa, + 0xcc, 0xb7, 0x5d, 0xc7, 0xc3, 0xdd, 0x35, 0xdc, 0x15, 0xdf, 0xaa, 0x9d, 0x13, 0x83, 0x39, 0x58, + 0x55, 0x29, 0xd6, 0x5c, 0xaf, 0xe9, 0x7a, 0x46, 0x95, 0x79, 0x5c, 0xe2, 0xf4, 0xe1, 0x5a, 0xac, + 0x6e, 0x3b, 0x22, 0x0f, 0x6a, 0x37, 0x26, 0x74, 0xd0, 0x62, 0x6d, 0xd6, 0xf4, 0x62, 0x04, 0xac, + 0x16, 0xca, 0xb0, 0x39, 0x41, 0xe0, 0xf3, 0x66, 0xab, 0xc1, 0x7c, 0x2e, 0x25, 0xda, 0x2a, 0xd0, + 0xdf, 0x7b, 0x18, 0xbf, 0x89, 0xc4, 0x26, 0x3f, 0xed, 0x70, 0xcf, 0xd7, 0x7e, 0x85, 0x8f, 0x86, + 0x56, 0xbd, 0x96, 0xeb, 0x78, 0x9c, 0x7e, 0x0d, 0x29, 0x09, 0x90, 0x25, 0x39, 0x92, 0x7f, 0xbf, + 0xac, 0xe8, 0xe3, 0x26, 0xea, 0x32, 0xa6, 0xb2, 0x78, 0xf9, 0x72, 0x23, 0x61, 0xa2, 0x5e, 0xfb, + 0x1b, 0x13, 0x1e, 0x0a, 0xbc, 0xa0, 0x0e, 0xfd, 0x11, 0x60, 0xd0, 0x36, 0x26, 0xdd, 0xd1, 0xa5, + 0x47, 0x7a, 0xcf, 0x23, 0x5d, 0x1e, 0xd9, 0x20, 0x77, 0x9d, 0x63, 0xac, 0x19, 0x8a, 0xd4, 0x1e, + 0x12, 0x58, 0x1d, 0xce, 0x8f, 0xc4, 0x3f, 0x4d, 0x28, 0xb0, 0x3b, 0xb5, 0x80, 0x0c, 0x0e, 0x57, + 0xa0, 0xdf, 0x40, 0x5a, 0x5a, 0xeb, 0x65, 0x93, 0xb9, 0x85, 0xa8, 0xde, 0x65, 0x79, 0xec, 0x3d, + 0x08, 0xd0, 0x6e, 0xc1, 0xc7, 0x02, 0xee, 0x0f, 0xb4, 0x7e, 0xde, 0xed, 0x53, 0x15, 0xd2, 0xb5, + 0x36, 0x67, 0xbe, 0xdb, 0xce, 0x26, 0x73, 0x24, 0x9f, 0x11, 0x00, 0xc4, 0x0c, 0x16, 0xb5, 0xc7, + 0x04, 0x3e, 0x19, 0x25, 0x98, 0xb7, 0x41, 0xdf, 0x43, 0x26, 0xb8, 0x5a, 0x81, 0x45, 0xeb, 0x93, + 0x2c, 0x0a, 0x10, 0xd0, 0xa4, 0x41, 0x90, 0x76, 0x97, 0xc0, 0xba, 0xa0, 0x3c, 0xb2, 0x9b, 0x9d, + 0xde, 0x52, 0x20, 0x9d, 0xbf, 0x5d, 0x60, 0xf1, 0x13, 0xdb, 0xb1, 0x45, 0x1e, 0xe1, 0x98, 0x19, + 0x5a, 0xd1, 0xbe, 0x83, 0xcf, 0x22, 0x38, 0xd0, 0x34, 0x15, 0x80, 0x9f, 0xb1, 0x46, 0x67, 0x00, + 0x92, 0x31, 0x43, 0x2b, 0x5a, 0x11, 0xb2, 0x43, 0x76, 0x57, 0xba, 0x3f, 0x5b, 0x41, 0x13, 0xcb, + 0x90, 0xb4, 0x2d, 0x11, 0xb3, 0x68, 0x26, 0x6d, 0x4b, 0xfb, 0x13, 0xd6, 0x26, 0x68, 0xfb, 0x0f, + 0x6e, 0x29, 0xf0, 0x07, 0xfb, 0x8d, 0xf5, 0xd4, 0xec, 0xab, 0xb5, 0x67, 0x81, 0x99, 0xf8, 0x22, + 0x2a, 0xdd, 0x43, 0xcb, 0x6a, 0x73, 0x6f, 0xee, 0x77, 0x2f, 0x0b, 0x69, 0x26, 0x33, 0xa3, 0x93, + 0xc1, 0x57, 0xfa, 0x2d, 0xa4, 0x3c, 0x9f, 0xf9, 0x1d, 0x2f, 0xbb, 0x90, 0x23, 0xf9, 0xe5, 0x72, + 0x2e, 0xfa, 0xc5, 0x1c, 0x09, 0x1d, 0x5e, 0x5b, 0x8c, 0xd2, 0x2e, 0x08, 0x9e, 0xc3, 0x78, 0x0b, + 0xef, 0xd2, 0xeb, 0xce, 0xe3, 0xdb, 0xc2, 0xdd, 0x98, 0xa3, 0xfe, 0x05, 0x3e, 0x1d, 0x53, 0x62, + 0x27, 0x65, 0x48, 0xc9, 0x7c, 0x71, 0x93, 0x55, 0xc6, 0x99, 0xa8, 0x2c, 0x3f, 0x5d, 0x82, 0xf7, + 0x44, 0x3e, 0x7a, 0x87, 0x40, 0x4a, 0x8e, 0x5d, 0xba, 0x33, 0x29, 0x70, 0x7c, 0xc2, 0x2b, 0xbb, + 0x53, 0x75, 0x92, 0x4c, 0x2b, 0xdc, 0x7e, 0xfe, 0xfa, 0x7e, 0x72, 0x8b, 0x6e, 0x1a, 0x32, 0x40, + 0xfc, 0x6c, 0xd4, 0xdc, 0x86, 0x11, 0xfa, 0x6d, 0x91, 0x43, 0x9e, 0xde, 0x23, 0x90, 0xc6, 0xb3, + 0xa2, 0xd1, 0xf9, 0x87, 0x7f, 0x02, 0x94, 0xfc, 0x74, 0x21, 0x92, 0x14, 0x05, 0xc9, 0x36, 0xd5, + 0x62, 0x48, 0xf0, 0x50, 0xe8, 0x39, 0x81, 0x4c, 0x7f, 0xd8, 0xd1, 0x42, 0x64, 0x8d, 0xd1, 0x91, + 0xac, 0x14, 0x67, 0x91, 0x22, 0xd0, 0xbe, 0x00, 0xda, 0xa1, 0xdb, 0x31, 0x40, 0xfd, 0xf1, 0x46, + 0x2f, 0x08, 0xac, 0x8c, 0x4e, 0x14, 0xfa, 0x45, 0x64, 0xb9, 0x88, 0x21, 0xa8, 0x94, 0xde, 0x22, + 0x02, 0x39, 0xf7, 0x04, 0xe7, 0xe7, 0x74, 0x2b, 0x86, 0xd3, 0xc3, 0x60, 0xfa, 0x88, 0xc0, 0x07, + 0xe1, 0x59, 0x44, 0xf7, 0xa7, 0x3a, 0x12, 0xba, 0xf3, 0xca, 0xc1, 0x8c, 0x6a, 0x44, 0x2b, 0x09, + 0xb4, 0x3d, 0x5a, 0x98, 0xc1, 0xc2, 0xe3, 0x6a, 0xf7, 0xd8, 0xb6, 0xe8, 0x13, 0x02, 0x2b, 0xa3, + 0x13, 0x21, 0xc6, 0xc7, 0x88, 0xf9, 0x17, 0xe3, 0x63, 0xd4, 0xb8, 0xd1, 0xbe, 0x12, 0xb0, 0x06, + 0x3d, 0x98, 0x7e, 0x01, 0x7b, 0xac, 0xc1, 0x1c, 0x7c, 0x40, 0x00, 0x06, 0x4f, 0x9e, 0x16, 0xa7, + 0x14, 0x0e, 0xbb, 0xb9, 0x37, 0x93, 0x16, 0xf1, 0x0c, 0x81, 0x57, 0xa0, 0xbb, 0x53, 0xf1, 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. @@ -792,12 +792,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) @@ -829,27 +829,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 } @@ -880,12 +880,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) @@ -901,14 +901,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") @@ -957,56 +957,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) } @@ -1061,16 +1061,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", @@ -1225,7 +1225,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]) @@ -1235,12 +1235,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 @@ -1267,7 +1267,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]) @@ -1277,20 +1277,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 } @@ -1316,7 +1316,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]) @@ -1326,12 +1326,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 @@ -1358,7 +1358,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]) @@ -1368,12 +1368,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 @@ -1388,7 +1388,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]) @@ -1398,12 +1398,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 @@ -1416,7 +1416,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]) @@ -1426,19 +1426,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 } @@ -1673,7 +1673,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 } @@ -1690,7 +1690,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 } @@ -1700,8 +1700,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)) } @@ -1709,7 +1709,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 } @@ -1726,7 +1726,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 } @@ -1739,7 +1739,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 } @@ -1751,14 +1751,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 @@ -2173,7 +2173,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 { @@ -2196,10 +2196,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: @@ -2291,7 +2291,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 { @@ -2314,10 +2314,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: @@ -2358,7 +2358,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 { @@ -2385,8 +2385,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 @@ -2411,7 +2411,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 { @@ -2434,10 +2434,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: @@ -2529,7 +2529,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 { @@ -2552,10 +2552,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: @@ -2611,7 +2611,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 { @@ -2634,10 +2634,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: @@ -2680,7 +2680,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 { @@ -2703,15 +2703,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 { @@ -2738,10 +2738,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 index 4cdcd2315..b5fe2f819 100644 --- a/warden/x/act/types/v1beta1/rule.go +++ b/warden/x/act/types/v1beta1/rule.go @@ -8,27 +8,27 @@ import ( "github.com/warden-protocol/wardenprotocol/shield/object" ) -func (r *Rule) Eval(ctx context.Context, env shield.Environment) (bool, error) { +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(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 } -func (r *Rule) Validate() error { +func (r *Template) Validate() error { if len(r.Creator) == 0 { - return errors.Wrapf(ErrInvalidRule, "creator is required") + return errors.Wrapf(ErrInvalidTemplate, "creator is required") } if len(r.Name) == 0 { - return errors.Wrapf(ErrInvalidRule, "name is required") + 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, 0x82, 0x8f, 0xe5, 0x72, 0x96, 0x2e, 0xa5, 0x7d, 0x11, 0x99, 0xa4, + 0x23, 0xe2, 0x22, 0x90, 0x73, 0xf2, 0x91, 0x73, 0xef, 0xa1, 0x17, 0x6f, 0xca, 0x94, 0xd0, 0x49, + 0x55, 0xa0, 0x7c, 0x9d, 0xe7, 0x80, 0x6a, 0x2e, 0x11, 0xda, 0xbe, 0x51, 0x08, 0xa2, 0x37, 0x1a, + 0x35, 0x63, 0x1e, 0x11, 0xaa, 0x40, 0x31, 0x21, 0xb3, 0xf3, 0x4a, 0xeb, 0xaa, 0x01, 0xe9, 0x88, + 0x7c, 0xf9, 0x22, 0x55, 0xb7, 0xf6, 0xf8, 0xec, 0xd4, 0x2e, 0x6a, 0x68, 0x4a, 0xa9, 0x2c, 0x6e, + 0x8f, 0x77, 0x2f, 0xdf, 0x09, 0x3d, 0x7c, 0x9c, 0xfe, 0x65, 0x27, 0x34, 0xac, 0xcb, 0x98, 0x24, + 0x24, 0x8d, 0xb2, 0xb0, 0x2e, 0x59, 0x4c, 0x0f, 0x0a, 0x03, 0x0a, 0xb5, 0x89, 0xc3, 0x84, 0xa4, + 0x47, 0xd9, 0x4e, 0x32, 0x46, 0xa3, 0x4e, 0xb5, 0x10, 0xef, 0x39, 0xdb, 0xdd, 0xd9, 0x2d, 0xa5, + 0xb0, 0xea, 0x0d, 0x58, 0x5b, 0xeb, 0x2e, 0x8e, 0x12, 0x92, 0x1e, 0x5f, 0x9f, 0x09, 0x9f, 0x2a, + 0xb6, 0x89, 0x0f, 0xbf, 0xaf, 0xd9, 0x1f, 0xf2, 0xee, 0xf9, 0x73, 0xe0, 0x64, 0x33, 0x70, 0xf2, + 0x3d, 0x70, 0xf2, 0x31, 0xf2, 0x60, 0x33, 0xf2, 0xe0, 0x6b, 0xe4, 0xc1, 0xd3, 0x7d, 0x55, 0xe3, + 0x62, 0x99, 0x8b, 0x42, 0xb7, 0xd2, 0x2f, 0x7b, 0xe5, 0xa6, 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 e136f2aab..f111aef73 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") @@ -867,63 +867,63 @@ func init() { proto.RegisterFile("warden/act/v1beta1/tx.proto", fileDescriptor_f var fileDescriptor_f059980976488200 = []byte{ // 914 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6f, 0xe3, 0x44, - 0x14, 0xaf, 0xd3, 0x6c, 0xbb, 0x79, 0xed, 0x96, 0xc5, 0x74, 0xb7, 0xa9, 0x8b, 0xbc, 0xc1, 0x54, - 0xab, 0x52, 0x58, 0x9b, 0x06, 0x89, 0x43, 0xc5, 0x87, 0x5a, 0x3e, 0x04, 0x87, 0x20, 0x30, 0xfb, - 0x21, 0xad, 0x04, 0xd9, 0xa9, 0x3d, 0xeb, 0x0c, 0x5b, 0x7b, 0x2c, 0xcf, 0x24, 0xdb, 0x88, 0x0b, - 0x70, 0xe4, 0xc4, 0x91, 0x3f, 0x80, 0x03, 0xc7, 0x1e, 0xb8, 0xf0, 0x1f, 0xec, 0x71, 0xc5, 0x89, - 0x13, 0x42, 0xed, 0xa1, 0xff, 0x06, 0xf2, 0xcc, 0xd8, 0xb1, 0x43, 0x1c, 0xef, 0xa1, 0x87, 0x24, - 0x7e, 0xf3, 0x7e, 0xef, 0xbd, 0xdf, 0xfb, 0x98, 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, 0x97, 0x51, 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, 0xcd, - 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, 0xa7, - 0x06, 0x2f, 0xf5, 0x58, 0x70, 0x2f, 0xf6, 0x11, 0xc7, 0x5f, 0x0a, 0xaf, 0xfa, 0xbb, 0xd0, 0x42, - 0x43, 0x3e, 0xa0, 0x09, 0xe1, 0xe3, 0xb6, 0xd6, 0xd1, 0x76, 0x5a, 0x87, 0xed, 0xbf, 0xfe, 0xb8, - 0xb3, 0xae, 0xd2, 0x38, 0xf0, 0xfd, 0x04, 0x33, 0xf6, 0x35, 0x4f, 0x48, 0x14, 0xb8, 0x13, 0xa8, - 0xfe, 0x3e, 0x2c, 0x49, 0x5e, 0xed, 0x46, 0x47, 0xdb, 0x59, 0xe9, 0x1a, 0xf6, 0xff, 0xab, 0x68, - 0xcb, 0x18, 0x87, 0xad, 0x67, 0xff, 0xdc, 0x5a, 0xf8, 0xfd, 0xe2, 0x74, 0x57, 0x73, 0x95, 0xd1, - 0xbe, 0xf3, 0xd3, 0xc5, 0xe9, 0xee, 0xc4, 0xdd, 0xcf, 0x17, 0xa7, 0xbb, 0xaf, 0xaa, 0xcc, 0x4e, - 0x44, 0x6e, 0x53, 0x3c, 0xad, 0x4d, 0xd8, 0x98, 0x3a, 0x72, 0x31, 0x8b, 0x69, 0xc4, 0xb0, 0xf5, - 0x6b, 0x03, 0x56, 0x7b, 0x2c, 0xf8, 0x02, 0x3f, 0x3d, 0x10, 0x85, 0xd0, 0xdb, 0xb0, 0xec, 0x25, - 0x18, 0x71, 0x9a, 0xc8, 0x8c, 0xdc, 0x4c, 0xd4, 0x6d, 0x58, 0x0e, 0x31, 0x63, 0x28, 0xc0, 0x8a, - 0xf6, 0xba, 0x2d, 0x7b, 0x61, 0x67, 0xbd, 0xb0, 0x0f, 0xa2, 0xb1, 0x9b, 0x81, 0xf4, 0x2e, 0xdc, - 0x50, 0xc5, 0xe5, 0x24, 0xc4, 0x74, 0xc8, 0xfb, 0x03, 0x4c, 0x82, 0x01, 0x6f, 0x2f, 0x76, 0xb4, - 0x9d, 0xa6, 0xfb, 0x8a, 0x54, 0xde, 0x95, 0xba, 0xcf, 0x84, 0x4a, 0xff, 0x00, 0xb6, 0xf0, 0x49, - 0x8c, 0x3d, 0x8e, 0xfd, 0x3e, 0x8a, 0xe3, 0x84, 0x8e, 0x70, 0x1f, 0x9f, 0xc4, 0x69, 0x19, 0x09, - 0x8d, 0xda, 0x4d, 0xc1, 0x68, 0x33, 0x83, 0x1c, 0x48, 0xc4, 0x27, 0x39, 0x40, 0x7f, 0x0f, 0x8c, - 0xdc, 0x3e, 0xc1, 0xdf, 0x61, 0x8f, 0x17, 0xcd, 0xaf, 0x08, 0xf3, 0x76, 0x86, 0x70, 0x05, 0x60, - 0x62, 0xbd, 0xbf, 0x9a, 0x16, 0x36, 0xcb, 0xd7, 0xba, 0x0d, 0xeb, 0xc5, 0xca, 0x64, 0x25, 0xd3, - 0xd7, 0xa0, 0x41, 0x7c, 0x51, 0x9c, 0xa6, 0xdb, 0x20, 0xbe, 0xf5, 0x00, 0xae, 0xf7, 0x58, 0xa0, - 0xb8, 0xd4, 0x56, 0x71, 0x0b, 0x5a, 0xaa, 0x2a, 0xc4, 0x17, 0x75, 0x6c, 0xba, 0x57, 0xe5, 0xc1, - 0xe7, 0xfe, 0x14, 0x81, 0x2e, 0xb4, 0xa7, 0x1d, 0xe7, 0x24, 0x6e, 0xc2, 0x12, 0xe3, 0x88, 0x0f, - 0x99, 0xf2, 0xaf, 0x24, 0x6b, 0x00, 0x20, 0x49, 0xbb, 0xc3, 0x63, 0x3c, 0x87, 0x86, 0x0e, 0xcd, - 0x08, 0x85, 0xb2, 0x93, 0x2d, 0x57, 0x3c, 0xeb, 0x26, 0x80, 0x8f, 0x1f, 0x93, 0x88, 0xa4, 0x91, - 0x44, 0x97, 0x5a, 0x6e, 0xe1, 0x64, 0x8a, 0xdd, 0x36, 0xe8, 0x93, 0x48, 0x95, 0xc5, 0xf9, 0x1e, - 0xae, 0xe5, 0xa3, 0x57, 0x43, 0x49, 0x9a, 0x36, 0x32, 0xd3, 0x9c, 0xe2, 0x62, 0x25, 0xc5, 0x66, - 0x0d, 0xc5, 0x0d, 0xb8, 0x51, 0x0a, 0x9e, 0x4f, 0xfd, 0x7d, 0x71, 0x97, 0x5d, 0x3c, 0xa2, 0x4f, - 0x2e, 0xb5, 0x63, 0xf2, 0xa2, 0x15, 0xfd, 0xe6, 0x21, 0xef, 0xc1, 0x5a, 0x8f, 0x05, 0x1f, 0x0d, - 0xb0, 0xf7, 0xe4, 0x32, 0x23, 0xbe, 0x0d, 0x37, 0xcb, 0x6e, 0x6b, 0x27, 0xe4, 0x37, 0x4d, 0xcc, - 0xeb, 0x7d, 0xca, 0xf1, 0xa7, 0x34, 0x51, 0x5c, 0x3a, 0xb0, 0x12, 0xa3, 0x84, 0x13, 0x8f, 0xc4, - 0x28, 0xe2, 0xca, 0xa2, 0x78, 0x34, 0x97, 0x93, 0xfe, 0x21, 0xb4, 0xd2, 0x05, 0xda, 0xe7, 0xe3, - 0x58, 0xf6, 0x6b, 0xad, 0x6b, 0xcd, 0xda, 0x69, 0x32, 0x5a, 0x1a, 0xfa, 0xee, 0x38, 0xc6, 0xee, - 0xd5, 0x91, 0x7a, 0xda, 0xbf, 0x9e, 0x26, 0x55, 0x8c, 0xa7, 0x86, 0xbf, 0xc4, 0xb2, 0x2e, 0xb5, - 0xee, 0x8f, 0x4b, 0xb0, 0xd8, 0x63, 0x81, 0xfe, 0x08, 0x56, 0x4b, 0x7b, 0xfa, 0xf5, 0x59, 0x5c, - 0xa6, 0x36, 0xa2, 0xf1, 0xe6, 0x0b, 0x80, 0x72, 0x06, 0x0f, 0xa0, 0x35, 0x59, 0x99, 0x9d, 0x0a, - 0xcb, 0x1c, 0x61, 0xec, 0xd4, 0x21, 0x72, 0xc7, 0x1e, 0x5c, 0x2b, 0x6f, 0x92, 0xed, 0x0a, 0xd3, - 0x12, 0xca, 0x78, 0xeb, 0x45, 0x50, 0x79, 0x90, 0x6f, 0x60, 0xa5, 0x38, 0x88, 0x56, 0x85, 0x71, - 0x01, 0x63, 0xec, 0xd6, 0x63, 0x72, 0xf7, 0x5f, 0xc1, 0x72, 0xb6, 0x80, 0xcc, 0xea, 0xc4, 0x53, - 0xbd, 0x71, 0x7b, 0xbe, 0x3e, 0x77, 0xf9, 0x10, 0xa0, 0xb0, 0x43, 0x5e, 0x9b, 0xdb, 0x2a, 0xe1, - 0xf8, 0x8d, 0x5a, 0x48, 0xee, 0xfb, 0x11, 0xac, 0x96, 0x36, 0x41, 0xd5, 0xb4, 0x14, 0x41, 0x95, - 0xd3, 0x32, 0xeb, 0xee, 0xa7, 0x4d, 0x2d, 0x5f, 0xb7, 0xaa, 0xa6, 0x96, 0x50, 0x95, 0x4d, 0x9d, - 0x79, 0x29, 0x8c, 0x2b, 0x3f, 0xa4, 0x2f, 0x09, 0x87, 0xdf, 0x3e, 0x3b, 0x33, 0xb5, 0xe7, 0x67, - 0xa6, 0xf6, 0xef, 0x99, 0xa9, 0xfd, 0x72, 0x6e, 0x2e, 0x3c, 0x3f, 0x37, 0x17, 0xfe, 0x3e, 0x37, - 0x17, 0x1e, 0x7e, 0x1c, 0x10, 0x3e, 0x18, 0x1e, 0xd9, 0x1e, 0x0d, 0x1d, 0xe9, 0xf8, 0x8e, 0xf8, - 0xe3, 0xf6, 0xe8, 0xb1, 0x92, 0xa7, 0x44, 0xf5, 0x36, 0x91, 0x5e, 0x6a, 0x96, 0xbd, 0x2f, 0x1d, - 0x2d, 0x09, 0xd0, 0x3b, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x21, 0x5f, 0x32, 0x16, 0x0a, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x6f, 0xdc, 0x44, + 0x14, 0x8f, 0x37, 0xdb, 0xb4, 0x7e, 0x09, 0xa1, 0x35, 0xa1, 0x75, 0x1c, 0xb4, 0x5d, 0x99, 0x82, + 0x56, 0x81, 0xd8, 0x64, 0x91, 0x38, 0x44, 0xfc, 0x51, 0xc2, 0x1f, 0xc1, 0x21, 0x08, 0x99, 0xb4, + 0x95, 0x90, 0x60, 0x3b, 0xb1, 0x27, 0xde, 0xa1, 0x6b, 0x8f, 0xe5, 0x99, 0xdd, 0x66, 0x4f, 0x20, + 0x8e, 0x9c, 0x38, 0xc2, 0x9d, 0x03, 0xc7, 0x1c, 0xb8, 0xf0, 0x0d, 0x7a, 0xac, 0x38, 0x71, 0x42, + 0x28, 0x39, 0xe4, 0x6b, 0x20, 0xcf, 0x8c, 0x1d, 0xdb, 0x5d, 0x67, 0x73, 0xe8, 0x61, 0x77, 0xfd, + 0xe6, 0xfd, 0xde, 0x7b, 0xbf, 0xf7, 0xde, 0xbc, 0xb7, 0x86, 0x8d, 0x27, 0x28, 0x0d, 0x70, 0xec, + 0x22, 0x9f, 0xbb, 0x93, 0xed, 0x43, 0xcc, 0xd1, 0xb6, 0xcb, 0x8f, 0x9d, 0x24, 0xa5, 0x9c, 0x1a, + 0x86, 0x54, 0x3a, 0xc8, 0xe7, 0x8e, 0x52, 0x5a, 0xb7, 0x50, 0x44, 0x62, 0xea, 0x8a, 0x6f, 0x09, + 0xb3, 0xee, 0xf8, 0x94, 0x45, 0x94, 0xb9, 0x11, 0x0b, 0xdd, 0xc9, 0x76, 0xf6, 0xa3, 0x14, 0xeb, + 0x52, 0x31, 0x10, 0x92, 0x2b, 0x05, 0xa5, 0x5a, 0x0b, 0x69, 0x48, 0xe5, 0x79, 0xf6, 0x94, 0x1b, + 0x84, 0x94, 0x86, 0x23, 0xec, 0x0a, 0xe9, 0x70, 0x7c, 0xe4, 0xa2, 0x78, 0xaa, 0x54, 0x77, 0x67, + 0x10, 0x4d, 0x50, 0x8a, 0xa2, 0xdc, 0xe3, 0xbd, 0x19, 0x00, 0xe4, 0x73, 0x42, 0xe3, 0xc1, 0x84, + 0x72, 0x9c, 0xc7, 0x65, 0x43, 0x82, 0x47, 0x81, 0x8b, 0x18, 0xcf, 0x3e, 0xf2, 0xd4, 0xfe, 0x4b, + 0x83, 0x97, 0xf7, 0x59, 0x78, 0x3f, 0x09, 0x10, 0xc7, 0x5f, 0x09, 0xaf, 0xc6, 0x7b, 0xa0, 0xa3, + 0x31, 0x1f, 0xd2, 0x94, 0xf0, 0xa9, 0xa9, 0x75, 0xb5, 0x9e, 0xbe, 0x67, 0xfe, 0xfd, 0xe7, 0xd6, + 0x9a, 0x4a, 0x63, 0x37, 0x08, 0x52, 0xcc, 0xd8, 0xd7, 0x3c, 0x25, 0x71, 0xe8, 0x5d, 0x40, 0x8d, + 0x0f, 0x60, 0x49, 0xf2, 0x32, 0x5b, 0x5d, 0xad, 0xb7, 0xdc, 0xb7, 0x9c, 0xe7, 0xab, 0xe8, 0xc8, + 0x18, 0x7b, 0xfa, 0xd3, 0x7f, 0xef, 0x2e, 0xfc, 0x71, 0x7e, 0xb2, 0xa9, 0x79, 0xca, 0x68, 0xc7, + 0xfd, 0xe9, 0xfc, 0x64, 0xf3, 0xc2, 0xdd, 0xcf, 0xe7, 0x27, 0x9b, 0xaf, 0xa9, 0xcc, 0x8e, 0x45, + 0x6e, 0x35, 0x9e, 0xf6, 0x3a, 0xdc, 0xa9, 0x1d, 0x79, 0x98, 0x25, 0x34, 0x66, 0xd8, 0xfe, 0xb5, + 0x05, 0x2b, 0xfb, 0x2c, 0xfc, 0x12, 0x3f, 0xd9, 0x15, 0x85, 0x30, 0x4c, 0xb8, 0xee, 0xa7, 0x18, + 0x71, 0x9a, 0xca, 0x8c, 0xbc, 0x5c, 0x34, 0x1c, 0xb8, 0x1e, 0x61, 0xc6, 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, 0xd9, 0x4d, 0xdd, 0x13, 0xcf, 0x46, 0x07, 0x20, 0xc0, 0x47, 0x24, 0x26, + 0x59, 0x34, 0xd1, 0x29, 0xdd, 0x2b, 0x9d, 0xd4, 0x18, 0xf6, 0xe0, 0x76, 0x35, 0x5a, 0x63, 0x91, + 0x7e, 0x80, 0x5b, 0xc5, 0x15, 0xbc, 0x02, 0x35, 0x69, 0xde, 0xca, 0xcd, 0x0b, 0xaa, 0x8b, 0x8d, + 0x54, 0xdb, 0x73, 0xa8, 0x6e, 0xc0, 0xfa, 0x73, 0x04, 0x8a, 0x29, 0x78, 0x20, 0x66, 0xdb, 0xc3, + 0x13, 0xfa, 0xf8, 0x85, 0x76, 0x50, 0x0e, 0x5e, 0xd9, 0x6f, 0x11, 0xf2, 0xbe, 0x68, 0xd4, 0xc7, + 0x43, 0xec, 0x3f, 0x7e, 0x91, 0x11, 0xdf, 0x11, 0x1d, 0x29, 0xb9, 0x9d, 0x7b, 0x63, 0x7e, 0xd7, + 0xc4, 0xfd, 0x7d, 0x40, 0x39, 0xfe, 0x8c, 0xa6, 0x8a, 0x4b, 0x17, 0x96, 0x13, 0x94, 0x72, 0xe2, + 0x93, 0x04, 0xc5, 0x5c, 0x59, 0x94, 0x8f, 0x2e, 0xe5, 0x64, 0x7c, 0x04, 0x7a, 0xb6, 0x50, 0x07, + 0x7c, 0x9a, 0xc8, 0x9e, 0xad, 0xf6, 0xed, 0x59, 0x3b, 0x4e, 0x46, 0xcb, 0x42, 0x1f, 0x4c, 0x13, + 0xec, 0xdd, 0x98, 0xa8, 0xa7, 0x9d, 0x9b, 0x59, 0x52, 0xe5, 0x78, 0x6a, 0x18, 0x2a, 0x2c, 0xe7, + 0xa5, 0xd6, 0xff, 0x6d, 0x09, 0x16, 0xf7, 0x59, 0x68, 0x3c, 0x82, 0x95, 0xca, 0xde, 0x7e, 0x7d, + 0x16, 0x97, 0xda, 0x86, 0xb4, 0xde, 0xba, 0x02, 0xa8, 0x60, 0xf0, 0x10, 0xf4, 0x8b, 0x15, 0xda, + 0x6d, 0xb0, 0x2c, 0x10, 0x56, 0x6f, 0x1e, 0xa2, 0x70, 0xec, 0xc3, 0x4b, 0xd5, 0xcd, 0x72, 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, } @@ -948,10 +948,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. @@ -1002,18 +1002,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 } @@ -1049,10 +1049,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. @@ -1075,11 +1075,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") @@ -1164,38 +1164,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) } @@ -1258,12 +1258,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", @@ -1495,7 +1495,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]) @@ -1505,12 +1505,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 @@ -1539,7 +1539,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]) @@ -1549,12 +1549,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 @@ -1567,7 +1567,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]) @@ -1577,12 +1577,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 @@ -1616,7 +1616,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]) @@ -1626,12 +1626,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 @@ -1936,7 +1936,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 } @@ -1957,7 +1957,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 } @@ -1969,7 +1969,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 } @@ -1993,7 +1993,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 } @@ -2712,7 +2712,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 { @@ -2735,10 +2735,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: @@ -2858,7 +2858,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 { @@ -2881,10 +2881,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: @@ -2927,7 +2927,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 { @@ -2950,10 +2950,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: @@ -3092,7 +3092,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 { @@ -3115,10 +3115,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 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/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, 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, 0xb7, 0x6d, 0xcb, 0xb5, 0xa4, 0x02, 0x73, 0x96, 0xf9, 0x0f, 0xc7, 0x2c, 0x2d, 0xea, - 0x96, 0xd3, 0xb2, 0x1c, 0x95, 0x82, 0x2a, 0x6c, 0xc3, 0x4e, 0x2c, 0x2d, 0xd4, 0xad, 0xba, 0xc5, - 0xec, 0xde, 0x8a, 0x5b, 0x97, 0x47, 0x73, 0x35, 0xb0, 0xc7, 0x01, 0xeb, 0x63, 0x01, 0xfa, 0xa9, - 0x66, 0x98, 0x0c, 0x25, 0x7f, 0x15, 0x60, 0xee, 0x89, 0xa7, 0x6f, 0xcf, 0x46, 0xcd, 0xc5, 0xa3, - 0xb6, 0xa6, 0xa3, 0x94, 0x07, 0xd1, 0x20, 0x45, 0x61, 0x45, 0xd8, 0x48, 0x28, 0xa2, 0x41, 0xa4, - 0x22, 0xa4, 0x75, 0xcf, 0x6d, 0xd9, 0x45, 0x71, 0x45, 0xd8, 0x98, 0x55, 0xfc, 0xad, 0xb4, 0x0a, - 0x59, 0xab, 0x6b, 0xa2, 0xed, 0xa8, 0xba, 0xd5, 0x31, 0xdd, 0x62, 0x9c, 0x9e, 0xc9, 0x30, 0xdb, - 0x9e, 0x67, 0x92, 0x64, 0xc8, 0x69, 0xa4, 0x65, 0x98, 0xaa, 0xdd, 0x69, 0xa2, 0x6a, 0x90, 0x62, - 0x82, 0x61, 0xa8, 0x51, 0xe9, 0x34, 0xb1, 0x46, 0xa4, 0x15, 0xc8, 0x3a, 0x46, 0xbd, 0x0f, 0x49, - 0x52, 0x08, 0x78, 0x36, 0x86, 0x90, 0x7f, 0x88, 0x5c, 0xe7, 0x8b, 0x36, 0x09, 0x74, 0x2e, 0xc2, - 0x8c, 0xe3, 0x2d, 0xd4, 0x40, 0x6d, 0x9a, 0xee, 0x6b, 0x64, 0x98, 0x55, 0xbc, 0x9e, 0x35, 0x3e, - 0xc8, 0x2a, 0x6d, 0x41, 0x41, 0x6b, 0xb7, 0x6d, 0xeb, 0x0c, 0xd5, 0x51, 0x6f, 0x90, 0xb8, 0xb3, - 0x1a, 0xba, 0xb4, 0x02, 0x0b, 0x36, 0xbe, 0x41, 0xdd, 0x1d, 0x38, 0xc1, 0x9e, 0x74, 0x9b, 0xf9, - 0x06, 0x0e, 0xf8, 0x1c, 0x11, 0x35, 0x29, 0x76, 0x80, 0xfb, 0x8e, 0xfa, 0xa2, 0x36, 0x61, 0x9e, - 0x33, 0x44, 0xf0, 0x69, 0x8a, 0x9f, 0x63, 0xae, 0x3e, 0x5c, 0xb6, 0x40, 0xa2, 0x81, 0xab, 0x12, - 0x42, 0xa3, 0xf6, 0xcc, 0xcb, 0xcd, 0xa4, 0xd0, 0xdd, 0x83, 0x59, 0x13, 0xbb, 0x2a, 0xcd, 0x21, - 0xcf, 0xf7, 0x8c, 0x89, 0x5d, 0x76, 0xee, 0xfa, 0x84, 0xcb, 0xef, 0xa1, 0x40, 0x09, 0x15, 0x6c, - 0x79, 0xc2, 0xa7, 0xe2, 0x5c, 0x83, 0x9c, 0x4d, 0xe1, 0x24, 0xc2, 0x9b, 0xe5, 0xc6, 0xa9, 0xb9, - 0x7f, 0x0a, 0xfc, 0xb5, 0x87, 0xd8, 0x3d, 0xc0, 0x9e, 0x82, 0x6f, 0x3b, 0xe8, 0xb8, 0x43, 0x05, - 0x1d, 0x56, 0x22, 0x46, 0x95, 0x2c, 0x43, 0xc6, 0x6f, 0x91, 0x50, 0x4d, 0xf8, 0xa6, 0x1a, 0x91, - 0xee, 0x42, 0x3a, 0x5a, 0x05, 0x29, 0x9b, 0xe5, 0xe5, 0x31, 0xcc, 0x34, 0xb0, 0xa7, 0xba, 0xbd, - 0x36, 0xd2, 0x6c, 0xe7, 0xb7, 0x4b, 0xe5, 0x91, 0xcd, 0x5e, 0x3e, 0xc0, 0xde, 0xf3, 0x5e, 0x1b, - 0x95, 0x74, 0x83, 0x2d, 0xc2, 0x0d, 0x96, 0x8a, 0x34, 0x98, 0xfc, 0x4d, 0x80, 0x4c, 0xe8, 0x41, - 0x43, 0x2f, 0x09, 0x93, 0x8a, 0x37, 0x23, 0x0d, 0x07, 0x21, 0x3e, 0x31, 0x08, 0x89, 0x49, 0x41, - 0x48, 0x86, 0x83, 0x20, 0x3f, 0x0c, 0x92, 0xef, 0x95, 0xe1, 0xf8, 0x14, 0xc8, 0x9f, 0x04, 0xc8, - 0x87, 0x1a, 0x7a, 0xd4, 0xdb, 0x42, 0x24, 0x62, 0x24, 0xd2, 0x0f, 0xe0, 0x96, 0xdf, 0x32, 0xd1, - 0xde, 0xcd, 0x71, 0x33, 0xef, 0x94, 0x75, 0xc8, 0xf3, 0x4e, 0x89, 0x66, 0x2c, 0xcb, 0xac, 0xbc, - 0x41, 0x5e, 0xc2, 0xbc, 0x1f, 0x61, 0xda, 0x36, 0x63, 0x6a, 0xa6, 0x00, 0x29, 0x2f, 0xd2, 0x81, - 0x98, 0x64, 0x03, 0x7b, 0xb5, 0xc8, 0x6c, 0x8c, 0x47, 0x53, 0xb7, 0x01, 0x77, 0xe8, 0xbd, 0xfb, - 0x9d, 0xe6, 0x89, 0xd1, 0x9c, 0x70, 0x75, 0x80, 0x54, 0xfa, 0xbd, 0x3b, 0x06, 0xf9, 0xd9, 0x1f, - 0xd7, 0xac, 0x1c, 0x68, 0x3a, 0x6e, 0x30, 0xae, 0x0f, 0x21, 0x17, 0xe4, 0xf5, 0x04, 0xd1, 0xa1, - 0x92, 0x33, 0xdb, 0x6b, 0xe3, 0x4b, 0x86, 0x62, 0xf7, 0x11, 0x9d, 0xdd, 0xc4, 0xf9, 0x9f, 0xe5, - 0x98, 0x92, 0x6d, 0x84, 0x6c, 0x72, 0x87, 0x87, 0x2e, 0xc8, 0xe1, 0x68, 0x41, 0x43, 0xb4, 0xe2, - 0xff, 0xd1, 0x36, 0x79, 0xbc, 0xaa, 0x84, 0xf8, 0xd8, 0x57, 0xb6, 0xe1, 0xa2, 0x3d, 0xc4, 0x7c, - 0x1f, 0xc0, 0x9b, 0x65, 0x5d, 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, + // 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, 0xbd, 0x27, 0x66, 0x5d, 0x49, 0xe6, 0x6a, 0xe3, 0x80, 0x01, 0xfe, 0x1b, 0x09, + 0x50, 0xcf, 0x14, 0xdd, 0xa0, 0x28, 0xe9, 0x0b, 0x07, 0xb3, 0x8f, 0x3d, 0x7d, 0xbb, 0x36, 0x2a, + 0x2e, 0x1e, 0x59, 0x8a, 0x8a, 0x42, 0x09, 0x78, 0x5d, 0x13, 0xb9, 0x55, 0xae, 0x9a, 0x69, 0xf2, + 0xba, 0x26, 0x88, 0x90, 0x57, 0x3d, 0xb7, 0x69, 0x8b, 0xfc, 0x2a, 0x57, 0x9d, 0x6e, 0xfa, 0x47, + 0x61, 0x0d, 0x8a, 0x66, 0xdf, 0x40, 0xdb, 0x91, 0x55, 0xb3, 0x67, 0xb8, 0x62, 0x9a, 0xc4, 0x14, + 0xa8, 0x6d, 0xd7, 0x33, 0x09, 0xf7, 0x60, 0x4e, 0xd1, 0xba, 0xba, 0x21, 0xbb, 0xd8, 0xb5, 0x3a, + 0x8a, 0x8b, 0xb2, 0xae, 0x89, 0x19, 0x82, 0xfb, 0x8b, 0x38, 0x8e, 0x99, 0x7d, 0x5f, 0x13, 0xaa, + 0x30, 0xeb, 0xe8, 0xad, 0x28, 0x34, 0x4b, 0xa0, 0x25, 0xcf, 0x7e, 0x83, 0x94, 0x7e, 0xf1, 0x4c, + 0xf7, 0x33, 0x4b, 0x0b, 0x74, 0x2f, 0xc1, 0x94, 0xe3, 0x3d, 0xc8, 0x81, 0xfa, 0x3c, 0x39, 0xef, + 0x6b, 0xc9, 0x2a, 0xf8, 0xc9, 0x55, 0xa4, 0x93, 0x54, 0x08, 0x8f, 0x60, 0x49, 0xb1, 0x2c, 0xdb, + 0x3c, 0x47, 0x79, 0xd4, 0x1d, 0x17, 0x19, 0xa0, 0x31, 0x44, 0xf2, 0x10, 0x44, 0x1b, 0x5f, 0xa1, + 0xea, 0x26, 0x44, 0xd2, 0x2b, 0x97, 0xa9, 0x3f, 0x21, 0xd0, 0xe7, 0x8c, 0xa9, 0xcc, 0xd1, 0x40, + 0xe6, 0x3f, 0x8a, 0x8a, 0xdd, 0x86, 0xbf, 0x19, 0x63, 0x2c, 0x2e, 0x4f, 0xe2, 0x16, 0xa8, 0x3b, + 0x1a, 0x26, 0x99, 0x20, 0x90, 0x44, 0x37, 0x34, 0x8d, 0x64, 0xf9, 0xa9, 0x57, 0xdb, 0x71, 0xa9, + 0xfe, 0x07, 0xa6, 0x0d, 0xec, 0xcb, 0xa4, 0x07, 0x58, 0xbf, 0x4c, 0x19, 0xd8, 0xa7, 0x71, 0xb7, + 0x37, 0x8c, 0xf4, 0x16, 0xca, 0x84, 0xb0, 0x89, 0x5d, 0xef, 0x12, 0x13, 0x71, 0xae, 0xc3, 0x8c, + 0x4d, 0xe0, 0x5a, 0x84, 0xb7, 0xc8, 0x8c, 0x13, 0x73, 0x7f, 0xe3, 0xd8, 0x6d, 0x0f, 0xb1, 0x7f, + 0x80, 0x83, 0x26, 0xbe, 0xee, 0xa1, 0xe3, 0xc6, 0x06, 0x22, 0xac, 0x84, 0x8f, 0x2a, 0x59, 0x81, + 0x82, 0x3f, 0x62, 0x37, 0x7d, 0x03, 0xbe, 0x89, 0x02, 0xe2, 0x5d, 0x02, 0x6e, 0xb8, 0xa9, 0xa6, + 0xda, 0x38, 0x90, 0xdd, 0x81, 0x85, 0xa4, 0x13, 0x4a, 0x9b, 0x95, 0x5a, 0xe2, 0xd2, 0xa8, 0x1d, + 0xe0, 0xe0, 0x78, 0x60, 0x61, 0x33, 0xdf, 0xa6, 0x0f, 0xe1, 0x41, 0xcd, 0x45, 0x06, 0xd5, 0x9b, + 0xf3, 0x42, 0xe8, 0x62, 0xb1, 0x1b, 0x85, 0x49, 0xf9, 0xbb, 0x91, 0x86, 0x93, 0x91, 0x1e, 0x9b, + 0x8c, 0xcc, 0x6d, 0xc9, 0xc8, 0x0e, 0x27, 0x43, 0xfa, 0x3f, 0x68, 0x06, 0xaf, 0x35, 0x47, 0x97, + 0x44, 0xfa, 0xc4, 0x41, 0x29, 0xb4, 0x10, 0x92, 0xee, 0x38, 0x44, 0xc6, 0xc7, 0x32, 0x5f, 0x83, + 0x79, 0x7f, 0xb4, 0xe2, 0xb3, 0x3f, 0xc7, 0x5c, 0xa1, 0x89, 0xba, 0x0f, 0x02, 0x9b, 0xa8, 0x78, + 0x45, 0x67, 0xa9, 0x27, 0x34, 0x48, 0xcf, 0x61, 0xde, 0xaf, 0x80, 0x37, 0x62, 0xa3, 0x7a, 0xab, + 0x0c, 0x39, 0xaf, 0x12, 0x81, 0xc0, 0x6c, 0x1b, 0x07, 0xfb, 0x91, 0x1d, 0x9c, 0x8e, 0x96, 0xb6, + 0x0a, 0x8b, 0xe4, 0x7f, 0xf7, 0x7a, 0x9d, 0x53, 0xbd, 0x33, 0xe6, 0xaf, 0x03, 0x64, 0x33, 0x98, + 0xf3, 0x51, 0xc8, 0x0f, 0xfe, 0x6b, 0x81, 0xb6, 0x0b, 0x29, 0xd7, 0x1d, 0x5e, 0x0b, 0x87, 0x30, + 0x13, 0xd4, 0xfd, 0x14, 0xd1, 0x21, 0x92, 0x0b, 0x9b, 0xeb, 0xa3, 0x5b, 0x8a, 0x60, 0xf7, 0x10, + 0x9d, 0x9d, 0xcc, 0xc5, 0x8f, 0x95, 0x54, 0xb3, 0xd8, 0x0e, 0xd9, 0xa4, 0x1e, 0x4b, 0x5d, 0x50, + 0xdb, 0x64, 0x41, 0x31, 0x5a, 0xfe, 0xcf, 0x68, 0x3b, 0x2c, 0x5f, 0x0d, 0x4d, 0xf3, 0xb1, 0x2f, + 0x6c, 0xdd, 0x45, 0x3b, 0xc6, 0xfc, 0x2f, 0x80, 0xb7, 0xf3, 0xfa, 0xc4, 0xcb, 0xb2, 0xe1, 0x6d, + 0x41, 0x06, 0x5f, 0x87, 0x19, 0xea, 0x8a, 0xae, 0x9e, 0x22, 0x33, 0xd2, 0xdd, 0xf3, 0x9e, 0x63, + 0xbd, 0x1e, 0xa2, 0x23, 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, 0xaf, 0xe2, 0x37, 0x43, 0x4c, 0x3c, 0x38, 0x0b, 0x58, - 0xdb, 0xe2, 0x99, 0x3c, 0x53, 0x48, 0xa9, 0xac, 0x6d, 0x41, 0x1e, 0x64, 0x4c, 0x17, 0x1b, 0x9e, - 0xe3, 0xf2, 0x6c, 0x9e, 0x29, 0x4c, 0xaa, 0xb1, 0x0b, 0x17, 0xc1, 0x04, 0x19, 0x18, 0x26, 0xd6, - 0x6d, 0x8b, 0x4f, 0x52, 0x7e, 0x86, 0xfa, 0x8a, 0x05, 0x73, 0x60, 0xaa, 0x8b, 0x7d, 0x73, 0xdf, - 0xb0, 0xfb, 0x01, 0x9a, 0xa2, 0x28, 0x88, 0x43, 0x8a, 0x05, 0xd7, 0xc1, 0x44, 0x17, 0xfb, 0xba, - 0xe7, 0x0f, 0x30, 0x7f, 0x23, 0xcf, 0x14, 0x66, 0xcb, 0x82, 0x38, 0xb6, 0x4f, 0xb1, 0x8e, 0xfd, - 0xa6, 0x3f, 0xc0, 0x6a, 0xa6, 0x1b, 0x1a, 0xf0, 0x31, 0x48, 0x13, 0xcf, 0xf0, 0x86, 0x84, 0x4f, - 0xd3, 0xc4, 0x87, 0x7f, 0x4f, 0x8c, 0x7a, 0xd2, 0x28, 0x5d, 0x8d, 0xd2, 0xe0, 0x3d, 0x30, 0xe3, - 0xe2, 0xd7, 0xd8, 0xf4, 0x74, 0x17, 0x1b, 0xc4, 0xe9, 0xf3, 0x19, 0xda, 0xd7, 0x74, 0x18, 0x54, - 0x69, 0x0c, 0xde, 0x06, 0x19, 0x77, 0xd8, 0xa3, 0xbd, 0x4d, 0xd0, 0xea, 0xd3, 0x81, 0xab, 0x58, - 0xf0, 0x23, 0x03, 0x16, 0x2c, 0x6c, 0x0d, 0x4d, 0x0f, 0x5b, 0xfa, 0x45, 0x93, 0xaf, 0x30, 0x26, - 0xfc, 0x64, 0x3e, 0x59, 0x98, 0x2a, 0x2f, 0x8a, 0xa1, 0x0c, 0x62, 0x20, 0x43, 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, 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, + // 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, 0xb3, 0x9b, 0x1f, 0xd2, 0x00, 0x34, 0x71, 0xa8, 0xe2, 0x67, 0x23, 0x4c, + 0x02, 0xb8, 0x04, 0x58, 0xc7, 0xe6, 0x99, 0x22, 0x53, 0xca, 0xa8, 0xac, 0x63, 0x43, 0x1e, 0xe4, + 0x2c, 0x1f, 0x9b, 0x81, 0xeb, 0xf3, 0x6c, 0x91, 0x29, 0xcd, 0xab, 0xe3, 0x10, 0xae, 0x83, 0x39, + 0xe2, 0x99, 0x16, 0x36, 0x1c, 0x9b, 0x4f, 0x53, 0x7e, 0x8e, 0xc6, 0x8a, 0x0d, 0x0b, 0x60, 0xa1, + 0x87, 0x43, 0xeb, 0xd4, 0x74, 0x86, 0x11, 0x9a, 0xa1, 0x28, 0x18, 0xa7, 0x14, 0x1b, 0xee, 0x82, + 0xb9, 0x1e, 0x0e, 0x8d, 0x20, 0xf4, 0x30, 0xff, 0x53, 0x91, 0x29, 0x2d, 0x55, 0x05, 0x71, 0xa6, + 0x4e, 0xb1, 0x89, 0x43, 0x3d, 0xf4, 0xb0, 0x9a, 0xeb, 0xc5, 0x1b, 0xf8, 0x37, 0xc8, 0x92, 0xc0, + 0x0c, 0x46, 0x84, 0xcf, 0xd2, 0xc2, 0x3f, 0xbe, 0x5d, 0x98, 0x68, 0xd2, 0x28, 0x5d, 0x4d, 0xca, + 0xe0, 0xef, 0xe0, 0x67, 0x1f, 0x3f, 0xc5, 0x56, 0x60, 0xf8, 0xd8, 0x24, 0xee, 0x90, 0xcf, 0x51, + 0x5d, 0x8b, 0x71, 0x52, 0xa5, 0xb9, 0x48, 0x41, 0x80, 0x07, 0x5e, 0xdf, 0x0c, 0xa8, 0xbe, 0xb9, + 0x58, 0xc1, 0x38, 0xa5, 0xd8, 0xf0, 0x15, 0x03, 0xd6, 0x6c, 0x6c, 0x8f, 0xac, 0x00, 0xdb, 0xc6, + 0xad, 0xd8, 0x27, 0x18, 0x13, 0x7e, 0xbe, 0x98, 0x2e, 0x2d, 0x54, 0xd7, 0xc5, 0xd8, 0x0e, 0x31, + 0xb2, 0x23, 0xe9, 0xaa, 0x22, 0xd6, 0x5d, 0x67, 0xb8, 0xd7, 0xb8, 0xf8, 0x54, 0x48, 0xbd, 0xff, + 0x5c, 0x28, 0x75, 0x9d, 0xe0, 0x74, 0xd4, 0x11, 0x2d, 0x77, 0x20, 0x25, 0xde, 0xc5, 0xcb, 0x16, + 0xb1, 0x7b, 0x52, 0x34, 0x1c, 0x42, 0x0b, 0xc8, 0x9b, 0x9b, 0xf3, 0xf2, 0x62, 0x1f, 0x77, 0x4d, + 0x2b, 0x34, 0x22, 0x43, 0xc9, 0xbb, 0x9b, 0xf3, 0x32, 0xa3, 0xae, 0x8c, 0x1b, 0x68, 0x26, 0xe7, + 0x37, 0x30, 0x26, 0x9b, 0x6f, 0x59, 0x90, 0x6e, 0xe2, 0x70, 0xca, 0xc9, 0xfb, 0x7e, 0xb1, 0xdf, + 0xf5, 0x2b, 0x3d, 0xe5, 0x57, 0x15, 0x64, 0xa8, 0x57, 0x99, 0x1f, 0xf2, 0x8a, 0x72, 0xe1, 0x6f, + 0x00, 0x78, 0xa3, 0x4e, 0xdf, 0xb1, 0xa2, 0xf1, 0x50, 0x97, 0x17, 0xd5, 0xf9, 0x38, 0x13, 0xb5, + 0x37, 0x31, 0xe1, 0xec, 0xd4, 0x84, 0x45, 0xf0, 0x8b, 0xe9, 0x79, 0xbe, 0x7b, 0x86, 0x8d, 0xfb, + 0xc4, 0x1c, 0x25, 0x2e, 0x27, 0x90, 0x7e, 0xc7, 0xff, 0x13, 0xc0, 0xc4, 0xd7, 0x69, 0xe7, 0xb8, + 0x18, 0xb9, 0x63, 0x97, 0x5f, 0x33, 0x80, 0x9b, 0xbc, 0x22, 0x70, 0x13, 0x08, 0x4d, 0x74, 0x62, + 0xa8, 0xe8, 0xbf, 0x36, 0xd2, 0x74, 0x43, 0xd3, 0x6b, 0x7a, 0x5b, 0x33, 0xda, 0x47, 0x5a, 0x0b, + 0xd5, 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, 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, 0xb7, 0xda, 0xd0, 0x30, 0x0a, 0x7a, - 0xcd, 0xa4, 0x94, 0xe4, 0x0e, 0xea, 0x7a, 0x9d, 0xa2, 0xc9, 0x69, 0x35, 0xaa, 0xf6, 0x9a, 0x89, - 0x57, 0xa4, 0x0b, 0x97, 0x5c, 0x2e, 0x54, 0x3a, 0x31, 0xcb, 0x39, 0x4e, 0x94, 0xa4, 0x35, 0xf7, - 0xb3, 0x96, 0x1b, 0x26, 0xcb, 0x39, 0x3e, 0x4b, 0x12, 0xc1, 0x45, 0xae, 0x66, 0x07, 0xa4, 0xee, - 0x10, 0xd8, 0xcf, 0x3c, 0xd1, 0x86, 0x5a, 0xaa, 0x53, 0x81, 0xb4, 0xe1, 0xac, 0x42, 0x90, 0x21, - 0x74, 0x78, 0x96, 0x19, 0xbd, 0xc2, 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, + 0xc2, 0x31, 0xf5, 0xbe, 0xf7, 0xfd, 0xbe, 0xfb, 0xee, 0xf2, 0x0a, 0x67, 0x73, 0x66, 0x04, 0xc6, + 0x5d, 0x7f, 0xcc, 0xae, 0x46, 0x68, 0x59, 0xaf, 0x9b, 0x68, 0xc6, 0xb1, 0xa3, 0x8d, 0xb2, 0x8a, + 0x34, 0x53, 0xaf, 0xe3, 0x0f, 0x8f, 0x9c, 0x7f, 0x95, 0xa0, 0x3c, 0x58, 0x63, 0xa4, 0x0e, 0x45, + 0x29, 0x68, 0xd0, 0x0e, 0xa2, 0xbd, 0x7e, 0x51, 0x0a, 0x42, 0xa1, 0xca, 0x0d, 0x32, 0xab, 0x0c, + 0x2d, 0xb6, 0x83, 0xa8, 0xd6, 0xcf, 0x24, 0x69, 0x41, 0x45, 0xcd, 0x63, 0x34, 0x09, 0x2d, 0xb5, + 0x4b, 0x51, 0xad, 0xef, 0x15, 0xb9, 0x80, 0x63, 0x26, 0xa6, 0x32, 0x1e, 0x5a, 0x9c, 0xea, 0x09, + 0xb3, 0x38, 0x94, 0x82, 0x96, 0xdd, 0x0b, 0x0f, 0x9d, 0xf1, 0xe4, 0xe7, 0x8f, 0x82, 0x44, 0x70, + 0x94, 0xc8, 0xf1, 0x26, 0x5a, 0x71, 0x68, 0x7d, 0x3d, 0xff, 0x47, 0x36, 0xa0, 0x1c, 0xab, 0x98, + 0x23, 0xad, 0x3a, 0x3b, 0x15, 0xe4, 0x16, 0x4e, 0x99, 0xd6, 0x46, 0xcd, 0x70, 0x98, 0xef, 0xdc, + 0x77, 0x64, 0xcb, 0x03, 0x77, 0x5b, 0xd5, 0x37, 0x40, 0x0d, 0xbe, 0x22, 0xb7, 0x3b, 0x92, 0x35, + 0x97, 0x6c, 0xa6, 0xfe, 0x8e, 0x60, 0xd6, 0x99, 0xfb, 0x76, 0x48, 0x83, 0xde, 0x1f, 0x6c, 0xfe, + 0xc2, 0x35, 0x9c, 0xf8, 0xc6, 0x5c, 0xee, 0xc0, 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, 0x32, 0xd6, 0x9a, 0xfc, 0xe7, 0x68, 0x73, 0x1f, 0x9b, - 0x68, 0xab, 0x69, 0x1e, 0x37, 0xfa, 0x86, 0x6e, 0xea, 0xe2, 0x39, 0xb6, 0xd0, 0xe0, 0x3f, 0x7c, - 0xbd, 0xbc, 0x80, 0x7a, 0x8a, 0xa6, 0x37, 0xe9, 0x5f, 0x86, 0x2c, 0x5f, 0xe8, 0xe8, 0xa4, 0xa7, - 0x93, 0x66, 0x8f, 0x74, 0x9b, 0x47, 0x9b, 0xf6, 0x0f, 0x5f, 0xa8, 0xf0, 0x85, 0x7d, 0x44, 0x30, - 0x17, 0xb0, 0xd9, 0xec, 0xe8, 0x8a, 0xc6, 0xd7, 0x97, 0xd8, 0x7a, 0x9b, 0x8e, 0x9a, 0x6c, 0xc0, - 0x97, 0x16, 0xbb, 0x7a, 0x57, 0x67, 0xf3, 0xf6, 0x97, 0xb3, 0xa1, 0xab, 0xeb, 0x5d, 0x15, 0x37, - 0xe9, 0x68, 0xdf, 0x3a, 0x68, 0x22, 0x6d, 0xc8, 0x97, 0x56, 0x26, 0x9b, 0x73, 0x88, 0x1d, 0xc0, - 0x95, 0x50, 0x40, 0xe7, 0x01, 0x72, 0x55, 0xaa, 0x4d, 0x46, 0xf5, 0x91, 0x81, 0x7a, 0x8e, 0x6e, - 0xab, 0x93, 0x31, 0x44, 0xe9, 0x6a, 0xc8, 0xb4, 0x0c, 0xcc, 0x60, 0xb5, 0xef, 0x05, 0x38, 0xb3, - 0x4b, 0xba, 0x6f, 0xf5, 0x65, 0x64, 0xe2, 0x37, 0xe8, 0x01, 0xe2, 0x7f, 0x20, 0x8b, 0x2c, 0xf3, - 0x81, 0x6e, 0x28, 0xe6, 0xb0, 0x24, 0x54, 0x85, 0x7a, 0x76, 0xbb, 0xf4, 0xc3, 0xb7, 0x1b, 0x8b, - 0xdc, 0xf6, 0x5b, 0xb2, 0x6c, 0x60, 0x42, 0xf6, 0x4c, 0x43, 0xd1, 0xba, 0xd2, 0x08, 0x2a, 0xde, - 0x84, 0x14, 0x53, 0xa1, 0x14, 0xab, 0x0a, 0xf5, 0x5c, 0x6b, 0xb9, 0x31, 0x31, 0x3a, 0x0d, 0x26, - 0x66, 0x3b, 0xfb, 0xf8, 0xa7, 0x95, 0xb9, 0x47, 0xa7, 0x27, 0x6b, 0x82, 0xc4, 0xf7, 0xdd, 0x68, - 0x7d, 0x74, 0x7a, 0xb2, 0x36, 0x3a, 0xf1, 0xe1, 0xe9, 0xc9, 0x9a, 0xe3, 0xb2, 0x63, 0xc7, 0x92, - 0x80, 0xb6, 0xb5, 0x25, 0xb8, 0x10, 0x98, 0x92, 0x30, 0xe9, 0xeb, 0x1a, 0xc1, 0xb5, 0x47, 0x02, - 0xe4, 0x76, 0x49, 0xf7, 0x1e, 0x1e, 0xec, 0xf5, 0x51, 0x07, 0x8b, 0x25, 0x48, 0x77, 0x0c, 0x8c, - 0x4c, 0xdd, 0x60, 0x66, 0x49, 0xce, 0x50, 0xac, 0xc1, 0x3c, 0x92, 0x7b, 0x8a, 0xd6, 0x36, 0x2c, - 0x15, 0xb7, 0x15, 0x99, 0x5a, 0x90, 0x90, 0x72, 0x74, 0x52, 0xb2, 0x54, 0xbc, 0x23, 0x8b, 0x55, - 0xc8, 0xdb, 0xde, 0x73, 0x21, 0x71, 0x0a, 0x01, 0x7b, 0x8e, 0x23, 0xd6, 0x61, 0x01, 0xc9, 0xb2, - 0x62, 0x2a, 0xba, 0x86, 0xd4, 0xb6, 0x3e, 0xd0, 0xb0, 0x41, 0x4a, 0x89, 0x6a, 0xbc, 0x9e, 0x95, - 0x8a, 0xa3, 0x85, 0xd7, 0xe9, 0xfc, 0x8d, 0xbc, 0x6d, 0xab, 0xa3, 0x40, 0x6d, 0x15, 0xce, 0x7a, - 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, 0xc5, 0xfe, 0x14, 0x97, 0x01, 0x0e, 0xf1, 0xd0, - 0x2e, 0x64, 0xb6, 0xf3, 0xd2, 0xcc, 0xb3, 0x7c, 0x66, 0x47, 0xf6, 0x67, 0xdc, 0x6b, 0x89, 0x4c, - 0xbc, 0x98, 0xa8, 0xd5, 0xe1, 0xbc, 0xdf, 0xec, 0xd0, 0xd4, 0x1b, 0xc0, 0x22, 0x8b, 0xb4, 0x83, - 0x7c, 0xdb, 0x50, 0x4c, 0x6c, 0x44, 0xb8, 0x69, 0x05, 0x72, 0xae, 0x4b, 0xdc, 0x60, 0x82, 0x33, - 0xb5, 0x23, 0x8b, 0xe7, 0x21, 0x35, 0xa0, 0x87, 0xf0, 0x80, 0xf2, 0x51, 0x80, 0x1a, 0x15, 0xb8, - 0x34, 0x49, 0xb0, 0x1b, 0xba, 0x3f, 0x62, 0x34, 0x74, 0xac, 0x02, 0x30, 0xa2, 0xbf, 0x70, 0x86, - 0x8d, 0xd5, 0x81, 0xf8, 0xf4, 0x3a, 0x90, 0x18, 0xab, 0x03, 0x6e, 0x46, 0x26, 0x3d, 0x19, 0x29, - 0x6e, 0xc2, 0x39, 0xd4, 0xef, 0x1b, 0xfa, 0x11, 0x6e, 0xfb, 0x65, 0xa4, 0x28, 0x4a, 0xe4, 0x8b, - 0xb7, 0x3c, 0xa2, 0x9a, 0xb0, 0x68, 0xe0, 0x77, 0x71, 0xc7, 0x0c, 0xec, 0x48, 0xd3, 0x1d, 0x0b, - 0x6c, 0x2d, 0xb0, 0xc1, 0x91, 0xe1, 0xd3, 0x31, 0xc3, 0x36, 0xf0, 0xb5, 0xbd, 0x91, 0xaa, 0x1b, - 0x70, 0x96, 0x4b, 0xf0, 0xe1, 0xb3, 0x14, 0x5f, 0x64, 0x4b, 0x23, 0xf8, 0x18, 0xab, 0x4a, 0x34, - 0x7d, 0x3c, 0xae, 0x77, 0xa3, 0xf2, 0x45, 0x0c, 0x16, 0xdc, 0xa5, 0x19, 0x38, 0x35, 0x35, 0x59, - 0x1c, 0xd2, 0xc5, 0xa3, 0x48, 0x97, 0x7c, 0xa9, 0xa4, 0x4b, 0x85, 0x92, 0x2e, 0x1d, 0x46, 0xba, - 0xcc, 0x34, 0xd2, 0x25, 0x8a, 0xc9, 0xda, 0x45, 0x58, 0x1a, 0x73, 0x8d, 0xeb, 0xb8, 0xaf, 0x05, - 0x28, 0xfb, 0xf3, 0x9d, 0x05, 0x18, 0xbf, 0x67, 0x61, 0x62, 0x4e, 0x49, 0xed, 0xa9, 0x5e, 0xfc, - 0x37, 0x2b, 0xf9, 0x34, 0x9d, 0x98, 0x2b, 0x23, 0x7a, 0xbb, 0xdd, 0x0c, 0xa8, 0xf0, 0x90, 0x6a, - 0x3a, 0xae, 0x23, 0xb7, 0xe1, 0x2b, 0x01, 0x96, 0xdd, 0x6a, 0xfb, 0x77, 0x98, 0xd1, 0x80, 0xe4, - 0x6c, 0x26, 0x30, 0xd8, 0x98, 0xfe, 0x55, 0xa8, 0x84, 0xe9, 0xc7, 0x4d, 0xf8, 0x3d, 0x46, 0x3b, - 0x2d, 0xab, 0x8c, 0xb3, 0x69, 0x1d, 0x51, 0x57, 0x02, 0x06, 0xc5, 0xc7, 0x0c, 0xfa, 0x2f, 0x64, - 0x0e, 0xf1, 0xb0, 0x6d, 0x0e, 0xfb, 0xac, 0x8f, 0x15, 0x5a, 0x95, 0xf0, 0x24, 0x7e, 0x73, 0xd8, - 0xc7, 0x52, 0xfa, 0x90, 0x7d, 0x88, 0x17, 0x20, 0xed, 0xd0, 0x96, 0xd5, 0x9b, 0x94, 0xc1, 0xb8, - 0xfd, 0x89, 0x00, 0x0b, 0x3d, 0x74, 0xdc, 0xf6, 0x53, 0x24, 0x55, 0x8d, 0xd7, 0x73, 0xad, 0xa5, - 0x06, 0x77, 0x97, 0x9d, 0xa6, 0xfc, 0xec, 0xcd, 0xc6, 0xff, 0x75, 0x45, 0xdb, 0xbe, 0x6d, 0x13, - 0xe3, 0x9b, 0x9f, 0x57, 0xea, 0x5d, 0xc5, 0x7c, 0x60, 0xed, 0x37, 0x3a, 0x7a, 0x8f, 0x5f, 0x7b, - 0xf9, 0xcf, 0x06, 0x91, 0x0f, 0x9b, 0xb6, 0xa6, 0x84, 0x6e, 0x20, 0x5f, 0x9e, 0x9e, 0xac, 0xe5, - 0x55, 0xdc, 0x45, 0x9d, 0x61, 0xdb, 0xbe, 0x38, 0x13, 0x76, 0xa9, 0x3b, 0xd3, 0x43, 0xc7, 0x5e, - 0xc6, 0x8d, 0xca, 0x62, 0x3a, 0xaa, 0x51, 0xaf, 0xd1, 0x1b, 0x85, 0xcf, 0xef, 0xa1, 0x3d, 0x69, - 0x0d, 0xb2, 0x2e, 0xd6, 0x26, 0x62, 0xdf, 0xda, 0x57, 0x95, 0x8e, 0x6d, 0x30, 0x05, 0xe5, 0xa5, - 0x2c, 0x9b, 0xb9, 0x8b, 0x87, 0xb5, 0x8f, 0x63, 0xf4, 0x36, 0x72, 0xdb, 0x52, 0x0f, 0x14, 0xd5, - 0x13, 0xd3, 0xf0, 0x92, 0xb4, 0x0c, 0x60, 0x30, 0xd0, 0x28, 0xa2, 0x59, 0x3e, 0xb3, 0x23, 0x8b, - 0xff, 0x83, 0x14, 0x31, 0x91, 0x69, 0x11, 0x1a, 0xce, 0x42, 0xeb, 0x5a, 0x78, 0xc0, 0xb8, 0xac, - 0x3d, 0x0a, 0x97, 0xf8, 0x36, 0xf1, 0x5f, 0x10, 0xb7, 0x35, 0x65, 0x17, 0x85, 0x6a, 0xc8, 0x6e, - 0xd7, 0xbe, 0x3b, 0x73, 0x92, 0x0d, 0x17, 0x57, 0x61, 0x9e, 0x57, 0x6c, 0x03, 0x23, 0xe2, 0x5c, - 0x0d, 0xee, 0xcc, 0x49, 0x79, 0x36, 0x2d, 0xd1, 0x59, 0x7f, 0xdd, 0xd9, 0xce, 0x40, 0xca, 0xc0, - 0xc4, 0x52, 0x4d, 0xce, 0xdc, 0xa0, 0x17, 0xdc, 0xb4, 0xff, 0x4e, 0x80, 0xbc, 0xb7, 0x36, 0x4d, - 0x49, 0xf9, 0x73, 0x90, 0xb2, 0xd3, 0xd6, 0x75, 0x4f, 0xf2, 0x10, 0x0f, 0x77, 0x64, 0x6f, 0x4a, - 0xc6, 0x7d, 0x29, 0x79, 0x15, 0xce, 0x38, 0xfd, 0xc9, 0xdf, 0x3e, 0xe7, 0xf9, 0x34, 0x6f, 0x4b, - 0x57, 0xa0, 0xe0, 0x18, 0xe9, 0x4b, 0x6d, 0xc7, 0xc6, 0xc9, 0xdd, 0xe8, 0x3c, 0xbd, 0xa2, 0xb8, - 0xba, 0xbb, 0x46, 0xfd, 0xca, 0x7a, 0x91, 0x7d, 0xbb, 0xb6, 0x5b, 0xd9, 0x4c, 0x64, 0x0e, 0xb1, - 0x6c, 0x11, 0x92, 0x8a, 0xd6, 0xb7, 0x4c, 0x6a, 0x57, 0x5e, 0x62, 0x03, 0xfa, 0x62, 0xd2, 0x90, - 0x3a, 0x7c, 0xdf, 0xbd, 0xf0, 0x47, 0xbe, 0x98, 0x1c, 0xa8, 0xb8, 0x0a, 0x05, 0xac, 0x75, 0x8c, - 0x21, 0xed, 0x2d, 0x34, 0x6d, 0x93, 0xf4, 0xd8, 0xf9, 0xd1, 0xac, 0x1d, 0x83, 0x7f, 0x26, 0x91, - 0xd7, 0x69, 0x97, 0xf3, 0x3b, 0x3d, 0x94, 0xc9, 0xd7, 0x61, 0x7e, 0x97, 0x74, 0x6d, 0x24, 0x96, - 0x5f, 0x41, 0x26, 0xb2, 0x2b, 0x26, 0xa1, 0xa3, 0xb6, 0x8c, 0x4c, 0xc4, 0xe9, 0x0c, 0xc4, 0x05, - 0xd4, 0x3e, 0x8f, 0xd1, 0x68, 0xb3, 0x4c, 0xf6, 0xc6, 0xf5, 0x85, 0x09, 0x7d, 0x33, 0x40, 0xe8, - 0x7a, 0x08, 0x25, 0x3d, 0xc2, 0x02, 0x8c, 0xbe, 0x09, 0xe9, 0x3e, 0x1a, 0xaa, 0x3a, 0x92, 0x39, - 0xab, 0xaf, 0x84, 0xb3, 0x7a, 0x64, 0xeb, 0x9d, 0x39, 0xc9, 0xd9, 0xf6, 0x57, 0xd9, 0xcd, 0xee, - 0xca, 0x63, 0x3e, 0x71, 0xdc, 0xde, 0xfa, 0x30, 0x07, 0xf1, 0x5d, 0xd2, 0x15, 0x0f, 0x20, 0xef, - 0x7b, 0xf2, 0x5f, 0x0d, 0xd7, 0xd3, 0x8b, 0x2b, 0x37, 0x66, 0xc3, 0xb9, 0x61, 0xbe, 0x0f, 0x19, - 0xf7, 0xf5, 0x5d, 0x8b, 0xac, 0x70, 0x14, 0x53, 0x5e, 0x9b, 0x8e, 0x71, 0xcf, 0x56, 0x60, 0xde, - 0xff, 0x0e, 0xbe, 0x16, 0xbe, 0xd9, 0x07, 0x2c, 0x37, 0x67, 0x04, 0xba, 0xa2, 0x0c, 0x28, 0x8e, - 0xbd, 0x62, 0x23, 0x54, 0x0d, 0x62, 0xcb, 0xad, 0xd9, 0xb1, 0xae, 0xcc, 0x0e, 0xe4, 0xbc, 0xaf, - 0xd1, 0xd5, 0x69, 0xfd, 0x81, 0xc2, 0xca, 0x1b, 0x33, 0xc1, 0x5c, 0x21, 0x16, 0x2c, 0x8c, 0xbf, - 0xe8, 0xd6, 0x23, 0xdd, 0xe3, 0x07, 0x97, 0xb7, 0x9e, 0x03, 0xec, 0xb5, 0xcd, 0xfb, 0x5c, 0x5b, - 0x9d, 0x96, 0x55, 0x2c, 0x39, 0x36, 0x66, 0x82, 0xb9, 0x42, 0x54, 0x28, 0x04, 0x5e, 0x1f, 0xf5, - 0x69, 0x07, 0xb8, 0x6e, 0xbc, 0x3e, 0x2b, 0xd2, 0x9b, 0x8d, 0xfe, 0xbb, 0xe2, 0xb5, 0x69, 0x91, - 0xe0, 0xc0, 0xa8, 0x6c, 0x9c, 0x7c, 0x0b, 0x32, 0xa0, 0x38, 0x76, 0x8b, 0x89, 0xc8, 0xc6, 0x20, - 0x36, 0x2a, 0x1b, 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, + 0x17, 0xcf, 0xc6, 0xbf, 0x9f, 0x1d, 0xd7, 0xd9, 0xa6, 0xa9, 0xe3, 0x36, 0x4e, 0xe4, 0x36, 0xdf, + 0x5a, 0xce, 0x37, 0x76, 0xe3, 0x50, 0x50, 0x7b, 0xa1, 0x0d, 0xa8, 0x34, 0x54, 0x29, 0x68, 0x53, + 0x84, 0x54, 0x09, 0x59, 0x13, 0xef, 0x64, 0xbb, 0xc4, 0xde, 0x35, 0x3b, 0xeb, 0x24, 0xe6, 0x04, + 0x88, 0x53, 0x25, 0x10, 0xe2, 0x06, 0x07, 0x0e, 0x9c, 0x80, 0x53, 0x0e, 0x1c, 0xb8, 0x71, 0xed, + 0xb1, 0xea, 0x89, 0x13, 0xa0, 0xf6, 0x90, 0x3f, 0x00, 0x71, 0x45, 0x68, 0x67, 0x66, 0xd7, 0xbb, + 0x5e, 0xef, 0x7a, 0x5b, 0xca, 0x81, 0x8b, 0xed, 0x99, 0xf9, 0xcc, 0xbc, 0x9f, 0x9f, 0xf7, 0x66, + 0x0c, 0xe5, 0x43, 0x64, 0xc8, 0x58, 0x6b, 0xf0, 0xaf, 0x83, 0xf5, 0x5d, 0x6c, 0xa2, 0x8d, 0x86, + 0x79, 0x54, 0xef, 0x19, 0xba, 0xa9, 0x8b, 0x67, 0xd8, 0x42, 0x9d, 0x7f, 0xf1, 0xf5, 0xd2, 0x2c, + 0xea, 0xaa, 0x9a, 0xde, 0xa0, 0x9f, 0x0c, 0x59, 0x3a, 0xdb, 0xd6, 0x49, 0x57, 0x27, 0x8d, 0x2e, + 0x51, 0x1a, 0x07, 0xeb, 0xd6, 0x17, 0x5f, 0x28, 0xf3, 0x85, 0x5d, 0x44, 0x30, 0x17, 0xb0, 0xde, + 0x68, 0xeb, 0xaa, 0xc6, 0xd7, 0x17, 0xd8, 0x7a, 0x8b, 0x8e, 0x1a, 0x6c, 0xc0, 0x97, 0xe6, 0x14, + 0x5d, 0xd1, 0xd9, 0xbc, 0xf5, 0xcb, 0xde, 0xa0, 0xe8, 0xba, 0xd2, 0xc1, 0x0d, 0x3a, 0xda, 0xed, + 0xef, 0x35, 0x90, 0x36, 0xe0, 0x4b, 0x4b, 0xe3, 0xcd, 0xd9, 0xc7, 0x36, 0xe0, 0x62, 0x20, 0xa0, + 0x7d, 0x1f, 0x39, 0x2a, 0x55, 0xc6, 0xa3, 0x7a, 0xc8, 0x40, 0x5d, 0x5b, 0xb7, 0x95, 0xf1, 0x18, + 0xa2, 0x2a, 0x1a, 0x32, 0xfb, 0x06, 0x66, 0xb0, 0xca, 0xcf, 0x02, 0x9c, 0xda, 0x26, 0xca, 0x3b, + 0x3d, 0x19, 0x99, 0xf8, 0x6d, 0x7a, 0x80, 0xf8, 0x32, 0x64, 0x50, 0xdf, 0xbc, 0xaf, 0x1b, 0xaa, + 0x39, 0x28, 0x0a, 0xcb, 0x42, 0x35, 0xb3, 0x59, 0x7c, 0xfc, 0xe3, 0xda, 0x1c, 0xb7, 0xfd, 0x86, + 0x2c, 0x1b, 0x98, 0x90, 0x1d, 0xd3, 0x50, 0x35, 0x45, 0x1a, 0x42, 0xc5, 0xeb, 0x90, 0x64, 0x2a, + 0x14, 0xa7, 0x97, 0x85, 0x6a, 0xb6, 0xb9, 0x58, 0x1f, 0x1b, 0x9d, 0x3a, 0x13, 0xb3, 0x99, 0x79, + 0xf8, 0xeb, 0xd2, 0xd4, 0x77, 0x27, 0xc7, 0x35, 0x41, 0xe2, 0xfb, 0xae, 0x35, 0x3f, 0x39, 0x39, + 0xae, 0x0d, 0x4f, 0x7c, 0x70, 0x72, 0x5c, 0xb3, 0x5d, 0x76, 0x64, 0x5b, 0x32, 0xa2, 0x6d, 0x65, + 0x01, 0xce, 0x8e, 0x4c, 0x49, 0x98, 0xf4, 0x74, 0x8d, 0xe0, 0xca, 0x4f, 0x02, 0x64, 0xb7, 0x89, + 0x72, 0x07, 0x1f, 0xee, 0xf4, 0x50, 0x1b, 0x8b, 0x45, 0x48, 0xb5, 0x0d, 0x8c, 0x4c, 0xdd, 0x60, + 0x66, 0x49, 0xf6, 0x50, 0xac, 0xc1, 0x2c, 0x92, 0xbb, 0xaa, 0xd6, 0x32, 0x71, 0xb7, 0xd7, 0x41, + 0x26, 0x6e, 0xa9, 0x32, 0xb5, 0x22, 0x2e, 0x9d, 0xa2, 0x0b, 0x77, 0xf9, 0xfc, 0x96, 0x2c, 0x56, + 0xa1, 0x60, 0x79, 0xd1, 0x03, 0x8d, 0x51, 0x68, 0xde, 0x9a, 0x77, 0x21, 0x57, 0xad, 0x53, 0x65, + 0xd5, 0x54, 0x75, 0x0d, 0x75, 0x5a, 0xfa, 0xa1, 0x86, 0x0d, 0x52, 0x8c, 0x2f, 0xc7, 0xaa, 0x19, + 0xa9, 0x30, 0x5c, 0x78, 0x8b, 0xce, 0x5f, 0xcb, 0x59, 0xb6, 0xdb, 0x0a, 0x55, 0x56, 0xe0, 0xb4, + 0x4b, 0x73, 0xdb, 0x22, 0x31, 0x0f, 0xd3, 0xaa, 0x4c, 0x95, 0x8f, 0x4b, 0xd3, 0xaa, 0x5c, 0xf9, + 0x5c, 0x80, 0xc2, 0x36, 0x51, 0x6e, 0xc8, 0x32, 0xc5, 0xd1, 0xa3, 0xc4, 0xf3, 0xbe, 0xf8, 0xb9, + 0xa3, 0xb4, 0x00, 0x69, 0x62, 0x61, 0x87, 0x16, 0xa6, 0xe8, 0x78, 0x4b, 0x16, 0xcf, 0x41, 0x46, + 0xc3, 0x87, 0x4c, 0x51, 0x6a, 0x52, 0x46, 0x4a, 0x6b, 0xf8, 0x90, 0x9d, 0x3a, 0x07, 0x09, 0x4d, + 0xd7, 0xda, 0xb8, 0x18, 0xa7, 0x9b, 0xd8, 0xe0, 0x5a, 0xde, 0x1b, 0xb1, 0x4a, 0x09, 0x8a, 0xa3, + 0xfa, 0x38, 0xe1, 0x78, 0x20, 0x50, 0xa3, 0x24, 0xdc, 0xd5, 0x0f, 0xf0, 0x8b, 0xd0, 0x77, 0x0e, + 0x12, 0x6e, 0x5d, 0xd9, 0x20, 0xa2, 0xa2, 0x8b, 0x70, 0x6e, 0x8c, 0x2e, 0x8e, 0xae, 0x7f, 0x0a, + 0x90, 0x67, 0x01, 0xb8, 0xcd, 0xb9, 0x17, 0x92, 0x3d, 0x22, 0xc4, 0x35, 0xd4, 0xc5, 0x54, 0xbd, + 0x8c, 0x44, 0x7f, 0x8b, 0x77, 0x60, 0xc6, 0x66, 0x6d, 0x6b, 0x0f, 0x63, 0x42, 0xb5, 0xc9, 0x36, + 0x2f, 0x04, 0x70, 0xc2, 0x96, 0x72, 0x13, 0x63, 0xb2, 0x19, 0xb7, 0x98, 0x21, 0xe5, 0xf6, 0x5d, + 0x73, 0xe2, 0x32, 0x64, 0x65, 0x4c, 0xda, 0x86, 0xda, 0xb3, 0xb2, 0xa6, 0x98, 0xa0, 0xa2, 0xdc, + 0x53, 0x62, 0x01, 0x62, 0x7d, 0xa3, 0x53, 0x4c, 0xd2, 0x15, 0xeb, 0xa7, 0xb8, 0x08, 0xb0, 0x8f, + 0x07, 0x56, 0x61, 0xb3, 0x9c, 0x97, 0x62, 0x9e, 0xe5, 0x33, 0x5b, 0xb2, 0x37, 0xe3, 0xde, 0x8c, + 0xa7, 0x63, 0x85, 0x78, 0xa5, 0x0a, 0xf3, 0x5e, 0xb3, 0x03, 0x53, 0xef, 0x10, 0xe6, 0x58, 0xa4, + 0x6d, 0xe4, 0xbb, 0x86, 0x6a, 0x62, 0x23, 0xc4, 0x4d, 0x4b, 0x90, 0x75, 0x5c, 0xe2, 0x04, 0x13, + 0xec, 0xa9, 0x2d, 0x59, 0x9c, 0x87, 0xe4, 0x21, 0x3d, 0x84, 0x07, 0x94, 0x8f, 0x46, 0xa8, 0x51, + 0x86, 0xf3, 0xe3, 0x04, 0x3b, 0xa1, 0xfb, 0x3e, 0x46, 0x43, 0xc7, 0x2a, 0x02, 0x23, 0xfe, 0x73, + 0x67, 0xd8, 0xd8, 0xba, 0x10, 0x8b, 0x5e, 0x17, 0xe2, 0x63, 0xeb, 0x82, 0x93, 0xa1, 0x09, 0x57, + 0x86, 0x8a, 0x57, 0x61, 0x01, 0xf5, 0x7a, 0x86, 0x7e, 0x80, 0x5b, 0x7e, 0x99, 0x49, 0x8a, 0x9c, + 0xe7, 0x80, 0x1b, 0x23, 0xa2, 0x5f, 0x81, 0xa2, 0x81, 0xdf, 0xc7, 0x6d, 0x73, 0xcc, 0xce, 0x14, + 0xdd, 0x79, 0x86, 0xad, 0x8f, 0xd9, 0x68, 0xcb, 0xf4, 0xe9, 0x9e, 0x66, 0x1b, 0xf9, 0xfa, 0x8e, + 0xd7, 0x84, 0x2b, 0x70, 0x96, 0x4b, 0xf4, 0xed, 0xcb, 0xd0, 0x7d, 0x73, 0x6c, 0xd9, 0xbb, 0xcd, + 0xc7, 0xc2, 0x22, 0x4d, 0x37, 0x57, 0xa8, 0x9c, 0x28, 0x7e, 0x35, 0x0d, 0xb3, 0xce, 0x52, 0x04, + 0x0e, 0x4e, 0x4c, 0x2e, 0x9b, 0xa4, 0xb1, 0x30, 0x92, 0x26, 0x5e, 0x28, 0x49, 0x93, 0x81, 0x24, + 0x4d, 0x05, 0x91, 0x34, 0x3d, 0x89, 0xa4, 0xf1, 0x42, 0xa2, 0x72, 0x0e, 0x16, 0x7c, 0xae, 0x71, + 0x1c, 0xf7, 0xad, 0x00, 0x25, 0x2f, 0x3f, 0x68, 0xd0, 0x25, 0xfc, 0x41, 0x1f, 0x13, 0x73, 0x02, + 0x15, 0x26, 0x7a, 0xf1, 0x0a, 0x6b, 0x11, 0x34, 0xcd, 0x98, 0x2b, 0x43, 0xee, 0x06, 0x56, 0xf3, + 0xa0, 0xc2, 0x03, 0xaa, 0xaf, 0x5f, 0x47, 0x6e, 0xc3, 0x37, 0x02, 0x2c, 0x3a, 0xd5, 0xf9, 0xdf, + 0x30, 0xa3, 0x0e, 0x89, 0x68, 0x26, 0x30, 0x98, 0x4f, 0xff, 0x65, 0x28, 0x07, 0xe9, 0xc7, 0x4d, + 0xf8, 0x6b, 0x9a, 0x76, 0x66, 0x56, 0x49, 0xa3, 0x69, 0x1d, 0x52, 0x87, 0x46, 0x0c, 0x8a, 0xf9, + 0x0c, 0xba, 0x0a, 0xe9, 0x7d, 0x3c, 0x68, 0x99, 0x83, 0x1e, 0xeb, 0x7b, 0xf9, 0x66, 0x39, 0x38, + 0x89, 0xef, 0x0e, 0x7a, 0x58, 0x4a, 0xed, 0xb3, 0x1f, 0xd6, 0xd9, 0x6e, 0xfa, 0xb2, 0x9a, 0x04, + 0xe6, 0x90, 0xeb, 0x9f, 0x09, 0x30, 0xdb, 0x45, 0x47, 0x2d, 0x2f, 0x55, 0x92, 0xcb, 0xb1, 0x6a, + 0xb6, 0xb9, 0x50, 0xe7, 0x6e, 0xb3, 0xd2, 0x95, 0xcb, 0x58, 0xaf, 0xbf, 0xa6, 0xab, 0xda, 0xe6, + 0x4d, 0x8b, 0x20, 0x3f, 0xfc, 0xb6, 0x54, 0x55, 0x54, 0xf3, 0x7e, 0x7f, 0xb7, 0xde, 0xd6, 0xbb, + 0xfc, 0xfa, 0xcc, 0xbf, 0xd6, 0x88, 0xbc, 0xdf, 0xb0, 0x34, 0x26, 0x74, 0x03, 0xf9, 0xfa, 0xe4, + 0xb8, 0x96, 0xeb, 0x60, 0x05, 0xb5, 0x07, 0x2d, 0xeb, 0x02, 0x4e, 0xd8, 0xe5, 0xf0, 0x54, 0x17, + 0x1d, 0xb9, 0x99, 0x37, 0x2c, 0x9f, 0xa9, 0xb0, 0x06, 0x5f, 0xa3, 0x37, 0x11, 0x8f, 0xff, 0x03, + 0x7b, 0x59, 0x0d, 0x32, 0x0e, 0xd6, 0x22, 0x64, 0xaf, 0xbf, 0xdb, 0x51, 0xdb, 0x96, 0xc1, 0x14, + 0x94, 0x93, 0x32, 0x6c, 0xe6, 0x36, 0x1e, 0x54, 0x3e, 0x9d, 0xa6, 0xb7, 0x98, 0x9b, 0xfd, 0xce, + 0x9e, 0xda, 0x71, 0xc5, 0x36, 0xb8, 0x34, 0x2d, 0x02, 0x18, 0x0c, 0x34, 0x8c, 0x6c, 0x86, 0xcf, + 0x6c, 0xc9, 0xe2, 0xab, 0x90, 0x24, 0x26, 0x32, 0xfb, 0x84, 0x86, 0x35, 0xdf, 0xbc, 0x14, 0x1c, + 0x38, 0x2e, 0x6b, 0x87, 0xc2, 0x25, 0xbe, 0x4d, 0x7c, 0x09, 0x62, 0x96, 0xa6, 0xec, 0x82, 0xb1, + 0x1c, 0xb0, 0xdb, 0xb1, 0xef, 0xd6, 0x94, 0x64, 0xc1, 0xc5, 0x15, 0x98, 0xe1, 0x15, 0xdc, 0xc0, + 0x88, 0xd8, 0x57, 0x8a, 0x5b, 0x53, 0x52, 0x8e, 0x4d, 0x4b, 0x74, 0xd6, 0x5b, 0x7f, 0x36, 0xd3, + 0x90, 0x34, 0x30, 0xe9, 0x77, 0x4c, 0xce, 0xe0, 0x51, 0x2f, 0x38, 0xe9, 0xff, 0x58, 0x80, 0x9c, + 0xbb, 0x46, 0x4d, 0x48, 0xfd, 0x33, 0x90, 0xb4, 0xd2, 0xd7, 0x71, 0x4f, 0x62, 0x1f, 0x0f, 0x58, + 0xda, 0xfb, 0x1b, 0xaf, 0x3b, 0x35, 0xeb, 0x70, 0xda, 0xee, 0x5f, 0xfe, 0xb6, 0x3b, 0xcb, 0x97, + 0x5c, 0x6d, 0xeb, 0xff, 0x20, 0x72, 0xa3, 0xfd, 0x29, 0x5f, 0x60, 0x2b, 0x21, 0xdd, 0x6a, 0x9e, + 0x5e, 0x79, 0x1c, 0x9b, 0x1c, 0x63, 0xff, 0x60, 0xbd, 0xca, 0xba, 0xad, 0xab, 0x4a, 0xc4, 0x12, + 0x15, 0x60, 0xf1, 0x1c, 0x24, 0x54, 0xad, 0xd7, 0x37, 0xa9, 0xad, 0x39, 0x89, 0x0d, 0xe8, 0x8b, + 0x4c, 0x43, 0x9d, 0xc1, 0x87, 0xce, 0x03, 0x22, 0xf4, 0x45, 0x66, 0x43, 0xc5, 0x15, 0xc8, 0x63, + 0xad, 0x6d, 0x0c, 0x68, 0xef, 0xa1, 0xe9, 0x9c, 0xa0, 0xc7, 0xce, 0x0c, 0x67, 0xad, 0xd8, 0xfc, + 0x37, 0x09, 0xbe, 0x4a, 0xbb, 0xa0, 0xd7, 0xe9, 0x81, 0x0c, 0xbf, 0x0c, 0x33, 0xdb, 0x44, 0xb1, + 0x90, 0x58, 0x7e, 0x1d, 0x99, 0xc8, 0x4a, 0x2d, 0x42, 0x47, 0x2d, 0x19, 0x99, 0x88, 0xd3, 0x1c, + 0x88, 0x03, 0xa8, 0x7c, 0x39, 0x4d, 0xa3, 0xcd, 0x32, 0xdc, 0x1d, 0xd7, 0xe7, 0x26, 0xfa, 0xf5, + 0x11, 0xa2, 0x57, 0x03, 0xa8, 0xea, 0x12, 0x36, 0xc2, 0xf4, 0xeb, 0x90, 0xea, 0xa1, 0x41, 0x47, + 0x47, 0x32, 0x67, 0xfb, 0xc5, 0x60, 0xb6, 0x0f, 0x6d, 0xbd, 0x35, 0x25, 0xd9, 0xdb, 0xfe, 0x29, + 0xeb, 0xd9, 0xdd, 0xdb, 0xe7, 0x13, 0xdb, 0xed, 0xcd, 0x8f, 0xb3, 0x10, 0xdb, 0x26, 0x8a, 0xb8, + 0x07, 0x39, 0xcf, 0x5f, 0x0a, 0xff, 0x0b, 0xd6, 0xd3, 0x8d, 0x2b, 0xd5, 0xa3, 0xe1, 0x9c, 0x30, + 0xdf, 0x83, 0xb4, 0xf3, 0xba, 0xaf, 0x84, 0x56, 0x3e, 0x8a, 0x29, 0xd5, 0x26, 0x63, 0x9c, 0xb3, + 0x55, 0x98, 0xf1, 0xbe, 0xab, 0x2f, 0x05, 0x6f, 0xf6, 0x00, 0x4b, 0x8d, 0x88, 0x40, 0x47, 0x94, + 0x01, 0x05, 0xdf, 0xab, 0x38, 0x44, 0xd5, 0x51, 0x6c, 0xa9, 0x19, 0x1d, 0xeb, 0xc8, 0x6c, 0x43, + 0xd6, 0xfd, 0xba, 0x5d, 0x99, 0xd4, 0x37, 0x28, 0xac, 0xb4, 0x16, 0x09, 0xe6, 0x08, 0xe9, 0xc3, + 0xac, 0xff, 0x85, 0xb8, 0x1a, 0xea, 0x1e, 0x2f, 0xb8, 0xb4, 0xf1, 0x0c, 0x60, 0xb7, 0x6d, 0xee, + 0xe7, 0xdf, 0xca, 0xa4, 0xac, 0x62, 0xc9, 0xb1, 0x16, 0x09, 0xe6, 0x08, 0xe9, 0x40, 0x7e, 0xe4, + 0x75, 0x52, 0x9d, 0x74, 0x80, 0xe3, 0xc6, 0xcb, 0x51, 0x91, 0xee, 0x6c, 0xf4, 0xde, 0x25, 0x2f, + 0x4d, 0x8a, 0x04, 0x07, 0x86, 0x65, 0xe3, 0xf8, 0xdb, 0x91, 0x01, 0x05, 0xdf, 0xed, 0x26, 0x24, + 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 }