From 16250d04c0605dd4d24deffdaff42469b8875998 Mon Sep 17 00:00:00 2001 From: ryanchristo <12519942+ryanchristo@users.noreply.github.com> Date: Thu, 9 Jun 2022 22:28:48 -0700 Subject: [PATCH 1/5] feat(x/ecocredit): query all projects with pagination --- proto/regen/ecocredit/v1/query.proto | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/proto/regen/ecocredit/v1/query.proto b/proto/regen/ecocredit/v1/query.proto index bdac86a2ba..64bae4f0a1 100644 --- a/proto/regen/ecocredit/v1/query.proto +++ b/proto/regen/ecocredit/v1/query.proto @@ -39,6 +39,12 @@ service Query { // Projects queries for all projects within a class with pagination. rpc Projects(QueryProjectsRequest) returns (QueryProjectsResponse) { + option (google.api.http).get = + "/regen/ecocredit/v1/projects"; + } + + // ProjectsByClass queries for all projects within a class with pagination. + rpc ProjectsByClass(QueryProjectsByClassRequest) returns (QueryProjectsByClassResponse) { option (google.api.http).get = "/regen/ecocredit/v1/classes/{class_id}/projects"; } @@ -217,6 +223,26 @@ message QueryProjectsResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } +// QueryProjectsByClassRequest is the Query/Projects request type. +message QueryProjectsByClassRequest { + + // class_id is the unique identifier of the credit class to query. + string class_id = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryProjectsByClassResponse is the Query/ProjectsByClass response type. +message QueryProjectsByClassResponse { + + // projects are the fetched projects. + repeated ProjectInfo projects = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + // QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request // type. message QueryProjectsByReferenceIdRequest { From b191eee59de6ef2d3673068e7b3d808f6ecd3357 Mon Sep 17 00:00:00 2001 From: ryanchristo <12519942+ryanchristo@users.noreply.github.com> Date: Fri, 10 Jun 2022 20:03:41 -0700 Subject: [PATCH 2/5] feat(x/ecocredit): query all projects with pagination --- api/regen/ecocredit/v1/query.pulsar.go | 2006 +++++++++++++---- api/regen/ecocredit/v1/query_grpc.pb.go | 38 + proto/regen/ecocredit/v1/query.proto | 13 +- x/ecocredit/client/query.go | 39 +- x/ecocredit/client/testsuite/grpc.go | 159 +- x/ecocredit/client/testsuite/query.go | 138 +- x/ecocredit/client/testsuite/suite.go | 12 +- x/ecocredit/client/testsuite/tx.go | 11 +- x/ecocredit/core/query.pb.go | 773 +++++-- x/ecocredit/core/query.pb.gw.go | 83 + x/ecocredit/server/core/query_projects.go | 61 + .../core/query_projects_by_class_test.go | 2 +- .../server/core/query_projects_test.go | 48 + 13 files changed, 2730 insertions(+), 653 deletions(-) create mode 100644 x/ecocredit/server/core/query_projects.go create mode 100644 x/ecocredit/server/core/query_projects_test.go diff --git a/api/regen/ecocredit/v1/query.pulsar.go b/api/regen/ecocredit/v1/query.pulsar.go index 3a81d82d07..a53b3a4259 100644 --- a/api/regen/ecocredit/v1/query.pulsar.go +++ b/api/regen/ecocredit/v1/query.pulsar.go @@ -4008,6 +4008,1014 @@ func (x *fastReflection_QueryClassIssuersResponse) ProtoMethods() *protoiface.Me } } +var ( + md_QueryProjectsRequest protoreflect.MessageDescriptor + fd_QueryProjectsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_query_proto_init() + md_QueryProjectsRequest = File_regen_ecocredit_v1_query_proto.Messages().ByName("QueryProjectsRequest") + fd_QueryProjectsRequest_pagination = md_QueryProjectsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryProjectsRequest)(nil) + +type fastReflection_QueryProjectsRequest QueryProjectsRequest + +func (x *QueryProjectsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProjectsRequest)(x) +} + +func (x *QueryProjectsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_query_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_QueryProjectsRequest_messageType fastReflection_QueryProjectsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryProjectsRequest_messageType{} + +type fastReflection_QueryProjectsRequest_messageType struct{} + +func (x fastReflection_QueryProjectsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProjectsRequest)(nil) +} +func (x fastReflection_QueryProjectsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProjectsRequest) +} +func (x fastReflection_QueryProjectsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProjectsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectsRequest +} + +// 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_QueryProjectsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryProjectsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProjectsRequest) New() protoreflect.Message { + return new(fastReflection_QueryProjectsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProjectsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryProjectsRequest)(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_QueryProjectsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryProjectsRequest_pagination, 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_QueryProjectsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsRequest 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_QueryProjectsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsRequest 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_QueryProjectsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.QueryProjectsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsRequest 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_QueryProjectsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsRequest 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_QueryProjectsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsRequest 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_QueryProjectsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsRequest")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsRequest 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_QueryProjectsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.QueryProjectsRequest", 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_QueryProjectsRequest) 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_QueryProjectsRequest) 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_QueryProjectsRequest) 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_QueryProjectsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProjectsRequest) + 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.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryProjectsRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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] = 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().(*QueryProjectsRequest) + 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: QueryProjectsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProjectsRequest: 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 Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryProjectsResponse_1_list)(nil) + +type _QueryProjectsResponse_1_list struct { + list *[]*ProjectInfo +} + +func (x *_QueryProjectsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryProjectsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryProjectsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ProjectInfo) + (*x.list)[i] = concreteValue +} + +func (x *_QueryProjectsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ProjectInfo) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryProjectsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(ProjectInfo) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProjectsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryProjectsResponse_1_list) NewElement() protoreflect.Value { + v := new(ProjectInfo) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProjectsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryProjectsResponse protoreflect.MessageDescriptor + fd_QueryProjectsResponse_projects protoreflect.FieldDescriptor + fd_QueryProjectsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_query_proto_init() + md_QueryProjectsResponse = File_regen_ecocredit_v1_query_proto.Messages().ByName("QueryProjectsResponse") + fd_QueryProjectsResponse_projects = md_QueryProjectsResponse.Fields().ByName("projects") + fd_QueryProjectsResponse_pagination = md_QueryProjectsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryProjectsResponse)(nil) + +type fastReflection_QueryProjectsResponse QueryProjectsResponse + +func (x *QueryProjectsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProjectsResponse)(x) +} + +func (x *QueryProjectsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_query_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_QueryProjectsResponse_messageType fastReflection_QueryProjectsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryProjectsResponse_messageType{} + +type fastReflection_QueryProjectsResponse_messageType struct{} + +func (x fastReflection_QueryProjectsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProjectsResponse)(nil) +} +func (x fastReflection_QueryProjectsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProjectsResponse) +} +func (x fastReflection_QueryProjectsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProjectsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProjectsResponse +} + +// 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_QueryProjectsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryProjectsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProjectsResponse) New() protoreflect.Message { + return new(fastReflection_QueryProjectsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProjectsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryProjectsResponse)(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_QueryProjectsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Projects) != 0 { + value := protoreflect.ValueOfList(&_QueryProjectsResponse_1_list{list: &x.Projects}) + if !f(fd_QueryProjectsResponse_projects, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryProjectsResponse_pagination, 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_QueryProjectsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectsResponse.projects": + return len(x.Projects) != 0 + case "regen.ecocredit.v1.QueryProjectsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsResponse 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_QueryProjectsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectsResponse.projects": + x.Projects = nil + case "regen.ecocredit.v1.QueryProjectsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsResponse 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_QueryProjectsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.QueryProjectsResponse.projects": + if len(x.Projects) == 0 { + return protoreflect.ValueOfList(&_QueryProjectsResponse_1_list{}) + } + listValue := &_QueryProjectsResponse_1_list{list: &x.Projects} + return protoreflect.ValueOfList(listValue) + case "regen.ecocredit.v1.QueryProjectsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsResponse 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_QueryProjectsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectsResponse.projects": + lv := value.List() + clv := lv.(*_QueryProjectsResponse_1_list) + x.Projects = *clv.list + case "regen.ecocredit.v1.QueryProjectsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsResponse 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_QueryProjectsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectsResponse.projects": + if x.Projects == nil { + x.Projects = []*ProjectInfo{} + } + value := &_QueryProjectsResponse_1_list{list: &x.Projects} + return protoreflect.ValueOfList(value) + case "regen.ecocredit.v1.QueryProjectsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsResponse 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_QueryProjectsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.QueryProjectsResponse.projects": + list := []*ProjectInfo{} + return protoreflect.ValueOfList(&_QueryProjectsResponse_1_list{list: &list}) + case "regen.ecocredit.v1.QueryProjectsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.QueryProjectsResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.QueryProjectsResponse 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_QueryProjectsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.QueryProjectsResponse", 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_QueryProjectsResponse) 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_QueryProjectsResponse) 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_QueryProjectsResponse) 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_QueryProjectsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProjectsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Projects) > 0 { + for _, e := range x.Projects { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + 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().(*QueryProjectsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Projects) > 0 { + for iNdEx := len(x.Projects) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Projects[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] = 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().(*QueryProjectsResponse) + 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: QueryProjectsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProjectsResponse: 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 Projects", 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.Projects = append(x.Projects, &ProjectInfo{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Projects[len(x.Projects)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + var ( md_QueryProjectsByClassRequest protoreflect.MessageDescriptor fd_QueryProjectsByClassRequest_class_id protoreflect.FieldDescriptor @@ -4030,7 +5038,7 @@ func (x *QueryProjectsByClassRequest) ProtoReflect() protoreflect.Message { } func (x *QueryProjectsByClassRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[8] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4580,7 +5588,7 @@ func (x *QueryProjectsByClassResponse) ProtoReflect() protoreflect.Message { } func (x *QueryProjectsByClassResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[9] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5102,7 +6110,7 @@ func (x *QueryProjectsByReferenceIdRequest) ProtoReflect() protoreflect.Message } func (x *QueryProjectsByReferenceIdRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[10] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5652,7 +6660,7 @@ func (x *QueryProjectsByReferenceIdResponse) ProtoReflect() protoreflect.Message } func (x *QueryProjectsByReferenceIdResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[11] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6174,7 +7182,7 @@ func (x *QueryProjectsByAdminRequest) ProtoReflect() protoreflect.Message { } func (x *QueryProjectsByAdminRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[12] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6724,7 +7732,7 @@ func (x *QueryProjectsByAdminResponse) ProtoReflect() protoreflect.Message { } func (x *QueryProjectsByAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[13] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7244,7 +8252,7 @@ func (x *QueryProjectRequest) ProtoReflect() protoreflect.Message { } func (x *QueryProjectRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[14] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7664,7 +8672,7 @@ func (x *QueryProjectResponse) ProtoReflect() protoreflect.Message { } func (x *QueryProjectResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[15] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8099,7 +9107,7 @@ func (x *QueryBatchesRequest) ProtoReflect() protoreflect.Message { } func (x *QueryBatchesRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[16] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8587,7 +9595,7 @@ func (x *QueryBatchesResponse) ProtoReflect() protoreflect.Message { } func (x *QueryBatchesResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[17] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9109,7 +10117,7 @@ func (x *QueryBatchesByIssuerRequest) ProtoReflect() protoreflect.Message { } func (x *QueryBatchesByIssuerRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[18] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9659,7 +10667,7 @@ func (x *QueryBatchesByIssuerResponse) ProtoReflect() protoreflect.Message { } func (x *QueryBatchesByIssuerResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[19] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10181,7 +11189,7 @@ func (x *QueryBatchesByClassRequest) ProtoReflect() protoreflect.Message { } func (x *QueryBatchesByClassRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[20] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10680,7 +11688,7 @@ func (x *QueryBatchesByProjectRequest) ProtoReflect() protoreflect.Message { } func (x *QueryBatchesByProjectRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[21] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11230,7 +12238,7 @@ func (x *QueryBatchesByProjectResponse) ProtoReflect() protoreflect.Message { } func (x *QueryBatchesByProjectResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[22] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11803,7 +12811,7 @@ func (x *QueryBatchesByClassResponse) ProtoReflect() protoreflect.Message { } func (x *QueryBatchesByClassResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[23] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12323,7 +13331,7 @@ func (x *QueryBatchRequest) ProtoReflect() protoreflect.Message { } func (x *QueryBatchRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[24] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12743,7 +13751,7 @@ func (x *QueryBatchResponse) ProtoReflect() protoreflect.Message { } func (x *QueryBatchResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[25] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13180,7 +14188,7 @@ func (x *QueryBalanceRequest) ProtoReflect() protoreflect.Message { } func (x *QueryBalanceRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[26] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13662,7 +14670,7 @@ func (x *QueryBalanceResponse) ProtoReflect() protoreflect.Message { } func (x *QueryBalanceResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[27] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14099,7 +15107,7 @@ func (x *QueryBalancesRequest) ProtoReflect() protoreflect.Message { } func (x *QueryBalancesRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[28] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14649,7 +15657,7 @@ func (x *QueryBalancesResponse) ProtoReflect() protoreflect.Message { } func (x *QueryBalancesResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[29] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15169,7 +16177,7 @@ func (x *QuerySupplyRequest) ProtoReflect() protoreflect.Message { } func (x *QuerySupplyRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[30] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15593,7 +16601,7 @@ func (x *QuerySupplyResponse) ProtoReflect() protoreflect.Message { } func (x *QuerySupplyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[31] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16135,7 +17143,7 @@ func (x *QueryCreditTypesRequest) ProtoReflect() protoreflect.Message { } func (x *QueryCreditTypesRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[32] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16544,7 +17552,7 @@ func (x *QueryCreditTypesResponse) ProtoReflect() protoreflect.Message { } func (x *QueryCreditTypesResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[33] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16985,7 +17993,7 @@ func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { } func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[34] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17343,7 +18351,7 @@ func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { } func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[35] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17784,7 +18792,7 @@ func (x *ClassInfo) ProtoReflect() protoreflect.Message { } func (x *ClassInfo) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[36] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18400,7 +19408,7 @@ func (x *ProjectInfo) ProtoReflect() protoreflect.Message { } func (x *ProjectInfo) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[37] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19144,7 +20152,7 @@ func (x *BatchInfo) ProtoReflect() protoreflect.Message { } func (x *BatchInfo) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[38] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -20041,7 +21049,7 @@ func (x *BatchBalanceInfo) ProtoReflect() protoreflect.Message { } func (x *BatchBalanceInfo) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[39] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -21043,7 +22051,90 @@ func (x *QueryClassIssuersResponse) GetPagination() *v1beta1.PageResponse { return nil } -// QueryProjectsByClassRequest is the Query/ProjectsByClass request type. +// QueryProjectsRequest is the Query/Projects request type. +type QueryProjectsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // pagination defines an optional pagination for the request. + Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryProjectsRequest) Reset() { + *x = QueryProjectsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProjectsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProjectsRequest) ProtoMessage() {} + +// Deprecated: Use QueryProjectsRequest.ProtoReflect.Descriptor instead. +func (*QueryProjectsRequest) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{8} +} + +func (x *QueryProjectsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryProjectsResponse is the Query/Projects response type. +type QueryProjectsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // projects are the fetched projects. + Projects []*ProjectInfo `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` + // pagination defines the pagination in the response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryProjectsResponse) Reset() { + *x = QueryProjectsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProjectsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProjectsResponse) ProtoMessage() {} + +// Deprecated: Use QueryProjectsResponse.ProtoReflect.Descriptor instead. +func (*QueryProjectsResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{9} +} + +func (x *QueryProjectsResponse) GetProjects() []*ProjectInfo { + if x != nil { + return x.Projects + } + return nil +} + +func (x *QueryProjectsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryProjectsByClassRequest is the Query/Projects request type. type QueryProjectsByClassRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -21058,7 +22149,7 @@ type QueryProjectsByClassRequest struct { func (x *QueryProjectsByClassRequest) Reset() { *x = QueryProjectsByClassRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[8] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21072,7 +22163,7 @@ func (*QueryProjectsByClassRequest) ProtoMessage() {} // Deprecated: Use QueryProjectsByClassRequest.ProtoReflect.Descriptor instead. func (*QueryProjectsByClassRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{8} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{10} } func (x *QueryProjectsByClassRequest) GetClassId() string { @@ -21104,7 +22195,7 @@ type QueryProjectsByClassResponse struct { func (x *QueryProjectsByClassResponse) Reset() { *x = QueryProjectsByClassResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[9] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21118,7 +22209,7 @@ func (*QueryProjectsByClassResponse) ProtoMessage() {} // Deprecated: Use QueryProjectsByClassResponse.ProtoReflect.Descriptor instead. func (*QueryProjectsByClassResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{9} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{11} } func (x *QueryProjectsByClassResponse) GetProjects() []*ProjectInfo { @@ -21151,7 +22242,7 @@ type QueryProjectsByReferenceIdRequest struct { func (x *QueryProjectsByReferenceIdRequest) Reset() { *x = QueryProjectsByReferenceIdRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[10] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21165,7 +22256,7 @@ func (*QueryProjectsByReferenceIdRequest) ProtoMessage() {} // Deprecated: Use QueryProjectsByReferenceIdRequest.ProtoReflect.Descriptor instead. func (*QueryProjectsByReferenceIdRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{10} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{12} } func (x *QueryProjectsByReferenceIdRequest) GetReferenceId() string { @@ -21198,7 +22289,7 @@ type QueryProjectsByReferenceIdResponse struct { func (x *QueryProjectsByReferenceIdResponse) Reset() { *x = QueryProjectsByReferenceIdResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[11] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21212,7 +22303,7 @@ func (*QueryProjectsByReferenceIdResponse) ProtoMessage() {} // Deprecated: Use QueryProjectsByReferenceIdResponse.ProtoReflect.Descriptor instead. func (*QueryProjectsByReferenceIdResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{11} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{13} } func (x *QueryProjectsByReferenceIdResponse) GetProjects() []*ProjectInfo { @@ -21244,7 +22335,7 @@ type QueryProjectsByAdminRequest struct { func (x *QueryProjectsByAdminRequest) Reset() { *x = QueryProjectsByAdminRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[12] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21258,7 +22349,7 @@ func (*QueryProjectsByAdminRequest) ProtoMessage() {} // Deprecated: Use QueryProjectsByAdminRequest.ProtoReflect.Descriptor instead. func (*QueryProjectsByAdminRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{12} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{14} } func (x *QueryProjectsByAdminRequest) GetAdmin() string { @@ -21290,7 +22381,7 @@ type QueryProjectsByAdminResponse struct { func (x *QueryProjectsByAdminResponse) Reset() { *x = QueryProjectsByAdminResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[13] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21304,7 +22395,7 @@ func (*QueryProjectsByAdminResponse) ProtoMessage() {} // Deprecated: Use QueryProjectsByAdminResponse.ProtoReflect.Descriptor instead. func (*QueryProjectsByAdminResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{13} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{15} } func (x *QueryProjectsByAdminResponse) GetProjects() []*ProjectInfo { @@ -21334,7 +22425,7 @@ type QueryProjectRequest struct { func (x *QueryProjectRequest) Reset() { *x = QueryProjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[14] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21348,7 +22439,7 @@ func (*QueryProjectRequest) ProtoMessage() {} // Deprecated: Use QueryProjectRequest.ProtoReflect.Descriptor instead. func (*QueryProjectRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{14} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{16} } func (x *QueryProjectRequest) GetProjectId() string { @@ -21371,7 +22462,7 @@ type QueryProjectResponse struct { func (x *QueryProjectResponse) Reset() { *x = QueryProjectResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[15] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21385,7 +22476,7 @@ func (*QueryProjectResponse) ProtoMessage() {} // Deprecated: Use QueryProjectResponse.ProtoReflect.Descriptor instead. func (*QueryProjectResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{15} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{17} } func (x *QueryProjectResponse) GetProject() *ProjectInfo { @@ -21408,7 +22499,7 @@ type QueryBatchesRequest struct { func (x *QueryBatchesRequest) Reset() { *x = QueryBatchesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[16] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21422,7 +22513,7 @@ func (*QueryBatchesRequest) ProtoMessage() {} // Deprecated: Use QueryBatchesRequest.ProtoReflect.Descriptor instead. func (*QueryBatchesRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{16} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{18} } func (x *QueryBatchesRequest) GetPagination() *v1beta1.PageRequest { @@ -21447,7 +22538,7 @@ type QueryBatchesResponse struct { func (x *QueryBatchesResponse) Reset() { *x = QueryBatchesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[17] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21461,7 +22552,7 @@ func (*QueryBatchesResponse) ProtoMessage() {} // Deprecated: Use QueryBatchesResponse.ProtoReflect.Descriptor instead. func (*QueryBatchesResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{17} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{19} } func (x *QueryBatchesResponse) GetBatches() []*BatchInfo { @@ -21493,7 +22584,7 @@ type QueryBatchesByIssuerRequest struct { func (x *QueryBatchesByIssuerRequest) Reset() { *x = QueryBatchesByIssuerRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[18] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21507,7 +22598,7 @@ func (*QueryBatchesByIssuerRequest) ProtoMessage() {} // Deprecated: Use QueryBatchesByIssuerRequest.ProtoReflect.Descriptor instead. func (*QueryBatchesByIssuerRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{18} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{20} } func (x *QueryBatchesByIssuerRequest) GetIssuer() string { @@ -21539,7 +22630,7 @@ type QueryBatchesByIssuerResponse struct { func (x *QueryBatchesByIssuerResponse) Reset() { *x = QueryBatchesByIssuerResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[19] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21553,7 +22644,7 @@ func (*QueryBatchesByIssuerResponse) ProtoMessage() {} // Deprecated: Use QueryBatchesByIssuerResponse.ProtoReflect.Descriptor instead. func (*QueryBatchesByIssuerResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{19} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{21} } func (x *QueryBatchesByIssuerResponse) GetBatches() []*BatchInfo { @@ -21585,7 +22676,7 @@ type QueryBatchesByClassRequest struct { func (x *QueryBatchesByClassRequest) Reset() { *x = QueryBatchesByClassRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[20] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21599,7 +22690,7 @@ func (*QueryBatchesByClassRequest) ProtoMessage() {} // Deprecated: Use QueryBatchesByClassRequest.ProtoReflect.Descriptor instead. func (*QueryBatchesByClassRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{20} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{22} } func (x *QueryBatchesByClassRequest) GetClassId() string { @@ -21631,7 +22722,7 @@ type QueryBatchesByProjectRequest struct { func (x *QueryBatchesByProjectRequest) Reset() { *x = QueryBatchesByProjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[21] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21645,7 +22736,7 @@ func (*QueryBatchesByProjectRequest) ProtoMessage() {} // Deprecated: Use QueryBatchesByProjectRequest.ProtoReflect.Descriptor instead. func (*QueryBatchesByProjectRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{21} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{23} } func (x *QueryBatchesByProjectRequest) GetProjectId() string { @@ -21677,7 +22768,7 @@ type QueryBatchesByProjectResponse struct { func (x *QueryBatchesByProjectResponse) Reset() { *x = QueryBatchesByProjectResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[22] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21691,7 +22782,7 @@ func (*QueryBatchesByProjectResponse) ProtoMessage() {} // Deprecated: Use QueryBatchesByProjectResponse.ProtoReflect.Descriptor instead. func (*QueryBatchesByProjectResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{22} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{24} } func (x *QueryBatchesByProjectResponse) GetBatches() []*BatchInfo { @@ -21723,7 +22814,7 @@ type QueryBatchesByClassResponse struct { func (x *QueryBatchesByClassResponse) Reset() { *x = QueryBatchesByClassResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[23] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21737,7 +22828,7 @@ func (*QueryBatchesByClassResponse) ProtoMessage() {} // Deprecated: Use QueryBatchesByClassResponse.ProtoReflect.Descriptor instead. func (*QueryBatchesByClassResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{23} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{25} } func (x *QueryBatchesByClassResponse) GetBatches() []*BatchInfo { @@ -21767,7 +22858,7 @@ type QueryBatchRequest struct { func (x *QueryBatchRequest) Reset() { *x = QueryBatchRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[24] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21781,7 +22872,7 @@ func (*QueryBatchRequest) ProtoMessage() {} // Deprecated: Use QueryBatchRequest.ProtoReflect.Descriptor instead. func (*QueryBatchRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{24} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{26} } func (x *QueryBatchRequest) GetBatchDenom() string { @@ -21804,7 +22895,7 @@ type QueryBatchResponse struct { func (x *QueryBatchResponse) Reset() { *x = QueryBatchResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[25] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21818,7 +22909,7 @@ func (*QueryBatchResponse) ProtoMessage() {} // Deprecated: Use QueryBatchResponse.ProtoReflect.Descriptor instead. func (*QueryBatchResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{25} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{27} } func (x *QueryBatchResponse) GetBatch() *BatchInfo { @@ -21843,7 +22934,7 @@ type QueryBalanceRequest struct { func (x *QueryBalanceRequest) Reset() { *x = QueryBalanceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[26] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21857,7 +22948,7 @@ func (*QueryBalanceRequest) ProtoMessage() {} // Deprecated: Use QueryBalanceRequest.ProtoReflect.Descriptor instead. func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{26} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{28} } func (x *QueryBalanceRequest) GetAddress() string { @@ -21887,7 +22978,7 @@ type QueryBalanceResponse struct { func (x *QueryBalanceResponse) Reset() { *x = QueryBalanceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[27] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21901,7 +22992,7 @@ func (*QueryBalanceResponse) ProtoMessage() {} // Deprecated: Use QueryBalanceResponse.ProtoReflect.Descriptor instead. func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{27} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{29} } func (x *QueryBalanceResponse) GetBalance() *BatchBalanceInfo { @@ -21926,7 +23017,7 @@ type QueryBalancesRequest struct { func (x *QueryBalancesRequest) Reset() { *x = QueryBalancesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[28] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21940,7 +23031,7 @@ func (*QueryBalancesRequest) ProtoMessage() {} // Deprecated: Use QueryBalancesRequest.ProtoReflect.Descriptor instead. func (*QueryBalancesRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{28} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{30} } func (x *QueryBalancesRequest) GetAddress() string { @@ -21973,7 +23064,7 @@ type QueryBalancesResponse struct { func (x *QueryBalancesResponse) Reset() { *x = QueryBalancesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[29] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -21987,7 +23078,7 @@ func (*QueryBalancesResponse) ProtoMessage() {} // Deprecated: Use QueryBalancesResponse.ProtoReflect.Descriptor instead. func (*QueryBalancesResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{29} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{31} } func (x *QueryBalancesResponse) GetBalances() []*BatchBalanceInfo { @@ -22017,7 +23108,7 @@ type QuerySupplyRequest struct { func (x *QuerySupplyRequest) Reset() { *x = QuerySupplyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[30] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22031,7 +23122,7 @@ func (*QuerySupplyRequest) ProtoMessage() {} // Deprecated: Use QuerySupplyRequest.ProtoReflect.Descriptor instead. func (*QuerySupplyRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{30} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{32} } func (x *QuerySupplyRequest) GetBatchDenom() string { @@ -22061,7 +23152,7 @@ type QuerySupplyResponse struct { func (x *QuerySupplyResponse) Reset() { *x = QuerySupplyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[31] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22075,7 +23166,7 @@ func (*QuerySupplyResponse) ProtoMessage() {} // Deprecated: Use QuerySupplyResponse.ProtoReflect.Descriptor instead. func (*QuerySupplyResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{31} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{33} } func (x *QuerySupplyResponse) GetTradableSupply() string { @@ -22109,7 +23200,7 @@ type QueryCreditTypesRequest struct { func (x *QueryCreditTypesRequest) Reset() { *x = QueryCreditTypesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[32] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22123,7 +23214,7 @@ func (*QueryCreditTypesRequest) ProtoMessage() {} // Deprecated: Use QueryCreditTypesRequest.ProtoReflect.Descriptor instead. func (*QueryCreditTypesRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{32} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{34} } // QueryCreditTypesRequest is the Query/Credit_Types response type @@ -22139,7 +23230,7 @@ type QueryCreditTypesResponse struct { func (x *QueryCreditTypesResponse) Reset() { *x = QueryCreditTypesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[33] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22153,7 +23244,7 @@ func (*QueryCreditTypesResponse) ProtoMessage() {} // Deprecated: Use QueryCreditTypesResponse.ProtoReflect.Descriptor instead. func (*QueryCreditTypesResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{33} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{35} } func (x *QueryCreditTypesResponse) GetCreditTypes() []*CreditType { @@ -22173,7 +23264,7 @@ type QueryParamsRequest struct { func (x *QueryParamsRequest) Reset() { *x = QueryParamsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[34] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22187,7 +23278,7 @@ func (*QueryParamsRequest) ProtoMessage() {} // Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{34} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{36} } // QueryParamsResponse is the Query/Params response type. @@ -22203,7 +23294,7 @@ type QueryParamsResponse struct { func (x *QueryParamsResponse) Reset() { *x = QueryParamsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[35] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22217,7 +23308,7 @@ func (*QueryParamsResponse) ProtoMessage() {} // Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{35} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{37} } func (x *QueryParamsResponse) GetParams() *Params { @@ -22247,7 +23338,7 @@ type ClassInfo struct { func (x *ClassInfo) Reset() { *x = ClassInfo{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[36] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22261,7 +23352,7 @@ func (*ClassInfo) ProtoMessage() {} // Deprecated: Use ClassInfo.ProtoReflect.Descriptor instead. func (*ClassInfo) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{36} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{38} } func (x *ClassInfo) GetId() string { @@ -22317,7 +23408,7 @@ type ProjectInfo struct { func (x *ProjectInfo) Reset() { *x = ProjectInfo{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[37] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22331,7 +23422,7 @@ func (*ProjectInfo) ProtoMessage() {} // Deprecated: Use ProjectInfo.ProtoReflect.Descriptor instead. func (*ProjectInfo) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{37} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{39} } func (x *ProjectInfo) GetId() string { @@ -22409,7 +23500,7 @@ type BatchInfo struct { func (x *BatchInfo) Reset() { *x = BatchInfo{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[38] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22423,7 +23514,7 @@ func (*BatchInfo) ProtoMessage() {} // Deprecated: Use BatchInfo.ProtoReflect.Descriptor instead. func (*BatchInfo) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{38} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{40} } func (x *BatchInfo) GetIssuer() string { @@ -22506,7 +23597,7 @@ type BatchBalanceInfo struct { func (x *BatchBalanceInfo) Reset() { *x = BatchBalanceInfo{} if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_query_proto_msgTypes[39] + mi := &file_regen_ecocredit_v1_query_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22520,7 +23611,7 @@ func (*BatchBalanceInfo) ProtoMessage() {} // Deprecated: Use BatchBalanceInfo.ProtoReflect.Descriptor instead. func (*BatchBalanceInfo) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{39} + return file_regen_ecocredit_v1_query_proto_rawDescGZIP(), []int{41} } func (x *BatchBalanceInfo) GetAddress() string { @@ -22632,6 +23723,22 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x5e, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, @@ -22882,7 +23989,7 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x52, 0x0d, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xd5, 0x1b, 0x0a, 0x05, 0x51, 0x75, 0x65, + 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xdd, 0x1c, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x81, 0x01, 0x0a, 0x07, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, @@ -22929,196 +24036,204 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x64, 0x7d, 0x5a, 0x30, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x69, 0x73, 0x73, - 0x75, 0x65, 0x72, 0x73, 0x12, 0xe1, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, - 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6b, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x65, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, - 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x87, 0x02, 0x0a, 0x15, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x49, 0x64, 0x12, 0x35, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x79, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x2d, 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x3a, 0x12, 0x38, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x2d, 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, - 0x64, 0x7d, 0x12, 0xd9, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, - 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x5d, 0x12, 0x2d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, - 0x62, 0x79, 0x2d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, - 0x5a, 0x2c, 0x12, 0x2a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0xbb, - 0x01, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, + 0x75, 0x65, 0x72, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, + 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0xe1, 0x01, 0x0a, + 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x65, 0x12, 0x30, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x31, 0x12, + 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, + 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x12, 0x87, 0x02, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x35, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x57, 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x5a, - 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, - 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x81, 0x01, 0x0a, - 0x07, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, - 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, - 0x12, 0xdb, 0x01, 0x0a, 0x0f, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, - 0x73, 0x75, 0x65, 0x72, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, - 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5f, 0x12, - 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, - 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x5a, - 0x2d, 0x12, 0x2b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x69, - 0x73, 0x73, 0x75, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x12, 0xda, - 0x01, 0x0a, 0x0e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, - 0x73, 0x12, 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, - 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, - 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x61, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x36, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x79, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, + 0x62, 0x79, 0x2d, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2d, 0x69, 0x64, 0x2f, + 0x7b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x3a, + 0x12, 0x38, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2d, 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd9, 0x01, 0x0a, 0x0f, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2f, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x63, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5d, 0x12, 0x2d, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x5a, 0x2c, 0x12, 0x2a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, - 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x2e, 0x12, 0x2c, 0x2f, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, - 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, - 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xe8, 0x01, 0x0a, 0x10, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x12, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x69, 0x12, 0x33, 0x2f, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0xbb, 0x01, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x57, 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, - 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, - 0x64, 0x7d, 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb4, 0x01, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x12, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x81, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, + 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x5c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x12, 0x27, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, + 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0xdb, 0x01, 0x0a, 0x0f, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x2f, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, + 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, + 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5f, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, - 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, - 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x98, 0x02, - 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x2f, 0x7b, + 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x5a, 0x2d, 0x12, 0x2b, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x2f, 0x7b, 0x69, + 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x12, 0xda, 0x01, 0x0a, 0x0e, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0xb2, 0x01, 0x12, 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, - 0x7d, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x5a, 0x3d, 0x12, 0x3b, 0x2f, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, - 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, - 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x5a, 0x3c, 0x12, 0x3a, 0x2f, 0x72, + 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x61, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, + 0x62, 0x79, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, + 0x69, 0x64, 0x7d, 0x5a, 0x2e, 0x12, 0x2c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, + 0x69, 0x64, 0x7d, 0x12, 0xe8, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, + 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x69, 0x12, 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x8f, 0x01, 0x0a, 0x08, 0x42, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x28, 0x12, 0x26, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, - 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xbf, 0x01, 0x0a, 0x06, 0x53, - 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5e, 0x12, 0x28, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, + 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb4, + 0x01, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x12, + 0x27, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, - 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x92, 0x01, 0x0a, - 0x0b, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, - 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x12, 0x7d, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x98, 0x02, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb2, 0x01, 0x12, 0x33, + 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x62, 0x61, 0x74, + 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x7d, 0x5a, 0x3d, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, + 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x7d, 0x5a, 0x3c, 0x12, 0x3a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x62, 0x61, 0x74, + 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, + 0x12, 0x8f, 0x01, 0x0a, 0x08, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x28, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x7d, 0x12, 0xbf, 0x01, 0x0a, 0x06, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x26, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x64, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5e, 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x70, 0x70, + 0x6c, 0x79, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, + 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, + 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x73, 0x75, + 0x70, 0x70, 0x6c, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x7d, 0x0a, 0x06, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x42, 0xd8, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xd8, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, + 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, + 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, + 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -23133,7 +24248,7 @@ func file_regen_ecocredit_v1_query_proto_rawDescGZIP() []byte { return file_regen_ecocredit_v1_query_proto_rawDescData } -var file_regen_ecocredit_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 40) +var file_regen_ecocredit_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 42) var file_regen_ecocredit_v1_query_proto_goTypes = []interface{}{ (*QueryClassesRequest)(nil), // 0: regen.ecocredit.v1.QueryClassesRequest (*QueryClassesResponse)(nil), // 1: regen.ecocredit.v1.QueryClassesResponse @@ -23143,127 +24258,134 @@ var file_regen_ecocredit_v1_query_proto_goTypes = []interface{}{ (*QueryClassResponse)(nil), // 5: regen.ecocredit.v1.QueryClassResponse (*QueryClassIssuersRequest)(nil), // 6: regen.ecocredit.v1.QueryClassIssuersRequest (*QueryClassIssuersResponse)(nil), // 7: regen.ecocredit.v1.QueryClassIssuersResponse - (*QueryProjectsByClassRequest)(nil), // 8: regen.ecocredit.v1.QueryProjectsByClassRequest - (*QueryProjectsByClassResponse)(nil), // 9: regen.ecocredit.v1.QueryProjectsByClassResponse - (*QueryProjectsByReferenceIdRequest)(nil), // 10: regen.ecocredit.v1.QueryProjectsByReferenceIdRequest - (*QueryProjectsByReferenceIdResponse)(nil), // 11: regen.ecocredit.v1.QueryProjectsByReferenceIdResponse - (*QueryProjectsByAdminRequest)(nil), // 12: regen.ecocredit.v1.QueryProjectsByAdminRequest - (*QueryProjectsByAdminResponse)(nil), // 13: regen.ecocredit.v1.QueryProjectsByAdminResponse - (*QueryProjectRequest)(nil), // 14: regen.ecocredit.v1.QueryProjectRequest - (*QueryProjectResponse)(nil), // 15: regen.ecocredit.v1.QueryProjectResponse - (*QueryBatchesRequest)(nil), // 16: regen.ecocredit.v1.QueryBatchesRequest - (*QueryBatchesResponse)(nil), // 17: regen.ecocredit.v1.QueryBatchesResponse - (*QueryBatchesByIssuerRequest)(nil), // 18: regen.ecocredit.v1.QueryBatchesByIssuerRequest - (*QueryBatchesByIssuerResponse)(nil), // 19: regen.ecocredit.v1.QueryBatchesByIssuerResponse - (*QueryBatchesByClassRequest)(nil), // 20: regen.ecocredit.v1.QueryBatchesByClassRequest - (*QueryBatchesByProjectRequest)(nil), // 21: regen.ecocredit.v1.QueryBatchesByProjectRequest - (*QueryBatchesByProjectResponse)(nil), // 22: regen.ecocredit.v1.QueryBatchesByProjectResponse - (*QueryBatchesByClassResponse)(nil), // 23: regen.ecocredit.v1.QueryBatchesByClassResponse - (*QueryBatchRequest)(nil), // 24: regen.ecocredit.v1.QueryBatchRequest - (*QueryBatchResponse)(nil), // 25: regen.ecocredit.v1.QueryBatchResponse - (*QueryBalanceRequest)(nil), // 26: regen.ecocredit.v1.QueryBalanceRequest - (*QueryBalanceResponse)(nil), // 27: regen.ecocredit.v1.QueryBalanceResponse - (*QueryBalancesRequest)(nil), // 28: regen.ecocredit.v1.QueryBalancesRequest - (*QueryBalancesResponse)(nil), // 29: regen.ecocredit.v1.QueryBalancesResponse - (*QuerySupplyRequest)(nil), // 30: regen.ecocredit.v1.QuerySupplyRequest - (*QuerySupplyResponse)(nil), // 31: regen.ecocredit.v1.QuerySupplyResponse - (*QueryCreditTypesRequest)(nil), // 32: regen.ecocredit.v1.QueryCreditTypesRequest - (*QueryCreditTypesResponse)(nil), // 33: regen.ecocredit.v1.QueryCreditTypesResponse - (*QueryParamsRequest)(nil), // 34: regen.ecocredit.v1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 35: regen.ecocredit.v1.QueryParamsResponse - (*ClassInfo)(nil), // 36: regen.ecocredit.v1.ClassInfo - (*ProjectInfo)(nil), // 37: regen.ecocredit.v1.ProjectInfo - (*BatchInfo)(nil), // 38: regen.ecocredit.v1.BatchInfo - (*BatchBalanceInfo)(nil), // 39: regen.ecocredit.v1.BatchBalanceInfo - (*v1beta1.PageRequest)(nil), // 40: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 41: cosmos.base.query.v1beta1.PageResponse - (*CreditType)(nil), // 42: regen.ecocredit.v1.CreditType - (*Params)(nil), // 43: regen.ecocredit.v1.Params - (*timestamppb.Timestamp)(nil), // 44: google.protobuf.Timestamp + (*QueryProjectsRequest)(nil), // 8: regen.ecocredit.v1.QueryProjectsRequest + (*QueryProjectsResponse)(nil), // 9: regen.ecocredit.v1.QueryProjectsResponse + (*QueryProjectsByClassRequest)(nil), // 10: regen.ecocredit.v1.QueryProjectsByClassRequest + (*QueryProjectsByClassResponse)(nil), // 11: regen.ecocredit.v1.QueryProjectsByClassResponse + (*QueryProjectsByReferenceIdRequest)(nil), // 12: regen.ecocredit.v1.QueryProjectsByReferenceIdRequest + (*QueryProjectsByReferenceIdResponse)(nil), // 13: regen.ecocredit.v1.QueryProjectsByReferenceIdResponse + (*QueryProjectsByAdminRequest)(nil), // 14: regen.ecocredit.v1.QueryProjectsByAdminRequest + (*QueryProjectsByAdminResponse)(nil), // 15: regen.ecocredit.v1.QueryProjectsByAdminResponse + (*QueryProjectRequest)(nil), // 16: regen.ecocredit.v1.QueryProjectRequest + (*QueryProjectResponse)(nil), // 17: regen.ecocredit.v1.QueryProjectResponse + (*QueryBatchesRequest)(nil), // 18: regen.ecocredit.v1.QueryBatchesRequest + (*QueryBatchesResponse)(nil), // 19: regen.ecocredit.v1.QueryBatchesResponse + (*QueryBatchesByIssuerRequest)(nil), // 20: regen.ecocredit.v1.QueryBatchesByIssuerRequest + (*QueryBatchesByIssuerResponse)(nil), // 21: regen.ecocredit.v1.QueryBatchesByIssuerResponse + (*QueryBatchesByClassRequest)(nil), // 22: regen.ecocredit.v1.QueryBatchesByClassRequest + (*QueryBatchesByProjectRequest)(nil), // 23: regen.ecocredit.v1.QueryBatchesByProjectRequest + (*QueryBatchesByProjectResponse)(nil), // 24: regen.ecocredit.v1.QueryBatchesByProjectResponse + (*QueryBatchesByClassResponse)(nil), // 25: regen.ecocredit.v1.QueryBatchesByClassResponse + (*QueryBatchRequest)(nil), // 26: regen.ecocredit.v1.QueryBatchRequest + (*QueryBatchResponse)(nil), // 27: regen.ecocredit.v1.QueryBatchResponse + (*QueryBalanceRequest)(nil), // 28: regen.ecocredit.v1.QueryBalanceRequest + (*QueryBalanceResponse)(nil), // 29: regen.ecocredit.v1.QueryBalanceResponse + (*QueryBalancesRequest)(nil), // 30: regen.ecocredit.v1.QueryBalancesRequest + (*QueryBalancesResponse)(nil), // 31: regen.ecocredit.v1.QueryBalancesResponse + (*QuerySupplyRequest)(nil), // 32: regen.ecocredit.v1.QuerySupplyRequest + (*QuerySupplyResponse)(nil), // 33: regen.ecocredit.v1.QuerySupplyResponse + (*QueryCreditTypesRequest)(nil), // 34: regen.ecocredit.v1.QueryCreditTypesRequest + (*QueryCreditTypesResponse)(nil), // 35: regen.ecocredit.v1.QueryCreditTypesResponse + (*QueryParamsRequest)(nil), // 36: regen.ecocredit.v1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 37: regen.ecocredit.v1.QueryParamsResponse + (*ClassInfo)(nil), // 38: regen.ecocredit.v1.ClassInfo + (*ProjectInfo)(nil), // 39: regen.ecocredit.v1.ProjectInfo + (*BatchInfo)(nil), // 40: regen.ecocredit.v1.BatchInfo + (*BatchBalanceInfo)(nil), // 41: regen.ecocredit.v1.BatchBalanceInfo + (*v1beta1.PageRequest)(nil), // 42: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 43: cosmos.base.query.v1beta1.PageResponse + (*CreditType)(nil), // 44: regen.ecocredit.v1.CreditType + (*Params)(nil), // 45: regen.ecocredit.v1.Params + (*timestamppb.Timestamp)(nil), // 46: google.protobuf.Timestamp } var file_regen_ecocredit_v1_query_proto_depIdxs = []int32{ - 40, // 0: regen.ecocredit.v1.QueryClassesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 36, // 1: regen.ecocredit.v1.QueryClassesResponse.classes:type_name -> regen.ecocredit.v1.ClassInfo - 41, // 2: regen.ecocredit.v1.QueryClassesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 40, // 3: regen.ecocredit.v1.QueryClassesByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 36, // 4: regen.ecocredit.v1.QueryClassesByAdminResponse.classes:type_name -> regen.ecocredit.v1.ClassInfo - 41, // 5: regen.ecocredit.v1.QueryClassesByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 36, // 6: regen.ecocredit.v1.QueryClassResponse.class:type_name -> regen.ecocredit.v1.ClassInfo - 40, // 7: regen.ecocredit.v1.QueryClassIssuersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 41, // 8: regen.ecocredit.v1.QueryClassIssuersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 40, // 9: regen.ecocredit.v1.QueryProjectsByClassRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 37, // 10: regen.ecocredit.v1.QueryProjectsByClassResponse.projects:type_name -> regen.ecocredit.v1.ProjectInfo - 41, // 11: regen.ecocredit.v1.QueryProjectsByClassResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 40, // 12: regen.ecocredit.v1.QueryProjectsByReferenceIdRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 37, // 13: regen.ecocredit.v1.QueryProjectsByReferenceIdResponse.projects:type_name -> regen.ecocredit.v1.ProjectInfo - 41, // 14: regen.ecocredit.v1.QueryProjectsByReferenceIdResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 40, // 15: regen.ecocredit.v1.QueryProjectsByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 37, // 16: regen.ecocredit.v1.QueryProjectsByAdminResponse.projects:type_name -> regen.ecocredit.v1.ProjectInfo - 41, // 17: regen.ecocredit.v1.QueryProjectsByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 37, // 18: regen.ecocredit.v1.QueryProjectResponse.project:type_name -> regen.ecocredit.v1.ProjectInfo - 40, // 19: regen.ecocredit.v1.QueryBatchesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 38, // 20: regen.ecocredit.v1.QueryBatchesResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo - 41, // 21: regen.ecocredit.v1.QueryBatchesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 40, // 22: regen.ecocredit.v1.QueryBatchesByIssuerRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 38, // 23: regen.ecocredit.v1.QueryBatchesByIssuerResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo - 41, // 24: regen.ecocredit.v1.QueryBatchesByIssuerResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 40, // 25: regen.ecocredit.v1.QueryBatchesByClassRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 40, // 26: regen.ecocredit.v1.QueryBatchesByProjectRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 38, // 27: regen.ecocredit.v1.QueryBatchesByProjectResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo - 41, // 28: regen.ecocredit.v1.QueryBatchesByProjectResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 38, // 29: regen.ecocredit.v1.QueryBatchesByClassResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo - 41, // 30: regen.ecocredit.v1.QueryBatchesByClassResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 38, // 31: regen.ecocredit.v1.QueryBatchResponse.batch:type_name -> regen.ecocredit.v1.BatchInfo - 39, // 32: regen.ecocredit.v1.QueryBalanceResponse.balance:type_name -> regen.ecocredit.v1.BatchBalanceInfo - 40, // 33: regen.ecocredit.v1.QueryBalancesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 39, // 34: regen.ecocredit.v1.QueryBalancesResponse.balances:type_name -> regen.ecocredit.v1.BatchBalanceInfo - 41, // 35: regen.ecocredit.v1.QueryBalancesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 42, // 36: regen.ecocredit.v1.QueryCreditTypesResponse.credit_types:type_name -> regen.ecocredit.v1.CreditType - 43, // 37: regen.ecocredit.v1.QueryParamsResponse.params:type_name -> regen.ecocredit.v1.Params - 44, // 38: regen.ecocredit.v1.BatchInfo.start_date:type_name -> google.protobuf.Timestamp - 44, // 39: regen.ecocredit.v1.BatchInfo.end_date:type_name -> google.protobuf.Timestamp - 44, // 40: regen.ecocredit.v1.BatchInfo.issuance_date:type_name -> google.protobuf.Timestamp - 0, // 41: regen.ecocredit.v1.Query.Classes:input_type -> regen.ecocredit.v1.QueryClassesRequest - 2, // 42: regen.ecocredit.v1.Query.ClassesByAdmin:input_type -> regen.ecocredit.v1.QueryClassesByAdminRequest - 4, // 43: regen.ecocredit.v1.Query.Class:input_type -> regen.ecocredit.v1.QueryClassRequest - 6, // 44: regen.ecocredit.v1.Query.ClassIssuers:input_type -> regen.ecocredit.v1.QueryClassIssuersRequest - 8, // 45: regen.ecocredit.v1.Query.ProjectsByClass:input_type -> regen.ecocredit.v1.QueryProjectsByClassRequest - 10, // 46: regen.ecocredit.v1.Query.ProjectsByReferenceId:input_type -> regen.ecocredit.v1.QueryProjectsByReferenceIdRequest - 12, // 47: regen.ecocredit.v1.Query.ProjectsByAdmin:input_type -> regen.ecocredit.v1.QueryProjectsByAdminRequest - 14, // 48: regen.ecocredit.v1.Query.Project:input_type -> regen.ecocredit.v1.QueryProjectRequest - 16, // 49: regen.ecocredit.v1.Query.Batches:input_type -> regen.ecocredit.v1.QueryBatchesRequest - 18, // 50: regen.ecocredit.v1.Query.BatchesByIssuer:input_type -> regen.ecocredit.v1.QueryBatchesByIssuerRequest - 20, // 51: regen.ecocredit.v1.Query.BatchesByClass:input_type -> regen.ecocredit.v1.QueryBatchesByClassRequest - 21, // 52: regen.ecocredit.v1.Query.BatchesByProject:input_type -> regen.ecocredit.v1.QueryBatchesByProjectRequest - 24, // 53: regen.ecocredit.v1.Query.Batch:input_type -> regen.ecocredit.v1.QueryBatchRequest - 26, // 54: regen.ecocredit.v1.Query.Balance:input_type -> regen.ecocredit.v1.QueryBalanceRequest - 28, // 55: regen.ecocredit.v1.Query.Balances:input_type -> regen.ecocredit.v1.QueryBalancesRequest - 30, // 56: regen.ecocredit.v1.Query.Supply:input_type -> regen.ecocredit.v1.QuerySupplyRequest - 32, // 57: regen.ecocredit.v1.Query.CreditTypes:input_type -> regen.ecocredit.v1.QueryCreditTypesRequest - 34, // 58: regen.ecocredit.v1.Query.Params:input_type -> regen.ecocredit.v1.QueryParamsRequest - 1, // 59: regen.ecocredit.v1.Query.Classes:output_type -> regen.ecocredit.v1.QueryClassesResponse - 3, // 60: regen.ecocredit.v1.Query.ClassesByAdmin:output_type -> regen.ecocredit.v1.QueryClassesByAdminResponse - 5, // 61: regen.ecocredit.v1.Query.Class:output_type -> regen.ecocredit.v1.QueryClassResponse - 7, // 62: regen.ecocredit.v1.Query.ClassIssuers:output_type -> regen.ecocredit.v1.QueryClassIssuersResponse - 9, // 63: regen.ecocredit.v1.Query.ProjectsByClass:output_type -> regen.ecocredit.v1.QueryProjectsByClassResponse - 11, // 64: regen.ecocredit.v1.Query.ProjectsByReferenceId:output_type -> regen.ecocredit.v1.QueryProjectsByReferenceIdResponse - 13, // 65: regen.ecocredit.v1.Query.ProjectsByAdmin:output_type -> regen.ecocredit.v1.QueryProjectsByAdminResponse - 15, // 66: regen.ecocredit.v1.Query.Project:output_type -> regen.ecocredit.v1.QueryProjectResponse - 17, // 67: regen.ecocredit.v1.Query.Batches:output_type -> regen.ecocredit.v1.QueryBatchesResponse - 19, // 68: regen.ecocredit.v1.Query.BatchesByIssuer:output_type -> regen.ecocredit.v1.QueryBatchesByIssuerResponse - 23, // 69: regen.ecocredit.v1.Query.BatchesByClass:output_type -> regen.ecocredit.v1.QueryBatchesByClassResponse - 22, // 70: regen.ecocredit.v1.Query.BatchesByProject:output_type -> regen.ecocredit.v1.QueryBatchesByProjectResponse - 25, // 71: regen.ecocredit.v1.Query.Batch:output_type -> regen.ecocredit.v1.QueryBatchResponse - 27, // 72: regen.ecocredit.v1.Query.Balance:output_type -> regen.ecocredit.v1.QueryBalanceResponse - 29, // 73: regen.ecocredit.v1.Query.Balances:output_type -> regen.ecocredit.v1.QueryBalancesResponse - 31, // 74: regen.ecocredit.v1.Query.Supply:output_type -> regen.ecocredit.v1.QuerySupplyResponse - 33, // 75: regen.ecocredit.v1.Query.CreditTypes:output_type -> regen.ecocredit.v1.QueryCreditTypesResponse - 35, // 76: regen.ecocredit.v1.Query.Params:output_type -> regen.ecocredit.v1.QueryParamsResponse - 59, // [59:77] is the sub-list for method output_type - 41, // [41:59] is the sub-list for method input_type - 41, // [41:41] is the sub-list for extension type_name - 41, // [41:41] is the sub-list for extension extendee - 0, // [0:41] is the sub-list for field type_name + 42, // 0: regen.ecocredit.v1.QueryClassesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 38, // 1: regen.ecocredit.v1.QueryClassesResponse.classes:type_name -> regen.ecocredit.v1.ClassInfo + 43, // 2: regen.ecocredit.v1.QueryClassesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 42, // 3: regen.ecocredit.v1.QueryClassesByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 38, // 4: regen.ecocredit.v1.QueryClassesByAdminResponse.classes:type_name -> regen.ecocredit.v1.ClassInfo + 43, // 5: regen.ecocredit.v1.QueryClassesByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 38, // 6: regen.ecocredit.v1.QueryClassResponse.class:type_name -> regen.ecocredit.v1.ClassInfo + 42, // 7: regen.ecocredit.v1.QueryClassIssuersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 43, // 8: regen.ecocredit.v1.QueryClassIssuersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 42, // 9: regen.ecocredit.v1.QueryProjectsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 39, // 10: regen.ecocredit.v1.QueryProjectsResponse.projects:type_name -> regen.ecocredit.v1.ProjectInfo + 43, // 11: regen.ecocredit.v1.QueryProjectsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 42, // 12: regen.ecocredit.v1.QueryProjectsByClassRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 39, // 13: regen.ecocredit.v1.QueryProjectsByClassResponse.projects:type_name -> regen.ecocredit.v1.ProjectInfo + 43, // 14: regen.ecocredit.v1.QueryProjectsByClassResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 42, // 15: regen.ecocredit.v1.QueryProjectsByReferenceIdRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 39, // 16: regen.ecocredit.v1.QueryProjectsByReferenceIdResponse.projects:type_name -> regen.ecocredit.v1.ProjectInfo + 43, // 17: regen.ecocredit.v1.QueryProjectsByReferenceIdResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 42, // 18: regen.ecocredit.v1.QueryProjectsByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 39, // 19: regen.ecocredit.v1.QueryProjectsByAdminResponse.projects:type_name -> regen.ecocredit.v1.ProjectInfo + 43, // 20: regen.ecocredit.v1.QueryProjectsByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 39, // 21: regen.ecocredit.v1.QueryProjectResponse.project:type_name -> regen.ecocredit.v1.ProjectInfo + 42, // 22: regen.ecocredit.v1.QueryBatchesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 40, // 23: regen.ecocredit.v1.QueryBatchesResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo + 43, // 24: regen.ecocredit.v1.QueryBatchesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 42, // 25: regen.ecocredit.v1.QueryBatchesByIssuerRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 40, // 26: regen.ecocredit.v1.QueryBatchesByIssuerResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo + 43, // 27: regen.ecocredit.v1.QueryBatchesByIssuerResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 42, // 28: regen.ecocredit.v1.QueryBatchesByClassRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 42, // 29: regen.ecocredit.v1.QueryBatchesByProjectRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 40, // 30: regen.ecocredit.v1.QueryBatchesByProjectResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo + 43, // 31: regen.ecocredit.v1.QueryBatchesByProjectResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 40, // 32: regen.ecocredit.v1.QueryBatchesByClassResponse.batches:type_name -> regen.ecocredit.v1.BatchInfo + 43, // 33: regen.ecocredit.v1.QueryBatchesByClassResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 40, // 34: regen.ecocredit.v1.QueryBatchResponse.batch:type_name -> regen.ecocredit.v1.BatchInfo + 41, // 35: regen.ecocredit.v1.QueryBalanceResponse.balance:type_name -> regen.ecocredit.v1.BatchBalanceInfo + 42, // 36: regen.ecocredit.v1.QueryBalancesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 41, // 37: regen.ecocredit.v1.QueryBalancesResponse.balances:type_name -> regen.ecocredit.v1.BatchBalanceInfo + 43, // 38: regen.ecocredit.v1.QueryBalancesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 44, // 39: regen.ecocredit.v1.QueryCreditTypesResponse.credit_types:type_name -> regen.ecocredit.v1.CreditType + 45, // 40: regen.ecocredit.v1.QueryParamsResponse.params:type_name -> regen.ecocredit.v1.Params + 46, // 41: regen.ecocredit.v1.BatchInfo.start_date:type_name -> google.protobuf.Timestamp + 46, // 42: regen.ecocredit.v1.BatchInfo.end_date:type_name -> google.protobuf.Timestamp + 46, // 43: regen.ecocredit.v1.BatchInfo.issuance_date:type_name -> google.protobuf.Timestamp + 0, // 44: regen.ecocredit.v1.Query.Classes:input_type -> regen.ecocredit.v1.QueryClassesRequest + 2, // 45: regen.ecocredit.v1.Query.ClassesByAdmin:input_type -> regen.ecocredit.v1.QueryClassesByAdminRequest + 4, // 46: regen.ecocredit.v1.Query.Class:input_type -> regen.ecocredit.v1.QueryClassRequest + 6, // 47: regen.ecocredit.v1.Query.ClassIssuers:input_type -> regen.ecocredit.v1.QueryClassIssuersRequest + 8, // 48: regen.ecocredit.v1.Query.Projects:input_type -> regen.ecocredit.v1.QueryProjectsRequest + 10, // 49: regen.ecocredit.v1.Query.ProjectsByClass:input_type -> regen.ecocredit.v1.QueryProjectsByClassRequest + 12, // 50: regen.ecocredit.v1.Query.ProjectsByReferenceId:input_type -> regen.ecocredit.v1.QueryProjectsByReferenceIdRequest + 14, // 51: regen.ecocredit.v1.Query.ProjectsByAdmin:input_type -> regen.ecocredit.v1.QueryProjectsByAdminRequest + 16, // 52: regen.ecocredit.v1.Query.Project:input_type -> regen.ecocredit.v1.QueryProjectRequest + 18, // 53: regen.ecocredit.v1.Query.Batches:input_type -> regen.ecocredit.v1.QueryBatchesRequest + 20, // 54: regen.ecocredit.v1.Query.BatchesByIssuer:input_type -> regen.ecocredit.v1.QueryBatchesByIssuerRequest + 22, // 55: regen.ecocredit.v1.Query.BatchesByClass:input_type -> regen.ecocredit.v1.QueryBatchesByClassRequest + 23, // 56: regen.ecocredit.v1.Query.BatchesByProject:input_type -> regen.ecocredit.v1.QueryBatchesByProjectRequest + 26, // 57: regen.ecocredit.v1.Query.Batch:input_type -> regen.ecocredit.v1.QueryBatchRequest + 28, // 58: regen.ecocredit.v1.Query.Balance:input_type -> regen.ecocredit.v1.QueryBalanceRequest + 30, // 59: regen.ecocredit.v1.Query.Balances:input_type -> regen.ecocredit.v1.QueryBalancesRequest + 32, // 60: regen.ecocredit.v1.Query.Supply:input_type -> regen.ecocredit.v1.QuerySupplyRequest + 34, // 61: regen.ecocredit.v1.Query.CreditTypes:input_type -> regen.ecocredit.v1.QueryCreditTypesRequest + 36, // 62: regen.ecocredit.v1.Query.Params:input_type -> regen.ecocredit.v1.QueryParamsRequest + 1, // 63: regen.ecocredit.v1.Query.Classes:output_type -> regen.ecocredit.v1.QueryClassesResponse + 3, // 64: regen.ecocredit.v1.Query.ClassesByAdmin:output_type -> regen.ecocredit.v1.QueryClassesByAdminResponse + 5, // 65: regen.ecocredit.v1.Query.Class:output_type -> regen.ecocredit.v1.QueryClassResponse + 7, // 66: regen.ecocredit.v1.Query.ClassIssuers:output_type -> regen.ecocredit.v1.QueryClassIssuersResponse + 9, // 67: regen.ecocredit.v1.Query.Projects:output_type -> regen.ecocredit.v1.QueryProjectsResponse + 11, // 68: regen.ecocredit.v1.Query.ProjectsByClass:output_type -> regen.ecocredit.v1.QueryProjectsByClassResponse + 13, // 69: regen.ecocredit.v1.Query.ProjectsByReferenceId:output_type -> regen.ecocredit.v1.QueryProjectsByReferenceIdResponse + 15, // 70: regen.ecocredit.v1.Query.ProjectsByAdmin:output_type -> regen.ecocredit.v1.QueryProjectsByAdminResponse + 17, // 71: regen.ecocredit.v1.Query.Project:output_type -> regen.ecocredit.v1.QueryProjectResponse + 19, // 72: regen.ecocredit.v1.Query.Batches:output_type -> regen.ecocredit.v1.QueryBatchesResponse + 21, // 73: regen.ecocredit.v1.Query.BatchesByIssuer:output_type -> regen.ecocredit.v1.QueryBatchesByIssuerResponse + 25, // 74: regen.ecocredit.v1.Query.BatchesByClass:output_type -> regen.ecocredit.v1.QueryBatchesByClassResponse + 24, // 75: regen.ecocredit.v1.Query.BatchesByProject:output_type -> regen.ecocredit.v1.QueryBatchesByProjectResponse + 27, // 76: regen.ecocredit.v1.Query.Batch:output_type -> regen.ecocredit.v1.QueryBatchResponse + 29, // 77: regen.ecocredit.v1.Query.Balance:output_type -> regen.ecocredit.v1.QueryBalanceResponse + 31, // 78: regen.ecocredit.v1.Query.Balances:output_type -> regen.ecocredit.v1.QueryBalancesResponse + 33, // 79: regen.ecocredit.v1.Query.Supply:output_type -> regen.ecocredit.v1.QuerySupplyResponse + 35, // 80: regen.ecocredit.v1.Query.CreditTypes:output_type -> regen.ecocredit.v1.QueryCreditTypesResponse + 37, // 81: regen.ecocredit.v1.Query.Params:output_type -> regen.ecocredit.v1.QueryParamsResponse + 63, // [63:82] is the sub-list for method output_type + 44, // [44:63] is the sub-list for method input_type + 44, // [44:44] is the sub-list for extension type_name + 44, // [44:44] is the sub-list for extension extendee + 0, // [0:44] is the sub-list for field type_name } func init() { file_regen_ecocredit_v1_query_proto_init() } @@ -23371,7 +24493,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProjectsByClassRequest); i { + switch v := v.(*QueryProjectsRequest); i { case 0: return &v.state case 1: @@ -23383,7 +24505,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProjectsByClassResponse); i { + switch v := v.(*QueryProjectsResponse); i { case 0: return &v.state case 1: @@ -23395,7 +24517,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProjectsByReferenceIdRequest); i { + switch v := v.(*QueryProjectsByClassRequest); i { case 0: return &v.state case 1: @@ -23407,7 +24529,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProjectsByReferenceIdResponse); i { + switch v := v.(*QueryProjectsByClassResponse); i { case 0: return &v.state case 1: @@ -23419,7 +24541,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProjectsByAdminRequest); i { + switch v := v.(*QueryProjectsByReferenceIdRequest); i { case 0: return &v.state case 1: @@ -23431,7 +24553,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProjectsByAdminResponse); i { + switch v := v.(*QueryProjectsByReferenceIdResponse); i { case 0: return &v.state case 1: @@ -23443,7 +24565,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProjectRequest); i { + switch v := v.(*QueryProjectsByAdminRequest); i { case 0: return &v.state case 1: @@ -23455,7 +24577,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProjectResponse); i { + switch v := v.(*QueryProjectsByAdminResponse); i { case 0: return &v.state case 1: @@ -23467,7 +24589,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBatchesRequest); i { + switch v := v.(*QueryProjectRequest); i { case 0: return &v.state case 1: @@ -23479,7 +24601,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBatchesResponse); i { + switch v := v.(*QueryProjectResponse); i { case 0: return &v.state case 1: @@ -23491,7 +24613,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBatchesByIssuerRequest); i { + switch v := v.(*QueryBatchesRequest); i { case 0: return &v.state case 1: @@ -23503,7 +24625,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBatchesByIssuerResponse); i { + switch v := v.(*QueryBatchesResponse); i { case 0: return &v.state case 1: @@ -23515,7 +24637,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBatchesByClassRequest); i { + switch v := v.(*QueryBatchesByIssuerRequest); i { case 0: return &v.state case 1: @@ -23527,7 +24649,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBatchesByProjectRequest); i { + switch v := v.(*QueryBatchesByIssuerResponse); i { case 0: return &v.state case 1: @@ -23539,7 +24661,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBatchesByProjectResponse); i { + switch v := v.(*QueryBatchesByClassRequest); i { case 0: return &v.state case 1: @@ -23551,7 +24673,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBatchesByClassResponse); i { + switch v := v.(*QueryBatchesByProjectRequest); i { case 0: return &v.state case 1: @@ -23563,7 +24685,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBatchRequest); i { + switch v := v.(*QueryBatchesByProjectResponse); i { case 0: return &v.state case 1: @@ -23575,7 +24697,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBatchResponse); i { + switch v := v.(*QueryBatchesByClassResponse); i { case 0: return &v.state case 1: @@ -23587,7 +24709,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBalanceRequest); i { + switch v := v.(*QueryBatchRequest); i { case 0: return &v.state case 1: @@ -23599,7 +24721,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBalanceResponse); i { + switch v := v.(*QueryBatchResponse); i { case 0: return &v.state case 1: @@ -23611,7 +24733,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBalancesRequest); i { + switch v := v.(*QueryBalanceRequest); i { case 0: return &v.state case 1: @@ -23623,7 +24745,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryBalancesResponse); i { + switch v := v.(*QueryBalanceResponse); i { case 0: return &v.state case 1: @@ -23635,7 +24757,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySupplyRequest); i { + switch v := v.(*QueryBalancesRequest); i { case 0: return &v.state case 1: @@ -23647,7 +24769,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySupplyResponse); i { + switch v := v.(*QueryBalancesResponse); i { case 0: return &v.state case 1: @@ -23659,7 +24781,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCreditTypesRequest); i { + switch v := v.(*QuerySupplyRequest); i { case 0: return &v.state case 1: @@ -23671,7 +24793,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCreditTypesResponse); i { + switch v := v.(*QuerySupplyResponse); i { case 0: return &v.state case 1: @@ -23683,7 +24805,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsRequest); i { + switch v := v.(*QueryCreditTypesRequest); i { case 0: return &v.state case 1: @@ -23695,7 +24817,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsResponse); i { + switch v := v.(*QueryCreditTypesResponse); i { case 0: return &v.state case 1: @@ -23707,7 +24829,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClassInfo); i { + switch v := v.(*QueryParamsRequest); i { case 0: return &v.state case 1: @@ -23719,7 +24841,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectInfo); i { + switch v := v.(*QueryParamsResponse); i { case 0: return &v.state case 1: @@ -23731,7 +24853,7 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchInfo); i { + switch v := v.(*ClassInfo); i { case 0: return &v.state case 1: @@ -23743,6 +24865,30 @@ func file_regen_ecocredit_v1_query_proto_init() { } } file_regen_ecocredit_v1_query_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_query_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_v1_query_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BatchBalanceInfo); i { case 0: return &v.state @@ -23761,7 +24907,7 @@ func file_regen_ecocredit_v1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_regen_ecocredit_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 40, + NumMessages: 42, NumExtensions: 0, NumServices: 1, }, diff --git a/api/regen/ecocredit/v1/query_grpc.pb.go b/api/regen/ecocredit/v1/query_grpc.pb.go index ae58dd468e..ae6b038de0 100644 --- a/api/regen/ecocredit/v1/query_grpc.pb.go +++ b/api/regen/ecocredit/v1/query_grpc.pb.go @@ -31,6 +31,8 @@ type QueryClient interface { Class(ctx context.Context, in *QueryClassRequest, opts ...grpc.CallOption) (*QueryClassResponse, error) // ClassIssuers queries for the addresses of the issuers for a credit class. ClassIssuers(ctx context.Context, in *QueryClassIssuersRequest, opts ...grpc.CallOption) (*QueryClassIssuersResponse, error) + // Projects queries for all projects within a class with pagination. + Projects(ctx context.Context, in *QueryProjectsRequest, opts ...grpc.CallOption) (*QueryProjectsResponse, error) // ProjectsByClass queries for all projects within a class with pagination. ProjectsByClass(ctx context.Context, in *QueryProjectsByClassRequest, opts ...grpc.CallOption) (*QueryProjectsByClassResponse, error) // ProjectsByReferenceId queries for all projects by reference-id with @@ -110,6 +112,15 @@ func (c *queryClient) ClassIssuers(ctx context.Context, in *QueryClassIssuersReq return out, nil } +func (c *queryClient) Projects(ctx context.Context, in *QueryProjectsRequest, opts ...grpc.CallOption) (*QueryProjectsResponse, error) { + out := new(QueryProjectsResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/Projects", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) ProjectsByClass(ctx context.Context, in *QueryProjectsByClassRequest, opts ...grpc.CallOption) (*QueryProjectsByClassResponse, error) { out := new(QueryProjectsByClassResponse) err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/ProjectsByClass", in, out, opts...) @@ -249,6 +260,8 @@ type QueryServer interface { Class(context.Context, *QueryClassRequest) (*QueryClassResponse, error) // ClassIssuers queries for the addresses of the issuers for a credit class. ClassIssuers(context.Context, *QueryClassIssuersRequest) (*QueryClassIssuersResponse, error) + // Projects queries for all projects within a class with pagination. + Projects(context.Context, *QueryProjectsRequest) (*QueryProjectsResponse, error) // ProjectsByClass queries for all projects within a class with pagination. ProjectsByClass(context.Context, *QueryProjectsByClassRequest) (*QueryProjectsByClassResponse, error) // ProjectsByReferenceId queries for all projects by reference-id with @@ -301,6 +314,9 @@ func (UnimplementedQueryServer) Class(context.Context, *QueryClassRequest) (*Que func (UnimplementedQueryServer) ClassIssuers(context.Context, *QueryClassIssuersRequest) (*QueryClassIssuersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ClassIssuers not implemented") } +func (UnimplementedQueryServer) Projects(context.Context, *QueryProjectsRequest) (*QueryProjectsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Projects not implemented") +} func (UnimplementedQueryServer) ProjectsByClass(context.Context, *QueryProjectsByClassRequest) (*QueryProjectsByClassResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ProjectsByClass not implemented") } @@ -428,6 +444,24 @@ func _Query_ClassIssuers_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +func _Query_Projects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProjectsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Projects(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Query/Projects", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Projects(ctx, req.(*QueryProjectsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_ProjectsByClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryProjectsByClassRequest) if err := dec(in); err != nil { @@ -703,6 +737,10 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "ClassIssuers", Handler: _Query_ClassIssuers_Handler, }, + { + MethodName: "Projects", + Handler: _Query_Projects_Handler, + }, { MethodName: "ProjectsByClass", Handler: _Query_ProjectsByClass_Handler, diff --git a/proto/regen/ecocredit/v1/query.proto b/proto/regen/ecocredit/v1/query.proto index 66625e1241..6747f0fda4 100644 --- a/proto/regen/ecocredit/v1/query.proto +++ b/proto/regen/ecocredit/v1/query.proto @@ -259,18 +259,15 @@ message QueryClassIssuersResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// QueryProjectsByClassRequest is the Query/ProjectsByClass request type. -message QueryProjectsByClassRequest { - - // class_id is the unique identifier of the credit class to query. - string class_id = 1; +// QueryProjectsRequest is the Query/Projects request type. +message QueryProjectsRequest { // pagination defines an optional pagination for the request. - cosmos.base.query.v1beta1.PageRequest pagination = 2; + cosmos.base.query.v1beta1.PageRequest pagination = 1; } -// QueryProjectsByClassResponse is the Query/ProjectsByClass response type. -message QueryProjectsByClassResponse { +// QueryProjectsResponse is the Query/Projects response type. +message QueryProjectsResponse { // projects are the fetched projects. repeated ProjectInfo projects = 1; diff --git a/x/ecocredit/client/query.go b/x/ecocredit/client/query.go index c9a6dec368..3e5ec53996 100644 --- a/x/ecocredit/client/query.go +++ b/x/ecocredit/client/query.go @@ -34,6 +34,7 @@ func QueryCmd(name string) *cobra.Command { QueryBalanceCmd(), QuerySupplyCmd(), QueryCreditTypesCmd(), + QueryProjectsCmd(), QueryProjectsByClassCmd(), QueryProjectsByReferenceIdCmd(), QueryProjectsByAdminCmd(), @@ -154,14 +155,48 @@ regen q ecocredit class-issuers C01 --limit 10 return qflags(cmd) } +// QueryProjectsCmd returns a query command that retrieves projects. +func QueryProjectsCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "projects", + Short: "List all projects with pagination flags", + Example: ` +regen q ecocredit projects +regen q ecocredit projects --limit 10 --count-total + `, + Args: cobra.ExactArgs(0), + RunE: func(cmd *cobra.Command, args []string) error { + c, ctx, err := mkQueryClient(cmd) + if err != nil { + return err + } + + pagination, err := client.ReadPageRequest(cmd.Flags()) + if err != nil { + return err + } + + res, err := c.Projects(cmd.Context(), &core.QueryProjectsRequest{ + Pagination: pagination, + }) + + return printQueryResponse(ctx, res, err) + }, + } + + flags.AddPaginationFlagsToCmd(cmd, "projects") + + return qflags(cmd) +} + // QueryProjectsByClassCmd returns a query command that retrieves projects. func QueryProjectsByClassCmd() *cobra.Command { cmd := &cobra.Command{ Use: "projects-by-class [class_id]", Short: "List all projects in the given class with pagination flags", Example: ` -regen q ecocredit projects C01 -regen q ecocredit projects C01 --limit 10 +regen q ecocredit projects-by-class C01 +regen q ecocredit projects-by-class C01 --limit 10 --count-total `, Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { diff --git a/x/ecocredit/client/testsuite/grpc.go b/x/ecocredit/client/testsuite/grpc.go index 3ad2c08c2b..15c02c27d0 100644 --- a/x/ecocredit/client/testsuite/grpc.go +++ b/x/ecocredit/client/testsuite/grpc.go @@ -2,6 +2,7 @@ package testsuite import ( "fmt" + "strings" "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/rest" @@ -80,7 +81,163 @@ func (s *IntegrationTestSuite) TestQueryClass() { err = s.val.ClientCtx.Codec.UnmarshalJSON(resp, &res) require.NoError(err) require.NotNil(res.Class) - require.Contains(res.Class.Id, s.classId) + require.Equal(res.Class.Id, s.classId) + }) + } +} + +func (s *IntegrationTestSuite) TestQueryProject() { + testCases := []struct { + name string + url string + }{ + { + "valid", + fmt.Sprintf("%s/%s/project/%s", s.val.APIAddress, coreRoute, s.projectId), + }, + { + "valid alternative", + fmt.Sprintf("%s/%s/projects/%s", s.val.APIAddress, coreRoute, s.projectId), + }, + } + + require := s.Require() + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + bz, err := rest.GetRequest(tc.url) + require.NoError(err) + + var res core.QueryProjectResponse + require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) + require.NotEmpty(res.Project) + require.Equal(res.Project.Id, s.projectId) + }) + } +} + +func (s *IntegrationTestSuite) TestQueryProjects() { + testCases := []struct { + name string + url string + }{ + { + name: "valid", + url: fmt.Sprintf("%s/%s/projects", s.val.APIAddress, coreRoute), + }, + { + name: "valid with pagination", + url: fmt.Sprintf("%s/%s/projects?pagination.countTotal=true", s.val.APIAddress, coreRoute), + }, + } + + require := s.Require() + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + bz, err := rest.GetRequest(tc.url) + require.NoError(err) + + var res core.QueryProjectsResponse + require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) + require.NotEmpty(res.Projects) + if strings.Contains(tc.url, "pagination") { + require.NotEmpty(res.Pagination) + require.NotEmpty(res.Pagination.Total) + } + }) + } +} + +func (s *IntegrationTestSuite) TestQueryProjectsByClass() { + testCases := []struct { + name string + url string + }{ + { + name: "valid", + url: fmt.Sprintf("%s/%s/projects-by-class/%s", s.val.APIAddress, coreRoute, s.classId), + }, + { + name: "valid with pagination", + url: fmt.Sprintf( + "%s/%s/projects-by-class/%s?pagination.countTotal=true", + s.val.APIAddress, + coreRoute, + s.classId, + ), + }, + { + name: "valid alternative", + url: fmt.Sprintf("%s/%s/classes/%s/projects", s.val.APIAddress, coreRoute, s.classId), + }, + } + + require := s.Require() + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + bz, err := rest.GetRequest(tc.url) + require.NoError(err) + + var res core.QueryProjectsByClassResponse + require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) + require.NotEmpty(res.Projects) + if strings.Contains(tc.url, "pagination") { + require.NotEmpty(res.Pagination) + require.NotEmpty(res.Pagination.Total) + } + }) + } +} + +func (s *IntegrationTestSuite) TestQueryProjectsByReferenceId() { + testCases := []struct { + name string + url string + }{ + { + name: "valid", + url: fmt.Sprintf( + "%s/%s/projects-by-reference-id/%s", + s.val.APIAddress, + coreRoute, + s.projectReferenceId, + ), + }, + { + name: "valid with pagination", + url: fmt.Sprintf( + "%s/%s/projects-by-reference-id/%s?pagination.countTotal=true", + s.val.APIAddress, + coreRoute, + s.projectReferenceId, + ), + }, + { + name: "valid alternative", + url: fmt.Sprintf("%s/%s/projects/reference-id/%s", + s.val.APIAddress, + coreRoute, + s.projectReferenceId, + ), + }, + } + + require := s.Require() + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + bz, err := rest.GetRequest(tc.url) + require.NoError(err) + + var res core.QueryProjectsByReferenceIdResponse + require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) + require.NotEmpty(res.Projects) + if strings.Contains(tc.url, "pagination") { + require.NotEmpty(res.Pagination) + require.NotEmpty(res.Pagination.Total) + } }) } } diff --git a/x/ecocredit/client/testsuite/query.go b/x/ecocredit/client/testsuite/query.go index c0e52ca385..f553d104d9 100644 --- a/x/ecocredit/client/testsuite/query.go +++ b/x/ecocredit/client/testsuite/query.go @@ -829,42 +829,73 @@ func (s *IntegrationTestSuite) TestQuerySellOrdersByBatchDenomCmd() { } } +func (s *IntegrationTestSuite) TestQueryProjectsCmd() { + clientCtx := s.val.ClientCtx + clientCtx.OutputFormat = "JSON" + + testCases := []struct { + name string + args []string + expErr bool + expErrMsg string + paginated bool + }{ + { + name: "too many args", + args: []string{"foo"}, + expErr: true, + expErrMsg: "Error: accepts 0 arg(s), received 1", + }, + { + name: "valid", + args: []string{}, + }, + { + name: "valid within pagination", + args: []string{ + fmt.Sprintf("--%s", flags.FlagCountTotal), + fmt.Sprintf("--%s=%s", flags.FlagLimit, "2"), + }, + paginated: true, + }, + } + + require := s.Require() + for _, tc := range testCases { + s.Run(tc.name, func() { + cmd := coreclient.QueryProjectsCmd() + out, err := cli.ExecTestCLICmd(clientCtx, cmd, tc.args) + if tc.expErr { + require.Error(err) + require.Contains(out.String(), tc.expErrMsg) + } else { + require.NoError(err) + + var res core.QueryProjectsResponse + require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) + require.NotEmpty(res.Projects) + if tc.paginated { + require.NotEmpty(res.Pagination) + require.NotEmpty(res.Pagination.Total) + } + } + }) + } +} + func (s *IntegrationTestSuite) TestQueryProjectsByClassCmd() { - val := s.network.Validators[0] - clientCtx := val.ClientCtx + clientCtx := s.val.ClientCtx clientCtx.OutputFormat = "JSON" - classId, err := s.createClass(clientCtx, &core.MsgCreateClass{ - Admin: val.Address.String(), - Issuers: []string{val.Address.String()}, - Metadata: "foo", - CreditTypeAbbrev: validCreditTypeAbbrev, - Fee: &core.DefaultParams().CreditClassFee[0], - }) - s.Require().NoError(err) - pID, err := s.createProject(clientCtx, &core.MsgCreateProject{ - Issuer: val.Address.String(), - ClassId: classId, - Metadata: "foo", - Jurisdiction: "US-OR", - }) - s.Require().NoError(err) - pID2, err := s.createProject(clientCtx, &core.MsgCreateProject{ - Issuer: val.Address.String(), - ClassId: classId, - Metadata: "foo", - Jurisdiction: "US-OR", - }) - s.Require().NoError(err) - projectIds := [2]string{pID, pID2} + testCases := []struct { name string args []string expErr bool expErrMsg string - expLen int + paginated bool }{ { - name: "no args", + name: "missing args", args: []string{}, expErr: true, expErrMsg: "Error: accepts 1 arg(s), received 0", @@ -876,42 +907,46 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClassCmd() { expErrMsg: "Error: accepts 1 arg(s), received 2", }, { - name: "valid query", - args: []string{classId, fmt.Sprintf("--%s", flags.FlagCountTotal)}, - expErr: false, - expLen: 2, + name: "valid", + args: []string{s.classId}, + }, + { + name: "valid with pagination", + args: []string{ + s.classId, + fmt.Sprintf("--%s", flags.FlagCountTotal), + fmt.Sprintf("--%s=%s", flags.FlagLimit, "2"), + }, + paginated: true, }, } + require := s.Require() for _, tc := range testCases { s.Run(tc.name, func() { cmd := coreclient.QueryProjectsByClassCmd() out, err := cli.ExecTestCLICmd(clientCtx, cmd, tc.args) if tc.expErr { - s.Require().Error(err) - s.Require().Contains(out.String(), tc.expErrMsg) + require.Error(err) + require.Contains(out.String(), tc.expErrMsg) } else { - s.Require().NoError(err, out.String()) + require.NoError(err) var res core.QueryProjectsByClassResponse - s.Require().NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) - s.Require().Len(res.Projects, tc.expLen) - s.Require().Equal(res.Pagination.Total, uint64(2)) - for _, project := range res.Projects { - s.Require().Contains(projectIds, project.Id) + require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) + require.NotEmpty(res.Projects) + if tc.paginated { + require.NotEmpty(res.Pagination) + require.NotEmpty(res.Pagination.Total) } } }) } - } func (s *IntegrationTestSuite) TestQueryProjectCmd() { - val := s.network.Validators[0] - clientCtx := val.ClientCtx + clientCtx := s.val.ClientCtx clientCtx.OutputFormat = "JSON" - require := s.Require() - _, projectId, _ := s.createClassProjectBatch(clientCtx, val.Address.String()) testCases := []struct { name string @@ -920,7 +955,7 @@ func (s *IntegrationTestSuite) TestQueryProjectCmd() { expErrMsg string }{ { - name: "no args", + name: "missing args", args: []string{}, expErr: true, expErrMsg: "Error: accepts 1 arg(s), received 0", @@ -932,13 +967,12 @@ func (s *IntegrationTestSuite) TestQueryProjectCmd() { expErrMsg: "Error: accepts 1 arg(s), received 2", }, { - name: "valid query", - args: []string{projectId}, - expErr: false, - expErrMsg: "", + name: "valid query", + args: []string{s.projectId}, }, } + require := s.Require() for _, tc := range testCases { s.Run(tc.name, func() { cmd := coreclient.QueryProjectCmd() @@ -947,15 +981,15 @@ func (s *IntegrationTestSuite) TestQueryProjectCmd() { require.Error(err) require.Contains(out.String(), tc.expErrMsg) } else { - require.NoError(err, out.String()) + require.NoError(err) var res core.QueryProjectResponse require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) - require.Equal(projectId, res.Project.Id) + require.NotEmpty(res.Project) + require.Equal(s.projectId, res.Project.Id) } }) } - } func (s *IntegrationTestSuite) TestQueryClassIssuersCmd() { diff --git a/x/ecocredit/client/testsuite/suite.go b/x/ecocredit/client/testsuite/suite.go index 89c5bd9f4c..6f97847283 100644 --- a/x/ecocredit/client/testsuite/suite.go +++ b/x/ecocredit/client/testsuite/suite.go @@ -30,10 +30,11 @@ type IntegrationTestSuite struct { addr sdk.AccAddress // TODO: addr2 (#922 / #1042) // test values - allowedDenoms []string - classId string - projectId string - batchDenom string + allowedDenoms []string + classId string + projectId string + projectReferenceId string + batchDenom string } func NewIntegrationTestSuite(cfg network.Config) *IntegrationTestSuite { @@ -58,6 +59,9 @@ func (s *IntegrationTestSuite) SetupSuite() { // set test accounts s.setupTestAccounts() + // set reference id used when creating a project + s.projectReferenceId = "VCS-001" + // create a class, project, and batch with first test account and set test values s.classId, s.projectId, s.batchDenom = s.createClassProjectBatch(s.val.ClientCtx, s.addr1.String()) } diff --git a/x/ecocredit/client/testsuite/tx.go b/x/ecocredit/client/testsuite/tx.go index c4d278f2d8..f2ad877668 100644 --- a/x/ecocredit/client/testsuite/tx.go +++ b/x/ecocredit/client/testsuite/tx.go @@ -1682,7 +1682,13 @@ func (s *IntegrationTestSuite) createProject(clientCtx client.Context, msg *core return append(args, flags...) } - out, err := cli.ExecTestCLICmd(clientCtx, cmd, makeCreateProjectArgs(msg, append(s.commonTxFlags(), makeFlagFrom(msg.Issuer))...)) + flags := append( + s.commonTxFlags(), + makeFlagFrom(msg.Issuer), + fmt.Sprintf("--reference-id=%s", msg.ReferenceId), + ) + args := makeCreateProjectArgs(msg, flags...) + out, err := cli.ExecTestCLICmd(clientCtx, cmd, args) s.Require().NoError(err) var res sdk.TxResponse s.Require().NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) @@ -1788,13 +1794,16 @@ func (s *IntegrationTestSuite) createClassProject(clientCtx client.Context, addr Fee: &core.DefaultParams().CreditClassFee[0], }) s.Require().NoError(err) + projectId, err = s.createProject(clientCtx, &core.MsgCreateProject{ Issuer: addr, ClassId: classId, Metadata: validMetadata, Jurisdiction: "US-OR", + ReferenceId: s.projectReferenceId, }) s.Require().NoError(err) + return classId, projectId } diff --git a/x/ecocredit/core/query.pb.go b/x/ecocredit/core/query.pb.go index 0ae2de21ae..95ccd731a6 100644 --- a/x/ecocredit/core/query.pb.go +++ b/x/ecocredit/core/query.pb.go @@ -443,7 +443,108 @@ func (m *QueryClassIssuersResponse) GetPagination() *query.PageResponse { return nil } -// QueryProjectsByClassRequest is the Query/ProjectsByClass request type. +// QueryProjectsRequest is the Query/Projects request type. +type QueryProjectsRequest struct { + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryProjectsRequest) Reset() { *m = QueryProjectsRequest{} } +func (m *QueryProjectsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryProjectsRequest) ProtoMessage() {} +func (*QueryProjectsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c85efa417eafb74b, []int{8} +} +func (m *QueryProjectsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProjectsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProjectsRequest.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 *QueryProjectsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProjectsRequest.Merge(m, src) +} +func (m *QueryProjectsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryProjectsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProjectsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProjectsRequest proto.InternalMessageInfo + +func (m *QueryProjectsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryProjectsResponse is the Query/Projects response type. +type QueryProjectsResponse struct { + // projects are the fetched projects. + Projects []*ProjectInfo `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryProjectsResponse) Reset() { *m = QueryProjectsResponse{} } +func (m *QueryProjectsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryProjectsResponse) ProtoMessage() {} +func (*QueryProjectsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c85efa417eafb74b, []int{9} +} +func (m *QueryProjectsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProjectsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProjectsResponse.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 *QueryProjectsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProjectsResponse.Merge(m, src) +} +func (m *QueryProjectsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryProjectsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProjectsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProjectsResponse proto.InternalMessageInfo + +func (m *QueryProjectsResponse) GetProjects() []*ProjectInfo { + if m != nil { + return m.Projects + } + return nil +} + +func (m *QueryProjectsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryProjectsByClassRequest is the Query/Projects request type. type QueryProjectsByClassRequest struct { // class_id is the unique identifier of the credit class to query. ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` @@ -455,7 +556,7 @@ func (m *QueryProjectsByClassRequest) Reset() { *m = QueryProjectsByClas func (m *QueryProjectsByClassRequest) String() string { return proto.CompactTextString(m) } func (*QueryProjectsByClassRequest) ProtoMessage() {} func (*QueryProjectsByClassRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{8} + return fileDescriptor_c85efa417eafb74b, []int{10} } func (m *QueryProjectsByClassRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -510,7 +611,7 @@ func (m *QueryProjectsByClassResponse) Reset() { *m = QueryProjectsByCla func (m *QueryProjectsByClassResponse) String() string { return proto.CompactTextString(m) } func (*QueryProjectsByClassResponse) ProtoMessage() {} func (*QueryProjectsByClassResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{9} + return fileDescriptor_c85efa417eafb74b, []int{11} } func (m *QueryProjectsByClassResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -566,7 +667,7 @@ func (m *QueryProjectsByReferenceIdRequest) Reset() { *m = QueryProjects func (m *QueryProjectsByReferenceIdRequest) String() string { return proto.CompactTextString(m) } func (*QueryProjectsByReferenceIdRequest) ProtoMessage() {} func (*QueryProjectsByReferenceIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{10} + return fileDescriptor_c85efa417eafb74b, []int{12} } func (m *QueryProjectsByReferenceIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -622,7 +723,7 @@ func (m *QueryProjectsByReferenceIdResponse) Reset() { *m = QueryProject func (m *QueryProjectsByReferenceIdResponse) String() string { return proto.CompactTextString(m) } func (*QueryProjectsByReferenceIdResponse) ProtoMessage() {} func (*QueryProjectsByReferenceIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{11} + return fileDescriptor_c85efa417eafb74b, []int{13} } func (m *QueryProjectsByReferenceIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -677,7 +778,7 @@ func (m *QueryProjectsByAdminRequest) Reset() { *m = QueryProjectsByAdmi func (m *QueryProjectsByAdminRequest) String() string { return proto.CompactTextString(m) } func (*QueryProjectsByAdminRequest) ProtoMessage() {} func (*QueryProjectsByAdminRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{12} + return fileDescriptor_c85efa417eafb74b, []int{14} } func (m *QueryProjectsByAdminRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -732,7 +833,7 @@ func (m *QueryProjectsByAdminResponse) Reset() { *m = QueryProjectsByAdm func (m *QueryProjectsByAdminResponse) String() string { return proto.CompactTextString(m) } func (*QueryProjectsByAdminResponse) ProtoMessage() {} func (*QueryProjectsByAdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{13} + return fileDescriptor_c85efa417eafb74b, []int{15} } func (m *QueryProjectsByAdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -785,7 +886,7 @@ func (m *QueryProjectRequest) Reset() { *m = QueryProjectRequest{} } func (m *QueryProjectRequest) String() string { return proto.CompactTextString(m) } func (*QueryProjectRequest) ProtoMessage() {} func (*QueryProjectRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{14} + return fileDescriptor_c85efa417eafb74b, []int{16} } func (m *QueryProjectRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -831,7 +932,7 @@ func (m *QueryProjectResponse) Reset() { *m = QueryProjectResponse{} } func (m *QueryProjectResponse) String() string { return proto.CompactTextString(m) } func (*QueryProjectResponse) ProtoMessage() {} func (*QueryProjectResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{15} + return fileDescriptor_c85efa417eafb74b, []int{17} } func (m *QueryProjectResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -877,7 +978,7 @@ func (m *QueryBatchesRequest) Reset() { *m = QueryBatchesRequest{} } func (m *QueryBatchesRequest) String() string { return proto.CompactTextString(m) } func (*QueryBatchesRequest) ProtoMessage() {} func (*QueryBatchesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{16} + return fileDescriptor_c85efa417eafb74b, []int{18} } func (m *QueryBatchesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -925,7 +1026,7 @@ func (m *QueryBatchesResponse) Reset() { *m = QueryBatchesResponse{} } func (m *QueryBatchesResponse) String() string { return proto.CompactTextString(m) } func (*QueryBatchesResponse) ProtoMessage() {} func (*QueryBatchesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{17} + return fileDescriptor_c85efa417eafb74b, []int{19} } func (m *QueryBatchesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -980,7 +1081,7 @@ func (m *QueryBatchesByIssuerRequest) Reset() { *m = QueryBatchesByIssue func (m *QueryBatchesByIssuerRequest) String() string { return proto.CompactTextString(m) } func (*QueryBatchesByIssuerRequest) ProtoMessage() {} func (*QueryBatchesByIssuerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{18} + return fileDescriptor_c85efa417eafb74b, []int{20} } func (m *QueryBatchesByIssuerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1035,7 +1136,7 @@ func (m *QueryBatchesByIssuerResponse) Reset() { *m = QueryBatchesByIssu func (m *QueryBatchesByIssuerResponse) String() string { return proto.CompactTextString(m) } func (*QueryBatchesByIssuerResponse) ProtoMessage() {} func (*QueryBatchesByIssuerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{19} + return fileDescriptor_c85efa417eafb74b, []int{21} } func (m *QueryBatchesByIssuerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1090,7 +1191,7 @@ func (m *QueryBatchesByClassRequest) Reset() { *m = QueryBatchesByClassR func (m *QueryBatchesByClassRequest) String() string { return proto.CompactTextString(m) } func (*QueryBatchesByClassRequest) ProtoMessage() {} func (*QueryBatchesByClassRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{20} + return fileDescriptor_c85efa417eafb74b, []int{22} } func (m *QueryBatchesByClassRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1145,7 +1246,7 @@ func (m *QueryBatchesByProjectRequest) Reset() { *m = QueryBatchesByProj func (m *QueryBatchesByProjectRequest) String() string { return proto.CompactTextString(m) } func (*QueryBatchesByProjectRequest) ProtoMessage() {} func (*QueryBatchesByProjectRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{21} + return fileDescriptor_c85efa417eafb74b, []int{23} } func (m *QueryBatchesByProjectRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1200,7 +1301,7 @@ func (m *QueryBatchesByProjectResponse) Reset() { *m = QueryBatchesByPro func (m *QueryBatchesByProjectResponse) String() string { return proto.CompactTextString(m) } func (*QueryBatchesByProjectResponse) ProtoMessage() {} func (*QueryBatchesByProjectResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{22} + return fileDescriptor_c85efa417eafb74b, []int{24} } func (m *QueryBatchesByProjectResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1255,7 +1356,7 @@ func (m *QueryBatchesByClassResponse) Reset() { *m = QueryBatchesByClass func (m *QueryBatchesByClassResponse) String() string { return proto.CompactTextString(m) } func (*QueryBatchesByClassResponse) ProtoMessage() {} func (*QueryBatchesByClassResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{23} + return fileDescriptor_c85efa417eafb74b, []int{25} } func (m *QueryBatchesByClassResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1308,7 +1409,7 @@ func (m *QueryBatchRequest) Reset() { *m = QueryBatchRequest{} } func (m *QueryBatchRequest) String() string { return proto.CompactTextString(m) } func (*QueryBatchRequest) ProtoMessage() {} func (*QueryBatchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{24} + return fileDescriptor_c85efa417eafb74b, []int{26} } func (m *QueryBatchRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1354,7 +1455,7 @@ func (m *QueryBatchResponse) Reset() { *m = QueryBatchResponse{} } func (m *QueryBatchResponse) String() string { return proto.CompactTextString(m) } func (*QueryBatchResponse) ProtoMessage() {} func (*QueryBatchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{25} + return fileDescriptor_c85efa417eafb74b, []int{27} } func (m *QueryBatchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1402,7 +1503,7 @@ func (m *QueryBalanceRequest) Reset() { *m = QueryBalanceRequest{} } func (m *QueryBalanceRequest) String() string { return proto.CompactTextString(m) } func (*QueryBalanceRequest) ProtoMessage() {} func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{26} + return fileDescriptor_c85efa417eafb74b, []int{28} } func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1455,7 +1556,7 @@ func (m *QueryBalanceResponse) Reset() { *m = QueryBalanceResponse{} } func (m *QueryBalanceResponse) String() string { return proto.CompactTextString(m) } func (*QueryBalanceResponse) ProtoMessage() {} func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{27} + return fileDescriptor_c85efa417eafb74b, []int{29} } func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1503,7 +1604,7 @@ func (m *QueryBalancesRequest) Reset() { *m = QueryBalancesRequest{} } func (m *QueryBalancesRequest) String() string { return proto.CompactTextString(m) } func (*QueryBalancesRequest) ProtoMessage() {} func (*QueryBalancesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{28} + return fileDescriptor_c85efa417eafb74b, []int{30} } func (m *QueryBalancesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1559,7 +1660,7 @@ func (m *QueryBalancesResponse) Reset() { *m = QueryBalancesResponse{} } func (m *QueryBalancesResponse) String() string { return proto.CompactTextString(m) } func (*QueryBalancesResponse) ProtoMessage() {} func (*QueryBalancesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{29} + return fileDescriptor_c85efa417eafb74b, []int{31} } func (m *QueryBalancesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1612,7 +1713,7 @@ func (m *QuerySupplyRequest) Reset() { *m = QuerySupplyRequest{} } func (m *QuerySupplyRequest) String() string { return proto.CompactTextString(m) } func (*QuerySupplyRequest) ProtoMessage() {} func (*QuerySupplyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{30} + return fileDescriptor_c85efa417eafb74b, []int{32} } func (m *QuerySupplyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1665,7 +1766,7 @@ func (m *QuerySupplyResponse) Reset() { *m = QuerySupplyResponse{} } func (m *QuerySupplyResponse) String() string { return proto.CompactTextString(m) } func (*QuerySupplyResponse) ProtoMessage() {} func (*QuerySupplyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{31} + return fileDescriptor_c85efa417eafb74b, []int{33} } func (m *QuerySupplyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1723,7 +1824,7 @@ func (m *QueryCreditTypesRequest) Reset() { *m = QueryCreditTypesRequest func (m *QueryCreditTypesRequest) String() string { return proto.CompactTextString(m) } func (*QueryCreditTypesRequest) ProtoMessage() {} func (*QueryCreditTypesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{32} + return fileDescriptor_c85efa417eafb74b, []int{34} } func (m *QueryCreditTypesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1762,7 +1863,7 @@ func (m *QueryCreditTypesResponse) Reset() { *m = QueryCreditTypesRespon func (m *QueryCreditTypesResponse) String() string { return proto.CompactTextString(m) } func (*QueryCreditTypesResponse) ProtoMessage() {} func (*QueryCreditTypesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{33} + return fileDescriptor_c85efa417eafb74b, []int{35} } func (m *QueryCreditTypesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1806,7 +1907,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{34} + return fileDescriptor_c85efa417eafb74b, []int{36} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1845,7 +1946,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{35} + return fileDescriptor_c85efa417eafb74b, []int{37} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1898,7 +1999,7 @@ func (m *ClassInfo) Reset() { *m = ClassInfo{} } func (m *ClassInfo) String() string { return proto.CompactTextString(m) } func (*ClassInfo) ProtoMessage() {} func (*ClassInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{36} + return fileDescriptor_c85efa417eafb74b, []int{38} } func (m *ClassInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1977,7 +2078,7 @@ func (m *ProjectInfo) Reset() { *m = ProjectInfo{} } func (m *ProjectInfo) String() string { return proto.CompactTextString(m) } func (*ProjectInfo) ProtoMessage() {} func (*ProjectInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{37} + return fileDescriptor_c85efa417eafb74b, []int{39} } func (m *ProjectInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2078,7 +2179,7 @@ func (m *BatchInfo) Reset() { *m = BatchInfo{} } func (m *BatchInfo) String() string { return proto.CompactTextString(m) } func (*BatchInfo) ProtoMessage() {} func (*BatchInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{38} + return fileDescriptor_c85efa417eafb74b, []int{40} } func (m *BatchInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2184,7 +2285,7 @@ func (m *BatchBalanceInfo) Reset() { *m = BatchBalanceInfo{} } func (m *BatchBalanceInfo) String() string { return proto.CompactTextString(m) } func (*BatchBalanceInfo) ProtoMessage() {} func (*BatchBalanceInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_c85efa417eafb74b, []int{39} + return fileDescriptor_c85efa417eafb74b, []int{41} } func (m *BatchBalanceInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2257,6 +2358,8 @@ func init() { proto.RegisterType((*QueryClassResponse)(nil), "regen.ecocredit.v1.QueryClassResponse") proto.RegisterType((*QueryClassIssuersRequest)(nil), "regen.ecocredit.v1.QueryClassIssuersRequest") proto.RegisterType((*QueryClassIssuersResponse)(nil), "regen.ecocredit.v1.QueryClassIssuersResponse") + proto.RegisterType((*QueryProjectsRequest)(nil), "regen.ecocredit.v1.QueryProjectsRequest") + proto.RegisterType((*QueryProjectsResponse)(nil), "regen.ecocredit.v1.QueryProjectsResponse") proto.RegisterType((*QueryProjectsByClassRequest)(nil), "regen.ecocredit.v1.QueryProjectsByClassRequest") proto.RegisterType((*QueryProjectsByClassResponse)(nil), "regen.ecocredit.v1.QueryProjectsByClassResponse") proto.RegisterType((*QueryProjectsByReferenceIdRequest)(nil), "regen.ecocredit.v1.QueryProjectsByReferenceIdRequest") @@ -2294,127 +2397,129 @@ func init() { func init() { proto.RegisterFile("regen/ecocredit/v1/query.proto", fileDescriptor_c85efa417eafb74b) } var fileDescriptor_c85efa417eafb74b = []byte{ - // 1907 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x6f, 0xdb, 0xc8, - 0x15, 0x0f, 0x15, 0x7f, 0xc8, 0xcf, 0x8e, 0x9d, 0x4e, 0x9d, 0xd6, 0x51, 0x62, 0xc5, 0x61, 0x93, - 0xd8, 0x49, 0x2c, 0xd2, 0x76, 0x3e, 0xda, 0x24, 0xfd, 0xb2, 0x1b, 0xb4, 0xf0, 0xcd, 0x51, 0x83, - 0x14, 0x70, 0xeb, 0xaa, 0x94, 0x38, 0x56, 0x94, 0x48, 0xa4, 0x42, 0x52, 0x4e, 0x5c, 0x41, 0x4d, - 0x5b, 0xa0, 0xe8, 0xad, 0x0d, 0xda, 0x4b, 0x6e, 0xfd, 0x40, 0x4f, 0x3d, 0x14, 0x68, 0xd1, 0x4b, - 0x91, 0x43, 0x6f, 0x8b, 0x3d, 0x06, 0xc8, 0x2e, 0xb0, 0x1f, 0x97, 0xdd, 0x64, 0x0f, 0xfb, 0x67, - 0x2c, 0x34, 0xf3, 0x86, 0xe4, 0x50, 0x14, 0xc5, 0xec, 0x6a, 0x03, 0x9f, 0x6c, 0x8e, 0xde, 0x9b, - 0xf7, 0xfb, 0xbd, 0xf7, 0xe6, 0xcd, 0x9b, 0x07, 0x79, 0x87, 0x56, 0xa9, 0xa5, 0xd3, 0x8a, 0x5d, - 0x71, 0xa8, 0x59, 0xf3, 0xf4, 0xbd, 0x55, 0xfd, 0x41, 0x8b, 0x3a, 0xfb, 0x5a, 0xd3, 0xb1, 0x3d, - 0x9b, 0x10, 0xf6, 0xbb, 0xe6, 0xff, 0xae, 0xed, 0xad, 0xe6, 0x4e, 0x56, 0x6d, 0xbb, 0x5a, 0xa7, - 0xba, 0xd1, 0xac, 0xe9, 0x86, 0x65, 0xd9, 0x9e, 0xe1, 0xd5, 0x6c, 0xcb, 0xe5, 0x1a,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 0x68, - 0xa8, 0x3f, 0x63, 0x4c, 0xee, 0x90, 0xc5, 0xbe, 0x90, 0xf4, 0x76, 0xa8, 0x63, 0xed, 0x7b, 0xc0, - 0x05, 0x7a, 0x49, 0x98, 0x3c, 0xcd, 0x74, 0x0f, 0x38, 0x6b, 0x8c, 0x13, 0x0f, 0x78, 0x78, 0x30, - 0x92, 0x78, 0xc0, 0xa5, 0x79, 0x87, 0xfa, 0x3f, 0x85, 0xa1, 0xff, 0x8f, 0xd2, 0x2f, 0x10, 0x4c, - 0x5c, 0xc6, 0xd4, 0x2d, 0x9d, 0xac, 0x17, 0xef, 0x6c, 0x7f, 0x27, 0xfe, 0x4e, 0x8a, 0xa5, 0x12, - 0x6c, 0xe6, 0xab, 0x7f, 0x9b, 0x5c, 0x4f, 0xb0, 0xea, 0x06, 0x92, 0x71, 0x7e, 0x24, 0x7f, 0x54, - 0x20, 0x2b, 0x86, 0x1d, 0x64, 0x20, 0x65, 0xff, 0x34, 0x9e, 0x4f, 0x21, 0x89, 0xde, 0xd1, 0x98, - 0x73, 0xfa, 0xf4, 0x7a, 0xbd, 0x28, 0xc9, 0xff, 0x15, 0x18, 0xc3, 0x51, 0x42, 0xff, 0xec, 0x91, - 0x66, 0x1f, 0xb9, 0xc5, 0x81, 0x72, 0x88, 0xc5, 0x64, 0x58, 0x7e, 0x1e, 0x7f, 0x91, 0xf0, 0xa1, - 0x46, 0x24, 0xcf, 0x06, 0x9c, 0x12, 0x39, 0x38, 0x7c, 0x07, 0xf2, 0x27, 0x05, 0x26, 0x43, 0x73, - 0x0b, 0x72, 0xb1, 0x7f, 0xfb, 0xd9, 0x33, 0xf8, 0xc8, 0x2d, 0xa7, 0x13, 0x46, 0x42, 0x4b, 0x8c, - 0x90, 0x4a, 0x16, 0x62, 0xfb, 0x32, 0xf6, 0x5f, 0x81, 0x0d, 0x49, 0x48, 0x07, 0xc6, 0xf8, 0x88, - 0x22, 0xc1, 0xab, 0xd2, 0x34, 0x24, 0xc1, 0xab, 0xf2, 0x7c, 0x44, 0x55, 0x19, 0x88, 0x93, 0x24, - 0x17, 0x7b, 0xe5, 0x32, 0xd9, 0x8d, 0xad, 0xb7, 0x5f, 0xe6, 0x95, 0xe7, 0x2f, 0xf3, 0xca, 0x47, - 0x2f, 0xf3, 0xca, 0x93, 0x57, 0xf9, 0x43, 0xcf, 0x5f, 0xe5, 0x0f, 0xbd, 0xf7, 0x2a, 0x7f, 0x68, - 0xfb, 0x6a, 0xb5, 0xe6, 0xdd, 0x6d, 0x95, 0xb5, 0x8a, 0xdd, 0xe0, 0xfa, 0x05, 0x8b, 0x7a, 0x0f, - 0x6d, 0xe7, 0x3e, 0x7e, 0xd5, 0xa9, 0x59, 0xa5, 0x8e, 0xfe, 0x28, 0xb4, 0x6d, 0xc5, 0x76, 0x68, - 0x79, 0x8c, 0x3d, 0x94, 0x2f, 0x7d, 0x16, 0x00, 0x00, 0xff, 0xff, 0x51, 0x33, 0x55, 0x33, 0x4a, - 0x22, 0x00, 0x00, + // 1947 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x6f, 0x24, 0x47, + 0x15, 0xdf, 0x9a, 0x5d, 0xdb, 0xe3, 0x67, 0xc7, 0x5e, 0x8a, 0x0d, 0x78, 0x3b, 0xde, 0xd9, 0x4d, + 0xb3, 0x59, 0xcf, 0x66, 0x3d, 0xdd, 0x6b, 0x6f, 0x36, 0x90, 0x84, 0x2f, 0x9b, 0x08, 0xe4, 0x9b, + 0x33, 0x44, 0x8b, 0x64, 0x70, 0x86, 0x9e, 0xe9, 0xf2, 0x64, 0x92, 0x99, 0xee, 0x49, 0x77, 0x8f, + 0x93, 0x61, 0x34, 0x04, 0x90, 0x22, 0x6e, 0x10, 0xc1, 0x25, 0x17, 0xc4, 0x87, 0x38, 0x71, 0x40, + 0x02, 0x71, 0x41, 0x39, 0x70, 0x43, 0x1c, 0x23,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, 0xbc, 0xe9, 0x7a, 0xaf, 0xe3, 0x57, 0x97, 0xd9, 0x6d, 0xe6, + 0x99, 0x6f, 0xc5, 0xb6, 0x6d, 0xb9, 0x1e, 0x6b, 0x2e, 0xf2, 0x07, 0xfb, 0x9d, 0xff, 0x06, 0x00, + 0x00, 0xff, 0xff, 0xa7, 0xb5, 0x93, 0xc7, 0xd2, 0x23, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2438,6 +2543,8 @@ type QueryClient interface { Class(ctx context.Context, in *QueryClassRequest, opts ...grpc.CallOption) (*QueryClassResponse, error) // ClassIssuers queries for the addresses of the issuers for a credit class. ClassIssuers(ctx context.Context, in *QueryClassIssuersRequest, opts ...grpc.CallOption) (*QueryClassIssuersResponse, error) + // Projects queries for all projects within a class with pagination. + Projects(ctx context.Context, in *QueryProjectsRequest, opts ...grpc.CallOption) (*QueryProjectsResponse, error) // ProjectsByClass queries for all projects within a class with pagination. ProjectsByClass(ctx context.Context, in *QueryProjectsByClassRequest, opts ...grpc.CallOption) (*QueryProjectsByClassResponse, error) // ProjectsByReferenceId queries for all projects by reference-id with @@ -2517,6 +2624,15 @@ func (c *queryClient) ClassIssuers(ctx context.Context, in *QueryClassIssuersReq return out, nil } +func (c *queryClient) Projects(ctx context.Context, in *QueryProjectsRequest, opts ...grpc.CallOption) (*QueryProjectsResponse, error) { + out := new(QueryProjectsResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/Projects", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) ProjectsByClass(ctx context.Context, in *QueryProjectsByClassRequest, opts ...grpc.CallOption) (*QueryProjectsByClassResponse, error) { out := new(QueryProjectsByClassResponse) err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/ProjectsByClass", in, out, opts...) @@ -2654,6 +2770,8 @@ type QueryServer interface { Class(context.Context, *QueryClassRequest) (*QueryClassResponse, error) // ClassIssuers queries for the addresses of the issuers for a credit class. ClassIssuers(context.Context, *QueryClassIssuersRequest) (*QueryClassIssuersResponse, error) + // Projects queries for all projects within a class with pagination. + Projects(context.Context, *QueryProjectsRequest) (*QueryProjectsResponse, error) // ProjectsByClass queries for all projects within a class with pagination. ProjectsByClass(context.Context, *QueryProjectsByClassRequest) (*QueryProjectsByClassResponse, error) // ProjectsByReferenceId queries for all projects by reference-id with @@ -2705,6 +2823,9 @@ func (*UnimplementedQueryServer) Class(ctx context.Context, req *QueryClassReque func (*UnimplementedQueryServer) ClassIssuers(ctx context.Context, req *QueryClassIssuersRequest) (*QueryClassIssuersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ClassIssuers not implemented") } +func (*UnimplementedQueryServer) Projects(ctx context.Context, req *QueryProjectsRequest) (*QueryProjectsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Projects not implemented") +} func (*UnimplementedQueryServer) ProjectsByClass(ctx context.Context, req *QueryProjectsByClassRequest) (*QueryProjectsByClassResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ProjectsByClass not implemented") } @@ -2824,6 +2945,24 @@ func _Query_ClassIssuers_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +func _Query_Projects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProjectsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Projects(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.v1.Query/Projects", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Projects(ctx, req.(*QueryProjectsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_ProjectsByClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryProjectsByClassRequest) if err := dec(in); err != nil { @@ -3096,6 +3235,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "ClassIssuers", Handler: _Query_ClassIssuers_Handler, }, + { + MethodName: "Projects", + Handler: _Query_Projects_Handler, + }, { MethodName: "ProjectsByClass", Handler: _Query_ProjectsByClass_Handler, @@ -3483,6 +3626,90 @@ func (m *QueryClassIssuersResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } +func (m *QueryProjectsRequest) 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 *QueryProjectsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProjectsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryProjectsResponse) 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 *QueryProjectsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProjectsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Projects) > 0 { + for iNdEx := len(m.Projects) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Projects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func (m *QueryProjectsByClassRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -5010,6 +5237,38 @@ func (m *QueryClassIssuersResponse) Size() (n int) { return n } +func (m *QueryProjectsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryProjectsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Projects) > 0 { + for _, e := range m.Projects { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func (m *QueryProjectsByClassRequest) Size() (n int) { if m == nil { return 0 @@ -6437,6 +6696,212 @@ func (m *QueryClassIssuersResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryProjectsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryProjectsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProjectsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryProjectsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryProjectsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProjectsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Projects", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Projects = append(m.Projects, &ProjectInfo{}) + if err := m.Projects[len(m.Projects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *QueryProjectsByClassRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/ecocredit/core/query.pb.gw.go b/x/ecocredit/core/query.pb.gw.go index 52dee5c7d2..91a8f543f9 100644 --- a/x/ecocredit/core/query.pb.gw.go +++ b/x/ecocredit/core/query.pb.gw.go @@ -465,6 +465,42 @@ func local_request_Query_ClassIssuers_1(ctx context.Context, marshaler runtime.M } +var ( + filter_Query_Projects_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_Projects_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProjectsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Projects_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Projects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Projects_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProjectsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Projects_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Projects(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_Query_ProjectsByClass_0 = &utilities.DoubleArray{Encoding: map[string]int{"class_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -2192,6 +2228,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_Projects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Projects_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Projects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_ProjectsByClass_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -2948,6 +3007,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_Projects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Projects_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Projects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_ProjectsByClass_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -3466,6 +3545,8 @@ var ( pattern_Query_ClassIssuers_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"regen", "ecocredit", "v1", "classes", "class_id", "issuers"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Projects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"regen", "ecocredit", "v1", "projects"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_ProjectsByClass_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "ecocredit", "v1", "projects-by-class", "class_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_ProjectsByClass_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"regen", "ecocredit", "v1", "classes", "class_id", "projects"}, "", runtime.AssumeColonVerbOpt(false))) @@ -3532,6 +3613,8 @@ var ( forward_Query_ClassIssuers_1 = runtime.ForwardResponseMessage + forward_Query_Projects_0 = runtime.ForwardResponseMessage + forward_Query_ProjectsByClass_0 = runtime.ForwardResponseMessage forward_Query_ProjectsByClass_1 = runtime.ForwardResponseMessage diff --git a/x/ecocredit/server/core/query_projects.go b/x/ecocredit/server/core/query_projects.go new file mode 100644 index 0000000000..536cdef52a --- /dev/null +++ b/x/ecocredit/server/core/query_projects.go @@ -0,0 +1,61 @@ +package core + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/orm/model/ormlist" + sdk "github.com/cosmos/cosmos-sdk/types" + + api "github.com/regen-network/regen-ledger/api/regen/ecocredit/v1" + "github.com/regen-network/regen-ledger/types/ormutil" + "github.com/regen-network/regen-ledger/x/ecocredit/core" +) + +// Projects queries all projects from a given credit class. +func (k Keeper) Projects(ctx context.Context, request *core.QueryProjectsRequest) (*core.QueryProjectsResponse, error) { + pg, err := ormutil.GogoPageReqToPulsarPageReq(request.Pagination) + if err != nil { + return nil, err + } + + it, err := k.stateStore.ProjectTable().List(ctx, api.ProjectIdIndexKey{}, ormlist.Paginate(pg)) + if err != nil { + return nil, err + } + defer it.Close() + + projects := make([]*core.ProjectInfo, 0) + for it.Next() { + project, err := it.Value() + if err != nil { + return nil, err + } + + admin := sdk.AccAddress(project.Admin) + + class, err := k.stateStore.ClassTable().Get(ctx, project.ClassKey) + if err != nil { + return nil, err + } + + info := core.ProjectInfo{ + Id: project.Id, + Admin: admin.String(), + ClassId: class.Id, + Jurisdiction: project.Jurisdiction, + Metadata: project.Metadata, + } + + projects = append(projects, &info) + } + + pr, err := ormutil.PulsarPageResToGogoPageRes(it.PageResponse()) + if err != nil { + return nil, err + } + + return &core.QueryProjectsResponse{ + Projects: projects, + Pagination: pr, + }, nil +} diff --git a/x/ecocredit/server/core/query_projects_by_class_test.go b/x/ecocredit/server/core/query_projects_by_class_test.go index 377cb852d6..bf15e8ccc7 100644 --- a/x/ecocredit/server/core/query_projects_by_class_test.go +++ b/x/ecocredit/server/core/query_projects_by_class_test.go @@ -12,7 +12,7 @@ import ( "github.com/regen-network/regen-ledger/x/ecocredit/core" ) -func TestQuery_Projects(t *testing.T) { +func TestQuery_ProjectsByClass(t *testing.T) { t.Parallel() s := setupBase(t) diff --git a/x/ecocredit/server/core/query_projects_test.go b/x/ecocredit/server/core/query_projects_test.go new file mode 100644 index 0000000000..4e5a9d6921 --- /dev/null +++ b/x/ecocredit/server/core/query_projects_test.go @@ -0,0 +1,48 @@ +package core + +import ( + "testing" + + "gotest.tools/v3/assert" + + "github.com/cosmos/cosmos-sdk/types/query" + + api "github.com/regen-network/regen-ledger/api/regen/ecocredit/v1" + "github.com/regen-network/regen-ledger/x/ecocredit/core" +) + +func TestQuery_Projects(t *testing.T) { + t.Parallel() + s := setupBase(t) + + // insert credit class + classKey, err := s.stateStore.ClassTable().InsertReturningID(s.ctx, &api.Class{ + Id: "C01", + }) + assert.NilError(t, err) + + project := &api.Project{ + Id: "C01-001", + ClassKey: classKey, + Jurisdiction: "US-CA", + Metadata: "data", + } + + // insert two projects + assert.NilError(t, s.stateStore.ProjectTable().Insert(s.ctx, project)) + assert.NilError(t, s.stateStore.ProjectTable().Insert(s.ctx, &api.Project{ + Id: "P02", + ClassKey: classKey, + })) + + // query projects with pagination + res, err := s.k.Projects(s.ctx, &core.QueryProjectsRequest{ + Pagination: &query.PageRequest{Limit: 1, CountTotal: true}, + }) + assert.NilError(t, err) + assert.Equal(t, 1, len(res.Projects)) + assert.Equal(t, project.Id, res.Projects[0].Id) + assert.Equal(t, "C01", res.Projects[0].ClassId) + assert.Equal(t, project.Jurisdiction, res.Projects[0].Jurisdiction) + assert.Equal(t, uint64(2), res.Pagination.Total) +} From 1b6ddfd25256d2c7d8918cda7eeca7ff46554e90 Mon Sep 17 00:00:00 2001 From: ryanchristo <12519942+ryanchristo@users.noreply.github.com> Date: Fri, 10 Jun 2022 20:55:26 -0700 Subject: [PATCH 3/5] feat(x/ecocredit): query all projects with pagination --- proto/regen/ecocredit/v1/query.proto | 2 +- x/ecocredit/client/query.go | 8 +++++--- x/ecocredit/client/testsuite/grpc.go | 24 +++++++++++++++++++----- x/ecocredit/client/testsuite/query.go | 15 +++++++-------- x/ecocredit/client/testsuite/tx.go | 8 +++----- 5 files changed, 35 insertions(+), 22 deletions(-) diff --git a/proto/regen/ecocredit/v1/query.proto b/proto/regen/ecocredit/v1/query.proto index 6747f0fda4..a135aa2a69 100644 --- a/proto/regen/ecocredit/v1/query.proto +++ b/proto/regen/ecocredit/v1/query.proto @@ -276,7 +276,7 @@ message QueryProjectsResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// QueryProjectsByClassRequest is the Query/Projects request type. +// QueryProjectsByClassRequest is the Query/ProjectsByClass request type. message QueryProjectsByClassRequest { // class_id is the unique identifier of the credit class to query. diff --git a/x/ecocredit/client/query.go b/x/ecocredit/client/query.go index 3e5ec53996..bf6d81d630 100644 --- a/x/ecocredit/client/query.go +++ b/x/ecocredit/client/query.go @@ -159,7 +159,8 @@ regen q ecocredit class-issuers C01 --limit 10 func QueryProjectsCmd() *cobra.Command { cmd := &cobra.Command{ Use: "projects", - Short: "List all projects with pagination flags", + Short: "Query all projects", + Long: "Query all projects with optional pagination flags.", Example: ` regen q ecocredit projects regen q ecocredit projects --limit 10 --count-total @@ -189,11 +190,12 @@ regen q ecocredit projects --limit 10 --count-total return qflags(cmd) } -// QueryProjectsByClassCmd returns a query command that retrieves projects. +// QueryProjectsByClassCmd returns a query command that retrieves projects by credit class. func QueryProjectsByClassCmd() *cobra.Command { cmd := &cobra.Command{ Use: "projects-by-class [class_id]", - Short: "List all projects in the given class with pagination flags", + Short: "Query projects by credit class", + Long: "Query projects by credit class with optional pagination flags.", Example: ` regen q ecocredit projects-by-class C01 regen q ecocredit projects-by-class C01 --limit 10 --count-total diff --git a/x/ecocredit/client/testsuite/grpc.go b/x/ecocredit/client/testsuite/grpc.go index 15c02c27d0..5ae3436596 100644 --- a/x/ecocredit/client/testsuite/grpc.go +++ b/x/ecocredit/client/testsuite/grpc.go @@ -127,7 +127,11 @@ func (s *IntegrationTestSuite) TestQueryProjects() { }, { name: "valid with pagination", - url: fmt.Sprintf("%s/%s/projects?pagination.countTotal=true", s.val.APIAddress, coreRoute), + url: fmt.Sprintf( + "%s/%s/projects?pagination.limit=1&pagination.countTotal=true", + s.val.APIAddress, + coreRoute, + ), }, } @@ -141,9 +145,12 @@ func (s *IntegrationTestSuite) TestQueryProjects() { var res core.QueryProjectsResponse require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) require.NotEmpty(res.Projects) - if strings.Contains(tc.url, "pagination") { + if strings.Contains(tc.name, "pagination") { + require.Len(res.Projects, 1) require.NotEmpty(res.Pagination) require.NotEmpty(res.Pagination.Total) + } else { + require.Empty(res.Pagination) } }) } @@ -162,6 +169,7 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClass() { name: "valid with pagination", url: fmt.Sprintf( "%s/%s/projects-by-class/%s?pagination.countTotal=true", + //"%s/%s/projects-by-class/%s?pagination.limit=1&pagination.countTotal=true", TODO: #1113 s.val.APIAddress, coreRoute, s.classId, @@ -183,9 +191,12 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClass() { var res core.QueryProjectsByClassResponse require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) require.NotEmpty(res.Projects) - if strings.Contains(tc.url, "pagination") { + if strings.Contains(tc.name, "pagination") { + // require.Len(res.Projects, 1) TODO: #1113 require.NotEmpty(res.Pagination) require.NotEmpty(res.Pagination.Total) + } else { + require.Empty(res.Pagination) } }) } @@ -208,7 +219,7 @@ func (s *IntegrationTestSuite) TestQueryProjectsByReferenceId() { { name: "valid with pagination", url: fmt.Sprintf( - "%s/%s/projects-by-reference-id/%s?pagination.countTotal=true", + "%s/%s/projects-by-reference-id/%s?pagination.limit=1&pagination.countTotal=true", s.val.APIAddress, coreRoute, s.projectReferenceId, @@ -234,9 +245,12 @@ func (s *IntegrationTestSuite) TestQueryProjectsByReferenceId() { var res core.QueryProjectsByReferenceIdResponse require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) require.NotEmpty(res.Projects) - if strings.Contains(tc.url, "pagination") { + if strings.Contains(tc.name, "pagination") { + require.Len(res.Projects, 1) require.NotEmpty(res.Pagination) require.NotEmpty(res.Pagination.Total) + } else { + require.Empty(res.Pagination) } }) } diff --git a/x/ecocredit/client/testsuite/query.go b/x/ecocredit/client/testsuite/query.go index f553d104d9..f9a0379604 100644 --- a/x/ecocredit/client/testsuite/query.go +++ b/x/ecocredit/client/testsuite/query.go @@ -2,6 +2,7 @@ package testsuite import ( "fmt" + "strings" "github.com/cosmos/cosmos-sdk/client/flags" sdk "github.com/cosmos/cosmos-sdk/types" @@ -838,7 +839,6 @@ func (s *IntegrationTestSuite) TestQueryProjectsCmd() { args []string expErr bool expErrMsg string - paginated bool }{ { name: "too many args", @@ -854,9 +854,8 @@ func (s *IntegrationTestSuite) TestQueryProjectsCmd() { name: "valid within pagination", args: []string{ fmt.Sprintf("--%s", flags.FlagCountTotal), - fmt.Sprintf("--%s=%s", flags.FlagLimit, "2"), + fmt.Sprintf("--%s=%d", flags.FlagLimit, 1), }, - paginated: true, }, } @@ -874,7 +873,8 @@ func (s *IntegrationTestSuite) TestQueryProjectsCmd() { var res core.QueryProjectsResponse require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) require.NotEmpty(res.Projects) - if tc.paginated { + if strings.Contains(tc.name, "pagination") { + require.Len(res.Projects, 1) require.NotEmpty(res.Pagination) require.NotEmpty(res.Pagination.Total) } @@ -892,7 +892,6 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClassCmd() { args []string expErr bool expErrMsg string - paginated bool }{ { name: "missing args", @@ -915,9 +914,8 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClassCmd() { args: []string{ s.classId, fmt.Sprintf("--%s", flags.FlagCountTotal), - fmt.Sprintf("--%s=%s", flags.FlagLimit, "2"), + //fmt.Sprintf("--%s=%d", flags.FlagLimit, 1), TODO: #1113 }, - paginated: true, }, } @@ -935,7 +933,8 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClassCmd() { var res core.QueryProjectsByClassResponse require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) require.NotEmpty(res.Projects) - if tc.paginated { + if strings.Contains(tc.name, "pagination") { + //require.Len(res.Projects, 1) TODO: #1113 require.NotEmpty(res.Pagination) require.NotEmpty(res.Pagination.Total) } diff --git a/x/ecocredit/client/testsuite/tx.go b/x/ecocredit/client/testsuite/tx.go index f2ad877668..92c4d9d5da 100644 --- a/x/ecocredit/client/testsuite/tx.go +++ b/x/ecocredit/client/testsuite/tx.go @@ -1682,12 +1682,10 @@ func (s *IntegrationTestSuite) createProject(clientCtx client.Context, msg *core return append(args, flags...) } - flags := append( - s.commonTxFlags(), - makeFlagFrom(msg.Issuer), - fmt.Sprintf("--reference-id=%s", msg.ReferenceId), - ) + referenceIdFlag := fmt.Sprintf("--reference-id=%s", msg.ReferenceId) + flags := append(s.commonTxFlags(), makeFlagFrom(msg.Issuer), referenceIdFlag) args := makeCreateProjectArgs(msg, flags...) + out, err := cli.ExecTestCLICmd(clientCtx, cmd, args) s.Require().NoError(err) var res sdk.TxResponse From 3d5bfd86648713b0fe185f863588fe3eb4c054c4 Mon Sep 17 00:00:00 2001 From: ryanchristo <12519942+ryanchristo@users.noreply.github.com> Date: Sat, 11 Jun 2022 09:52:20 -0700 Subject: [PATCH 4/5] fix comments --- api/regen/ecocredit/v1/query.pulsar.go | 2 +- api/regen/ecocredit/v1/query_grpc.pb.go | 4 ++-- proto/regen/ecocredit/v1/query.proto | 2 +- x/ecocredit/client/testsuite/grpc.go | 6 ++++-- x/ecocredit/client/testsuite/query.go | 6 ++++-- x/ecocredit/core/query.pb.go | 6 +++--- x/ecocredit/server/core/query_projects.go | 2 +- 7 files changed, 16 insertions(+), 12 deletions(-) diff --git a/api/regen/ecocredit/v1/query.pulsar.go b/api/regen/ecocredit/v1/query.pulsar.go index a53b3a4259..7d66f8abf7 100644 --- a/api/regen/ecocredit/v1/query.pulsar.go +++ b/api/regen/ecocredit/v1/query.pulsar.go @@ -22134,7 +22134,7 @@ func (x *QueryProjectsResponse) GetPagination() *v1beta1.PageResponse { return nil } -// QueryProjectsByClassRequest is the Query/Projects request type. +// QueryProjectsByClassRequest is the Query/ProjectsByClass request type. type QueryProjectsByClassRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/regen/ecocredit/v1/query_grpc.pb.go b/api/regen/ecocredit/v1/query_grpc.pb.go index ae6b038de0..10fe8d0db5 100644 --- a/api/regen/ecocredit/v1/query_grpc.pb.go +++ b/api/regen/ecocredit/v1/query_grpc.pb.go @@ -31,7 +31,7 @@ type QueryClient interface { Class(ctx context.Context, in *QueryClassRequest, opts ...grpc.CallOption) (*QueryClassResponse, error) // ClassIssuers queries for the addresses of the issuers for a credit class. ClassIssuers(ctx context.Context, in *QueryClassIssuersRequest, opts ...grpc.CallOption) (*QueryClassIssuersResponse, error) - // Projects queries for all projects within a class with pagination. + // Projects queries for all projects with pagination. Projects(ctx context.Context, in *QueryProjectsRequest, opts ...grpc.CallOption) (*QueryProjectsResponse, error) // ProjectsByClass queries for all projects within a class with pagination. ProjectsByClass(ctx context.Context, in *QueryProjectsByClassRequest, opts ...grpc.CallOption) (*QueryProjectsByClassResponse, error) @@ -260,7 +260,7 @@ type QueryServer interface { Class(context.Context, *QueryClassRequest) (*QueryClassResponse, error) // ClassIssuers queries for the addresses of the issuers for a credit class. ClassIssuers(context.Context, *QueryClassIssuersRequest) (*QueryClassIssuersResponse, error) - // Projects queries for all projects within a class with pagination. + // Projects queries for all projects with pagination. Projects(context.Context, *QueryProjectsRequest) (*QueryProjectsResponse, error) // ProjectsByClass queries for all projects within a class with pagination. ProjectsByClass(context.Context, *QueryProjectsByClassRequest) (*QueryProjectsByClassResponse, error) diff --git a/proto/regen/ecocredit/v1/query.proto b/proto/regen/ecocredit/v1/query.proto index a135aa2a69..af0e44195d 100644 --- a/proto/regen/ecocredit/v1/query.proto +++ b/proto/regen/ecocredit/v1/query.proto @@ -49,7 +49,7 @@ service Query { }; } - // Projects queries for all projects within a class with pagination. + // Projects queries for all projects with pagination. rpc Projects(QueryProjectsRequest) returns (QueryProjectsResponse) { option (google.api.http).get = "/regen/ecocredit/v1/projects"; diff --git a/x/ecocredit/client/testsuite/grpc.go b/x/ecocredit/client/testsuite/grpc.go index 5ae3436596..77737b0517 100644 --- a/x/ecocredit/client/testsuite/grpc.go +++ b/x/ecocredit/client/testsuite/grpc.go @@ -169,7 +169,8 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClass() { name: "valid with pagination", url: fmt.Sprintf( "%s/%s/projects-by-class/%s?pagination.countTotal=true", - //"%s/%s/projects-by-class/%s?pagination.limit=1&pagination.countTotal=true", TODO: #1113 + // TODO: #1113 + // "%s/%s/projects-by-class/%s?pagination.limit=1&pagination.countTotal=true", s.val.APIAddress, coreRoute, s.classId, @@ -192,7 +193,8 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClass() { require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) require.NotEmpty(res.Projects) if strings.Contains(tc.name, "pagination") { - // require.Len(res.Projects, 1) TODO: #1113 + // TODO: #1113 + // require.Len(res.Projects, 1) require.NotEmpty(res.Pagination) require.NotEmpty(res.Pagination.Total) } else { diff --git a/x/ecocredit/client/testsuite/query.go b/x/ecocredit/client/testsuite/query.go index f9a0379604..1daa0f9428 100644 --- a/x/ecocredit/client/testsuite/query.go +++ b/x/ecocredit/client/testsuite/query.go @@ -914,7 +914,8 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClassCmd() { args: []string{ s.classId, fmt.Sprintf("--%s", flags.FlagCountTotal), - //fmt.Sprintf("--%s=%d", flags.FlagLimit, 1), TODO: #1113 + // TODO: #1113 + // fmt.Sprintf("--%s=%d", flags.FlagLimit, 1), }, }, } @@ -934,7 +935,8 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClassCmd() { require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) require.NotEmpty(res.Projects) if strings.Contains(tc.name, "pagination") { - //require.Len(res.Projects, 1) TODO: #1113 + // TODO: #1113 + // require.Len(res.Projects, 1) require.NotEmpty(res.Pagination) require.NotEmpty(res.Pagination.Total) } diff --git a/x/ecocredit/core/query.pb.go b/x/ecocredit/core/query.pb.go index 95ccd731a6..a31bb24170 100644 --- a/x/ecocredit/core/query.pb.go +++ b/x/ecocredit/core/query.pb.go @@ -544,7 +544,7 @@ func (m *QueryProjectsResponse) GetPagination() *query.PageResponse { return nil } -// QueryProjectsByClassRequest is the Query/Projects request type. +// QueryProjectsByClassRequest is the Query/ProjectsByClass request type. type QueryProjectsByClassRequest struct { // class_id is the unique identifier of the credit class to query. ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` @@ -2543,7 +2543,7 @@ type QueryClient interface { Class(ctx context.Context, in *QueryClassRequest, opts ...grpc.CallOption) (*QueryClassResponse, error) // ClassIssuers queries for the addresses of the issuers for a credit class. ClassIssuers(ctx context.Context, in *QueryClassIssuersRequest, opts ...grpc.CallOption) (*QueryClassIssuersResponse, error) - // Projects queries for all projects within a class with pagination. + // Projects queries for all projects with pagination. Projects(ctx context.Context, in *QueryProjectsRequest, opts ...grpc.CallOption) (*QueryProjectsResponse, error) // ProjectsByClass queries for all projects within a class with pagination. ProjectsByClass(ctx context.Context, in *QueryProjectsByClassRequest, opts ...grpc.CallOption) (*QueryProjectsByClassResponse, error) @@ -2770,7 +2770,7 @@ type QueryServer interface { Class(context.Context, *QueryClassRequest) (*QueryClassResponse, error) // ClassIssuers queries for the addresses of the issuers for a credit class. ClassIssuers(context.Context, *QueryClassIssuersRequest) (*QueryClassIssuersResponse, error) - // Projects queries for all projects within a class with pagination. + // Projects queries for all projects with pagination. Projects(context.Context, *QueryProjectsRequest) (*QueryProjectsResponse, error) // ProjectsByClass queries for all projects within a class with pagination. ProjectsByClass(context.Context, *QueryProjectsByClassRequest) (*QueryProjectsByClassResponse, error) diff --git a/x/ecocredit/server/core/query_projects.go b/x/ecocredit/server/core/query_projects.go index 536cdef52a..5283541a42 100644 --- a/x/ecocredit/server/core/query_projects.go +++ b/x/ecocredit/server/core/query_projects.go @@ -11,7 +11,7 @@ import ( "github.com/regen-network/regen-ledger/x/ecocredit/core" ) -// Projects queries all projects from a given credit class. +// Projects queries all projects. func (k Keeper) Projects(ctx context.Context, request *core.QueryProjectsRequest) (*core.QueryProjectsResponse, error) { pg, err := ormutil.GogoPageReqToPulsarPageReq(request.Pagination) if err != nil { From 421ee9f7992feffb2e14cf7ac92649ab3abe6ec6 Mon Sep 17 00:00:00 2001 From: ryanchristo <12519942+ryanchristo@users.noreply.github.com> Date: Sun, 12 Jun 2022 10:09:56 -0700 Subject: [PATCH 5/5] clean up test format and add alternative binding --- api/regen/ecocredit/v1/query.pulsar.go | 341 +++++++++--------- proto/regen/ecocredit/v1/query.proto | 4 +- x/ecocredit/client/query.go | 2 +- x/ecocredit/client/testsuite/grpc.go | 60 +-- x/ecocredit/client/testsuite/query.go | 13 +- x/ecocredit/core/query.pb.go | 247 ++++++------- x/ecocredit/core/query.pb.gw.go | 121 ++++++- .../core/query_projects_by_class_test.go | 11 +- .../query_projects_by_reference_id_test.go | 22 +- .../server/core/query_projects_test.go | 11 +- 10 files changed, 491 insertions(+), 341 deletions(-) diff --git a/api/regen/ecocredit/v1/query.pulsar.go b/api/regen/ecocredit/v1/query.pulsar.go index 7d66f8abf7..8ac300843f 100644 --- a/api/regen/ecocredit/v1/query.pulsar.go +++ b/api/regen/ecocredit/v1/query.pulsar.go @@ -23989,7 +23989,7 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x52, 0x0d, 0x72, 0x65, 0x74, 0x69, 0x72, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xdd, 0x1c, 0x0a, 0x05, 0x51, 0x75, 0x65, + 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x90, 0x1d, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x81, 0x01, 0x0a, 0x07, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, @@ -24044,7 +24044,7 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0xe1, 0x01, 0x0a, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x94, 0x02, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, @@ -24052,188 +24052,191 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x65, 0x12, 0x30, 0x2f, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x31, 0x12, - 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, - 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x12, 0x87, 0x02, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x35, 0x2e, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x36, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x6e, 0x73, 0x65, 0x22, 0x9d, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x96, 0x01, 0x12, 0x30, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, + 0x2f, 0x12, 0x2d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, + 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, + 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x12, 0x87, 0x02, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x35, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x79, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2d, + 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, + 0x7d, 0x5a, 0x3a, 0x12, 0x38, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2d, 0x69, 0x64, 0x2f, 0x7b, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd9, 0x01, + 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, - 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x79, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, - 0x62, 0x79, 0x2d, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2d, 0x69, 0x64, 0x2f, - 0x7b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x3a, - 0x12, 0x38, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x72, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2d, 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd9, 0x01, 0x0a, 0x0f, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2f, - 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x63, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5d, 0x12, 0x2d, 0x2f, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x5a, 0x2c, 0x12, 0x2a, 0x2f, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0xbb, 0x01, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x57, 0x12, 0x28, 0x2f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5d, 0x12, 0x2d, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x5a, 0x2c, 0x12, 0x2a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, - 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x81, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, - 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0xbb, 0x01, 0x0a, 0x07, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x57, + 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x81, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x74, 0x63, + 0x68, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, + 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0xdb, 0x01, 0x0a, 0x0f, + 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, + 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, + 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0xdb, 0x01, 0x0a, 0x0f, 0x42, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x2f, 0x2e, 0x72, + 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5f, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x73, 0x73, 0x75, 0x65, + 0x72, 0x2f, 0x7b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x5a, 0x2d, 0x12, 0x2b, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, + 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, + 0x2f, 0x7b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x12, 0xda, 0x01, 0x0a, 0x0e, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, - 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x61, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x2e, 0x12, 0x2c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xe8, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x30, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, - 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5f, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x2f, 0x7b, - 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x5a, 0x2d, 0x12, 0x2b, 0x2f, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, - 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x2f, 0x7b, 0x69, - 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x12, 0xda, 0x01, 0x0a, 0x0e, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x61, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, - 0x62, 0x79, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, - 0x69, 0x64, 0x7d, 0x5a, 0x2e, 0x12, 0x2c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x73, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, - 0x69, 0x64, 0x7d, 0x12, 0xe8, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, - 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, + 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x6f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x69, 0x12, 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x32, 0x12, + 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, + 0x7d, 0x12, 0xb4, 0x01, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x25, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x56, 0x12, 0x27, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x2b, 0x12, 0x29, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x98, 0x02, 0x0a, 0x07, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb2, + 0x01, 0x12, 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, + 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x7b, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x5a, 0x3d, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, + 0x6f, 0x6d, 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x7d, 0x5a, 0x3c, 0x12, 0x3a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, + 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, + 0x6f, 0x6d, 0x7d, 0x12, 0x8f, 0x01, 0x0a, 0x08, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, + 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x69, 0x12, 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb4, - 0x01, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xbf, 0x01, 0x0a, 0x06, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, + 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x12, - 0x27, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, - 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x98, 0x02, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb2, 0x01, 0x12, 0x33, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x7d, 0x5a, 0x3d, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5e, 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x73, + 0x75, 0x70, 0x70, 0x6c, 0x79, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, + 0x6f, 0x6d, 0x7d, 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, - 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x7d, 0x5a, 0x3c, 0x12, 0x3a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, - 0x12, 0x8f, 0x01, 0x0a, 0x08, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x28, 0x2e, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, - 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x7d, 0x12, 0xbf, 0x01, 0x0a, 0x06, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x26, 0x2e, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x64, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5e, 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x70, 0x70, - 0x6c, 0x79, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, - 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, - 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x73, 0x75, - 0x70, 0x70, 0x6c, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x7d, 0x0a, 0x06, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xd8, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x7d, 0x0a, 0x06, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, - 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, - 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, - 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, + 0x1a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xd8, 0x01, 0x0a, 0x16, + 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x76, 0x31, 0x3b, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x52, 0x45, 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, + 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x14, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/regen/ecocredit/v1/query.proto b/proto/regen/ecocredit/v1/query.proto index af0e44195d..af8e5b4649 100644 --- a/proto/regen/ecocredit/v1/query.proto +++ b/proto/regen/ecocredit/v1/query.proto @@ -51,8 +51,7 @@ service Query { // Projects queries for all projects with pagination. rpc Projects(QueryProjectsRequest) returns (QueryProjectsResponse) { - option (google.api.http).get = - "/regen/ecocredit/v1/projects"; + option (google.api.http).get = "/regen/ecocredit/v1/projects"; } // ProjectsByClass queries for all projects within a class with pagination. @@ -61,6 +60,7 @@ service Query { option (google.api.http) = { get : "/regen/ecocredit/v1/projects-by-class/{class_id}" additional_bindings : [ + {get : "/regen/ecocredit/v1/projects/class/{class_id}"}, {get : "/regen/ecocredit/v1/classes/{class_id}/projects"} ] }; diff --git a/x/ecocredit/client/query.go b/x/ecocredit/client/query.go index bf6d81d630..8c141959f0 100644 --- a/x/ecocredit/client/query.go +++ b/x/ecocredit/client/query.go @@ -155,7 +155,7 @@ regen q ecocredit class-issuers C01 --limit 10 return qflags(cmd) } -// QueryProjectsCmd returns a query command that retrieves projects. +// QueryProjectsCmd returns a query command that retrieves all projects. func QueryProjectsCmd() *cobra.Command { cmd := &cobra.Command{ Use: "projects", diff --git a/x/ecocredit/client/testsuite/grpc.go b/x/ecocredit/client/testsuite/grpc.go index 77737b0517..736b1c8d69 100644 --- a/x/ecocredit/client/testsuite/grpc.go +++ b/x/ecocredit/client/testsuite/grpc.go @@ -6,7 +6,6 @@ import ( "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/rest" - types2 "github.com/regen-network/regen-ledger/types" "github.com/regen-network/regen-ledger/x/ecocredit/core" "github.com/regen-network/regen-ledger/x/ecocredit/marketplace" @@ -87,6 +86,8 @@ func (s *IntegrationTestSuite) TestQueryClass() { } func (s *IntegrationTestSuite) TestQueryProject() { + require := s.Require() + testCases := []struct { name string url string @@ -101,33 +102,34 @@ func (s *IntegrationTestSuite) TestQueryProject() { }, } - require := s.Require() for _, tc := range testCases { tc := tc s.Run(tc.name, func() { bz, err := rest.GetRequest(tc.url) require.NoError(err) + require.NotContains(string(bz), "code") var res core.QueryProjectResponse require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) require.NotEmpty(res.Project) - require.Equal(res.Project.Id, s.projectId) }) } } func (s *IntegrationTestSuite) TestQueryProjects() { + require := s.Require() + testCases := []struct { name string url string }{ { - name: "valid", - url: fmt.Sprintf("%s/%s/projects", s.val.APIAddress, coreRoute), + "valid", + fmt.Sprintf("%s/%s/projects", s.val.APIAddress, coreRoute), }, { - name: "valid with pagination", - url: fmt.Sprintf( + "valid with pagination", + fmt.Sprintf( "%s/%s/projects?pagination.limit=1&pagination.countTotal=true", s.val.APIAddress, coreRoute, @@ -135,16 +137,17 @@ func (s *IntegrationTestSuite) TestQueryProjects() { }, } - require := s.Require() for _, tc := range testCases { tc := tc s.Run(tc.name, func() { bz, err := rest.GetRequest(tc.url) require.NoError(err) + require.NotContains(string(bz), "code") var res core.QueryProjectsResponse require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) require.NotEmpty(res.Projects) + if strings.Contains(tc.name, "pagination") { require.Len(res.Projects, 1) require.NotEmpty(res.Pagination) @@ -157,17 +160,19 @@ func (s *IntegrationTestSuite) TestQueryProjects() { } func (s *IntegrationTestSuite) TestQueryProjectsByClass() { + require := s.Require() + testCases := []struct { name string url string }{ { - name: "valid", - url: fmt.Sprintf("%s/%s/projects-by-class/%s", s.val.APIAddress, coreRoute, s.classId), + "valid", + fmt.Sprintf("%s/%s/projects-by-class/%s", s.val.APIAddress, coreRoute, s.classId), }, { - name: "valid with pagination", - url: fmt.Sprintf( + "valid with pagination", + fmt.Sprintf( "%s/%s/projects-by-class/%s?pagination.countTotal=true", // TODO: #1113 // "%s/%s/projects-by-class/%s?pagination.limit=1&pagination.countTotal=true", @@ -177,24 +182,28 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClass() { ), }, { - name: "valid alternative", - url: fmt.Sprintf("%s/%s/classes/%s/projects", s.val.APIAddress, coreRoute, s.classId), + "valid alternative", + fmt.Sprintf("%s/%s/projects/class/%s", s.val.APIAddress, coreRoute, s.classId), + }, + { + "valid alternative", + fmt.Sprintf("%s/%s/classes/%s/projects", s.val.APIAddress, coreRoute, s.classId), }, } - require := s.Require() for _, tc := range testCases { tc := tc s.Run(tc.name, func() { bz, err := rest.GetRequest(tc.url) require.NoError(err) + require.NotContains(string(bz), "code") var res core.QueryProjectsByClassResponse require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) require.NotEmpty(res.Projects) + if strings.Contains(tc.name, "pagination") { - // TODO: #1113 - // require.Len(res.Projects, 1) + require.Len(res.Projects, 1) require.NotEmpty(res.Pagination) require.NotEmpty(res.Pagination.Total) } else { @@ -205,13 +214,15 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClass() { } func (s *IntegrationTestSuite) TestQueryProjectsByReferenceId() { + require := s.Require() + testCases := []struct { name string url string }{ { - name: "valid", - url: fmt.Sprintf( + "valid", + fmt.Sprintf( "%s/%s/projects-by-reference-id/%s", s.val.APIAddress, coreRoute, @@ -219,8 +230,8 @@ func (s *IntegrationTestSuite) TestQueryProjectsByReferenceId() { ), }, { - name: "valid with pagination", - url: fmt.Sprintf( + "valid with pagination", + fmt.Sprintf( "%s/%s/projects-by-reference-id/%s?pagination.limit=1&pagination.countTotal=true", s.val.APIAddress, coreRoute, @@ -228,8 +239,8 @@ func (s *IntegrationTestSuite) TestQueryProjectsByReferenceId() { ), }, { - name: "valid alternative", - url: fmt.Sprintf("%s/%s/projects/reference-id/%s", + "valid alternative", + fmt.Sprintf("%s/%s/projects/reference-id/%s", s.val.APIAddress, coreRoute, s.projectReferenceId, @@ -237,16 +248,17 @@ func (s *IntegrationTestSuite) TestQueryProjectsByReferenceId() { }, } - require := s.Require() for _, tc := range testCases { tc := tc s.Run(tc.name, func() { bz, err := rest.GetRequest(tc.url) require.NoError(err) + require.NotContains(string(bz), "code") var res core.QueryProjectsByReferenceIdResponse require.NoError(s.val.ClientCtx.Codec.UnmarshalJSON(bz, &res)) require.NotEmpty(res.Projects) + if strings.Contains(tc.name, "pagination") { require.Len(res.Projects, 1) require.NotEmpty(res.Pagination) diff --git a/x/ecocredit/client/testsuite/query.go b/x/ecocredit/client/testsuite/query.go index 1daa0f9428..997782b9b3 100644 --- a/x/ecocredit/client/testsuite/query.go +++ b/x/ecocredit/client/testsuite/query.go @@ -6,7 +6,6 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/regen-network/regen-ledger/types" "github.com/regen-network/regen-ledger/types/testutil/cli" coreclient "github.com/regen-network/regen-ledger/x/ecocredit/client" @@ -831,6 +830,7 @@ func (s *IntegrationTestSuite) TestQuerySellOrdersByBatchDenomCmd() { } func (s *IntegrationTestSuite) TestQueryProjectsCmd() { + require := s.Require() clientCtx := s.val.ClientCtx clientCtx.OutputFormat = "JSON" @@ -859,7 +859,6 @@ func (s *IntegrationTestSuite) TestQueryProjectsCmd() { }, } - require := s.Require() for _, tc := range testCases { s.Run(tc.name, func() { cmd := coreclient.QueryProjectsCmd() @@ -873,6 +872,7 @@ func (s *IntegrationTestSuite) TestQueryProjectsCmd() { var res core.QueryProjectsResponse require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) require.NotEmpty(res.Projects) + if strings.Contains(tc.name, "pagination") { require.Len(res.Projects, 1) require.NotEmpty(res.Pagination) @@ -884,6 +884,7 @@ func (s *IntegrationTestSuite) TestQueryProjectsCmd() { } func (s *IntegrationTestSuite) TestQueryProjectsByClassCmd() { + require := s.Require() clientCtx := s.val.ClientCtx clientCtx.OutputFormat = "JSON" @@ -920,7 +921,6 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClassCmd() { }, } - require := s.Require() for _, tc := range testCases { s.Run(tc.name, func() { cmd := coreclient.QueryProjectsByClassCmd() @@ -934,9 +934,9 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClassCmd() { var res core.QueryProjectsByClassResponse require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) require.NotEmpty(res.Projects) + if strings.Contains(tc.name, "pagination") { - // TODO: #1113 - // require.Len(res.Projects, 1) + require.Len(res.Projects, 1) require.NotEmpty(res.Pagination) require.NotEmpty(res.Pagination.Total) } @@ -946,6 +946,7 @@ func (s *IntegrationTestSuite) TestQueryProjectsByClassCmd() { } func (s *IntegrationTestSuite) TestQueryProjectCmd() { + require := s.Require() clientCtx := s.val.ClientCtx clientCtx.OutputFormat = "JSON" @@ -973,7 +974,6 @@ func (s *IntegrationTestSuite) TestQueryProjectCmd() { }, } - require := s.Require() for _, tc := range testCases { s.Run(tc.name, func() { cmd := coreclient.QueryProjectCmd() @@ -987,7 +987,6 @@ func (s *IntegrationTestSuite) TestQueryProjectCmd() { var res core.QueryProjectResponse require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) require.NotEmpty(res.Project) - require.Equal(s.projectId, res.Project.Id) } }) } diff --git a/x/ecocredit/core/query.pb.go b/x/ecocredit/core/query.pb.go index a31bb24170..fa3dd765e9 100644 --- a/x/ecocredit/core/query.pb.go +++ b/x/ecocredit/core/query.pb.go @@ -2397,129 +2397,130 @@ func init() { func init() { proto.RegisterFile("regen/ecocredit/v1/query.proto", fileDescriptor_c85efa417eafb74b) } var fileDescriptor_c85efa417eafb74b = []byte{ - // 1947 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x6f, 0x24, 0x47, - 0x15, 0xdf, 0x9a, 0x5d, 0xdb, 0xe3, 0x67, 0xc7, 0x5e, 0x8a, 0x0d, 0x78, 0x3b, 0xde, 0xd9, 0x4d, - 0xb3, 0x59, 0xcf, 0x66, 0x3d, 0xdd, 0x6b, 0x6f, 0x36, 0x90, 0x84, 0x2f, 0x9b, 0x08, 0xe4, 0x9b, - 0x33, 0x44, 0x8b, 0x64, 0x70, 0x86, 0x9e, 0xe9, 0xf2, 0x64, 0x92, 0x99, 0xee, 0x49, 0x77, 0x8f, - 0x93, 0x61, 0x34, 0x04, 0x90, 0x22, 0x6e, 0x10, 0xc1, 0x25, 0x17, 0xc4, 0x87, 0x38, 0x71, 0x40, - 0x02, 0x71, 0x41, 0x39, 0x70, 0x43, 0x1c, 0x23, 0x85, 0x03, 0x1f, 0x42, 0x82, 0x5d, 0x0e, 0xfc, - 0x19, 0x68, 0xaa, 0x5e, 0x75, 0x77, 0xf5, 0xf4, 0x74, 0xf7, 0xc2, 0x64, 0xe5, 0x93, 0xdd, 0x35, - 0xef, 0xd5, 0xfb, 0xfd, 0x5e, 0xbd, 0x7a, 0xef, 0xd5, 0x83, 0x8a, 0xc7, 0xda, 0xcc, 0x31, 0x59, - 0xcb, 0x6d, 0x79, 0xcc, 0xee, 0x04, 0xe6, 0xe9, 0x8e, 0xf9, 0xc6, 0x80, 0x79, 0x43, 0xa3, 0xef, - 0xb9, 0x81, 0x4b, 0x29, 0xff, 0xdd, 0x08, 0x7f, 0x37, 0x4e, 0x77, 0xb4, 0xcd, 0xb6, 0xeb, 0xb6, - 0xbb, 0xcc, 0xb4, 0xfa, 0x1d, 0xd3, 0x72, 0x1c, 0x37, 0xb0, 0x82, 0x8e, 0xeb, 0xf8, 0x42, 0x43, - 0xbb, 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9f, 0xc9, 0x52, 0x37, 0x33, - 0x74, 0xe9, 0x5f, 0x95, 0xd3, 0x16, 0x49, 0xad, 0xc8, 0x69, 0x2b, 0x59, 0xed, 0x76, 0x71, 0x05, - 0xe4, 0xdd, 0xe2, 0xbc, 0x8f, 0x69, 0x2d, 0x8f, 0xb7, 0x9a, 0xd7, 0xb6, 0xe9, 0xd3, 0x99, 0x4c, - 0xd5, 0xc4, 0xf6, 0x3e, 0x81, 0x25, 0x04, 0x90, 0x51, 0x33, 0xd4, 0x67, 0xb4, 0x56, 0xcd, 0x17, - 0x44, 0x0e, 0xc7, 0x9c, 0xc3, 0xd7, 0x68, 0x35, 0x03, 0x92, 0x39, 0x8a, 0x1a, 0x94, 0x99, 0x69, - 0x39, 0x84, 0x1f, 0x17, 0xe6, 0x15, 0x0f, 0xdf, 0xaf, 0x19, 0xe8, 0xd5, 0x59, 0x55, 0x06, 0xfa, - 0xc4, 0xd0, 0x29, 0xbb, 0xe2, 0xc9, 0xf7, 0xee, 0xdf, 0x09, 0xac, 0x27, 0x66, 0x32, 0x19, 0xd1, - 0x91, 0x3e, 0x3d, 0xca, 0x88, 0x8e, 0x19, 0xe3, 0x1e, 0x9d, 0x71, 0x6c, 0x8d, 0xf4, 0x14, 0x8a, - 0xd8, 0x26, 0xc1, 0x21, 0x52, 0xa7, 0x39, 0x12, 0x7f, 0xc7, 0x47, 0x35, 0x7a, 0x2b, 0x43, 0xc3, - 0x4c, 0x88, 0xd3, 0xbf, 0x11, 0x58, 0x53, 0x27, 0x04, 0x19, 0xf5, 0x3c, 0x75, 0xf0, 0xa3, 0x99, - 0x85, 0xe5, 0x91, 0x5a, 0x9b, 0x53, 0xb3, 0xd2, 0x53, 0x56, 0x8c, 0xda, 0x54, 0x96, 0x33, 0xd2, - 0x0b, 0x90, 0xe4, 0x96, 0x94, 0xa7, 0xff, 0x91, 0x3d, 0x60, 0x6c, 0x44, 0x43, 0x0b, 0x1c, 0x45, - 0xe2, 0x3a, 0xec, 0x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0xec, 0x36, 0x78, 0x6a, 0x00, 0xa3, - 0x6d, 0x17, 0x13, 0x46, 0x42, 0x55, 0x4e, 0x48, 0xa7, 0xd7, 0x52, 0xfb, 0x32, 0xfe, 0x5f, 0x8d, - 0x0f, 0x6b, 0xe8, 0x18, 0x16, 0xc5, 0xa8, 0x24, 0xc3, 0xab, 0xca, 0x54, 0x26, 0xc3, 0xab, 0xea, - 0x9c, 0x46, 0xd7, 0x39, 0x88, 0x4d, 0xaa, 0xa5, 0x96, 0x5c, 0x2e, 0xbb, 0x7f, 0xf8, 0xa7, 0xfb, - 0x15, 0xf2, 0xc1, 0xfd, 0x0a, 0xf9, 0xe7, 0xfd, 0x0a, 0x79, 0xf7, 0x41, 0xe5, 0xdc, 0x07, 0x0f, - 0x2a, 0xe7, 0xfe, 0xf2, 0xa0, 0x72, 0xee, 0xe8, 0xd9, 0x76, 0x27, 0x78, 0x75, 0xd0, 0x34, 0x5a, - 0x6e, 0x4f, 0xe8, 0xd7, 0x1c, 0x16, 0xbc, 0xe9, 0x7a, 0xaf, 0xe3, 0x57, 0x97, 0xd9, 0x6d, 0xe6, - 0x99, 0x6f, 0xc5, 0xb6, 0x6d, 0xb9, 0x1e, 0x6b, 0x2e, 0xf2, 0x07, 0xfb, 0x9d, 0xff, 0x06, 0x00, - 0x00, 0xff, 0xff, 0xa7, 0xb5, 0x93, 0xc7, 0xd2, 0x23, 0x00, 0x00, + // 1956 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x8f, 0x1c, 0x47, + 0x15, 0x77, 0x8d, 0xbd, 0xbb, 0xb3, 0x6f, 0x37, 0xbb, 0xa6, 0x70, 0x60, 0xdd, 0xf1, 0x8e, 0x9d, + 0xc6, 0xf1, 0xae, 0xe3, 0x9d, 0x6e, 0xef, 0x3a, 0x0e, 0x24, 0xe1, 0xcb, 0x4b, 0x04, 0xda, 0xdb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5, 0xc1, 0xff, 0x37, 0xff, 0x4c, 0xe0, 0x6c, 0x36, 0xf7, 0xfc, 0x1f, 0xa9, 0x5d, + 0x49, 0x0a, 0xca, 0x1d, 0x8e, 0x93, 0x82, 0xb8, 0xc2, 0xe9, 0xa4, 0x80, 0x72, 0x67, 0x94, 0xa4, + 0x80, 0x62, 0x5b, 0xb0, 0xce, 0xc2, 0x56, 0xe0, 0xbf, 0x91, 0xc8, 0x89, 0x18, 0x59, 0x93, 0xcb, + 0x42, 0x70, 0xef, 0xfe, 0x26, 0x2c, 0xf0, 0x3b, 0x48, 0xbf, 0x47, 0x60, 0x09, 0xe7, 0x58, 0x74, + 0x2b, 0xef, 0xc6, 0xe5, 0x0c, 0x18, 0x8d, 0xed, 0x62, 0x41, 0x71, 0xa9, 0xcd, 0x4f, 0x7d, 0xff, + 0x83, 0x7f, 0xff, 0xa4, 0xb2, 0x49, 0x9f, 0xb0, 0x73, 0x46, 0x99, 0x72, 0xee, 0xf5, 0x57, 0x02, + 0x6b, 0xea, 0x2c, 0x8d, 0x5a, 0x45, 0x16, 0xd4, 0x07, 0x9f, 0x61, 0x97, 0x96, 0x47, 0x60, 0x0e, + 0x07, 0xf6, 0x75, 0xba, 0xa3, 0x01, 0x56, 0x6f, 0x0e, 0xeb, 0xfc, 0xd2, 0xda, 0x23, 0xfe, 0x67, + 0x7c, 0x74, 0x8d, 0x5e, 0xd5, 0xc8, 0xdb, 0x8a, 0x30, 0xfd, 0x2d, 0x81, 0x05, 0x6e, 0x9d, 0x3e, + 0xa5, 0x47, 0x27, 0x49, 0x5c, 0x29, 0x12, 0x43, 0xec, 0xb7, 0x39, 0xf6, 0x43, 0x7a, 0x79, 0x26, + 0x16, 0x7b, 0x24, 0x73, 0xcc, 0xf8, 0x68, 0x9b, 0x5e, 0xd1, 0x61, 0x4e, 0x24, 0xe9, 0x07, 0x04, + 0x56, 0xd3, 0x83, 0x33, 0xba, 0xa3, 0x07, 0xa4, 0x8e, 0xf7, 0x8c,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4, 0x20, 0x2e, 0x50, + 0x23, 0xb7, 0xe4, 0x72, 0xd9, 0xfd, 0xc3, 0xbf, 0x3c, 0xa8, 0x91, 0xf7, 0x1f, 0xd4, 0xc8, 0xbf, + 0x1e, 0xd4, 0xc8, 0xfd, 0x87, 0xb5, 0x53, 0xef, 0x3f, 0xac, 0x9d, 0xfa, 0xdb, 0xc3, 0xda, 0xa9, + 0xa3, 0x67, 0xdb, 0x9d, 0xe8, 0xd5, 0x41, 0xd3, 0x6a, 0xf9, 0x3d, 0xa1, 0x5f, 0xf7, 0x58, 0xf4, + 0x86, 0x1f, 0x7c, 0x0b, 0xbf, 0xba, 0xcc, 0x6d, 0xb3, 0xc0, 0x7e, 0x33, 0xb5, 0x6d, 0xcb, 0x0f, + 0x58, 0x73, 0x91, 0xbf, 0xf1, 0x6f, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0x44, 0x56, 0x0f, 0x29, + 0x05, 0x24, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/ecocredit/core/query.pb.gw.go b/x/ecocredit/core/query.pb.gw.go index 91a8f543f9..aa7552bf61 100644 --- a/x/ecocredit/core/query.pb.gw.go +++ b/x/ecocredit/core/query.pb.gw.go @@ -645,6 +645,78 @@ func local_request_Query_ProjectsByClass_1(ctx context.Context, marshaler runtim } +var ( + filter_Query_ProjectsByClass_2 = &utilities.DoubleArray{Encoding: map[string]int{"class_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_ProjectsByClass_2(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProjectsByClassRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ProjectsByClass_2); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ProjectsByClass(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_ProjectsByClass_2(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProjectsByClassRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ProjectsByClass_2); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ProjectsByClass(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_Query_ProjectsByReferenceId_0 = &utilities.DoubleArray{Encoding: map[string]int{"reference_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -2297,6 +2369,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_ProjectsByClass_2, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_ProjectsByClass_2(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ProjectsByClass_2(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_ProjectsByReferenceId_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -3067,6 +3162,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_ProjectsByClass_2, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_ProjectsByClass_2(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ProjectsByClass_2(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_ProjectsByReferenceId_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -3549,7 +3664,9 @@ var ( pattern_Query_ProjectsByClass_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "ecocredit", "v1", "projects-by-class", "class_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ProjectsByClass_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"regen", "ecocredit", "v1", "classes", "class_id", "projects"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_ProjectsByClass_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"regen", "ecocredit", "v1", "projects", "class", "class_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_ProjectsByClass_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"regen", "ecocredit", "v1", "classes", "class_id", "projects"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_ProjectsByReferenceId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "ecocredit", "v1", "projects-by-reference-id", "reference_id"}, "", runtime.AssumeColonVerbOpt(false))) @@ -3619,6 +3736,8 @@ var ( forward_Query_ProjectsByClass_1 = runtime.ForwardResponseMessage + forward_Query_ProjectsByClass_2 = runtime.ForwardResponseMessage + forward_Query_ProjectsByReferenceId_0 = runtime.ForwardResponseMessage forward_Query_ProjectsByReferenceId_1 = runtime.ForwardResponseMessage diff --git a/x/ecocredit/server/core/query_projects_by_class_test.go b/x/ecocredit/server/core/query_projects_by_class_test.go index bf15e8ccc7..0641002bfe 100644 --- a/x/ecocredit/server/core/query_projects_by_class_test.go +++ b/x/ecocredit/server/core/query_projects_by_class_test.go @@ -26,13 +26,13 @@ func TestQuery_ProjectsByClass(t *testing.T) { Id: "C01-001", ClassKey: classKey, Jurisdiction: "US-CA", - Metadata: "data", + Metadata: "metadata", } // insert two projects under "C01" credit class assert.NilError(t, s.stateStore.ProjectTable().Insert(s.ctx, project)) assert.NilError(t, s.stateStore.ProjectTable().Insert(s.ctx, &api.Project{ - Id: "P02", + Id: "C01-002", ClassKey: classKey, })) @@ -42,11 +42,16 @@ func TestQuery_ProjectsByClass(t *testing.T) { Pagination: &query.PageRequest{Limit: 1, CountTotal: true}, }) assert.NilError(t, err) + + // check pagination assert.Equal(t, 1, len(res.Projects)) + assert.Equal(t, uint64(2), res.Pagination.Total) + + // check project properties assert.Equal(t, project.Id, res.Projects[0].Id) assert.Equal(t, "C01", res.Projects[0].ClassId) assert.Equal(t, project.Jurisdiction, res.Projects[0].Jurisdiction) - assert.Equal(t, uint64(2), res.Pagination.Total) + assert.Equal(t, project.Metadata, res.Projects[0].Metadata) // query projects by unknown credit class _, err = s.k.ProjectsByClass(s.ctx, &core.QueryProjectsByClassRequest{ClassId: "F01"}) diff --git a/x/ecocredit/server/core/query_projects_by_reference_id_test.go b/x/ecocredit/server/core/query_projects_by_reference_id_test.go index 407366752b..0fe5aa69bc 100644 --- a/x/ecocredit/server/core/query_projects_by_reference_id_test.go +++ b/x/ecocredit/server/core/query_projects_by_reference_id_test.go @@ -25,34 +25,40 @@ func TestQuery_ProjectsByReferenceId(t *testing.T) { Id: "C01-001", ClassKey: classKey, Jurisdiction: "US-CA", - Metadata: "data", - ReferenceId: "R1", + Metadata: "metadata", + ReferenceId: "VCS-001", } - // insert two projects with "R1" reference id and one without reference id + // insert two projects with "VCS-001" reference id assert.NilError(t, s.stateStore.ProjectTable().Insert(s.ctx, project)) assert.NilError(t, s.stateStore.ProjectTable().Insert(s.ctx, &api.Project{ Id: "C01-002", ClassKey: classKey, - ReferenceId: "R1", + ReferenceId: "VCS-001", })) + + // insert one project without a reference id assert.NilError(t, s.stateStore.ProjectTable().Insert(s.ctx, &api.Project{ Id: "C01-003", ClassKey: classKey, })) - // query projects by "R1" reference id + // query projects by "VCS-001" reference id res, err := s.k.ProjectsByReferenceId(s.ctx, &core.QueryProjectsByReferenceIdRequest{ - ReferenceId: "R1", + ReferenceId: "VCS-001", Pagination: &query.PageRequest{Limit: 1, CountTotal: true}, }) assert.NilError(t, err) + + // check pagination assert.Equal(t, 1, len(res.Projects)) + assert.Equal(t, uint64(2), res.Pagination.Total) + + // check project properties assert.Equal(t, project.Id, res.Projects[0].Id) assert.Equal(t, "C01", res.Projects[0].ClassId) - assert.Equal(t, "R1", res.Projects[0].ReferenceId) + assert.Equal(t, "VCS-001", res.Projects[0].ReferenceId) assert.Equal(t, project.Jurisdiction, res.Projects[0].Jurisdiction) - assert.Equal(t, uint64(2), res.Pagination.Total) // query projects by unknown reference id res, err = s.k.ProjectsByReferenceId(s.ctx, &core.QueryProjectsByReferenceIdRequest{ReferenceId: "RR2"}) diff --git a/x/ecocredit/server/core/query_projects_test.go b/x/ecocredit/server/core/query_projects_test.go index 4e5a9d6921..7d949b776e 100644 --- a/x/ecocredit/server/core/query_projects_test.go +++ b/x/ecocredit/server/core/query_projects_test.go @@ -25,13 +25,13 @@ func TestQuery_Projects(t *testing.T) { Id: "C01-001", ClassKey: classKey, Jurisdiction: "US-CA", - Metadata: "data", + Metadata: "metadata", } // insert two projects assert.NilError(t, s.stateStore.ProjectTable().Insert(s.ctx, project)) assert.NilError(t, s.stateStore.ProjectTable().Insert(s.ctx, &api.Project{ - Id: "P02", + Id: "C01-002", ClassKey: classKey, })) @@ -40,9 +40,14 @@ func TestQuery_Projects(t *testing.T) { Pagination: &query.PageRequest{Limit: 1, CountTotal: true}, }) assert.NilError(t, err) + + // check pagination assert.Equal(t, 1, len(res.Projects)) + assert.Equal(t, uint64(2), res.Pagination.Total) + + // check project properties assert.Equal(t, project.Id, res.Projects[0].Id) assert.Equal(t, "C01", res.Projects[0].ClassId) assert.Equal(t, project.Jurisdiction, res.Projects[0].Jurisdiction) - assert.Equal(t, uint64(2), res.Pagination.Total) + assert.Equal(t, project.Metadata, res.Projects[0].Metadata) }