diff --git a/api/aura/blocklist/v1/events.pulsar.go b/api/aura/blocklist/v1/events.pulsar.go index 0b59050..02c253c 100644 --- a/api/aura/blocklist/v1/events.pulsar.go +++ b/api/aura/blocklist/v1/events.pulsar.go @@ -3,6 +3,7 @@ package blocklistv1 import ( fmt "fmt" + _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" @@ -13,15 +14,15 @@ import ( ) var ( - md_OwnershipTransferStarted protoreflect.MessageDescriptor - fd_OwnershipTransferStarted_old_owner protoreflect.FieldDescriptor - fd_OwnershipTransferStarted_new_owner protoreflect.FieldDescriptor + md_OwnershipTransferStarted protoreflect.MessageDescriptor + fd_OwnershipTransferStarted_previous_owner protoreflect.FieldDescriptor + fd_OwnershipTransferStarted_new_owner protoreflect.FieldDescriptor ) func init() { file_aura_blocklist_v1_events_proto_init() md_OwnershipTransferStarted = File_aura_blocklist_v1_events_proto.Messages().ByName("OwnershipTransferStarted") - fd_OwnershipTransferStarted_old_owner = md_OwnershipTransferStarted.Fields().ByName("old_owner") + fd_OwnershipTransferStarted_previous_owner = md_OwnershipTransferStarted.Fields().ByName("previous_owner") fd_OwnershipTransferStarted_new_owner = md_OwnershipTransferStarted.Fields().ByName("new_owner") } @@ -90,9 +91,9 @@ func (x *fastReflection_OwnershipTransferStarted) Interface() protoreflect.Proto // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_OwnershipTransferStarted) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.OldOwner != "" { - value := protoreflect.ValueOfString(x.OldOwner) - if !f(fd_OwnershipTransferStarted_old_owner, value) { + if x.PreviousOwner != "" { + value := protoreflect.ValueOfString(x.PreviousOwner) + if !f(fd_OwnershipTransferStarted_previous_owner, value) { return } } @@ -117,8 +118,8 @@ func (x *fastReflection_OwnershipTransferStarted) Range(f func(protoreflect.Fiel // a repeated field is populated if it is non-empty. func (x *fastReflection_OwnershipTransferStarted) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "aura.blocklist.v1.OwnershipTransferStarted.old_owner": - return x.OldOwner != "" + case "aura.blocklist.v1.OwnershipTransferStarted.previous_owner": + return x.PreviousOwner != "" case "aura.blocklist.v1.OwnershipTransferStarted.new_owner": return x.NewOwner != "" default: @@ -137,8 +138,8 @@ func (x *fastReflection_OwnershipTransferStarted) Has(fd protoreflect.FieldDescr // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OwnershipTransferStarted) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "aura.blocklist.v1.OwnershipTransferStarted.old_owner": - x.OldOwner = "" + case "aura.blocklist.v1.OwnershipTransferStarted.previous_owner": + x.PreviousOwner = "" case "aura.blocklist.v1.OwnershipTransferStarted.new_owner": x.NewOwner = "" default: @@ -157,8 +158,8 @@ func (x *fastReflection_OwnershipTransferStarted) Clear(fd protoreflect.FieldDes // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_OwnershipTransferStarted) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "aura.blocklist.v1.OwnershipTransferStarted.old_owner": - value := x.OldOwner + case "aura.blocklist.v1.OwnershipTransferStarted.previous_owner": + value := x.PreviousOwner return protoreflect.ValueOfString(value) case "aura.blocklist.v1.OwnershipTransferStarted.new_owner": value := x.NewOwner @@ -183,8 +184,8 @@ func (x *fastReflection_OwnershipTransferStarted) Get(descriptor protoreflect.Fi // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OwnershipTransferStarted) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "aura.blocklist.v1.OwnershipTransferStarted.old_owner": - x.OldOwner = value.Interface().(string) + case "aura.blocklist.v1.OwnershipTransferStarted.previous_owner": + x.PreviousOwner = value.Interface().(string) case "aura.blocklist.v1.OwnershipTransferStarted.new_owner": x.NewOwner = value.Interface().(string) default: @@ -207,8 +208,8 @@ func (x *fastReflection_OwnershipTransferStarted) Set(fd protoreflect.FieldDescr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OwnershipTransferStarted) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "aura.blocklist.v1.OwnershipTransferStarted.old_owner": - panic(fmt.Errorf("field old_owner of message aura.blocklist.v1.OwnershipTransferStarted is not mutable")) + case "aura.blocklist.v1.OwnershipTransferStarted.previous_owner": + panic(fmt.Errorf("field previous_owner of message aura.blocklist.v1.OwnershipTransferStarted is not mutable")) case "aura.blocklist.v1.OwnershipTransferStarted.new_owner": panic(fmt.Errorf("field new_owner of message aura.blocklist.v1.OwnershipTransferStarted is not mutable")) default: @@ -224,7 +225,7 @@ func (x *fastReflection_OwnershipTransferStarted) Mutable(fd protoreflect.FieldD // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_OwnershipTransferStarted) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "aura.blocklist.v1.OwnershipTransferStarted.old_owner": + case "aura.blocklist.v1.OwnershipTransferStarted.previous_owner": return protoreflect.ValueOfString("") case "aura.blocklist.v1.OwnershipTransferStarted.new_owner": return protoreflect.ValueOfString("") @@ -297,7 +298,7 @@ func (x *fastReflection_OwnershipTransferStarted) ProtoMethods() *protoiface.Met var n int var l int _ = l - l = len(x.OldOwner) + l = len(x.PreviousOwner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -341,10 +342,10 @@ func (x *fastReflection_OwnershipTransferStarted) ProtoMethods() *protoiface.Met i-- dAtA[i] = 0x12 } - if len(x.OldOwner) > 0 { - i -= len(x.OldOwner) - copy(dAtA[i:], x.OldOwner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OldOwner))) + if len(x.PreviousOwner) > 0 { + i -= len(x.PreviousOwner) + copy(dAtA[i:], x.PreviousOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousOwner))) i-- dAtA[i] = 0xa } @@ -399,7 +400,7 @@ func (x *fastReflection_OwnershipTransferStarted) ProtoMethods() *protoiface.Met switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OldOwner", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousOwner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -427,7 +428,491 @@ func (x *fastReflection_OwnershipTransferStarted) ProtoMethods() *protoiface.Met if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.OldOwner = string(dAtA[iNdEx:postIndex]) + x.PreviousOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_OwnershipTransferred protoreflect.MessageDescriptor + fd_OwnershipTransferred_previous_owner protoreflect.FieldDescriptor + fd_OwnershipTransferred_new_owner protoreflect.FieldDescriptor +) + +func init() { + file_aura_blocklist_v1_events_proto_init() + md_OwnershipTransferred = File_aura_blocklist_v1_events_proto.Messages().ByName("OwnershipTransferred") + fd_OwnershipTransferred_previous_owner = md_OwnershipTransferred.Fields().ByName("previous_owner") + fd_OwnershipTransferred_new_owner = md_OwnershipTransferred.Fields().ByName("new_owner") +} + +var _ protoreflect.Message = (*fastReflection_OwnershipTransferred)(nil) + +type fastReflection_OwnershipTransferred OwnershipTransferred + +func (x *OwnershipTransferred) ProtoReflect() protoreflect.Message { + return (*fastReflection_OwnershipTransferred)(x) +} + +func (x *OwnershipTransferred) slowProtoReflect() protoreflect.Message { + mi := &file_aura_blocklist_v1_events_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_OwnershipTransferred_messageType fastReflection_OwnershipTransferred_messageType +var _ protoreflect.MessageType = fastReflection_OwnershipTransferred_messageType{} + +type fastReflection_OwnershipTransferred_messageType struct{} + +func (x fastReflection_OwnershipTransferred_messageType) Zero() protoreflect.Message { + return (*fastReflection_OwnershipTransferred)(nil) +} +func (x fastReflection_OwnershipTransferred_messageType) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferred) +} +func (x fastReflection_OwnershipTransferred_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferred +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OwnershipTransferred) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferred +} + +// 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_OwnershipTransferred) Type() protoreflect.MessageType { + return _fastReflection_OwnershipTransferred_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OwnershipTransferred) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferred) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OwnershipTransferred) Interface() protoreflect.ProtoMessage { + return (*OwnershipTransferred)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_OwnershipTransferred) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousOwner != "" { + value := protoreflect.ValueOfString(x.PreviousOwner) + if !f(fd_OwnershipTransferred_previous_owner, value) { + return + } + } + if x.NewOwner != "" { + value := protoreflect.ValueOfString(x.NewOwner) + if !f(fd_OwnershipTransferred_new_owner, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_OwnershipTransferred) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.blocklist.v1.OwnershipTransferred.previous_owner": + return x.PreviousOwner != "" + case "aura.blocklist.v1.OwnershipTransferred.new_owner": + return x.NewOwner != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.blocklist.v1.OwnershipTransferred does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.blocklist.v1.OwnershipTransferred.previous_owner": + x.PreviousOwner = "" + case "aura.blocklist.v1.OwnershipTransferred.new_owner": + x.NewOwner = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.blocklist.v1.OwnershipTransferred does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_OwnershipTransferred) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.blocklist.v1.OwnershipTransferred.previous_owner": + value := x.PreviousOwner + return protoreflect.ValueOfString(value) + case "aura.blocklist.v1.OwnershipTransferred.new_owner": + value := x.NewOwner + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.blocklist.v1.OwnershipTransferred does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.blocklist.v1.OwnershipTransferred.previous_owner": + x.PreviousOwner = value.Interface().(string) + case "aura.blocklist.v1.OwnershipTransferred.new_owner": + x.NewOwner = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.blocklist.v1.OwnershipTransferred does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.blocklist.v1.OwnershipTransferred.previous_owner": + panic(fmt.Errorf("field previous_owner of message aura.blocklist.v1.OwnershipTransferred is not mutable")) + case "aura.blocklist.v1.OwnershipTransferred.new_owner": + panic(fmt.Errorf("field new_owner of message aura.blocklist.v1.OwnershipTransferred is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.blocklist.v1.OwnershipTransferred 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_OwnershipTransferred) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.blocklist.v1.OwnershipTransferred.previous_owner": + return protoreflect.ValueOfString("") + case "aura.blocklist.v1.OwnershipTransferred.new_owner": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.blocklist.v1.OwnershipTransferred 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_OwnershipTransferred) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.blocklist.v1.OwnershipTransferred", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_OwnershipTransferred) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_OwnershipTransferred) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_OwnershipTransferred) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OwnershipTransferred) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.PreviousOwner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewOwner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*OwnershipTransferred) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.NewOwner) > 0 { + i -= len(x.NewOwner) + copy(dAtA[i:], x.NewOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousOwner) > 0 { + i -= len(x.PreviousOwner) + copy(dAtA[i:], x.PreviousOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousOwner))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*OwnershipTransferred) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnershipTransferred: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnershipTransferred: 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 PreviousOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousOwner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -562,7 +1047,7 @@ func (x *BlockedAddressesAdded) ProtoReflect() protoreflect.Message { } func (x *BlockedAddressesAdded) slowProtoReflect() protoreflect.Message { - mi := &file_aura_blocklist_v1_events_proto_msgTypes[1] + mi := &file_aura_blocklist_v1_events_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1042,7 +1527,7 @@ func (x *BlockedAddressesRemoved) ProtoReflect() protoreflect.Message { } func (x *BlockedAddressesRemoved) slowProtoReflect() protoreflect.Message { - mi := &file_aura_blocklist_v1_events_proto_msgTypes[2] + mi := &file_aura_blocklist_v1_events_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1475,9 +1960,9 @@ type OwnershipTransferStarted struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // old_owner is the address of the old owner account. - OldOwner string `protobuf:"bytes,1,opt,name=old_owner,json=oldOwner,proto3" json:"old_owner,omitempty"` - // new_owner is the address of the new owner account. + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` } @@ -1501,9 +1986,9 @@ func (*OwnershipTransferStarted) Descriptor() ([]byte, []int) { return file_aura_blocklist_v1_events_proto_rawDescGZIP(), []int{0} } -func (x *OwnershipTransferStarted) GetOldOwner() string { +func (x *OwnershipTransferStarted) GetPreviousOwner() string { if x != nil { - return x.OldOwner + return x.PreviousOwner } return "" } @@ -1515,6 +2000,52 @@ func (x *OwnershipTransferStarted) GetNewOwner() string { return "" } +// OwnershipTransferStarted is emitted whenever an ownership transfer is finalized. +type OwnershipTransferred struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (x *OwnershipTransferred) Reset() { + *x = OwnershipTransferred{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_blocklist_v1_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OwnershipTransferred) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OwnershipTransferred) ProtoMessage() {} + +// Deprecated: Use OwnershipTransferred.ProtoReflect.Descriptor instead. +func (*OwnershipTransferred) Descriptor() ([]byte, []int) { + return file_aura_blocklist_v1_events_proto_rawDescGZIP(), []int{1} +} + +func (x *OwnershipTransferred) GetPreviousOwner() string { + if x != nil { + return x.PreviousOwner + } + return "" +} + +func (x *OwnershipTransferred) GetNewOwner() string { + if x != nil { + return x.NewOwner + } + return "" +} + // BlockedAddressesAdded is emitted whenever addresses are added to the blocklist. type BlockedAddressesAdded struct { state protoimpl.MessageState @@ -1528,7 +2059,7 @@ type BlockedAddressesAdded struct { func (x *BlockedAddressesAdded) Reset() { *x = BlockedAddressesAdded{} if protoimpl.UnsafeEnabled { - mi := &file_aura_blocklist_v1_events_proto_msgTypes[1] + mi := &file_aura_blocklist_v1_events_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1542,7 +2073,7 @@ func (*BlockedAddressesAdded) ProtoMessage() {} // Deprecated: Use BlockedAddressesAdded.ProtoReflect.Descriptor instead. func (*BlockedAddressesAdded) Descriptor() ([]byte, []int) { - return file_aura_blocklist_v1_events_proto_rawDescGZIP(), []int{1} + return file_aura_blocklist_v1_events_proto_rawDescGZIP(), []int{2} } func (x *BlockedAddressesAdded) GetAccounts() []string { @@ -1565,7 +2096,7 @@ type BlockedAddressesRemoved struct { func (x *BlockedAddressesRemoved) Reset() { *x = BlockedAddressesRemoved{} if protoimpl.UnsafeEnabled { - mi := &file_aura_blocklist_v1_events_proto_msgTypes[2] + mi := &file_aura_blocklist_v1_events_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1579,7 +2110,7 @@ func (*BlockedAddressesRemoved) ProtoMessage() {} // Deprecated: Use BlockedAddressesRemoved.ProtoReflect.Descriptor instead. func (*BlockedAddressesRemoved) Descriptor() ([]byte, []int) { - return file_aura_blocklist_v1_events_proto_rawDescGZIP(), []int{2} + return file_aura_blocklist_v1_events_proto_rawDescGZIP(), []int{3} } func (x *BlockedAddressesRemoved) GetAccounts() []string { @@ -1595,32 +2126,47 @@ var file_aura_blocklist_v1_events_proto_rawDesc = []byte{ 0x0a, 0x1e, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x61, 0x75, 0x72, 0x61, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, - 0x2e, 0x76, 0x31, 0x22, 0x54, 0x0a, 0x18, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, - 0x1b, 0x0a, 0x09, 0x6f, 0x6c, 0x64, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6c, 0x64, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, - 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6e, 0x65, 0x77, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x33, 0x0a, 0x15, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x41, 0x64, 0x64, - 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x35, - 0x0a, 0x17, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x65, 0x73, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x42, 0xca, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x75, - 0x72, 0x61, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x42, - 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, - 0x2d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2f, - 0x76, 0x31, 0x3b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x76, 0x31, 0xa2, 0x02, - 0x03, 0x41, 0x42, 0x58, 0xaa, 0x02, 0x11, 0x41, 0x75, 0x72, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x41, 0x75, 0x72, 0x61, 0x5c, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x41, - 0x75, 0x72, 0x61, 0x5c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x41, - 0x75, 0x72, 0x61, 0x3a, 0x3a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, + 0x01, 0x0a, 0x18, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x3f, 0x0a, 0x0e, 0x70, + 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 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, 0x0d, 0x70, + 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x09, + 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 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, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x22, 0x8e, 0x01, 0x0a, 0x14, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, + 0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x12, 0x3f, 0x0a, 0x0e, + 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, + 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, 0x0d, + 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x35, 0x0a, + 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 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, 0x4f, + 0x77, 0x6e, 0x65, 0x72, 0x22, 0x33, 0x0a, 0x15, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x1a, 0x0a, + 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x35, 0x0a, 0x17, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x42, 0xca, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x75, 0x72, 0x61, 0x2e, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x61, 0x73, 0x73, 0x65, + 0x74, 0x73, 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x75, 0x72, 0x61, + 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x42, 0x58, 0xaa, + 0x02, 0x11, 0x41, 0x75, 0x72, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, + 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x41, 0x75, 0x72, 0x61, 0x5c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x6c, 0x69, 0x73, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x41, 0x75, 0x72, 0x61, 0x5c, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x41, 0x75, 0x72, 0x61, 0x3a, 0x3a, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1635,11 +2181,12 @@ func file_aura_blocklist_v1_events_proto_rawDescGZIP() []byte { return file_aura_blocklist_v1_events_proto_rawDescData } -var file_aura_blocklist_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_aura_blocklist_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_aura_blocklist_v1_events_proto_goTypes = []interface{}{ (*OwnershipTransferStarted)(nil), // 0: aura.blocklist.v1.OwnershipTransferStarted - (*BlockedAddressesAdded)(nil), // 1: aura.blocklist.v1.BlockedAddressesAdded - (*BlockedAddressesRemoved)(nil), // 2: aura.blocklist.v1.BlockedAddressesRemoved + (*OwnershipTransferred)(nil), // 1: aura.blocklist.v1.OwnershipTransferred + (*BlockedAddressesAdded)(nil), // 2: aura.blocklist.v1.BlockedAddressesAdded + (*BlockedAddressesRemoved)(nil), // 3: aura.blocklist.v1.BlockedAddressesRemoved } var file_aura_blocklist_v1_events_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type @@ -1668,7 +2215,7 @@ func file_aura_blocklist_v1_events_proto_init() { } } file_aura_blocklist_v1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockedAddressesAdded); i { + switch v := v.(*OwnershipTransferred); i { case 0: return &v.state case 1: @@ -1680,6 +2227,18 @@ func file_aura_blocklist_v1_events_proto_init() { } } file_aura_blocklist_v1_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockedAddressesAdded); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aura_blocklist_v1_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BlockedAddressesRemoved); i { case 0: return &v.state @@ -1698,7 +2257,7 @@ func file_aura_blocklist_v1_events_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_aura_blocklist_v1_events_proto_rawDesc, NumEnums: 0, - NumMessages: 3, + NumMessages: 4, NumExtensions: 0, NumServices: 0, }, diff --git a/api/aura/blocklist/v1/query.pulsar.go b/api/aura/blocklist/v1/query.pulsar.go index 42323f7..7d9d173 100644 --- a/api/aura/blocklist/v1/query.pulsar.go +++ b/api/aura/blocklist/v1/query.pulsar.go @@ -1851,6 +1851,836 @@ func (x *fastReflection_QueryAddressesResponse) ProtoMethods() *protoiface.Metho } } +var ( + md_QueryAddress protoreflect.MessageDescriptor + fd_QueryAddress_address protoreflect.FieldDescriptor +) + +func init() { + file_aura_blocklist_v1_query_proto_init() + md_QueryAddress = File_aura_blocklist_v1_query_proto.Messages().ByName("QueryAddress") + fd_QueryAddress_address = md_QueryAddress.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_QueryAddress)(nil) + +type fastReflection_QueryAddress QueryAddress + +func (x *QueryAddress) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAddress)(x) +} + +func (x *QueryAddress) slowProtoReflect() protoreflect.Message { + mi := &file_aura_blocklist_v1_query_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAddress_messageType fastReflection_QueryAddress_messageType +var _ protoreflect.MessageType = fastReflection_QueryAddress_messageType{} + +type fastReflection_QueryAddress_messageType struct{} + +func (x fastReflection_QueryAddress_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAddress)(nil) +} +func (x fastReflection_QueryAddress_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAddress) +} +func (x fastReflection_QueryAddress_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAddress +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAddress) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAddress +} + +// 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_QueryAddress) Type() protoreflect.MessageType { + return _fastReflection_QueryAddress_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAddress) New() protoreflect.Message { + return new(fastReflection_QueryAddress) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAddress) Interface() protoreflect.ProtoMessage { + return (*QueryAddress)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAddress) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryAddress_address, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAddress) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.blocklist.v1.QueryAddress.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddress")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddress does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAddress) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.blocklist.v1.QueryAddress.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddress")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddress does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAddress) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.blocklist.v1.QueryAddress.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddress")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddress does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAddress) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.blocklist.v1.QueryAddress.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddress")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddress does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAddress) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.blocklist.v1.QueryAddress.address": + panic(fmt.Errorf("field address of message aura.blocklist.v1.QueryAddress is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddress")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddress 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_QueryAddress) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.blocklist.v1.QueryAddress.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddress")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddress 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_QueryAddress) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.blocklist.v1.QueryAddress", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAddress) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAddress) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAddress) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAddress) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAddress) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAddress) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAddress) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAddress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAddress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAddressResponse protoreflect.MessageDescriptor + fd_QueryAddressResponse_blocked protoreflect.FieldDescriptor +) + +func init() { + file_aura_blocklist_v1_query_proto_init() + md_QueryAddressResponse = File_aura_blocklist_v1_query_proto.Messages().ByName("QueryAddressResponse") + fd_QueryAddressResponse_blocked = md_QueryAddressResponse.Fields().ByName("blocked") +} + +var _ protoreflect.Message = (*fastReflection_QueryAddressResponse)(nil) + +type fastReflection_QueryAddressResponse QueryAddressResponse + +func (x *QueryAddressResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAddressResponse)(x) +} + +func (x *QueryAddressResponse) slowProtoReflect() protoreflect.Message { + mi := &file_aura_blocklist_v1_query_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAddressResponse_messageType fastReflection_QueryAddressResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAddressResponse_messageType{} + +type fastReflection_QueryAddressResponse_messageType struct{} + +func (x fastReflection_QueryAddressResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAddressResponse)(nil) +} +func (x fastReflection_QueryAddressResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAddressResponse) +} +func (x fastReflection_QueryAddressResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAddressResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAddressResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAddressResponse +} + +// 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_QueryAddressResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAddressResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAddressResponse) New() protoreflect.Message { + return new(fastReflection_QueryAddressResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAddressResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAddressResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAddressResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Blocked != false { + value := protoreflect.ValueOfBool(x.Blocked) + if !f(fd_QueryAddressResponse_blocked, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAddressResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.blocklist.v1.QueryAddressResponse.blocked": + return x.Blocked != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddressResponse")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddressResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAddressResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.blocklist.v1.QueryAddressResponse.blocked": + x.Blocked = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddressResponse")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddressResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAddressResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.blocklist.v1.QueryAddressResponse.blocked": + value := x.Blocked + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddressResponse")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddressResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAddressResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.blocklist.v1.QueryAddressResponse.blocked": + x.Blocked = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddressResponse")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddressResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAddressResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.blocklist.v1.QueryAddressResponse.blocked": + panic(fmt.Errorf("field blocked of message aura.blocklist.v1.QueryAddressResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddressResponse")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddressResponse 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_QueryAddressResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.blocklist.v1.QueryAddressResponse.blocked": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.blocklist.v1.QueryAddressResponse")) + } + panic(fmt.Errorf("message aura.blocklist.v1.QueryAddressResponse 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_QueryAddressResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.blocklist.v1.QueryAddressResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAddressResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAddressResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAddressResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAddressResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAddressResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Blocked { + n += 2 + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAddressResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Blocked { + i-- + if x.Blocked { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAddressResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAddressResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Blocked", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Blocked = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -2011,6 +2841,76 @@ func (x *QueryAddressesResponse) GetPagination() *v1beta1.PageResponse { return nil } +type QueryAddress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *QueryAddress) Reset() { + *x = QueryAddress{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_blocklist_v1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAddress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAddress) ProtoMessage() {} + +// Deprecated: Use QueryAddress.ProtoReflect.Descriptor instead. +func (*QueryAddress) Descriptor() ([]byte, []int) { + return file_aura_blocklist_v1_query_proto_rawDescGZIP(), []int{4} +} + +func (x *QueryAddress) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +type QueryAddressResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Blocked bool `protobuf:"varint,1,opt,name=blocked,proto3" json:"blocked,omitempty"` +} + +func (x *QueryAddressResponse) Reset() { + *x = QueryAddressResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_blocklist_v1_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAddressResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAddressResponse) ProtoMessage() {} + +// Deprecated: Use QueryAddressResponse.ProtoReflect.Descriptor instead. +func (*QueryAddressResponse) Descriptor() ([]byte, []int) { + return file_aura_blocklist_v1_query_proto_rawDescGZIP(), []int{5} +} + +func (x *QueryAddressResponse) GetBlocked() bool { + if x != nil { + return x.Blocked + } + return false +} + var File_aura_blocklist_v1_query_proto protoreflect.FileDescriptor var file_aura_blocklist_v1_query_proto_rawDesc = []byte{ @@ -2049,37 +2949,53 @@ var file_aura_blocklist_v1_query_proto_rawDesc = []byte{ 0x18, 0x02, 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, 0x32, 0x84, 0x02, 0x0a, 0x05, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x74, 0x0a, 0x05, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1d, - 0x2e, 0x61, 0x75, 0x72, 0x61, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x1a, 0x25, 0x2e, - 0x61, 0x75, 0x72, 0x61, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1a, 0x12, 0x18, 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, - 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x84, 0x01, 0x0a, 0x09, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x61, 0x75, 0x72, 0x61, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x42, 0x0a, 0x0c, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 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, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, + 0x37, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x05, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x32, 0x8d, 0x03, 0x0a, 0x05, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x74, 0x0a, 0x05, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1d, 0x2e, 0x61, 0x75, + 0x72, 0x61, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x1a, 0x25, 0x2e, 0x61, 0x75, 0x72, + 0x61, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x25, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, + 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2f, + 0x76, 0x31, 0x2f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x84, 0x01, 0x0a, 0x09, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x61, 0x75, 0x72, 0x61, 0x2e, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x1a, 0x29, 0x2e, 0x61, 0x75, 0x72, 0x61, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x1a, 0x29, 0x2e, 0x61, + 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1e, 0x12, 0x1c, 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, + 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, + 0x86, 0x01, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x2e, 0x61, 0x75, + 0x72, 0x61, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x27, 0x2e, 0x61, 0x75, 0x72, 0x61, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x65, 0x73, 0x42, 0xc9, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x75, 0x72, 0x61, 0x2e, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x61, 0x73, 0x73, - 0x65, 0x74, 0x73, 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x75, 0x72, - 0x61, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x42, 0x58, - 0xaa, 0x02, 0x11, 0x41, 0x75, 0x72, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, - 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x41, 0x75, 0x72, 0x61, 0x5c, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x41, 0x75, 0x72, 0x61, 0x5c, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x41, 0x75, 0x72, 0x61, 0x3a, - 0x3a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x26, 0x12, 0x24, 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, + 0x69, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x7b, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x42, 0xc9, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, + 0x2e, 0x61, 0x75, 0x72, 0x61, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, + 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, + 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x41, 0x42, 0x58, 0xaa, 0x02, 0x11, 0x41, 0x75, 0x72, 0x61, 0x2e, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x41, 0x75, 0x72, + 0x61, 0x5c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x1d, 0x41, 0x75, 0x72, 0x61, 0x5c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x5c, + 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x13, 0x41, 0x75, 0x72, 0x61, 0x3a, 0x3a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2094,24 +3010,28 @@ func file_aura_blocklist_v1_query_proto_rawDescGZIP() []byte { return file_aura_blocklist_v1_query_proto_rawDescData } -var file_aura_blocklist_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_aura_blocklist_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_aura_blocklist_v1_query_proto_goTypes = []interface{}{ (*QueryOwner)(nil), // 0: aura.blocklist.v1.QueryOwner (*QueryOwnerResponse)(nil), // 1: aura.blocklist.v1.QueryOwnerResponse (*QueryAddresses)(nil), // 2: aura.blocklist.v1.QueryAddresses (*QueryAddressesResponse)(nil), // 3: aura.blocklist.v1.QueryAddressesResponse - (*v1beta1.PageRequest)(nil), // 4: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 5: cosmos.base.query.v1beta1.PageResponse + (*QueryAddress)(nil), // 4: aura.blocklist.v1.QueryAddress + (*QueryAddressResponse)(nil), // 5: aura.blocklist.v1.QueryAddressResponse + (*v1beta1.PageRequest)(nil), // 6: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 7: cosmos.base.query.v1beta1.PageResponse } var file_aura_blocklist_v1_query_proto_depIdxs = []int32{ - 4, // 0: aura.blocklist.v1.QueryAddresses.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 5, // 1: aura.blocklist.v1.QueryAddressesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 6, // 0: aura.blocklist.v1.QueryAddresses.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 7, // 1: aura.blocklist.v1.QueryAddressesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 0, // 2: aura.blocklist.v1.Query.Owner:input_type -> aura.blocklist.v1.QueryOwner 2, // 3: aura.blocklist.v1.Query.Addresses:input_type -> aura.blocklist.v1.QueryAddresses - 1, // 4: aura.blocklist.v1.Query.Owner:output_type -> aura.blocklist.v1.QueryOwnerResponse - 3, // 5: aura.blocklist.v1.Query.Addresses:output_type -> aura.blocklist.v1.QueryAddressesResponse - 4, // [4:6] is the sub-list for method output_type - 2, // [2:4] is the sub-list for method input_type + 4, // 4: aura.blocklist.v1.Query.Address:input_type -> aura.blocklist.v1.QueryAddress + 1, // 5: aura.blocklist.v1.Query.Owner:output_type -> aura.blocklist.v1.QueryOwnerResponse + 3, // 6: aura.blocklist.v1.Query.Addresses:output_type -> aura.blocklist.v1.QueryAddressesResponse + 5, // 7: aura.blocklist.v1.Query.Address:output_type -> aura.blocklist.v1.QueryAddressResponse + 5, // [5:8] is the sub-list for method output_type + 2, // [2:5] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name @@ -2171,6 +3091,30 @@ func file_aura_blocklist_v1_query_proto_init() { return nil } } + file_aura_blocklist_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAddress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aura_blocklist_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAddressResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -2178,7 +3122,7 @@ func file_aura_blocklist_v1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_aura_blocklist_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 6, NumExtensions: 0, NumServices: 1, }, diff --git a/api/aura/blocklist/v1/query_grpc.pb.go b/api/aura/blocklist/v1/query_grpc.pb.go index 2498533..5f8fd80 100644 --- a/api/aura/blocklist/v1/query_grpc.pb.go +++ b/api/aura/blocklist/v1/query_grpc.pb.go @@ -21,6 +21,7 @@ const _ = grpc.SupportPackageIsVersion7 const ( Query_Owner_FullMethodName = "/aura.blocklist.v1.Query/Owner" Query_Addresses_FullMethodName = "/aura.blocklist.v1.Query/Addresses" + Query_Address_FullMethodName = "/aura.blocklist.v1.Query/Address" ) // QueryClient is the client API for Query service. @@ -28,8 +29,8 @@ const ( // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type QueryClient interface { Owner(ctx context.Context, in *QueryOwner, opts ...grpc.CallOption) (*QueryOwnerResponse, error) - // TODO(@john): Implement more blocklist queries. Addresses(ctx context.Context, in *QueryAddresses, opts ...grpc.CallOption) (*QueryAddressesResponse, error) + Address(ctx context.Context, in *QueryAddress, opts ...grpc.CallOption) (*QueryAddressResponse, error) } type queryClient struct { @@ -58,13 +59,22 @@ func (c *queryClient) Addresses(ctx context.Context, in *QueryAddresses, opts .. return out, nil } +func (c *queryClient) Address(ctx context.Context, in *QueryAddress, opts ...grpc.CallOption) (*QueryAddressResponse, error) { + out := new(QueryAddressResponse) + err := c.cc.Invoke(ctx, Query_Address_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. // All implementations must embed UnimplementedQueryServer // for forward compatibility type QueryServer interface { Owner(context.Context, *QueryOwner) (*QueryOwnerResponse, error) - // TODO(@john): Implement more blocklist queries. Addresses(context.Context, *QueryAddresses) (*QueryAddressesResponse, error) + Address(context.Context, *QueryAddress) (*QueryAddressResponse, error) mustEmbedUnimplementedQueryServer() } @@ -78,6 +88,9 @@ func (UnimplementedQueryServer) Owner(context.Context, *QueryOwner) (*QueryOwner func (UnimplementedQueryServer) Addresses(context.Context, *QueryAddresses) (*QueryAddressesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Addresses not implemented") } +func (UnimplementedQueryServer) Address(context.Context, *QueryAddress) (*QueryAddressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Address not implemented") +} func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} // UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. @@ -127,6 +140,24 @@ func _Query_Addresses_Handler(srv interface{}, ctx context.Context, dec func(int return interceptor(ctx, in, info, handler) } +func _Query_Address_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAddress) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Address(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Address_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Address(ctx, req.(*QueryAddress)) + } + return interceptor(ctx, in, info, handler) +} + // Query_ServiceDesc is the grpc.ServiceDesc for Query service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -142,6 +173,10 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "Addresses", Handler: _Query_Addresses_Handler, }, + { + MethodName: "Address", + Handler: _Query_Address_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "aura/blocklist/v1/query.proto", diff --git a/api/aura/v1/events.pulsar.go b/api/aura/v1/events.pulsar.go index 1a5f46f..43bf984 100644 --- a/api/aura/v1/events.pulsar.go +++ b/api/aura/v1/events.pulsar.go @@ -3,7 +3,9 @@ package aurav1 import ( fmt "fmt" + _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -853,15 +855,15 @@ func (x *fastReflection_Unpaused) ProtoMethods() *protoiface.Methods { } var ( - md_OwnershipTransferStarted protoreflect.MessageDescriptor - fd_OwnershipTransferStarted_old_owner protoreflect.FieldDescriptor - fd_OwnershipTransferStarted_new_owner protoreflect.FieldDescriptor + md_OwnershipTransferStarted protoreflect.MessageDescriptor + fd_OwnershipTransferStarted_previous_owner protoreflect.FieldDescriptor + fd_OwnershipTransferStarted_new_owner protoreflect.FieldDescriptor ) func init() { file_aura_v1_events_proto_init() md_OwnershipTransferStarted = File_aura_v1_events_proto.Messages().ByName("OwnershipTransferStarted") - fd_OwnershipTransferStarted_old_owner = md_OwnershipTransferStarted.Fields().ByName("old_owner") + fd_OwnershipTransferStarted_previous_owner = md_OwnershipTransferStarted.Fields().ByName("previous_owner") fd_OwnershipTransferStarted_new_owner = md_OwnershipTransferStarted.Fields().ByName("new_owner") } @@ -930,9 +932,9 @@ func (x *fastReflection_OwnershipTransferStarted) Interface() protoreflect.Proto // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_OwnershipTransferStarted) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.OldOwner != "" { - value := protoreflect.ValueOfString(x.OldOwner) - if !f(fd_OwnershipTransferStarted_old_owner, value) { + if x.PreviousOwner != "" { + value := protoreflect.ValueOfString(x.PreviousOwner) + if !f(fd_OwnershipTransferStarted_previous_owner, value) { return } } @@ -957,8 +959,8 @@ func (x *fastReflection_OwnershipTransferStarted) Range(f func(protoreflect.Fiel // a repeated field is populated if it is non-empty. func (x *fastReflection_OwnershipTransferStarted) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "aura.v1.OwnershipTransferStarted.old_owner": - return x.OldOwner != "" + case "aura.v1.OwnershipTransferStarted.previous_owner": + return x.PreviousOwner != "" case "aura.v1.OwnershipTransferStarted.new_owner": return x.NewOwner != "" default: @@ -977,8 +979,8 @@ func (x *fastReflection_OwnershipTransferStarted) Has(fd protoreflect.FieldDescr // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OwnershipTransferStarted) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "aura.v1.OwnershipTransferStarted.old_owner": - x.OldOwner = "" + case "aura.v1.OwnershipTransferStarted.previous_owner": + x.PreviousOwner = "" case "aura.v1.OwnershipTransferStarted.new_owner": x.NewOwner = "" default: @@ -997,8 +999,8 @@ func (x *fastReflection_OwnershipTransferStarted) Clear(fd protoreflect.FieldDes // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_OwnershipTransferStarted) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "aura.v1.OwnershipTransferStarted.old_owner": - value := x.OldOwner + case "aura.v1.OwnershipTransferStarted.previous_owner": + value := x.PreviousOwner return protoreflect.ValueOfString(value) case "aura.v1.OwnershipTransferStarted.new_owner": value := x.NewOwner @@ -1023,8 +1025,8 @@ func (x *fastReflection_OwnershipTransferStarted) Get(descriptor protoreflect.Fi // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OwnershipTransferStarted) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "aura.v1.OwnershipTransferStarted.old_owner": - x.OldOwner = value.Interface().(string) + case "aura.v1.OwnershipTransferStarted.previous_owner": + x.PreviousOwner = value.Interface().(string) case "aura.v1.OwnershipTransferStarted.new_owner": x.NewOwner = value.Interface().(string) default: @@ -1047,8 +1049,8 @@ func (x *fastReflection_OwnershipTransferStarted) Set(fd protoreflect.FieldDescr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OwnershipTransferStarted) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "aura.v1.OwnershipTransferStarted.old_owner": - panic(fmt.Errorf("field old_owner of message aura.v1.OwnershipTransferStarted is not mutable")) + case "aura.v1.OwnershipTransferStarted.previous_owner": + panic(fmt.Errorf("field previous_owner of message aura.v1.OwnershipTransferStarted is not mutable")) case "aura.v1.OwnershipTransferStarted.new_owner": panic(fmt.Errorf("field new_owner of message aura.v1.OwnershipTransferStarted is not mutable")) default: @@ -1064,7 +1066,7 @@ func (x *fastReflection_OwnershipTransferStarted) Mutable(fd protoreflect.FieldD // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_OwnershipTransferStarted) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "aura.v1.OwnershipTransferStarted.old_owner": + case "aura.v1.OwnershipTransferStarted.previous_owner": return protoreflect.ValueOfString("") case "aura.v1.OwnershipTransferStarted.new_owner": return protoreflect.ValueOfString("") @@ -1137,7 +1139,7 @@ func (x *fastReflection_OwnershipTransferStarted) ProtoMethods() *protoiface.Met var n int var l int _ = l - l = len(x.OldOwner) + l = len(x.PreviousOwner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -1181,10 +1183,10 @@ func (x *fastReflection_OwnershipTransferStarted) ProtoMethods() *protoiface.Met i-- dAtA[i] = 0x12 } - if len(x.OldOwner) > 0 { - i -= len(x.OldOwner) - copy(dAtA[i:], x.OldOwner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OldOwner))) + if len(x.PreviousOwner) > 0 { + i -= len(x.PreviousOwner) + copy(dAtA[i:], x.PreviousOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousOwner))) i-- dAtA[i] = 0xa } @@ -1239,7 +1241,7 @@ func (x *fastReflection_OwnershipTransferStarted) ProtoMethods() *protoiface.Met switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OldOwner", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousOwner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1267,7 +1269,7 @@ func (x *fastReflection_OwnershipTransferStarted) ProtoMethods() *protoiface.Met if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.OldOwner = string(dAtA[iNdEx:postIndex]) + x.PreviousOwner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -1336,135 +1338,4759 @@ func (x *fastReflection_OwnershipTransferStarted) ProtoMethods() *protoiface.Met } } +var ( + md_OwnershipTransferred protoreflect.MessageDescriptor + fd_OwnershipTransferred_previous_owner protoreflect.FieldDescriptor + fd_OwnershipTransferred_new_owner protoreflect.FieldDescriptor +) + +func init() { + file_aura_v1_events_proto_init() + md_OwnershipTransferred = File_aura_v1_events_proto.Messages().ByName("OwnershipTransferred") + fd_OwnershipTransferred_previous_owner = md_OwnershipTransferred.Fields().ByName("previous_owner") + fd_OwnershipTransferred_new_owner = md_OwnershipTransferred.Fields().ByName("new_owner") +} + +var _ protoreflect.Message = (*fastReflection_OwnershipTransferred)(nil) + +type fastReflection_OwnershipTransferred OwnershipTransferred + +func (x *OwnershipTransferred) ProtoReflect() protoreflect.Message { + return (*fastReflection_OwnershipTransferred)(x) +} + +func (x *OwnershipTransferred) slowProtoReflect() protoreflect.Message { + mi := &file_aura_v1_events_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_OwnershipTransferred_messageType fastReflection_OwnershipTransferred_messageType +var _ protoreflect.MessageType = fastReflection_OwnershipTransferred_messageType{} + +type fastReflection_OwnershipTransferred_messageType struct{} + +func (x fastReflection_OwnershipTransferred_messageType) Zero() protoreflect.Message { + return (*fastReflection_OwnershipTransferred)(nil) +} +func (x fastReflection_OwnershipTransferred_messageType) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferred) +} +func (x fastReflection_OwnershipTransferred_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferred +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OwnershipTransferred) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferred +} + +// 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_OwnershipTransferred) Type() protoreflect.MessageType { + return _fastReflection_OwnershipTransferred_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OwnershipTransferred) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferred) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OwnershipTransferred) Interface() protoreflect.ProtoMessage { + return (*OwnershipTransferred)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_OwnershipTransferred) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousOwner != "" { + value := protoreflect.ValueOfString(x.PreviousOwner) + if !f(fd_OwnershipTransferred_previous_owner, value) { + return + } + } + if x.NewOwner != "" { + value := protoreflect.ValueOfString(x.NewOwner) + if !f(fd_OwnershipTransferred_new_owner, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_OwnershipTransferred) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.v1.OwnershipTransferred.previous_owner": + return x.PreviousOwner != "" + case "aura.v1.OwnershipTransferred.new_owner": + return x.NewOwner != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.v1.OwnershipTransferred does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.v1.OwnershipTransferred.previous_owner": + x.PreviousOwner = "" + case "aura.v1.OwnershipTransferred.new_owner": + x.NewOwner = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.v1.OwnershipTransferred does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_OwnershipTransferred) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.v1.OwnershipTransferred.previous_owner": + value := x.PreviousOwner + return protoreflect.ValueOfString(value) + case "aura.v1.OwnershipTransferred.new_owner": + value := x.NewOwner + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.v1.OwnershipTransferred does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.v1.OwnershipTransferred.previous_owner": + x.PreviousOwner = value.Interface().(string) + case "aura.v1.OwnershipTransferred.new_owner": + x.NewOwner = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.v1.OwnershipTransferred does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.OwnershipTransferred.previous_owner": + panic(fmt.Errorf("field previous_owner of message aura.v1.OwnershipTransferred is not mutable")) + case "aura.v1.OwnershipTransferred.new_owner": + panic(fmt.Errorf("field new_owner of message aura.v1.OwnershipTransferred is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.v1.OwnershipTransferred 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_OwnershipTransferred) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.OwnershipTransferred.previous_owner": + return protoreflect.ValueOfString("") + case "aura.v1.OwnershipTransferred.new_owner": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.OwnershipTransferred")) + } + panic(fmt.Errorf("message aura.v1.OwnershipTransferred 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_OwnershipTransferred) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.v1.OwnershipTransferred", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_OwnershipTransferred) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OwnershipTransferred) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_OwnershipTransferred) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_OwnershipTransferred) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OwnershipTransferred) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.PreviousOwner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewOwner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*OwnershipTransferred) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.NewOwner) > 0 { + i -= len(x.NewOwner) + copy(dAtA[i:], x.NewOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousOwner) > 0 { + i -= len(x.PreviousOwner) + copy(dAtA[i:], x.PreviousOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousOwner))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*OwnershipTransferred) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnershipTransferred: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnershipTransferred: 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 PreviousOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_BurnerAdded protoreflect.MessageDescriptor + fd_BurnerAdded_address protoreflect.FieldDescriptor + fd_BurnerAdded_allowance protoreflect.FieldDescriptor +) + +func init() { + file_aura_v1_events_proto_init() + md_BurnerAdded = File_aura_v1_events_proto.Messages().ByName("BurnerAdded") + fd_BurnerAdded_address = md_BurnerAdded.Fields().ByName("address") + fd_BurnerAdded_allowance = md_BurnerAdded.Fields().ByName("allowance") +} + +var _ protoreflect.Message = (*fastReflection_BurnerAdded)(nil) + +type fastReflection_BurnerAdded BurnerAdded + +func (x *BurnerAdded) ProtoReflect() protoreflect.Message { + return (*fastReflection_BurnerAdded)(x) +} + +func (x *BurnerAdded) slowProtoReflect() protoreflect.Message { + mi := &file_aura_v1_events_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_BurnerAdded_messageType fastReflection_BurnerAdded_messageType +var _ protoreflect.MessageType = fastReflection_BurnerAdded_messageType{} + +type fastReflection_BurnerAdded_messageType struct{} + +func (x fastReflection_BurnerAdded_messageType) Zero() protoreflect.Message { + return (*fastReflection_BurnerAdded)(nil) +} +func (x fastReflection_BurnerAdded_messageType) New() protoreflect.Message { + return new(fastReflection_BurnerAdded) +} +func (x fastReflection_BurnerAdded_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BurnerAdded +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BurnerAdded) Descriptor() protoreflect.MessageDescriptor { + return md_BurnerAdded +} + +// 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_BurnerAdded) Type() protoreflect.MessageType { + return _fastReflection_BurnerAdded_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BurnerAdded) New() protoreflect.Message { + return new(fastReflection_BurnerAdded) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BurnerAdded) Interface() protoreflect.ProtoMessage { + return (*BurnerAdded)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_BurnerAdded) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_BurnerAdded_address, value) { + return + } + } + if x.Allowance != "" { + value := protoreflect.ValueOfString(x.Allowance) + if !f(fd_BurnerAdded_allowance, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_BurnerAdded) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.v1.BurnerAdded.address": + return x.Address != "" + case "aura.v1.BurnerAdded.allowance": + return x.Allowance != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerAdded")) + } + panic(fmt.Errorf("message aura.v1.BurnerAdded does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerAdded) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.v1.BurnerAdded.address": + x.Address = "" + case "aura.v1.BurnerAdded.allowance": + x.Allowance = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerAdded")) + } + panic(fmt.Errorf("message aura.v1.BurnerAdded does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_BurnerAdded) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.v1.BurnerAdded.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "aura.v1.BurnerAdded.allowance": + value := x.Allowance + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerAdded")) + } + panic(fmt.Errorf("message aura.v1.BurnerAdded does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerAdded) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.v1.BurnerAdded.address": + x.Address = value.Interface().(string) + case "aura.v1.BurnerAdded.allowance": + x.Allowance = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerAdded")) + } + panic(fmt.Errorf("message aura.v1.BurnerAdded does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerAdded) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.BurnerAdded.address": + panic(fmt.Errorf("field address of message aura.v1.BurnerAdded is not mutable")) + case "aura.v1.BurnerAdded.allowance": + panic(fmt.Errorf("field allowance of message aura.v1.BurnerAdded is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerAdded")) + } + panic(fmt.Errorf("message aura.v1.BurnerAdded 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_BurnerAdded) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.BurnerAdded.address": + return protoreflect.ValueOfString("") + case "aura.v1.BurnerAdded.allowance": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerAdded")) + } + panic(fmt.Errorf("message aura.v1.BurnerAdded 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_BurnerAdded) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.v1.BurnerAdded", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_BurnerAdded) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerAdded) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_BurnerAdded) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_BurnerAdded) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BurnerAdded) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Allowance) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*BurnerAdded) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Allowance) > 0 { + i -= len(x.Allowance) + copy(dAtA[i:], x.Allowance) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Allowance))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*BurnerAdded) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BurnerAdded: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BurnerAdded: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Allowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Allowance = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_BurnerRemoved protoreflect.MessageDescriptor + fd_BurnerRemoved_address protoreflect.FieldDescriptor +) + +func init() { + file_aura_v1_events_proto_init() + md_BurnerRemoved = File_aura_v1_events_proto.Messages().ByName("BurnerRemoved") + fd_BurnerRemoved_address = md_BurnerRemoved.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_BurnerRemoved)(nil) + +type fastReflection_BurnerRemoved BurnerRemoved + +func (x *BurnerRemoved) ProtoReflect() protoreflect.Message { + return (*fastReflection_BurnerRemoved)(x) +} + +func (x *BurnerRemoved) slowProtoReflect() protoreflect.Message { + mi := &file_aura_v1_events_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_BurnerRemoved_messageType fastReflection_BurnerRemoved_messageType +var _ protoreflect.MessageType = fastReflection_BurnerRemoved_messageType{} + +type fastReflection_BurnerRemoved_messageType struct{} + +func (x fastReflection_BurnerRemoved_messageType) Zero() protoreflect.Message { + return (*fastReflection_BurnerRemoved)(nil) +} +func (x fastReflection_BurnerRemoved_messageType) New() protoreflect.Message { + return new(fastReflection_BurnerRemoved) +} +func (x fastReflection_BurnerRemoved_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BurnerRemoved +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BurnerRemoved) Descriptor() protoreflect.MessageDescriptor { + return md_BurnerRemoved +} + +// 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_BurnerRemoved) Type() protoreflect.MessageType { + return _fastReflection_BurnerRemoved_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BurnerRemoved) New() protoreflect.Message { + return new(fastReflection_BurnerRemoved) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BurnerRemoved) Interface() protoreflect.ProtoMessage { + return (*BurnerRemoved)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_BurnerRemoved) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_BurnerRemoved_address, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_BurnerRemoved) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.v1.BurnerRemoved.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerRemoved")) + } + panic(fmt.Errorf("message aura.v1.BurnerRemoved does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerRemoved) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.v1.BurnerRemoved.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerRemoved")) + } + panic(fmt.Errorf("message aura.v1.BurnerRemoved does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_BurnerRemoved) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.v1.BurnerRemoved.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerRemoved")) + } + panic(fmt.Errorf("message aura.v1.BurnerRemoved does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerRemoved) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.v1.BurnerRemoved.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerRemoved")) + } + panic(fmt.Errorf("message aura.v1.BurnerRemoved does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerRemoved) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.BurnerRemoved.address": + panic(fmt.Errorf("field address of message aura.v1.BurnerRemoved is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerRemoved")) + } + panic(fmt.Errorf("message aura.v1.BurnerRemoved 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_BurnerRemoved) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.BurnerRemoved.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerRemoved")) + } + panic(fmt.Errorf("message aura.v1.BurnerRemoved 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_BurnerRemoved) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.v1.BurnerRemoved", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_BurnerRemoved) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerRemoved) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_BurnerRemoved) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_BurnerRemoved) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BurnerRemoved) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*BurnerRemoved) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*BurnerRemoved) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BurnerRemoved: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BurnerRemoved: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_BurnerUpdated protoreflect.MessageDescriptor + fd_BurnerUpdated_address protoreflect.FieldDescriptor + fd_BurnerUpdated_previous_allowance protoreflect.FieldDescriptor + fd_BurnerUpdated_new_allowance protoreflect.FieldDescriptor +) + +func init() { + file_aura_v1_events_proto_init() + md_BurnerUpdated = File_aura_v1_events_proto.Messages().ByName("BurnerUpdated") + fd_BurnerUpdated_address = md_BurnerUpdated.Fields().ByName("address") + fd_BurnerUpdated_previous_allowance = md_BurnerUpdated.Fields().ByName("previous_allowance") + fd_BurnerUpdated_new_allowance = md_BurnerUpdated.Fields().ByName("new_allowance") +} + +var _ protoreflect.Message = (*fastReflection_BurnerUpdated)(nil) + +type fastReflection_BurnerUpdated BurnerUpdated + +func (x *BurnerUpdated) ProtoReflect() protoreflect.Message { + return (*fastReflection_BurnerUpdated)(x) +} + +func (x *BurnerUpdated) slowProtoReflect() protoreflect.Message { + mi := &file_aura_v1_events_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_BurnerUpdated_messageType fastReflection_BurnerUpdated_messageType +var _ protoreflect.MessageType = fastReflection_BurnerUpdated_messageType{} + +type fastReflection_BurnerUpdated_messageType struct{} + +func (x fastReflection_BurnerUpdated_messageType) Zero() protoreflect.Message { + return (*fastReflection_BurnerUpdated)(nil) +} +func (x fastReflection_BurnerUpdated_messageType) New() protoreflect.Message { + return new(fastReflection_BurnerUpdated) +} +func (x fastReflection_BurnerUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BurnerUpdated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BurnerUpdated) Descriptor() protoreflect.MessageDescriptor { + return md_BurnerUpdated +} + +// 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_BurnerUpdated) Type() protoreflect.MessageType { + return _fastReflection_BurnerUpdated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BurnerUpdated) New() protoreflect.Message { + return new(fastReflection_BurnerUpdated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BurnerUpdated) Interface() protoreflect.ProtoMessage { + return (*BurnerUpdated)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_BurnerUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_BurnerUpdated_address, value) { + return + } + } + if x.PreviousAllowance != "" { + value := protoreflect.ValueOfString(x.PreviousAllowance) + if !f(fd_BurnerUpdated_previous_allowance, value) { + return + } + } + if x.NewAllowance != "" { + value := protoreflect.ValueOfString(x.NewAllowance) + if !f(fd_BurnerUpdated_new_allowance, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_BurnerUpdated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.v1.BurnerUpdated.address": + return x.Address != "" + case "aura.v1.BurnerUpdated.previous_allowance": + return x.PreviousAllowance != "" + case "aura.v1.BurnerUpdated.new_allowance": + return x.NewAllowance != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerUpdated")) + } + panic(fmt.Errorf("message aura.v1.BurnerUpdated does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerUpdated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.v1.BurnerUpdated.address": + x.Address = "" + case "aura.v1.BurnerUpdated.previous_allowance": + x.PreviousAllowance = "" + case "aura.v1.BurnerUpdated.new_allowance": + x.NewAllowance = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerUpdated")) + } + panic(fmt.Errorf("message aura.v1.BurnerUpdated does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_BurnerUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.v1.BurnerUpdated.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "aura.v1.BurnerUpdated.previous_allowance": + value := x.PreviousAllowance + return protoreflect.ValueOfString(value) + case "aura.v1.BurnerUpdated.new_allowance": + value := x.NewAllowance + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerUpdated")) + } + panic(fmt.Errorf("message aura.v1.BurnerUpdated does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.v1.BurnerUpdated.address": + x.Address = value.Interface().(string) + case "aura.v1.BurnerUpdated.previous_allowance": + x.PreviousAllowance = value.Interface().(string) + case "aura.v1.BurnerUpdated.new_allowance": + x.NewAllowance = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerUpdated")) + } + panic(fmt.Errorf("message aura.v1.BurnerUpdated does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.BurnerUpdated.address": + panic(fmt.Errorf("field address of message aura.v1.BurnerUpdated is not mutable")) + case "aura.v1.BurnerUpdated.previous_allowance": + panic(fmt.Errorf("field previous_allowance of message aura.v1.BurnerUpdated is not mutable")) + case "aura.v1.BurnerUpdated.new_allowance": + panic(fmt.Errorf("field new_allowance of message aura.v1.BurnerUpdated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerUpdated")) + } + panic(fmt.Errorf("message aura.v1.BurnerUpdated 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_BurnerUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.BurnerUpdated.address": + return protoreflect.ValueOfString("") + case "aura.v1.BurnerUpdated.previous_allowance": + return protoreflect.ValueOfString("") + case "aura.v1.BurnerUpdated.new_allowance": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.BurnerUpdated")) + } + panic(fmt.Errorf("message aura.v1.BurnerUpdated 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_BurnerUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.v1.BurnerUpdated", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_BurnerUpdated) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BurnerUpdated) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_BurnerUpdated) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_BurnerUpdated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BurnerUpdated) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PreviousAllowance) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewAllowance) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*BurnerUpdated) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.NewAllowance) > 0 { + i -= len(x.NewAllowance) + copy(dAtA[i:], x.NewAllowance) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAllowance))) + i-- + dAtA[i] = 0x1a + } + if len(x.PreviousAllowance) > 0 { + i -= len(x.PreviousAllowance) + copy(dAtA[i:], x.PreviousAllowance) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousAllowance))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*BurnerUpdated) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BurnerUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BurnerUpdated: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousAllowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousAllowance = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewAllowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewAllowance = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MinterAdded protoreflect.MessageDescriptor + fd_MinterAdded_address protoreflect.FieldDescriptor + fd_MinterAdded_allowance protoreflect.FieldDescriptor +) + +func init() { + file_aura_v1_events_proto_init() + md_MinterAdded = File_aura_v1_events_proto.Messages().ByName("MinterAdded") + fd_MinterAdded_address = md_MinterAdded.Fields().ByName("address") + fd_MinterAdded_allowance = md_MinterAdded.Fields().ByName("allowance") +} + +var _ protoreflect.Message = (*fastReflection_MinterAdded)(nil) + +type fastReflection_MinterAdded MinterAdded + +func (x *MinterAdded) ProtoReflect() protoreflect.Message { + return (*fastReflection_MinterAdded)(x) +} + +func (x *MinterAdded) slowProtoReflect() protoreflect.Message { + mi := &file_aura_v1_events_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MinterAdded_messageType fastReflection_MinterAdded_messageType +var _ protoreflect.MessageType = fastReflection_MinterAdded_messageType{} + +type fastReflection_MinterAdded_messageType struct{} + +func (x fastReflection_MinterAdded_messageType) Zero() protoreflect.Message { + return (*fastReflection_MinterAdded)(nil) +} +func (x fastReflection_MinterAdded_messageType) New() protoreflect.Message { + return new(fastReflection_MinterAdded) +} +func (x fastReflection_MinterAdded_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MinterAdded +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MinterAdded) Descriptor() protoreflect.MessageDescriptor { + return md_MinterAdded +} + +// 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_MinterAdded) Type() protoreflect.MessageType { + return _fastReflection_MinterAdded_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MinterAdded) New() protoreflect.Message { + return new(fastReflection_MinterAdded) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MinterAdded) Interface() protoreflect.ProtoMessage { + return (*MinterAdded)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MinterAdded) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_MinterAdded_address, value) { + return + } + } + if x.Allowance != "" { + value := protoreflect.ValueOfString(x.Allowance) + if !f(fd_MinterAdded_allowance, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MinterAdded) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.v1.MinterAdded.address": + return x.Address != "" + case "aura.v1.MinterAdded.allowance": + return x.Allowance != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterAdded")) + } + panic(fmt.Errorf("message aura.v1.MinterAdded does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterAdded) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.v1.MinterAdded.address": + x.Address = "" + case "aura.v1.MinterAdded.allowance": + x.Allowance = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterAdded")) + } + panic(fmt.Errorf("message aura.v1.MinterAdded does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MinterAdded) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.v1.MinterAdded.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "aura.v1.MinterAdded.allowance": + value := x.Allowance + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterAdded")) + } + panic(fmt.Errorf("message aura.v1.MinterAdded does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterAdded) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.v1.MinterAdded.address": + x.Address = value.Interface().(string) + case "aura.v1.MinterAdded.allowance": + x.Allowance = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterAdded")) + } + panic(fmt.Errorf("message aura.v1.MinterAdded does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterAdded) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.MinterAdded.address": + panic(fmt.Errorf("field address of message aura.v1.MinterAdded is not mutable")) + case "aura.v1.MinterAdded.allowance": + panic(fmt.Errorf("field allowance of message aura.v1.MinterAdded is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterAdded")) + } + panic(fmt.Errorf("message aura.v1.MinterAdded 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_MinterAdded) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.MinterAdded.address": + return protoreflect.ValueOfString("") + case "aura.v1.MinterAdded.allowance": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterAdded")) + } + panic(fmt.Errorf("message aura.v1.MinterAdded 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_MinterAdded) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.v1.MinterAdded", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MinterAdded) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterAdded) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MinterAdded) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MinterAdded) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MinterAdded) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Allowance) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MinterAdded) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Allowance) > 0 { + i -= len(x.Allowance) + copy(dAtA[i:], x.Allowance) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Allowance))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MinterAdded) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MinterAdded: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MinterAdded: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Allowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Allowance = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MinterRemoved protoreflect.MessageDescriptor + fd_MinterRemoved_address protoreflect.FieldDescriptor +) + +func init() { + file_aura_v1_events_proto_init() + md_MinterRemoved = File_aura_v1_events_proto.Messages().ByName("MinterRemoved") + fd_MinterRemoved_address = md_MinterRemoved.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_MinterRemoved)(nil) + +type fastReflection_MinterRemoved MinterRemoved + +func (x *MinterRemoved) ProtoReflect() protoreflect.Message { + return (*fastReflection_MinterRemoved)(x) +} + +func (x *MinterRemoved) slowProtoReflect() protoreflect.Message { + mi := &file_aura_v1_events_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MinterRemoved_messageType fastReflection_MinterRemoved_messageType +var _ protoreflect.MessageType = fastReflection_MinterRemoved_messageType{} + +type fastReflection_MinterRemoved_messageType struct{} + +func (x fastReflection_MinterRemoved_messageType) Zero() protoreflect.Message { + return (*fastReflection_MinterRemoved)(nil) +} +func (x fastReflection_MinterRemoved_messageType) New() protoreflect.Message { + return new(fastReflection_MinterRemoved) +} +func (x fastReflection_MinterRemoved_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MinterRemoved +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MinterRemoved) Descriptor() protoreflect.MessageDescriptor { + return md_MinterRemoved +} + +// 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_MinterRemoved) Type() protoreflect.MessageType { + return _fastReflection_MinterRemoved_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MinterRemoved) New() protoreflect.Message { + return new(fastReflection_MinterRemoved) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MinterRemoved) Interface() protoreflect.ProtoMessage { + return (*MinterRemoved)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MinterRemoved) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_MinterRemoved_address, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MinterRemoved) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.v1.MinterRemoved.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterRemoved")) + } + panic(fmt.Errorf("message aura.v1.MinterRemoved does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterRemoved) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.v1.MinterRemoved.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterRemoved")) + } + panic(fmt.Errorf("message aura.v1.MinterRemoved does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MinterRemoved) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.v1.MinterRemoved.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterRemoved")) + } + panic(fmt.Errorf("message aura.v1.MinterRemoved does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterRemoved) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.v1.MinterRemoved.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterRemoved")) + } + panic(fmt.Errorf("message aura.v1.MinterRemoved does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterRemoved) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.MinterRemoved.address": + panic(fmt.Errorf("field address of message aura.v1.MinterRemoved is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterRemoved")) + } + panic(fmt.Errorf("message aura.v1.MinterRemoved 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_MinterRemoved) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.MinterRemoved.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterRemoved")) + } + panic(fmt.Errorf("message aura.v1.MinterRemoved 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_MinterRemoved) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.v1.MinterRemoved", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MinterRemoved) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterRemoved) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MinterRemoved) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MinterRemoved) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MinterRemoved) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MinterRemoved) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MinterRemoved) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MinterRemoved: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MinterRemoved: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MinterUpdated protoreflect.MessageDescriptor + fd_MinterUpdated_address protoreflect.FieldDescriptor + fd_MinterUpdated_previous_allowance protoreflect.FieldDescriptor + fd_MinterUpdated_new_allowance protoreflect.FieldDescriptor +) + +func init() { + file_aura_v1_events_proto_init() + md_MinterUpdated = File_aura_v1_events_proto.Messages().ByName("MinterUpdated") + fd_MinterUpdated_address = md_MinterUpdated.Fields().ByName("address") + fd_MinterUpdated_previous_allowance = md_MinterUpdated.Fields().ByName("previous_allowance") + fd_MinterUpdated_new_allowance = md_MinterUpdated.Fields().ByName("new_allowance") +} + +var _ protoreflect.Message = (*fastReflection_MinterUpdated)(nil) + +type fastReflection_MinterUpdated MinterUpdated + +func (x *MinterUpdated) ProtoReflect() protoreflect.Message { + return (*fastReflection_MinterUpdated)(x) +} + +func (x *MinterUpdated) slowProtoReflect() protoreflect.Message { + mi := &file_aura_v1_events_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MinterUpdated_messageType fastReflection_MinterUpdated_messageType +var _ protoreflect.MessageType = fastReflection_MinterUpdated_messageType{} + +type fastReflection_MinterUpdated_messageType struct{} + +func (x fastReflection_MinterUpdated_messageType) Zero() protoreflect.Message { + return (*fastReflection_MinterUpdated)(nil) +} +func (x fastReflection_MinterUpdated_messageType) New() protoreflect.Message { + return new(fastReflection_MinterUpdated) +} +func (x fastReflection_MinterUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MinterUpdated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MinterUpdated) Descriptor() protoreflect.MessageDescriptor { + return md_MinterUpdated +} + +// 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_MinterUpdated) Type() protoreflect.MessageType { + return _fastReflection_MinterUpdated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MinterUpdated) New() protoreflect.Message { + return new(fastReflection_MinterUpdated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MinterUpdated) Interface() protoreflect.ProtoMessage { + return (*MinterUpdated)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MinterUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_MinterUpdated_address, value) { + return + } + } + if x.PreviousAllowance != "" { + value := protoreflect.ValueOfString(x.PreviousAllowance) + if !f(fd_MinterUpdated_previous_allowance, value) { + return + } + } + if x.NewAllowance != "" { + value := protoreflect.ValueOfString(x.NewAllowance) + if !f(fd_MinterUpdated_new_allowance, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MinterUpdated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.v1.MinterUpdated.address": + return x.Address != "" + case "aura.v1.MinterUpdated.previous_allowance": + return x.PreviousAllowance != "" + case "aura.v1.MinterUpdated.new_allowance": + return x.NewAllowance != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterUpdated")) + } + panic(fmt.Errorf("message aura.v1.MinterUpdated does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterUpdated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.v1.MinterUpdated.address": + x.Address = "" + case "aura.v1.MinterUpdated.previous_allowance": + x.PreviousAllowance = "" + case "aura.v1.MinterUpdated.new_allowance": + x.NewAllowance = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterUpdated")) + } + panic(fmt.Errorf("message aura.v1.MinterUpdated does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MinterUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.v1.MinterUpdated.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "aura.v1.MinterUpdated.previous_allowance": + value := x.PreviousAllowance + return protoreflect.ValueOfString(value) + case "aura.v1.MinterUpdated.new_allowance": + value := x.NewAllowance + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterUpdated")) + } + panic(fmt.Errorf("message aura.v1.MinterUpdated does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.v1.MinterUpdated.address": + x.Address = value.Interface().(string) + case "aura.v1.MinterUpdated.previous_allowance": + x.PreviousAllowance = value.Interface().(string) + case "aura.v1.MinterUpdated.new_allowance": + x.NewAllowance = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterUpdated")) + } + panic(fmt.Errorf("message aura.v1.MinterUpdated does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.MinterUpdated.address": + panic(fmt.Errorf("field address of message aura.v1.MinterUpdated is not mutable")) + case "aura.v1.MinterUpdated.previous_allowance": + panic(fmt.Errorf("field previous_allowance of message aura.v1.MinterUpdated is not mutable")) + case "aura.v1.MinterUpdated.new_allowance": + panic(fmt.Errorf("field new_allowance of message aura.v1.MinterUpdated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterUpdated")) + } + panic(fmt.Errorf("message aura.v1.MinterUpdated 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_MinterUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.MinterUpdated.address": + return protoreflect.ValueOfString("") + case "aura.v1.MinterUpdated.previous_allowance": + return protoreflect.ValueOfString("") + case "aura.v1.MinterUpdated.new_allowance": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.MinterUpdated")) + } + panic(fmt.Errorf("message aura.v1.MinterUpdated 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_MinterUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.v1.MinterUpdated", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MinterUpdated) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MinterUpdated) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MinterUpdated) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MinterUpdated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MinterUpdated) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PreviousAllowance) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewAllowance) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MinterUpdated) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.NewAllowance) > 0 { + i -= len(x.NewAllowance) + copy(dAtA[i:], x.NewAllowance) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAllowance))) + i-- + dAtA[i] = 0x1a + } + if len(x.PreviousAllowance) > 0 { + i -= len(x.PreviousAllowance) + copy(dAtA[i:], x.PreviousAllowance) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousAllowance))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MinterUpdated) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MinterUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MinterUpdated: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousAllowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousAllowance = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewAllowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewAllowance = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_PauserAdded protoreflect.MessageDescriptor + fd_PauserAdded_address protoreflect.FieldDescriptor +) + +func init() { + file_aura_v1_events_proto_init() + md_PauserAdded = File_aura_v1_events_proto.Messages().ByName("PauserAdded") + fd_PauserAdded_address = md_PauserAdded.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_PauserAdded)(nil) + +type fastReflection_PauserAdded PauserAdded + +func (x *PauserAdded) ProtoReflect() protoreflect.Message { + return (*fastReflection_PauserAdded)(x) +} + +func (x *PauserAdded) slowProtoReflect() protoreflect.Message { + mi := &file_aura_v1_events_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_PauserAdded_messageType fastReflection_PauserAdded_messageType +var _ protoreflect.MessageType = fastReflection_PauserAdded_messageType{} + +type fastReflection_PauserAdded_messageType struct{} + +func (x fastReflection_PauserAdded_messageType) Zero() protoreflect.Message { + return (*fastReflection_PauserAdded)(nil) +} +func (x fastReflection_PauserAdded_messageType) New() protoreflect.Message { + return new(fastReflection_PauserAdded) +} +func (x fastReflection_PauserAdded_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PauserAdded +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_PauserAdded) Descriptor() protoreflect.MessageDescriptor { + return md_PauserAdded +} + +// 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_PauserAdded) Type() protoreflect.MessageType { + return _fastReflection_PauserAdded_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_PauserAdded) New() protoreflect.Message { + return new(fastReflection_PauserAdded) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_PauserAdded) Interface() protoreflect.ProtoMessage { + return (*PauserAdded)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_PauserAdded) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_PauserAdded_address, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_PauserAdded) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.v1.PauserAdded.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserAdded")) + } + panic(fmt.Errorf("message aura.v1.PauserAdded does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_PauserAdded) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.v1.PauserAdded.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserAdded")) + } + panic(fmt.Errorf("message aura.v1.PauserAdded does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_PauserAdded) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.v1.PauserAdded.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserAdded")) + } + panic(fmt.Errorf("message aura.v1.PauserAdded does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_PauserAdded) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.v1.PauserAdded.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserAdded")) + } + panic(fmt.Errorf("message aura.v1.PauserAdded does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_PauserAdded) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.PauserAdded.address": + panic(fmt.Errorf("field address of message aura.v1.PauserAdded is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserAdded")) + } + panic(fmt.Errorf("message aura.v1.PauserAdded 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_PauserAdded) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.PauserAdded.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserAdded")) + } + panic(fmt.Errorf("message aura.v1.PauserAdded 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_PauserAdded) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.v1.PauserAdded", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_PauserAdded) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_PauserAdded) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_PauserAdded) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_PauserAdded) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*PauserAdded) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*PauserAdded) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*PauserAdded) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PauserAdded: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PauserAdded: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_PauserRemoved protoreflect.MessageDescriptor + fd_PauserRemoved_address protoreflect.FieldDescriptor +) + +func init() { + file_aura_v1_events_proto_init() + md_PauserRemoved = File_aura_v1_events_proto.Messages().ByName("PauserRemoved") + fd_PauserRemoved_address = md_PauserRemoved.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_PauserRemoved)(nil) + +type fastReflection_PauserRemoved PauserRemoved + +func (x *PauserRemoved) ProtoReflect() protoreflect.Message { + return (*fastReflection_PauserRemoved)(x) +} + +func (x *PauserRemoved) slowProtoReflect() protoreflect.Message { + mi := &file_aura_v1_events_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_PauserRemoved_messageType fastReflection_PauserRemoved_messageType +var _ protoreflect.MessageType = fastReflection_PauserRemoved_messageType{} + +type fastReflection_PauserRemoved_messageType struct{} + +func (x fastReflection_PauserRemoved_messageType) Zero() protoreflect.Message { + return (*fastReflection_PauserRemoved)(nil) +} +func (x fastReflection_PauserRemoved_messageType) New() protoreflect.Message { + return new(fastReflection_PauserRemoved) +} +func (x fastReflection_PauserRemoved_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PauserRemoved +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_PauserRemoved) Descriptor() protoreflect.MessageDescriptor { + return md_PauserRemoved +} + +// 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_PauserRemoved) Type() protoreflect.MessageType { + return _fastReflection_PauserRemoved_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_PauserRemoved) New() protoreflect.Message { + return new(fastReflection_PauserRemoved) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_PauserRemoved) Interface() protoreflect.ProtoMessage { + return (*PauserRemoved)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_PauserRemoved) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_PauserRemoved_address, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_PauserRemoved) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "aura.v1.PauserRemoved.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserRemoved")) + } + panic(fmt.Errorf("message aura.v1.PauserRemoved does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_PauserRemoved) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "aura.v1.PauserRemoved.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserRemoved")) + } + panic(fmt.Errorf("message aura.v1.PauserRemoved does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_PauserRemoved) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "aura.v1.PauserRemoved.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserRemoved")) + } + panic(fmt.Errorf("message aura.v1.PauserRemoved does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_PauserRemoved) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "aura.v1.PauserRemoved.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserRemoved")) + } + panic(fmt.Errorf("message aura.v1.PauserRemoved does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_PauserRemoved) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.PauserRemoved.address": + panic(fmt.Errorf("field address of message aura.v1.PauserRemoved is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserRemoved")) + } + panic(fmt.Errorf("message aura.v1.PauserRemoved 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_PauserRemoved) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "aura.v1.PauserRemoved.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: aura.v1.PauserRemoved")) + } + panic(fmt.Errorf("message aura.v1.PauserRemoved 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_PauserRemoved) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in aura.v1.PauserRemoved", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_PauserRemoved) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_PauserRemoved) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_PauserRemoved) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_PauserRemoved) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*PauserRemoved) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*PauserRemoved) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*PauserRemoved) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PauserRemoved: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PauserRemoved: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 // protoc (unknown) // source: aura/v1/events.proto -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Paused is emitted whenever the module is paused. +type Paused struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // account is the address of the account that paused the module. + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` +} + +func (x *Paused) Reset() { + *x = Paused{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_v1_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Paused) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Paused) ProtoMessage() {} + +// Deprecated: Use Paused.ProtoReflect.Descriptor instead. +func (*Paused) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{0} +} + +func (x *Paused) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +// Unpaused is emitted whenever the module is unpaused. +type Unpaused struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // account is the address of the account that unpaused the module. + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` +} + +func (x *Unpaused) Reset() { + *x = Unpaused{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_v1_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Unpaused) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Unpaused) ProtoMessage() {} + +// Deprecated: Use Unpaused.ProtoReflect.Descriptor instead. +func (*Unpaused) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{1} +} + +func (x *Unpaused) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +// OwnershipTransferStarted is emitted whenever an ownership transfer is started. +type OwnershipTransferStarted struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (x *OwnershipTransferStarted) Reset() { + *x = OwnershipTransferStarted{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_v1_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OwnershipTransferStarted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OwnershipTransferStarted) ProtoMessage() {} + +// Deprecated: Use OwnershipTransferStarted.ProtoReflect.Descriptor instead. +func (*OwnershipTransferStarted) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{2} +} + +func (x *OwnershipTransferStarted) GetPreviousOwner() string { + if x != nil { + return x.PreviousOwner + } + return "" +} + +func (x *OwnershipTransferStarted) GetNewOwner() string { + if x != nil { + return x.NewOwner + } + return "" +} + +// OwnershipTransferStarted is emitted whenever an ownership transfer is finalized. +type OwnershipTransferred struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (x *OwnershipTransferred) Reset() { + *x = OwnershipTransferred{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_v1_events_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OwnershipTransferred) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OwnershipTransferred) ProtoMessage() {} + +// Deprecated: Use OwnershipTransferred.ProtoReflect.Descriptor instead. +func (*OwnershipTransferred) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{3} +} + +func (x *OwnershipTransferred) GetPreviousOwner() string { + if x != nil { + return x.PreviousOwner + } + return "" +} + +func (x *OwnershipTransferred) GetNewOwner() string { + if x != nil { + return x.NewOwner + } + return "" +} + +// BurnerAdded is emitted whenever a new burner is added. +type BurnerAdded struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // address is the address of the burner. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // allowance is the allowance of the burner. + Allowance string `protobuf:"bytes,2,opt,name=allowance,proto3" json:"allowance,omitempty"` +} + +func (x *BurnerAdded) Reset() { + *x = BurnerAdded{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_v1_events_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BurnerAdded) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BurnerAdded) ProtoMessage() {} + +// Deprecated: Use BurnerAdded.ProtoReflect.Descriptor instead. +func (*BurnerAdded) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{4} +} + +func (x *BurnerAdded) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *BurnerAdded) GetAllowance() string { + if x != nil { + return x.Allowance + } + return "" +} -// Paused is emitted whenever the module is paused. -type Paused struct { +// BurnerRemoved is emitted whenever a burner is removed. +type BurnerRemoved struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // account is the address of the account that paused the module. - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + // address is the address of the burner. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } -func (x *Paused) Reset() { - *x = Paused{} +func (x *BurnerRemoved) Reset() { + *x = BurnerRemoved{} if protoimpl.UnsafeEnabled { - mi := &file_aura_v1_events_proto_msgTypes[0] + mi := &file_aura_v1_events_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Paused) String() string { +func (x *BurnerRemoved) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Paused) ProtoMessage() {} +func (*BurnerRemoved) ProtoMessage() {} -// Deprecated: Use Paused.ProtoReflect.Descriptor instead. -func (*Paused) Descriptor() ([]byte, []int) { - return file_aura_v1_events_proto_rawDescGZIP(), []int{0} +// Deprecated: Use BurnerRemoved.ProtoReflect.Descriptor instead. +func (*BurnerRemoved) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{5} } -func (x *Paused) GetAccount() string { +func (x *BurnerRemoved) GetAddress() string { if x != nil { - return x.Account + return x.Address } return "" } -// Unpaused is emitted whenever the module is unpaused. -type Unpaused struct { +// BurnerUpdated is emitted whenever a burner's allowance is set. +type BurnerUpdated struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // account is the address of the account that unpaused the module. - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + // address is the address of the burner. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // previous_allowance is the previous allowance of the burner. + PreviousAllowance string `protobuf:"bytes,2,opt,name=previous_allowance,json=previousAllowance,proto3" json:"previous_allowance,omitempty"` + // new_allowance is the new allowance of the burner. + NewAllowance string `protobuf:"bytes,3,opt,name=new_allowance,json=newAllowance,proto3" json:"new_allowance,omitempty"` } -func (x *Unpaused) Reset() { - *x = Unpaused{} +func (x *BurnerUpdated) Reset() { + *x = BurnerUpdated{} if protoimpl.UnsafeEnabled { - mi := &file_aura_v1_events_proto_msgTypes[1] + mi := &file_aura_v1_events_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Unpaused) String() string { +func (x *BurnerUpdated) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Unpaused) ProtoMessage() {} +func (*BurnerUpdated) ProtoMessage() {} -// Deprecated: Use Unpaused.ProtoReflect.Descriptor instead. -func (*Unpaused) Descriptor() ([]byte, []int) { - return file_aura_v1_events_proto_rawDescGZIP(), []int{1} +// Deprecated: Use BurnerUpdated.ProtoReflect.Descriptor instead. +func (*BurnerUpdated) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{6} } -func (x *Unpaused) GetAccount() string { +func (x *BurnerUpdated) GetAddress() string { if x != nil { - return x.Account + return x.Address } return "" } -// OwnershipTransferStarted is emitted whenever an ownership transfer is started. -type OwnershipTransferStarted struct { +func (x *BurnerUpdated) GetPreviousAllowance() string { + if x != nil { + return x.PreviousAllowance + } + return "" +} + +func (x *BurnerUpdated) GetNewAllowance() string { + if x != nil { + return x.NewAllowance + } + return "" +} + +// MinterAdded is emitted whenever a new minter is added. +type MinterAdded struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // old_owner is the address of the old owner account. - OldOwner string `protobuf:"bytes,1,opt,name=old_owner,json=oldOwner,proto3" json:"old_owner,omitempty"` - // new_owner is the address of the new owner account. - NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` + // address is the address of the minter. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // allowance is the allowance of the minter. + Allowance string `protobuf:"bytes,2,opt,name=allowance,proto3" json:"allowance,omitempty"` } -func (x *OwnershipTransferStarted) Reset() { - *x = OwnershipTransferStarted{} +func (x *MinterAdded) Reset() { + *x = MinterAdded{} if protoimpl.UnsafeEnabled { - mi := &file_aura_v1_events_proto_msgTypes[2] + mi := &file_aura_v1_events_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *OwnershipTransferStarted) String() string { +func (x *MinterAdded) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OwnershipTransferStarted) ProtoMessage() {} +func (*MinterAdded) ProtoMessage() {} -// Deprecated: Use OwnershipTransferStarted.ProtoReflect.Descriptor instead. -func (*OwnershipTransferStarted) Descriptor() ([]byte, []int) { - return file_aura_v1_events_proto_rawDescGZIP(), []int{2} +// Deprecated: Use MinterAdded.ProtoReflect.Descriptor instead. +func (*MinterAdded) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{7} } -func (x *OwnershipTransferStarted) GetOldOwner() string { +func (x *MinterAdded) GetAddress() string { if x != nil { - return x.OldOwner + return x.Address } return "" } -func (x *OwnershipTransferStarted) GetNewOwner() string { +func (x *MinterAdded) GetAllowance() string { if x != nil { - return x.NewOwner + return x.Allowance + } + return "" +} + +// MinterRemoved is emitted whenever a minter is removed. +type MinterRemoved struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // address is the address of the minter. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *MinterRemoved) Reset() { + *x = MinterRemoved{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_v1_events_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MinterRemoved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MinterRemoved) ProtoMessage() {} + +// Deprecated: Use MinterRemoved.ProtoReflect.Descriptor instead. +func (*MinterRemoved) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{8} +} + +func (x *MinterRemoved) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +// MinterUpdated is emitted whenever a minter's allowance is set. +type MinterUpdated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // address is the address of the minter. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // previous_allowance is the previous allowance of the minter. + PreviousAllowance string `protobuf:"bytes,2,opt,name=previous_allowance,json=previousAllowance,proto3" json:"previous_allowance,omitempty"` + // new_allowance is the new allowance of the minter. + NewAllowance string `protobuf:"bytes,3,opt,name=new_allowance,json=newAllowance,proto3" json:"new_allowance,omitempty"` +} + +func (x *MinterUpdated) Reset() { + *x = MinterUpdated{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_v1_events_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MinterUpdated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MinterUpdated) ProtoMessage() {} + +// Deprecated: Use MinterUpdated.ProtoReflect.Descriptor instead. +func (*MinterUpdated) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{9} +} + +func (x *MinterUpdated) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *MinterUpdated) GetPreviousAllowance() string { + if x != nil { + return x.PreviousAllowance + } + return "" +} + +func (x *MinterUpdated) GetNewAllowance() string { + if x != nil { + return x.NewAllowance + } + return "" +} + +// PauserAdded is emitted whenever a new pauser is added. +type PauserAdded struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // address is the address of the pauser. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *PauserAdded) Reset() { + *x = PauserAdded{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_v1_events_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PauserAdded) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PauserAdded) ProtoMessage() {} + +// Deprecated: Use PauserAdded.ProtoReflect.Descriptor instead. +func (*PauserAdded) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{10} +} + +func (x *PauserAdded) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +// PauserRemoved is emitted whenever a pauser is removed. +type PauserRemoved struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // address is the address of the pauser. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *PauserRemoved) Reset() { + *x = PauserRemoved{} + if protoimpl.UnsafeEnabled { + mi := &file_aura_v1_events_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PauserRemoved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PauserRemoved) ProtoMessage() {} + +// Deprecated: Use PauserRemoved.ProtoReflect.Descriptor instead. +func (*PauserRemoved) Descriptor() ([]byte, []int) { + return file_aura_v1_events_proto_rawDescGZIP(), []int{11} +} + +func (x *PauserRemoved) GetAddress() string { + if x != nil { + return x.Address } return "" } @@ -1473,27 +6099,106 @@ var File_aura_v1_events_proto protoreflect.FileDescriptor var file_aura_v1_events_proto_rawDesc = []byte{ 0x0a, 0x14, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x61, 0x75, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x22, - 0x22, 0x0a, 0x06, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x22, 0x24, 0x0a, 0x08, 0x55, 0x6e, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x12, - 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x54, 0x0a, 0x18, 0x4f, 0x77, 0x6e, - 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, - 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6c, 0x64, 0x5f, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6c, 0x64, 0x4f, 0x77, 0x6e, - 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x42, - 0x88, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x75, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x42, - 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, - 0x2d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x72, 0x61, 0x76, 0x31, 0xa2, - 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x41, 0x75, 0x72, 0x61, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x07, 0x41, 0x75, 0x72, 0x61, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13, 0x41, 0x75, 0x72, 0x61, - 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x08, 0x41, 0x75, 0x72, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x61, 0x75, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x1a, + 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 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, 0x3c, 0x0a, 0x06, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 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, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3e, + 0x0a, 0x08, 0x55, 0x6e, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 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, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x92, + 0x01, 0x0a, 0x18, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x3f, 0x0a, 0x0e, 0x70, + 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 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, 0x0d, 0x70, + 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x09, + 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 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, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x22, 0x8e, 0x01, 0x0a, 0x14, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, + 0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x12, 0x3f, 0x0a, 0x0e, + 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, + 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, 0x0d, + 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x35, 0x0a, + 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 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, 0x4f, + 0x77, 0x6e, 0x65, 0x72, 0x22, 0x7e, 0x0a, 0x0b, 0x42, 0x75, 0x72, 0x6e, 0x65, 0x72, 0x41, 0x64, + 0x64, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, + 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, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x77, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x77, + 0x61, 0x6e, 0x63, 0x65, 0x22, 0x43, 0x0a, 0x0d, 0x42, 0x75, 0x72, 0x6e, 0x65, 0x72, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 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, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd5, 0x01, 0x0a, 0x0d, 0x42, 0x75, + 0x72, 0x6e, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 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, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x4c, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, + 0x77, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x11, 0x70, 0x72, 0x65, 0x76, + 0x69, 0x6f, 0x75, 0x73, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x42, 0x0a, + 0x0d, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x49, 0x6e, 0x74, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, + 0x65, 0x22, 0x7e, 0x0a, 0x0b, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x65, 0x64, + 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 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, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, + 0x65, 0x22, 0x43, 0x0a, 0x0d, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 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, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd5, 0x01, 0x0a, 0x0d, 0x4d, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x01, 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, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4c, 0x0a, 0x12, + 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, + 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x11, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, + 0x73, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x6e, 0x65, + 0x77, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x1d, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, + 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x41, + 0x0a, 0x0b, 0x50, 0x61, 0x75, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x32, 0x0a, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 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, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x22, 0x43, 0x0a, 0x0d, 0x50, 0x61, 0x75, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 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, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x88, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x61, + 0x75, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x61, + 0x75, 0x72, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x75, 0x72, 0x61, 0x2f, 0x76, 0x31, 0x3b, + 0x61, 0x75, 0x72, 0x61, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x41, + 0x75, 0x72, 0x61, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x41, 0x75, 0x72, 0x61, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x13, 0x41, 0x75, 0x72, 0x61, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x41, 0x75, 0x72, 0x61, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1508,11 +6213,20 @@ func file_aura_v1_events_proto_rawDescGZIP() []byte { return file_aura_v1_events_proto_rawDescData } -var file_aura_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_aura_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_aura_v1_events_proto_goTypes = []interface{}{ (*Paused)(nil), // 0: aura.v1.Paused (*Unpaused)(nil), // 1: aura.v1.Unpaused (*OwnershipTransferStarted)(nil), // 2: aura.v1.OwnershipTransferStarted + (*OwnershipTransferred)(nil), // 3: aura.v1.OwnershipTransferred + (*BurnerAdded)(nil), // 4: aura.v1.BurnerAdded + (*BurnerRemoved)(nil), // 5: aura.v1.BurnerRemoved + (*BurnerUpdated)(nil), // 6: aura.v1.BurnerUpdated + (*MinterAdded)(nil), // 7: aura.v1.MinterAdded + (*MinterRemoved)(nil), // 8: aura.v1.MinterRemoved + (*MinterUpdated)(nil), // 9: aura.v1.MinterUpdated + (*PauserAdded)(nil), // 10: aura.v1.PauserAdded + (*PauserRemoved)(nil), // 11: aura.v1.PauserRemoved } var file_aura_v1_events_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type @@ -1564,6 +6278,114 @@ func file_aura_v1_events_proto_init() { return nil } } + file_aura_v1_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OwnershipTransferred); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aura_v1_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BurnerAdded); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aura_v1_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BurnerRemoved); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aura_v1_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BurnerUpdated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aura_v1_events_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MinterAdded); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aura_v1_events_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MinterRemoved); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aura_v1_events_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MinterUpdated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aura_v1_events_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PauserAdded); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aura_v1_events_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PauserRemoved); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -1571,7 +6393,7 @@ func file_aura_v1_events_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_aura_v1_events_proto_rawDesc, NumEnums: 0, - NumMessages: 3, + NumMessages: 12, NumExtensions: 0, NumServices: 0, }, diff --git a/proto/aura/blocklist/v1/events.proto b/proto/aura/blocklist/v1/events.proto index f817041..1c2a8fd 100644 --- a/proto/aura/blocklist/v1/events.proto +++ b/proto/aura/blocklist/v1/events.proto @@ -2,14 +2,26 @@ syntax = "proto3"; package aura.blocklist.v1; +import "cosmos_proto/cosmos.proto"; + option go_package = "github.com/noble-assets/aura/x/aura/types/blocklist"; // OwnershipTransferStarted is emitted whenever an ownership transfer is started. message OwnershipTransferStarted { - // old_owner is the address of the old owner account. - string old_owner = 1; - // new_owner is the address of the new owner account. - string new_owner = 2; + // previous_owner is the address of the previous owner. + string previous_owner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // new_owner is the address of the new owner. + string new_owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// OwnershipTransferStarted is emitted whenever an ownership transfer is finalized. +message OwnershipTransferred { + // previous_owner is the address of the previous owner. + string previous_owner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // new_owner is the address of the new owner. + string new_owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // BlockedAddressesAdded is emitted whenever addresses are added to the blocklist. diff --git a/proto/aura/blocklist/v1/query.proto b/proto/aura/blocklist/v1/query.proto index 1f53782..0538d14 100644 --- a/proto/aura/blocklist/v1/query.proto +++ b/proto/aura/blocklist/v1/query.proto @@ -16,11 +16,15 @@ service Query { option (google.api.http).get = "/aura/blocklist/v1/owner"; } - // TODO(@john): Implement more blocklist queries. rpc Addresses(QueryAddresses) returns (QueryAddressesResponse) { option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/aura/blocklist/v1/addresses"; } + + rpc Address(QueryAddress) returns (QueryAddressResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/aura/blocklist/v1/address/{address}"; + } } // @@ -43,3 +47,11 @@ message QueryAddressesResponse { repeated string addresses = 1; cosmos.base.query.v1beta1.PageResponse pagination = 2; } + +message QueryAddress { + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +message QueryAddressResponse { + bool blocked = 1 [(amino.dont_omitempty) = true]; +} diff --git a/proto/aura/v1/events.proto b/proto/aura/v1/events.proto index af46451..ee7ef5e 100644 --- a/proto/aura/v1/events.proto +++ b/proto/aura/v1/events.proto @@ -2,24 +2,121 @@ syntax = "proto3"; package aura.v1; +import "cosmos_proto/cosmos.proto"; +import "gogoproto/gogo.proto"; + option go_package = "github.com/noble-assets/aura/x/aura/types"; // Paused is emitted whenever the module is paused. message Paused { // account is the address of the account that paused the module. - string account = 1; + string account = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // Unpaused is emitted whenever the module is unpaused. message Unpaused { // account is the address of the account that unpaused the module. - string account = 1; + string account = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // OwnershipTransferStarted is emitted whenever an ownership transfer is started. message OwnershipTransferStarted { - // old_owner is the address of the old owner account. - string old_owner = 1; - // new_owner is the address of the new owner account. - string new_owner = 2; + // previous_owner is the address of the previous owner. + string previous_owner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // new_owner is the address of the new owner. + string new_owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// OwnershipTransferStarted is emitted whenever an ownership transfer is finalized. +message OwnershipTransferred { + // previous_owner is the address of the previous owner. + string previous_owner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // new_owner is the address of the new owner. + string new_owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// BurnerAdded is emitted whenever a new burner is added. +message BurnerAdded { + // address is the address of the burner. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // allowance is the allowance of the burner. + string allowance = 2 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; +} + +// BurnerRemoved is emitted whenever a burner is removed. +message BurnerRemoved { + // address is the address of the burner. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// BurnerUpdated is emitted whenever a burner's allowance is set. +message BurnerUpdated { + // address is the address of the burner. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // previous_allowance is the previous allowance of the burner. + string previous_allowance = 2 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + + // new_allowance is the new allowance of the burner. + string new_allowance = 3 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; +} + +// MinterAdded is emitted whenever a new minter is added. +message MinterAdded { + // address is the address of the minter. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // allowance is the allowance of the minter. + string allowance = 2 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; +} + +// MinterRemoved is emitted whenever a minter is removed. +message MinterRemoved { + // address is the address of the minter. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MinterUpdated is emitted whenever a minter's allowance is set. +message MinterUpdated { + // address is the address of the minter. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // previous_allowance is the previous allowance of the minter. + string previous_allowance = 2 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + + // new_allowance is the new allowance of the minter. + string new_allowance = 3 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; +} + +// PauserAdded is emitted whenever a new pauser is added. +message PauserAdded { + // address is the address of the pauser. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// PauserRemoved is emitted whenever a pauser is removed. +message PauserRemoved { + // address is the address of the pauser. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } diff --git a/x/aura/keeper/msg_server.go b/x/aura/keeper/msg_server.go index f011659..8b6917d 100644 --- a/x/aura/keeper/msg_server.go +++ b/x/aura/keeper/msg_server.go @@ -55,7 +55,7 @@ func (k msgServer) Burn(ctx context.Context, msg *types.MsgBurn) (*types.MsgBurn return nil, sdkerrors.Wrapf(err, "unable to update burner's allowance") } - // TODO(@john): Do we emit an event here? + // NOTE: The bank module emits an event for us. return &types.MsgBurnResponse{}, nil } @@ -92,7 +92,7 @@ func (k msgServer) Mint(ctx context.Context, msg *types.MsgMint) (*types.MsgMint return nil, sdkerrors.Wrapf(err, "unable to update minter's allowance") } - // TODO(@john): Do we emit an event here? + // NOTE: The bank module emits an event for us. return &types.MsgMintResponse{}, nil } @@ -157,8 +157,8 @@ func (k msgServer) TransferOwnership(ctx context.Context, msg *types.MsgTransfer } return &types.MsgTransferOwnershipResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.OwnershipTransferStarted{ - OldOwner: owner, - NewOwner: msg.NewOwner, + PreviousOwner: owner, + NewOwner: msg.NewOwner, }) } @@ -171,6 +171,8 @@ func (k msgServer) AcceptOwnership(ctx context.Context, msg *types.MsgAcceptOwne return nil, sdkerrors.Wrapf(types.ErrInvalidPendingOwner, "expected %s, got %s", pendingOwner, msg.Signer) } + owner, _ := k.Owner.Get(ctx) + err = k.Owner.Set(ctx, pendingOwner) if err != nil { return nil, errors.New("unable to set owner state") @@ -180,7 +182,10 @@ func (k msgServer) AcceptOwnership(ctx context.Context, msg *types.MsgAcceptOwne return nil, errors.New("unable to remove pending owner state") } - return &types.MsgAcceptOwnershipResponse{}, nil + return &types.MsgAcceptOwnershipResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.OwnershipTransferred{ + PreviousOwner: owner, + NewOwner: msg.Signer, + }) } func (k msgServer) AddBurner(ctx context.Context, msg *types.MsgAddBurner) (*types.MsgAddBurnerResponse, error) { @@ -197,15 +202,19 @@ func (k msgServer) AddBurner(ctx context.Context, msg *types.MsgAddBurner) (*typ return nil, fmt.Errorf("%s is already a burner", msg.Burner) } - // TODO(@john): Validate allowance? + if msg.Allowance.IsNegative() { + return nil, errors.New("allowance cannot be negative") + } err = k.Burners.Set(ctx, msg.Burner, msg.Allowance) if err != nil { return nil, errors.New("unable to set burner in state") } - // TODO(@john): Do we emit an event here? - return &types.MsgAddBurnerResponse{}, nil + return &types.MsgAddBurnerResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.BurnerAdded{ + Address: msg.Burner, + Allowance: msg.Allowance, + }) } func (k msgServer) RemoveBurner(ctx context.Context, msg *types.MsgRemoveBurner) (*types.MsgRemoveBurnerResponse, error) { @@ -227,8 +236,9 @@ func (k msgServer) RemoveBurner(ctx context.Context, msg *types.MsgRemoveBurner) return nil, errors.New("unable to remove burner from state") } - // TODO(@john): Do we emit an event here? - return &types.MsgRemoveBurnerResponse{}, nil + return &types.MsgRemoveBurnerResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.BurnerRemoved{ + Address: msg.Burner, + }) } func (k msgServer) SetBurnerAllowance(ctx context.Context, msg *types.MsgSetBurnerAllowance) (*types.MsgSetBurnerAllowanceResponse, error) { @@ -245,15 +255,22 @@ func (k msgServer) SetBurnerAllowance(ctx context.Context, msg *types.MsgSetBurn return nil, fmt.Errorf("%s is not a burner", msg.Burner) } - // TODO(@john): Validate allowance? + if msg.Allowance.IsNegative() { + return nil, errors.New("allowance cannot be negative") + } + + allowance, _ := k.Burners.Get(ctx, msg.Burner) err = k.Burners.Set(ctx, msg.Burner, msg.Allowance) if err != nil { return nil, errors.New("unable to set burner allowance in state") } - // TODO(@john): Do we emit an event here? - return &types.MsgSetBurnerAllowanceResponse{}, nil + return &types.MsgSetBurnerAllowanceResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.BurnerUpdated{ + Address: msg.Burner, + PreviousAllowance: allowance, + NewAllowance: msg.Allowance, + }) } func (k msgServer) AddMinter(ctx context.Context, msg *types.MsgAddMinter) (*types.MsgAddMinterResponse, error) { @@ -270,15 +287,19 @@ func (k msgServer) AddMinter(ctx context.Context, msg *types.MsgAddMinter) (*typ return nil, fmt.Errorf("%s is already a minter", msg.Minter) } - // TODO(@john): Validate allowance? + if msg.Allowance.IsNegative() { + return nil, errors.New("allowance cannot be negative") + } err = k.Minters.Set(ctx, msg.Minter, msg.Allowance) if err != nil { return nil, errors.New("unable to set minter in state") } - // TODO(@john): Do we emit an event here? - return &types.MsgAddMinterResponse{}, nil + return &types.MsgAddMinterResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.MinterAdded{ + Address: msg.Minter, + Allowance: msg.Allowance, + }) } func (k msgServer) RemoveMinter(ctx context.Context, msg *types.MsgRemoveMinter) (*types.MsgRemoveMinterResponse, error) { @@ -300,8 +321,9 @@ func (k msgServer) RemoveMinter(ctx context.Context, msg *types.MsgRemoveMinter) return nil, errors.New("unable to remove minter from state") } - // TODO(@john): Do we emit an event here? - return &types.MsgRemoveMinterResponse{}, nil + return &types.MsgRemoveMinterResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.MinterRemoved{ + Address: msg.Minter, + }) } func (k msgServer) SetMinterAllowance(ctx context.Context, msg *types.MsgSetMinterAllowance) (*types.MsgSetMinterAllowanceResponse, error) { @@ -318,15 +340,22 @@ func (k msgServer) SetMinterAllowance(ctx context.Context, msg *types.MsgSetMint return nil, fmt.Errorf("%s is not a minter", msg.Minter) } - // TODO(@john): Validate allowance? + if msg.Allowance.IsNegative() { + return nil, errors.New("allowance cannot be negative") + } + + allowance, _ := k.Minters.Get(ctx, msg.Minter) err = k.Minters.Set(ctx, msg.Minter, msg.Allowance) if err != nil { return nil, errors.New("unable to set minter allowance in state") } - // TODO(@john): Do we emit an event here? - return &types.MsgSetMinterAllowanceResponse{}, nil + return &types.MsgSetMinterAllowanceResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.MinterUpdated{ + Address: msg.Minter, + PreviousAllowance: allowance, + NewAllowance: msg.Allowance, + }) } func (k msgServer) AddPauser(ctx context.Context, msg *types.MsgAddPauser) (*types.MsgAddPauserResponse, error) { @@ -348,8 +377,9 @@ func (k msgServer) AddPauser(ctx context.Context, msg *types.MsgAddPauser) (*typ return nil, errors.New("unable to set pauser in state") } - // TODO(@john): Do we emit an event here? - return &types.MsgAddPauserResponse{}, nil + return &types.MsgAddPauserResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.PauserAdded{ + Address: msg.Pauser, + }) } func (k msgServer) RemovePauser(ctx context.Context, msg *types.MsgRemovePauser) (*types.MsgRemovePauserResponse, error) { @@ -371,6 +401,7 @@ func (k msgServer) RemovePauser(ctx context.Context, msg *types.MsgRemovePauser) return nil, errors.New("unable to remove pauser from state") } - // TODO(@john): Do we emit an event here? - return &types.MsgRemovePauserResponse{}, nil + return &types.MsgRemovePauserResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &types.PauserRemoved{ + Address: msg.Pauser, + }) } diff --git a/x/aura/keeper/msg_server_blocklist.go b/x/aura/keeper/msg_server_blocklist.go index 8eb8cc8..4eab594 100644 --- a/x/aura/keeper/msg_server_blocklist.go +++ b/x/aura/keeper/msg_server_blocklist.go @@ -33,8 +33,8 @@ func (k blocklistMsgServer) TransferOwnership(ctx context.Context, msg *blocklis } return &blocklist.MsgTransferOwnershipResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &blocklist.OwnershipTransferStarted{ - OldOwner: owner, - NewOwner: msg.NewOwner, + PreviousOwner: owner, + NewOwner: msg.NewOwner, }) } @@ -47,6 +47,8 @@ func (k blocklistMsgServer) AcceptOwnership(ctx context.Context, msg *blocklist. return nil, sdkerrors.Wrapf(blocklist.ErrInvalidPendingOwner, "expected %s, got %s", pendingOwner, msg.Signer) } + owner, _ := k.BlocklistOwner.Get(ctx) + err = k.BlocklistOwner.Set(ctx, pendingOwner) if err != nil { return nil, errors.New("unable to set blocklist owner state") @@ -56,7 +58,10 @@ func (k blocklistMsgServer) AcceptOwnership(ctx context.Context, msg *blocklist. return nil, errors.New("unable to remove blocklist pending owner state") } - return &blocklist.MsgAcceptOwnershipResponse{}, nil + return &blocklist.MsgAcceptOwnershipResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &blocklist.OwnershipTransferred{ + PreviousOwner: owner, + NewOwner: msg.Signer, + }) } func (k blocklistMsgServer) AddToBlocklist(ctx context.Context, msg *blocklist.MsgAddToBlocklist) (*blocklist.MsgAddToBlocklistResponse, error) { diff --git a/x/aura/keeper/msg_server_test.go b/x/aura/keeper/msg_server_test.go index 6a03b32..569d258 100644 --- a/x/aura/keeper/msg_server_test.go +++ b/x/aura/keeper/msg_server_test.go @@ -318,6 +318,15 @@ func TestAddBurner(t *testing.T) { // ASSERT: The action should've failed due to existing burner. require.ErrorContains(t, err, "is already a burner") + // ACT: Attempt to add burner with invalid allowance. + _, err = server.AddBurner(ctx, &types.MsgAddBurner{ + Signer: owner.Address, + Burner: burner1.Address, + Allowance: ONE.Neg(), + }) + // ASSERT: The action should've failed due to negative allowance. + require.ErrorContains(t, err, "allowance cannot be negative") + // ACT: Attempt to add burner. _, err = server.AddBurner(ctx, &types.MsgAddBurner{ Signer: owner.Address, @@ -412,6 +421,15 @@ func TestSetBurnerAllowance(t *testing.T) { // ARRANGE: Set burner in state. require.NoError(t, k.Burners.Set(ctx, burner.Address, math.ZeroInt())) + // ACT: Attempt to set burner allowance with invalid allowance. + _, err = server.SetBurnerAllowance(ctx, &types.MsgSetBurnerAllowance{ + Signer: owner.Address, + Burner: burner.Address, + Allowance: ONE.Neg(), + }) + // ASSERT: The action should've failed due to negative allowance. + require.ErrorContains(t, err, "allowance cannot be negative") + // ACT: Attempt to set burner allowance. _, err = server.SetBurnerAllowance(ctx, &types.MsgSetBurnerAllowance{ Signer: owner.Address, @@ -458,6 +476,15 @@ func TestAddMinter(t *testing.T) { // ASSERT: The action should've failed due to existing minter. require.ErrorContains(t, err, "is already a minter") + // ACT: Attempt to add minter with invalid allowance. + _, err = server.AddMinter(ctx, &types.MsgAddMinter{ + Signer: owner.Address, + Minter: minter1.Address, + Allowance: ONE.Neg(), + }) + // ASSERT: The action should've failed due to negative allowance. + require.ErrorContains(t, err, "allowance cannot be negative") + // ACT: Attempt to add minter. _, err = server.AddMinter(ctx, &types.MsgAddMinter{ Signer: owner.Address, @@ -552,6 +579,15 @@ func TestSetMinterAllowance(t *testing.T) { // ARRANGE: Set minters in state. require.NoError(t, k.Minters.Set(ctx, minter.Address, math.ZeroInt())) + // ACT: Attempt to set minter allowance with invalid allowance. + _, err = server.SetMinterAllowance(ctx, &types.MsgSetMinterAllowance{ + Signer: owner.Address, + Minter: minter.Address, + Allowance: ONE.Neg(), + }) + // ASSERT: The action should've failed due to negative allowance. + require.ErrorContains(t, err, "allowance cannot be negative") + // ACT: Attempt to set minter allowance. _, err = server.SetMinterAllowance(ctx, &types.MsgSetMinterAllowance{ Signer: owner.Address, diff --git a/x/aura/keeper/query_server_blocklist.go b/x/aura/keeper/query_server_blocklist.go index 250e37a..ceededa 100644 --- a/x/aura/keeper/query_server_blocklist.go +++ b/x/aura/keeper/query_server_blocklist.go @@ -3,7 +3,8 @@ package keeper import ( "context" - "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" + errorstypes "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/types/query" "github.com/noble-assets/aura/x/aura/types/blocklist" ) @@ -20,10 +21,10 @@ func NewBlocklistQueryServer(keeper *Keeper) blocklist.QueryServer { func (k blocklistQueryServer) Owner(ctx context.Context, req *blocklist.QueryOwner) (*blocklist.QueryOwnerResponse, error) { if req == nil { - return nil, errors.ErrInvalidRequest + return nil, errorstypes.ErrInvalidRequest } - owner, err := k.Keeper.BlocklistOwner.Get(ctx) + owner, err := k.BlocklistOwner.Get(ctx) pendingOwner, _ := k.BlocklistPendingOwner.Get(ctx) return &blocklist.QueryOwnerResponse{ @@ -34,7 +35,7 @@ func (k blocklistQueryServer) Owner(ctx context.Context, req *blocklist.QueryOwn func (k blocklistQueryServer) Addresses(ctx context.Context, req *blocklist.QueryAddresses) (*blocklist.QueryAddressesResponse, error) { if req == nil { - return nil, errors.ErrInvalidRequest + return nil, errorstypes.ErrInvalidRequest } addresses, pagination, err := query.CollectionPaginate( @@ -49,3 +50,17 @@ func (k blocklistQueryServer) Addresses(ctx context.Context, req *blocklist.Quer Pagination: pagination, }, err } + +func (k blocklistQueryServer) Address(ctx context.Context, req *blocklist.QueryAddress) (*blocklist.QueryAddressResponse, error) { + if req == nil { + return nil, errorstypes.ErrInvalidRequest + } + + address, err := k.accountKeeper.AddressCodec().StringToBytes(req.Address) + if err != nil { + return nil, errors.Wrapf(err, "unable to decode address %s", req.Address) + } + + blocked, err := k.BlockedAddresses.Has(ctx, address) + return &blocklist.QueryAddressResponse{Blocked: blocked}, err +} diff --git a/x/aura/keeper/query_server_blocklist_test.go b/x/aura/keeper/query_server_blocklist_test.go index 52b8cc3..b43ce2f 100644 --- a/x/aura/keeper/query_server_blocklist_test.go +++ b/x/aura/keeper/query_server_blocklist_test.go @@ -79,3 +79,40 @@ func TestBlocklistAddressesQuery(t *testing.T) { require.Contains(t, res.Addresses, user1.Address) require.Contains(t, res.Addresses, user2.Address) } + +func TestBlocklistAddressQuery(t *testing.T) { + k, ctx := mocks.AuraKeeper(t) + server := keeper.NewBlocklistQueryServer(k) + + // ACT: Attempt to query blocked state with invalid request. + _, err := server.Address(ctx, nil) + // ASSERT: The query should've failed due to invalid request. + require.ErrorContains(t, err, errors.ErrInvalidRequest.Error()) + + // ACT: Attempt to query blocked state with invalid address. + _, err = server.Address(ctx, &blocklist.QueryAddress{ + Address: "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn", + }) + // ASSERT: The action should've failed due to invalid address. + require.ErrorContains(t, err, "unable to decode address") + + // ACT: Attempt to query blocked state of unblocked address. + res, err := server.Address(ctx, &blocklist.QueryAddress{ + Address: utils.TestAccount().Address, + }) + // ASSERT: The query should've succeeded. + require.NoError(t, err) + require.False(t, res.Blocked) + + // ARRANGE: Set blocklist address in state. + user := utils.TestAccount() + require.NoError(t, k.BlockedAddresses.Set(ctx, user.Bytes, true)) + + // ACT: Attempt to query blocked state of blocked address. + res, err = server.Address(ctx, &blocklist.QueryAddress{ + Address: user.Address, + }) + // ASSERT: The query should've succeeded. + require.NoError(t, err) + require.True(t, res.Blocked) +} diff --git a/x/aura/module.go b/x/aura/module.go index 6240495..c2f2670 100644 --- a/x/aura/module.go +++ b/x/aura/module.go @@ -254,14 +254,14 @@ func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Query: &autocliv1.ServiceCommandDescriptor{ Service: aurav1.Query_ServiceDesc.ServiceName, RpcCommandOptions: []*autocliv1.RpcCommandOptions{ - // NOTE(@john): Queries are simple, so no need to configure. + // NOTE: Queries are simple, so no need to configure. }, SubCommands: map[string]*autocliv1.ServiceCommandDescriptor{ "blocklist": { Service: blocklistv1.Query_ServiceDesc.ServiceName, Short: "Querying commands for the blocklist submodule", RpcCommandOptions: []*autocliv1.RpcCommandOptions{ - // NOTE(@john): Queries are simple, so no need to configure. + // NOTE: Queries are simple, so no need to configure. }, }, }, diff --git a/x/aura/spec/02_messages.md b/x/aura/spec/02_messages.md index db01891..abdc5c9 100644 --- a/x/aura/spec/02_messages.md +++ b/x/aura/spec/02_messages.md @@ -266,7 +266,7 @@ This message takes no arguments. ### Events Emitted -This message emits no events. +- [`aura.v1.OwnershipTransferred`](./03_events.md#ownershiptransferred) ## Add Burner @@ -311,7 +311,7 @@ signatures: [] ### Events Emitted -This message emits no events. +- [`aura.v1.BurnerAdded`](./03_events.md#burneradded) ## Remove Burner @@ -354,7 +354,7 @@ signatures: [] ### Events Emitted -This message emits no events. +- [`aura.v1.BurnerRemoved`](./03_events.md#burnerremoved) ## Set Burner Allowance @@ -376,7 +376,7 @@ body: memo: "" messages: - '@type': /aura.v1.MsgSetBurnerAllowance - allowance: "0" + allowance: "1000000000000000000" burner: noble1burner signer: noble1signer non_critical_extension_options: [] @@ -399,7 +399,7 @@ signatures: [] ### Events Emitted -This message emits no events. +- [`aura.v1.BurnerUpdated`](./03_events.md#burnerupdated) ## Add Minter @@ -444,7 +444,7 @@ signatures: [] ### Events Emitted -This message emits no events. +- [`aura.v1.MinterAdded`](./03_events.md#minteradded) ## Remove Minter @@ -487,7 +487,7 @@ signatures: [] ### Events Emitted -This message emits no events. +- [`aura.v1.MinterRemoved`](./03_events.md#minterremoved) ## Set Minter Allowance @@ -509,7 +509,7 @@ body: memo: "" messages: - '@type': /aura.v1.MsgSetMinterAllowance - allowance: "0" + allowance: "1000000000000000000" minter: noble1minter signer: noble1signer non_critical_extension_options: [] @@ -532,7 +532,7 @@ signatures: [] ### Events Emitted -This message emits no events. +- [`aura.v1.MinterUpdated`](./03_events.md#minterupdated) ## Add Pauser @@ -575,7 +575,7 @@ signatures: [] ### Events Emitted -This message emits no events. +- [`aura.v1.PauserAdded`](./03_events.md#pauseradded) ## Remove Pauser @@ -618,4 +618,4 @@ signatures: [] ### Events Emitted -This message emits no events. +- [`aura.v1.PauserRemoved`](./03_events.md#pauserremoved) diff --git a/x/aura/spec/02_messages_blocklist.md b/x/aura/spec/02_messages_blocklist.md index 2fbafcd..35fe7ec 100644 --- a/x/aura/spec/02_messages_blocklist.md +++ b/x/aura/spec/02_messages_blocklist.md @@ -41,7 +41,7 @@ signatures: [] ### Events Emitted -- [`OwnershipTransferStarted`](./03_events_blocklist#ownershiptransferstarted) +- [`aura.blocklist.v1.OwnershipTransferStarted`](./03_events_blocklist#ownershiptransferstarted) ## Accept Ownership @@ -88,7 +88,7 @@ This message takes no arguments. ### Events Emitted -This message emits no events. +- [`aura.blocklist.v1.OwnershipTransferred`](./03_events_blocklist.md#ownershiptransferred) ## Add To Blocklist @@ -134,7 +134,7 @@ signatures: [] ### Events Emitted -- [`BlockedAddressesAdded`](./03_events_blocklist#blockedaddressesadded) +- [`aura.blocklist.v1.BlockedAddressesAdded`](./03_events_blocklist#blockedaddressesadded) ## Remove From Blocklist @@ -180,4 +180,4 @@ signatures: [] ### Events Emitted -- [`BlockedAddressesRemoved`](./03_events_blocklist#blockedaddressesremoved) +- [`aura.blocklist.v1.BlockedAddressesRemoved`](./03_events_blocklist#blockedaddressesremoved) diff --git a/x/aura/spec/03_events.md b/x/aura/spec/03_events.md index acd8160..bba47fb 100644 --- a/x/aura/spec/03_events.md +++ b/x/aura/spec/03_events.md @@ -40,7 +40,7 @@ This event is emitted by the following transactions: ## OwnershipTransferStarted -This event is emitted when an ownership transfer process is started. +This event is emitted when an ownership transfer is started. ```shell - attributes: @@ -48,7 +48,7 @@ This event is emitted when an ownership transfer process is started. key: new_owner value: '"noble1owner"' - index: true - key: old_owner + key: previous_owner value: '"noble1signer"' - index: true key: msg_index @@ -59,3 +59,195 @@ This event is emitted when an ownership transfer process is started. This event is emitted by the following transactions: - [`aura.v1.MsgTransferOwnership`](./02_messages.md#transfer-ownership) + +## OwnershipTransferred + +This event is emitted when an ownership transfer is finalized. + +```shell +- attributes: + - index: true + key: new_owner + value: '"noble1owner"' + - index: true + key: previous_owner + value: '"noble1signer"' + - index: true + key: msg_index + value: "0" + type: aura.v1.OwnershipTransferred +``` + +This event is emitted by the following transactions: + +- [`aura.v1.MsgAcceptOwnership`](./02_messages.md#accept-ownership) + +## BurnerAdded + +This event is emitted when a new burner is added. + +```shell +- attributes: + - index: true + key: address + value: '"noble1burner"' + - index: true + key: allowance + value: '"0"' + - index: true + key: msg_index + value: "0" + type: aura.v1.BurnerAdded +``` + +This event is emitted by the following transactions: + +- [`aura.v1.MsgAddBurner`](./02_messages.md#add-burner) + +## BurnerRemoved + +This event is emitted when a burner is removed. + +```shell +- attributes: + - index: true + key: address + value: '"noble1burner"' + - index: true + key: msg_index + value: "0" + type: aura.v1.BurnerRemoved +``` + +This event is emitted by the following transactions: + +- [`aura.v1.MsgRemoveBurner`](./02_messages.md#remove-burner) + +## BurnerUpdated + +This event is emitted when a burner's allowance is updated. + +```shell +- attributes: + - index: true + key: address + value: '"noble1burner"' + - index: true + key: new_allowance + value: '"1000000000000000000"' + - index: true + key: previous_allowance + value: '"0"' + - index: true + key: msg_index + value: "0" + type: aura.v1.BurnerUpdated +``` + +This event is emitted by the following transactions: + +- [`aura.v1.MsgSetBurnerAllowance`](./02_messages.md#set-burner-allowance) + +## MinterAdded + +This event is emitted when a new minter is added. + +```shell +- attributes: + - index: true + key: address + value: '"noble1minter"' + - index: true + key: allowance + value: '"0"' + - index: true + key: msg_index + value: "0" + type: aura.v1.MinterAdded +``` + +This event is emitted by the following transactions: + +- [`aura.v1.MsgAddMinter`](./02_messages.md#add-minter) + +## MinterRemoved + +This event is emitted when a minter is removed. + +```shell +- attributes: + - index: true + key: address + value: '"noble1minter"' + - index: true + key: msg_index + value: "0" + type: aura.v1.MinterRemoved +``` + +This event is emitted by the following transactions: + +- [`aura.v1.MsgRemoveMinter`](./02_messages.md#remove-minter) + +## MinterUpdated + +This event is emitted when a minter's allowance is updated. + +```shell +- attributes: + - index: true + key: address + value: '"noble1minter"' + - index: true + key: new_allowance + value: '"1000000000000000000"' + - index: true + key: previous_allowance + value: '"0"' + - index: true + key: msg_index + value: "0" + type: aura.v1.MinterUpdated +``` + +This event is emitted by the following transactions: + +- [`aura.v1.MsgSetMinterAllowance`](./02_messages.md#set-minter-allowance) + +## PauserAdded + +This event is emitted when a new pauser is added. + +```shell +- attributes: + - index: true + key: address + value: '"noble1pauser"' + - index: true + key: msg_index + value: "0" + type: aura.v1.PauserAdded +``` + +This event is emitted by the following transactions: + +- [`aura.v1.MsgAddPauser`](./02_messages.md#add-pauser) + +## PauserRemoved + +This event is emitted when a pauser is removed. + +```shell +- attributes: + - index: true + key: address + value: '"noble1pauser"' + - index: true + key: msg_index + value: "0" + type: aura.v1.PauserRemoved +``` + +This event is emitted by the following transactions: + +- [`aura.v1.MsgRemovePauser`](./02_messages.md#remove-pauser) diff --git a/x/aura/spec/03_events_blocklist.md b/x/aura/spec/03_events_blocklist.md index cb534b9..105d26a 100644 --- a/x/aura/spec/03_events_blocklist.md +++ b/x/aura/spec/03_events_blocklist.md @@ -2,7 +2,7 @@ ## OwnershipTransferStarted -This event is emitted when an ownership transfer process is started. +This event is emitted when an ownership transfer is started. ```shell - attributes: @@ -10,7 +10,7 @@ This event is emitted when an ownership transfer process is started. key: new_owner value: '"noble1owner"' - index: true - key: old_owner + key: previous_owner value: '"noble1signer"' - index: true key: msg_index @@ -22,6 +22,28 @@ This event is emitted by the following transactions: - [`aura.blocklist.v1.MsgTransferOwnership`](./02_messages_blocklist.md#transfer-ownership) +## OwnershipTransferred + +This event is emitted when an ownership transfer is finalized. + +```shell +- attributes: + - index: true + key: new_owner + value: '"noble1owner"' + - index: true + key: previous_owner + value: '"noble1signer"' + - index: true + key: msg_index + value: "0" + type: aura.blocklist.v1.OwnershipTransferred +``` + +This event is emitted by the following transactions: + +- [`aura.blocklist.v1.MsgAcceptOwnership`](./02_messages_blocklist.md#accept-ownership) + ## BlockedAddressesAdded This event is emitted whenever addresses are added to Aura's blocklist. diff --git a/x/aura/types/blocklist/events.pb.go b/x/aura/types/blocklist/events.pb.go index 67ff6d1..1a4baa1 100644 --- a/x/aura/types/blocklist/events.pb.go +++ b/x/aura/types/blocklist/events.pb.go @@ -5,6 +5,7 @@ package blocklist import ( fmt "fmt" + _ "github.com/cosmos/cosmos-proto" proto "github.com/cosmos/gogoproto/proto" io "io" math "math" @@ -24,9 +25,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // OwnershipTransferStarted is emitted whenever an ownership transfer is started. type OwnershipTransferStarted struct { - // old_owner is the address of the old owner account. - OldOwner string `protobuf:"bytes,1,opt,name=old_owner,json=oldOwner,proto3" json:"old_owner,omitempty"` - // new_owner is the address of the new owner account. + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` } @@ -63,9 +64,9 @@ func (m *OwnershipTransferStarted) XXX_DiscardUnknown() { var xxx_messageInfo_OwnershipTransferStarted proto.InternalMessageInfo -func (m *OwnershipTransferStarted) GetOldOwner() string { +func (m *OwnershipTransferStarted) GetPreviousOwner() string { if m != nil { - return m.OldOwner + return m.PreviousOwner } return "" } @@ -77,6 +78,61 @@ func (m *OwnershipTransferStarted) GetNewOwner() string { return "" } +// OwnershipTransferStarted is emitted whenever an ownership transfer is finalized. +type OwnershipTransferred struct { + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (m *OwnershipTransferred) Reset() { *m = OwnershipTransferred{} } +func (m *OwnershipTransferred) String() string { return proto.CompactTextString(m) } +func (*OwnershipTransferred) ProtoMessage() {} +func (*OwnershipTransferred) Descriptor() ([]byte, []int) { + return fileDescriptor_d01e1c8e4c279093, []int{1} +} +func (m *OwnershipTransferred) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OwnershipTransferred) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OwnershipTransferred.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OwnershipTransferred) XXX_Merge(src proto.Message) { + xxx_messageInfo_OwnershipTransferred.Merge(m, src) +} +func (m *OwnershipTransferred) XXX_Size() int { + return m.Size() +} +func (m *OwnershipTransferred) XXX_DiscardUnknown() { + xxx_messageInfo_OwnershipTransferred.DiscardUnknown(m) +} + +var xxx_messageInfo_OwnershipTransferred proto.InternalMessageInfo + +func (m *OwnershipTransferred) GetPreviousOwner() string { + if m != nil { + return m.PreviousOwner + } + return "" +} + +func (m *OwnershipTransferred) GetNewOwner() string { + if m != nil { + return m.NewOwner + } + return "" +} + // BlockedAddressesAdded is emitted whenever addresses are added to the blocklist. type BlockedAddressesAdded struct { // accounts is the list of addresses that were added to the blocklist. @@ -87,7 +143,7 @@ func (m *BlockedAddressesAdded) Reset() { *m = BlockedAddressesAdded{} } func (m *BlockedAddressesAdded) String() string { return proto.CompactTextString(m) } func (*BlockedAddressesAdded) ProtoMessage() {} func (*BlockedAddressesAdded) Descriptor() ([]byte, []int) { - return fileDescriptor_d01e1c8e4c279093, []int{1} + return fileDescriptor_d01e1c8e4c279093, []int{2} } func (m *BlockedAddressesAdded) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -133,7 +189,7 @@ func (m *BlockedAddressesRemoved) Reset() { *m = BlockedAddressesRemoved func (m *BlockedAddressesRemoved) String() string { return proto.CompactTextString(m) } func (*BlockedAddressesRemoved) ProtoMessage() {} func (*BlockedAddressesRemoved) Descriptor() ([]byte, []int) { - return fileDescriptor_d01e1c8e4c279093, []int{2} + return fileDescriptor_d01e1c8e4c279093, []int{3} } func (m *BlockedAddressesRemoved) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -171,6 +227,7 @@ func (m *BlockedAddressesRemoved) GetAccounts() []string { func init() { proto.RegisterType((*OwnershipTransferStarted)(nil), "aura.blocklist.v1.OwnershipTransferStarted") + proto.RegisterType((*OwnershipTransferred)(nil), "aura.blocklist.v1.OwnershipTransferred") proto.RegisterType((*BlockedAddressesAdded)(nil), "aura.blocklist.v1.BlockedAddressesAdded") proto.RegisterType((*BlockedAddressesRemoved)(nil), "aura.blocklist.v1.BlockedAddressesRemoved") } @@ -178,23 +235,27 @@ func init() { func init() { proto.RegisterFile("aura/blocklist/v1/events.proto", fileDescriptor_d01e1c8e4c279093) } var fileDescriptor_d01e1c8e4c279093 = []byte{ - // 255 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0xd0, 0xcf, 0x4a, 0xc3, 0x40, - 0x10, 0x06, 0xf0, 0xac, 0x82, 0xb4, 0x7b, 0x33, 0x20, 0x06, 0x85, 0xa5, 0xe4, 0xe4, 0xc5, 0x2c, - 0x25, 0xf8, 0x00, 0xed, 0x5d, 0x84, 0xda, 0x93, 0x17, 0xd9, 0x64, 0x47, 0x1b, 0xdc, 0xee, 0x84, - 0x9d, 0x4d, 0xa2, 0x6f, 0xe1, 0x63, 0x79, 0xec, 0xd1, 0xa3, 0x24, 0x2f, 0x22, 0x9b, 0xfa, 0x07, - 0x3c, 0x78, 0x1a, 0x86, 0xdf, 0x7c, 0x0c, 0x7c, 0x5c, 0xa8, 0xc6, 0x29, 0x59, 0x18, 0x2c, 0x9f, - 0x4c, 0x45, 0x5e, 0xb6, 0x73, 0x09, 0x2d, 0x58, 0x4f, 0x59, 0xed, 0xd0, 0x63, 0x7c, 0x1c, 0x3c, - 0xfb, 0xf1, 0xac, 0x9d, 0xa7, 0x6b, 0x9e, 0xdc, 0x74, 0x16, 0x1c, 0x6d, 0xaa, 0x7a, 0xed, 0x94, - 0xa5, 0x07, 0x70, 0xb7, 0x5e, 0x39, 0x0f, 0x3a, 0x3e, 0xe7, 0x53, 0x34, 0xfa, 0x1e, 0x83, 0x27, - 0x6c, 0xc6, 0x2e, 0xa6, 0xab, 0x09, 0x1a, 0x3d, 0xde, 0x07, 0xb4, 0xd0, 0x7d, 0xe1, 0xc1, 0x1e, - 0x2d, 0x74, 0x23, 0xa6, 0x39, 0x3f, 0x59, 0x86, 0x2f, 0xa0, 0x17, 0x5a, 0x3b, 0x20, 0x02, 0x5a, - 0x68, 0x0d, 0x3a, 0x3e, 0xe3, 0x13, 0x55, 0x96, 0xd8, 0x58, 0x4f, 0x09, 0x9b, 0x1d, 0x86, 0xd0, - 0xf7, 0x9e, 0x5e, 0xf1, 0xd3, 0xbf, 0xa1, 0x15, 0x6c, 0xb1, 0xfd, 0x3f, 0xb6, 0xbc, 0x7e, 0xeb, - 0x05, 0xdb, 0xf5, 0x82, 0x7d, 0xf4, 0x82, 0xbd, 0x0e, 0x22, 0xda, 0x0d, 0x22, 0x7a, 0x1f, 0x44, - 0x74, 0x97, 0x3f, 0x56, 0x7e, 0xd3, 0x14, 0x59, 0x89, 0x5b, 0x69, 0xb1, 0x30, 0x70, 0xa9, 0x88, - 0xc0, 0x93, 0x1c, 0x6b, 0x7a, 0xde, 0x0f, 0xff, 0x52, 0x03, 0xfd, 0x76, 0x56, 0x1c, 0x8d, 0x55, - 0xe5, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x4c, 0x03, 0x9f, 0x4c, 0x01, 0x00, 0x00, + // 308 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x92, 0xcf, 0x4a, 0xc3, 0x40, + 0x10, 0x87, 0xbb, 0x0a, 0xd2, 0x2e, 0x28, 0x18, 0x2a, 0xc6, 0x1e, 0x96, 0xd2, 0x53, 0x2f, 0xcd, + 0x52, 0x4a, 0xcf, 0xd2, 0xde, 0x45, 0x68, 0x3d, 0x79, 0x29, 0x9b, 0xec, 0xd8, 0x06, 0xdb, 0xdd, + 0xb0, 0xb3, 0x49, 0xf4, 0x25, 0x44, 0x7c, 0x16, 0x1f, 0xc2, 0x63, 0xf1, 0xe4, 0x51, 0x92, 0x17, + 0x91, 0xfc, 0xb1, 0x82, 0x82, 0x1e, 0x3d, 0x2d, 0xc3, 0x7c, 0xdf, 0x30, 0xec, 0xfc, 0x28, 0x13, + 0xb1, 0x11, 0xdc, 0x5f, 0xeb, 0xe0, 0x76, 0x1d, 0xa2, 0xe5, 0xc9, 0x90, 0x43, 0x02, 0xca, 0xa2, + 0x17, 0x19, 0x6d, 0xb5, 0x73, 0x5c, 0xf4, 0xbd, 0x5d, 0xdf, 0x4b, 0x86, 0x9d, 0xb3, 0x40, 0xe3, + 0x46, 0xe3, 0xa2, 0x04, 0x78, 0x55, 0x54, 0x74, 0xef, 0x89, 0x50, 0xf7, 0x32, 0x55, 0x60, 0x70, + 0x15, 0x46, 0x57, 0x46, 0x28, 0xbc, 0x01, 0x33, 0xb7, 0xc2, 0x58, 0x90, 0xce, 0x39, 0x3d, 0x8a, + 0x0c, 0x24, 0xa1, 0x8e, 0x71, 0xa1, 0x0b, 0xc8, 0x25, 0x5d, 0xd2, 0x6f, 0x4d, 0xdd, 0xd7, 0xe7, + 0x41, 0xbb, 0x1e, 0x33, 0x91, 0xd2, 0x00, 0xe2, 0xdc, 0x9a, 0x50, 0x2d, 0x67, 0x87, 0x9f, 0x7c, + 0x39, 0xd3, 0x19, 0xd3, 0x96, 0x82, 0xb4, 0x76, 0xf7, 0xfe, 0x70, 0x9b, 0x0a, 0xd2, 0x52, 0xeb, + 0x3d, 0x10, 0xda, 0xfe, 0xb1, 0x94, 0xf9, 0xc7, 0x85, 0x46, 0xf4, 0x64, 0x5a, 0x7c, 0x28, 0xc8, + 0x9a, 0x00, 0x9c, 0x48, 0x09, 0xd2, 0xe9, 0xd0, 0xa6, 0x08, 0x02, 0x1d, 0x2b, 0x8b, 0x2e, 0xe9, + 0xee, 0xf7, 0x5b, 0xb3, 0x5d, 0xdd, 0x1b, 0xd3, 0xd3, 0xef, 0xd2, 0x0c, 0x36, 0x3a, 0xf9, 0x5d, + 0x9b, 0x5e, 0xbc, 0x64, 0x8c, 0x6c, 0x33, 0x46, 0xde, 0x33, 0x46, 0x1e, 0x73, 0xd6, 0xd8, 0xe6, + 0xac, 0xf1, 0x96, 0xb3, 0xc6, 0xf5, 0x68, 0x19, 0xda, 0x55, 0xec, 0x7b, 0x81, 0xde, 0x70, 0xa5, + 0xfd, 0x35, 0x0c, 0x04, 0x22, 0x58, 0xe4, 0x65, 0x22, 0xee, 0xaa, 0xc7, 0xde, 0x47, 0x80, 0x5f, + 0xf1, 0xf0, 0x0f, 0xca, 0x3b, 0x8f, 0x3e, 0x02, 0x00, 0x00, 0xff, 0xff, 0x6a, 0x47, 0xca, 0xc5, + 0x37, 0x02, 0x00, 0x00, } func (m *OwnershipTransferStarted) Marshal() (dAtA []byte, err error) { @@ -224,10 +285,47 @@ func (m *OwnershipTransferStarted) MarshalToSizedBuffer(dAtA []byte) (int, error i-- dAtA[i] = 0x12 } - if len(m.OldOwner) > 0 { - i -= len(m.OldOwner) - copy(dAtA[i:], m.OldOwner) - i = encodeVarintEvents(dAtA, i, uint64(len(m.OldOwner))) + if len(m.PreviousOwner) > 0 { + i -= len(m.PreviousOwner) + copy(dAtA[i:], m.PreviousOwner) + i = encodeVarintEvents(dAtA, i, uint64(len(m.PreviousOwner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OwnershipTransferred) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OwnershipTransferred) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OwnershipTransferred) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NewOwner) > 0 { + i -= len(m.NewOwner) + copy(dAtA[i:], m.NewOwner) + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(m.PreviousOwner) > 0 { + i -= len(m.PreviousOwner) + copy(dAtA[i:], m.PreviousOwner) + i = encodeVarintEvents(dAtA, i, uint64(len(m.PreviousOwner))) i-- dAtA[i] = 0xa } @@ -315,7 +413,24 @@ func (m *OwnershipTransferStarted) Size() (n int) { } var l int _ = l - l = len(m.OldOwner) + l = len(m.PreviousOwner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewOwner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *OwnershipTransferred) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PreviousOwner) if l > 0 { n += 1 + l + sovEvents(uint64(l)) } @@ -393,7 +508,121 @@ func (m *OwnershipTransferStarted) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OldOwner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PreviousOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OwnershipTransferred) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OwnershipTransferred: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnershipTransferred: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousOwner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -421,7 +650,7 @@ func (m *OwnershipTransferStarted) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OldOwner = string(dAtA[iNdEx:postIndex]) + m.PreviousOwner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { diff --git a/x/aura/types/blocklist/query.pb.go b/x/aura/types/blocklist/query.pb.go index a61da57..1b6d17d 100644 --- a/x/aura/types/blocklist/query.pb.go +++ b/x/aura/types/blocklist/query.pb.go @@ -215,47 +215,141 @@ func (m *QueryAddressesResponse) GetPagination() *query.PageResponse { return nil } +type QueryAddress struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *QueryAddress) Reset() { *m = QueryAddress{} } +func (m *QueryAddress) String() string { return proto.CompactTextString(m) } +func (*QueryAddress) ProtoMessage() {} +func (*QueryAddress) Descriptor() ([]byte, []int) { + return fileDescriptor_518edfc9f1ab70f2, []int{4} +} +func (m *QueryAddress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAddress.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAddress.Merge(m, src) +} +func (m *QueryAddress) XXX_Size() int { + return m.Size() +} +func (m *QueryAddress) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAddress.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAddress proto.InternalMessageInfo + +func (m *QueryAddress) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type QueryAddressResponse struct { + Blocked bool `protobuf:"varint,1,opt,name=blocked,proto3" json:"blocked,omitempty"` +} + +func (m *QueryAddressResponse) Reset() { *m = QueryAddressResponse{} } +func (m *QueryAddressResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAddressResponse) ProtoMessage() {} +func (*QueryAddressResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_518edfc9f1ab70f2, []int{5} +} +func (m *QueryAddressResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAddressResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAddressResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAddressResponse.Merge(m, src) +} +func (m *QueryAddressResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAddressResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAddressResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAddressResponse proto.InternalMessageInfo + +func (m *QueryAddressResponse) GetBlocked() bool { + if m != nil { + return m.Blocked + } + return false +} + func init() { proto.RegisterType((*QueryOwner)(nil), "aura.blocklist.v1.QueryOwner") proto.RegisterType((*QueryOwnerResponse)(nil), "aura.blocklist.v1.QueryOwnerResponse") proto.RegisterType((*QueryAddresses)(nil), "aura.blocklist.v1.QueryAddresses") proto.RegisterType((*QueryAddressesResponse)(nil), "aura.blocklist.v1.QueryAddressesResponse") + proto.RegisterType((*QueryAddress)(nil), "aura.blocklist.v1.QueryAddress") + proto.RegisterType((*QueryAddressResponse)(nil), "aura.blocklist.v1.QueryAddressResponse") } func init() { proto.RegisterFile("aura/blocklist/v1/query.proto", fileDescriptor_518edfc9f1ab70f2) } var fileDescriptor_518edfc9f1ab70f2 = []byte{ - // 467 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xcf, 0x6e, 0xd3, 0x30, - 0x18, 0xaf, 0x8b, 0x8a, 0x54, 0x33, 0x90, 0x66, 0x21, 0x54, 0x42, 0x1b, 0x8d, 0x4a, 0x83, 0x6d, - 0xd2, 0x6c, 0x65, 0x7b, 0x02, 0x7a, 0x80, 0x13, 0x02, 0xc2, 0x05, 0x71, 0x99, 0x9c, 0xf6, 0x53, - 0xb0, 0x48, 0xed, 0x2c, 0x76, 0x0a, 0x3b, 0x21, 0xa1, 0x1d, 0x76, 0x44, 0xe2, 0x25, 0x38, 0x72, - 0xe0, 0x21, 0x38, 0x4e, 0x70, 0xe1, 0x88, 0x5a, 0x24, 0x5e, 0x03, 0xc5, 0x76, 0x93, 0x4e, 0x63, - 0xdb, 0x25, 0x91, 0xfd, 0xfd, 0xfe, 0xf9, 0x67, 0xe3, 0x01, 0x2f, 0x0b, 0xce, 0x92, 0x4c, 0x8d, - 0xdf, 0x66, 0x42, 0x1b, 0x36, 0x8b, 0xd8, 0x61, 0x09, 0xc5, 0x11, 0xcd, 0x0b, 0x65, 0x14, 0x59, - 0xaf, 0xc6, 0xb4, 0x1e, 0xd3, 0x59, 0x14, 0xac, 0xf3, 0xa9, 0x90, 0x8a, 0xd9, 0xaf, 0x43, 0x05, - 0x3b, 0x63, 0xa5, 0xa7, 0x4a, 0xb3, 0x84, 0x6b, 0x70, 0x74, 0x36, 0x8b, 0x12, 0x30, 0x3c, 0x62, - 0x39, 0x4f, 0x85, 0xe4, 0x46, 0x28, 0xe9, 0xb1, 0xf7, 0x3c, 0x76, 0x09, 0x5b, 0xb5, 0x0b, 0xee, - 0xba, 0xe1, 0x81, 0x5d, 0x31, 0xb7, 0xf0, 0xa3, 0x7e, 0xaa, 0x54, 0x9a, 0x01, 0xe3, 0xb9, 0x60, - 0x5c, 0x4a, 0x65, 0xac, 0xa8, 0x9f, 0x0e, 0xd7, 0x30, 0x7e, 0x51, 0xe9, 0x3c, 0x7b, 0x27, 0xa1, - 0x18, 0x9e, 0x20, 0x4c, 0x9a, 0x65, 0x0c, 0x3a, 0x57, 0x52, 0x03, 0xa1, 0xb8, 0xa3, 0xaa, 0x8d, - 0x1e, 0xda, 0x40, 0x5b, 0xdd, 0x51, 0xef, 0xc7, 0xb7, 0xdd, 0xdb, 0xde, 0xe3, 0xd1, 0x64, 0x52, - 0x80, 0xd6, 0x2f, 0x4d, 0x21, 0x64, 0x1a, 0x3b, 0x18, 0x19, 0xe1, 0x9b, 0x39, 0xc8, 0x89, 0x90, - 0xe9, 0x81, 0xe3, 0xb5, 0x2d, 0x6f, 0x70, 0x11, 0xef, 0xcb, 0xdf, 0xaf, 0x3b, 0x28, 0x5e, 0xf3, - 0x1c, 0x17, 0xe5, 0x15, 0xbe, 0x65, 0x93, 0x78, 0x20, 0x68, 0xf2, 0x18, 0xe3, 0xa6, 0x14, 0x1b, - 0xe5, 0xc6, 0xde, 0x03, 0xea, 0xf5, 0xaa, 0x06, 0xa9, 0x6b, 0xc4, 0x37, 0x48, 0x9f, 0xf3, 0x14, - 0x62, 0x38, 0x2c, 0x41, 0x9b, 0x78, 0x85, 0x39, 0xfc, 0x80, 0xef, 0x9c, 0x55, 0xae, 0xcf, 0xd9, - 0xc7, 0x5d, 0xbe, 0xdc, 0xec, 0xa1, 0x8d, 0x6b, 0x5b, 0xdd, 0xb8, 0xd9, 0x20, 0x4f, 0xce, 0xf8, - 0xb7, 0xad, 0xff, 0xc3, 0x2b, 0xfd, 0x9d, 0xf4, 0x6a, 0x80, 0xbd, 0xe3, 0x36, 0xee, 0xd8, 0x04, - 0xc4, 0xe0, 0x8e, 0x3d, 0x2d, 0x19, 0xd0, 0x73, 0xef, 0x85, 0x36, 0x17, 0x11, 0x6c, 0x5e, 0x3a, - 0x5e, 0x9a, 0x0c, 0x37, 0x4f, 0xaa, 0x22, 0x3f, 0xfe, 0xfc, 0xf3, 0xb9, 0x1d, 0x90, 0x1e, 0x3b, - 0xff, 0x42, 0xdd, 0xf5, 0x1c, 0x23, 0xdc, 0x6d, 0x6a, 0xbd, 0x7f, 0x91, 0x76, 0x0d, 0x09, 0xb6, - 0xaf, 0x84, 0xd4, 0x11, 0xb6, 0x9b, 0x08, 0x21, 0xe9, 0xff, 0x27, 0x42, 0xdd, 0xe7, 0xe8, 0xe9, - 0xf7, 0x79, 0x88, 0x4e, 0xe7, 0x21, 0xfa, 0x3d, 0x0f, 0xd1, 0xa7, 0x45, 0xd8, 0x3a, 0x5d, 0x84, - 0xad, 0x5f, 0x8b, 0xb0, 0xf5, 0x7a, 0x3f, 0x15, 0xe6, 0x4d, 0x99, 0xd0, 0xb1, 0x9a, 0x32, 0xa9, - 0x92, 0x0c, 0x76, 0xb9, 0xd6, 0x60, 0xb4, 0x93, 0x7b, 0xef, 0x7e, 0xe6, 0x28, 0x07, 0xdd, 0x68, - 0x27, 0xd7, 0xed, 0x83, 0xde, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x8e, 0xc9, 0x26, 0xc6, 0x99, - 0x03, 0x00, 0x00, + // 537 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x4f, 0x8b, 0xd3, 0x4e, + 0x18, 0xee, 0x74, 0xe9, 0xaf, 0xbf, 0x8e, 0x55, 0xd8, 0x61, 0x91, 0x1a, 0xdb, 0xec, 0x5a, 0xdc, + 0xbf, 0xb0, 0x33, 0xb4, 0x7b, 0xf0, 0x6c, 0x0e, 0x7a, 0x12, 0x35, 0x5e, 0xc4, 0xcb, 0x32, 0x69, + 0x87, 0x18, 0x6c, 0x67, 0xb2, 0x99, 0x69, 0x75, 0x11, 0x11, 0x44, 0x64, 0x2f, 0x82, 0xe0, 0x97, + 0xf0, 0xe8, 0xc1, 0x0f, 0xe1, 0x71, 0xd1, 0x8b, 0x47, 0x69, 0x05, 0xbf, 0x86, 0x64, 0x66, 0x92, + 0xb4, 0xac, 0x35, 0x97, 0x36, 0xf3, 0xbe, 0xcf, 0xfb, 0x3c, 0x4f, 0x9e, 0xbc, 0x03, 0x3b, 0x74, + 0x92, 0x50, 0x12, 0x8c, 0xc4, 0xe0, 0xd9, 0x28, 0x92, 0x8a, 0x4c, 0x7b, 0xe4, 0x64, 0xc2, 0x92, + 0x53, 0x1c, 0x27, 0x42, 0x09, 0xb4, 0x9e, 0xb6, 0x71, 0xde, 0xc6, 0xd3, 0x9e, 0xb3, 0x4e, 0xc7, + 0x11, 0x17, 0x44, 0xff, 0x1a, 0x94, 0x73, 0x30, 0x10, 0x72, 0x2c, 0x24, 0x09, 0xa8, 0x64, 0x66, + 0x9c, 0x4c, 0x7b, 0x01, 0x53, 0xb4, 0x47, 0x62, 0x1a, 0x46, 0x9c, 0xaa, 0x48, 0x70, 0x8b, 0xbd, + 0x6e, 0xb1, 0x19, 0x6c, 0x51, 0xce, 0xb9, 0x66, 0x9a, 0xc7, 0xfa, 0x44, 0xcc, 0xc1, 0xb6, 0xda, + 0xa1, 0x10, 0xe1, 0x88, 0x11, 0x1a, 0x47, 0x84, 0x72, 0x2e, 0x94, 0x26, 0xb5, 0xdd, 0x6e, 0x13, + 0xc2, 0x87, 0x29, 0xcf, 0xfd, 0xe7, 0x9c, 0x25, 0xdd, 0x33, 0x00, 0x51, 0x71, 0xf4, 0x99, 0x8c, + 0x05, 0x97, 0x0c, 0x61, 0x58, 0x13, 0x69, 0xa1, 0x05, 0xb6, 0xc0, 0x5e, 0xc3, 0x6b, 0x7d, 0xfb, + 0x72, 0xb8, 0x61, 0x35, 0x6e, 0x0f, 0x87, 0x09, 0x93, 0xf2, 0x91, 0x4a, 0x22, 0x1e, 0xfa, 0x06, + 0x86, 0x3c, 0x78, 0x39, 0x66, 0x7c, 0x18, 0xf1, 0xf0, 0xd8, 0xcc, 0x55, 0xf5, 0x5c, 0x67, 0xd5, + 0xdc, 0xa7, 0xdf, 0x9f, 0x0f, 0x80, 0xdf, 0xb4, 0x33, 0xc6, 0xca, 0x63, 0x78, 0x45, 0x3b, 0xb1, + 0x40, 0x26, 0xd1, 0x1d, 0x08, 0x8b, 0x50, 0xb4, 0x95, 0x4b, 0xfd, 0x1d, 0x6c, 0xf9, 0xd2, 0x04, + 0xb1, 0x49, 0xc4, 0x26, 0x88, 0x1f, 0xd0, 0x90, 0xf9, 0xec, 0x64, 0xc2, 0xa4, 0xf2, 0x17, 0x26, + 0xbb, 0xaf, 0xe1, 0xd5, 0x65, 0xe6, 0xfc, 0x3d, 0xdb, 0xb0, 0x41, 0xb3, 0x62, 0x0b, 0x6c, 0xad, + 0xed, 0x35, 0xfc, 0xa2, 0x80, 0xee, 0x2e, 0xe9, 0x57, 0xb5, 0xfe, 0x6e, 0xa9, 0xbe, 0xa1, 0x5e, + 0x32, 0xe0, 0xc1, 0xe6, 0xa2, 0x01, 0xd4, 0x87, 0x75, 0xab, 0x52, 0x1a, 0x70, 0x06, 0xec, 0xde, + 0x82, 0x1b, 0x8b, 0x1c, 0xf9, 0x2b, 0x6c, 0xc2, 0xba, 0x5e, 0x3a, 0x36, 0xd4, 0x5c, 0xff, 0x7b, + 0x35, 0x13, 0x6e, 0x56, 0xed, 0xbf, 0x5f, 0x83, 0x35, 0x3d, 0x89, 0x14, 0xac, 0xe9, 0xa8, 0x51, + 0x07, 0x5f, 0x58, 0x56, 0x5c, 0x6c, 0x81, 0xb3, 0xfd, 0xcf, 0x76, 0xa6, 0xdc, 0xdd, 0x3e, 0x4b, + 0x85, 0xde, 0x7c, 0xff, 0xf5, 0xb1, 0xea, 0xa0, 0x16, 0xb9, 0x78, 0x3d, 0xcc, 0x6e, 0xbc, 0x05, + 0xb0, 0x51, 0x7c, 0xd3, 0x1b, 0xab, 0xb8, 0x73, 0x88, 0xb3, 0x5f, 0x0a, 0xc9, 0x2d, 0xec, 0x17, + 0x16, 0x5c, 0xd4, 0xfe, 0x8b, 0x85, 0xe2, 0x63, 0xbe, 0x03, 0xb0, 0x9e, 0xe5, 0xbf, 0x59, 0xa2, + 0xe0, 0xec, 0x96, 0x00, 0x72, 0x03, 0xbd, 0xc2, 0xc0, 0x0e, 0xba, 0xb9, 0xda, 0x00, 0x79, 0x69, + 0x1f, 0x5e, 0x79, 0xf7, 0xbe, 0xce, 0x5c, 0x70, 0x3e, 0x73, 0xc1, 0xcf, 0x99, 0x0b, 0x3e, 0xcc, + 0xdd, 0xca, 0xf9, 0xdc, 0xad, 0xfc, 0x98, 0xbb, 0x95, 0x27, 0x47, 0x61, 0xa4, 0x9e, 0x4e, 0x02, + 0x3c, 0x10, 0x63, 0xc2, 0x45, 0x30, 0x62, 0x87, 0x54, 0x4a, 0xa6, 0xa4, 0xa1, 0x7d, 0x61, 0xfe, + 0xd4, 0x69, 0xcc, 0x64, 0xa1, 0x11, 0xfc, 0xa7, 0xaf, 0xf5, 0xd1, 0x9f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x98, 0x7e, 0xc0, 0x6e, 0x9f, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -271,8 +365,8 @@ const _ = grpc.SupportPackageIsVersion4 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { Owner(ctx context.Context, in *QueryOwner, opts ...grpc.CallOption) (*QueryOwnerResponse, error) - // TODO(@john): Implement more blocklist queries. Addresses(ctx context.Context, in *QueryAddresses, opts ...grpc.CallOption) (*QueryAddressesResponse, error) + Address(ctx context.Context, in *QueryAddress, opts ...grpc.CallOption) (*QueryAddressResponse, error) } type queryClient struct { @@ -301,11 +395,20 @@ func (c *queryClient) Addresses(ctx context.Context, in *QueryAddresses, opts .. return out, nil } +func (c *queryClient) Address(ctx context.Context, in *QueryAddress, opts ...grpc.CallOption) (*QueryAddressResponse, error) { + out := new(QueryAddressResponse) + err := c.cc.Invoke(ctx, "/aura.blocklist.v1.Query/Address", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { Owner(context.Context, *QueryOwner) (*QueryOwnerResponse, error) - // TODO(@john): Implement more blocklist queries. Addresses(context.Context, *QueryAddresses) (*QueryAddressesResponse, error) + Address(context.Context, *QueryAddress) (*QueryAddressResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -318,6 +421,9 @@ func (*UnimplementedQueryServer) Owner(ctx context.Context, req *QueryOwner) (*Q func (*UnimplementedQueryServer) Addresses(ctx context.Context, req *QueryAddresses) (*QueryAddressesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Addresses not implemented") } +func (*UnimplementedQueryServer) Address(ctx context.Context, req *QueryAddress) (*QueryAddressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Address not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -359,6 +465,24 @@ func _Query_Addresses_Handler(srv interface{}, ctx context.Context, dec func(int return interceptor(ctx, in, info, handler) } +func _Query_Address_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAddress) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Address(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/aura.blocklist.v1.Query/Address", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Address(ctx, req.(*QueryAddress)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "aura.blocklist.v1.Query", HandlerType: (*QueryServer)(nil), @@ -371,6 +495,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "Addresses", Handler: _Query_Addresses_Handler, }, + { + MethodName: "Address", + Handler: _Query_Address_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "aura/blocklist/v1/query.proto", @@ -515,6 +643,69 @@ func (m *QueryAddressesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *QueryAddress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAddress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAddressResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAddressResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Blocked { + i-- + if m.Blocked { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -584,6 +775,31 @@ func (m *QueryAddressesResponse) Size() (n int) { return n } +func (m *QueryAddress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAddressResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Blocked { + n += 2 + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -958,6 +1174,158 @@ func (m *QueryAddressesResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryAddress) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAddress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAddress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAddressResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAddressResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Blocked", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Blocked = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/aura/types/blocklist/query.pb.gw.go b/x/aura/types/blocklist/query.pb.gw.go index 59602e6..1290391 100644 --- a/x/aura/types/blocklist/query.pb.gw.go +++ b/x/aura/types/blocklist/query.pb.gw.go @@ -87,6 +87,60 @@ func local_request_Query_Addresses_0(ctx context.Context, marshaler runtime.Mars } +func request_Query_Address_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAddress + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := client.Address(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Address_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAddress + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := server.Address(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -139,6 +193,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_Address_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Address_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 { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Address_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -220,6 +297,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_Address_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) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Address_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_Address_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -227,10 +324,14 @@ var ( pattern_Query_Owner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"aura", "blocklist", "v1", "owner"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_Addresses_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"aura", "blocklist", "v1", "addresses"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Address_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 3}, []string{"aura", "blocklist", "v1", "address"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( forward_Query_Owner_0 = runtime.ForwardResponseMessage forward_Query_Addresses_0 = runtime.ForwardResponseMessage + + forward_Query_Address_0 = runtime.ForwardResponseMessage ) diff --git a/x/aura/types/events.pb.go b/x/aura/types/events.pb.go index ebee5c8..81fca9a 100644 --- a/x/aura/types/events.pb.go +++ b/x/aura/types/events.pb.go @@ -4,7 +4,10 @@ package types import ( + cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" io "io" math "math" @@ -116,9 +119,9 @@ func (m *Unpaused) GetAccount() string { // OwnershipTransferStarted is emitted whenever an ownership transfer is started. type OwnershipTransferStarted struct { - // old_owner is the address of the old owner account. - OldOwner string `protobuf:"bytes,1,opt,name=old_owner,json=oldOwner,proto3" json:"old_owner,omitempty"` - // new_owner is the address of the new owner account. + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` } @@ -155,9 +158,9 @@ func (m *OwnershipTransferStarted) XXX_DiscardUnknown() { var xxx_messageInfo_OwnershipTransferStarted proto.InternalMessageInfo -func (m *OwnershipTransferStarted) GetOldOwner() string { +func (m *OwnershipTransferStarted) GetPreviousOwner() string { if m != nil { - return m.OldOwner + return m.PreviousOwner } return "" } @@ -169,30 +172,488 @@ func (m *OwnershipTransferStarted) GetNewOwner() string { return "" } +// OwnershipTransferStarted is emitted whenever an ownership transfer is finalized. +type OwnershipTransferred struct { + // previous_owner is the address of the previous owner. + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + // new_owner is the address of the new owner. + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (m *OwnershipTransferred) Reset() { *m = OwnershipTransferred{} } +func (m *OwnershipTransferred) String() string { return proto.CompactTextString(m) } +func (*OwnershipTransferred) ProtoMessage() {} +func (*OwnershipTransferred) Descriptor() ([]byte, []int) { + return fileDescriptor_2e649e32a11ca0c4, []int{3} +} +func (m *OwnershipTransferred) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OwnershipTransferred) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OwnershipTransferred.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OwnershipTransferred) XXX_Merge(src proto.Message) { + xxx_messageInfo_OwnershipTransferred.Merge(m, src) +} +func (m *OwnershipTransferred) XXX_Size() int { + return m.Size() +} +func (m *OwnershipTransferred) XXX_DiscardUnknown() { + xxx_messageInfo_OwnershipTransferred.DiscardUnknown(m) +} + +var xxx_messageInfo_OwnershipTransferred proto.InternalMessageInfo + +func (m *OwnershipTransferred) GetPreviousOwner() string { + if m != nil { + return m.PreviousOwner + } + return "" +} + +func (m *OwnershipTransferred) GetNewOwner() string { + if m != nil { + return m.NewOwner + } + return "" +} + +// BurnerAdded is emitted whenever a new burner is added. +type BurnerAdded struct { + // address is the address of the burner. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // allowance is the allowance of the burner. + Allowance cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=allowance,proto3,customtype=cosmossdk.io/math.Int" json:"allowance"` +} + +func (m *BurnerAdded) Reset() { *m = BurnerAdded{} } +func (m *BurnerAdded) String() string { return proto.CompactTextString(m) } +func (*BurnerAdded) ProtoMessage() {} +func (*BurnerAdded) Descriptor() ([]byte, []int) { + return fileDescriptor_2e649e32a11ca0c4, []int{4} +} +func (m *BurnerAdded) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BurnerAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BurnerAdded.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BurnerAdded) XXX_Merge(src proto.Message) { + xxx_messageInfo_BurnerAdded.Merge(m, src) +} +func (m *BurnerAdded) XXX_Size() int { + return m.Size() +} +func (m *BurnerAdded) XXX_DiscardUnknown() { + xxx_messageInfo_BurnerAdded.DiscardUnknown(m) +} + +var xxx_messageInfo_BurnerAdded proto.InternalMessageInfo + +func (m *BurnerAdded) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// BurnerRemoved is emitted whenever a burner is removed. +type BurnerRemoved struct { + // address is the address of the burner. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *BurnerRemoved) Reset() { *m = BurnerRemoved{} } +func (m *BurnerRemoved) String() string { return proto.CompactTextString(m) } +func (*BurnerRemoved) ProtoMessage() {} +func (*BurnerRemoved) Descriptor() ([]byte, []int) { + return fileDescriptor_2e649e32a11ca0c4, []int{5} +} +func (m *BurnerRemoved) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BurnerRemoved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BurnerRemoved.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BurnerRemoved) XXX_Merge(src proto.Message) { + xxx_messageInfo_BurnerRemoved.Merge(m, src) +} +func (m *BurnerRemoved) XXX_Size() int { + return m.Size() +} +func (m *BurnerRemoved) XXX_DiscardUnknown() { + xxx_messageInfo_BurnerRemoved.DiscardUnknown(m) +} + +var xxx_messageInfo_BurnerRemoved proto.InternalMessageInfo + +func (m *BurnerRemoved) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// BurnerUpdated is emitted whenever a burner's allowance is set. +type BurnerUpdated struct { + // address is the address of the burner. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // previous_allowance is the previous allowance of the burner. + PreviousAllowance cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=previous_allowance,json=previousAllowance,proto3,customtype=cosmossdk.io/math.Int" json:"previous_allowance"` + // new_allowance is the new allowance of the burner. + NewAllowance cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=new_allowance,json=newAllowance,proto3,customtype=cosmossdk.io/math.Int" json:"new_allowance"` +} + +func (m *BurnerUpdated) Reset() { *m = BurnerUpdated{} } +func (m *BurnerUpdated) String() string { return proto.CompactTextString(m) } +func (*BurnerUpdated) ProtoMessage() {} +func (*BurnerUpdated) Descriptor() ([]byte, []int) { + return fileDescriptor_2e649e32a11ca0c4, []int{6} +} +func (m *BurnerUpdated) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BurnerUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BurnerUpdated.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BurnerUpdated) XXX_Merge(src proto.Message) { + xxx_messageInfo_BurnerUpdated.Merge(m, src) +} +func (m *BurnerUpdated) XXX_Size() int { + return m.Size() +} +func (m *BurnerUpdated) XXX_DiscardUnknown() { + xxx_messageInfo_BurnerUpdated.DiscardUnknown(m) +} + +var xxx_messageInfo_BurnerUpdated proto.InternalMessageInfo + +func (m *BurnerUpdated) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// MinterAdded is emitted whenever a new minter is added. +type MinterAdded struct { + // address is the address of the minter. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // allowance is the allowance of the minter. + Allowance cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=allowance,proto3,customtype=cosmossdk.io/math.Int" json:"allowance"` +} + +func (m *MinterAdded) Reset() { *m = MinterAdded{} } +func (m *MinterAdded) String() string { return proto.CompactTextString(m) } +func (*MinterAdded) ProtoMessage() {} +func (*MinterAdded) Descriptor() ([]byte, []int) { + return fileDescriptor_2e649e32a11ca0c4, []int{7} +} +func (m *MinterAdded) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MinterAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MinterAdded.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MinterAdded) XXX_Merge(src proto.Message) { + xxx_messageInfo_MinterAdded.Merge(m, src) +} +func (m *MinterAdded) XXX_Size() int { + return m.Size() +} +func (m *MinterAdded) XXX_DiscardUnknown() { + xxx_messageInfo_MinterAdded.DiscardUnknown(m) +} + +var xxx_messageInfo_MinterAdded proto.InternalMessageInfo + +func (m *MinterAdded) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// MinterRemoved is emitted whenever a minter is removed. +type MinterRemoved struct { + // address is the address of the minter. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *MinterRemoved) Reset() { *m = MinterRemoved{} } +func (m *MinterRemoved) String() string { return proto.CompactTextString(m) } +func (*MinterRemoved) ProtoMessage() {} +func (*MinterRemoved) Descriptor() ([]byte, []int) { + return fileDescriptor_2e649e32a11ca0c4, []int{8} +} +func (m *MinterRemoved) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MinterRemoved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MinterRemoved.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MinterRemoved) XXX_Merge(src proto.Message) { + xxx_messageInfo_MinterRemoved.Merge(m, src) +} +func (m *MinterRemoved) XXX_Size() int { + return m.Size() +} +func (m *MinterRemoved) XXX_DiscardUnknown() { + xxx_messageInfo_MinterRemoved.DiscardUnknown(m) +} + +var xxx_messageInfo_MinterRemoved proto.InternalMessageInfo + +func (m *MinterRemoved) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// MinterUpdated is emitted whenever a minter's allowance is set. +type MinterUpdated struct { + // address is the address of the minter. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // previous_allowance is the previous allowance of the minter. + PreviousAllowance cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=previous_allowance,json=previousAllowance,proto3,customtype=cosmossdk.io/math.Int" json:"previous_allowance"` + // new_allowance is the new allowance of the minter. + NewAllowance cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=new_allowance,json=newAllowance,proto3,customtype=cosmossdk.io/math.Int" json:"new_allowance"` +} + +func (m *MinterUpdated) Reset() { *m = MinterUpdated{} } +func (m *MinterUpdated) String() string { return proto.CompactTextString(m) } +func (*MinterUpdated) ProtoMessage() {} +func (*MinterUpdated) Descriptor() ([]byte, []int) { + return fileDescriptor_2e649e32a11ca0c4, []int{9} +} +func (m *MinterUpdated) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MinterUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MinterUpdated.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MinterUpdated) XXX_Merge(src proto.Message) { + xxx_messageInfo_MinterUpdated.Merge(m, src) +} +func (m *MinterUpdated) XXX_Size() int { + return m.Size() +} +func (m *MinterUpdated) XXX_DiscardUnknown() { + xxx_messageInfo_MinterUpdated.DiscardUnknown(m) +} + +var xxx_messageInfo_MinterUpdated proto.InternalMessageInfo + +func (m *MinterUpdated) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// PauserAdded is emitted whenever a new pauser is added. +type PauserAdded struct { + // address is the address of the pauser. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *PauserAdded) Reset() { *m = PauserAdded{} } +func (m *PauserAdded) String() string { return proto.CompactTextString(m) } +func (*PauserAdded) ProtoMessage() {} +func (*PauserAdded) Descriptor() ([]byte, []int) { + return fileDescriptor_2e649e32a11ca0c4, []int{10} +} +func (m *PauserAdded) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PauserAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PauserAdded.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PauserAdded) XXX_Merge(src proto.Message) { + xxx_messageInfo_PauserAdded.Merge(m, src) +} +func (m *PauserAdded) XXX_Size() int { + return m.Size() +} +func (m *PauserAdded) XXX_DiscardUnknown() { + xxx_messageInfo_PauserAdded.DiscardUnknown(m) +} + +var xxx_messageInfo_PauserAdded proto.InternalMessageInfo + +func (m *PauserAdded) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// PauserRemoved is emitted whenever a pauser is removed. +type PauserRemoved struct { + // address is the address of the pauser. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *PauserRemoved) Reset() { *m = PauserRemoved{} } +func (m *PauserRemoved) String() string { return proto.CompactTextString(m) } +func (*PauserRemoved) ProtoMessage() {} +func (*PauserRemoved) Descriptor() ([]byte, []int) { + return fileDescriptor_2e649e32a11ca0c4, []int{11} +} +func (m *PauserRemoved) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PauserRemoved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PauserRemoved.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PauserRemoved) XXX_Merge(src proto.Message) { + xxx_messageInfo_PauserRemoved.Merge(m, src) +} +func (m *PauserRemoved) XXX_Size() int { + return m.Size() +} +func (m *PauserRemoved) XXX_DiscardUnknown() { + xxx_messageInfo_PauserRemoved.DiscardUnknown(m) +} + +var xxx_messageInfo_PauserRemoved proto.InternalMessageInfo + +func (m *PauserRemoved) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + func init() { proto.RegisterType((*Paused)(nil), "aura.v1.Paused") proto.RegisterType((*Unpaused)(nil), "aura.v1.Unpaused") proto.RegisterType((*OwnershipTransferStarted)(nil), "aura.v1.OwnershipTransferStarted") + proto.RegisterType((*OwnershipTransferred)(nil), "aura.v1.OwnershipTransferred") + proto.RegisterType((*BurnerAdded)(nil), "aura.v1.BurnerAdded") + proto.RegisterType((*BurnerRemoved)(nil), "aura.v1.BurnerRemoved") + proto.RegisterType((*BurnerUpdated)(nil), "aura.v1.BurnerUpdated") + proto.RegisterType((*MinterAdded)(nil), "aura.v1.MinterAdded") + proto.RegisterType((*MinterRemoved)(nil), "aura.v1.MinterRemoved") + proto.RegisterType((*MinterUpdated)(nil), "aura.v1.MinterUpdated") + proto.RegisterType((*PauserAdded)(nil), "aura.v1.PauserAdded") + proto.RegisterType((*PauserRemoved)(nil), "aura.v1.PauserRemoved") } func init() { proto.RegisterFile("aura/v1/events.proto", fileDescriptor_2e649e32a11ca0c4) } var fileDescriptor_2e649e32a11ca0c4 = []byte{ - // 221 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x2c, 0x2d, 0x4a, - 0xd4, 0x2f, 0x33, 0xd4, 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x62, 0x07, 0x89, 0xea, 0x95, 0x19, 0x2a, 0x29, 0x71, 0xb1, 0x05, 0x24, 0x96, 0x16, 0xa7, - 0xa6, 0x08, 0x49, 0x70, 0xb1, 0x27, 0x26, 0x27, 0xe7, 0x97, 0xe6, 0x95, 0x48, 0x30, 0x2a, 0x30, - 0x6a, 0x70, 0x06, 0xc1, 0xb8, 0x4a, 0x2a, 0x5c, 0x1c, 0xa1, 0x79, 0x05, 0x84, 0x54, 0x85, 0x70, - 0x49, 0xf8, 0x97, 0xe7, 0xa5, 0x16, 0x15, 0x67, 0x64, 0x16, 0x84, 0x14, 0x25, 0xe6, 0x15, 0xa7, - 0xa5, 0x16, 0x05, 0x97, 0x24, 0x16, 0x95, 0xa4, 0xa6, 0x08, 0x49, 0x73, 0x71, 0xe6, 0xe7, 0xa4, - 0xc4, 0xe7, 0x83, 0xe4, 0xa1, 0xfa, 0x38, 0xf2, 0x73, 0x52, 0xc0, 0xea, 0x41, 0x92, 0x79, 0xa9, - 0xe5, 0x50, 0x49, 0x26, 0x88, 0x64, 0x5e, 0x6a, 0x39, 0x58, 0xd2, 0xc9, 0xf9, 0xc4, 0x23, 0x39, - 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, - 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x34, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, - 0xf3, 0x73, 0xf5, 0xf3, 0xf2, 0x93, 0x72, 0x52, 0x75, 0x13, 0x8b, 0x8b, 0x53, 0x4b, 0x8a, 0xf5, - 0xc1, 0x1e, 0xae, 0x80, 0x50, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x4f, 0x1b, 0x03, - 0x02, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x7f, 0x68, 0xe5, 0x0c, 0x01, 0x00, 0x00, + // 443 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x94, 0x41, 0x8b, 0xd3, 0x40, + 0x14, 0xc7, 0x33, 0x0a, 0xbb, 0xdb, 0x59, 0x2b, 0x18, 0x22, 0xd4, 0x05, 0xb3, 0x92, 0x93, 0x1e, + 0x36, 0x61, 0x15, 0x4f, 0x8a, 0x92, 0xec, 0x49, 0x50, 0x94, 0xae, 0xbd, 0x78, 0x29, 0xd3, 0xcc, + 0x33, 0x0d, 0x36, 0x33, 0x61, 0x66, 0x92, 0xe8, 0xc5, 0x8f, 0x20, 0xe2, 0x67, 0xf1, 0x43, 0xf4, + 0x58, 0x04, 0x41, 0x3c, 0x14, 0x69, 0xbf, 0x88, 0x24, 0x93, 0xb4, 0x07, 0x0f, 0xad, 0xe9, 0xa1, + 0xb0, 0xa7, 0x64, 0x1e, 0xff, 0xff, 0x6f, 0xde, 0xbc, 0x3f, 0x3c, 0x6c, 0x91, 0x4c, 0x10, 0x2f, + 0x3f, 0xf7, 0x20, 0x07, 0xa6, 0xa4, 0x9b, 0x0a, 0xae, 0xb8, 0x79, 0x58, 0x56, 0xdd, 0xfc, 0xfc, + 0xe4, 0x4e, 0xc8, 0x65, 0xc2, 0xe5, 0xb0, 0x2a, 0x7b, 0xfa, 0xa0, 0x35, 0x27, 0x56, 0xc4, 0x23, + 0xae, 0xeb, 0xe5, 0x9f, 0xae, 0x3a, 0x4f, 0xf1, 0xc1, 0x1b, 0x92, 0x49, 0xa0, 0xe6, 0x43, 0x7c, + 0x48, 0xc2, 0x90, 0x67, 0x4c, 0xf5, 0xd0, 0x3d, 0x74, 0xbf, 0x13, 0xf4, 0x7e, 0x7c, 0x3f, 0xb3, + 0x6a, 0x84, 0x4f, 0xa9, 0x00, 0x29, 0x2f, 0x95, 0x88, 0x59, 0xd4, 0x6f, 0x84, 0xce, 0x33, 0x7c, + 0x34, 0x60, 0x69, 0x7b, 0xff, 0x37, 0x84, 0x7b, 0xaf, 0x0b, 0x06, 0x42, 0x8e, 0xe3, 0xf4, 0xad, + 0x20, 0x4c, 0xbe, 0x07, 0x71, 0xa9, 0x88, 0x50, 0x40, 0xcd, 0xe7, 0xf8, 0x66, 0x2a, 0x20, 0x8f, + 0x79, 0x26, 0x87, 0xbc, 0x14, 0x6d, 0xe4, 0x76, 0x1b, 0x7d, 0xc5, 0x34, 0x1f, 0xe3, 0x0e, 0x83, + 0xa2, 0xf6, 0x5e, 0xdb, 0xe0, 0x3d, 0x62, 0x50, 0x54, 0x36, 0xe7, 0x0b, 0xc2, 0xd6, 0x3f, 0x4d, + 0x89, 0x3d, 0x36, 0xf4, 0x19, 0x1f, 0x07, 0x99, 0x60, 0x20, 0x7c, 0x4a, 0xeb, 0x41, 0x6b, 0xe5, + 0x16, 0x83, 0xd6, 0x47, 0xf3, 0x09, 0xee, 0x90, 0xc9, 0x84, 0x17, 0x84, 0x85, 0x50, 0xdf, 0x7c, + 0x77, 0x3a, 0x3f, 0x35, 0x7e, 0xcf, 0x4f, 0x6f, 0x6b, 0xa7, 0xa4, 0x1f, 0xdc, 0x98, 0x7b, 0x09, + 0x51, 0x63, 0xf7, 0x05, 0x53, 0xfd, 0xb5, 0xde, 0xb9, 0xc0, 0x5d, 0x7d, 0x7f, 0x1f, 0x12, 0x9e, + 0xb7, 0xeb, 0xc0, 0xf9, 0x89, 0x1a, 0xca, 0x20, 0xa5, 0x44, 0xb5, 0x7c, 0xc7, 0x4b, 0x6c, 0xae, + 0x22, 0xf8, 0xcf, 0x07, 0xdd, 0x6a, 0x8c, 0x7e, 0xe3, 0x33, 0x03, 0xdc, 0x2d, 0xf3, 0x58, 0x83, + 0xae, 0x6f, 0x03, 0xba, 0xc1, 0xa0, 0x58, 0x31, 0xca, 0x70, 0x5e, 0xc5, 0x4c, 0xed, 0x33, 0x1c, + 0x7d, 0xff, 0xae, 0xe1, 0x68, 0xca, 0xd5, 0x0a, 0xc7, 0xc7, 0xc7, 0xd5, 0x76, 0x6b, 0x1f, 0x4e, + 0x39, 0x5f, 0x8d, 0xd8, 0x61, 0xbe, 0xc1, 0xc5, 0x74, 0x61, 0xa3, 0xd9, 0xc2, 0x46, 0x7f, 0x16, + 0x36, 0xfa, 0xba, 0xb4, 0x8d, 0xd9, 0xd2, 0x36, 0x7e, 0x2d, 0x6d, 0xe3, 0xdd, 0x83, 0x28, 0x56, + 0xe3, 0x6c, 0xe4, 0x86, 0x3c, 0xf1, 0x18, 0x1f, 0x4d, 0xe0, 0x8c, 0x48, 0x09, 0x4a, 0x7a, 0xd5, + 0x9e, 0xff, 0xa8, 0x3f, 0xea, 0x53, 0x0a, 0x72, 0x74, 0x50, 0x6d, 0xec, 0x47, 0x7f, 0x03, 0x00, + 0x00, 0xff, 0xff, 0x6f, 0x8b, 0xd4, 0xb2, 0x03, 0x06, 0x00, 0x00, } func (m *Paused) Marshal() (dAtA []byte, err error) { @@ -282,26 +743,363 @@ func (m *OwnershipTransferStarted) MarshalToSizedBuffer(dAtA []byte) (int, error i-- dAtA[i] = 0x12 } - if len(m.OldOwner) > 0 { - i -= len(m.OldOwner) - copy(dAtA[i:], m.OldOwner) - i = encodeVarintEvents(dAtA, i, uint64(len(m.OldOwner))) + if len(m.PreviousOwner) > 0 { + i -= len(m.PreviousOwner) + copy(dAtA[i:], m.PreviousOwner) + i = encodeVarintEvents(dAtA, i, uint64(len(m.PreviousOwner))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { - offset -= sovEvents(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *OwnershipTransferred) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil +} + +func (m *OwnershipTransferred) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OwnershipTransferred) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NewOwner) > 0 { + i -= len(m.NewOwner) + copy(dAtA[i:], m.NewOwner) + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(m.PreviousOwner) > 0 { + i -= len(m.PreviousOwner) + copy(dAtA[i:], m.PreviousOwner) + i = encodeVarintEvents(dAtA, i, uint64(len(m.PreviousOwner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BurnerAdded) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BurnerAdded) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BurnerAdded) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Allowance.Size() + i -= size + if _, err := m.Allowance.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BurnerRemoved) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BurnerRemoved) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BurnerRemoved) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BurnerUpdated) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BurnerUpdated) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BurnerUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.NewAllowance.Size() + i -= size + if _, err := m.NewAllowance.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.PreviousAllowance.Size() + i -= size + if _, err := m.PreviousAllowance.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MinterAdded) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MinterAdded) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MinterAdded) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Allowance.Size() + i -= size + if _, err := m.Allowance.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MinterRemoved) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MinterRemoved) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MinterRemoved) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MinterUpdated) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MinterUpdated) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MinterUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.NewAllowance.Size() + i -= size + if _, err := m.NewAllowance.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.PreviousAllowance.Size() + i -= size + if _, err := m.PreviousAllowance.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PauserAdded) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PauserAdded) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PauserAdded) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PauserRemoved) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PauserRemoved) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PauserRemoved) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { + offset -= sovEvents(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base } func (m *Paused) Size() (n int) { if m == nil { @@ -335,24 +1133,1013 @@ func (m *OwnershipTransferStarted) Size() (n int) { } var l int _ = l - l = len(m.OldOwner) + l = len(m.PreviousOwner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewOwner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *OwnershipTransferred) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PreviousOwner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewOwner) if l > 0 { n += 1 + l + sovEvents(uint64(l)) } - l = len(m.NewOwner) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *BurnerAdded) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.Allowance.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *BurnerRemoved) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *BurnerUpdated) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.PreviousAllowance.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.NewAllowance.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *MinterAdded) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.Allowance.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *MinterRemoved) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *MinterUpdated) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.PreviousAllowance.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.NewAllowance.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *PauserAdded) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *PauserRemoved) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func sovEvents(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEvents(x uint64) (n int) { + return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Paused) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Paused: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Paused: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Account = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Unpaused) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Unpaused: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Unpaused: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Account = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OwnershipTransferStarted) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OwnershipTransferStarted: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnershipTransferStarted: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OwnershipTransferred) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OwnershipTransferred: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnershipTransferred: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BurnerAdded) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BurnerAdded: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BurnerAdded: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Allowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Allowance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BurnerRemoved) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BurnerRemoved: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BurnerRemoved: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BurnerUpdated) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BurnerUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BurnerUpdated: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousAllowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PreviousAllowance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewAllowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NewAllowance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n + return nil } +func (m *MinterAdded) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MinterAdded: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MinterAdded: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Allowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Allowance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } -func sovEvents(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEvents(x uint64) (n int) { - return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil } -func (m *Paused) Unmarshal(dAtA []byte) error { +func (m *MinterRemoved) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -375,15 +2162,15 @@ func (m *Paused) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Paused: wiretype end group for non-group") + return fmt.Errorf("proto: MinterRemoved: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Paused: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MinterRemoved: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -411,7 +2198,7 @@ func (m *Paused) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Account = string(dAtA[iNdEx:postIndex]) + m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -434,7 +2221,7 @@ func (m *Paused) Unmarshal(dAtA []byte) error { } return nil } -func (m *Unpaused) Unmarshal(dAtA []byte) error { +func (m *MinterUpdated) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -457,15 +2244,15 @@ func (m *Unpaused) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Unpaused: wiretype end group for non-group") + return fmt.Errorf("proto: MinterUpdated: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Unpaused: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MinterUpdated: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -493,7 +2280,75 @@ func (m *Unpaused) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Account = string(dAtA[iNdEx:postIndex]) + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousAllowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PreviousAllowance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewAllowance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NewAllowance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -516,7 +2371,7 @@ func (m *Unpaused) Unmarshal(dAtA []byte) error { } return nil } -func (m *OwnershipTransferStarted) Unmarshal(dAtA []byte) error { +func (m *PauserAdded) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -539,15 +2394,15 @@ func (m *OwnershipTransferStarted) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: OwnershipTransferStarted: wiretype end group for non-group") + return fmt.Errorf("proto: PauserAdded: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: OwnershipTransferStarted: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PauserAdded: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OldOwner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -575,11 +2430,61 @@ func (m *OwnershipTransferStarted) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OldOwner = string(dAtA[iNdEx:postIndex]) + m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PauserRemoved) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PauserRemoved: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PauserRemoved: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewOwner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -607,7 +2512,7 @@ func (m *OwnershipTransferStarted) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NewOwner = string(dAtA[iNdEx:postIndex]) + m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex