From 93416e512b66820c3a2cb88e9ab4839de708c627 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 27 Feb 2024 15:52:10 +0530 Subject: [PATCH] Remove BlockChangeSet proto type --- api/cerc/registry/v1/registry.pulsar.go | 1781 +---------------------- proto/cerc/registry/v1/registry.proto | 16 - x/registry/keeper/keeper.go | 3 - x/registry/keeper/naming_keeper.go | 13 +- x/registry/registry.pb.go | 826 +---------- 5 files changed, 122 insertions(+), 2517 deletions(-) diff --git a/api/cerc/registry/v1/registry.pulsar.go b/api/cerc/registry/v1/registry.pulsar.go index 06aa874e..497fb74f 100644 --- a/api/cerc/registry/v1/registry.pulsar.go +++ b/api/cerc/registry/v1/registry.pulsar.go @@ -5586,1528 +5586,6 @@ func (x *fastReflection_Signature) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_BlockChangeSet_2_list)(nil) - -type _BlockChangeSet_2_list struct { - list *[]string -} - -func (x *_BlockChangeSet_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_BlockChangeSet_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_BlockChangeSet_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_BlockChangeSet_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_BlockChangeSet_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message BlockChangeSet at list field Records as it is not of Message kind")) -} - -func (x *_BlockChangeSet_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_BlockChangeSet_2_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_BlockChangeSet_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_BlockChangeSet_3_list)(nil) - -type _BlockChangeSet_3_list struct { - list *[]string -} - -func (x *_BlockChangeSet_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_BlockChangeSet_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_BlockChangeSet_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_BlockChangeSet_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_BlockChangeSet_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message BlockChangeSet at list field Auctions as it is not of Message kind")) -} - -func (x *_BlockChangeSet_3_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_BlockChangeSet_3_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_BlockChangeSet_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_BlockChangeSet_4_list)(nil) - -type _BlockChangeSet_4_list struct { - list *[]*AuctionBidInfo -} - -func (x *_BlockChangeSet_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_BlockChangeSet_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_BlockChangeSet_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AuctionBidInfo) - (*x.list)[i] = concreteValue -} - -func (x *_BlockChangeSet_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AuctionBidInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_BlockChangeSet_4_list) AppendMutable() protoreflect.Value { - v := new(AuctionBidInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_BlockChangeSet_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_BlockChangeSet_4_list) NewElement() protoreflect.Value { - v := new(AuctionBidInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_BlockChangeSet_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_BlockChangeSet_5_list)(nil) - -type _BlockChangeSet_5_list struct { - list *[]string -} - -func (x *_BlockChangeSet_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_BlockChangeSet_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_BlockChangeSet_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_BlockChangeSet_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_BlockChangeSet_5_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message BlockChangeSet at list field Authorities as it is not of Message kind")) -} - -func (x *_BlockChangeSet_5_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_BlockChangeSet_5_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_BlockChangeSet_5_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_BlockChangeSet_6_list)(nil) - -type _BlockChangeSet_6_list struct { - list *[]string -} - -func (x *_BlockChangeSet_6_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_BlockChangeSet_6_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_BlockChangeSet_6_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_BlockChangeSet_6_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_BlockChangeSet_6_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message BlockChangeSet at list field Names as it is not of Message kind")) -} - -func (x *_BlockChangeSet_6_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_BlockChangeSet_6_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_BlockChangeSet_6_list) IsValid() bool { - return x.list != nil -} - -var ( - md_BlockChangeSet protoreflect.MessageDescriptor - fd_BlockChangeSet_height protoreflect.FieldDescriptor - fd_BlockChangeSet_records protoreflect.FieldDescriptor - fd_BlockChangeSet_auctions protoreflect.FieldDescriptor - fd_BlockChangeSet_auction_bids protoreflect.FieldDescriptor - fd_BlockChangeSet_authorities protoreflect.FieldDescriptor - fd_BlockChangeSet_names protoreflect.FieldDescriptor -) - -func init() { - file_cerc_registry_v1_registry_proto_init() - md_BlockChangeSet = File_cerc_registry_v1_registry_proto.Messages().ByName("BlockChangeSet") - fd_BlockChangeSet_height = md_BlockChangeSet.Fields().ByName("height") - fd_BlockChangeSet_records = md_BlockChangeSet.Fields().ByName("records") - fd_BlockChangeSet_auctions = md_BlockChangeSet.Fields().ByName("auctions") - fd_BlockChangeSet_auction_bids = md_BlockChangeSet.Fields().ByName("auction_bids") - fd_BlockChangeSet_authorities = md_BlockChangeSet.Fields().ByName("authorities") - fd_BlockChangeSet_names = md_BlockChangeSet.Fields().ByName("names") -} - -var _ protoreflect.Message = (*fastReflection_BlockChangeSet)(nil) - -type fastReflection_BlockChangeSet BlockChangeSet - -func (x *BlockChangeSet) ProtoReflect() protoreflect.Message { - return (*fastReflection_BlockChangeSet)(x) -} - -func (x *BlockChangeSet) slowProtoReflect() protoreflect.Message { - mi := &file_cerc_registry_v1_registry_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_BlockChangeSet_messageType fastReflection_BlockChangeSet_messageType -var _ protoreflect.MessageType = fastReflection_BlockChangeSet_messageType{} - -type fastReflection_BlockChangeSet_messageType struct{} - -func (x fastReflection_BlockChangeSet_messageType) Zero() protoreflect.Message { - return (*fastReflection_BlockChangeSet)(nil) -} -func (x fastReflection_BlockChangeSet_messageType) New() protoreflect.Message { - return new(fastReflection_BlockChangeSet) -} -func (x fastReflection_BlockChangeSet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_BlockChangeSet -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_BlockChangeSet) Descriptor() protoreflect.MessageDescriptor { - return md_BlockChangeSet -} - -// 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_BlockChangeSet) Type() protoreflect.MessageType { - return _fastReflection_BlockChangeSet_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_BlockChangeSet) New() protoreflect.Message { - return new(fastReflection_BlockChangeSet) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_BlockChangeSet) Interface() protoreflect.ProtoMessage { - return (*BlockChangeSet)(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_BlockChangeSet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Height != int64(0) { - value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_BlockChangeSet_height, value) { - return - } - } - if len(x.Records) != 0 { - value := protoreflect.ValueOfList(&_BlockChangeSet_2_list{list: &x.Records}) - if !f(fd_BlockChangeSet_records, value) { - return - } - } - if len(x.Auctions) != 0 { - value := protoreflect.ValueOfList(&_BlockChangeSet_3_list{list: &x.Auctions}) - if !f(fd_BlockChangeSet_auctions, value) { - return - } - } - if len(x.AuctionBids) != 0 { - value := protoreflect.ValueOfList(&_BlockChangeSet_4_list{list: &x.AuctionBids}) - if !f(fd_BlockChangeSet_auction_bids, value) { - return - } - } - if len(x.Authorities) != 0 { - value := protoreflect.ValueOfList(&_BlockChangeSet_5_list{list: &x.Authorities}) - if !f(fd_BlockChangeSet_authorities, value) { - return - } - } - if len(x.Names) != 0 { - value := protoreflect.ValueOfList(&_BlockChangeSet_6_list{list: &x.Names}) - if !f(fd_BlockChangeSet_names, 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_BlockChangeSet) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cerc.registry.v1.BlockChangeSet.height": - return x.Height != int64(0) - case "cerc.registry.v1.BlockChangeSet.records": - return len(x.Records) != 0 - case "cerc.registry.v1.BlockChangeSet.auctions": - return len(x.Auctions) != 0 - case "cerc.registry.v1.BlockChangeSet.auction_bids": - return len(x.AuctionBids) != 0 - case "cerc.registry.v1.BlockChangeSet.authorities": - return len(x.Authorities) != 0 - case "cerc.registry.v1.BlockChangeSet.names": - return len(x.Names) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.BlockChangeSet")) - } - panic(fmt.Errorf("message cerc.registry.v1.BlockChangeSet 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_BlockChangeSet) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cerc.registry.v1.BlockChangeSet.height": - x.Height = int64(0) - case "cerc.registry.v1.BlockChangeSet.records": - x.Records = nil - case "cerc.registry.v1.BlockChangeSet.auctions": - x.Auctions = nil - case "cerc.registry.v1.BlockChangeSet.auction_bids": - x.AuctionBids = nil - case "cerc.registry.v1.BlockChangeSet.authorities": - x.Authorities = nil - case "cerc.registry.v1.BlockChangeSet.names": - x.Names = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.BlockChangeSet")) - } - panic(fmt.Errorf("message cerc.registry.v1.BlockChangeSet 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_BlockChangeSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cerc.registry.v1.BlockChangeSet.height": - value := x.Height - return protoreflect.ValueOfInt64(value) - case "cerc.registry.v1.BlockChangeSet.records": - if len(x.Records) == 0 { - return protoreflect.ValueOfList(&_BlockChangeSet_2_list{}) - } - listValue := &_BlockChangeSet_2_list{list: &x.Records} - return protoreflect.ValueOfList(listValue) - case "cerc.registry.v1.BlockChangeSet.auctions": - if len(x.Auctions) == 0 { - return protoreflect.ValueOfList(&_BlockChangeSet_3_list{}) - } - listValue := &_BlockChangeSet_3_list{list: &x.Auctions} - return protoreflect.ValueOfList(listValue) - case "cerc.registry.v1.BlockChangeSet.auction_bids": - if len(x.AuctionBids) == 0 { - return protoreflect.ValueOfList(&_BlockChangeSet_4_list{}) - } - listValue := &_BlockChangeSet_4_list{list: &x.AuctionBids} - return protoreflect.ValueOfList(listValue) - case "cerc.registry.v1.BlockChangeSet.authorities": - if len(x.Authorities) == 0 { - return protoreflect.ValueOfList(&_BlockChangeSet_5_list{}) - } - listValue := &_BlockChangeSet_5_list{list: &x.Authorities} - return protoreflect.ValueOfList(listValue) - case "cerc.registry.v1.BlockChangeSet.names": - if len(x.Names) == 0 { - return protoreflect.ValueOfList(&_BlockChangeSet_6_list{}) - } - listValue := &_BlockChangeSet_6_list{list: &x.Names} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.BlockChangeSet")) - } - panic(fmt.Errorf("message cerc.registry.v1.BlockChangeSet 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_BlockChangeSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cerc.registry.v1.BlockChangeSet.height": - x.Height = value.Int() - case "cerc.registry.v1.BlockChangeSet.records": - lv := value.List() - clv := lv.(*_BlockChangeSet_2_list) - x.Records = *clv.list - case "cerc.registry.v1.BlockChangeSet.auctions": - lv := value.List() - clv := lv.(*_BlockChangeSet_3_list) - x.Auctions = *clv.list - case "cerc.registry.v1.BlockChangeSet.auction_bids": - lv := value.List() - clv := lv.(*_BlockChangeSet_4_list) - x.AuctionBids = *clv.list - case "cerc.registry.v1.BlockChangeSet.authorities": - lv := value.List() - clv := lv.(*_BlockChangeSet_5_list) - x.Authorities = *clv.list - case "cerc.registry.v1.BlockChangeSet.names": - lv := value.List() - clv := lv.(*_BlockChangeSet_6_list) - x.Names = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.BlockChangeSet")) - } - panic(fmt.Errorf("message cerc.registry.v1.BlockChangeSet 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_BlockChangeSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cerc.registry.v1.BlockChangeSet.records": - if x.Records == nil { - x.Records = []string{} - } - value := &_BlockChangeSet_2_list{list: &x.Records} - return protoreflect.ValueOfList(value) - case "cerc.registry.v1.BlockChangeSet.auctions": - if x.Auctions == nil { - x.Auctions = []string{} - } - value := &_BlockChangeSet_3_list{list: &x.Auctions} - return protoreflect.ValueOfList(value) - case "cerc.registry.v1.BlockChangeSet.auction_bids": - if x.AuctionBids == nil { - x.AuctionBids = []*AuctionBidInfo{} - } - value := &_BlockChangeSet_4_list{list: &x.AuctionBids} - return protoreflect.ValueOfList(value) - case "cerc.registry.v1.BlockChangeSet.authorities": - if x.Authorities == nil { - x.Authorities = []string{} - } - value := &_BlockChangeSet_5_list{list: &x.Authorities} - return protoreflect.ValueOfList(value) - case "cerc.registry.v1.BlockChangeSet.names": - if x.Names == nil { - x.Names = []string{} - } - value := &_BlockChangeSet_6_list{list: &x.Names} - return protoreflect.ValueOfList(value) - case "cerc.registry.v1.BlockChangeSet.height": - panic(fmt.Errorf("field height of message cerc.registry.v1.BlockChangeSet is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.BlockChangeSet")) - } - panic(fmt.Errorf("message cerc.registry.v1.BlockChangeSet 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_BlockChangeSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cerc.registry.v1.BlockChangeSet.height": - return protoreflect.ValueOfInt64(int64(0)) - case "cerc.registry.v1.BlockChangeSet.records": - list := []string{} - return protoreflect.ValueOfList(&_BlockChangeSet_2_list{list: &list}) - case "cerc.registry.v1.BlockChangeSet.auctions": - list := []string{} - return protoreflect.ValueOfList(&_BlockChangeSet_3_list{list: &list}) - case "cerc.registry.v1.BlockChangeSet.auction_bids": - list := []*AuctionBidInfo{} - return protoreflect.ValueOfList(&_BlockChangeSet_4_list{list: &list}) - case "cerc.registry.v1.BlockChangeSet.authorities": - list := []string{} - return protoreflect.ValueOfList(&_BlockChangeSet_5_list{list: &list}) - case "cerc.registry.v1.BlockChangeSet.names": - list := []string{} - return protoreflect.ValueOfList(&_BlockChangeSet_6_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.BlockChangeSet")) - } - panic(fmt.Errorf("message cerc.registry.v1.BlockChangeSet 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_BlockChangeSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.BlockChangeSet", 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_BlockChangeSet) 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_BlockChangeSet) 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_BlockChangeSet) 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_BlockChangeSet) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*BlockChangeSet) - 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.Height != 0 { - n += 1 + runtime.Sov(uint64(x.Height)) - } - if len(x.Records) > 0 { - for _, s := range x.Records { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Auctions) > 0 { - for _, s := range x.Auctions { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.AuctionBids) > 0 { - for _, e := range x.AuctionBids { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Authorities) > 0 { - for _, s := range x.Authorities { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Names) > 0 { - for _, s := range x.Names { - 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().(*BlockChangeSet) - 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.Names) > 0 { - for iNdEx := len(x.Names) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Names[iNdEx]) - copy(dAtA[i:], x.Names[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Names[iNdEx]))) - i-- - dAtA[i] = 0x32 - } - } - if len(x.Authorities) > 0 { - for iNdEx := len(x.Authorities) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Authorities[iNdEx]) - copy(dAtA[i:], x.Authorities[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authorities[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(x.AuctionBids) > 0 { - for iNdEx := len(x.AuctionBids) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.AuctionBids[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.Auctions) > 0 { - for iNdEx := len(x.Auctions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Auctions[iNdEx]) - copy(dAtA[i:], x.Auctions[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Auctions[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(x.Records) > 0 { - for iNdEx := len(x.Records) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Records[iNdEx]) - copy(dAtA[i:], x.Records[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Records[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if x.Height != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Height)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*BlockChangeSet) - 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: BlockChangeSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockChangeSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - x.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Height |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Records", 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.Records = append(x.Records, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Auctions", 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.Auctions = append(x.Auctions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AuctionBids", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.AuctionBids = append(x.AuctionBids, &AuctionBidInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AuctionBids[len(x.AuctionBids)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authorities", 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.Authorities = append(x.Authorities, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Names", 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.Names = append(x.Names, 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_AuctionBidInfo protoreflect.MessageDescriptor - fd_AuctionBidInfo_auction_id protoreflect.FieldDescriptor - fd_AuctionBidInfo_bidder_address protoreflect.FieldDescriptor -) - -func init() { - file_cerc_registry_v1_registry_proto_init() - md_AuctionBidInfo = File_cerc_registry_v1_registry_proto.Messages().ByName("AuctionBidInfo") - fd_AuctionBidInfo_auction_id = md_AuctionBidInfo.Fields().ByName("auction_id") - fd_AuctionBidInfo_bidder_address = md_AuctionBidInfo.Fields().ByName("bidder_address") -} - -var _ protoreflect.Message = (*fastReflection_AuctionBidInfo)(nil) - -type fastReflection_AuctionBidInfo AuctionBidInfo - -func (x *AuctionBidInfo) ProtoReflect() protoreflect.Message { - return (*fastReflection_AuctionBidInfo)(x) -} - -func (x *AuctionBidInfo) slowProtoReflect() protoreflect.Message { - mi := &file_cerc_registry_v1_registry_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_AuctionBidInfo_messageType fastReflection_AuctionBidInfo_messageType -var _ protoreflect.MessageType = fastReflection_AuctionBidInfo_messageType{} - -type fastReflection_AuctionBidInfo_messageType struct{} - -func (x fastReflection_AuctionBidInfo_messageType) Zero() protoreflect.Message { - return (*fastReflection_AuctionBidInfo)(nil) -} -func (x fastReflection_AuctionBidInfo_messageType) New() protoreflect.Message { - return new(fastReflection_AuctionBidInfo) -} -func (x fastReflection_AuctionBidInfo_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AuctionBidInfo -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_AuctionBidInfo) Descriptor() protoreflect.MessageDescriptor { - return md_AuctionBidInfo -} - -// 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_AuctionBidInfo) Type() protoreflect.MessageType { - return _fastReflection_AuctionBidInfo_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_AuctionBidInfo) New() protoreflect.Message { - return new(fastReflection_AuctionBidInfo) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_AuctionBidInfo) Interface() protoreflect.ProtoMessage { - return (*AuctionBidInfo)(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_AuctionBidInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.AuctionId != "" { - value := protoreflect.ValueOfString(x.AuctionId) - if !f(fd_AuctionBidInfo_auction_id, value) { - return - } - } - if x.BidderAddress != "" { - value := protoreflect.ValueOfString(x.BidderAddress) - if !f(fd_AuctionBidInfo_bidder_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_AuctionBidInfo) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cerc.registry.v1.AuctionBidInfo.auction_id": - return x.AuctionId != "" - case "cerc.registry.v1.AuctionBidInfo.bidder_address": - return x.BidderAddress != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuctionBidInfo")) - } - panic(fmt.Errorf("message cerc.registry.v1.AuctionBidInfo 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_AuctionBidInfo) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cerc.registry.v1.AuctionBidInfo.auction_id": - x.AuctionId = "" - case "cerc.registry.v1.AuctionBidInfo.bidder_address": - x.BidderAddress = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuctionBidInfo")) - } - panic(fmt.Errorf("message cerc.registry.v1.AuctionBidInfo 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_AuctionBidInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cerc.registry.v1.AuctionBidInfo.auction_id": - value := x.AuctionId - return protoreflect.ValueOfString(value) - case "cerc.registry.v1.AuctionBidInfo.bidder_address": - value := x.BidderAddress - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuctionBidInfo")) - } - panic(fmt.Errorf("message cerc.registry.v1.AuctionBidInfo 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_AuctionBidInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cerc.registry.v1.AuctionBidInfo.auction_id": - x.AuctionId = value.Interface().(string) - case "cerc.registry.v1.AuctionBidInfo.bidder_address": - x.BidderAddress = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuctionBidInfo")) - } - panic(fmt.Errorf("message cerc.registry.v1.AuctionBidInfo 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_AuctionBidInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cerc.registry.v1.AuctionBidInfo.auction_id": - panic(fmt.Errorf("field auction_id of message cerc.registry.v1.AuctionBidInfo is not mutable")) - case "cerc.registry.v1.AuctionBidInfo.bidder_address": - panic(fmt.Errorf("field bidder_address of message cerc.registry.v1.AuctionBidInfo is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuctionBidInfo")) - } - panic(fmt.Errorf("message cerc.registry.v1.AuctionBidInfo 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_AuctionBidInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cerc.registry.v1.AuctionBidInfo.auction_id": - return protoreflect.ValueOfString("") - case "cerc.registry.v1.AuctionBidInfo.bidder_address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuctionBidInfo")) - } - panic(fmt.Errorf("message cerc.registry.v1.AuctionBidInfo 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_AuctionBidInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.AuctionBidInfo", 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_AuctionBidInfo) 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_AuctionBidInfo) 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_AuctionBidInfo) 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_AuctionBidInfo) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AuctionBidInfo) - 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.AuctionId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.BidderAddress) - 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().(*AuctionBidInfo) - 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.BidderAddress) > 0 { - i -= len(x.BidderAddress) - copy(dAtA[i:], x.BidderAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BidderAddress))) - i-- - dAtA[i] = 0x12 - } - if len(x.AuctionId) > 0 { - i -= len(x.AuctionId) - copy(dAtA[i:], x.AuctionId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AuctionId))) - 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().(*AuctionBidInfo) - 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: AuctionBidInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AuctionBidInfo: 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 AuctionId", 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.AuctionId = 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 BidderAddress", 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.BidderAddress = 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 = (*_ExpiryQueue_2_list)(nil) type _ExpiryQueue_2_list struct { @@ -7176,7 +5654,7 @@ func (x *ExpiryQueue) ProtoReflect() protoreflect.Message { } func (x *ExpiryQueue) slowProtoReflect() protoreflect.Message { - mi := &file_cerc_registry_v1_registry_proto_msgTypes[10] + mi := &file_cerc_registry_v1_registry_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8188,126 +6666,6 @@ func (x *Signature) GetPubKey() string { return "" } -// BlockChangeSet -type BlockChangeSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` - Records []string `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` - Auctions []string `protobuf:"bytes,3,rep,name=auctions,proto3" json:"auctions,omitempty"` - AuctionBids []*AuctionBidInfo `protobuf:"bytes,4,rep,name=auction_bids,json=auctionBids,proto3" json:"auction_bids,omitempty"` - Authorities []string `protobuf:"bytes,5,rep,name=authorities,proto3" json:"authorities,omitempty"` - Names []string `protobuf:"bytes,6,rep,name=names,proto3" json:"names,omitempty"` -} - -func (x *BlockChangeSet) Reset() { - *x = BlockChangeSet{} - if protoimpl.UnsafeEnabled { - mi := &file_cerc_registry_v1_registry_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BlockChangeSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BlockChangeSet) ProtoMessage() {} - -// Deprecated: Use BlockChangeSet.ProtoReflect.Descriptor instead. -func (*BlockChangeSet) Descriptor() ([]byte, []int) { - return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{8} -} - -func (x *BlockChangeSet) GetHeight() int64 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *BlockChangeSet) GetRecords() []string { - if x != nil { - return x.Records - } - return nil -} - -func (x *BlockChangeSet) GetAuctions() []string { - if x != nil { - return x.Auctions - } - return nil -} - -func (x *BlockChangeSet) GetAuctionBids() []*AuctionBidInfo { - if x != nil { - return x.AuctionBids - } - return nil -} - -func (x *BlockChangeSet) GetAuthorities() []string { - if x != nil { - return x.Authorities - } - return nil -} - -func (x *BlockChangeSet) GetNames() []string { - if x != nil { - return x.Names - } - return nil -} - -// AuctionBidInfo -type AuctionBidInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` - BidderAddress string `protobuf:"bytes,2,opt,name=bidder_address,json=bidderAddress,proto3" json:"bidder_address,omitempty"` -} - -func (x *AuctionBidInfo) Reset() { - *x = AuctionBidInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cerc_registry_v1_registry_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuctionBidInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuctionBidInfo) ProtoMessage() {} - -// Deprecated: Use AuctionBidInfo.ProtoReflect.Descriptor instead. -func (*AuctionBidInfo) Descriptor() ([]byte, []int) { - return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{9} -} - -func (x *AuctionBidInfo) GetAuctionId() string { - if x != nil { - return x.AuctionId - } - return "" -} - -func (x *AuctionBidInfo) GetBidderAddress() string { - if x != nil { - return x.BidderAddress - } - return "" -} - // ExpiryQueue: record / authority expiry queue type // id: expiry time // value: array of ids (record cids / authority names) @@ -8323,7 +6681,7 @@ type ExpiryQueue struct { func (x *ExpiryQueue) Reset() { *x = ExpiryQueue{} if protoimpl.UnsafeEnabled { - mi := &file_cerc_registry_v1_registry_proto_msgTypes[10] + mi := &file_cerc_registry_v1_registry_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8337,7 +6695,7 @@ func (*ExpiryQueue) ProtoMessage() {} // Deprecated: Use ExpiryQueue.ProtoReflect.Descriptor instead. func (*ExpiryQueue) Descriptor() ([]byte, []int) { - return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{10} + return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{8} } func (x *ExpiryQueue) GetId() string { @@ -8571,51 +6929,23 @@ var file_cerc_registry_v1_registry_proto_rawDesc = []byte{ 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xf2, 0xde, 0x1f, 0x1d, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, - 0x22, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x88, 0x02, 0x0a, 0x0e, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1a, - 0x0a, 0x08, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x08, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x70, 0x0a, 0x0c, 0x61, 0x75, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x69, 0x64, 0x49, 0x6e, - 0x66, 0x6f, 0x42, 0x2b, 0xf2, 0xde, 0x1f, 0x27, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x75, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x69, 0x64, 0x73, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, - 0x3a, 0x22, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x69, 0x64, 0x73, 0x22, 0x52, - 0x0b, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x69, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x14, - 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, - 0x61, 0x6d, 0x65, 0x73, 0x22, 0xb0, 0x01, 0x0a, 0x0e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x42, 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x46, 0x0a, 0x0a, 0x61, 0x75, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xf2, 0xde, 0x1f, - 0x23, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x22, 0x52, 0x09, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x56, 0x0a, 0x0e, 0x62, 0x69, 0x64, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2f, 0xf2, 0xde, 0x1f, 0x2b, 0x6a, 0x73, 0x6f, - 0x6e, 0x3a, 0x22, 0x62, 0x69, 0x64, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x69, 0x64, 0x64, 0x65, 0x72, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x52, 0x0d, 0x62, 0x69, 0x64, 0x64, 0x65, 0x72, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x45, 0x78, 0x70, 0x69, 0x72, - 0x79, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0xc5, 0x01, 0x0a, - 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x2e, 0x76, 0x64, 0x62, 0x2e, - 0x74, 0x6f, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x63, 0x6f, 0x6e, - 0x69, 0x63, 0x32, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x10, 0x43, 0x65, 0x72, - 0x63, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, - 0x43, 0x65, 0x72, 0x63, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x1c, 0x43, 0x65, 0x72, 0x63, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x12, 0x43, 0x65, 0x72, 0x63, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x22, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x33, 0x0a, 0x0b, 0x45, 0x78, 0x70, + 0x69, 0x72, 0x79, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0xc5, + 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x2e, 0x76, 0x64, + 0x62, 0x2e, 0x74, 0x6f, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x63, + 0x6f, 0x6e, 0x69, 0x63, 0x32, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x10, 0x43, + 0x65, 0x72, 0x63, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x10, 0x43, 0x65, 0x72, 0x63, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x43, 0x65, 0x72, 0x63, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x12, 0x43, 0x65, 0x72, 0x63, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -8630,7 +6960,7 @@ func file_cerc_registry_v1_registry_proto_rawDescGZIP() []byte { return file_cerc_registry_v1_registry_proto_rawDescData } -var file_cerc_registry_v1_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_cerc_registry_v1_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_cerc_registry_v1_registry_proto_goTypes = []interface{}{ (*Params)(nil), // 0: cerc.registry.v1.Params (*Record)(nil), // 1: cerc.registry.v1.Record @@ -8640,35 +6970,32 @@ var file_cerc_registry_v1_registry_proto_goTypes = []interface{}{ (*NameRecord)(nil), // 5: cerc.registry.v1.NameRecord (*NameRecordEntry)(nil), // 6: cerc.registry.v1.NameRecordEntry (*Signature)(nil), // 7: cerc.registry.v1.Signature - (*BlockChangeSet)(nil), // 8: cerc.registry.v1.BlockChangeSet - (*AuctionBidInfo)(nil), // 9: cerc.registry.v1.AuctionBidInfo - (*ExpiryQueue)(nil), // 10: cerc.registry.v1.ExpiryQueue - (*v1beta1.Coin)(nil), // 11: cosmos.base.v1beta1.Coin - (*durationpb.Duration)(nil), // 12: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*ExpiryQueue)(nil), // 8: cerc.registry.v1.ExpiryQueue + (*v1beta1.Coin)(nil), // 9: cosmos.base.v1beta1.Coin + (*durationpb.Duration)(nil), // 10: google.protobuf.Duration + (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp } var file_cerc_registry_v1_registry_proto_depIdxs = []int32{ - 11, // 0: cerc.registry.v1.Params.record_rent:type_name -> cosmos.base.v1beta1.Coin - 12, // 1: cerc.registry.v1.Params.record_rent_duration:type_name -> google.protobuf.Duration - 11, // 2: cerc.registry.v1.Params.authority_rent:type_name -> cosmos.base.v1beta1.Coin - 12, // 3: cerc.registry.v1.Params.authority_rent_duration:type_name -> google.protobuf.Duration - 12, // 4: cerc.registry.v1.Params.authority_grace_period:type_name -> google.protobuf.Duration - 12, // 5: cerc.registry.v1.Params.authority_auction_commits_duration:type_name -> google.protobuf.Duration - 12, // 6: cerc.registry.v1.Params.authority_auction_reveals_duration:type_name -> google.protobuf.Duration - 11, // 7: cerc.registry.v1.Params.authority_auction_commit_fee:type_name -> cosmos.base.v1beta1.Coin - 11, // 8: cerc.registry.v1.Params.authority_auction_reveal_fee:type_name -> cosmos.base.v1beta1.Coin - 11, // 9: cerc.registry.v1.Params.authority_auction_minimum_bid:type_name -> cosmos.base.v1beta1.Coin + 9, // 0: cerc.registry.v1.Params.record_rent:type_name -> cosmos.base.v1beta1.Coin + 10, // 1: cerc.registry.v1.Params.record_rent_duration:type_name -> google.protobuf.Duration + 9, // 2: cerc.registry.v1.Params.authority_rent:type_name -> cosmos.base.v1beta1.Coin + 10, // 3: cerc.registry.v1.Params.authority_rent_duration:type_name -> google.protobuf.Duration + 10, // 4: cerc.registry.v1.Params.authority_grace_period:type_name -> google.protobuf.Duration + 10, // 5: cerc.registry.v1.Params.authority_auction_commits_duration:type_name -> google.protobuf.Duration + 10, // 6: cerc.registry.v1.Params.authority_auction_reveals_duration:type_name -> google.protobuf.Duration + 9, // 7: cerc.registry.v1.Params.authority_auction_commit_fee:type_name -> cosmos.base.v1beta1.Coin + 9, // 8: cerc.registry.v1.Params.authority_auction_reveal_fee:type_name -> cosmos.base.v1beta1.Coin + 9, // 9: cerc.registry.v1.Params.authority_auction_minimum_bid:type_name -> cosmos.base.v1beta1.Coin 3, // 10: cerc.registry.v1.AuthorityEntry.entry:type_name -> cerc.registry.v1.NameAuthority - 13, // 11: cerc.registry.v1.NameAuthority.expiry_time:type_name -> google.protobuf.Timestamp + 11, // 11: cerc.registry.v1.NameAuthority.expiry_time:type_name -> google.protobuf.Timestamp 5, // 12: cerc.registry.v1.NameEntry.entry:type_name -> cerc.registry.v1.NameRecord 6, // 13: cerc.registry.v1.NameRecord.latest:type_name -> cerc.registry.v1.NameRecordEntry 6, // 14: cerc.registry.v1.NameRecord.history:type_name -> cerc.registry.v1.NameRecordEntry - 9, // 15: cerc.registry.v1.BlockChangeSet.auction_bids:type_name -> cerc.registry.v1.AuctionBidInfo - 16, // [16:16] is the sub-list for method output_type - 16, // [16:16] is the sub-list for method input_type - 16, // [16:16] is the sub-list for extension type_name - 16, // [16:16] is the sub-list for extension extendee - 0, // [0:16] is the sub-list for field type_name + 15, // [15:15] is the sub-list for method output_type + 15, // [15:15] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name } func init() { file_cerc_registry_v1_registry_proto_init() } @@ -8774,30 +7101,6 @@ func file_cerc_registry_v1_registry_proto_init() { } } file_cerc_registry_v1_registry_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockChangeSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cerc_registry_v1_registry_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuctionBidInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cerc_registry_v1_registry_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExpiryQueue); i { case 0: return &v.state @@ -8816,7 +7119,7 @@ func file_cerc_registry_v1_registry_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_cerc_registry_v1_registry_proto_rawDesc, NumEnums: 0, - NumMessages: 11, + NumMessages: 9, NumExtensions: 0, NumServices: 0, }, diff --git a/proto/cerc/registry/v1/registry.proto b/proto/cerc/registry/v1/registry.proto index 6861ecb7..001a6ea5 100644 --- a/proto/cerc/registry/v1/registry.proto +++ b/proto/cerc/registry/v1/registry.proto @@ -131,22 +131,6 @@ message Signature { string pub_key = 2 [(gogoproto.moretags) = "json:\"pub_key\" yaml:\"pub_key\""]; } -// BlockChangeSet -message BlockChangeSet { - int64 height = 1; - repeated string records = 2; - repeated string auctions = 3; - repeated AuctionBidInfo auction_bids = 4 [(gogoproto.moretags) = "json:\"auction_bids\" yaml:\"auction_bids\""]; - repeated string authorities = 5; - repeated string names = 6; -} - -// AuctionBidInfo -message AuctionBidInfo { - string auction_id = 1 [(gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\""]; - string bidder_address = 2 [(gogoproto.moretags) = "json:\"bidder_address\" yaml:\"bidder_address\""]; -} - // ExpiryQueue: record / authority expiry queue type // id: expiry time // value: array of ids (record cids / authority names) diff --git a/x/registry/keeper/keeper.go b/x/registry/keeper/keeper.go index a42ac64b..d09bdc2a 100644 --- a/x/registry/keeper/keeper.go +++ b/x/registry/keeper/keeper.go @@ -246,9 +246,6 @@ func (k Keeper) RecordsFromAttributes(ctx sdk.Context, attributes []*registrytyp // PutRecord - saves a record to the store. func (k Keeper) SaveRecord(ctx sdk.Context, record registrytypes.Record) error { return k.Records.Set(ctx, record.Id, record) - - // TODO - // k.updateBlockChangeSetForRecord(ctx, record.Id) } // ProcessSetRecord creates a record. diff --git a/x/registry/keeper/naming_keeper.go b/x/registry/keeper/naming_keeper.go index 3880cbe9..0808c01e 100644 --- a/x/registry/keeper/naming_keeper.go +++ b/x/registry/keeper/naming_keeper.go @@ -133,15 +133,7 @@ func (k Keeper) SaveNameRecord(ctx sdk.Context, crn string, id string) error { } // TODO: Check if index gets updated on entry updates - if err := k.NameRecords.Set(ctx, crn, nameRecord); err != nil { - return err - } - - // TODO - // Update changeSet for name. - // k.updateBlockChangeSetForName(ctx, crn) - - return nil + return k.NameRecords.Set(ctx, crn, nameRecord) } // SetName creates a CRN -> Record ID mapping. @@ -169,9 +161,6 @@ func (k Keeper) SetName(ctx sdk.Context, msg registrytypes.MsgSetName) error { // SaveNameAuthority creates the NameAuthority record. func (k Keeper) SaveNameAuthority(ctx sdk.Context, name string, authority *registrytypes.NameAuthority) error { return k.Authorities.Set(ctx, name, *authority) - - // TODO - // updateBlockChangeSetForNameAuthority(ctx, codec, store, name) } // ReserveAuthority reserves a name authority. diff --git a/x/registry/registry.pb.go b/x/registry/registry.pb.go index 21912a83..3fff0fa0 100644 --- a/x/registry/registry.pb.go +++ b/x/registry/registry.pb.go @@ -624,144 +624,6 @@ func (m *Signature) GetPubKey() string { return "" } -// BlockChangeSet -type BlockChangeSet struct { - Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` - Records []string `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` - Auctions []string `protobuf:"bytes,3,rep,name=auctions,proto3" json:"auctions,omitempty"` - AuctionBids []*AuctionBidInfo `protobuf:"bytes,4,rep,name=auction_bids,json=auctionBids,proto3" json:"auction_bids,omitempty" json:"auction_bids" yaml:"auction_bids"` - Authorities []string `protobuf:"bytes,5,rep,name=authorities,proto3" json:"authorities,omitempty"` - Names []string `protobuf:"bytes,6,rep,name=names,proto3" json:"names,omitempty"` -} - -func (m *BlockChangeSet) Reset() { *m = BlockChangeSet{} } -func (m *BlockChangeSet) String() string { return proto.CompactTextString(m) } -func (*BlockChangeSet) ProtoMessage() {} -func (*BlockChangeSet) Descriptor() ([]byte, []int) { - return fileDescriptor_d792f2373089b5b9, []int{8} -} -func (m *BlockChangeSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockChangeSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockChangeSet.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 *BlockChangeSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockChangeSet.Merge(m, src) -} -func (m *BlockChangeSet) XXX_Size() int { - return m.Size() -} -func (m *BlockChangeSet) XXX_DiscardUnknown() { - xxx_messageInfo_BlockChangeSet.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockChangeSet proto.InternalMessageInfo - -func (m *BlockChangeSet) GetHeight() int64 { - if m != nil { - return m.Height - } - return 0 -} - -func (m *BlockChangeSet) GetRecords() []string { - if m != nil { - return m.Records - } - return nil -} - -func (m *BlockChangeSet) GetAuctions() []string { - if m != nil { - return m.Auctions - } - return nil -} - -func (m *BlockChangeSet) GetAuctionBids() []*AuctionBidInfo { - if m != nil { - return m.AuctionBids - } - return nil -} - -func (m *BlockChangeSet) GetAuthorities() []string { - if m != nil { - return m.Authorities - } - return nil -} - -func (m *BlockChangeSet) GetNames() []string { - if m != nil { - return m.Names - } - return nil -} - -// AuctionBidInfo -type AuctionBidInfo struct { - AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty" json:"auction_id" yaml:"auction_id"` - BidderAddress string `protobuf:"bytes,2,opt,name=bidder_address,json=bidderAddress,proto3" json:"bidder_address,omitempty" json:"bidder_address" yaml:"bidder_address"` -} - -func (m *AuctionBidInfo) Reset() { *m = AuctionBidInfo{} } -func (m *AuctionBidInfo) String() string { return proto.CompactTextString(m) } -func (*AuctionBidInfo) ProtoMessage() {} -func (*AuctionBidInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_d792f2373089b5b9, []int{9} -} -func (m *AuctionBidInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AuctionBidInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AuctionBidInfo.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 *AuctionBidInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuctionBidInfo.Merge(m, src) -} -func (m *AuctionBidInfo) XXX_Size() int { - return m.Size() -} -func (m *AuctionBidInfo) XXX_DiscardUnknown() { - xxx_messageInfo_AuctionBidInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_AuctionBidInfo proto.InternalMessageInfo - -func (m *AuctionBidInfo) GetAuctionId() string { - if m != nil { - return m.AuctionId - } - return "" -} - -func (m *AuctionBidInfo) GetBidderAddress() string { - if m != nil { - return m.BidderAddress - } - return "" -} - // ExpiryQueue: record / authority expiry queue type // id: expiry time // value: array of ids (record cids / authority names) @@ -774,7 +636,7 @@ func (m *ExpiryQueue) Reset() { *m = ExpiryQueue{} } func (m *ExpiryQueue) String() string { return proto.CompactTextString(m) } func (*ExpiryQueue) ProtoMessage() {} func (*ExpiryQueue) Descriptor() ([]byte, []int) { - return fileDescriptor_d792f2373089b5b9, []int{10} + return fileDescriptor_d792f2373089b5b9, []int{8} } func (m *ExpiryQueue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -826,101 +688,90 @@ func init() { proto.RegisterType((*NameRecord)(nil), "cerc.registry.v1.NameRecord") proto.RegisterType((*NameRecordEntry)(nil), "cerc.registry.v1.NameRecordEntry") proto.RegisterType((*Signature)(nil), "cerc.registry.v1.Signature") - proto.RegisterType((*BlockChangeSet)(nil), "cerc.registry.v1.BlockChangeSet") - proto.RegisterType((*AuctionBidInfo)(nil), "cerc.registry.v1.AuctionBidInfo") proto.RegisterType((*ExpiryQueue)(nil), "cerc.registry.v1.ExpiryQueue") } func init() { proto.RegisterFile("cerc/registry/v1/registry.proto", fileDescriptor_d792f2373089b5b9) } var fileDescriptor_d792f2373089b5b9 = []byte{ - // 1365 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xc6, 0x89, 0x13, 0x3f, 0x37, 0xa1, 0x1a, 0xd2, 0xd6, 0x09, 0xad, 0x37, 0x35, 0x42, - 0x69, 0x55, 0xd5, 0xab, 0x34, 0x42, 0x55, 0x5b, 0x71, 0xc8, 0x86, 0x34, 0x0a, 0x15, 0xd0, 0x4e, - 0x2a, 0x0e, 0x20, 0x64, 0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0xdc, 0xa4, 0x81, 0xd1, 0xb3, 0x9c, 0xc0, 0xa7, 0xce, 0x2d, 0xd7, 0x78, 0x96, - 0xfe, 0x83, 0xdb, 0x55, 0x31, 0x15, 0xf6, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x85, 0xe1, - 0xaf, 0xa7, 0x0f, 0x00, 0x00, + // 1221 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0xcb, 0x6e, 0xdb, 0x46, + 0x17, 0x36, 0x6d, 0x59, 0xb6, 0x8e, 0x63, 0xff, 0xc1, 0xfc, 0x4e, 0x22, 0xbb, 0xb1, 0xe8, 0xa8, + 0x28, 0xec, 0x20, 0x30, 0x09, 0xd9, 0x28, 0x82, 0x24, 0xe8, 0xc2, 0x72, 0x1d, 0xc3, 0x0d, 0xda, + 0x3a, 0xe3, 0xac, 0x5a, 0x14, 0x02, 0x2f, 0x13, 0x79, 0x5a, 0x91, 0x14, 0xc8, 0xa1, 0x1a, 0x2d, + 0x0b, 0x74, 0xd3, 0x9d, 0x97, 0x59, 0xf4, 0x0d, 0xba, 0xe8, 0x63, 0x34, 0xcb, 0x2c, 0xbb, 0x29, + 0x5b, 0xd8, 0x40, 0x1f, 0x40, 0x4f, 0x50, 0x70, 0x66, 0x78, 0x95, 0x14, 0xb5, 0xc8, 0x8e, 0xe7, + 0xf6, 0xcd, 0x37, 0xdf, 0x9c, 0xb9, 0x10, 0x54, 0x8b, 0xf8, 0x96, 0xee, 0x93, 0x2e, 0x0d, 0x98, + 0x3f, 0xd4, 0x07, 0xad, 0xf4, 0x5b, 0xeb, 0xfb, 0x1e, 0xf3, 0xd0, 0xcd, 0x38, 0x41, 0x4b, 0x9d, + 0x83, 0xd6, 0x66, 0xa3, 0xeb, 0x79, 0xdd, 0x1e, 0xd1, 0x79, 0xdc, 0x0c, 0x5f, 0xea, 0x76, 0xe8, + 0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0x3a, 0xb8, 0x12, 0x3f, 0x2b, 0x70, 0xa7, 0x98, + 0x92, 0x89, 0x51, 0x99, 0x25, 0xc6, 0xa9, 0x24, 0xf0, 0xc9, 0x24, 0x02, 0x63, 0x7a, 0x4c, 0x0b, + 0x73, 0x49, 0x6e, 0x15, 0x68, 0xa5, 0xaa, 0xbc, 0x56, 0xe0, 0x76, 0x56, 0xd7, 0xf5, 0x0d, 0x8b, + 0x74, 0xfa, 0xc4, 0xa7, 0x9e, 0x5d, 0x5f, 0x9c, 0xc5, 0xee, 0x44, 0xb2, 0x7b, 0x52, 0x66, 0x97, + 0x87, 0x19, 0x27, 0x57, 0x88, 0x72, 0x6e, 0xeb, 0x69, 0xf0, 0x24, 0x8e, 0x9d, 0xf1, 0x10, 0xfa, + 0x41, 0x81, 0x8d, 0xac, 0xca, 0x08, 0xad, 0x78, 0xd0, 0x0e, 0x71, 0x0d, 0xb3, 0x47, 0xec, 0x7a, + 0x75, 0x5b, 0xd9, 0x5d, 0x6e, 0x1f, 0x8f, 0x22, 0xf5, 0xb0, 0x3c, 0x7c, 0x29, 0x75, 0x9c, 0x41, + 0x39, 0x01, 0x67, 0x2b, 0x74, 0x28, 0x42, 0xc7, 0x22, 0x82, 0x7e, 0x53, 0x60, 0x42, 0x9d, 0xe5, + 0x39, 0x0e, 0x65, 0x41, 0xb6, 0x90, 0x4b, 0xb3, 0xa4, 0xea, 0x48, 0xa9, 0xce, 0xa7, 0x71, 0x2d, + 0x43, 0x4e, 0x27, 0x3d, 0x96, 0xc9, 0x25, 0x54, 0xcb, 0x33, 0x38, 0x12, 0x69, 0xe9, 0x42, 0x4f, + 0x9e, 0x89, 0x4f, 0x06, 0xc4, 0xe8, 0xe5, 0x66, 0xb2, 0xfc, 0xde, 0x33, 0x29, 0x43, 0x4e, 0x9f, + 0xc9, 0x58, 0xe6, 0xe4, 0x99, 0x60, 0x91, 0x96, 0xce, 0xe4, 0x17, 0x05, 0xee, 0x4e, 0x93, 0xa5, + 0xf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xb4, 0x96, 0x9d, 0x9a, 0xfc, 0x70, 0xcc, 0x5a, 0x64, 0x3e, 0xdf, + 0x22, 0x4d, 0x06, 0xb5, 0x73, 0xda, 0x75, 0x0d, 0x16, 0xfa, 0x04, 0x3d, 0x80, 0x85, 0x80, 0x76, + 0x65, 0xb7, 0x6f, 0x8c, 0x22, 0xf5, 0x96, 0xd0, 0x3a, 0xa0, 0xdd, 0x44, 0xe3, 0xf8, 0x13, 0xc7, + 0x59, 0xf1, 0xe2, 0xf7, 0x43, 0x93, 0x6f, 0x8f, 0xb1, 0xe3, 0x56, 0x06, 0x92, 0xa2, 0xc4, 0xc4, + 0xd5, 0x7e, 0x68, 0x3e, 0x23, 0xc3, 0xe6, 0x01, 0xac, 0x1c, 0xf3, 0xa5, 0x79, 0x1e, 0x92, 0x90, + 0x8c, 0x91, 0x5d, 0x87, 0xc5, 0x81, 0xd1, 0x0b, 0x09, 0x97, 0xa2, 0x86, 0x85, 0xd1, 0x3e, 0x7c, + 0x73, 0xd5, 0x50, 0xde, 0x5e, 0x35, 0x94, 0xbf, 0xae, 0x1a, 0xca, 0xe5, 0x75, 0x63, 0xee, 0xed, + 0x75, 0x63, 0xee, 0xf7, 0xeb, 0xc6, 0xdc, 0x57, 0x3b, 0x5d, 0xca, 0xb4, 0x81, 0x6d, 0x6a, 0xcc, + 0xd3, 0x63, 0xd5, 0xf6, 0xa8, 0xa7, 0xf7, 0x0c, 0xcb, 0x73, 0xa9, 0xb5, 0x6f, 0xeb, 0xaf, 0xd2, + 0xbf, 0x38, 0xb3, 0xca, 0xfb, 0xea, 0xe0, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd2, 0xef, 0x57, + 0x0f, 0xe9, 0x0d, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -1415,121 +1266,6 @@ func (m *Signature) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *BlockChangeSet) 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 *BlockChangeSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockChangeSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Names) > 0 { - for iNdEx := len(m.Names) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Names[iNdEx]) - copy(dAtA[i:], m.Names[iNdEx]) - i = encodeVarintRegistry(dAtA, i, uint64(len(m.Names[iNdEx]))) - i-- - dAtA[i] = 0x32 - } - } - if len(m.Authorities) > 0 { - for iNdEx := len(m.Authorities) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Authorities[iNdEx]) - copy(dAtA[i:], m.Authorities[iNdEx]) - i = encodeVarintRegistry(dAtA, i, uint64(len(m.Authorities[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.AuctionBids) > 0 { - for iNdEx := len(m.AuctionBids) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AuctionBids[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRegistry(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.Auctions) > 0 { - for iNdEx := len(m.Auctions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Auctions[iNdEx]) - copy(dAtA[i:], m.Auctions[iNdEx]) - i = encodeVarintRegistry(dAtA, i, uint64(len(m.Auctions[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Records) > 0 { - for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Records[iNdEx]) - copy(dAtA[i:], m.Records[iNdEx]) - i = encodeVarintRegistry(dAtA, i, uint64(len(m.Records[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.Height != 0 { - i = encodeVarintRegistry(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AuctionBidInfo) 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 *AuctionBidInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AuctionBidInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BidderAddress) > 0 { - i -= len(m.BidderAddress) - copy(dAtA[i:], m.BidderAddress) - i = encodeVarintRegistry(dAtA, i, uint64(len(m.BidderAddress))) - i-- - dAtA[i] = 0x12 - } - if len(m.AuctionId) > 0 { - i -= len(m.AuctionId) - copy(dAtA[i:], m.AuctionId) - i = encodeVarintRegistry(dAtA, i, uint64(len(m.AuctionId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *ExpiryQueue) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1780,65 +1516,6 @@ func (m *Signature) Size() (n int) { return n } -func (m *BlockChangeSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Height != 0 { - n += 1 + sovRegistry(uint64(m.Height)) - } - if len(m.Records) > 0 { - for _, s := range m.Records { - l = len(s) - n += 1 + l + sovRegistry(uint64(l)) - } - } - if len(m.Auctions) > 0 { - for _, s := range m.Auctions { - l = len(s) - n += 1 + l + sovRegistry(uint64(l)) - } - } - if len(m.AuctionBids) > 0 { - for _, e := range m.AuctionBids { - l = e.Size() - n += 1 + l + sovRegistry(uint64(l)) - } - } - if len(m.Authorities) > 0 { - for _, s := range m.Authorities { - l = len(s) - n += 1 + l + sovRegistry(uint64(l)) - } - } - if len(m.Names) > 0 { - for _, s := range m.Names { - l = len(s) - n += 1 + l + sovRegistry(uint64(l)) - } - } - return n -} - -func (m *AuctionBidInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AuctionId) - if l > 0 { - n += 1 + l + sovRegistry(uint64(l)) - } - l = len(m.BidderAddress) - if l > 0 { - n += 1 + l + sovRegistry(uint64(l)) - } - return n -} - func (m *ExpiryQueue) Size() (n int) { if m == nil { return 0 @@ -3425,351 +3102,6 @@ func (m *Signature) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockChangeSet) 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 ErrIntOverflowRegistry - } - 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: BlockChangeSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockChangeSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRegistry - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Records", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRegistry - } - 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 ErrInvalidLengthRegistry - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRegistry - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Records = append(m.Records, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Auctions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRegistry - } - 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 ErrInvalidLengthRegistry - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRegistry - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Auctions = append(m.Auctions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuctionBids", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRegistry - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRegistry - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRegistry - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AuctionBids = append(m.AuctionBids, &AuctionBidInfo{}) - if err := m.AuctionBids[len(m.AuctionBids)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Authorities", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRegistry - } - 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 ErrInvalidLengthRegistry - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRegistry - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Authorities = append(m.Authorities, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRegistry - } - 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 ErrInvalidLengthRegistry - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRegistry - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRegistry(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRegistry - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AuctionBidInfo) 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 ErrIntOverflowRegistry - } - 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: AuctionBidInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AuctionBidInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuctionId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRegistry - } - 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 ErrInvalidLengthRegistry - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRegistry - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AuctionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BidderAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRegistry - } - 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 ErrInvalidLengthRegistry - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRegistry - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BidderAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRegistry(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRegistry - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *ExpiryQueue) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0