diff --git a/api/ondo/usdy/blocklist/v1/events.pulsar.go b/api/ondo/usdy/blocklist/v1/events.pulsar.go new file mode 100644 index 0000000..1ebed89 --- /dev/null +++ b/api/ondo/usdy/blocklist/v1/events.pulsar.go @@ -0,0 +1,1716 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package blocklistv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_OwnershipTransferStarted protoreflect.MessageDescriptor + fd_OwnershipTransferStarted_old_owner protoreflect.FieldDescriptor + fd_OwnershipTransferStarted_new_owner protoreflect.FieldDescriptor +) + +func init() { + file_ondo_usdy_blocklist_v1_events_proto_init() + md_OwnershipTransferStarted = File_ondo_usdy_blocklist_v1_events_proto.Messages().ByName("OwnershipTransferStarted") + fd_OwnershipTransferStarted_old_owner = md_OwnershipTransferStarted.Fields().ByName("old_owner") + fd_OwnershipTransferStarted_new_owner = md_OwnershipTransferStarted.Fields().ByName("new_owner") +} + +var _ protoreflect.Message = (*fastReflection_OwnershipTransferStarted)(nil) + +type fastReflection_OwnershipTransferStarted OwnershipTransferStarted + +func (x *OwnershipTransferStarted) ProtoReflect() protoreflect.Message { + return (*fastReflection_OwnershipTransferStarted)(x) +} + +func (x *OwnershipTransferStarted) slowProtoReflect() protoreflect.Message { + mi := &file_ondo_usdy_blocklist_v1_events_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_OwnershipTransferStarted_messageType fastReflection_OwnershipTransferStarted_messageType +var _ protoreflect.MessageType = fastReflection_OwnershipTransferStarted_messageType{} + +type fastReflection_OwnershipTransferStarted_messageType struct{} + +func (x fastReflection_OwnershipTransferStarted_messageType) Zero() protoreflect.Message { + return (*fastReflection_OwnershipTransferStarted)(nil) +} +func (x fastReflection_OwnershipTransferStarted_messageType) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferStarted) +} +func (x fastReflection_OwnershipTransferStarted_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferStarted +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OwnershipTransferStarted) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferStarted +} + +// 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_OwnershipTransferStarted) Type() protoreflect.MessageType { + return _fastReflection_OwnershipTransferStarted_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OwnershipTransferStarted) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferStarted) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OwnershipTransferStarted) Interface() protoreflect.ProtoMessage { + return (*OwnershipTransferStarted)(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_OwnershipTransferStarted) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.OldOwner != "" { + value := protoreflect.ValueOfString(x.OldOwner) + if !f(fd_OwnershipTransferStarted_old_owner, value) { + return + } + } + if x.NewOwner != "" { + value := protoreflect.ValueOfString(x.NewOwner) + if !f(fd_OwnershipTransferStarted_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_OwnershipTransferStarted) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.old_owner": + return x.OldOwner != "" + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.new_owner": + return x.NewOwner != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.old_owner": + x.OldOwner = "" + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.new_owner": + x.NewOwner = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.old_owner": + value := x.OldOwner + return protoreflect.ValueOfString(value) + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.new_owner": + value := x.NewOwner + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.old_owner": + x.OldOwner = value.Interface().(string) + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.new_owner": + x.NewOwner = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.old_owner": + panic(fmt.Errorf("field old_owner of message ondo.usdy.blocklist.v1.OwnershipTransferStarted is not mutable")) + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.new_owner": + panic(fmt.Errorf("field new_owner of message ondo.usdy.blocklist.v1.OwnershipTransferStarted is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.old_owner": + return protoreflect.ValueOfString("") + case "ondo.usdy.blocklist.v1.OwnershipTransferStarted.new_owner": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in ondo.usdy.blocklist.v1.OwnershipTransferStarted", 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_OwnershipTransferStarted) 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_OwnershipTransferStarted) 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_OwnershipTransferStarted) 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_OwnershipTransferStarted) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OwnershipTransferStarted) + 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.OldOwner) + 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().(*OwnershipTransferStarted) + 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.OldOwner) > 0 { + i -= len(x.OldOwner) + copy(dAtA[i:], x.OldOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OldOwner))) + 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().(*OwnershipTransferStarted) + 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: OwnershipTransferStarted: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnershipTransferStarted: 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 OldOwner", 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.OldOwner = 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 _ protoreflect.List = (*_BlockedAddressesAdded_1_list)(nil) + +type _BlockedAddressesAdded_1_list struct { + list *[]string +} + +func (x *_BlockedAddressesAdded_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_BlockedAddressesAdded_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_BlockedAddressesAdded_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_BlockedAddressesAdded_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_BlockedAddressesAdded_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message BlockedAddressesAdded at list field Accounts as it is not of Message kind")) +} + +func (x *_BlockedAddressesAdded_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_BlockedAddressesAdded_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_BlockedAddressesAdded_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_BlockedAddressesAdded protoreflect.MessageDescriptor + fd_BlockedAddressesAdded_accounts protoreflect.FieldDescriptor +) + +func init() { + file_ondo_usdy_blocklist_v1_events_proto_init() + md_BlockedAddressesAdded = File_ondo_usdy_blocklist_v1_events_proto.Messages().ByName("BlockedAddressesAdded") + fd_BlockedAddressesAdded_accounts = md_BlockedAddressesAdded.Fields().ByName("accounts") +} + +var _ protoreflect.Message = (*fastReflection_BlockedAddressesAdded)(nil) + +type fastReflection_BlockedAddressesAdded BlockedAddressesAdded + +func (x *BlockedAddressesAdded) ProtoReflect() protoreflect.Message { + return (*fastReflection_BlockedAddressesAdded)(x) +} + +func (x *BlockedAddressesAdded) slowProtoReflect() protoreflect.Message { + mi := &file_ondo_usdy_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_BlockedAddressesAdded_messageType fastReflection_BlockedAddressesAdded_messageType +var _ protoreflect.MessageType = fastReflection_BlockedAddressesAdded_messageType{} + +type fastReflection_BlockedAddressesAdded_messageType struct{} + +func (x fastReflection_BlockedAddressesAdded_messageType) Zero() protoreflect.Message { + return (*fastReflection_BlockedAddressesAdded)(nil) +} +func (x fastReflection_BlockedAddressesAdded_messageType) New() protoreflect.Message { + return new(fastReflection_BlockedAddressesAdded) +} +func (x fastReflection_BlockedAddressesAdded_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BlockedAddressesAdded +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BlockedAddressesAdded) Descriptor() protoreflect.MessageDescriptor { + return md_BlockedAddressesAdded +} + +// 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_BlockedAddressesAdded) Type() protoreflect.MessageType { + return _fastReflection_BlockedAddressesAdded_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BlockedAddressesAdded) New() protoreflect.Message { + return new(fastReflection_BlockedAddressesAdded) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BlockedAddressesAdded) Interface() protoreflect.ProtoMessage { + return (*BlockedAddressesAdded)(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_BlockedAddressesAdded) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Accounts) != 0 { + value := protoreflect.ValueOfList(&_BlockedAddressesAdded_1_list{list: &x.Accounts}) + if !f(fd_BlockedAddressesAdded_accounts, 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_BlockedAddressesAdded) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesAdded.accounts": + return len(x.Accounts) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesAdded")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesAdded 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_BlockedAddressesAdded) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesAdded.accounts": + x.Accounts = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesAdded")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesAdded 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_BlockedAddressesAdded) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesAdded.accounts": + if len(x.Accounts) == 0 { + return protoreflect.ValueOfList(&_BlockedAddressesAdded_1_list{}) + } + listValue := &_BlockedAddressesAdded_1_list{list: &x.Accounts} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesAdded")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesAdded 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_BlockedAddressesAdded) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesAdded.accounts": + lv := value.List() + clv := lv.(*_BlockedAddressesAdded_1_list) + x.Accounts = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesAdded")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesAdded 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_BlockedAddressesAdded) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesAdded.accounts": + if x.Accounts == nil { + x.Accounts = []string{} + } + value := &_BlockedAddressesAdded_1_list{list: &x.Accounts} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesAdded")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesAdded 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_BlockedAddressesAdded) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesAdded.accounts": + list := []string{} + return protoreflect.ValueOfList(&_BlockedAddressesAdded_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesAdded")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesAdded 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_BlockedAddressesAdded) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in ondo.usdy.blocklist.v1.BlockedAddressesAdded", 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_BlockedAddressesAdded) 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_BlockedAddressesAdded) 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_BlockedAddressesAdded) 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_BlockedAddressesAdded) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BlockedAddressesAdded) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Accounts) > 0 { + for _, s := range x.Accounts { + l = len(s) + 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().(*BlockedAddressesAdded) + 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.Accounts) > 0 { + for iNdEx := len(x.Accounts) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Accounts[iNdEx]) + copy(dAtA[i:], x.Accounts[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Accounts[iNdEx]))) + 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().(*BlockedAddressesAdded) + 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: BlockedAddressesAdded: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockedAddressesAdded: 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 Accounts", 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.Accounts = append(x.Accounts, 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 _ protoreflect.List = (*_BlockedAddressesRemoved_1_list)(nil) + +type _BlockedAddressesRemoved_1_list struct { + list *[]string +} + +func (x *_BlockedAddressesRemoved_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_BlockedAddressesRemoved_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_BlockedAddressesRemoved_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_BlockedAddressesRemoved_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_BlockedAddressesRemoved_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message BlockedAddressesRemoved at list field Accounts as it is not of Message kind")) +} + +func (x *_BlockedAddressesRemoved_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_BlockedAddressesRemoved_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_BlockedAddressesRemoved_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_BlockedAddressesRemoved protoreflect.MessageDescriptor + fd_BlockedAddressesRemoved_accounts protoreflect.FieldDescriptor +) + +func init() { + file_ondo_usdy_blocklist_v1_events_proto_init() + md_BlockedAddressesRemoved = File_ondo_usdy_blocklist_v1_events_proto.Messages().ByName("BlockedAddressesRemoved") + fd_BlockedAddressesRemoved_accounts = md_BlockedAddressesRemoved.Fields().ByName("accounts") +} + +var _ protoreflect.Message = (*fastReflection_BlockedAddressesRemoved)(nil) + +type fastReflection_BlockedAddressesRemoved BlockedAddressesRemoved + +func (x *BlockedAddressesRemoved) ProtoReflect() protoreflect.Message { + return (*fastReflection_BlockedAddressesRemoved)(x) +} + +func (x *BlockedAddressesRemoved) slowProtoReflect() protoreflect.Message { + mi := &file_ondo_usdy_blocklist_v1_events_proto_msgTypes[2] + 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_BlockedAddressesRemoved_messageType fastReflection_BlockedAddressesRemoved_messageType +var _ protoreflect.MessageType = fastReflection_BlockedAddressesRemoved_messageType{} + +type fastReflection_BlockedAddressesRemoved_messageType struct{} + +func (x fastReflection_BlockedAddressesRemoved_messageType) Zero() protoreflect.Message { + return (*fastReflection_BlockedAddressesRemoved)(nil) +} +func (x fastReflection_BlockedAddressesRemoved_messageType) New() protoreflect.Message { + return new(fastReflection_BlockedAddressesRemoved) +} +func (x fastReflection_BlockedAddressesRemoved_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BlockedAddressesRemoved +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BlockedAddressesRemoved) Descriptor() protoreflect.MessageDescriptor { + return md_BlockedAddressesRemoved +} + +// 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_BlockedAddressesRemoved) Type() protoreflect.MessageType { + return _fastReflection_BlockedAddressesRemoved_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BlockedAddressesRemoved) New() protoreflect.Message { + return new(fastReflection_BlockedAddressesRemoved) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BlockedAddressesRemoved) Interface() protoreflect.ProtoMessage { + return (*BlockedAddressesRemoved)(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_BlockedAddressesRemoved) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Accounts) != 0 { + value := protoreflect.ValueOfList(&_BlockedAddressesRemoved_1_list{list: &x.Accounts}) + if !f(fd_BlockedAddressesRemoved_accounts, 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_BlockedAddressesRemoved) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesRemoved.accounts": + return len(x.Accounts) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesRemoved")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesRemoved 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_BlockedAddressesRemoved) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesRemoved.accounts": + x.Accounts = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesRemoved")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesRemoved 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_BlockedAddressesRemoved) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesRemoved.accounts": + if len(x.Accounts) == 0 { + return protoreflect.ValueOfList(&_BlockedAddressesRemoved_1_list{}) + } + listValue := &_BlockedAddressesRemoved_1_list{list: &x.Accounts} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesRemoved")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesRemoved 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_BlockedAddressesRemoved) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesRemoved.accounts": + lv := value.List() + clv := lv.(*_BlockedAddressesRemoved_1_list) + x.Accounts = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesRemoved")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesRemoved 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_BlockedAddressesRemoved) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesRemoved.accounts": + if x.Accounts == nil { + x.Accounts = []string{} + } + value := &_BlockedAddressesRemoved_1_list{list: &x.Accounts} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesRemoved")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesRemoved 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_BlockedAddressesRemoved) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.BlockedAddressesRemoved.accounts": + list := []string{} + return protoreflect.ValueOfList(&_BlockedAddressesRemoved_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.BlockedAddressesRemoved")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.BlockedAddressesRemoved 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_BlockedAddressesRemoved) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in ondo.usdy.blocklist.v1.BlockedAddressesRemoved", 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_BlockedAddressesRemoved) 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_BlockedAddressesRemoved) 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_BlockedAddressesRemoved) 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_BlockedAddressesRemoved) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BlockedAddressesRemoved) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Accounts) > 0 { + for _, s := range x.Accounts { + l = len(s) + 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().(*BlockedAddressesRemoved) + 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.Accounts) > 0 { + for iNdEx := len(x.Accounts) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Accounts[iNdEx]) + copy(dAtA[i:], x.Accounts[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Accounts[iNdEx]))) + 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().(*BlockedAddressesRemoved) + 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: BlockedAddressesRemoved: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockedAddressesRemoved: 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 Accounts", 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.Accounts = append(x.Accounts, 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: ondo/usdy/blocklist/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) +) + +// OwnershipTransferStarted is emitted whenever an ownership transfer is started. +type OwnershipTransferStarted 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"` +} + +func (x *OwnershipTransferStarted) Reset() { + *x = OwnershipTransferStarted{} + if protoimpl.UnsafeEnabled { + mi := &file_ondo_usdy_blocklist_v1_events_proto_msgTypes[0] + 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_ondo_usdy_blocklist_v1_events_proto_rawDescGZIP(), []int{0} +} + +func (x *OwnershipTransferStarted) GetOldOwner() string { + if x != nil { + return x.OldOwner + } + return "" +} + +func (x *OwnershipTransferStarted) 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 + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // accounts is the list of addresses that were added to the blocklist. + Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` +} + +func (x *BlockedAddressesAdded) Reset() { + *x = BlockedAddressesAdded{} + if protoimpl.UnsafeEnabled { + mi := &file_ondo_usdy_blocklist_v1_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BlockedAddressesAdded) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BlockedAddressesAdded) ProtoMessage() {} + +// Deprecated: Use BlockedAddressesAdded.ProtoReflect.Descriptor instead. +func (*BlockedAddressesAdded) Descriptor() ([]byte, []int) { + return file_ondo_usdy_blocklist_v1_events_proto_rawDescGZIP(), []int{1} +} + +func (x *BlockedAddressesAdded) GetAccounts() []string { + if x != nil { + return x.Accounts + } + return nil +} + +// BlockedAddressesRemoved is emitted whenever addresses are removed from the blocklist. +type BlockedAddressesRemoved struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // accounts is the list of addresses that were removed from the blocklist. + Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` +} + +func (x *BlockedAddressesRemoved) Reset() { + *x = BlockedAddressesRemoved{} + if protoimpl.UnsafeEnabled { + mi := &file_ondo_usdy_blocklist_v1_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BlockedAddressesRemoved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BlockedAddressesRemoved) ProtoMessage() {} + +// Deprecated: Use BlockedAddressesRemoved.ProtoReflect.Descriptor instead. +func (*BlockedAddressesRemoved) Descriptor() ([]byte, []int) { + return file_ondo_usdy_blocklist_v1_events_proto_rawDescGZIP(), []int{2} +} + +func (x *BlockedAddressesRemoved) GetAccounts() []string { + if x != nil { + return x.Accounts + } + return nil +} + +var File_ondo_usdy_blocklist_v1_events_proto protoreflect.FileDescriptor + +var file_ondo_usdy_blocklist_v1_events_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x6f, 0x6e, 0x64, 0x6f, 0x2f, 0x75, 0x73, 0x64, 0x79, 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, 0x16, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, 0x75, 0x73, 0x64, 0x79, + 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, + 0xe9, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, 0x75, 0x73, 0x64, + 0x79, 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, 0x43, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, + 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x6f, 0x6e, 0x64, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x6f, 0x6e, 0x64, 0x6f, 0x2f, 0x75, 0x73, 0x64, 0x79, 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, 0x4f, 0x55, 0x42, 0xaa, 0x02, 0x16, 0x4f, 0x6e, 0x64, 0x6f, 0x2e, + 0x55, 0x73, 0x64, 0x79, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x16, 0x4f, 0x6e, 0x64, 0x6f, 0x5c, 0x55, 0x73, 0x64, 0x79, 0x5c, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x4f, 0x6e, 0x64, + 0x6f, 0x5c, 0x55, 0x73, 0x64, 0x79, 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, 0x19, 0x4f, 0x6e, 0x64, 0x6f, 0x3a, 0x3a, 0x55, 0x73, 0x64, 0x79, 0x3a, 0x3a, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_ondo_usdy_blocklist_v1_events_proto_rawDescOnce sync.Once + file_ondo_usdy_blocklist_v1_events_proto_rawDescData = file_ondo_usdy_blocklist_v1_events_proto_rawDesc +) + +func file_ondo_usdy_blocklist_v1_events_proto_rawDescGZIP() []byte { + file_ondo_usdy_blocklist_v1_events_proto_rawDescOnce.Do(func() { + file_ondo_usdy_blocklist_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_ondo_usdy_blocklist_v1_events_proto_rawDescData) + }) + return file_ondo_usdy_blocklist_v1_events_proto_rawDescData +} + +var file_ondo_usdy_blocklist_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_ondo_usdy_blocklist_v1_events_proto_goTypes = []interface{}{ + (*OwnershipTransferStarted)(nil), // 0: ondo.usdy.blocklist.v1.OwnershipTransferStarted + (*BlockedAddressesAdded)(nil), // 1: ondo.usdy.blocklist.v1.BlockedAddressesAdded + (*BlockedAddressesRemoved)(nil), // 2: ondo.usdy.blocklist.v1.BlockedAddressesRemoved +} +var file_ondo_usdy_blocklist_v1_events_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_ondo_usdy_blocklist_v1_events_proto_init() } +func file_ondo_usdy_blocklist_v1_events_proto_init() { + if File_ondo_usdy_blocklist_v1_events_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ondo_usdy_blocklist_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OwnershipTransferStarted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ondo_usdy_blocklist_v1_events_proto_msgTypes[1].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_ondo_usdy_blocklist_v1_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockedAddressesRemoved); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ondo_usdy_blocklist_v1_events_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ondo_usdy_blocklist_v1_events_proto_goTypes, + DependencyIndexes: file_ondo_usdy_blocklist_v1_events_proto_depIdxs, + MessageInfos: file_ondo_usdy_blocklist_v1_events_proto_msgTypes, + }.Build() + File_ondo_usdy_blocklist_v1_events_proto = out.File + file_ondo_usdy_blocklist_v1_events_proto_rawDesc = nil + file_ondo_usdy_blocklist_v1_events_proto_goTypes = nil + file_ondo_usdy_blocklist_v1_events_proto_depIdxs = nil +} diff --git a/api/ondo/usdy/blocklist/v1/tx.pulsar.go b/api/ondo/usdy/blocklist/v1/tx.pulsar.go index 42d2e53..f48a8ac 100644 --- a/api/ondo/usdy/blocklist/v1/tx.pulsar.go +++ b/api/ondo/usdy/blocklist/v1/tx.pulsar.go @@ -2,12 +2,3436 @@ package blocklistv1 import ( + _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" + 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" + io "io" reflect "reflect" + sync "sync" ) +var ( + md_MsgTransferOwnership protoreflect.MessageDescriptor + fd_MsgTransferOwnership_signer protoreflect.FieldDescriptor + fd_MsgTransferOwnership_new_owner protoreflect.FieldDescriptor +) + +func init() { + file_ondo_usdy_blocklist_v1_tx_proto_init() + md_MsgTransferOwnership = File_ondo_usdy_blocklist_v1_tx_proto.Messages().ByName("MsgTransferOwnership") + fd_MsgTransferOwnership_signer = md_MsgTransferOwnership.Fields().ByName("signer") + fd_MsgTransferOwnership_new_owner = md_MsgTransferOwnership.Fields().ByName("new_owner") +} + +var _ protoreflect.Message = (*fastReflection_MsgTransferOwnership)(nil) + +type fastReflection_MsgTransferOwnership MsgTransferOwnership + +func (x *MsgTransferOwnership) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgTransferOwnership)(x) +} + +func (x *MsgTransferOwnership) slowProtoReflect() protoreflect.Message { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgTransferOwnership_messageType fastReflection_MsgTransferOwnership_messageType +var _ protoreflect.MessageType = fastReflection_MsgTransferOwnership_messageType{} + +type fastReflection_MsgTransferOwnership_messageType struct{} + +func (x fastReflection_MsgTransferOwnership_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgTransferOwnership)(nil) +} +func (x fastReflection_MsgTransferOwnership_messageType) New() protoreflect.Message { + return new(fastReflection_MsgTransferOwnership) +} +func (x fastReflection_MsgTransferOwnership_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferOwnership +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgTransferOwnership) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferOwnership +} + +// 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_MsgTransferOwnership) Type() protoreflect.MessageType { + return _fastReflection_MsgTransferOwnership_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgTransferOwnership) New() protoreflect.Message { + return new(fastReflection_MsgTransferOwnership) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgTransferOwnership) Interface() protoreflect.ProtoMessage { + return (*MsgTransferOwnership)(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_MsgTransferOwnership) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Signer != "" { + value := protoreflect.ValueOfString(x.Signer) + if !f(fd_MsgTransferOwnership_signer, value) { + return + } + } + if x.NewOwner != "" { + value := protoreflect.ValueOfString(x.NewOwner) + if !f(fd_MsgTransferOwnership_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_MsgTransferOwnership) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.signer": + return x.Signer != "" + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.new_owner": + return x.NewOwner != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnership 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_MsgTransferOwnership) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.signer": + x.Signer = "" + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.new_owner": + x.NewOwner = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnership 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_MsgTransferOwnership) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.signer": + value := x.Signer + return protoreflect.ValueOfString(value) + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.new_owner": + value := x.NewOwner + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnership 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_MsgTransferOwnership) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.signer": + x.Signer = value.Interface().(string) + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.new_owner": + x.NewOwner = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnership 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_MsgTransferOwnership) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.signer": + panic(fmt.Errorf("field signer of message ondo.usdy.blocklist.v1.MsgTransferOwnership is not mutable")) + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.new_owner": + panic(fmt.Errorf("field new_owner of message ondo.usdy.blocklist.v1.MsgTransferOwnership is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnership 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_MsgTransferOwnership) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.signer": + return protoreflect.ValueOfString("") + case "ondo.usdy.blocklist.v1.MsgTransferOwnership.new_owner": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnership 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_MsgTransferOwnership) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in ondo.usdy.blocklist.v1.MsgTransferOwnership", 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_MsgTransferOwnership) 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_MsgTransferOwnership) 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_MsgTransferOwnership) 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_MsgTransferOwnership) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgTransferOwnership) + 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.Signer) + 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().(*MsgTransferOwnership) + 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.Signer) > 0 { + i -= len(x.Signer) + copy(dAtA[i:], x.Signer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signer))) + 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().(*MsgTransferOwnership) + 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: MsgTransferOwnership: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferOwnership: 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 Signer", 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.Signer = 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_MsgTransferOwnershipResponse protoreflect.MessageDescriptor +) + +func init() { + file_ondo_usdy_blocklist_v1_tx_proto_init() + md_MsgTransferOwnershipResponse = File_ondo_usdy_blocklist_v1_tx_proto.Messages().ByName("MsgTransferOwnershipResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgTransferOwnershipResponse)(nil) + +type fastReflection_MsgTransferOwnershipResponse MsgTransferOwnershipResponse + +func (x *MsgTransferOwnershipResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgTransferOwnershipResponse)(x) +} + +func (x *MsgTransferOwnershipResponse) slowProtoReflect() protoreflect.Message { + mi := &file_ondo_usdy_blocklist_v1_tx_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_MsgTransferOwnershipResponse_messageType fastReflection_MsgTransferOwnershipResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgTransferOwnershipResponse_messageType{} + +type fastReflection_MsgTransferOwnershipResponse_messageType struct{} + +func (x fastReflection_MsgTransferOwnershipResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgTransferOwnershipResponse)(nil) +} +func (x fastReflection_MsgTransferOwnershipResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgTransferOwnershipResponse) +} +func (x fastReflection_MsgTransferOwnershipResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferOwnershipResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgTransferOwnershipResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferOwnershipResponse +} + +// 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_MsgTransferOwnershipResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgTransferOwnershipResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgTransferOwnershipResponse) New() protoreflect.Message { + return new(fastReflection_MsgTransferOwnershipResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgTransferOwnershipResponse) Interface() protoreflect.ProtoMessage { + return (*MsgTransferOwnershipResponse)(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_MsgTransferOwnershipResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgTransferOwnershipResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse 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_MsgTransferOwnershipResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse 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_MsgTransferOwnershipResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse 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_MsgTransferOwnershipResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse 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_MsgTransferOwnershipResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse 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_MsgTransferOwnershipResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse 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_MsgTransferOwnershipResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse", 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_MsgTransferOwnershipResponse) 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_MsgTransferOwnershipResponse) 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_MsgTransferOwnershipResponse) 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_MsgTransferOwnershipResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgTransferOwnershipResponse) + 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.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().(*MsgTransferOwnershipResponse) + 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 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().(*MsgTransferOwnershipResponse) + 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: MsgTransferOwnershipResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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_MsgAcceptOwnership protoreflect.MessageDescriptor + fd_MsgAcceptOwnership_signer protoreflect.FieldDescriptor +) + +func init() { + file_ondo_usdy_blocklist_v1_tx_proto_init() + md_MsgAcceptOwnership = File_ondo_usdy_blocklist_v1_tx_proto.Messages().ByName("MsgAcceptOwnership") + fd_MsgAcceptOwnership_signer = md_MsgAcceptOwnership.Fields().ByName("signer") +} + +var _ protoreflect.Message = (*fastReflection_MsgAcceptOwnership)(nil) + +type fastReflection_MsgAcceptOwnership MsgAcceptOwnership + +func (x *MsgAcceptOwnership) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAcceptOwnership)(x) +} + +func (x *MsgAcceptOwnership) slowProtoReflect() protoreflect.Message { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[2] + 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_MsgAcceptOwnership_messageType fastReflection_MsgAcceptOwnership_messageType +var _ protoreflect.MessageType = fastReflection_MsgAcceptOwnership_messageType{} + +type fastReflection_MsgAcceptOwnership_messageType struct{} + +func (x fastReflection_MsgAcceptOwnership_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAcceptOwnership)(nil) +} +func (x fastReflection_MsgAcceptOwnership_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwnership) +} +func (x fastReflection_MsgAcceptOwnership_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwnership +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAcceptOwnership) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwnership +} + +// 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_MsgAcceptOwnership) Type() protoreflect.MessageType { + return _fastReflection_MsgAcceptOwnership_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAcceptOwnership) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwnership) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAcceptOwnership) Interface() protoreflect.ProtoMessage { + return (*MsgAcceptOwnership)(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_MsgAcceptOwnership) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Signer != "" { + value := protoreflect.ValueOfString(x.Signer) + if !f(fd_MsgAcceptOwnership_signer, 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_MsgAcceptOwnership) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgAcceptOwnership.signer": + return x.Signer != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnership 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_MsgAcceptOwnership) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgAcceptOwnership.signer": + x.Signer = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnership 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_MsgAcceptOwnership) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "ondo.usdy.blocklist.v1.MsgAcceptOwnership.signer": + value := x.Signer + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnership 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_MsgAcceptOwnership) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgAcceptOwnership.signer": + x.Signer = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnership 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_MsgAcceptOwnership) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgAcceptOwnership.signer": + panic(fmt.Errorf("field signer of message ondo.usdy.blocklist.v1.MsgAcceptOwnership is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnership 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_MsgAcceptOwnership) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgAcceptOwnership.signer": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnership")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnership 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_MsgAcceptOwnership) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in ondo.usdy.blocklist.v1.MsgAcceptOwnership", 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_MsgAcceptOwnership) 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_MsgAcceptOwnership) 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_MsgAcceptOwnership) 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_MsgAcceptOwnership) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAcceptOwnership) + 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.Signer) + 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().(*MsgAcceptOwnership) + 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.Signer) > 0 { + i -= len(x.Signer) + copy(dAtA[i:], x.Signer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signer))) + 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().(*MsgAcceptOwnership) + 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: MsgAcceptOwnership: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptOwnership: 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 Signer", 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.Signer = 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_MsgAcceptOwnershipResponse protoreflect.MessageDescriptor +) + +func init() { + file_ondo_usdy_blocklist_v1_tx_proto_init() + md_MsgAcceptOwnershipResponse = File_ondo_usdy_blocklist_v1_tx_proto.Messages().ByName("MsgAcceptOwnershipResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgAcceptOwnershipResponse)(nil) + +type fastReflection_MsgAcceptOwnershipResponse MsgAcceptOwnershipResponse + +func (x *MsgAcceptOwnershipResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAcceptOwnershipResponse)(x) +} + +func (x *MsgAcceptOwnershipResponse) slowProtoReflect() protoreflect.Message { + mi := &file_ondo_usdy_blocklist_v1_tx_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_MsgAcceptOwnershipResponse_messageType fastReflection_MsgAcceptOwnershipResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgAcceptOwnershipResponse_messageType{} + +type fastReflection_MsgAcceptOwnershipResponse_messageType struct{} + +func (x fastReflection_MsgAcceptOwnershipResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAcceptOwnershipResponse)(nil) +} +func (x fastReflection_MsgAcceptOwnershipResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwnershipResponse) +} +func (x fastReflection_MsgAcceptOwnershipResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwnershipResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAcceptOwnershipResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwnershipResponse +} + +// 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_MsgAcceptOwnershipResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgAcceptOwnershipResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAcceptOwnershipResponse) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwnershipResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAcceptOwnershipResponse) Interface() protoreflect.ProtoMessage { + return (*MsgAcceptOwnershipResponse)(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_MsgAcceptOwnershipResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgAcceptOwnershipResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse 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_MsgAcceptOwnershipResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse 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_MsgAcceptOwnershipResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse 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_MsgAcceptOwnershipResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse 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_MsgAcceptOwnershipResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse 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_MsgAcceptOwnershipResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse 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_MsgAcceptOwnershipResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse", 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_MsgAcceptOwnershipResponse) 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_MsgAcceptOwnershipResponse) 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_MsgAcceptOwnershipResponse) 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_MsgAcceptOwnershipResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAcceptOwnershipResponse) + 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.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().(*MsgAcceptOwnershipResponse) + 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 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().(*MsgAcceptOwnershipResponse) + 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: MsgAcceptOwnershipResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_MsgAddToBlocklist_2_list)(nil) + +type _MsgAddToBlocklist_2_list struct { + list *[]string +} + +func (x *_MsgAddToBlocklist_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgAddToBlocklist_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_MsgAddToBlocklist_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgAddToBlocklist_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgAddToBlocklist_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgAddToBlocklist at list field Accounts as it is not of Message kind")) +} + +func (x *_MsgAddToBlocklist_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgAddToBlocklist_2_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgAddToBlocklist_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgAddToBlocklist protoreflect.MessageDescriptor + fd_MsgAddToBlocklist_signer protoreflect.FieldDescriptor + fd_MsgAddToBlocklist_accounts protoreflect.FieldDescriptor +) + +func init() { + file_ondo_usdy_blocklist_v1_tx_proto_init() + md_MsgAddToBlocklist = File_ondo_usdy_blocklist_v1_tx_proto.Messages().ByName("MsgAddToBlocklist") + fd_MsgAddToBlocklist_signer = md_MsgAddToBlocklist.Fields().ByName("signer") + fd_MsgAddToBlocklist_accounts = md_MsgAddToBlocklist.Fields().ByName("accounts") +} + +var _ protoreflect.Message = (*fastReflection_MsgAddToBlocklist)(nil) + +type fastReflection_MsgAddToBlocklist MsgAddToBlocklist + +func (x *MsgAddToBlocklist) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAddToBlocklist)(x) +} + +func (x *MsgAddToBlocklist) slowProtoReflect() protoreflect.Message { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgAddToBlocklist_messageType fastReflection_MsgAddToBlocklist_messageType +var _ protoreflect.MessageType = fastReflection_MsgAddToBlocklist_messageType{} + +type fastReflection_MsgAddToBlocklist_messageType struct{} + +func (x fastReflection_MsgAddToBlocklist_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAddToBlocklist)(nil) +} +func (x fastReflection_MsgAddToBlocklist_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAddToBlocklist) +} +func (x fastReflection_MsgAddToBlocklist_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddToBlocklist +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAddToBlocklist) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddToBlocklist +} + +// 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_MsgAddToBlocklist) Type() protoreflect.MessageType { + return _fastReflection_MsgAddToBlocklist_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAddToBlocklist) New() protoreflect.Message { + return new(fastReflection_MsgAddToBlocklist) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAddToBlocklist) Interface() protoreflect.ProtoMessage { + return (*MsgAddToBlocklist)(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_MsgAddToBlocklist) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Signer != "" { + value := protoreflect.ValueOfString(x.Signer) + if !f(fd_MsgAddToBlocklist_signer, value) { + return + } + } + if len(x.Accounts) != 0 { + value := protoreflect.ValueOfList(&_MsgAddToBlocklist_2_list{list: &x.Accounts}) + if !f(fd_MsgAddToBlocklist_accounts, 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_MsgAddToBlocklist) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.signer": + return x.Signer != "" + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.accounts": + return len(x.Accounts) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklist 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_MsgAddToBlocklist) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.signer": + x.Signer = "" + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.accounts": + x.Accounts = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklist 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_MsgAddToBlocklist) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.signer": + value := x.Signer + return protoreflect.ValueOfString(value) + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.accounts": + if len(x.Accounts) == 0 { + return protoreflect.ValueOfList(&_MsgAddToBlocklist_2_list{}) + } + listValue := &_MsgAddToBlocklist_2_list{list: &x.Accounts} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklist 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_MsgAddToBlocklist) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.signer": + x.Signer = value.Interface().(string) + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.accounts": + lv := value.List() + clv := lv.(*_MsgAddToBlocklist_2_list) + x.Accounts = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklist 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_MsgAddToBlocklist) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.accounts": + if x.Accounts == nil { + x.Accounts = []string{} + } + value := &_MsgAddToBlocklist_2_list{list: &x.Accounts} + return protoreflect.ValueOfList(value) + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.signer": + panic(fmt.Errorf("field signer of message ondo.usdy.blocklist.v1.MsgAddToBlocklist is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklist 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_MsgAddToBlocklist) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.signer": + return protoreflect.ValueOfString("") + case "ondo.usdy.blocklist.v1.MsgAddToBlocklist.accounts": + list := []string{} + return protoreflect.ValueOfList(&_MsgAddToBlocklist_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklist 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_MsgAddToBlocklist) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in ondo.usdy.blocklist.v1.MsgAddToBlocklist", 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_MsgAddToBlocklist) 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_MsgAddToBlocklist) 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_MsgAddToBlocklist) 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_MsgAddToBlocklist) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAddToBlocklist) + 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.Signer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Accounts) > 0 { + for _, s := range x.Accounts { + l = len(s) + 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().(*MsgAddToBlocklist) + 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.Accounts) > 0 { + for iNdEx := len(x.Accounts) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Accounts[iNdEx]) + copy(dAtA[i:], x.Accounts[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Accounts[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Signer) > 0 { + i -= len(x.Signer) + copy(dAtA[i:], x.Signer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signer))) + 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().(*MsgAddToBlocklist) + 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: MsgAddToBlocklist: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddToBlocklist: 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 Signer", 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.Signer = 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 Accounts", 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.Accounts = append(x.Accounts, 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_MsgAddToBlocklistResponse protoreflect.MessageDescriptor +) + +func init() { + file_ondo_usdy_blocklist_v1_tx_proto_init() + md_MsgAddToBlocklistResponse = File_ondo_usdy_blocklist_v1_tx_proto.Messages().ByName("MsgAddToBlocklistResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgAddToBlocklistResponse)(nil) + +type fastReflection_MsgAddToBlocklistResponse MsgAddToBlocklistResponse + +func (x *MsgAddToBlocklistResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAddToBlocklistResponse)(x) +} + +func (x *MsgAddToBlocklistResponse) slowProtoReflect() protoreflect.Message { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgAddToBlocklistResponse_messageType fastReflection_MsgAddToBlocklistResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgAddToBlocklistResponse_messageType{} + +type fastReflection_MsgAddToBlocklistResponse_messageType struct{} + +func (x fastReflection_MsgAddToBlocklistResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAddToBlocklistResponse)(nil) +} +func (x fastReflection_MsgAddToBlocklistResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAddToBlocklistResponse) +} +func (x fastReflection_MsgAddToBlocklistResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddToBlocklistResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAddToBlocklistResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddToBlocklistResponse +} + +// 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_MsgAddToBlocklistResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgAddToBlocklistResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAddToBlocklistResponse) New() protoreflect.Message { + return new(fastReflection_MsgAddToBlocklistResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAddToBlocklistResponse) Interface() protoreflect.ProtoMessage { + return (*MsgAddToBlocklistResponse)(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_MsgAddToBlocklistResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgAddToBlocklistResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse 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_MsgAddToBlocklistResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse 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_MsgAddToBlocklistResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse 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_MsgAddToBlocklistResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse 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_MsgAddToBlocklistResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse 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_MsgAddToBlocklistResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse 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_MsgAddToBlocklistResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse", 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_MsgAddToBlocklistResponse) 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_MsgAddToBlocklistResponse) 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_MsgAddToBlocklistResponse) 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_MsgAddToBlocklistResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAddToBlocklistResponse) + 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.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().(*MsgAddToBlocklistResponse) + 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 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().(*MsgAddToBlocklistResponse) + 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: MsgAddToBlocklistResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddToBlocklistResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_MsgRemoveFromBlocklist_2_list)(nil) + +type _MsgRemoveFromBlocklist_2_list struct { + list *[]string +} + +func (x *_MsgRemoveFromBlocklist_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgRemoveFromBlocklist_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_MsgRemoveFromBlocklist_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgRemoveFromBlocklist_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgRemoveFromBlocklist_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgRemoveFromBlocklist at list field Accounts as it is not of Message kind")) +} + +func (x *_MsgRemoveFromBlocklist_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgRemoveFromBlocklist_2_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgRemoveFromBlocklist_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgRemoveFromBlocklist protoreflect.MessageDescriptor + fd_MsgRemoveFromBlocklist_signer protoreflect.FieldDescriptor + fd_MsgRemoveFromBlocklist_accounts protoreflect.FieldDescriptor +) + +func init() { + file_ondo_usdy_blocklist_v1_tx_proto_init() + md_MsgRemoveFromBlocklist = File_ondo_usdy_blocklist_v1_tx_proto.Messages().ByName("MsgRemoveFromBlocklist") + fd_MsgRemoveFromBlocklist_signer = md_MsgRemoveFromBlocklist.Fields().ByName("signer") + fd_MsgRemoveFromBlocklist_accounts = md_MsgRemoveFromBlocklist.Fields().ByName("accounts") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoveFromBlocklist)(nil) + +type fastReflection_MsgRemoveFromBlocklist MsgRemoveFromBlocklist + +func (x *MsgRemoveFromBlocklist) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveFromBlocklist)(x) +} + +func (x *MsgRemoveFromBlocklist) slowProtoReflect() protoreflect.Message { + mi := &file_ondo_usdy_blocklist_v1_tx_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_MsgRemoveFromBlocklist_messageType fastReflection_MsgRemoveFromBlocklist_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveFromBlocklist_messageType{} + +type fastReflection_MsgRemoveFromBlocklist_messageType struct{} + +func (x fastReflection_MsgRemoveFromBlocklist_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveFromBlocklist)(nil) +} +func (x fastReflection_MsgRemoveFromBlocklist_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveFromBlocklist) +} +func (x fastReflection_MsgRemoveFromBlocklist_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveFromBlocklist +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoveFromBlocklist) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveFromBlocklist +} + +// 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_MsgRemoveFromBlocklist) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveFromBlocklist_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoveFromBlocklist) New() protoreflect.Message { + return new(fastReflection_MsgRemoveFromBlocklist) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoveFromBlocklist) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveFromBlocklist)(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_MsgRemoveFromBlocklist) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Signer != "" { + value := protoreflect.ValueOfString(x.Signer) + if !f(fd_MsgRemoveFromBlocklist_signer, value) { + return + } + } + if len(x.Accounts) != 0 { + value := protoreflect.ValueOfList(&_MsgRemoveFromBlocklist_2_list{list: &x.Accounts}) + if !f(fd_MsgRemoveFromBlocklist_accounts, 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_MsgRemoveFromBlocklist) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.signer": + return x.Signer != "" + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.accounts": + return len(x.Accounts) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist 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_MsgRemoveFromBlocklist) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.signer": + x.Signer = "" + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.accounts": + x.Accounts = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist 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_MsgRemoveFromBlocklist) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.signer": + value := x.Signer + return protoreflect.ValueOfString(value) + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.accounts": + if len(x.Accounts) == 0 { + return protoreflect.ValueOfList(&_MsgRemoveFromBlocklist_2_list{}) + } + listValue := &_MsgRemoveFromBlocklist_2_list{list: &x.Accounts} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist 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_MsgRemoveFromBlocklist) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.signer": + x.Signer = value.Interface().(string) + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.accounts": + lv := value.List() + clv := lv.(*_MsgRemoveFromBlocklist_2_list) + x.Accounts = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist 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_MsgRemoveFromBlocklist) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.accounts": + if x.Accounts == nil { + x.Accounts = []string{} + } + value := &_MsgRemoveFromBlocklist_2_list{list: &x.Accounts} + return protoreflect.ValueOfList(value) + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.signer": + panic(fmt.Errorf("field signer of message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist 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_MsgRemoveFromBlocklist) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.signer": + return protoreflect.ValueOfString("") + case "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist.accounts": + list := []string{} + return protoreflect.ValueOfList(&_MsgRemoveFromBlocklist_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist 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_MsgRemoveFromBlocklist) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist", 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_MsgRemoveFromBlocklist) 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_MsgRemoveFromBlocklist) 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_MsgRemoveFromBlocklist) 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_MsgRemoveFromBlocklist) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoveFromBlocklist) + 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.Signer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Accounts) > 0 { + for _, s := range x.Accounts { + l = len(s) + 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().(*MsgRemoveFromBlocklist) + 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.Accounts) > 0 { + for iNdEx := len(x.Accounts) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Accounts[iNdEx]) + copy(dAtA[i:], x.Accounts[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Accounts[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Signer) > 0 { + i -= len(x.Signer) + copy(dAtA[i:], x.Signer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signer))) + 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().(*MsgRemoveFromBlocklist) + 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: MsgRemoveFromBlocklist: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveFromBlocklist: 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 Signer", 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.Signer = 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 Accounts", 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.Accounts = append(x.Accounts, 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_MsgRemoveFromBlocklistResponse protoreflect.MessageDescriptor +) + +func init() { + file_ondo_usdy_blocklist_v1_tx_proto_init() + md_MsgRemoveFromBlocklistResponse = File_ondo_usdy_blocklist_v1_tx_proto.Messages().ByName("MsgRemoveFromBlocklistResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoveFromBlocklistResponse)(nil) + +type fastReflection_MsgRemoveFromBlocklistResponse MsgRemoveFromBlocklistResponse + +func (x *MsgRemoveFromBlocklistResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveFromBlocklistResponse)(x) +} + +func (x *MsgRemoveFromBlocklistResponse) slowProtoReflect() protoreflect.Message { + mi := &file_ondo_usdy_blocklist_v1_tx_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_MsgRemoveFromBlocklistResponse_messageType fastReflection_MsgRemoveFromBlocklistResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveFromBlocklistResponse_messageType{} + +type fastReflection_MsgRemoveFromBlocklistResponse_messageType struct{} + +func (x fastReflection_MsgRemoveFromBlocklistResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveFromBlocklistResponse)(nil) +} +func (x fastReflection_MsgRemoveFromBlocklistResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveFromBlocklistResponse) +} +func (x fastReflection_MsgRemoveFromBlocklistResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveFromBlocklistResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoveFromBlocklistResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveFromBlocklistResponse +} + +// 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_MsgRemoveFromBlocklistResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveFromBlocklistResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoveFromBlocklistResponse) New() protoreflect.Message { + return new(fastReflection_MsgRemoveFromBlocklistResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoveFromBlocklistResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveFromBlocklistResponse)(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_MsgRemoveFromBlocklistResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgRemoveFromBlocklistResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse 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_MsgRemoveFromBlocklistResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse 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_MsgRemoveFromBlocklistResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse 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_MsgRemoveFromBlocklistResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse 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_MsgRemoveFromBlocklistResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse 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_MsgRemoveFromBlocklistResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse")) + } + panic(fmt.Errorf("message ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse 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_MsgRemoveFromBlocklistResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse", 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_MsgRemoveFromBlocklistResponse) 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_MsgRemoveFromBlocklistResponse) 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_MsgRemoveFromBlocklistResponse) 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_MsgRemoveFromBlocklistResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoveFromBlocklistResponse) + 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.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().(*MsgRemoveFromBlocklistResponse) + 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 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().(*MsgRemoveFromBlocklistResponse) + 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: MsgRemoveFromBlocklistResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveFromBlocklistResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 @@ -21,36 +3445,425 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// MsgTransferOwnership implements the transferOwnership (0xf2fde38b) method. +type MsgTransferOwnership struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (x *MsgTransferOwnership) Reset() { + *x = MsgTransferOwnership{} + if protoimpl.UnsafeEnabled { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgTransferOwnership) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgTransferOwnership) ProtoMessage() {} + +// Deprecated: Use MsgTransferOwnership.ProtoReflect.Descriptor instead. +func (*MsgTransferOwnership) Descriptor() ([]byte, []int) { + return file_ondo_usdy_blocklist_v1_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgTransferOwnership) GetSigner() string { + if x != nil { + return x.Signer + } + return "" +} + +func (x *MsgTransferOwnership) GetNewOwner() string { + if x != nil { + return x.NewOwner + } + return "" +} + +// MsgTransferOwnershipResponse is the response of the TransferOwnership action. +type MsgTransferOwnershipResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgTransferOwnershipResponse) Reset() { + *x = MsgTransferOwnershipResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgTransferOwnershipResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgTransferOwnershipResponse) ProtoMessage() {} + +// Deprecated: Use MsgTransferOwnershipResponse.ProtoReflect.Descriptor instead. +func (*MsgTransferOwnershipResponse) Descriptor() ([]byte, []int) { + return file_ondo_usdy_blocklist_v1_tx_proto_rawDescGZIP(), []int{1} +} + +// MsgAcceptOwnership implements the acceptOwnership (0x79ba5097) method. +type MsgAcceptOwnership struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` +} + +func (x *MsgAcceptOwnership) Reset() { + *x = MsgAcceptOwnership{} + if protoimpl.UnsafeEnabled { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAcceptOwnership) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAcceptOwnership) ProtoMessage() {} + +// Deprecated: Use MsgAcceptOwnership.ProtoReflect.Descriptor instead. +func (*MsgAcceptOwnership) Descriptor() ([]byte, []int) { + return file_ondo_usdy_blocklist_v1_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgAcceptOwnership) GetSigner() string { + if x != nil { + return x.Signer + } + return "" +} + +// MsgAcceptOwnershipResponse is the response of the AcceptOwnership action. +type MsgAcceptOwnershipResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgAcceptOwnershipResponse) Reset() { + *x = MsgAcceptOwnershipResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAcceptOwnershipResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAcceptOwnershipResponse) ProtoMessage() {} + +// Deprecated: Use MsgAcceptOwnershipResponse.ProtoReflect.Descriptor instead. +func (*MsgAcceptOwnershipResponse) Descriptor() ([]byte, []int) { + return file_ondo_usdy_blocklist_v1_tx_proto_rawDescGZIP(), []int{3} +} + +// MsgAddToBlocklist implements the addToBlocklist (0xf71a55f8) method. +type MsgAddToBlocklist struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + Accounts []string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` +} + +func (x *MsgAddToBlocklist) Reset() { + *x = MsgAddToBlocklist{} + if protoimpl.UnsafeEnabled { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAddToBlocklist) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAddToBlocklist) ProtoMessage() {} + +// Deprecated: Use MsgAddToBlocklist.ProtoReflect.Descriptor instead. +func (*MsgAddToBlocklist) Descriptor() ([]byte, []int) { + return file_ondo_usdy_blocklist_v1_tx_proto_rawDescGZIP(), []int{4} +} + +func (x *MsgAddToBlocklist) GetSigner() string { + if x != nil { + return x.Signer + } + return "" +} + +func (x *MsgAddToBlocklist) GetAccounts() []string { + if x != nil { + return x.Accounts + } + return nil +} + +// MsgAddToBlocklistResponse is the response of the AddToBlocklist action. +type MsgAddToBlocklistResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgAddToBlocklistResponse) Reset() { + *x = MsgAddToBlocklistResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAddToBlocklistResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAddToBlocklistResponse) ProtoMessage() {} + +// Deprecated: Use MsgAddToBlocklistResponse.ProtoReflect.Descriptor instead. +func (*MsgAddToBlocklistResponse) Descriptor() ([]byte, []int) { + return file_ondo_usdy_blocklist_v1_tx_proto_rawDescGZIP(), []int{5} +} + +// MsgRemoveFromBlocklist implements the removeFromBlocklist (0xab63e69c) method. +type MsgRemoveFromBlocklist struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + Accounts []string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` +} + +func (x *MsgRemoveFromBlocklist) Reset() { + *x = MsgRemoveFromBlocklist{} + if protoimpl.UnsafeEnabled { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoveFromBlocklist) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoveFromBlocklist) ProtoMessage() {} + +// Deprecated: Use MsgRemoveFromBlocklist.ProtoReflect.Descriptor instead. +func (*MsgRemoveFromBlocklist) Descriptor() ([]byte, []int) { + return file_ondo_usdy_blocklist_v1_tx_proto_rawDescGZIP(), []int{6} +} + +func (x *MsgRemoveFromBlocklist) GetSigner() string { + if x != nil { + return x.Signer + } + return "" +} + +func (x *MsgRemoveFromBlocklist) GetAccounts() []string { + if x != nil { + return x.Accounts + } + return nil +} + +// MsgRemoveFromBlocklistResponse is the response of the RemoveFromBlocklist action. +type MsgRemoveFromBlocklistResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgRemoveFromBlocklistResponse) Reset() { + *x = MsgRemoveFromBlocklistResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoveFromBlocklistResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoveFromBlocklistResponse) ProtoMessage() {} + +// Deprecated: Use MsgRemoveFromBlocklistResponse.ProtoReflect.Descriptor instead. +func (*MsgRemoveFromBlocklistResponse) Descriptor() ([]byte, []int) { + return file_ondo_usdy_blocklist_v1_tx_proto_rawDescGZIP(), []int{7} +} + var File_ondo_usdy_blocklist_v1_tx_proto protoreflect.FileDescriptor var file_ondo_usdy_blocklist_v1_tx_proto_rawDesc = []byte{ 0x0a, 0x1f, 0x6f, 0x6e, 0x64, 0x6f, 0x2f, 0x75, 0x73, 0x64, 0x79, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, 0x75, 0x73, 0x64, 0x79, 0x2e, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x32, 0x0c, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, - 0x42, 0xe5, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, 0x75, 0x73, - 0x64, 0x79, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x42, - 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x61, 0x73, 0x73, - 0x65, 0x74, 0x73, 0x2f, 0x6f, 0x6e, 0x64, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6f, 0x6e, 0x64, - 0x6f, 0x2f, 0x75, 0x73, 0x64, 0x79, 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, 0x4f, 0x55, 0x42, 0xaa, 0x02, 0x16, 0x4f, 0x6e, 0x64, 0x6f, 0x2e, 0x55, 0x73, 0x64, - 0x79, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x16, 0x4f, 0x6e, 0x64, 0x6f, 0x5c, 0x55, 0x73, 0x64, 0x79, 0x5c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x6c, 0x69, 0x73, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x4f, 0x6e, 0x64, 0x6f, 0x5c, 0x55, - 0x73, 0x64, 0x79, 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, 0x19, 0x4f, - 0x6e, 0x64, 0x6f, 0x3a, 0x3a, 0x55, 0x73, 0x64, 0x79, 0x3a, 0x3a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var file_ondo_usdy_blocklist_v1_tx_proto_goTypes = []interface{}{} + 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, + 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0xbe, 0x01, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, + 0x30, 0x0a, 0x06, 0x73, 0x69, 0x67, 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, 0x06, 0x73, 0x69, 0x67, 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, 0x3a, 0x3d, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, + 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, + 0x2a, 0x25, 0x6f, 0x6e, 0x64, 0x6f, 0x2f, 0x75, 0x73, 0x64, 0x79, 0x2f, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x41, + 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x30, + 0x0a, 0x06, 0x73, 0x69, 0x67, 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, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, + 0x3a, 0x3b, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x23, 0x6f, 0x6e, 0x64, 0x6f, 0x2f, 0x75, + 0x73, 0x64, 0x79, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2f, 0x41, 0x63, + 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x22, 0x1c, 0x0a, + 0x1a, 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, + 0x68, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x11, + 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, + 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x69, 0x67, 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, 0x06, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, + 0x3a, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x69, + 0x67, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x22, 0x6f, 0x6e, 0x64, 0x6f, 0x2f, 0x75, 0x73, + 0x64, 0x79, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2f, 0x41, 0x64, 0x64, + 0x54, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x1b, 0x0a, 0x19, 0x4d, + 0x73, 0x67, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x16, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, + 0x69, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x69, 0x67, 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, 0x06, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x73, 0x3a, 0x3f, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x06, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x27, 0x6f, 0x6e, 0x64, 0x6f, 0x2f, + 0x75, 0x73, 0x64, 0x79, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2f, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, + 0x73, 0x74, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, + 0x72, 0x6f, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xe7, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x77, 0x0a, 0x11, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, + 0x70, 0x12, 0x2c, 0x2e, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, 0x75, 0x73, 0x64, 0x79, 0x2e, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x1a, + 0x34, 0x2e, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, 0x75, 0x73, 0x64, 0x79, 0x2e, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0f, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, + 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x2a, 0x2e, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, + 0x75, 0x73, 0x64, 0x79, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, + 0x73, 0x68, 0x69, 0x70, 0x1a, 0x32, 0x2e, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, 0x75, 0x73, 0x64, 0x79, + 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x54, + 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x2e, 0x6f, 0x6e, 0x64, + 0x6f, 0x2e, 0x75, 0x73, 0x64, 0x79, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, 0x75, 0x73, 0x64, + 0x79, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x12, + 0x2e, 0x2e, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, 0x75, 0x73, 0x64, 0x79, 0x2e, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x1a, + 0x36, 0x2e, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, 0x75, 0x73, 0x64, 0x79, 0x2e, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xe5, + 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6f, 0x6e, 0x64, 0x6f, 0x2e, 0x75, 0x73, 0x64, 0x79, + 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, + 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x61, 0x73, 0x73, 0x65, 0x74, + 0x73, 0x2f, 0x6f, 0x6e, 0x64, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6f, 0x6e, 0x64, 0x6f, 0x2f, + 0x75, 0x73, 0x64, 0x79, 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, + 0x4f, 0x55, 0x42, 0xaa, 0x02, 0x16, 0x4f, 0x6e, 0x64, 0x6f, 0x2e, 0x55, 0x73, 0x64, 0x79, 0x2e, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x4f, + 0x6e, 0x64, 0x6f, 0x5c, 0x55, 0x73, 0x64, 0x79, 0x5c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, + 0x73, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x4f, 0x6e, 0x64, 0x6f, 0x5c, 0x55, 0x73, 0x64, + 0x79, 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, 0x19, 0x4f, 0x6e, 0x64, + 0x6f, 0x3a, 0x3a, 0x55, 0x73, 0x64, 0x79, 0x3a, 0x3a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6c, 0x69, + 0x73, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ondo_usdy_blocklist_v1_tx_proto_rawDescOnce sync.Once + file_ondo_usdy_blocklist_v1_tx_proto_rawDescData = file_ondo_usdy_blocklist_v1_tx_proto_rawDesc +) + +func file_ondo_usdy_blocklist_v1_tx_proto_rawDescGZIP() []byte { + file_ondo_usdy_blocklist_v1_tx_proto_rawDescOnce.Do(func() { + file_ondo_usdy_blocklist_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_ondo_usdy_blocklist_v1_tx_proto_rawDescData) + }) + return file_ondo_usdy_blocklist_v1_tx_proto_rawDescData +} + +var file_ondo_usdy_blocklist_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_ondo_usdy_blocklist_v1_tx_proto_goTypes = []interface{}{ + (*MsgTransferOwnership)(nil), // 0: ondo.usdy.blocklist.v1.MsgTransferOwnership + (*MsgTransferOwnershipResponse)(nil), // 1: ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse + (*MsgAcceptOwnership)(nil), // 2: ondo.usdy.blocklist.v1.MsgAcceptOwnership + (*MsgAcceptOwnershipResponse)(nil), // 3: ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse + (*MsgAddToBlocklist)(nil), // 4: ondo.usdy.blocklist.v1.MsgAddToBlocklist + (*MsgAddToBlocklistResponse)(nil), // 5: ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse + (*MsgRemoveFromBlocklist)(nil), // 6: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist + (*MsgRemoveFromBlocklistResponse)(nil), // 7: ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse +} var file_ondo_usdy_blocklist_v1_tx_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type + 0, // 0: ondo.usdy.blocklist.v1.Msg.TransferOwnership:input_type -> ondo.usdy.blocklist.v1.MsgTransferOwnership + 2, // 1: ondo.usdy.blocklist.v1.Msg.AcceptOwnership:input_type -> ondo.usdy.blocklist.v1.MsgAcceptOwnership + 4, // 2: ondo.usdy.blocklist.v1.Msg.AddToBlocklist:input_type -> ondo.usdy.blocklist.v1.MsgAddToBlocklist + 6, // 3: ondo.usdy.blocklist.v1.Msg.RemoveFromBlocklist:input_type -> ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist + 1, // 4: ondo.usdy.blocklist.v1.Msg.TransferOwnership:output_type -> ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse + 3, // 5: ondo.usdy.blocklist.v1.Msg.AcceptOwnership:output_type -> ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse + 5, // 6: ondo.usdy.blocklist.v1.Msg.AddToBlocklist:output_type -> ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse + 7, // 7: ondo.usdy.blocklist.v1.Msg.RemoveFromBlocklist:output_type -> ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse + 4, // [4:8] is the sub-list for method output_type + 0, // [0:4] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name @@ -61,18 +3874,117 @@ func file_ondo_usdy_blocklist_v1_tx_proto_init() { if File_ondo_usdy_blocklist_v1_tx_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgTransferOwnership); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgTransferOwnershipResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAcceptOwnership); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAcceptOwnershipResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAddToBlocklist); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAddToBlocklistResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveFromBlocklist); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ondo_usdy_blocklist_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveFromBlocklistResponse); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_ondo_usdy_blocklist_v1_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 0, + NumMessages: 8, NumExtensions: 0, NumServices: 1, }, GoTypes: file_ondo_usdy_blocklist_v1_tx_proto_goTypes, DependencyIndexes: file_ondo_usdy_blocklist_v1_tx_proto_depIdxs, + MessageInfos: file_ondo_usdy_blocklist_v1_tx_proto_msgTypes, }.Build() File_ondo_usdy_blocklist_v1_tx_proto = out.File file_ondo_usdy_blocklist_v1_tx_proto_rawDesc = nil diff --git a/api/ondo/usdy/blocklist/v1/tx_grpc.pb.go b/api/ondo/usdy/blocklist/v1/tx_grpc.pb.go index f2cee89..ea32d24 100644 --- a/api/ondo/usdy/blocklist/v1/tx_grpc.pb.go +++ b/api/ondo/usdy/blocklist/v1/tx_grpc.pb.go @@ -7,7 +7,10 @@ package blocklistv1 import ( + context "context" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file @@ -15,12 +18,21 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -const () +const ( + Msg_TransferOwnership_FullMethodName = "/ondo.usdy.blocklist.v1.Msg/TransferOwnership" + Msg_AcceptOwnership_FullMethodName = "/ondo.usdy.blocklist.v1.Msg/AcceptOwnership" + Msg_AddToBlocklist_FullMethodName = "/ondo.usdy.blocklist.v1.Msg/AddToBlocklist" + Msg_RemoveFromBlocklist_FullMethodName = "/ondo.usdy.blocklist.v1.Msg/RemoveFromBlocklist" +) // MsgClient is the client API for Msg service. // // 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 MsgClient interface { + TransferOwnership(ctx context.Context, in *MsgTransferOwnership, opts ...grpc.CallOption) (*MsgTransferOwnershipResponse, error) + AcceptOwnership(ctx context.Context, in *MsgAcceptOwnership, opts ...grpc.CallOption) (*MsgAcceptOwnershipResponse, error) + AddToBlocklist(ctx context.Context, in *MsgAddToBlocklist, opts ...grpc.CallOption) (*MsgAddToBlocklistResponse, error) + RemoveFromBlocklist(ctx context.Context, in *MsgRemoveFromBlocklist, opts ...grpc.CallOption) (*MsgRemoveFromBlocklistResponse, error) } type msgClient struct { @@ -31,10 +43,50 @@ func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { return &msgClient{cc} } +func (c *msgClient) TransferOwnership(ctx context.Context, in *MsgTransferOwnership, opts ...grpc.CallOption) (*MsgTransferOwnershipResponse, error) { + out := new(MsgTransferOwnershipResponse) + err := c.cc.Invoke(ctx, Msg_TransferOwnership_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AcceptOwnership(ctx context.Context, in *MsgAcceptOwnership, opts ...grpc.CallOption) (*MsgAcceptOwnershipResponse, error) { + out := new(MsgAcceptOwnershipResponse) + err := c.cc.Invoke(ctx, Msg_AcceptOwnership_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AddToBlocklist(ctx context.Context, in *MsgAddToBlocklist, opts ...grpc.CallOption) (*MsgAddToBlocklistResponse, error) { + out := new(MsgAddToBlocklistResponse) + err := c.cc.Invoke(ctx, Msg_AddToBlocklist_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RemoveFromBlocklist(ctx context.Context, in *MsgRemoveFromBlocklist, opts ...grpc.CallOption) (*MsgRemoveFromBlocklistResponse, error) { + out := new(MsgRemoveFromBlocklistResponse) + err := c.cc.Invoke(ctx, Msg_RemoveFromBlocklist_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. // All implementations must embed UnimplementedMsgServer // for forward compatibility type MsgServer interface { + TransferOwnership(context.Context, *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error) + AcceptOwnership(context.Context, *MsgAcceptOwnership) (*MsgAcceptOwnershipResponse, error) + AddToBlocklist(context.Context, *MsgAddToBlocklist) (*MsgAddToBlocklistResponse, error) + RemoveFromBlocklist(context.Context, *MsgRemoveFromBlocklist) (*MsgRemoveFromBlocklistResponse, error) mustEmbedUnimplementedMsgServer() } @@ -42,6 +94,18 @@ type MsgServer interface { type UnimplementedMsgServer struct { } +func (UnimplementedMsgServer) TransferOwnership(context.Context, *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferOwnership not implemented") +} +func (UnimplementedMsgServer) AcceptOwnership(context.Context, *MsgAcceptOwnership) (*MsgAcceptOwnershipResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AcceptOwnership not implemented") +} +func (UnimplementedMsgServer) AddToBlocklist(context.Context, *MsgAddToBlocklist) (*MsgAddToBlocklistResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddToBlocklist not implemented") +} +func (UnimplementedMsgServer) RemoveFromBlocklist(context.Context, *MsgRemoveFromBlocklist) (*MsgRemoveFromBlocklistResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveFromBlocklist not implemented") +} func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} // UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. @@ -55,13 +119,102 @@ func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { s.RegisterService(&Msg_ServiceDesc, srv) } +func _Msg_TransferOwnership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferOwnership) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).TransferOwnership(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_TransferOwnership_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).TransferOwnership(ctx, req.(*MsgTransferOwnership)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AcceptOwnership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAcceptOwnership) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AcceptOwnership(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_AcceptOwnership_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AcceptOwnership(ctx, req.(*MsgAcceptOwnership)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AddToBlocklist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddToBlocklist) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AddToBlocklist(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_AddToBlocklist_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddToBlocklist(ctx, req.(*MsgAddToBlocklist)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RemoveFromBlocklist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoveFromBlocklist) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoveFromBlocklist(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_RemoveFromBlocklist_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoveFromBlocklist(ctx, req.(*MsgRemoveFromBlocklist)) + } + return interceptor(ctx, in, info, handler) +} + // Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ondo.usdy.blocklist.v1.Msg", HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "ondo/usdy/blocklist/v1/tx.proto", + Methods: []grpc.MethodDesc{ + { + MethodName: "TransferOwnership", + Handler: _Msg_TransferOwnership_Handler, + }, + { + MethodName: "AcceptOwnership", + Handler: _Msg_AcceptOwnership_Handler, + }, + { + MethodName: "AddToBlocklist", + Handler: _Msg_AddToBlocklist_Handler, + }, + { + MethodName: "RemoveFromBlocklist", + Handler: _Msg_RemoveFromBlocklist_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "ondo/usdy/blocklist/v1/tx.proto", } diff --git a/proto/ondo/usdy/blocklist/v1/events.proto b/proto/ondo/usdy/blocklist/v1/events.proto new file mode 100644 index 0000000..a8cada5 --- /dev/null +++ b/proto/ondo/usdy/blocklist/v1/events.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +package ondo.usdy.blocklist.v1; + +option go_package = "github.com/noble-assets/ondo/x/usdy/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; +} + +// BlockedAddressesAdded is emitted whenever addresses are added to the blocklist. +message BlockedAddressesAdded { + // accounts is the list of addresses that were added to the blocklist. + repeated string accounts = 1; +} + +// BlockedAddressesRemoved is emitted whenever addresses are removed from the blocklist. +message BlockedAddressesRemoved { + // accounts is the list of addresses that were removed from the blocklist. + repeated string accounts = 1; +} diff --git a/proto/ondo/usdy/blocklist/v1/tx.proto b/proto/ondo/usdy/blocklist/v1/tx.proto index 8f28c3c..43865e0 100644 --- a/proto/ondo/usdy/blocklist/v1/tx.proto +++ b/proto/ondo/usdy/blocklist/v1/tx.proto @@ -2,10 +2,80 @@ syntax = "proto3"; package ondo.usdy.blocklist.v1; +import "amino/amino.proto"; import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; +import "gogoproto/gogo.proto"; option go_package = "github.com/noble-assets/ondo/x/usdy/types/blocklist"; service Msg { option (cosmos.msg.v1.service) = true; + + rpc TransferOwnership(MsgTransferOwnership) returns (MsgTransferOwnershipResponse); + rpc AcceptOwnership(MsgAcceptOwnership) returns (MsgAcceptOwnershipResponse); + + rpc AddToBlocklist(MsgAddToBlocklist) returns (MsgAddToBlocklistResponse); + rpc RemoveFromBlocklist(MsgRemoveFromBlocklist) returns (MsgRemoveFromBlocklistResponse); +} + +// + +// MsgTransferOwnership implements the transferOwnership (0xf2fde38b) method. +message MsgTransferOwnership { + option (cosmos.msg.v1.signer) = "signer"; + option (amino.name) = "ondo/usdy/blocklist/TransferOwnership"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string new_owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgTransferOwnershipResponse is the response of the TransferOwnership action. +message MsgTransferOwnershipResponse {} + +// MsgAcceptOwnership implements the acceptOwnership (0x79ba5097) method. +message MsgAcceptOwnership { + option (cosmos.msg.v1.signer) = "signer"; + option (amino.name) = "ondo/usdy/blocklist/AcceptOwnership"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } + +// MsgAcceptOwnershipResponse is the response of the AcceptOwnership action. +message MsgAcceptOwnershipResponse {} + +// MsgAddToBlocklist implements the addToBlocklist (0xf71a55f8) method. +message MsgAddToBlocklist { + option (cosmos.msg.v1.signer) = "signer"; + option (amino.name) = "ondo/usdy/blocklist/AddToBlocklist"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + repeated string accounts = 2; +} + +// MsgAddToBlocklistResponse is the response of the AddToBlocklist action. +message MsgAddToBlocklistResponse {} + +// MsgRemoveFromBlocklist implements the removeFromBlocklist (0xab63e69c) method. +message MsgRemoveFromBlocklist { + option (cosmos.msg.v1.signer) = "signer"; + option (amino.name) = "ondo/usdy/blocklist/RemoveFromBlocklist"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + repeated string accounts = 2; +} + +// MsgRemoveFromBlocklistResponse is the response of the RemoveFromBlocklist action. +message MsgRemoveFromBlocklistResponse {} diff --git a/utils/mocks/account.go b/utils/mocks/account.go new file mode 100644 index 0000000..c27eba4 --- /dev/null +++ b/utils/mocks/account.go @@ -0,0 +1,15 @@ +package mocks + +import ( + "cosmossdk.io/core/address" + "github.com/cosmos/cosmos-sdk/x/auth/codec" + "github.com/noble-assets/ondo/x/usdy/types" +) + +var _ types.AccountKeeper = AccountKeeper{} + +type AccountKeeper struct{} + +func (AccountKeeper) AddressCodec() address.Codec { + return codec.NewBech32Codec("noble") +} diff --git a/utils/mocks/usdy.go b/utils/mocks/usdy.go index 1b2d27c..e732426 100644 --- a/utils/mocks/usdy.go +++ b/utils/mocks/usdy.go @@ -27,5 +27,6 @@ func USDYKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { runtime.NewKVStoreService(key), runtime.ProvideEventService(), "ausdy", + AccountKeeper{}, ), wrapper.Ctx } diff --git a/x/usdy/keeper/keeper.go b/x/usdy/keeper/keeper.go index c760fc3..0b2b0e0 100644 --- a/x/usdy/keeper/keeper.go +++ b/x/usdy/keeper/keeper.go @@ -30,6 +30,8 @@ type Keeper struct { Owner collections.Item[string] PendingOwner collections.Item[string] BlockedAddresses collections.Map[[]byte, bool] + + accountKeeper types.AccountKeeper } func NewKeeper( @@ -38,6 +40,7 @@ func NewKeeper( storeService store.KVStoreService, eventService event.Service, denom string, + accountKeeper types.AccountKeeper, ) *Keeper { builder := collections.NewSchemaBuilder(storeService) @@ -47,7 +50,8 @@ func NewKeeper( storeService: storeService, eventService: eventService, - Denom: denom, + Denom: denom, + accountKeeper: accountKeeper, Paused: collections.NewItem(builder, types.PausedKey, "paused", collections.BoolValue), Pauser: collections.NewItem(builder, types.PauserKey, "pauser", collections.StringValue), diff --git a/x/usdy/keeper/msg_server_blocklist.go b/x/usdy/keeper/msg_server_blocklist.go index ea20619..e30757b 100644 --- a/x/usdy/keeper/msg_server_blocklist.go +++ b/x/usdy/keeper/msg_server_blocklist.go @@ -1,6 +1,12 @@ package keeper -import "github.com/noble-assets/ondo/x/usdy/types/blocklist" +import ( + "context" + "errors" + + sdkerrors "cosmossdk.io/errors" + "github.com/noble-assets/ondo/x/usdy/types/blocklist" +) var _ blocklist.MsgServer = &blocklistMsgServer{} @@ -11,3 +17,96 @@ type blocklistMsgServer struct { func NewBlocklistMsgServer(keeper *Keeper) blocklist.MsgServer { return &blocklistMsgServer{Keeper: keeper} } + +func (k blocklistMsgServer) TransferOwnership(ctx context.Context, msg *blocklist.MsgTransferOwnership) (*blocklist.MsgTransferOwnershipResponse, error) { + owner, err := k.Owner.Get(ctx) + if err != nil { + return nil, sdkerrors.Wrapf(err, "unable to retrieve blocklist owner from state") + } + if msg.Signer != owner { + return nil, sdkerrors.Wrapf(blocklist.ErrInvalidOwner, "expected %s, got %s", owner, msg.Signer) + } + + err = k.PendingOwner.Set(ctx, msg.NewOwner) + if err != nil { + return nil, errors.New("unable to set blocklist pending owner state") + } + + return &blocklist.MsgTransferOwnershipResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &blocklist.OwnershipTransferStarted{ + OldOwner: owner, + NewOwner: msg.NewOwner, + }) +} + +func (k blocklistMsgServer) AcceptOwnership(ctx context.Context, msg *blocklist.MsgAcceptOwnership) (*blocklist.MsgAcceptOwnershipResponse, error) { + pendingOwner, err := k.PendingOwner.Get(ctx) + if err != nil { + return nil, errors.New("there is no blocklist pending owner") + } + if msg.Signer != pendingOwner { + return nil, sdkerrors.Wrapf(blocklist.ErrInvalidPendingOwner, "expected %s, got %s", pendingOwner, msg.Signer) + } + + err = k.Owner.Set(ctx, pendingOwner) + if err != nil { + return nil, errors.New("unable to set blocklist owner state") + } + err = k.PendingOwner.Remove(ctx) + if err != nil { + return nil, errors.New("unable to remove blocklist pending owner state") + } + + return &blocklist.MsgAcceptOwnershipResponse{}, nil +} + +func (k blocklistMsgServer) AddToBlocklist(ctx context.Context, msg *blocklist.MsgAddToBlocklist) (*blocklist.MsgAddToBlocklistResponse, error) { + owner, err := k.Owner.Get(ctx) + if err != nil { + return nil, sdkerrors.Wrapf(err, "unable to retrieve blocklist owner from state") + } + if msg.Signer != owner { + return nil, sdkerrors.Wrapf(blocklist.ErrInvalidOwner, "expected %s, got %s", owner, msg.Signer) + } + + for _, account := range msg.Accounts { + address, err := k.accountKeeper.AddressCodec().StringToBytes(account) + if err != nil { + return nil, sdkerrors.Wrapf(err, "unable to decode account address %s", account) + } + + err = k.BlockedAddresses.Set(ctx, address, true) + if err != nil { + return nil, errors.New("unable to set blocked address state") + } + } + + return &blocklist.MsgAddToBlocklistResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &blocklist.BlockedAddressesAdded{ + Accounts: msg.Accounts, + }) +} + +func (k blocklistMsgServer) RemoveFromBlocklist(ctx context.Context, msg *blocklist.MsgRemoveFromBlocklist) (*blocklist.MsgRemoveFromBlocklistResponse, error) { + owner, err := k.Owner.Get(ctx) + if err != nil { + return nil, sdkerrors.Wrapf(err, "unable to retrieve blocklist owner from state") + } + if msg.Signer != owner { + return nil, sdkerrors.Wrapf(blocklist.ErrInvalidOwner, "expected %s, got %s", owner, msg.Signer) + } + + for _, account := range msg.Accounts { + address, err := k.accountKeeper.AddressCodec().StringToBytes(account) + if err != nil { + return nil, sdkerrors.Wrapf(err, "unable to decode account address %s", account) + } + + err = k.BlockedAddresses.Remove(ctx, address) + if err != nil { + return nil, errors.New("unable to remove blocked address state") + } + } + + return &blocklist.MsgRemoveFromBlocklistResponse{}, k.eventService.EventManager(ctx).Emit(ctx, &blocklist.BlockedAddressesRemoved{ + Accounts: msg.Accounts, + }) +} diff --git a/x/usdy/keeper/msg_server_blocklist_test.go b/x/usdy/keeper/msg_server_blocklist_test.go new file mode 100644 index 0000000..72ad979 --- /dev/null +++ b/x/usdy/keeper/msg_server_blocklist_test.go @@ -0,0 +1,180 @@ +package keeper_test + +import ( + "testing" + + "github.com/noble-assets/ondo/utils" + "github.com/noble-assets/ondo/utils/mocks" + "github.com/noble-assets/ondo/x/usdy/keeper" + "github.com/noble-assets/ondo/x/usdy/types/blocklist" + "github.com/stretchr/testify/require" +) + +func TestTransferOwnership(t *testing.T) { + k, ctx := mocks.USDYKeeper(t) + server := keeper.NewBlocklistMsgServer(k) + + // ACT: Attempt to transfer ownership with no owner set. + _, err := server.TransferOwnership(ctx, &blocklist.MsgTransferOwnership{}) + // ASSERT: The action should've failed due to no owner set. + require.ErrorContains(t, err, "unable to retrieve blocklist owner from state") + + // ARRANGE: Set blocklist owner in state. + owner := utils.TestAccount() + require.NoError(t, k.Owner.Set(ctx, owner.Address)) + + // ACT: Attempt to transfer ownership with invalid signer. + _, err = server.TransferOwnership(ctx, &blocklist.MsgTransferOwnership{ + Signer: utils.TestAccount().Address, + }) + // ASSERT: The action should've failed due to invalid signer. + require.ErrorContains(t, err, blocklist.ErrInvalidOwner.Error()) + + // ARRANGE: Generate a pending owner account. + pendingOwner := utils.TestAccount() + + // ACT: Attempt to transfer ownership. + _, err = server.TransferOwnership(ctx, &blocklist.MsgTransferOwnership{ + Signer: owner.Address, + NewOwner: pendingOwner.Address, + }) + // ASSERT: The action should've succeeded, and set a pending owner in state. + require.NoError(t, err) + res, err := k.PendingOwner.Get(ctx) + require.NoError(t, err) + require.Equal(t, pendingOwner.Address, res) +} + +func TestAcceptOwnership(t *testing.T) { + k, ctx := mocks.USDYKeeper(t) + server := keeper.NewBlocklistMsgServer(k) + + // ACT: Attempt to accept ownership with no pending owner set. + _, err := server.AcceptOwnership(ctx, &blocklist.MsgAcceptOwnership{}) + // ASSERT: The action should've failed due to no pending owner set. + require.ErrorContains(t, err, "there is no blocklist pending owner") + + // ARRANGE: Set blocklist pending owner in state. + pendingOwner := utils.TestAccount() + require.NoError(t, k.PendingOwner.Set(ctx, pendingOwner.Address)) + + // ACT: Attempt to accept ownership with invalid signer. + _, err = server.AcceptOwnership(ctx, &blocklist.MsgAcceptOwnership{ + Signer: utils.TestAccount().Address, + }) + // ASSERT: The action should've failed due to invalid signer. + require.ErrorContains(t, err, blocklist.ErrInvalidPendingOwner.Error()) + + // ACT: Attempt to accept ownership. + _, err = server.AcceptOwnership(ctx, &blocklist.MsgAcceptOwnership{ + Signer: pendingOwner.Address, + }) + // ASSERT: The action should've succeeded, and updated the owner in state. + require.NoError(t, err) + res, err := k.Owner.Get(ctx) + require.NoError(t, err) + require.Equal(t, pendingOwner.Address, res) + has, err := k.PendingOwner.Has(ctx) + require.NoError(t, err) + require.False(t, has) +} + +func TestAddToBlocklist(t *testing.T) { + k, ctx := mocks.USDYKeeper(t) + server := keeper.NewBlocklistMsgServer(k) + + // ACT: Attempt to add to blocklist with no owner set. + _, err := server.AddToBlocklist(ctx, &blocklist.MsgAddToBlocklist{}) + // ASSERT: The action should've failed due to no owner set. + require.ErrorContains(t, err, "unable to retrieve blocklist owner from state") + + // ARRANGE: Set blocklist owner in state. + owner := utils.TestAccount() + require.NoError(t, k.Owner.Set(ctx, owner.Address)) + + // ACT: Attempt to add to blocklist with invalid signer. + _, err = server.AddToBlocklist(ctx, &blocklist.MsgAddToBlocklist{ + Signer: utils.TestAccount().Address, + }) + // ASSERT: The action should've failed due to invalid signer. + require.ErrorContains(t, err, blocklist.ErrInvalidOwner.Error()) + + // ACT: Attempt to add to blocklist with invalid account address. + _, err = server.AddToBlocklist(ctx, &blocklist.MsgAddToBlocklist{ + Signer: owner.Address, + Accounts: []string{"cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn"}, + }) + // ASSERT: The action should've failed due to invalid account address. + require.ErrorContains(t, err, "unable to decode account address") + + // ARRANGE: Generate a user account. + user := utils.TestAccount() + + // ACT: Attempt to add to blocklist. + _, err = server.AddToBlocklist(ctx, &blocklist.MsgAddToBlocklist{ + Signer: owner.Address, + Accounts: []string{user.Address}, + }) + // ASSERT: The action should've succeeded, and blocked the user in state. + require.NoError(t, err) + res, err := k.BlockedAddresses.Get(ctx, user.Bytes) + require.NoError(t, err) + require.True(t, res) +} + +func TestRemoveFromBlocklist(t *testing.T) { + k, ctx := mocks.USDYKeeper(t) + server := keeper.NewBlocklistMsgServer(k) + + // ACT: Attempt to remove from blocklist with no owner set. + _, err := server.RemoveFromBlocklist(ctx, &blocklist.MsgRemoveFromBlocklist{}) + // ASSERT: The action should've failed due to no owner set. + require.ErrorContains(t, err, "unable to retrieve blocklist owner from state") + + // ARRANGE: Set blocklist owner in state. + owner := utils.TestAccount() + require.NoError(t, k.Owner.Set(ctx, owner.Address)) + + // ACT: Attempt to remove from blocklist with invalid signer. + _, err = server.RemoveFromBlocklist(ctx, &blocklist.MsgRemoveFromBlocklist{ + Signer: utils.TestAccount().Address, + }) + // ASSERT: The action should've failed due to invalid signer. + require.ErrorContains(t, err, blocklist.ErrInvalidOwner.Error()) + + // ACT: Attempt to remove from blocklist with invalid account address. + _, err = server.RemoveFromBlocklist(ctx, &blocklist.MsgRemoveFromBlocklist{ + Signer: owner.Address, + Accounts: []string{"cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn"}, + }) + // ASSERT: The action should've failed due to invalid account address. + require.ErrorContains(t, err, "unable to decode account address") + + // ARRANGE: Generate a user account. + user := utils.TestAccount() + + // ACT: Attempt to remove from blocklist with unblocked account. + _, err = server.RemoveFromBlocklist(ctx, &blocklist.MsgRemoveFromBlocklist{ + Signer: owner.Address, + Accounts: []string{user.Address}, + }) + // ASSERT: The action should've succeeded, and the user shouldn't be blocked. + require.NoError(t, err) + has, err := k.BlockedAddresses.Has(ctx, user.Bytes) + require.NoError(t, err) + require.False(t, has) + + // ARRANGE: Set user as blocked in state. + require.NoError(t, k.BlockedAddresses.Set(ctx, user.Bytes, true)) + + // ACT: Attempt to remove from blocklist. + _, err = server.RemoveFromBlocklist(ctx, &blocklist.MsgRemoveFromBlocklist{ + Signer: owner.Address, + Accounts: []string{user.Address}, + }) + // ASSERT: The action should've succeeded, and unblocked the user. + require.NoError(t, err) + has, err = k.BlockedAddresses.Has(ctx, user.Bytes) + require.NoError(t, err) + require.False(t, has) +} diff --git a/x/usdy/module.go b/x/usdy/module.go index 0fa33cc..123cc63 100644 --- a/x/usdy/module.go +++ b/x/usdy/module.go @@ -203,6 +203,7 @@ func ProvideModule(in ModuleInputs) ModuleOutputs { in.StoreService, in.EventService, in.Config.Denom, + in.AccountKeeper, ) m := NewAppModule(k, in.AccountKeeper) diff --git a/x/usdy/types/blocklist/codec.go b/x/usdy/types/blocklist/codec.go new file mode 100644 index 0000000..922883b --- /dev/null +++ b/x/usdy/types/blocklist/codec.go @@ -0,0 +1,26 @@ +package blocklist + +import ( + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/msgservice" +) + +func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + cdc.RegisterConcrete(&MsgTransferOwnership{}, "ondo/usdy/blocklist/TransferOwnership", nil) + cdc.RegisterConcrete(&MsgAcceptOwnership{}, "ondo/usdy/blocklist/AcceptOwnership", nil) + + cdc.RegisterConcrete(&MsgAddToBlocklist{}, "ondo/usdy/blocklist/AddToBlocklist", nil) + cdc.RegisterConcrete(&MsgRemoveFromBlocklist{}, "ondo/usdy/blocklist/RemoveFromBlocklist", nil) +} + +func RegisterInterfaces(registry codectypes.InterfaceRegistry) { + registry.RegisterImplementations((*sdk.Msg)(nil), &MsgTransferOwnership{}) + registry.RegisterImplementations((*sdk.Msg)(nil), &MsgAcceptOwnership{}) + + registry.RegisterImplementations((*sdk.Msg)(nil), &MsgAddToBlocklist{}) + registry.RegisterImplementations((*sdk.Msg)(nil), &MsgRemoveFromBlocklist{}) + + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) +} diff --git a/x/usdy/types/blocklist/errors.go b/x/usdy/types/blocklist/errors.go new file mode 100644 index 0000000..ae539c6 --- /dev/null +++ b/x/usdy/types/blocklist/errors.go @@ -0,0 +1,10 @@ +package blocklist + +import "cosmossdk.io/errors" + +var ( + Codespace = "usdy/blocklist" + + ErrInvalidOwner = errors.Register(Codespace, 1, "signer is not blocklist owner") + ErrInvalidPendingOwner = errors.Register(Codespace, 2, "signer is not blocklist pending owner") +) diff --git a/x/usdy/types/blocklist/events.pb.go b/x/usdy/types/blocklist/events.pb.go new file mode 100644 index 0000000..3b5d56a --- /dev/null +++ b/x/usdy/types/blocklist/events.pb.go @@ -0,0 +1,729 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: ondo/usdy/blocklist/v1/events.proto + +package blocklist + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +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. + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (m *OwnershipTransferStarted) Reset() { *m = OwnershipTransferStarted{} } +func (m *OwnershipTransferStarted) String() string { return proto.CompactTextString(m) } +func (*OwnershipTransferStarted) ProtoMessage() {} +func (*OwnershipTransferStarted) Descriptor() ([]byte, []int) { + return fileDescriptor_c2a3ea4db94c69b5, []int{0} +} +func (m *OwnershipTransferStarted) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OwnershipTransferStarted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OwnershipTransferStarted.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 *OwnershipTransferStarted) XXX_Merge(src proto.Message) { + xxx_messageInfo_OwnershipTransferStarted.Merge(m, src) +} +func (m *OwnershipTransferStarted) XXX_Size() int { + return m.Size() +} +func (m *OwnershipTransferStarted) XXX_DiscardUnknown() { + xxx_messageInfo_OwnershipTransferStarted.DiscardUnknown(m) +} + +var xxx_messageInfo_OwnershipTransferStarted proto.InternalMessageInfo + +func (m *OwnershipTransferStarted) GetOldOwner() string { + if m != nil { + return m.OldOwner + } + return "" +} + +func (m *OwnershipTransferStarted) 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. + Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` +} + +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_c2a3ea4db94c69b5, []int{1} +} +func (m *BlockedAddressesAdded) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockedAddressesAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockedAddressesAdded.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 *BlockedAddressesAdded) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockedAddressesAdded.Merge(m, src) +} +func (m *BlockedAddressesAdded) XXX_Size() int { + return m.Size() +} +func (m *BlockedAddressesAdded) XXX_DiscardUnknown() { + xxx_messageInfo_BlockedAddressesAdded.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockedAddressesAdded proto.InternalMessageInfo + +func (m *BlockedAddressesAdded) GetAccounts() []string { + if m != nil { + return m.Accounts + } + return nil +} + +// BlockedAddressesRemoved is emitted whenever addresses are removed from the blocklist. +type BlockedAddressesRemoved struct { + // accounts is the list of addresses that were removed from the blocklist. + Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` +} + +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_c2a3ea4db94c69b5, []int{2} +} +func (m *BlockedAddressesRemoved) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockedAddressesRemoved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockedAddressesRemoved.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 *BlockedAddressesRemoved) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockedAddressesRemoved.Merge(m, src) +} +func (m *BlockedAddressesRemoved) XXX_Size() int { + return m.Size() +} +func (m *BlockedAddressesRemoved) XXX_DiscardUnknown() { + xxx_messageInfo_BlockedAddressesRemoved.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockedAddressesRemoved proto.InternalMessageInfo + +func (m *BlockedAddressesRemoved) GetAccounts() []string { + if m != nil { + return m.Accounts + } + return nil +} + +func init() { + proto.RegisterType((*OwnershipTransferStarted)(nil), "ondo.usdy.blocklist.v1.OwnershipTransferStarted") + proto.RegisterType((*BlockedAddressesAdded)(nil), "ondo.usdy.blocklist.v1.BlockedAddressesAdded") + proto.RegisterType((*BlockedAddressesRemoved)(nil), "ondo.usdy.blocklist.v1.BlockedAddressesRemoved") +} + +func init() { + proto.RegisterFile("ondo/usdy/blocklist/v1/events.proto", fileDescriptor_c2a3ea4db94c69b5) +} + +var fileDescriptor_c2a3ea4db94c69b5 = []byte{ + // 260 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xcf, 0x4a, 0xc3, 0x40, + 0x10, 0x87, 0xbb, 0x0a, 0xd2, 0xee, 0x31, 0xa0, 0x06, 0x85, 0xa5, 0xc4, 0x8b, 0x17, 0xb3, 0x94, + 0xe0, 0x03, 0xb4, 0x77, 0x11, 0x6a, 0x4f, 0x5e, 0x24, 0xc9, 0x8c, 0x36, 0x98, 0xee, 0x84, 0x9d, + 0x4d, 0x62, 0xdf, 0xc2, 0xc7, 0xf2, 0xd8, 0xa3, 0x47, 0x49, 0x5e, 0x44, 0x36, 0xf5, 0x0f, 0x78, + 0xf0, 0x38, 0x7c, 0xdf, 0x8f, 0x81, 0x4f, 0x5e, 0x90, 0x01, 0xd2, 0x35, 0xc3, 0x56, 0x67, 0x25, + 0xe5, 0xcf, 0x65, 0xc1, 0x4e, 0x37, 0x33, 0x8d, 0x0d, 0x1a, 0xc7, 0x71, 0x65, 0xc9, 0x51, 0x70, + 0xe2, 0xa5, 0xd8, 0x4b, 0xf1, 0x8f, 0x14, 0x37, 0xb3, 0x68, 0x25, 0xc3, 0xdb, 0xd6, 0xa0, 0xe5, + 0x75, 0x51, 0xad, 0x6c, 0x6a, 0xf8, 0x11, 0xed, 0x9d, 0x4b, 0xad, 0x43, 0x08, 0xce, 0xe5, 0x84, + 0x4a, 0x78, 0x20, 0xcf, 0x43, 0x31, 0x15, 0x97, 0x93, 0xe5, 0x98, 0x4a, 0x18, 0x7c, 0x0f, 0x0d, + 0xb6, 0x5f, 0xf0, 0x60, 0x0f, 0x0d, 0xb6, 0x03, 0x8c, 0x12, 0x79, 0xbc, 0xf0, 0x5f, 0x10, 0xe6, + 0x00, 0x16, 0x99, 0x91, 0xe7, 0x00, 0x08, 0xc1, 0x99, 0x1c, 0xa7, 0x79, 0x4e, 0xb5, 0x71, 0x1c, + 0x8a, 0xe9, 0xa1, 0x1f, 0x7d, 0xdf, 0xd1, 0xb5, 0x3c, 0xfd, 0x3b, 0x5a, 0xe2, 0x86, 0x9a, 0xff, + 0x67, 0x8b, 0x9b, 0xb7, 0x4e, 0x89, 0x5d, 0xa7, 0xc4, 0x47, 0xa7, 0xc4, 0x6b, 0xaf, 0x46, 0xbb, + 0x5e, 0x8d, 0xde, 0x7b, 0x35, 0xba, 0x4f, 0x9e, 0x0a, 0xb7, 0xae, 0xb3, 0x38, 0xa7, 0x8d, 0x36, + 0x94, 0x95, 0x78, 0x95, 0x32, 0xa3, 0x63, 0x3d, 0x04, 0x7b, 0xd9, 0x27, 0x73, 0xdb, 0x0a, 0xf9, + 0x37, 0x5c, 0x76, 0x34, 0xf4, 0x4a, 0x3e, 0x03, 0x00, 0x00, 0xff, 0xff, 0x17, 0xf7, 0x80, 0xc5, + 0x56, 0x01, 0x00, 0x00, +} + +func (m *OwnershipTransferStarted) 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 *OwnershipTransferStarted) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OwnershipTransferStarted) 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.OldOwner) > 0 { + i -= len(m.OldOwner) + copy(dAtA[i:], m.OldOwner) + i = encodeVarintEvents(dAtA, i, uint64(len(m.OldOwner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockedAddressesAdded) 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 *BlockedAddressesAdded) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockedAddressesAdded) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Accounts) > 0 { + for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Accounts[iNdEx]) + copy(dAtA[i:], m.Accounts[iNdEx]) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Accounts[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BlockedAddressesRemoved) 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 *BlockedAddressesRemoved) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockedAddressesRemoved) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Accounts) > 0 { + for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Accounts[iNdEx]) + copy(dAtA[i:], m.Accounts[iNdEx]) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Accounts[iNdEx]))) + 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 *OwnershipTransferStarted) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OldOwner) + 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 *BlockedAddressesAdded) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Accounts) > 0 { + for _, s := range m.Accounts { + l = len(s) + n += 1 + l + sovEvents(uint64(l)) + } + } + return n +} + +func (m *BlockedAddressesRemoved) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Accounts) > 0 { + for _, s := range m.Accounts { + l = len(s) + 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 *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 OldOwner", 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.OldOwner = 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 *BlockedAddressesAdded) 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: BlockedAddressesAdded: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockedAddressesAdded: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Accounts", 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.Accounts = append(m.Accounts, 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 *BlockedAddressesRemoved) 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: BlockedAddressesRemoved: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockedAddressesRemoved: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Accounts", 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.Accounts = append(m.Accounts, 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 skipEvents(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthEvents + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEvents + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthEvents + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/usdy/types/blocklist/tx.pb.go b/x/usdy/types/blocklist/tx.pb.go index 5fa32a7..08ade1f 100644 --- a/x/usdy/types/blocklist/tx.pb.go +++ b/x/usdy/types/blocklist/tx.pb.go @@ -6,11 +6,18 @@ package blocklist import ( context "context" fmt "fmt" + _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -24,21 +31,358 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// MsgTransferOwnership implements the transferOwnership (0xf2fde38b) method. +type MsgTransferOwnership struct { + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (m *MsgTransferOwnership) Reset() { *m = MsgTransferOwnership{} } +func (m *MsgTransferOwnership) String() string { return proto.CompactTextString(m) } +func (*MsgTransferOwnership) ProtoMessage() {} +func (*MsgTransferOwnership) Descriptor() ([]byte, []int) { + return fileDescriptor_76edb01ad13ba82d, []int{0} +} +func (m *MsgTransferOwnership) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferOwnership) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferOwnership.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 *MsgTransferOwnership) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferOwnership.Merge(m, src) +} +func (m *MsgTransferOwnership) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferOwnership) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferOwnership.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferOwnership proto.InternalMessageInfo + +// MsgTransferOwnershipResponse is the response of the TransferOwnership action. +type MsgTransferOwnershipResponse struct { +} + +func (m *MsgTransferOwnershipResponse) Reset() { *m = MsgTransferOwnershipResponse{} } +func (m *MsgTransferOwnershipResponse) String() string { return proto.CompactTextString(m) } +func (*MsgTransferOwnershipResponse) ProtoMessage() {} +func (*MsgTransferOwnershipResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_76edb01ad13ba82d, []int{1} +} +func (m *MsgTransferOwnershipResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferOwnershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferOwnershipResponse.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 *MsgTransferOwnershipResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferOwnershipResponse.Merge(m, src) +} +func (m *MsgTransferOwnershipResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferOwnershipResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferOwnershipResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferOwnershipResponse proto.InternalMessageInfo + +// MsgAcceptOwnership implements the acceptOwnership (0x79ba5097) method. +type MsgAcceptOwnership struct { + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` +} + +func (m *MsgAcceptOwnership) Reset() { *m = MsgAcceptOwnership{} } +func (m *MsgAcceptOwnership) String() string { return proto.CompactTextString(m) } +func (*MsgAcceptOwnership) ProtoMessage() {} +func (*MsgAcceptOwnership) Descriptor() ([]byte, []int) { + return fileDescriptor_76edb01ad13ba82d, []int{2} +} +func (m *MsgAcceptOwnership) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAcceptOwnership) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAcceptOwnership.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 *MsgAcceptOwnership) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAcceptOwnership.Merge(m, src) +} +func (m *MsgAcceptOwnership) XXX_Size() int { + return m.Size() +} +func (m *MsgAcceptOwnership) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAcceptOwnership.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAcceptOwnership proto.InternalMessageInfo + +// MsgAcceptOwnershipResponse is the response of the AcceptOwnership action. +type MsgAcceptOwnershipResponse struct { +} + +func (m *MsgAcceptOwnershipResponse) Reset() { *m = MsgAcceptOwnershipResponse{} } +func (m *MsgAcceptOwnershipResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAcceptOwnershipResponse) ProtoMessage() {} +func (*MsgAcceptOwnershipResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_76edb01ad13ba82d, []int{3} +} +func (m *MsgAcceptOwnershipResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAcceptOwnershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAcceptOwnershipResponse.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 *MsgAcceptOwnershipResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAcceptOwnershipResponse.Merge(m, src) +} +func (m *MsgAcceptOwnershipResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAcceptOwnershipResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAcceptOwnershipResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAcceptOwnershipResponse proto.InternalMessageInfo + +// MsgAddToBlocklist implements the addToBlocklist (0xf71a55f8) method. +type MsgAddToBlocklist struct { + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + Accounts []string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` +} + +func (m *MsgAddToBlocklist) Reset() { *m = MsgAddToBlocklist{} } +func (m *MsgAddToBlocklist) String() string { return proto.CompactTextString(m) } +func (*MsgAddToBlocklist) ProtoMessage() {} +func (*MsgAddToBlocklist) Descriptor() ([]byte, []int) { + return fileDescriptor_76edb01ad13ba82d, []int{4} +} +func (m *MsgAddToBlocklist) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAddToBlocklist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAddToBlocklist.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 *MsgAddToBlocklist) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddToBlocklist.Merge(m, src) +} +func (m *MsgAddToBlocklist) XXX_Size() int { + return m.Size() +} +func (m *MsgAddToBlocklist) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddToBlocklist.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAddToBlocklist proto.InternalMessageInfo + +// MsgAddToBlocklistResponse is the response of the AddToBlocklist action. +type MsgAddToBlocklistResponse struct { +} + +func (m *MsgAddToBlocklistResponse) Reset() { *m = MsgAddToBlocklistResponse{} } +func (m *MsgAddToBlocklistResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAddToBlocklistResponse) ProtoMessage() {} +func (*MsgAddToBlocklistResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_76edb01ad13ba82d, []int{5} +} +func (m *MsgAddToBlocklistResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAddToBlocklistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAddToBlocklistResponse.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 *MsgAddToBlocklistResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddToBlocklistResponse.Merge(m, src) +} +func (m *MsgAddToBlocklistResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAddToBlocklistResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddToBlocklistResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAddToBlocklistResponse proto.InternalMessageInfo + +// MsgRemoveFromBlocklist implements the removeFromBlocklist (0xab63e69c) method. +type MsgRemoveFromBlocklist struct { + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + Accounts []string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` +} + +func (m *MsgRemoveFromBlocklist) Reset() { *m = MsgRemoveFromBlocklist{} } +func (m *MsgRemoveFromBlocklist) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveFromBlocklist) ProtoMessage() {} +func (*MsgRemoveFromBlocklist) Descriptor() ([]byte, []int) { + return fileDescriptor_76edb01ad13ba82d, []int{6} +} +func (m *MsgRemoveFromBlocklist) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoveFromBlocklist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoveFromBlocklist.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 *MsgRemoveFromBlocklist) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveFromBlocklist.Merge(m, src) +} +func (m *MsgRemoveFromBlocklist) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoveFromBlocklist) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveFromBlocklist.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemoveFromBlocklist proto.InternalMessageInfo + +// MsgRemoveFromBlocklistResponse is the response of the RemoveFromBlocklist action. +type MsgRemoveFromBlocklistResponse struct { +} + +func (m *MsgRemoveFromBlocklistResponse) Reset() { *m = MsgRemoveFromBlocklistResponse{} } +func (m *MsgRemoveFromBlocklistResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveFromBlocklistResponse) ProtoMessage() {} +func (*MsgRemoveFromBlocklistResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_76edb01ad13ba82d, []int{7} +} +func (m *MsgRemoveFromBlocklistResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoveFromBlocklistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoveFromBlocklistResponse.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 *MsgRemoveFromBlocklistResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveFromBlocklistResponse.Merge(m, src) +} +func (m *MsgRemoveFromBlocklistResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoveFromBlocklistResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveFromBlocklistResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemoveFromBlocklistResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgTransferOwnership)(nil), "ondo.usdy.blocklist.v1.MsgTransferOwnership") + proto.RegisterType((*MsgTransferOwnershipResponse)(nil), "ondo.usdy.blocklist.v1.MsgTransferOwnershipResponse") + proto.RegisterType((*MsgAcceptOwnership)(nil), "ondo.usdy.blocklist.v1.MsgAcceptOwnership") + proto.RegisterType((*MsgAcceptOwnershipResponse)(nil), "ondo.usdy.blocklist.v1.MsgAcceptOwnershipResponse") + proto.RegisterType((*MsgAddToBlocklist)(nil), "ondo.usdy.blocklist.v1.MsgAddToBlocklist") + proto.RegisterType((*MsgAddToBlocklistResponse)(nil), "ondo.usdy.blocklist.v1.MsgAddToBlocklistResponse") + proto.RegisterType((*MsgRemoveFromBlocklist)(nil), "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklist") + proto.RegisterType((*MsgRemoveFromBlocklistResponse)(nil), "ondo.usdy.blocklist.v1.MsgRemoveFromBlocklistResponse") +} + func init() { proto.RegisterFile("ondo/usdy/blocklist/v1/tx.proto", fileDescriptor_76edb01ad13ba82d) } var fileDescriptor_76edb01ad13ba82d = []byte{ - // 175 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0xcf, 0x4b, 0xc9, - 0xd7, 0x2f, 0x2d, 0x4e, 0xa9, 0xd4, 0x4f, 0xca, 0xc9, 0x4f, 0xce, 0xce, 0xc9, 0x2c, 0x2e, 0xd1, - 0x2f, 0x33, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x03, 0x29, 0xd0, - 0x03, 0x29, 0xd0, 0x83, 0x2b, 0xd0, 0x2b, 0x33, 0x94, 0x12, 0x4f, 0xce, 0x2f, 0xce, 0xcd, 0x2f, - 0xd6, 0xcf, 0x2d, 0x4e, 0x07, 0xa9, 0xcf, 0x2d, 0x4e, 0x87, 0x68, 0x30, 0xe2, 0xe1, 0x62, 0xf6, - 0x2d, 0x4e, 0x97, 0x62, 0x6d, 0x78, 0xbe, 0x41, 0x8b, 0xd1, 0xc9, 0xf7, 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, 0x8c, 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, - 0x2e, 0xaa, 0x80, 0xb8, 0xa9, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0xe1, 0xb2, 0x24, 0x36, 0xb0, 0x1d, - 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9a, 0x7f, 0x1f, 0x79, 0xb7, 0x00, 0x00, 0x00, + // 535 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x3f, 0x6f, 0xd3, 0x40, + 0x18, 0xc6, 0x7d, 0x8d, 0xa8, 0x9a, 0x1b, 0x40, 0x31, 0x51, 0x49, 0x4d, 0xe5, 0x44, 0x46, 0x88, + 0x12, 0x51, 0x9b, 0xb4, 0xc0, 0x10, 0x84, 0x50, 0x33, 0xb0, 0x59, 0x48, 0xa1, 0x13, 0x4b, 0x95, + 0xd8, 0xc7, 0xd5, 0x22, 0xbe, 0x33, 0x7e, 0x2f, 0x49, 0x3b, 0x20, 0x21, 0x58, 0x10, 0x13, 0x5f, + 0x00, 0xa9, 0x1b, 0x6b, 0x06, 0x66, 0x66, 0xc6, 0x8a, 0x89, 0x11, 0x25, 0x43, 0xf8, 0x18, 0xc8, + 0x7f, 0x62, 0xd4, 0xe4, 0x12, 0x1a, 0x50, 0x17, 0xcb, 0x77, 0xef, 0xe3, 0xe7, 0xfd, 0xbd, 0xf6, + 0x73, 0xc6, 0x65, 0xce, 0x5c, 0x6e, 0x75, 0xc1, 0x3d, 0xb6, 0xda, 0x1d, 0xee, 0xbc, 0xec, 0x78, + 0x20, 0xac, 0x5e, 0xcd, 0x12, 0x47, 0x66, 0x10, 0x72, 0xc1, 0xd5, 0xf5, 0x48, 0x60, 0x46, 0x02, + 0x33, 0x13, 0x98, 0xbd, 0x9a, 0x56, 0x68, 0xf9, 0x1e, 0xe3, 0x56, 0x7c, 0x4d, 0xa4, 0xda, 0x35, + 0x87, 0x83, 0xcf, 0xc1, 0xf2, 0x81, 0x46, 0x16, 0x3e, 0xd0, 0xb4, 0xb0, 0x91, 0x14, 0x0e, 0xe2, + 0x95, 0x95, 0x2c, 0xd2, 0x52, 0x91, 0x72, 0xca, 0x93, 0xfd, 0xe8, 0x2e, 0xd9, 0x35, 0xbe, 0x22, + 0x5c, 0xb4, 0x81, 0xee, 0x87, 0x2d, 0x06, 0x2f, 0x48, 0xf8, 0xb4, 0xcf, 0x48, 0x08, 0x87, 0x5e, + 0xa0, 0xde, 0xc5, 0xab, 0xe0, 0x51, 0x46, 0xc2, 0x12, 0xaa, 0xa0, 0xad, 0x7c, 0xa3, 0xf4, 0xfd, + 0xcb, 0x76, 0x31, 0x35, 0xdc, 0x73, 0xdd, 0x90, 0x00, 0x3c, 0x13, 0xa1, 0xc7, 0x68, 0x33, 0xd5, + 0xa9, 0xf7, 0x71, 0x9e, 0x91, 0xfe, 0x01, 0x8f, 0x2c, 0x4a, 0x2b, 0x7f, 0x79, 0x68, 0x8d, 0x91, + 0x7e, 0xdc, 0xac, 0xfe, 0xe8, 0xfd, 0x49, 0x59, 0xf9, 0x75, 0x52, 0x56, 0xde, 0x8e, 0x07, 0xd5, + 0xd4, 0xeb, 0xc3, 0x78, 0x50, 0xbd, 0x29, 0x7b, 0x5f, 0x33, 0x9c, 0x86, 0x8e, 0x37, 0x65, 0xfc, + 0x4d, 0x02, 0x01, 0x67, 0x40, 0x8c, 0x77, 0x08, 0xab, 0x36, 0xd0, 0x3d, 0xc7, 0x21, 0x81, 0xf8, + 0x8f, 0xf1, 0xea, 0x0f, 0xe7, 0x70, 0xde, 0x90, 0x71, 0x4e, 0xb5, 0x33, 0x36, 0xb1, 0x36, 0x0b, + 0x91, 0x31, 0x7e, 0x42, 0xb8, 0x10, 0x95, 0x5d, 0x77, 0x9f, 0x37, 0x26, 0x1e, 0xff, 0xf0, 0x05, + 0x34, 0xbc, 0xd6, 0x72, 0x1c, 0xde, 0x65, 0x02, 0x4a, 0x2b, 0x95, 0xdc, 0x56, 0xbe, 0x99, 0xad, + 0xeb, 0xf5, 0x39, 0xf8, 0x86, 0x14, 0xff, 0x0c, 0x89, 0x71, 0x1d, 0x6f, 0xcc, 0xe0, 0x65, 0xf0, + 0x9f, 0x11, 0x5e, 0xb7, 0x81, 0x36, 0x89, 0xcf, 0x7b, 0xe4, 0x49, 0xc8, 0xfd, 0x8b, 0x9a, 0xe0, + 0xf1, 0x9c, 0x09, 0x6e, 0xc9, 0x26, 0x90, 0xe0, 0x18, 0x15, 0xac, 0xcb, 0x41, 0x27, 0xb3, 0xec, + 0x8c, 0x73, 0x38, 0x67, 0x03, 0x55, 0xfb, 0xb8, 0x30, 0x7b, 0x22, 0xee, 0x98, 0xf2, 0x03, 0x6a, + 0xca, 0xf2, 0xa7, 0xdd, 0x5b, 0x46, 0x3d, 0x01, 0x50, 0x5f, 0xe1, 0x2b, 0xd3, 0x49, 0xad, 0x2e, + 0x30, 0x9a, 0xd2, 0x6a, 0x3b, 0xe7, 0xd7, 0x66, 0x2d, 0x19, 0xbe, 0x3c, 0x15, 0xbc, 0xdb, 0x8b, + 0x5c, 0xce, 0x48, 0xb5, 0xda, 0xb9, 0xa5, 0x59, 0xbf, 0xd7, 0xf8, 0xaa, 0x2c, 0x2b, 0xe6, 0x02, + 0x27, 0x89, 0x5e, 0x7b, 0xb0, 0x9c, 0x7e, 0xd2, 0x5e, 0xbb, 0xf4, 0x66, 0x3c, 0xa8, 0xa2, 0x86, + 0xfd, 0x6d, 0xa8, 0xa3, 0xd3, 0xa1, 0x8e, 0x7e, 0x0e, 0x75, 0xf4, 0x71, 0xa4, 0x2b, 0xa7, 0x23, + 0x5d, 0xf9, 0x31, 0xd2, 0x95, 0xe7, 0xbb, 0xd4, 0x13, 0x87, 0xdd, 0xb6, 0xe9, 0x70, 0xdf, 0x62, + 0xbc, 0xdd, 0x21, 0xdb, 0x2d, 0x00, 0x22, 0xc0, 0x8a, 0x63, 0x76, 0x94, 0x04, 0x4d, 0x1c, 0x07, + 0x04, 0xfe, 0xc4, 0xad, 0xbd, 0x1a, 0xff, 0x4d, 0x77, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xff, + 0x05, 0x64, 0x2f, 0xe5, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -53,6 +397,10 @@ 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 MsgClient interface { + TransferOwnership(ctx context.Context, in *MsgTransferOwnership, opts ...grpc.CallOption) (*MsgTransferOwnershipResponse, error) + AcceptOwnership(ctx context.Context, in *MsgAcceptOwnership, opts ...grpc.CallOption) (*MsgAcceptOwnershipResponse, error) + AddToBlocklist(ctx context.Context, in *MsgAddToBlocklist, opts ...grpc.CallOption) (*MsgAddToBlocklistResponse, error) + RemoveFromBlocklist(ctx context.Context, in *MsgRemoveFromBlocklist, opts ...grpc.CallOption) (*MsgRemoveFromBlocklistResponse, error) } type msgClient struct { @@ -63,22 +411,1231 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { return &msgClient{cc} } +func (c *msgClient) TransferOwnership(ctx context.Context, in *MsgTransferOwnership, opts ...grpc.CallOption) (*MsgTransferOwnershipResponse, error) { + out := new(MsgTransferOwnershipResponse) + err := c.cc.Invoke(ctx, "/ondo.usdy.blocklist.v1.Msg/TransferOwnership", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AcceptOwnership(ctx context.Context, in *MsgAcceptOwnership, opts ...grpc.CallOption) (*MsgAcceptOwnershipResponse, error) { + out := new(MsgAcceptOwnershipResponse) + err := c.cc.Invoke(ctx, "/ondo.usdy.blocklist.v1.Msg/AcceptOwnership", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AddToBlocklist(ctx context.Context, in *MsgAddToBlocklist, opts ...grpc.CallOption) (*MsgAddToBlocklistResponse, error) { + out := new(MsgAddToBlocklistResponse) + err := c.cc.Invoke(ctx, "/ondo.usdy.blocklist.v1.Msg/AddToBlocklist", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RemoveFromBlocklist(ctx context.Context, in *MsgRemoveFromBlocklist, opts ...grpc.CallOption) (*MsgRemoveFromBlocklistResponse, error) { + out := new(MsgRemoveFromBlocklistResponse) + err := c.cc.Invoke(ctx, "/ondo.usdy.blocklist.v1.Msg/RemoveFromBlocklist", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { + TransferOwnership(context.Context, *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error) + AcceptOwnership(context.Context, *MsgAcceptOwnership) (*MsgAcceptOwnershipResponse, error) + AddToBlocklist(context.Context, *MsgAddToBlocklist) (*MsgAddToBlocklistResponse, error) + RemoveFromBlocklist(context.Context, *MsgRemoveFromBlocklist) (*MsgRemoveFromBlocklistResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. type UnimplementedMsgServer struct { } +func (*UnimplementedMsgServer) TransferOwnership(ctx context.Context, req *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferOwnership not implemented") +} +func (*UnimplementedMsgServer) AcceptOwnership(ctx context.Context, req *MsgAcceptOwnership) (*MsgAcceptOwnershipResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AcceptOwnership not implemented") +} +func (*UnimplementedMsgServer) AddToBlocklist(ctx context.Context, req *MsgAddToBlocklist) (*MsgAddToBlocklistResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddToBlocklist not implemented") +} +func (*UnimplementedMsgServer) RemoveFromBlocklist(ctx context.Context, req *MsgRemoveFromBlocklist) (*MsgRemoveFromBlocklistResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveFromBlocklist not implemented") +} + func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } +func _Msg_TransferOwnership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferOwnership) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).TransferOwnership(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ondo.usdy.blocklist.v1.Msg/TransferOwnership", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).TransferOwnership(ctx, req.(*MsgTransferOwnership)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AcceptOwnership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAcceptOwnership) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AcceptOwnership(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ondo.usdy.blocklist.v1.Msg/AcceptOwnership", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AcceptOwnership(ctx, req.(*MsgAcceptOwnership)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AddToBlocklist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddToBlocklist) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AddToBlocklist(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ondo.usdy.blocklist.v1.Msg/AddToBlocklist", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddToBlocklist(ctx, req.(*MsgAddToBlocklist)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RemoveFromBlocklist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoveFromBlocklist) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoveFromBlocklist(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ondo.usdy.blocklist.v1.Msg/RemoveFromBlocklist", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoveFromBlocklist(ctx, req.(*MsgRemoveFromBlocklist)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "ondo.usdy.blocklist.v1.Msg", HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "ondo/usdy/blocklist/v1/tx.proto", + Methods: []grpc.MethodDesc{ + { + MethodName: "TransferOwnership", + Handler: _Msg_TransferOwnership_Handler, + }, + { + MethodName: "AcceptOwnership", + Handler: _Msg_AcceptOwnership_Handler, + }, + { + MethodName: "AddToBlocklist", + Handler: _Msg_AddToBlocklist_Handler, + }, + { + MethodName: "RemoveFromBlocklist", + Handler: _Msg_RemoveFromBlocklist_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "ondo/usdy/blocklist/v1/tx.proto", +} + +func (m *MsgTransferOwnership) 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 *MsgTransferOwnership) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferOwnership) 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 = encodeVarintTx(dAtA, i, uint64(len(m.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(m.Signer) > 0 { + i -= len(m.Signer) + copy(dAtA[i:], m.Signer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Signer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgTransferOwnershipResponse) 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 *MsgTransferOwnershipResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferOwnershipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAcceptOwnership) 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 *MsgAcceptOwnership) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAcceptOwnership) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signer) > 0 { + i -= len(m.Signer) + copy(dAtA[i:], m.Signer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Signer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAcceptOwnershipResponse) 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 *MsgAcceptOwnershipResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAcceptOwnershipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAddToBlocklist) 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 *MsgAddToBlocklist) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddToBlocklist) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Accounts) > 0 { + for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Accounts[iNdEx]) + copy(dAtA[i:], m.Accounts[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Accounts[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Signer) > 0 { + i -= len(m.Signer) + copy(dAtA[i:], m.Signer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Signer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAddToBlocklistResponse) 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 *MsgAddToBlocklistResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddToBlocklistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRemoveFromBlocklist) 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 *MsgRemoveFromBlocklist) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } + +func (m *MsgRemoveFromBlocklist) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Accounts) > 0 { + for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Accounts[iNdEx]) + copy(dAtA[i:], m.Accounts[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Accounts[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Signer) > 0 { + i -= len(m.Signer) + copy(dAtA[i:], m.Signer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Signer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRemoveFromBlocklistResponse) 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 *MsgRemoveFromBlocklistResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoveFromBlocklistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgTransferOwnership) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Signer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NewOwner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgTransferOwnershipResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAcceptOwnership) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Signer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAcceptOwnershipResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAddToBlocklist) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Signer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Accounts) > 0 { + for _, s := range m.Accounts { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgAddToBlocklistResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRemoveFromBlocklist) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Signer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Accounts) > 0 { + for _, s := range m.Accounts { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgRemoveFromBlocklistResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgTransferOwnership) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferOwnership: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferOwnership: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signer = 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 ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferOwnershipResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferOwnershipResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAcceptOwnership) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAcceptOwnership: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAcceptOwnership: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAcceptOwnershipResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAcceptOwnershipResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAcceptOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAddToBlocklist) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAddToBlocklist: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAddToBlocklist: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Accounts = append(m.Accounts, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAddToBlocklistResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAddToBlocklistResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAddToBlocklistResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRemoveFromBlocklist) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRemoveFromBlocklist: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemoveFromBlocklist: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Accounts = append(m.Accounts, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRemoveFromBlocklistResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRemoveFromBlocklistResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemoveFromBlocklistResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/usdy/types/codec.go b/x/usdy/types/codec.go index d1d4736..5bd543a 100644 --- a/x/usdy/types/codec.go +++ b/x/usdy/types/codec.go @@ -5,14 +5,19 @@ import ( codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" + "github.com/noble-assets/ondo/x/usdy/types/blocklist" ) func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + blocklist.RegisterLegacyAminoCodec(cdc) + cdc.RegisterConcrete(&MsgPause{}, "ondo/usdy/Pause", nil) cdc.RegisterConcrete(&MsgUnpause{}, "ondo/usdy/Unpause", nil) } func RegisterInterfaces(registry codectypes.InterfaceRegistry) { + blocklist.RegisterInterfaces(registry) + registry.RegisterImplementations((*sdk.Msg)(nil), &MsgPause{}) registry.RegisterImplementations((*sdk.Msg)(nil), &MsgUnpause{})