From ce80e15e5d3696087d05a4d36f47bb13bf3e4af6 Mon Sep 17 00:00:00 2001 From: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com> Date: Tue, 28 Mar 2023 08:15:35 -0700 Subject: [PATCH] feat(x/ecocredit): update basket date criteria via governance (#1864) --- CHANGELOG.md | 1 + api/regen/data/v1/query_grpc.pb.go | 60 +- api/regen/data/v1/tx_grpc.pb.go | 25 +- .../ecocredit/basket/v1/events.pulsar.go | 530 ++++++- .../ecocredit/basket/v1/query_grpc.pb.go | 30 +- api/regen/ecocredit/basket/v1/tx.pulsar.go | 1219 +++++++++++++++-- api/regen/ecocredit/basket/v1/tx_grpc.pb.go | 77 +- .../ecocredit/marketplace/v1/query_grpc.pb.go | 30 +- .../ecocredit/marketplace/v1/tx_grpc.pb.go | 35 +- api/regen/ecocredit/v1/query_grpc.pb.go | 135 +- api/regen/ecocredit/v1/tx_grpc.pb.go | 120 +- api/regen/ecocredit/v1alpha1/query_grpc.pb.go | 45 +- api/regen/ecocredit/v1alpha1/tx_grpc.pb.go | 45 +- api/regen/intertx/v1/query_grpc.pb.go | 10 +- api/regen/intertx/v1/tx_grpc.pb.go | 15 +- proto/regen/ecocredit/basket/v1/events.proto | 10 + proto/regen/ecocredit/basket/v1/tx.proto | 32 +- .../features/msg_update_date_criteria.feature | 174 +++ x/ecocredit/basket/keeper/keeper_test.go | 2 - x/ecocredit/basket/keeper/msg_put_test.go | 6 +- .../basket/keeper/msg_update_date_criteria.go | 37 + .../keeper/msg_update_date_criteria_test.go | 96 ++ x/ecocredit/basket/types/v1/codec.go | 1 + x/ecocredit/basket/types/v1/events.pb.go | 220 ++- .../features/msg_update_date_criteria.feature | 131 ++ .../types/v1/msg_update_date_criteria.go | 44 + .../types/v1/msg_update_date_criteria_test.go | 54 + x/ecocredit/basket/types/v1/tx.pb.go | 577 +++++++- 28 files changed, 3346 insertions(+), 415 deletions(-) create mode 100644 x/ecocredit/basket/keeper/features/msg_update_date_criteria.feature create mode 100644 x/ecocredit/basket/keeper/msg_update_date_criteria.go create mode 100644 x/ecocredit/basket/keeper/msg_update_date_criteria_test.go create mode 100644 x/ecocredit/basket/types/v1/features/msg_update_date_criteria.feature create mode 100644 x/ecocredit/basket/types/v1/msg_update_date_criteria.go create mode 100644 x/ecocredit/basket/types/v1/msg_update_date_criteria_test.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e3ac25213..ef782bfb45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [#1785](https://github.com/regen-network/regen-ledger/pull/1785) Add `amount` and `origin_tx` to `EventBridgeReceive` - [#1837](https://github.com/regen-network/regen-ledger/pull/1837) Add `batch_denom` to `EventBridge` - [#1841](https://github.com/regen-network/regen-ledger/pull/1841) Add `--years-in-the-past` to `create-basket` command +- [#1864](https://github.com/regen-network/regen-ledger/pull/1864) Add `MsgUpdateDateCriteria` to basket submodule #### Fixed diff --git a/api/regen/data/v1/query_grpc.pb.go b/api/regen/data/v1/query_grpc.pb.go index 6e815061ee..d64ba752be 100644 --- a/api/regen/data/v1/query_grpc.pb.go +++ b/api/regen/data/v1/query_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/data/v1/query.proto @@ -18,6 +18,20 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Query_AnchorByIRI_FullMethodName = "/regen.data.v1.Query/AnchorByIRI" + Query_AnchorByHash_FullMethodName = "/regen.data.v1.Query/AnchorByHash" + Query_AttestationsByAttestor_FullMethodName = "/regen.data.v1.Query/AttestationsByAttestor" + Query_AttestationsByIRI_FullMethodName = "/regen.data.v1.Query/AttestationsByIRI" + Query_AttestationsByHash_FullMethodName = "/regen.data.v1.Query/AttestationsByHash" + Query_Resolver_FullMethodName = "/regen.data.v1.Query/Resolver" + Query_ResolversByIRI_FullMethodName = "/regen.data.v1.Query/ResolversByIRI" + Query_ResolversByHash_FullMethodName = "/regen.data.v1.Query/ResolversByHash" + Query_ResolversByURL_FullMethodName = "/regen.data.v1.Query/ResolversByURL" + Query_ConvertIRIToHash_FullMethodName = "/regen.data.v1.Query/ConvertIRIToHash" + Query_ConvertHashToIRI_FullMethodName = "/regen.data.v1.Query/ConvertHashToIRI" +) + // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -59,7 +73,7 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { func (c *queryClient) AnchorByIRI(ctx context.Context, in *QueryAnchorByIRIRequest, opts ...grpc.CallOption) (*QueryAnchorByIRIResponse, error) { out := new(QueryAnchorByIRIResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Query/AnchorByIRI", in, out, opts...) + err := c.cc.Invoke(ctx, Query_AnchorByIRI_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -68,7 +82,7 @@ func (c *queryClient) AnchorByIRI(ctx context.Context, in *QueryAnchorByIRIReque func (c *queryClient) AnchorByHash(ctx context.Context, in *QueryAnchorByHashRequest, opts ...grpc.CallOption) (*QueryAnchorByHashResponse, error) { out := new(QueryAnchorByHashResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Query/AnchorByHash", in, out, opts...) + err := c.cc.Invoke(ctx, Query_AnchorByHash_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -77,7 +91,7 @@ func (c *queryClient) AnchorByHash(ctx context.Context, in *QueryAnchorByHashReq func (c *queryClient) AttestationsByAttestor(ctx context.Context, in *QueryAttestationsByAttestorRequest, opts ...grpc.CallOption) (*QueryAttestationsByAttestorResponse, error) { out := new(QueryAttestationsByAttestorResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Query/AttestationsByAttestor", in, out, opts...) + err := c.cc.Invoke(ctx, Query_AttestationsByAttestor_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -86,7 +100,7 @@ func (c *queryClient) AttestationsByAttestor(ctx context.Context, in *QueryAttes func (c *queryClient) AttestationsByIRI(ctx context.Context, in *QueryAttestationsByIRIRequest, opts ...grpc.CallOption) (*QueryAttestationsByIRIResponse, error) { out := new(QueryAttestationsByIRIResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Query/AttestationsByIRI", in, out, opts...) + err := c.cc.Invoke(ctx, Query_AttestationsByIRI_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -95,7 +109,7 @@ func (c *queryClient) AttestationsByIRI(ctx context.Context, in *QueryAttestatio func (c *queryClient) AttestationsByHash(ctx context.Context, in *QueryAttestationsByHashRequest, opts ...grpc.CallOption) (*QueryAttestationsByHashResponse, error) { out := new(QueryAttestationsByHashResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Query/AttestationsByHash", in, out, opts...) + err := c.cc.Invoke(ctx, Query_AttestationsByHash_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -104,7 +118,7 @@ func (c *queryClient) AttestationsByHash(ctx context.Context, in *QueryAttestati func (c *queryClient) Resolver(ctx context.Context, in *QueryResolverRequest, opts ...grpc.CallOption) (*QueryResolverResponse, error) { out := new(QueryResolverResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Query/Resolver", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Resolver_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -113,7 +127,7 @@ func (c *queryClient) Resolver(ctx context.Context, in *QueryResolverRequest, op func (c *queryClient) ResolversByIRI(ctx context.Context, in *QueryResolversByIRIRequest, opts ...grpc.CallOption) (*QueryResolversByIRIResponse, error) { out := new(QueryResolversByIRIResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Query/ResolversByIRI", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ResolversByIRI_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -122,7 +136,7 @@ func (c *queryClient) ResolversByIRI(ctx context.Context, in *QueryResolversByIR func (c *queryClient) ResolversByHash(ctx context.Context, in *QueryResolversByHashRequest, opts ...grpc.CallOption) (*QueryResolversByHashResponse, error) { out := new(QueryResolversByHashResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Query/ResolversByHash", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ResolversByHash_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -131,7 +145,7 @@ func (c *queryClient) ResolversByHash(ctx context.Context, in *QueryResolversByH func (c *queryClient) ResolversByURL(ctx context.Context, in *QueryResolversByURLRequest, opts ...grpc.CallOption) (*QueryResolversByURLResponse, error) { out := new(QueryResolversByURLResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Query/ResolversByURL", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ResolversByURL_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -140,7 +154,7 @@ func (c *queryClient) ResolversByURL(ctx context.Context, in *QueryResolversByUR func (c *queryClient) ConvertIRIToHash(ctx context.Context, in *ConvertIRIToHashRequest, opts ...grpc.CallOption) (*ConvertIRIToHashResponse, error) { out := new(ConvertIRIToHashResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Query/ConvertIRIToHash", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ConvertIRIToHash_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -149,7 +163,7 @@ func (c *queryClient) ConvertIRIToHash(ctx context.Context, in *ConvertIRIToHash func (c *queryClient) ConvertHashToIRI(ctx context.Context, in *ConvertHashToIRIRequest, opts ...grpc.CallOption) (*ConvertHashToIRIResponse, error) { out := new(ConvertHashToIRIResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Query/ConvertHashToIRI", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ConvertHashToIRI_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -248,7 +262,7 @@ func _Query_AnchorByIRI_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Query/AnchorByIRI", + FullMethod: Query_AnchorByIRI_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AnchorByIRI(ctx, req.(*QueryAnchorByIRIRequest)) @@ -266,7 +280,7 @@ func _Query_AnchorByHash_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Query/AnchorByHash", + FullMethod: Query_AnchorByHash_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AnchorByHash(ctx, req.(*QueryAnchorByHashRequest)) @@ -284,7 +298,7 @@ func _Query_AttestationsByAttestor_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Query/AttestationsByAttestor", + FullMethod: Query_AttestationsByAttestor_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AttestationsByAttestor(ctx, req.(*QueryAttestationsByAttestorRequest)) @@ -302,7 +316,7 @@ func _Query_AttestationsByIRI_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Query/AttestationsByIRI", + FullMethod: Query_AttestationsByIRI_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AttestationsByIRI(ctx, req.(*QueryAttestationsByIRIRequest)) @@ -320,7 +334,7 @@ func _Query_AttestationsByHash_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Query/AttestationsByHash", + FullMethod: Query_AttestationsByHash_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AttestationsByHash(ctx, req.(*QueryAttestationsByHashRequest)) @@ -338,7 +352,7 @@ func _Query_Resolver_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Query/Resolver", + FullMethod: Query_Resolver_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Resolver(ctx, req.(*QueryResolverRequest)) @@ -356,7 +370,7 @@ func _Query_ResolversByIRI_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Query/ResolversByIRI", + FullMethod: Query_ResolversByIRI_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ResolversByIRI(ctx, req.(*QueryResolversByIRIRequest)) @@ -374,7 +388,7 @@ func _Query_ResolversByHash_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Query/ResolversByHash", + FullMethod: Query_ResolversByHash_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ResolversByHash(ctx, req.(*QueryResolversByHashRequest)) @@ -392,7 +406,7 @@ func _Query_ResolversByURL_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Query/ResolversByURL", + FullMethod: Query_ResolversByURL_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ResolversByURL(ctx, req.(*QueryResolversByURLRequest)) @@ -410,7 +424,7 @@ func _Query_ConvertIRIToHash_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Query/ConvertIRIToHash", + FullMethod: Query_ConvertIRIToHash_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ConvertIRIToHash(ctx, req.(*ConvertIRIToHashRequest)) @@ -428,7 +442,7 @@ func _Query_ConvertHashToIRI_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Query/ConvertHashToIRI", + FullMethod: Query_ConvertHashToIRI_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ConvertHashToIRI(ctx, req.(*ConvertHashToIRIRequest)) diff --git a/api/regen/data/v1/tx_grpc.pb.go b/api/regen/data/v1/tx_grpc.pb.go index 48d3a0e579..8242cb1dc8 100644 --- a/api/regen/data/v1/tx_grpc.pb.go +++ b/api/regen/data/v1/tx_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/data/v1/tx.proto @@ -18,6 +18,13 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Msg_Anchor_FullMethodName = "/regen.data.v1.Msg/Anchor" + Msg_Attest_FullMethodName = "/regen.data.v1.Msg/Attest" + Msg_DefineResolver_FullMethodName = "/regen.data.v1.Msg/DefineResolver" + Msg_RegisterResolver_FullMethodName = "/regen.data.v1.Msg/RegisterResolver" +) + // MsgClient is the client API for Msg service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -70,7 +77,7 @@ func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { func (c *msgClient) Anchor(ctx context.Context, in *MsgAnchor, opts ...grpc.CallOption) (*MsgAnchorResponse, error) { out := new(MsgAnchorResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/Anchor", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Anchor_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -79,7 +86,7 @@ func (c *msgClient) Anchor(ctx context.Context, in *MsgAnchor, opts ...grpc.Call func (c *msgClient) Attest(ctx context.Context, in *MsgAttest, opts ...grpc.CallOption) (*MsgAttestResponse, error) { out := new(MsgAttestResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/Attest", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Attest_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -88,7 +95,7 @@ func (c *msgClient) Attest(ctx context.Context, in *MsgAttest, opts ...grpc.Call func (c *msgClient) DefineResolver(ctx context.Context, in *MsgDefineResolver, opts ...grpc.CallOption) (*MsgDefineResolverResponse, error) { out := new(MsgDefineResolverResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/DefineResolver", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_DefineResolver_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -97,7 +104,7 @@ func (c *msgClient) DefineResolver(ctx context.Context, in *MsgDefineResolver, o func (c *msgClient) RegisterResolver(ctx context.Context, in *MsgRegisterResolver, opts ...grpc.CallOption) (*MsgRegisterResolverResponse, error) { out := new(MsgRegisterResolverResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/RegisterResolver", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_RegisterResolver_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -186,7 +193,7 @@ func _Msg_Anchor_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Msg/Anchor", + FullMethod: Msg_Anchor_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Anchor(ctx, req.(*MsgAnchor)) @@ -204,7 +211,7 @@ func _Msg_Attest_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Msg/Attest", + FullMethod: Msg_Attest_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Attest(ctx, req.(*MsgAttest)) @@ -222,7 +229,7 @@ func _Msg_DefineResolver_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Msg/DefineResolver", + FullMethod: Msg_DefineResolver_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).DefineResolver(ctx, req.(*MsgDefineResolver)) @@ -240,7 +247,7 @@ func _Msg_RegisterResolver_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1.Msg/RegisterResolver", + FullMethod: Msg_RegisterResolver_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RegisterResolver(ctx, req.(*MsgRegisterResolver)) diff --git a/api/regen/ecocredit/basket/v1/events.pulsar.go b/api/regen/ecocredit/basket/v1/events.pulsar.go index cbb09eaf9b..7c40d7031b 100644 --- a/api/regen/ecocredit/basket/v1/events.pulsar.go +++ b/api/regen/ecocredit/basket/v1/events.pulsar.go @@ -2288,6 +2288,426 @@ func (x *fastReflection_EventUpdateCurator) ProtoMethods() *protoiface.Methods { } } +var ( + md_EventUpdateDateCriteria protoreflect.MessageDescriptor + fd_EventUpdateDateCriteria_denom protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_basket_v1_events_proto_init() + md_EventUpdateDateCriteria = File_regen_ecocredit_basket_v1_events_proto.Messages().ByName("EventUpdateDateCriteria") + fd_EventUpdateDateCriteria_denom = md_EventUpdateDateCriteria.Fields().ByName("denom") +} + +var _ protoreflect.Message = (*fastReflection_EventUpdateDateCriteria)(nil) + +type fastReflection_EventUpdateDateCriteria EventUpdateDateCriteria + +func (x *EventUpdateDateCriteria) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventUpdateDateCriteria)(x) +} + +func (x *EventUpdateDateCriteria) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_basket_v1_events_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_EventUpdateDateCriteria_messageType fastReflection_EventUpdateDateCriteria_messageType +var _ protoreflect.MessageType = fastReflection_EventUpdateDateCriteria_messageType{} + +type fastReflection_EventUpdateDateCriteria_messageType struct{} + +func (x fastReflection_EventUpdateDateCriteria_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventUpdateDateCriteria)(nil) +} +func (x fastReflection_EventUpdateDateCriteria_messageType) New() protoreflect.Message { + return new(fastReflection_EventUpdateDateCriteria) +} +func (x fastReflection_EventUpdateDateCriteria_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventUpdateDateCriteria +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventUpdateDateCriteria) Descriptor() protoreflect.MessageDescriptor { + return md_EventUpdateDateCriteria +} + +// 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_EventUpdateDateCriteria) Type() protoreflect.MessageType { + return _fastReflection_EventUpdateDateCriteria_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventUpdateDateCriteria) New() protoreflect.Message { + return new(fastReflection_EventUpdateDateCriteria) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventUpdateDateCriteria) Interface() protoreflect.ProtoMessage { + return (*EventUpdateDateCriteria)(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_EventUpdateDateCriteria) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Denom != "" { + value := protoreflect.ValueOfString(x.Denom) + if !f(fd_EventUpdateDateCriteria_denom, 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_EventUpdateDateCriteria) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.basket.v1.EventUpdateDateCriteria.denom": + return x.Denom != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.EventUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.EventUpdateDateCriteria 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_EventUpdateDateCriteria) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.basket.v1.EventUpdateDateCriteria.denom": + x.Denom = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.EventUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.EventUpdateDateCriteria 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_EventUpdateDateCriteria) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.basket.v1.EventUpdateDateCriteria.denom": + value := x.Denom + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.EventUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.EventUpdateDateCriteria 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_EventUpdateDateCriteria) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.basket.v1.EventUpdateDateCriteria.denom": + x.Denom = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.EventUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.EventUpdateDateCriteria 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_EventUpdateDateCriteria) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.basket.v1.EventUpdateDateCriteria.denom": + panic(fmt.Errorf("field denom of message regen.ecocredit.basket.v1.EventUpdateDateCriteria is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.EventUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.EventUpdateDateCriteria 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_EventUpdateDateCriteria) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.basket.v1.EventUpdateDateCriteria.denom": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.EventUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.EventUpdateDateCriteria 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_EventUpdateDateCriteria) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.basket.v1.EventUpdateDateCriteria", 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_EventUpdateDateCriteria) 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_EventUpdateDateCriteria) 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_EventUpdateDateCriteria) 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_EventUpdateDateCriteria) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventUpdateDateCriteria) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Denom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*EventUpdateDateCriteria) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Denom) > 0 { + i -= len(x.Denom) + copy(dAtA[i:], x.Denom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) + 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().(*EventUpdateDateCriteria) + 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: EventUpdateDateCriteria: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateDateCriteria: 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 Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -2547,6 +2967,46 @@ func (x *EventUpdateCurator) GetDenom() string { return "" } +// EventUpdateDateCriteria is an event emitted when the basket date criteria is +// updated. +// +// Since Revision 3 +type EventUpdateDateCriteria struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // denom is the basket denom. + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (x *EventUpdateDateCriteria) Reset() { + *x = EventUpdateDateCriteria{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_basket_v1_events_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventUpdateDateCriteria) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventUpdateDateCriteria) ProtoMessage() {} + +// Deprecated: Use EventUpdateDateCriteria.ProtoReflect.Descriptor instead. +func (*EventUpdateDateCriteria) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_basket_v1_events_proto_rawDescGZIP(), []int{4} +} + +func (x *EventUpdateDateCriteria) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + var File_regen_ecocredit_basket_v1_events_proto protoreflect.FileDescriptor var file_regen_ecocredit_basket_v1_events_proto_rawDesc = []byte{ @@ -2585,24 +3045,27 @@ var file_regen_ecocredit_basket_v1_events_proto_rawDesc = []byte{ 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2a, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x42, 0x81, 0x02, 0x0a, 0x1d, 0x63, 0x6f, - 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 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, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x3b, - 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x42, 0xaa, 0x02, - 0x19, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x19, 0x52, 0x65, 0x67, - 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x42, 0x61, 0x73, - 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x25, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x5c, - 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x1c, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0x2f, 0x0a, 0x17, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, + 0x65, 0x72, 0x69, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x42, 0x81, 0x02, 0x0a, 0x1d, 0x63, + 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 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, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, + 0x3b, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x42, 0xaa, + 0x02, 0x19, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x19, 0x52, 0x65, + 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x42, 0x61, + 0x73, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x25, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, + 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x1c, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2617,17 +3080,18 @@ func file_regen_ecocredit_basket_v1_events_proto_rawDescGZIP() []byte { return file_regen_ecocredit_basket_v1_events_proto_rawDescData } -var file_regen_ecocredit_basket_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_regen_ecocredit_basket_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_regen_ecocredit_basket_v1_events_proto_goTypes = []interface{}{ - (*EventCreate)(nil), // 0: regen.ecocredit.basket.v1.EventCreate - (*EventPut)(nil), // 1: regen.ecocredit.basket.v1.EventPut - (*EventTake)(nil), // 2: regen.ecocredit.basket.v1.EventTake - (*EventUpdateCurator)(nil), // 3: regen.ecocredit.basket.v1.EventUpdateCurator - (*BasketCredit)(nil), // 4: regen.ecocredit.basket.v1.BasketCredit + (*EventCreate)(nil), // 0: regen.ecocredit.basket.v1.EventCreate + (*EventPut)(nil), // 1: regen.ecocredit.basket.v1.EventPut + (*EventTake)(nil), // 2: regen.ecocredit.basket.v1.EventTake + (*EventUpdateCurator)(nil), // 3: regen.ecocredit.basket.v1.EventUpdateCurator + (*EventUpdateDateCriteria)(nil), // 4: regen.ecocredit.basket.v1.EventUpdateDateCriteria + (*BasketCredit)(nil), // 5: regen.ecocredit.basket.v1.BasketCredit } var file_regen_ecocredit_basket_v1_events_proto_depIdxs = []int32{ - 4, // 0: regen.ecocredit.basket.v1.EventPut.credits:type_name -> regen.ecocredit.basket.v1.BasketCredit - 4, // 1: regen.ecocredit.basket.v1.EventTake.credits:type_name -> regen.ecocredit.basket.v1.BasketCredit + 5, // 0: regen.ecocredit.basket.v1.EventPut.credits:type_name -> regen.ecocredit.basket.v1.BasketCredit + 5, // 1: regen.ecocredit.basket.v1.EventTake.credits:type_name -> regen.ecocredit.basket.v1.BasketCredit 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -2690,6 +3154,18 @@ func file_regen_ecocredit_basket_v1_events_proto_init() { return nil } } + file_regen_ecocredit_basket_v1_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventUpdateDateCriteria); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -2697,7 +3173,7 @@ func file_regen_ecocredit_basket_v1_events_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_regen_ecocredit_basket_v1_events_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 5, NumExtensions: 0, NumServices: 0, }, diff --git a/api/regen/ecocredit/basket/v1/query_grpc.pb.go b/api/regen/ecocredit/basket/v1/query_grpc.pb.go index fda7b03bf5..964410bd6f 100644 --- a/api/regen/ecocredit/basket/v1/query_grpc.pb.go +++ b/api/regen/ecocredit/basket/v1/query_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/ecocredit/basket/v1/query.proto @@ -18,6 +18,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Query_Basket_FullMethodName = "/regen.ecocredit.basket.v1.Query/Basket" + Query_Baskets_FullMethodName = "/regen.ecocredit.basket.v1.Query/Baskets" + Query_BasketBalances_FullMethodName = "/regen.ecocredit.basket.v1.Query/BasketBalances" + Query_BasketBalance_FullMethodName = "/regen.ecocredit.basket.v1.Query/BasketBalance" + Query_BasketFee_FullMethodName = "/regen.ecocredit.basket.v1.Query/BasketFee" +) + // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -47,7 +55,7 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { func (c *queryClient) Basket(ctx context.Context, in *QueryBasketRequest, opts ...grpc.CallOption) (*QueryBasketResponse, error) { out := new(QueryBasketResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.basket.v1.Query/Basket", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Basket_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -56,7 +64,7 @@ func (c *queryClient) Basket(ctx context.Context, in *QueryBasketRequest, opts . func (c *queryClient) Baskets(ctx context.Context, in *QueryBasketsRequest, opts ...grpc.CallOption) (*QueryBasketsResponse, error) { out := new(QueryBasketsResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.basket.v1.Query/Baskets", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Baskets_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -65,7 +73,7 @@ func (c *queryClient) Baskets(ctx context.Context, in *QueryBasketsRequest, opts func (c *queryClient) BasketBalances(ctx context.Context, in *QueryBasketBalancesRequest, opts ...grpc.CallOption) (*QueryBasketBalancesResponse, error) { out := new(QueryBasketBalancesResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.basket.v1.Query/BasketBalances", in, out, opts...) + err := c.cc.Invoke(ctx, Query_BasketBalances_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -74,7 +82,7 @@ func (c *queryClient) BasketBalances(ctx context.Context, in *QueryBasketBalance func (c *queryClient) BasketBalance(ctx context.Context, in *QueryBasketBalanceRequest, opts ...grpc.CallOption) (*QueryBasketBalanceResponse, error) { out := new(QueryBasketBalanceResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.basket.v1.Query/BasketBalance", in, out, opts...) + err := c.cc.Invoke(ctx, Query_BasketBalance_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -83,7 +91,7 @@ func (c *queryClient) BasketBalance(ctx context.Context, in *QueryBasketBalanceR func (c *queryClient) BasketFee(ctx context.Context, in *QueryBasketFeeRequest, opts ...grpc.CallOption) (*QueryBasketFeeResponse, error) { out := new(QueryBasketFeeResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.basket.v1.Query/BasketFee", in, out, opts...) + err := c.cc.Invoke(ctx, Query_BasketFee_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -152,7 +160,7 @@ func _Query_Basket_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.basket.v1.Query/Basket", + FullMethod: Query_Basket_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Basket(ctx, req.(*QueryBasketRequest)) @@ -170,7 +178,7 @@ func _Query_Baskets_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.basket.v1.Query/Baskets", + FullMethod: Query_Baskets_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Baskets(ctx, req.(*QueryBasketsRequest)) @@ -188,7 +196,7 @@ func _Query_BasketBalances_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.basket.v1.Query/BasketBalances", + FullMethod: Query_BasketBalances_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BasketBalances(ctx, req.(*QueryBasketBalancesRequest)) @@ -206,7 +214,7 @@ func _Query_BasketBalance_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.basket.v1.Query/BasketBalance", + FullMethod: Query_BasketBalance_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BasketBalance(ctx, req.(*QueryBasketBalanceRequest)) @@ -224,7 +232,7 @@ func _Query_BasketFee_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.basket.v1.Query/BasketFee", + FullMethod: Query_BasketFee_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BasketFee(ctx, req.(*QueryBasketFeeRequest)) diff --git a/api/regen/ecocredit/basket/v1/tx.pulsar.go b/api/regen/ecocredit/basket/v1/tx.pulsar.go index f06f4a8d6b..e801b355f0 100644 --- a/api/regen/ecocredit/basket/v1/tx.pulsar.go +++ b/api/regen/ecocredit/basket/v1/tx.pulsar.go @@ -5579,6 +5579,925 @@ func (x *fastReflection_MsgUpdateCuratorResponse) ProtoMethods() *protoiface.Met } } +var ( + md_MsgUpdateDateCriteria protoreflect.MessageDescriptor + fd_MsgUpdateDateCriteria_authority protoreflect.FieldDescriptor + fd_MsgUpdateDateCriteria_denom protoreflect.FieldDescriptor + fd_MsgUpdateDateCriteria_new_date_criteria protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_basket_v1_tx_proto_init() + md_MsgUpdateDateCriteria = File_regen_ecocredit_basket_v1_tx_proto.Messages().ByName("MsgUpdateDateCriteria") + fd_MsgUpdateDateCriteria_authority = md_MsgUpdateDateCriteria.Fields().ByName("authority") + fd_MsgUpdateDateCriteria_denom = md_MsgUpdateDateCriteria.Fields().ByName("denom") + fd_MsgUpdateDateCriteria_new_date_criteria = md_MsgUpdateDateCriteria.Fields().ByName("new_date_criteria") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateDateCriteria)(nil) + +type fastReflection_MsgUpdateDateCriteria MsgUpdateDateCriteria + +func (x *MsgUpdateDateCriteria) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateDateCriteria)(x) +} + +func (x *MsgUpdateDateCriteria) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_basket_v1_tx_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgUpdateDateCriteria_messageType fastReflection_MsgUpdateDateCriteria_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateDateCriteria_messageType{} + +type fastReflection_MsgUpdateDateCriteria_messageType struct{} + +func (x fastReflection_MsgUpdateDateCriteria_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateDateCriteria)(nil) +} +func (x fastReflection_MsgUpdateDateCriteria_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateDateCriteria) +} +func (x fastReflection_MsgUpdateDateCriteria_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateDateCriteria +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateDateCriteria) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateDateCriteria +} + +// 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_MsgUpdateDateCriteria) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateDateCriteria_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateDateCriteria) New() protoreflect.Message { + return new(fastReflection_MsgUpdateDateCriteria) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateDateCriteria) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateDateCriteria)(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_MsgUpdateDateCriteria) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateDateCriteria_authority, value) { + return + } + } + if x.Denom != "" { + value := protoreflect.ValueOfString(x.Denom) + if !f(fd_MsgUpdateDateCriteria_denom, value) { + return + } + } + if x.NewDateCriteria != nil { + value := protoreflect.ValueOfMessage(x.NewDateCriteria.ProtoReflect()) + if !f(fd_MsgUpdateDateCriteria_new_date_criteria, 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_MsgUpdateDateCriteria) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.authority": + return x.Authority != "" + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.denom": + return x.Denom != "" + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.new_date_criteria": + return x.NewDateCriteria != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteria 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_MsgUpdateDateCriteria) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.authority": + x.Authority = "" + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.denom": + x.Denom = "" + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.new_date_criteria": + x.NewDateCriteria = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteria 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_MsgUpdateDateCriteria) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.denom": + value := x.Denom + return protoreflect.ValueOfString(value) + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.new_date_criteria": + value := x.NewDateCriteria + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteria 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_MsgUpdateDateCriteria) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.authority": + x.Authority = value.Interface().(string) + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.denom": + x.Denom = value.Interface().(string) + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.new_date_criteria": + x.NewDateCriteria = value.Message().Interface().(*DateCriteria) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteria 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_MsgUpdateDateCriteria) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.new_date_criteria": + if x.NewDateCriteria == nil { + x.NewDateCriteria = new(DateCriteria) + } + return protoreflect.ValueOfMessage(x.NewDateCriteria.ProtoReflect()) + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.authority": + panic(fmt.Errorf("field authority of message regen.ecocredit.basket.v1.MsgUpdateDateCriteria is not mutable")) + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.denom": + panic(fmt.Errorf("field denom of message regen.ecocredit.basket.v1.MsgUpdateDateCriteria is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteria 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_MsgUpdateDateCriteria) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.authority": + return protoreflect.ValueOfString("") + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.denom": + return protoreflect.ValueOfString("") + case "regen.ecocredit.basket.v1.MsgUpdateDateCriteria.new_date_criteria": + m := new(DateCriteria) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteria")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteria 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_MsgUpdateDateCriteria) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.basket.v1.MsgUpdateDateCriteria", 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_MsgUpdateDateCriteria) 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_MsgUpdateDateCriteria) 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_MsgUpdateDateCriteria) 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_MsgUpdateDateCriteria) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateDateCriteria) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Denom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.NewDateCriteria != nil { + l = options.Size(x.NewDateCriteria) + 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().(*MsgUpdateDateCriteria) + 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.NewDateCriteria != nil { + encoded, err := options.Marshal(x.NewDateCriteria) + 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] = 0x42 + } + if len(x.Denom) > 0 { + i -= len(x.Denom) + copy(dAtA[i:], x.Denom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgUpdateDateCriteria) + 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: MsgUpdateDateCriteria: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateDateCriteria: 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 Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewDateCriteria", 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.NewDateCriteria == nil { + x.NewDateCriteria = &DateCriteria{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NewDateCriteria); 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_MsgUpdateDateCriteriaResponse protoreflect.MessageDescriptor +) + +func init() { + file_regen_ecocredit_basket_v1_tx_proto_init() + md_MsgUpdateDateCriteriaResponse = File_regen_ecocredit_basket_v1_tx_proto.Messages().ByName("MsgUpdateDateCriteriaResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateDateCriteriaResponse)(nil) + +type fastReflection_MsgUpdateDateCriteriaResponse MsgUpdateDateCriteriaResponse + +func (x *MsgUpdateDateCriteriaResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateDateCriteriaResponse)(x) +} + +func (x *MsgUpdateDateCriteriaResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_basket_v1_tx_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgUpdateDateCriteriaResponse_messageType fastReflection_MsgUpdateDateCriteriaResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateDateCriteriaResponse_messageType{} + +type fastReflection_MsgUpdateDateCriteriaResponse_messageType struct{} + +func (x fastReflection_MsgUpdateDateCriteriaResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateDateCriteriaResponse)(nil) +} +func (x fastReflection_MsgUpdateDateCriteriaResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateDateCriteriaResponse) +} +func (x fastReflection_MsgUpdateDateCriteriaResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateDateCriteriaResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateDateCriteriaResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateDateCriteriaResponse +} + +// 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_MsgUpdateDateCriteriaResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateDateCriteriaResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateDateCriteriaResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateDateCriteriaResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateDateCriteriaResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateDateCriteriaResponse)(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_MsgUpdateDateCriteriaResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgUpdateDateCriteriaResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse 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_MsgUpdateDateCriteriaResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse 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_MsgUpdateDateCriteriaResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse 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_MsgUpdateDateCriteriaResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse 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_MsgUpdateDateCriteriaResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse 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_MsgUpdateDateCriteriaResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse")) + } + panic(fmt.Errorf("message regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse 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_MsgUpdateDateCriteriaResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", 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_MsgUpdateDateCriteriaResponse) 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_MsgUpdateDateCriteriaResponse) 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_MsgUpdateDateCriteriaResponse) 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_MsgUpdateDateCriteriaResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateDateCriteriaResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateDateCriteriaResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateDateCriteriaResponse) + 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: MsgUpdateDateCriteriaResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateDateCriteriaResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -5631,7 +6550,7 @@ type MsgCreate struct { // allowed_classes are the credit classes allowed to be put in the basket AllowedClasses []string `protobuf:"bytes,7,rep,name=allowed_classes,json=allowedClasses,proto3" json:"allowed_classes,omitempty"` // date_criteria is the date criteria for batches admitted to the basket. - // At most, only one of the fields in the date_criteria should be set. + // At most, only one of the date criteria fields can be set. DateCriteria *DateCriteria `protobuf:"bytes,8,opt,name=date_criteria,json=dateCriteria,proto3" json:"date_criteria,omitempty"` // fee is the basket creation fee. A fee is not required if no fee exists // in the basket fee parameter. The fee must be greater than or equal to the @@ -6172,6 +7091,93 @@ func (*MsgUpdateCuratorResponse) Descriptor() ([]byte, []int) { return file_regen_ecocredit_basket_v1_tx_proto_rawDescGZIP(), []int{9} } +// MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. +// +// Since Revision 3 +type MsgUpdateDateCriteria struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // denom is the unique identifier of the basket. + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` + // new_date_criteria is the new date criteria for batches admitted to the + // basket. At most, only one of the date criteria fields can be set. + NewDateCriteria *DateCriteria `protobuf:"bytes,8,opt,name=new_date_criteria,json=newDateCriteria,proto3" json:"new_date_criteria,omitempty"` +} + +func (x *MsgUpdateDateCriteria) Reset() { + *x = MsgUpdateDateCriteria{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_basket_v1_tx_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateDateCriteria) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateDateCriteria) ProtoMessage() {} + +// Deprecated: Use MsgUpdateDateCriteria.ProtoReflect.Descriptor instead. +func (*MsgUpdateDateCriteria) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_basket_v1_tx_proto_rawDescGZIP(), []int{10} +} + +func (x *MsgUpdateDateCriteria) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateDateCriteria) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +func (x *MsgUpdateDateCriteria) GetNewDateCriteria() *DateCriteria { + if x != nil { + return x.NewDateCriteria + } + return nil +} + +// MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. +// +// Since Revision 3 +type MsgUpdateDateCriteriaResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateDateCriteriaResponse) Reset() { + *x = MsgUpdateDateCriteriaResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_basket_v1_tx_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateDateCriteriaResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateDateCriteriaResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateDateCriteriaResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateDateCriteriaResponse) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_basket_v1_tx_proto_rawDescGZIP(), []int{11} +} + var File_regen_ecocredit_basket_v1_tx_proto protoreflect.FileDescriptor var file_regen_ecocredit_basket_v1_tx_proto_rawDesc = []byte{ @@ -6272,55 +7278,77 @@ var file_regen_ecocredit_basket_v1_tx_proto_rawDesc = []byte{ 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x77, 0x43, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x75, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xfc, 0x03, 0x0a, 0x03, 0x4d, 0x73, - 0x67, 0x12, 0x5c, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x24, 0x2e, 0x72, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x15, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, 0x65, + 0x72, 0x69, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x53, 0x0a, 0x11, 0x6e, 0x65, 0x77, 0x5f, 0x64, + 0x61, 0x74, 0x65, 0x5f, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x52, 0x0f, 0x6e, 0x65, 0x77, + 0x44, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x3a, 0x0c, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x63, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, 0x65, + 0x72, 0x69, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xff, 0x04, 0x0a, 0x03, + 0x4d, 0x73, 0x67, 0x12, 0x5c, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x24, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x53, 0x0a, 0x03, 0x50, 0x75, 0x74, 0x12, 0x21, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, - 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x54, 0x61, 0x6b, 0x65, 0x12, 0x22, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x61, + 0x6b, 0x65, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x54, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, + 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x46, 0x65, + 0x65, 0x12, 0x2d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x53, 0x0a, 0x03, 0x50, 0x75, 0x74, 0x12, 0x21, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, - 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x54, 0x61, 0x6b, 0x65, 0x12, 0x22, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, - 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x61, 0x6b, 0x65, - 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x46, 0x65, 0x65, + 0x1a, 0x35, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x54, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x0f, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x46, 0x65, 0x65, 0x12, - 0x2d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x46, 0x65, 0x65, 0x1a, 0x35, - 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, - 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x75, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x1a, 0x33, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x46, 0x65, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x43, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x75, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x33, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x75, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x12, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, + 0x61, 0x12, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, 0x65, + 0x72, 0x69, 0x61, 0x1a, 0x38, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xfd, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, - 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 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, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x61, 0x73, 0x6b, 0x65, - 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x42, 0xaa, 0x02, 0x19, 0x52, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x42, 0x61, 0x73, 0x6b, - 0x65, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x19, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x25, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x5c, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, 0x52, 0x65, 0x67, 0x65, - 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x42, 0x61, - 0x73, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, + 0x74, 0x65, 0x72, 0x69, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xfd, 0x01, + 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, + 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 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, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x3b, + 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x42, 0xaa, 0x02, + 0x19, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2e, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x19, 0x52, 0x65, 0x67, + 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x42, 0x61, 0x73, + 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x25, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x5c, + 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x1c, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x3a, 0x3a, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -6335,43 +7363,48 @@ func file_regen_ecocredit_basket_v1_tx_proto_rawDescGZIP() []byte { return file_regen_ecocredit_basket_v1_tx_proto_rawDescData } -var file_regen_ecocredit_basket_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_regen_ecocredit_basket_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_regen_ecocredit_basket_v1_tx_proto_goTypes = []interface{}{ - (*MsgCreate)(nil), // 0: regen.ecocredit.basket.v1.MsgCreate - (*MsgCreateResponse)(nil), // 1: regen.ecocredit.basket.v1.MsgCreateResponse - (*MsgPut)(nil), // 2: regen.ecocredit.basket.v1.MsgPut - (*MsgPutResponse)(nil), // 3: regen.ecocredit.basket.v1.MsgPutResponse - (*MsgTake)(nil), // 4: regen.ecocredit.basket.v1.MsgTake - (*MsgTakeResponse)(nil), // 5: regen.ecocredit.basket.v1.MsgTakeResponse - (*MsgUpdateBasketFee)(nil), // 6: regen.ecocredit.basket.v1.MsgUpdateBasketFee - (*MsgUpdateBasketFeeResponse)(nil), // 7: regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse - (*MsgUpdateCurator)(nil), // 8: regen.ecocredit.basket.v1.MsgUpdateCurator - (*MsgUpdateCuratorResponse)(nil), // 9: regen.ecocredit.basket.v1.MsgUpdateCuratorResponse - (*DateCriteria)(nil), // 10: regen.ecocredit.basket.v1.DateCriteria - (*v1beta1.Coin)(nil), // 11: cosmos.base.v1beta1.Coin - (*BasketCredit)(nil), // 12: regen.ecocredit.basket.v1.BasketCredit + (*MsgCreate)(nil), // 0: regen.ecocredit.basket.v1.MsgCreate + (*MsgCreateResponse)(nil), // 1: regen.ecocredit.basket.v1.MsgCreateResponse + (*MsgPut)(nil), // 2: regen.ecocredit.basket.v1.MsgPut + (*MsgPutResponse)(nil), // 3: regen.ecocredit.basket.v1.MsgPutResponse + (*MsgTake)(nil), // 4: regen.ecocredit.basket.v1.MsgTake + (*MsgTakeResponse)(nil), // 5: regen.ecocredit.basket.v1.MsgTakeResponse + (*MsgUpdateBasketFee)(nil), // 6: regen.ecocredit.basket.v1.MsgUpdateBasketFee + (*MsgUpdateBasketFeeResponse)(nil), // 7: regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse + (*MsgUpdateCurator)(nil), // 8: regen.ecocredit.basket.v1.MsgUpdateCurator + (*MsgUpdateCuratorResponse)(nil), // 9: regen.ecocredit.basket.v1.MsgUpdateCuratorResponse + (*MsgUpdateDateCriteria)(nil), // 10: regen.ecocredit.basket.v1.MsgUpdateDateCriteria + (*MsgUpdateDateCriteriaResponse)(nil), // 11: regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse + (*DateCriteria)(nil), // 12: regen.ecocredit.basket.v1.DateCriteria + (*v1beta1.Coin)(nil), // 13: cosmos.base.v1beta1.Coin + (*BasketCredit)(nil), // 14: regen.ecocredit.basket.v1.BasketCredit } var file_regen_ecocredit_basket_v1_tx_proto_depIdxs = []int32{ - 10, // 0: regen.ecocredit.basket.v1.MsgCreate.date_criteria:type_name -> regen.ecocredit.basket.v1.DateCriteria - 11, // 1: regen.ecocredit.basket.v1.MsgCreate.fee:type_name -> cosmos.base.v1beta1.Coin - 12, // 2: regen.ecocredit.basket.v1.MsgPut.credits:type_name -> regen.ecocredit.basket.v1.BasketCredit - 12, // 3: regen.ecocredit.basket.v1.MsgTakeResponse.credits:type_name -> regen.ecocredit.basket.v1.BasketCredit - 11, // 4: regen.ecocredit.basket.v1.MsgUpdateBasketFee.fee:type_name -> cosmos.base.v1beta1.Coin - 0, // 5: regen.ecocredit.basket.v1.Msg.Create:input_type -> regen.ecocredit.basket.v1.MsgCreate - 2, // 6: regen.ecocredit.basket.v1.Msg.Put:input_type -> regen.ecocredit.basket.v1.MsgPut - 4, // 7: regen.ecocredit.basket.v1.Msg.Take:input_type -> regen.ecocredit.basket.v1.MsgTake - 6, // 8: regen.ecocredit.basket.v1.Msg.UpdateBasketFee:input_type -> regen.ecocredit.basket.v1.MsgUpdateBasketFee - 8, // 9: regen.ecocredit.basket.v1.Msg.UpdateCurator:input_type -> regen.ecocredit.basket.v1.MsgUpdateCurator - 1, // 10: regen.ecocredit.basket.v1.Msg.Create:output_type -> regen.ecocredit.basket.v1.MsgCreateResponse - 3, // 11: regen.ecocredit.basket.v1.Msg.Put:output_type -> regen.ecocredit.basket.v1.MsgPutResponse - 5, // 12: regen.ecocredit.basket.v1.Msg.Take:output_type -> regen.ecocredit.basket.v1.MsgTakeResponse - 7, // 13: regen.ecocredit.basket.v1.Msg.UpdateBasketFee:output_type -> regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse - 9, // 14: regen.ecocredit.basket.v1.Msg.UpdateCurator:output_type -> regen.ecocredit.basket.v1.MsgUpdateCuratorResponse - 10, // [10:15] is the sub-list for method output_type - 5, // [5:10] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 12, // 0: regen.ecocredit.basket.v1.MsgCreate.date_criteria:type_name -> regen.ecocredit.basket.v1.DateCriteria + 13, // 1: regen.ecocredit.basket.v1.MsgCreate.fee:type_name -> cosmos.base.v1beta1.Coin + 14, // 2: regen.ecocredit.basket.v1.MsgPut.credits:type_name -> regen.ecocredit.basket.v1.BasketCredit + 14, // 3: regen.ecocredit.basket.v1.MsgTakeResponse.credits:type_name -> regen.ecocredit.basket.v1.BasketCredit + 13, // 4: regen.ecocredit.basket.v1.MsgUpdateBasketFee.fee:type_name -> cosmos.base.v1beta1.Coin + 12, // 5: regen.ecocredit.basket.v1.MsgUpdateDateCriteria.new_date_criteria:type_name -> regen.ecocredit.basket.v1.DateCriteria + 0, // 6: regen.ecocredit.basket.v1.Msg.Create:input_type -> regen.ecocredit.basket.v1.MsgCreate + 2, // 7: regen.ecocredit.basket.v1.Msg.Put:input_type -> regen.ecocredit.basket.v1.MsgPut + 4, // 8: regen.ecocredit.basket.v1.Msg.Take:input_type -> regen.ecocredit.basket.v1.MsgTake + 6, // 9: regen.ecocredit.basket.v1.Msg.UpdateBasketFee:input_type -> regen.ecocredit.basket.v1.MsgUpdateBasketFee + 8, // 10: regen.ecocredit.basket.v1.Msg.UpdateCurator:input_type -> regen.ecocredit.basket.v1.MsgUpdateCurator + 10, // 11: regen.ecocredit.basket.v1.Msg.UpdateDateCriteria:input_type -> regen.ecocredit.basket.v1.MsgUpdateDateCriteria + 1, // 12: regen.ecocredit.basket.v1.Msg.Create:output_type -> regen.ecocredit.basket.v1.MsgCreateResponse + 3, // 13: regen.ecocredit.basket.v1.Msg.Put:output_type -> regen.ecocredit.basket.v1.MsgPutResponse + 5, // 14: regen.ecocredit.basket.v1.Msg.Take:output_type -> regen.ecocredit.basket.v1.MsgTakeResponse + 7, // 15: regen.ecocredit.basket.v1.Msg.UpdateBasketFee:output_type -> regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse + 9, // 16: regen.ecocredit.basket.v1.Msg.UpdateCurator:output_type -> regen.ecocredit.basket.v1.MsgUpdateCuratorResponse + 11, // 17: regen.ecocredit.basket.v1.Msg.UpdateDateCriteria:output_type -> regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse + 12, // [12:18] is the sub-list for method output_type + 6, // [6:12] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_regen_ecocredit_basket_v1_tx_proto_init() } @@ -6501,6 +7534,30 @@ func file_regen_ecocredit_basket_v1_tx_proto_init() { return nil } } + file_regen_ecocredit_basket_v1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateDateCriteria); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_ecocredit_basket_v1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateDateCriteriaResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -6508,7 +7565,7 @@ func file_regen_ecocredit_basket_v1_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_regen_ecocredit_basket_v1_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 10, + NumMessages: 12, NumExtensions: 0, NumServices: 1, }, diff --git a/api/regen/ecocredit/basket/v1/tx_grpc.pb.go b/api/regen/ecocredit/basket/v1/tx_grpc.pb.go index baac770800..69ea11f257 100644 --- a/api/regen/ecocredit/basket/v1/tx_grpc.pb.go +++ b/api/regen/ecocredit/basket/v1/tx_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/ecocredit/basket/v1/tx.proto @@ -18,6 +18,15 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Msg_Create_FullMethodName = "/regen.ecocredit.basket.v1.Msg/Create" + Msg_Put_FullMethodName = "/regen.ecocredit.basket.v1.Msg/Put" + Msg_Take_FullMethodName = "/regen.ecocredit.basket.v1.Msg/Take" + Msg_UpdateBasketFee_FullMethodName = "/regen.ecocredit.basket.v1.Msg/UpdateBasketFee" + Msg_UpdateCurator_FullMethodName = "/regen.ecocredit.basket.v1.Msg/UpdateCurator" + Msg_UpdateDateCriteria_FullMethodName = "/regen.ecocredit.basket.v1.Msg/UpdateDateCriteria" +) + // MsgClient is the client API for Msg service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -63,6 +72,12 @@ type MsgClient interface { // // Since Revision 2 UpdateCurator(ctx context.Context, in *MsgUpdateCurator, opts ...grpc.CallOption) (*MsgUpdateCuratorResponse, error) + // UpdateDateCriteria is a governance method that allows for updating the date + // criteria of a basket. Updating basket date criteria could affect the value + // of basket tokens and therefore requires a network-wide governance process. + // + // Since Revision 3 + UpdateDateCriteria(ctx context.Context, in *MsgUpdateDateCriteria, opts ...grpc.CallOption) (*MsgUpdateDateCriteriaResponse, error) } type msgClient struct { @@ -75,7 +90,7 @@ func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { func (c *msgClient) Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error) { out := new(MsgCreateResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.basket.v1.Msg/Create", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Create_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -84,7 +99,7 @@ func (c *msgClient) Create(ctx context.Context, in *MsgCreate, opts ...grpc.Call func (c *msgClient) Put(ctx context.Context, in *MsgPut, opts ...grpc.CallOption) (*MsgPutResponse, error) { out := new(MsgPutResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.basket.v1.Msg/Put", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Put_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -93,7 +108,7 @@ func (c *msgClient) Put(ctx context.Context, in *MsgPut, opts ...grpc.CallOption func (c *msgClient) Take(ctx context.Context, in *MsgTake, opts ...grpc.CallOption) (*MsgTakeResponse, error) { out := new(MsgTakeResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.basket.v1.Msg/Take", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Take_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -102,7 +117,7 @@ func (c *msgClient) Take(ctx context.Context, in *MsgTake, opts ...grpc.CallOpti func (c *msgClient) UpdateBasketFee(ctx context.Context, in *MsgUpdateBasketFee, opts ...grpc.CallOption) (*MsgUpdateBasketFeeResponse, error) { out := new(MsgUpdateBasketFeeResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.basket.v1.Msg/UpdateBasketFee", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateBasketFee_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -111,7 +126,16 @@ func (c *msgClient) UpdateBasketFee(ctx context.Context, in *MsgUpdateBasketFee, func (c *msgClient) UpdateCurator(ctx context.Context, in *MsgUpdateCurator, opts ...grpc.CallOption) (*MsgUpdateCuratorResponse, error) { out := new(MsgUpdateCuratorResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.basket.v1.Msg/UpdateCurator", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateCurator_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateDateCriteria(ctx context.Context, in *MsgUpdateDateCriteria, opts ...grpc.CallOption) (*MsgUpdateDateCriteriaResponse, error) { + out := new(MsgUpdateDateCriteriaResponse) + err := c.cc.Invoke(ctx, Msg_UpdateDateCriteria_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -163,6 +187,12 @@ type MsgServer interface { // // Since Revision 2 UpdateCurator(context.Context, *MsgUpdateCurator) (*MsgUpdateCuratorResponse, error) + // UpdateDateCriteria is a governance method that allows for updating the date + // criteria of a basket. Updating basket date criteria could affect the value + // of basket tokens and therefore requires a network-wide governance process. + // + // Since Revision 3 + UpdateDateCriteria(context.Context, *MsgUpdateDateCriteria) (*MsgUpdateDateCriteriaResponse, error) mustEmbedUnimplementedMsgServer() } @@ -185,6 +215,9 @@ func (UnimplementedMsgServer) UpdateBasketFee(context.Context, *MsgUpdateBasketF func (UnimplementedMsgServer) UpdateCurator(context.Context, *MsgUpdateCurator) (*MsgUpdateCuratorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateCurator not implemented") } +func (UnimplementedMsgServer) UpdateDateCriteria(context.Context, *MsgUpdateDateCriteria) (*MsgUpdateDateCriteriaResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateDateCriteria not implemented") +} func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} // UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. @@ -208,7 +241,7 @@ func _Msg_Create_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.basket.v1.Msg/Create", + FullMethod: Msg_Create_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Create(ctx, req.(*MsgCreate)) @@ -226,7 +259,7 @@ func _Msg_Put_Handler(srv interface{}, ctx context.Context, dec func(interface{} } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.basket.v1.Msg/Put", + FullMethod: Msg_Put_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Put(ctx, req.(*MsgPut)) @@ -244,7 +277,7 @@ func _Msg_Take_Handler(srv interface{}, ctx context.Context, dec func(interface{ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.basket.v1.Msg/Take", + FullMethod: Msg_Take_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Take(ctx, req.(*MsgTake)) @@ -262,7 +295,7 @@ func _Msg_UpdateBasketFee_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.basket.v1.Msg/UpdateBasketFee", + FullMethod: Msg_UpdateBasketFee_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateBasketFee(ctx, req.(*MsgUpdateBasketFee)) @@ -280,7 +313,7 @@ func _Msg_UpdateCurator_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.basket.v1.Msg/UpdateCurator", + FullMethod: Msg_UpdateCurator_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateCurator(ctx, req.(*MsgUpdateCurator)) @@ -288,6 +321,24 @@ func _Msg_UpdateCurator_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } +func _Msg_UpdateDateCriteria_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateDateCriteria) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateDateCriteria(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateDateCriteria_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateDateCriteria(ctx, req.(*MsgUpdateDateCriteria)) + } + return interceptor(ctx, in, info, handler) +} + // Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -315,6 +366,10 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "UpdateCurator", Handler: _Msg_UpdateCurator_Handler, }, + { + MethodName: "UpdateDateCriteria", + Handler: _Msg_UpdateDateCriteria_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "regen/ecocredit/basket/v1/tx.proto", diff --git a/api/regen/ecocredit/marketplace/v1/query_grpc.pb.go b/api/regen/ecocredit/marketplace/v1/query_grpc.pb.go index 8ddce02ff5..8a67b7a44b 100644 --- a/api/regen/ecocredit/marketplace/v1/query_grpc.pb.go +++ b/api/regen/ecocredit/marketplace/v1/query_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/ecocredit/marketplace/v1/query.proto @@ -18,6 +18,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Query_SellOrder_FullMethodName = "/regen.ecocredit.marketplace.v1.Query/SellOrder" + Query_SellOrders_FullMethodName = "/regen.ecocredit.marketplace.v1.Query/SellOrders" + Query_SellOrdersByBatch_FullMethodName = "/regen.ecocredit.marketplace.v1.Query/SellOrdersByBatch" + Query_SellOrdersBySeller_FullMethodName = "/regen.ecocredit.marketplace.v1.Query/SellOrdersBySeller" + Query_AllowedDenoms_FullMethodName = "/regen.ecocredit.marketplace.v1.Query/AllowedDenoms" +) + // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -47,7 +55,7 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { func (c *queryClient) SellOrder(ctx context.Context, in *QuerySellOrderRequest, opts ...grpc.CallOption) (*QuerySellOrderResponse, error) { out := new(QuerySellOrderResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.marketplace.v1.Query/SellOrder", in, out, opts...) + err := c.cc.Invoke(ctx, Query_SellOrder_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -56,7 +64,7 @@ func (c *queryClient) SellOrder(ctx context.Context, in *QuerySellOrderRequest, func (c *queryClient) SellOrders(ctx context.Context, in *QuerySellOrdersRequest, opts ...grpc.CallOption) (*QuerySellOrdersResponse, error) { out := new(QuerySellOrdersResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.marketplace.v1.Query/SellOrders", in, out, opts...) + err := c.cc.Invoke(ctx, Query_SellOrders_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -65,7 +73,7 @@ func (c *queryClient) SellOrders(ctx context.Context, in *QuerySellOrdersRequest func (c *queryClient) SellOrdersByBatch(ctx context.Context, in *QuerySellOrdersByBatchRequest, opts ...grpc.CallOption) (*QuerySellOrdersByBatchResponse, error) { out := new(QuerySellOrdersByBatchResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.marketplace.v1.Query/SellOrdersByBatch", in, out, opts...) + err := c.cc.Invoke(ctx, Query_SellOrdersByBatch_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -74,7 +82,7 @@ func (c *queryClient) SellOrdersByBatch(ctx context.Context, in *QuerySellOrders func (c *queryClient) SellOrdersBySeller(ctx context.Context, in *QuerySellOrdersBySellerRequest, opts ...grpc.CallOption) (*QuerySellOrdersBySellerResponse, error) { out := new(QuerySellOrdersBySellerResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.marketplace.v1.Query/SellOrdersBySeller", in, out, opts...) + err := c.cc.Invoke(ctx, Query_SellOrdersBySeller_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -83,7 +91,7 @@ func (c *queryClient) SellOrdersBySeller(ctx context.Context, in *QuerySellOrder func (c *queryClient) AllowedDenoms(ctx context.Context, in *QueryAllowedDenomsRequest, opts ...grpc.CallOption) (*QueryAllowedDenomsResponse, error) { out := new(QueryAllowedDenomsResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.marketplace.v1.Query/AllowedDenoms", in, out, opts...) + err := c.cc.Invoke(ctx, Query_AllowedDenoms_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -152,7 +160,7 @@ func _Query_SellOrder_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.marketplace.v1.Query/SellOrder", + FullMethod: Query_SellOrder_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).SellOrder(ctx, req.(*QuerySellOrderRequest)) @@ -170,7 +178,7 @@ func _Query_SellOrders_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.marketplace.v1.Query/SellOrders", + FullMethod: Query_SellOrders_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).SellOrders(ctx, req.(*QuerySellOrdersRequest)) @@ -188,7 +196,7 @@ func _Query_SellOrdersByBatch_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.marketplace.v1.Query/SellOrdersByBatch", + FullMethod: Query_SellOrdersByBatch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).SellOrdersByBatch(ctx, req.(*QuerySellOrdersByBatchRequest)) @@ -206,7 +214,7 @@ func _Query_SellOrdersBySeller_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.marketplace.v1.Query/SellOrdersBySeller", + FullMethod: Query_SellOrdersBySeller_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).SellOrdersBySeller(ctx, req.(*QuerySellOrdersBySellerRequest)) @@ -224,7 +232,7 @@ func _Query_AllowedDenoms_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.marketplace.v1.Query/AllowedDenoms", + FullMethod: Query_AllowedDenoms_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AllowedDenoms(ctx, req.(*QueryAllowedDenomsRequest)) diff --git a/api/regen/ecocredit/marketplace/v1/tx_grpc.pb.go b/api/regen/ecocredit/marketplace/v1/tx_grpc.pb.go index e7d2fa4177..f64d05e557 100644 --- a/api/regen/ecocredit/marketplace/v1/tx_grpc.pb.go +++ b/api/regen/ecocredit/marketplace/v1/tx_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/ecocredit/marketplace/v1/tx.proto @@ -18,6 +18,15 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Msg_Sell_FullMethodName = "/regen.ecocredit.marketplace.v1.Msg/Sell" + Msg_UpdateSellOrders_FullMethodName = "/regen.ecocredit.marketplace.v1.Msg/UpdateSellOrders" + Msg_CancelSellOrder_FullMethodName = "/regen.ecocredit.marketplace.v1.Msg/CancelSellOrder" + Msg_BuyDirect_FullMethodName = "/regen.ecocredit.marketplace.v1.Msg/BuyDirect" + Msg_AddAllowedDenom_FullMethodName = "/regen.ecocredit.marketplace.v1.Msg/AddAllowedDenom" + Msg_RemoveAllowedDenom_FullMethodName = "/regen.ecocredit.marketplace.v1.Msg/RemoveAllowedDenom" +) + // MsgClient is the client API for Msg service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -51,7 +60,7 @@ func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { func (c *msgClient) Sell(ctx context.Context, in *MsgSell, opts ...grpc.CallOption) (*MsgSellResponse, error) { out := new(MsgSellResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.marketplace.v1.Msg/Sell", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Sell_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -60,7 +69,7 @@ func (c *msgClient) Sell(ctx context.Context, in *MsgSell, opts ...grpc.CallOpti func (c *msgClient) UpdateSellOrders(ctx context.Context, in *MsgUpdateSellOrders, opts ...grpc.CallOption) (*MsgUpdateSellOrdersResponse, error) { out := new(MsgUpdateSellOrdersResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.marketplace.v1.Msg/UpdateSellOrders", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateSellOrders_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -69,7 +78,7 @@ func (c *msgClient) UpdateSellOrders(ctx context.Context, in *MsgUpdateSellOrder func (c *msgClient) CancelSellOrder(ctx context.Context, in *MsgCancelSellOrder, opts ...grpc.CallOption) (*MsgCancelSellOrderResponse, error) { out := new(MsgCancelSellOrderResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.marketplace.v1.Msg/CancelSellOrder", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_CancelSellOrder_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -78,7 +87,7 @@ func (c *msgClient) CancelSellOrder(ctx context.Context, in *MsgCancelSellOrder, func (c *msgClient) BuyDirect(ctx context.Context, in *MsgBuyDirect, opts ...grpc.CallOption) (*MsgBuyDirectResponse, error) { out := new(MsgBuyDirectResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.marketplace.v1.Msg/BuyDirect", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_BuyDirect_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -87,7 +96,7 @@ func (c *msgClient) BuyDirect(ctx context.Context, in *MsgBuyDirect, opts ...grp func (c *msgClient) AddAllowedDenom(ctx context.Context, in *MsgAddAllowedDenom, opts ...grpc.CallOption) (*MsgAddAllowedDenomResponse, error) { out := new(MsgAddAllowedDenomResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.marketplace.v1.Msg/AddAllowedDenom", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_AddAllowedDenom_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -96,7 +105,7 @@ func (c *msgClient) AddAllowedDenom(ctx context.Context, in *MsgAddAllowedDenom, func (c *msgClient) RemoveAllowedDenom(ctx context.Context, in *MsgRemoveAllowedDenom, opts ...grpc.CallOption) (*MsgRemoveAllowedDenomResponse, error) { out := new(MsgRemoveAllowedDenomResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.marketplace.v1.Msg/RemoveAllowedDenom", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_RemoveAllowedDenom_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -172,7 +181,7 @@ func _Msg_Sell_Handler(srv interface{}, ctx context.Context, dec func(interface{ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.marketplace.v1.Msg/Sell", + FullMethod: Msg_Sell_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Sell(ctx, req.(*MsgSell)) @@ -190,7 +199,7 @@ func _Msg_UpdateSellOrders_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.marketplace.v1.Msg/UpdateSellOrders", + FullMethod: Msg_UpdateSellOrders_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateSellOrders(ctx, req.(*MsgUpdateSellOrders)) @@ -208,7 +217,7 @@ func _Msg_CancelSellOrder_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.marketplace.v1.Msg/CancelSellOrder", + FullMethod: Msg_CancelSellOrder_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CancelSellOrder(ctx, req.(*MsgCancelSellOrder)) @@ -226,7 +235,7 @@ func _Msg_BuyDirect_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.marketplace.v1.Msg/BuyDirect", + FullMethod: Msg_BuyDirect_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).BuyDirect(ctx, req.(*MsgBuyDirect)) @@ -244,7 +253,7 @@ func _Msg_AddAllowedDenom_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.marketplace.v1.Msg/AddAllowedDenom", + FullMethod: Msg_AddAllowedDenom_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AddAllowedDenom(ctx, req.(*MsgAddAllowedDenom)) @@ -262,7 +271,7 @@ func _Msg_RemoveAllowedDenom_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.marketplace.v1.Msg/RemoveAllowedDenom", + FullMethod: Msg_RemoveAllowedDenom_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RemoveAllowedDenom(ctx, req.(*MsgRemoveAllowedDenom)) diff --git a/api/regen/ecocredit/v1/query_grpc.pb.go b/api/regen/ecocredit/v1/query_grpc.pb.go index 7ac143571d..6ab27dc212 100644 --- a/api/regen/ecocredit/v1/query_grpc.pb.go +++ b/api/regen/ecocredit/v1/query_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/ecocredit/v1/query.proto @@ -18,6 +18,35 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Query_Classes_FullMethodName = "/regen.ecocredit.v1.Query/Classes" + Query_ClassesByAdmin_FullMethodName = "/regen.ecocredit.v1.Query/ClassesByAdmin" + Query_Class_FullMethodName = "/regen.ecocredit.v1.Query/Class" + Query_ClassIssuers_FullMethodName = "/regen.ecocredit.v1.Query/ClassIssuers" + Query_Projects_FullMethodName = "/regen.ecocredit.v1.Query/Projects" + Query_ProjectsByClass_FullMethodName = "/regen.ecocredit.v1.Query/ProjectsByClass" + Query_ProjectsByReferenceId_FullMethodName = "/regen.ecocredit.v1.Query/ProjectsByReferenceId" + Query_ProjectsByAdmin_FullMethodName = "/regen.ecocredit.v1.Query/ProjectsByAdmin" + Query_Project_FullMethodName = "/regen.ecocredit.v1.Query/Project" + Query_Batches_FullMethodName = "/regen.ecocredit.v1.Query/Batches" + Query_BatchesByIssuer_FullMethodName = "/regen.ecocredit.v1.Query/BatchesByIssuer" + Query_BatchesByClass_FullMethodName = "/regen.ecocredit.v1.Query/BatchesByClass" + Query_BatchesByProject_FullMethodName = "/regen.ecocredit.v1.Query/BatchesByProject" + Query_Batch_FullMethodName = "/regen.ecocredit.v1.Query/Batch" + Query_Balance_FullMethodName = "/regen.ecocredit.v1.Query/Balance" + Query_Balances_FullMethodName = "/regen.ecocredit.v1.Query/Balances" + Query_BalancesByBatch_FullMethodName = "/regen.ecocredit.v1.Query/BalancesByBatch" + Query_AllBalances_FullMethodName = "/regen.ecocredit.v1.Query/AllBalances" + Query_Supply_FullMethodName = "/regen.ecocredit.v1.Query/Supply" + Query_CreditTypes_FullMethodName = "/regen.ecocredit.v1.Query/CreditTypes" + Query_Params_FullMethodName = "/regen.ecocredit.v1.Query/Params" + Query_CreditType_FullMethodName = "/regen.ecocredit.v1.Query/CreditType" + Query_ClassCreatorAllowlist_FullMethodName = "/regen.ecocredit.v1.Query/ClassCreatorAllowlist" + Query_AllowedClassCreators_FullMethodName = "/regen.ecocredit.v1.Query/AllowedClassCreators" + Query_ClassFee_FullMethodName = "/regen.ecocredit.v1.Query/ClassFee" + Query_AllowedBridgeChains_FullMethodName = "/regen.ecocredit.v1.Query/AllowedBridgeChains" +) + // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -111,7 +140,7 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { func (c *queryClient) Classes(ctx context.Context, in *QueryClassesRequest, opts ...grpc.CallOption) (*QueryClassesResponse, error) { out := new(QueryClassesResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/Classes", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Classes_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -120,7 +149,7 @@ func (c *queryClient) Classes(ctx context.Context, in *QueryClassesRequest, opts func (c *queryClient) ClassesByAdmin(ctx context.Context, in *QueryClassesByAdminRequest, opts ...grpc.CallOption) (*QueryClassesByAdminResponse, error) { out := new(QueryClassesByAdminResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/ClassesByAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ClassesByAdmin_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -129,7 +158,7 @@ func (c *queryClient) ClassesByAdmin(ctx context.Context, in *QueryClassesByAdmi func (c *queryClient) Class(ctx context.Context, in *QueryClassRequest, opts ...grpc.CallOption) (*QueryClassResponse, error) { out := new(QueryClassResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/Class", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Class_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -138,7 +167,7 @@ func (c *queryClient) Class(ctx context.Context, in *QueryClassRequest, opts ... func (c *queryClient) ClassIssuers(ctx context.Context, in *QueryClassIssuersRequest, opts ...grpc.CallOption) (*QueryClassIssuersResponse, error) { out := new(QueryClassIssuersResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/ClassIssuers", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ClassIssuers_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -147,7 +176,7 @@ func (c *queryClient) ClassIssuers(ctx context.Context, in *QueryClassIssuersReq 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...) + err := c.cc.Invoke(ctx, Query_Projects_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -156,7 +185,7 @@ func (c *queryClient) Projects(ctx context.Context, in *QueryProjectsRequest, op 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...) + err := c.cc.Invoke(ctx, Query_ProjectsByClass_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -165,7 +194,7 @@ func (c *queryClient) ProjectsByClass(ctx context.Context, in *QueryProjectsByCl func (c *queryClient) ProjectsByReferenceId(ctx context.Context, in *QueryProjectsByReferenceIdRequest, opts ...grpc.CallOption) (*QueryProjectsByReferenceIdResponse, error) { out := new(QueryProjectsByReferenceIdResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/ProjectsByReferenceId", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ProjectsByReferenceId_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -174,7 +203,7 @@ func (c *queryClient) ProjectsByReferenceId(ctx context.Context, in *QueryProjec func (c *queryClient) ProjectsByAdmin(ctx context.Context, in *QueryProjectsByAdminRequest, opts ...grpc.CallOption) (*QueryProjectsByAdminResponse, error) { out := new(QueryProjectsByAdminResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/ProjectsByAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ProjectsByAdmin_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -183,7 +212,7 @@ func (c *queryClient) ProjectsByAdmin(ctx context.Context, in *QueryProjectsByAd func (c *queryClient) Project(ctx context.Context, in *QueryProjectRequest, opts ...grpc.CallOption) (*QueryProjectResponse, error) { out := new(QueryProjectResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/Project", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Project_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -192,7 +221,7 @@ func (c *queryClient) Project(ctx context.Context, in *QueryProjectRequest, opts func (c *queryClient) Batches(ctx context.Context, in *QueryBatchesRequest, opts ...grpc.CallOption) (*QueryBatchesResponse, error) { out := new(QueryBatchesResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/Batches", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Batches_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -201,7 +230,7 @@ func (c *queryClient) Batches(ctx context.Context, in *QueryBatchesRequest, opts func (c *queryClient) BatchesByIssuer(ctx context.Context, in *QueryBatchesByIssuerRequest, opts ...grpc.CallOption) (*QueryBatchesByIssuerResponse, error) { out := new(QueryBatchesByIssuerResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/BatchesByIssuer", in, out, opts...) + err := c.cc.Invoke(ctx, Query_BatchesByIssuer_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -210,7 +239,7 @@ func (c *queryClient) BatchesByIssuer(ctx context.Context, in *QueryBatchesByIss func (c *queryClient) BatchesByClass(ctx context.Context, in *QueryBatchesByClassRequest, opts ...grpc.CallOption) (*QueryBatchesByClassResponse, error) { out := new(QueryBatchesByClassResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/BatchesByClass", in, out, opts...) + err := c.cc.Invoke(ctx, Query_BatchesByClass_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -219,7 +248,7 @@ func (c *queryClient) BatchesByClass(ctx context.Context, in *QueryBatchesByClas func (c *queryClient) BatchesByProject(ctx context.Context, in *QueryBatchesByProjectRequest, opts ...grpc.CallOption) (*QueryBatchesByProjectResponse, error) { out := new(QueryBatchesByProjectResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/BatchesByProject", in, out, opts...) + err := c.cc.Invoke(ctx, Query_BatchesByProject_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -228,7 +257,7 @@ func (c *queryClient) BatchesByProject(ctx context.Context, in *QueryBatchesByPr func (c *queryClient) Batch(ctx context.Context, in *QueryBatchRequest, opts ...grpc.CallOption) (*QueryBatchResponse, error) { out := new(QueryBatchResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/Batch", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Batch_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -237,7 +266,7 @@ func (c *queryClient) Batch(ctx context.Context, in *QueryBatchRequest, opts ... func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { out := new(QueryBalanceResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/Balance", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Balance_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -246,7 +275,7 @@ func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts func (c *queryClient) Balances(ctx context.Context, in *QueryBalancesRequest, opts ...grpc.CallOption) (*QueryBalancesResponse, error) { out := new(QueryBalancesResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/Balances", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Balances_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -255,7 +284,7 @@ func (c *queryClient) Balances(ctx context.Context, in *QueryBalancesRequest, op func (c *queryClient) BalancesByBatch(ctx context.Context, in *QueryBalancesByBatchRequest, opts ...grpc.CallOption) (*QueryBalancesByBatchResponse, error) { out := new(QueryBalancesByBatchResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/BalancesByBatch", in, out, opts...) + err := c.cc.Invoke(ctx, Query_BalancesByBatch_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -264,7 +293,7 @@ func (c *queryClient) BalancesByBatch(ctx context.Context, in *QueryBalancesByBa func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) { out := new(QueryAllBalancesResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/AllBalances", in, out, opts...) + err := c.cc.Invoke(ctx, Query_AllBalances_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -273,7 +302,7 @@ func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesReque func (c *queryClient) Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error) { out := new(QuerySupplyResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/Supply", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Supply_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -282,7 +311,7 @@ func (c *queryClient) Supply(ctx context.Context, in *QuerySupplyRequest, opts . func (c *queryClient) CreditTypes(ctx context.Context, in *QueryCreditTypesRequest, opts ...grpc.CallOption) (*QueryCreditTypesResponse, error) { out := new(QueryCreditTypesResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/CreditTypes", in, out, opts...) + err := c.cc.Invoke(ctx, Query_CreditTypes_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -292,7 +321,7 @@ func (c *queryClient) CreditTypes(ctx context.Context, in *QueryCreditTypesReque // Deprecated: Do not use. func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -301,7 +330,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) CreditType(ctx context.Context, in *QueryCreditTypeRequest, opts ...grpc.CallOption) (*QueryCreditTypeResponse, error) { out := new(QueryCreditTypeResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/CreditType", in, out, opts...) + err := c.cc.Invoke(ctx, Query_CreditType_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -310,7 +339,7 @@ func (c *queryClient) CreditType(ctx context.Context, in *QueryCreditTypeRequest func (c *queryClient) ClassCreatorAllowlist(ctx context.Context, in *QueryClassCreatorAllowlistRequest, opts ...grpc.CallOption) (*QueryClassCreatorAllowlistResponse, error) { out := new(QueryClassCreatorAllowlistResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/ClassCreatorAllowlist", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ClassCreatorAllowlist_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -319,7 +348,7 @@ func (c *queryClient) ClassCreatorAllowlist(ctx context.Context, in *QueryClassC func (c *queryClient) AllowedClassCreators(ctx context.Context, in *QueryAllowedClassCreatorsRequest, opts ...grpc.CallOption) (*QueryAllowedClassCreatorsResponse, error) { out := new(QueryAllowedClassCreatorsResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/AllowedClassCreators", in, out, opts...) + err := c.cc.Invoke(ctx, Query_AllowedClassCreators_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -328,7 +357,7 @@ func (c *queryClient) AllowedClassCreators(ctx context.Context, in *QueryAllowed func (c *queryClient) ClassFee(ctx context.Context, in *QueryClassFeeRequest, opts ...grpc.CallOption) (*QueryClassFeeResponse, error) { out := new(QueryClassFeeResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/ClassFee", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ClassFee_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -337,7 +366,7 @@ func (c *queryClient) ClassFee(ctx context.Context, in *QueryClassFeeRequest, op func (c *queryClient) AllowedBridgeChains(ctx context.Context, in *QueryAllowedBridgeChainsRequest, opts ...grpc.CallOption) (*QueryAllowedBridgeChainsResponse, error) { out := new(QueryAllowedBridgeChainsResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Query/AllowedBridgeChains", in, out, opts...) + err := c.cc.Invoke(ctx, Query_AllowedBridgeChains_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -533,7 +562,7 @@ func _Query_Classes_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/Classes", + FullMethod: Query_Classes_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Classes(ctx, req.(*QueryClassesRequest)) @@ -551,7 +580,7 @@ func _Query_ClassesByAdmin_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/ClassesByAdmin", + FullMethod: Query_ClassesByAdmin_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ClassesByAdmin(ctx, req.(*QueryClassesByAdminRequest)) @@ -569,7 +598,7 @@ func _Query_Class_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/Class", + FullMethod: Query_Class_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Class(ctx, req.(*QueryClassRequest)) @@ -587,7 +616,7 @@ func _Query_ClassIssuers_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/ClassIssuers", + FullMethod: Query_ClassIssuers_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ClassIssuers(ctx, req.(*QueryClassIssuersRequest)) @@ -605,7 +634,7 @@ func _Query_Projects_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/Projects", + FullMethod: Query_Projects_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Projects(ctx, req.(*QueryProjectsRequest)) @@ -623,7 +652,7 @@ func _Query_ProjectsByClass_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/ProjectsByClass", + FullMethod: Query_ProjectsByClass_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ProjectsByClass(ctx, req.(*QueryProjectsByClassRequest)) @@ -641,7 +670,7 @@ func _Query_ProjectsByReferenceId_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/ProjectsByReferenceId", + FullMethod: Query_ProjectsByReferenceId_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ProjectsByReferenceId(ctx, req.(*QueryProjectsByReferenceIdRequest)) @@ -659,7 +688,7 @@ func _Query_ProjectsByAdmin_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/ProjectsByAdmin", + FullMethod: Query_ProjectsByAdmin_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ProjectsByAdmin(ctx, req.(*QueryProjectsByAdminRequest)) @@ -677,7 +706,7 @@ func _Query_Project_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/Project", + FullMethod: Query_Project_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Project(ctx, req.(*QueryProjectRequest)) @@ -695,7 +724,7 @@ func _Query_Batches_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/Batches", + FullMethod: Query_Batches_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Batches(ctx, req.(*QueryBatchesRequest)) @@ -713,7 +742,7 @@ func _Query_BatchesByIssuer_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/BatchesByIssuer", + FullMethod: Query_BatchesByIssuer_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BatchesByIssuer(ctx, req.(*QueryBatchesByIssuerRequest)) @@ -731,7 +760,7 @@ func _Query_BatchesByClass_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/BatchesByClass", + FullMethod: Query_BatchesByClass_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BatchesByClass(ctx, req.(*QueryBatchesByClassRequest)) @@ -749,7 +778,7 @@ func _Query_BatchesByProject_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/BatchesByProject", + FullMethod: Query_BatchesByProject_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BatchesByProject(ctx, req.(*QueryBatchesByProjectRequest)) @@ -767,7 +796,7 @@ func _Query_Batch_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/Batch", + FullMethod: Query_Batch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Batch(ctx, req.(*QueryBatchRequest)) @@ -785,7 +814,7 @@ func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/Balance", + FullMethod: Query_Balance_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) @@ -803,7 +832,7 @@ func _Query_Balances_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/Balances", + FullMethod: Query_Balances_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Balances(ctx, req.(*QueryBalancesRequest)) @@ -821,7 +850,7 @@ func _Query_BalancesByBatch_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/BalancesByBatch", + FullMethod: Query_BalancesByBatch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BalancesByBatch(ctx, req.(*QueryBalancesByBatchRequest)) @@ -839,7 +868,7 @@ func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/AllBalances", + FullMethod: Query_AllBalances_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AllBalances(ctx, req.(*QueryAllBalancesRequest)) @@ -857,7 +886,7 @@ func _Query_Supply_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/Supply", + FullMethod: Query_Supply_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Supply(ctx, req.(*QuerySupplyRequest)) @@ -875,7 +904,7 @@ func _Query_CreditTypes_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/CreditTypes", + FullMethod: Query_CreditTypes_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).CreditTypes(ctx, req.(*QueryCreditTypesRequest)) @@ -893,7 +922,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/Params", + FullMethod: Query_Params_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -911,7 +940,7 @@ func _Query_CreditType_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/CreditType", + FullMethod: Query_CreditType_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).CreditType(ctx, req.(*QueryCreditTypeRequest)) @@ -929,7 +958,7 @@ func _Query_ClassCreatorAllowlist_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/ClassCreatorAllowlist", + FullMethod: Query_ClassCreatorAllowlist_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ClassCreatorAllowlist(ctx, req.(*QueryClassCreatorAllowlistRequest)) @@ -947,7 +976,7 @@ func _Query_AllowedClassCreators_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/AllowedClassCreators", + FullMethod: Query_AllowedClassCreators_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AllowedClassCreators(ctx, req.(*QueryAllowedClassCreatorsRequest)) @@ -965,7 +994,7 @@ func _Query_ClassFee_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/ClassFee", + FullMethod: Query_ClassFee_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ClassFee(ctx, req.(*QueryClassFeeRequest)) @@ -983,7 +1012,7 @@ func _Query_AllowedBridgeChains_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Query/AllowedBridgeChains", + FullMethod: Query_AllowedBridgeChains_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AllowedBridgeChains(ctx, req.(*QueryAllowedBridgeChainsRequest)) diff --git a/api/regen/ecocredit/v1/tx_grpc.pb.go b/api/regen/ecocredit/v1/tx_grpc.pb.go index 10f16ece66..37ab964818 100644 --- a/api/regen/ecocredit/v1/tx_grpc.pb.go +++ b/api/regen/ecocredit/v1/tx_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/ecocredit/v1/tx.proto @@ -18,6 +18,32 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Msg_CreateClass_FullMethodName = "/regen.ecocredit.v1.Msg/CreateClass" + Msg_CreateProject_FullMethodName = "/regen.ecocredit.v1.Msg/CreateProject" + Msg_CreateBatch_FullMethodName = "/regen.ecocredit.v1.Msg/CreateBatch" + Msg_MintBatchCredits_FullMethodName = "/regen.ecocredit.v1.Msg/MintBatchCredits" + Msg_SealBatch_FullMethodName = "/regen.ecocredit.v1.Msg/SealBatch" + Msg_Send_FullMethodName = "/regen.ecocredit.v1.Msg/Send" + Msg_Retire_FullMethodName = "/regen.ecocredit.v1.Msg/Retire" + Msg_Cancel_FullMethodName = "/regen.ecocredit.v1.Msg/Cancel" + Msg_UpdateClassAdmin_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassAdmin" + Msg_UpdateClassIssuers_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassIssuers" + Msg_UpdateClassMetadata_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassMetadata" + Msg_UpdateProjectAdmin_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateProjectAdmin" + Msg_UpdateProjectMetadata_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateProjectMetadata" + Msg_UpdateBatchMetadata_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateBatchMetadata" + Msg_Bridge_FullMethodName = "/regen.ecocredit.v1.Msg/Bridge" + Msg_BridgeReceive_FullMethodName = "/regen.ecocredit.v1.Msg/BridgeReceive" + Msg_AddCreditType_FullMethodName = "/regen.ecocredit.v1.Msg/AddCreditType" + Msg_SetClassCreatorAllowlist_FullMethodName = "/regen.ecocredit.v1.Msg/SetClassCreatorAllowlist" + Msg_AddClassCreator_FullMethodName = "/regen.ecocredit.v1.Msg/AddClassCreator" + Msg_RemoveClassCreator_FullMethodName = "/regen.ecocredit.v1.Msg/RemoveClassCreator" + Msg_UpdateClassFee_FullMethodName = "/regen.ecocredit.v1.Msg/UpdateClassFee" + Msg_AddAllowedBridgeChain_FullMethodName = "/regen.ecocredit.v1.Msg/AddAllowedBridgeChain" + Msg_RemoveAllowedBridgeChain_FullMethodName = "/regen.ecocredit.v1.Msg/RemoveAllowedBridgeChain" +) + // MsgClient is the client API for Msg service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -158,7 +184,7 @@ func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { func (c *msgClient) CreateClass(ctx context.Context, in *MsgCreateClass, opts ...grpc.CallOption) (*MsgCreateClassResponse, error) { out := new(MsgCreateClassResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/CreateClass", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_CreateClass_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -167,7 +193,7 @@ func (c *msgClient) CreateClass(ctx context.Context, in *MsgCreateClass, opts .. func (c *msgClient) CreateProject(ctx context.Context, in *MsgCreateProject, opts ...grpc.CallOption) (*MsgCreateProjectResponse, error) { out := new(MsgCreateProjectResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/CreateProject", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_CreateProject_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -176,7 +202,7 @@ func (c *msgClient) CreateProject(ctx context.Context, in *MsgCreateProject, opt func (c *msgClient) CreateBatch(ctx context.Context, in *MsgCreateBatch, opts ...grpc.CallOption) (*MsgCreateBatchResponse, error) { out := new(MsgCreateBatchResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/CreateBatch", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_CreateBatch_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -185,7 +211,7 @@ func (c *msgClient) CreateBatch(ctx context.Context, in *MsgCreateBatch, opts .. func (c *msgClient) MintBatchCredits(ctx context.Context, in *MsgMintBatchCredits, opts ...grpc.CallOption) (*MsgMintBatchCreditsResponse, error) { out := new(MsgMintBatchCreditsResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/MintBatchCredits", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_MintBatchCredits_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -194,7 +220,7 @@ func (c *msgClient) MintBatchCredits(ctx context.Context, in *MsgMintBatchCredit func (c *msgClient) SealBatch(ctx context.Context, in *MsgSealBatch, opts ...grpc.CallOption) (*MsgSealBatchResponse, error) { out := new(MsgSealBatchResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/SealBatch", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_SealBatch_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -203,7 +229,7 @@ func (c *msgClient) SealBatch(ctx context.Context, in *MsgSealBatch, opts ...grp func (c *msgClient) Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) { out := new(MsgSendResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Send", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Send_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -212,7 +238,7 @@ func (c *msgClient) Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOpti func (c *msgClient) Retire(ctx context.Context, in *MsgRetire, opts ...grpc.CallOption) (*MsgRetireResponse, error) { out := new(MsgRetireResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Retire", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Retire_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -221,7 +247,7 @@ func (c *msgClient) Retire(ctx context.Context, in *MsgRetire, opts ...grpc.Call func (c *msgClient) Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.CallOption) (*MsgCancelResponse, error) { out := new(MsgCancelResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Cancel", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Cancel_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -230,7 +256,7 @@ func (c *msgClient) Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.Call func (c *msgClient) UpdateClassAdmin(ctx context.Context, in *MsgUpdateClassAdmin, opts ...grpc.CallOption) (*MsgUpdateClassAdminResponse, error) { out := new(MsgUpdateClassAdminResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateClassAdmin_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -239,7 +265,7 @@ func (c *msgClient) UpdateClassAdmin(ctx context.Context, in *MsgUpdateClassAdmi func (c *msgClient) UpdateClassIssuers(ctx context.Context, in *MsgUpdateClassIssuers, opts ...grpc.CallOption) (*MsgUpdateClassIssuersResponse, error) { out := new(MsgUpdateClassIssuersResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassIssuers", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateClassIssuers_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -248,7 +274,7 @@ func (c *msgClient) UpdateClassIssuers(ctx context.Context, in *MsgUpdateClassIs func (c *msgClient) UpdateClassMetadata(ctx context.Context, in *MsgUpdateClassMetadata, opts ...grpc.CallOption) (*MsgUpdateClassMetadataResponse, error) { out := new(MsgUpdateClassMetadataResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassMetadata", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateClassMetadata_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -257,7 +283,7 @@ func (c *msgClient) UpdateClassMetadata(ctx context.Context, in *MsgUpdateClassM func (c *msgClient) UpdateProjectAdmin(ctx context.Context, in *MsgUpdateProjectAdmin, opts ...grpc.CallOption) (*MsgUpdateProjectAdminResponse, error) { out := new(MsgUpdateProjectAdminResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateProjectAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateProjectAdmin_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -266,7 +292,7 @@ func (c *msgClient) UpdateProjectAdmin(ctx context.Context, in *MsgUpdateProject func (c *msgClient) UpdateProjectMetadata(ctx context.Context, in *MsgUpdateProjectMetadata, opts ...grpc.CallOption) (*MsgUpdateProjectMetadataResponse, error) { out := new(MsgUpdateProjectMetadataResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateProjectMetadata", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateProjectMetadata_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -275,7 +301,7 @@ func (c *msgClient) UpdateProjectMetadata(ctx context.Context, in *MsgUpdateProj func (c *msgClient) UpdateBatchMetadata(ctx context.Context, in *MsgUpdateBatchMetadata, opts ...grpc.CallOption) (*MsgUpdateBatchMetadataResponse, error) { out := new(MsgUpdateBatchMetadataResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateBatchMetadata", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateBatchMetadata_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -284,7 +310,7 @@ func (c *msgClient) UpdateBatchMetadata(ctx context.Context, in *MsgUpdateBatchM func (c *msgClient) Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.CallOption) (*MsgBridgeResponse, error) { out := new(MsgBridgeResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/Bridge", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Bridge_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -293,7 +319,7 @@ func (c *msgClient) Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.Call func (c *msgClient) BridgeReceive(ctx context.Context, in *MsgBridgeReceive, opts ...grpc.CallOption) (*MsgBridgeReceiveResponse, error) { out := new(MsgBridgeReceiveResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/BridgeReceive", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_BridgeReceive_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -302,7 +328,7 @@ func (c *msgClient) BridgeReceive(ctx context.Context, in *MsgBridgeReceive, opt func (c *msgClient) AddCreditType(ctx context.Context, in *MsgAddCreditType, opts ...grpc.CallOption) (*MsgAddCreditTypeResponse, error) { out := new(MsgAddCreditTypeResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/AddCreditType", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_AddCreditType_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -311,7 +337,7 @@ func (c *msgClient) AddCreditType(ctx context.Context, in *MsgAddCreditType, opt func (c *msgClient) SetClassCreatorAllowlist(ctx context.Context, in *MsgSetClassCreatorAllowlist, opts ...grpc.CallOption) (*MsgSetClassCreatorAllowlistResponse, error) { out := new(MsgSetClassCreatorAllowlistResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/SetClassCreatorAllowlist", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_SetClassCreatorAllowlist_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -320,7 +346,7 @@ func (c *msgClient) SetClassCreatorAllowlist(ctx context.Context, in *MsgSetClas func (c *msgClient) AddClassCreator(ctx context.Context, in *MsgAddClassCreator, opts ...grpc.CallOption) (*MsgAddClassCreatorResponse, error) { out := new(MsgAddClassCreatorResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/AddClassCreator", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_AddClassCreator_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -329,7 +355,7 @@ func (c *msgClient) AddClassCreator(ctx context.Context, in *MsgAddClassCreator, func (c *msgClient) RemoveClassCreator(ctx context.Context, in *MsgRemoveClassCreator, opts ...grpc.CallOption) (*MsgRemoveClassCreatorResponse, error) { out := new(MsgRemoveClassCreatorResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/RemoveClassCreator", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_RemoveClassCreator_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -338,7 +364,7 @@ func (c *msgClient) RemoveClassCreator(ctx context.Context, in *MsgRemoveClassCr func (c *msgClient) UpdateClassFee(ctx context.Context, in *MsgUpdateClassFee, opts ...grpc.CallOption) (*MsgUpdateClassFeeResponse, error) { out := new(MsgUpdateClassFeeResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/UpdateClassFee", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateClassFee_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -347,7 +373,7 @@ func (c *msgClient) UpdateClassFee(ctx context.Context, in *MsgUpdateClassFee, o func (c *msgClient) AddAllowedBridgeChain(ctx context.Context, in *MsgAddAllowedBridgeChain, opts ...grpc.CallOption) (*MsgAddAllowedBridgeChainResponse, error) { out := new(MsgAddAllowedBridgeChainResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/AddAllowedBridgeChain", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_AddAllowedBridgeChain_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -356,7 +382,7 @@ func (c *msgClient) AddAllowedBridgeChain(ctx context.Context, in *MsgAddAllowed func (c *msgClient) RemoveAllowedBridgeChain(ctx context.Context, in *MsgRemoveAllowedBridgeChain, opts ...grpc.CallOption) (*MsgRemoveAllowedBridgeChainResponse, error) { out := new(MsgRemoveAllowedBridgeChainResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1.Msg/RemoveAllowedBridgeChain", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_RemoveAllowedBridgeChain_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -590,7 +616,7 @@ func _Msg_CreateClass_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/CreateClass", + FullMethod: Msg_CreateClass_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CreateClass(ctx, req.(*MsgCreateClass)) @@ -608,7 +634,7 @@ func _Msg_CreateProject_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/CreateProject", + FullMethod: Msg_CreateProject_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CreateProject(ctx, req.(*MsgCreateProject)) @@ -626,7 +652,7 @@ func _Msg_CreateBatch_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/CreateBatch", + FullMethod: Msg_CreateBatch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CreateBatch(ctx, req.(*MsgCreateBatch)) @@ -644,7 +670,7 @@ func _Msg_MintBatchCredits_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/MintBatchCredits", + FullMethod: Msg_MintBatchCredits_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).MintBatchCredits(ctx, req.(*MsgMintBatchCredits)) @@ -662,7 +688,7 @@ func _Msg_SealBatch_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/SealBatch", + FullMethod: Msg_SealBatch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).SealBatch(ctx, req.(*MsgSealBatch)) @@ -680,7 +706,7 @@ func _Msg_Send_Handler(srv interface{}, ctx context.Context, dec func(interface{ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/Send", + FullMethod: Msg_Send_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Send(ctx, req.(*MsgSend)) @@ -698,7 +724,7 @@ func _Msg_Retire_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/Retire", + FullMethod: Msg_Retire_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Retire(ctx, req.(*MsgRetire)) @@ -716,7 +742,7 @@ func _Msg_Cancel_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/Cancel", + FullMethod: Msg_Cancel_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Cancel(ctx, req.(*MsgCancel)) @@ -734,7 +760,7 @@ func _Msg_UpdateClassAdmin_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassAdmin", + FullMethod: Msg_UpdateClassAdmin_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateClassAdmin(ctx, req.(*MsgUpdateClassAdmin)) @@ -752,7 +778,7 @@ func _Msg_UpdateClassIssuers_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassIssuers", + FullMethod: Msg_UpdateClassIssuers_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateClassIssuers(ctx, req.(*MsgUpdateClassIssuers)) @@ -770,7 +796,7 @@ func _Msg_UpdateClassMetadata_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassMetadata", + FullMethod: Msg_UpdateClassMetadata_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateClassMetadata(ctx, req.(*MsgUpdateClassMetadata)) @@ -788,7 +814,7 @@ func _Msg_UpdateProjectAdmin_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateProjectAdmin", + FullMethod: Msg_UpdateProjectAdmin_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateProjectAdmin(ctx, req.(*MsgUpdateProjectAdmin)) @@ -806,7 +832,7 @@ func _Msg_UpdateProjectMetadata_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateProjectMetadata", + FullMethod: Msg_UpdateProjectMetadata_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateProjectMetadata(ctx, req.(*MsgUpdateProjectMetadata)) @@ -824,7 +850,7 @@ func _Msg_UpdateBatchMetadata_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateBatchMetadata", + FullMethod: Msg_UpdateBatchMetadata_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateBatchMetadata(ctx, req.(*MsgUpdateBatchMetadata)) @@ -842,7 +868,7 @@ func _Msg_Bridge_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/Bridge", + FullMethod: Msg_Bridge_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Bridge(ctx, req.(*MsgBridge)) @@ -860,7 +886,7 @@ func _Msg_BridgeReceive_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/BridgeReceive", + FullMethod: Msg_BridgeReceive_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).BridgeReceive(ctx, req.(*MsgBridgeReceive)) @@ -878,7 +904,7 @@ func _Msg_AddCreditType_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/AddCreditType", + FullMethod: Msg_AddCreditType_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AddCreditType(ctx, req.(*MsgAddCreditType)) @@ -896,7 +922,7 @@ func _Msg_SetClassCreatorAllowlist_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/SetClassCreatorAllowlist", + FullMethod: Msg_SetClassCreatorAllowlist_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).SetClassCreatorAllowlist(ctx, req.(*MsgSetClassCreatorAllowlist)) @@ -914,7 +940,7 @@ func _Msg_AddClassCreator_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/AddClassCreator", + FullMethod: Msg_AddClassCreator_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AddClassCreator(ctx, req.(*MsgAddClassCreator)) @@ -932,7 +958,7 @@ func _Msg_RemoveClassCreator_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/RemoveClassCreator", + FullMethod: Msg_RemoveClassCreator_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RemoveClassCreator(ctx, req.(*MsgRemoveClassCreator)) @@ -950,7 +976,7 @@ func _Msg_UpdateClassFee_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/UpdateClassFee", + FullMethod: Msg_UpdateClassFee_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateClassFee(ctx, req.(*MsgUpdateClassFee)) @@ -968,7 +994,7 @@ func _Msg_AddAllowedBridgeChain_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/AddAllowedBridgeChain", + FullMethod: Msg_AddAllowedBridgeChain_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AddAllowedBridgeChain(ctx, req.(*MsgAddAllowedBridgeChain)) @@ -986,7 +1012,7 @@ func _Msg_RemoveAllowedBridgeChain_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1.Msg/RemoveAllowedBridgeChain", + FullMethod: Msg_RemoveAllowedBridgeChain_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RemoveAllowedBridgeChain(ctx, req.(*MsgRemoveAllowedBridgeChain)) diff --git a/api/regen/ecocredit/v1alpha1/query_grpc.pb.go b/api/regen/ecocredit/v1alpha1/query_grpc.pb.go index f450d1b608..a3d04ab341 100644 --- a/api/regen/ecocredit/v1alpha1/query_grpc.pb.go +++ b/api/regen/ecocredit/v1alpha1/query_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/ecocredit/v1alpha1/query.proto @@ -18,6 +18,17 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Query_Classes_FullMethodName = "/regen.ecocredit.v1alpha1.Query/Classes" + Query_ClassInfo_FullMethodName = "/regen.ecocredit.v1alpha1.Query/ClassInfo" + Query_Batches_FullMethodName = "/regen.ecocredit.v1alpha1.Query/Batches" + Query_BatchInfo_FullMethodName = "/regen.ecocredit.v1alpha1.Query/BatchInfo" + Query_Balance_FullMethodName = "/regen.ecocredit.v1alpha1.Query/Balance" + Query_Supply_FullMethodName = "/regen.ecocredit.v1alpha1.Query/Supply" + Query_CreditTypes_FullMethodName = "/regen.ecocredit.v1alpha1.Query/CreditTypes" + Query_Params_FullMethodName = "/regen.ecocredit.v1alpha1.Query/Params" +) + // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -52,7 +63,7 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { func (c *queryClient) Classes(ctx context.Context, in *QueryClassesRequest, opts ...grpc.CallOption) (*QueryClassesResponse, error) { out := new(QueryClassesResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Query/Classes", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Classes_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -61,7 +72,7 @@ func (c *queryClient) Classes(ctx context.Context, in *QueryClassesRequest, opts func (c *queryClient) ClassInfo(ctx context.Context, in *QueryClassInfoRequest, opts ...grpc.CallOption) (*QueryClassInfoResponse, error) { out := new(QueryClassInfoResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Query/ClassInfo", in, out, opts...) + err := c.cc.Invoke(ctx, Query_ClassInfo_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -70,7 +81,7 @@ func (c *queryClient) ClassInfo(ctx context.Context, in *QueryClassInfoRequest, func (c *queryClient) Batches(ctx context.Context, in *QueryBatchesRequest, opts ...grpc.CallOption) (*QueryBatchesResponse, error) { out := new(QueryBatchesResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Query/Batches", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Batches_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -79,7 +90,7 @@ func (c *queryClient) Batches(ctx context.Context, in *QueryBatchesRequest, opts func (c *queryClient) BatchInfo(ctx context.Context, in *QueryBatchInfoRequest, opts ...grpc.CallOption) (*QueryBatchInfoResponse, error) { out := new(QueryBatchInfoResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Query/BatchInfo", in, out, opts...) + err := c.cc.Invoke(ctx, Query_BatchInfo_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -88,7 +99,7 @@ func (c *queryClient) BatchInfo(ctx context.Context, in *QueryBatchInfoRequest, func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { out := new(QueryBalanceResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Query/Balance", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Balance_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -97,7 +108,7 @@ func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts func (c *queryClient) Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error) { out := new(QuerySupplyResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Query/Supply", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Supply_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -106,7 +117,7 @@ func (c *queryClient) Supply(ctx context.Context, in *QuerySupplyRequest, opts . func (c *queryClient) CreditTypes(ctx context.Context, in *QueryCreditTypesRequest, opts ...grpc.CallOption) (*QueryCreditTypesResponse, error) { out := new(QueryCreditTypesResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Query/CreditTypes", in, out, opts...) + err := c.cc.Invoke(ctx, Query_CreditTypes_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -115,7 +126,7 @@ func (c *queryClient) CreditTypes(ctx context.Context, in *QueryCreditTypesReque func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -198,7 +209,7 @@ func _Query_Classes_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Query/Classes", + FullMethod: Query_Classes_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Classes(ctx, req.(*QueryClassesRequest)) @@ -216,7 +227,7 @@ func _Query_ClassInfo_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Query/ClassInfo", + FullMethod: Query_ClassInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ClassInfo(ctx, req.(*QueryClassInfoRequest)) @@ -234,7 +245,7 @@ func _Query_Batches_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Query/Batches", + FullMethod: Query_Batches_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Batches(ctx, req.(*QueryBatchesRequest)) @@ -252,7 +263,7 @@ func _Query_BatchInfo_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Query/BatchInfo", + FullMethod: Query_BatchInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BatchInfo(ctx, req.(*QueryBatchInfoRequest)) @@ -270,7 +281,7 @@ func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Query/Balance", + FullMethod: Query_Balance_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) @@ -288,7 +299,7 @@ func _Query_Supply_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Query/Supply", + FullMethod: Query_Supply_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Supply(ctx, req.(*QuerySupplyRequest)) @@ -306,7 +317,7 @@ func _Query_CreditTypes_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Query/CreditTypes", + FullMethod: Query_CreditTypes_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).CreditTypes(ctx, req.(*QueryCreditTypesRequest)) @@ -324,7 +335,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Query/Params", + FullMethod: Query_Params_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) diff --git a/api/regen/ecocredit/v1alpha1/tx_grpc.pb.go b/api/regen/ecocredit/v1alpha1/tx_grpc.pb.go index 5138b45ff6..ae82fbe87d 100644 --- a/api/regen/ecocredit/v1alpha1/tx_grpc.pb.go +++ b/api/regen/ecocredit/v1alpha1/tx_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/ecocredit/v1alpha1/tx.proto @@ -18,6 +18,17 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Msg_CreateClass_FullMethodName = "/regen.ecocredit.v1alpha1.Msg/CreateClass" + Msg_CreateBatch_FullMethodName = "/regen.ecocredit.v1alpha1.Msg/CreateBatch" + Msg_Send_FullMethodName = "/regen.ecocredit.v1alpha1.Msg/Send" + Msg_Retire_FullMethodName = "/regen.ecocredit.v1alpha1.Msg/Retire" + Msg_Cancel_FullMethodName = "/regen.ecocredit.v1alpha1.Msg/Cancel" + Msg_UpdateClassAdmin_FullMethodName = "/regen.ecocredit.v1alpha1.Msg/UpdateClassAdmin" + Msg_UpdateClassIssuers_FullMethodName = "/regen.ecocredit.v1alpha1.Msg/UpdateClassIssuers" + Msg_UpdateClassMetadata_FullMethodName = "/regen.ecocredit.v1alpha1.Msg/UpdateClassMetadata" +) + // MsgClient is the client API for Msg service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -56,7 +67,7 @@ func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { func (c *msgClient) CreateClass(ctx context.Context, in *MsgCreateClass, opts ...grpc.CallOption) (*MsgCreateClassResponse, error) { out := new(MsgCreateClassResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Msg/CreateClass", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_CreateClass_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -65,7 +76,7 @@ func (c *msgClient) CreateClass(ctx context.Context, in *MsgCreateClass, opts .. func (c *msgClient) CreateBatch(ctx context.Context, in *MsgCreateBatch, opts ...grpc.CallOption) (*MsgCreateBatchResponse, error) { out := new(MsgCreateBatchResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Msg/CreateBatch", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_CreateBatch_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -74,7 +85,7 @@ func (c *msgClient) CreateBatch(ctx context.Context, in *MsgCreateBatch, opts .. func (c *msgClient) Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) { out := new(MsgSendResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Msg/Send", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Send_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -83,7 +94,7 @@ func (c *msgClient) Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOpti func (c *msgClient) Retire(ctx context.Context, in *MsgRetire, opts ...grpc.CallOption) (*MsgRetireResponse, error) { out := new(MsgRetireResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Msg/Retire", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Retire_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -92,7 +103,7 @@ func (c *msgClient) Retire(ctx context.Context, in *MsgRetire, opts ...grpc.Call func (c *msgClient) Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.CallOption) (*MsgCancelResponse, error) { out := new(MsgCancelResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Msg/Cancel", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_Cancel_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -101,7 +112,7 @@ func (c *msgClient) Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.Call func (c *msgClient) UpdateClassAdmin(ctx context.Context, in *MsgUpdateClassAdmin, opts ...grpc.CallOption) (*MsgUpdateClassAdminResponse, error) { out := new(MsgUpdateClassAdminResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Msg/UpdateClassAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateClassAdmin_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -110,7 +121,7 @@ func (c *msgClient) UpdateClassAdmin(ctx context.Context, in *MsgUpdateClassAdmi func (c *msgClient) UpdateClassIssuers(ctx context.Context, in *MsgUpdateClassIssuers, opts ...grpc.CallOption) (*MsgUpdateClassIssuersResponse, error) { out := new(MsgUpdateClassIssuersResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Msg/UpdateClassIssuers", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateClassIssuers_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -119,7 +130,7 @@ func (c *msgClient) UpdateClassIssuers(ctx context.Context, in *MsgUpdateClassIs func (c *msgClient) UpdateClassMetadata(ctx context.Context, in *MsgUpdateClassMetadata, opts ...grpc.CallOption) (*MsgUpdateClassMetadataResponse, error) { out := new(MsgUpdateClassMetadataResponse) - err := c.cc.Invoke(ctx, "/regen.ecocredit.v1alpha1.Msg/UpdateClassMetadata", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateClassMetadata_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -206,7 +217,7 @@ func _Msg_CreateClass_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Msg/CreateClass", + FullMethod: Msg_CreateClass_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CreateClass(ctx, req.(*MsgCreateClass)) @@ -224,7 +235,7 @@ func _Msg_CreateBatch_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Msg/CreateBatch", + FullMethod: Msg_CreateBatch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CreateBatch(ctx, req.(*MsgCreateBatch)) @@ -242,7 +253,7 @@ func _Msg_Send_Handler(srv interface{}, ctx context.Context, dec func(interface{ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Msg/Send", + FullMethod: Msg_Send_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Send(ctx, req.(*MsgSend)) @@ -260,7 +271,7 @@ func _Msg_Retire_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Msg/Retire", + FullMethod: Msg_Retire_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Retire(ctx, req.(*MsgRetire)) @@ -278,7 +289,7 @@ func _Msg_Cancel_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Msg/Cancel", + FullMethod: Msg_Cancel_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Cancel(ctx, req.(*MsgCancel)) @@ -296,7 +307,7 @@ func _Msg_UpdateClassAdmin_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Msg/UpdateClassAdmin", + FullMethod: Msg_UpdateClassAdmin_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateClassAdmin(ctx, req.(*MsgUpdateClassAdmin)) @@ -314,7 +325,7 @@ func _Msg_UpdateClassIssuers_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Msg/UpdateClassIssuers", + FullMethod: Msg_UpdateClassIssuers_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateClassIssuers(ctx, req.(*MsgUpdateClassIssuers)) @@ -332,7 +343,7 @@ func _Msg_UpdateClassMetadata_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.ecocredit.v1alpha1.Msg/UpdateClassMetadata", + FullMethod: Msg_UpdateClassMetadata_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateClassMetadata(ctx, req.(*MsgUpdateClassMetadata)) diff --git a/api/regen/intertx/v1/query_grpc.pb.go b/api/regen/intertx/v1/query_grpc.pb.go index 2efc191920..3114514439 100644 --- a/api/regen/intertx/v1/query_grpc.pb.go +++ b/api/regen/intertx/v1/query_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/intertx/v1/query.proto @@ -18,6 +18,10 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Query_InterchainAccount_FullMethodName = "/regen.intertx.v1.Query/InterchainAccount" +) + // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -37,7 +41,7 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { func (c *queryClient) InterchainAccount(ctx context.Context, in *QueryInterchainAccountRequest, opts ...grpc.CallOption) (*QueryInterchainAccountResponse, error) { out := new(QueryInterchainAccountResponse) - err := c.cc.Invoke(ctx, "/regen.intertx.v1.Query/InterchainAccount", in, out, opts...) + err := c.cc.Invoke(ctx, Query_InterchainAccount_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -84,7 +88,7 @@ func _Query_InterchainAccount_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.intertx.v1.Query/InterchainAccount", + FullMethod: Query_InterchainAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).InterchainAccount(ctx, req.(*QueryInterchainAccountRequest)) diff --git a/api/regen/intertx/v1/tx_grpc.pb.go b/api/regen/intertx/v1/tx_grpc.pb.go index 5a89b4f92d..0c1ae34068 100644 --- a/api/regen/intertx/v1/tx_grpc.pb.go +++ b/api/regen/intertx/v1/tx_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: regen/intertx/v1/tx.proto @@ -18,6 +18,11 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Msg_RegisterAccount_FullMethodName = "/regen.intertx.v1.Msg/RegisterAccount" + Msg_SubmitTx_FullMethodName = "/regen.intertx.v1.Msg/SubmitTx" +) + // MsgClient is the client API for Msg service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -38,7 +43,7 @@ func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { func (c *msgClient) RegisterAccount(ctx context.Context, in *MsgRegisterAccount, opts ...grpc.CallOption) (*MsgRegisterAccountResponse, error) { out := new(MsgRegisterAccountResponse) - err := c.cc.Invoke(ctx, "/regen.intertx.v1.Msg/RegisterAccount", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_RegisterAccount_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -47,7 +52,7 @@ func (c *msgClient) RegisterAccount(ctx context.Context, in *MsgRegisterAccount, func (c *msgClient) SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc.CallOption) (*MsgSubmitTxResponse, error) { out := new(MsgSubmitTxResponse) - err := c.cc.Invoke(ctx, "/regen.intertx.v1.Msg/SubmitTx", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_SubmitTx_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -98,7 +103,7 @@ func _Msg_RegisterAccount_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.intertx.v1.Msg/RegisterAccount", + FullMethod: Msg_RegisterAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RegisterAccount(ctx, req.(*MsgRegisterAccount)) @@ -116,7 +121,7 @@ func _Msg_SubmitTx_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.intertx.v1.Msg/SubmitTx", + FullMethod: Msg_SubmitTx_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).SubmitTx(ctx, req.(*MsgSubmitTx)) diff --git a/proto/regen/ecocredit/basket/v1/events.proto b/proto/regen/ecocredit/basket/v1/events.proto index 7690752724..e79e94688d 100644 --- a/proto/regen/ecocredit/basket/v1/events.proto +++ b/proto/regen/ecocredit/basket/v1/events.proto @@ -74,3 +74,13 @@ message EventUpdateCurator { // denom is the basket denom. string denom = 1; } + +// EventUpdateDateCriteria is an event emitted when the basket date criteria is +// updated. +// +// Since Revision 3 +message EventUpdateDateCriteria { + + // denom is the basket denom. + string denom = 1; +} diff --git a/proto/regen/ecocredit/basket/v1/tx.proto b/proto/regen/ecocredit/basket/v1/tx.proto index a663c74155..cb700a1755 100644 --- a/proto/regen/ecocredit/basket/v1/tx.proto +++ b/proto/regen/ecocredit/basket/v1/tx.proto @@ -56,6 +56,14 @@ service Msg { // // Since Revision 2 rpc UpdateCurator(MsgUpdateCurator) returns (MsgUpdateCuratorResponse); + + // UpdateDateCriteria is a governance method that allows for updating the date + // criteria of a basket. Updating basket date criteria could affect the value + // of basket tokens and therefore requires a network-wide governance process. + // + // Since Revision 3 + rpc UpdateDateCriteria(MsgUpdateDateCriteria) + returns (MsgUpdateDateCriteriaResponse); } // MsgCreateBasket is the Msg/CreateBasket request type. @@ -100,7 +108,7 @@ message MsgCreate { repeated string allowed_classes = 7; // date_criteria is the date criteria for batches admitted to the basket. - // At most, only one of the fields in the date_criteria should be set. + // At most, only one of the date criteria fields can be set. DateCriteria date_criteria = 8; // fee is the basket creation fee. A fee is not required if no fee exists @@ -237,3 +245,25 @@ message MsgUpdateCurator { // // Since Revision 2 message MsgUpdateCuratorResponse {} + +// MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. +// +// Since Revision 3 +message MsgUpdateDateCriteria { + option (cosmos.msg.v1.signer) = "curator"; + + // authority is the address of the governance account. + string authority = 1; + + // denom is the unique identifier of the basket. + string denom = 2; + + // new_date_criteria is the new date criteria for batches admitted to the + // basket. At most, only one of the date criteria fields can be set. + DateCriteria new_date_criteria = 8; +} + +// MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. +// +// Since Revision 3 +message MsgUpdateDateCriteriaResponse {} diff --git a/x/ecocredit/basket/keeper/features/msg_update_date_criteria.feature b/x/ecocredit/basket/keeper/features/msg_update_date_criteria.feature new file mode 100644 index 0000000000..f6dffdabac --- /dev/null +++ b/x/ecocredit/basket/keeper/features/msg_update_date_criteria.feature @@ -0,0 +1,174 @@ +Feature: Msg/UpdateDateCriteria + + Basket date criteria can be updated: + - when the basket exists + - when the authority is the governance account + - when the basket date criteria is empty + - when the basket date criteria includes minimum start date + - when the basket date criteria includes start date window + - when the basket date criteria includes years in the past + + Rule: The basket must exist + + Scenario: the basket does not exist + Given the authority address "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68" + When alice attempts to update date criteria with message + """ + { + "authority": "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "years_in_the_past": 10 + } + } + """ + Then expect the error "basket with denom eco.uC.NCT does not exist: not found" + + Scenario: the basket exists + Given the authority address "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68" + And a basket with denom "eco.uC.NCT" + When alice attempts to update date criteria with message + """ + { + "authority": "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "years_in_the_past": 10 + } + } + """ + Then expect no error + + Rule: The authority address is the governance account + + Scenario: the authority is not the governance account + Given the authority address "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68" + And a basket with denom "eco.uC.NCT" + When alice attempts to update date criteria with message + """ + { + "authority": "regen1fua8speyxgempgy06gpfs0p4z32zznkqakm57s", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "years_in_the_past": 10 + } + } + """ + Then expect the error "invalid authority: expected regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68, got regen1fua8speyxgempgy06gpfs0p4z32zznkqakm57s: expected gov account as only signer for proposal message" + + Scenario: the authority is the governance account + Given the authority address "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68" + And a basket with denom "eco.uC.NCT" + When alice attempts to update date criteria with message + """ + { + "authority": "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "years_in_the_past": 10 + } + } + """ + Then expect no error + + Rule: The basket date criteria may be empty + + Scenario: new date criteria empty + Given the authority address "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68" + And a basket with denom "eco.uC.NCT" + When alice attempts to update date criteria with message + """ + { + "authority": "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68", + "denom": "eco.uC.NCT" + } + """ + Then expect no date criteria + + Rule: The basket date criteria may include minimum start date + + Scenario: new date criteria minimum start date + Given the authority address "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68" + And a basket with denom "eco.uC.NCT" + When alice attempts to update date criteria with message + """ + { + "authority": "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "min_start_date": "2020-01-01T00:00:00Z" + } + } + """ + Then expect date criteria + """ + { + "min_start_date": "2020-01-01T00:00:00Z" + } + """ + + Rule: The basket date criteria may include start date window + + Scenario: new date criteria start date window + Given the authority address "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68" + And a basket with denom "eco.uC.NCT" + When alice attempts to update date criteria with message + """ + { + "authority": "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "start_date_window": "43800h" + } + } + """ + Then expect date criteria + """ + { + "start_date_window": "43800h" + } + """ + + Rule: The basket date criteria may include years in the past + + Scenario: new date criteria years in the past + Given the authority address "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68" + And a basket with denom "eco.uC.NCT" + When alice attempts to update date criteria with message + """ + { + "authority": "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "years_in_the_past": 10 + } + } + """ + Then expect date criteria + """ + { + "years_in_the_past": 10 + } + """ + + Rule: Event is emitted + + Scenario: EventUpdateDateCriteria is emitted + Given the authority address "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68" + And a basket with denom "eco.uC.NCT" + When alice attempts to update date criteria with message + """ + { + "authority": "regen1nzh226hxrsvf4k69sa8v0nfuzx5vgwkczk8j68", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "years_in_the_past": 10 + } + } + """ + Then expect event with properties + """ + { + "denom": "eco.uC.NCT" + } + """ diff --git a/x/ecocredit/basket/keeper/keeper_test.go b/x/ecocredit/basket/keeper/keeper_test.go index 833ad69e8d..ffb19eb964 100644 --- a/x/ecocredit/basket/keeper/keeper_test.go +++ b/x/ecocredit/basket/keeper/keeper_test.go @@ -75,8 +75,6 @@ func setupBase(t gocuke.TestingT) *baseSuite { assert.NilError(t, err) s.k = NewKeeper(s.stateStore, s.baseStore, s.bankKeeper, moduleAddress, authority) - s.baseStore, err = baseapi.NewStateStore(s.db) - assert.NilError(t, err) // add test addresses _, _, addr1 := testdata.KeyTestPubAddr() diff --git a/x/ecocredit/basket/keeper/msg_put_test.go b/x/ecocredit/basket/keeper/msg_put_test.go index c70a65e139..1bdcf68a31 100644 --- a/x/ecocredit/basket/keeper/msg_put_test.go +++ b/x/ecocredit/basket/keeper/msg_put_test.go @@ -49,18 +49,18 @@ func (s *putSuite) Before(t gocuke.TestingT) { s.baseSuite = setupBase(t) s.alice = s.addrs[0] s.aliceTokenBalance = sdk.Coin{ - Denom: "eco.uC.NCT", + Denom: testBasketDenom, Amount: sdkMath.NewInt(100), } s.basketTokenSupply = sdk.Coin{ - Denom: "eco.uC.NCT", + Denom: testBasketDenom, Amount: sdkMath.NewInt(100), } s.classID = testClassID s.creditTypeAbbrev = "C" s.creditTypePrecision = 6 s.batchDenom = "C01-001-20200101-20210101-001" - s.basketDenom = "eco.uC.NCT" + s.basketDenom = testBasketDenom s.tradableCredits = "100" } diff --git a/x/ecocredit/basket/keeper/msg_update_date_criteria.go b/x/ecocredit/basket/keeper/msg_update_date_criteria.go new file mode 100644 index 0000000000..031a96a462 --- /dev/null +++ b/x/ecocredit/basket/keeper/msg_update_date_criteria.go @@ -0,0 +1,37 @@ +package keeper + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/orm/types/ormerrors" + sdk "github.com/cosmos/cosmos-sdk/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + types "github.com/regen-network/regen-ledger/x/ecocredit/v3/basket/types/v1" +) + +// UpdateDateCriteria is an RPC to handle basket.MsgUpdateDateCriteria +func (k Keeper) UpdateDateCriteria(ctx context.Context, msg *types.MsgUpdateDateCriteria) (*types.MsgUpdateDateCriteriaResponse, error) { + sdkCtx := sdk.UnwrapSDKContext(ctx) + + if k.authority.String() != msg.Authority { + return nil, govtypes.ErrInvalidSigner.Wrapf("invalid authority: expected %s, got %s", k.authority, msg.Authority) + } + + basket, err := k.stateStore.BasketTable().GetByBasketDenom(ctx, msg.Denom) + if err != nil { + return nil, ormerrors.NotFound.Wrapf("basket with denom %s does not exist", msg.Denom) + } + + basket.DateCriteria = msg.NewDateCriteria.ToAPI() + + err = k.stateStore.BasketTable().Update(ctx, basket) + if err != nil { + return nil, err + } + + err = sdkCtx.EventManager().EmitTypedEvent(&types.EventUpdateDateCriteria{ + Denom: msg.Denom, + }) + + return &types.MsgUpdateDateCriteriaResponse{}, err +} diff --git a/x/ecocredit/basket/keeper/msg_update_date_criteria_test.go b/x/ecocredit/basket/keeper/msg_update_date_criteria_test.go new file mode 100644 index 0000000000..e03075b6ba --- /dev/null +++ b/x/ecocredit/basket/keeper/msg_update_date_criteria_test.go @@ -0,0 +1,96 @@ +package keeper + +import ( + "testing" + + "github.com/gogo/protobuf/jsonpb" + "github.com/regen-network/gocuke" + "github.com/stretchr/testify/require" + + sdk "github.com/cosmos/cosmos-sdk/types" + + api "github.com/regen-network/regen-ledger/api/v2/regen/ecocredit/basket/v1" + "github.com/regen-network/regen-ledger/types/v2/testutil" + types "github.com/regen-network/regen-ledger/x/ecocredit/v3/basket/types/v1" +) + +type updateDateCriteriaSuite struct { + *baseSuite + authority sdk.AccAddress + basketDenom string + res *types.MsgUpdateDateCriteriaResponse + err error +} + +func TestUpdateDateCriteria(t *testing.T) { + gocuke.NewRunner(t, &updateDateCriteriaSuite{}).Path("./features/msg_update_date_criteria.feature").Run() +} + +func (s *updateDateCriteriaSuite) Before(t gocuke.TestingT) { + s.baseSuite = setupBase(t) + s.authority = s.addrs[0] + s.basketDenom = "eco.uC.NCT" +} + +func (s *updateDateCriteriaSuite) TheAuthorityAddress(a string) { + addr, err := sdk.AccAddressFromBech32(a) + require.NoError(s.t, err) + s.authority = addr +} + +func (s *updateDateCriteriaSuite) ABasketWithDenom(a string) { + err := s.stateStore.BasketTable().Insert(s.ctx, &api.Basket{ + BasketDenom: a, + }) + require.NoError(s.t, err) +} + +func (s *updateDateCriteriaSuite) AliceAttemptsToUpdateDateCriteriaWithMessage(a gocuke.DocString) { + var msg types.MsgUpdateDateCriteria + err := jsonpb.UnmarshalString(a.Content, &msg) + require.NoError(s.t, err) + + s.res, s.err = s.k.UpdateDateCriteria(s.ctx, &msg) +} + +func (s *updateDateCriteriaSuite) ExpectNoError() { + require.NoError(s.t, s.err) +} + +func (s *updateDateCriteriaSuite) ExpectTheError(a string) { + require.EqualError(s.t, s.err, a) +} + +func (s *updateDateCriteriaSuite) ExpectNoDateCriteria() { + dc, err := s.k.Basket(s.ctx, &types.QueryBasketRequest{ + BasketDenom: s.basketDenom, + }) + require.NoError(s.t, err) + + require.Equal(s.t, (*types.DateCriteria)(nil), dc.BasketInfo.DateCriteria) +} + +func (s *updateDateCriteriaSuite) ExpectDateCriteria(a gocuke.DocString) { + var expected types.DateCriteria + err := jsonpb.UnmarshalString(a.Content, &expected) + require.NoError(s.t, err) + + dc, err := s.k.Basket(s.ctx, &types.QueryBasketRequest{ + BasketDenom: s.basketDenom, + }) + require.NoError(s.t, err) + + require.Equal(s.t, &expected, dc.BasketInfo.DateCriteria) +} + +func (s *updateDateCriteriaSuite) ExpectEventWithProperties(a gocuke.DocString) { + var event types.EventUpdateDateCriteria + err := jsonpb.UnmarshalString(a.Content, &event) + require.NoError(s.t, err) + + sdkEvent, found := testutil.GetEvent(&event, s.sdkCtx.EventManager().Events()) + require.True(s.t, found) + + err = testutil.MatchEvent(&event, sdkEvent) + require.NoError(s.t, err) +} diff --git a/x/ecocredit/basket/types/v1/codec.go b/x/ecocredit/basket/types/v1/codec.go index 52c918eb42..380fe607ac 100644 --- a/x/ecocredit/basket/types/v1/codec.go +++ b/x/ecocredit/basket/types/v1/codec.go @@ -21,6 +21,7 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgTake{}, "regen.basket/MsgTake", nil) cdc.RegisterConcrete(&MsgUpdateCurator{}, "regen.basket/MsgUpdateCurator", nil) cdc.RegisterConcrete(&MsgUpdateBasketFee{}, "regen.basket/MsgUpdateBasketFee", nil) + cdc.RegisterConcrete(&MsgUpdateDateCriteria{}, "regen.basket/MsgUpdateDateCriteria", nil) } var ( diff --git a/x/ecocredit/basket/types/v1/events.pb.go b/x/ecocredit/basket/types/v1/events.pb.go index 5dda504e8b..c544e022b4 100644 --- a/x/ecocredit/basket/types/v1/events.pb.go +++ b/x/ecocredit/basket/types/v1/events.pb.go @@ -294,11 +294,61 @@ func (m *EventUpdateCurator) GetDenom() string { return "" } +// EventUpdateDateCriteria is an event emitted when the basket date criteria is +// updated. +// +// Since Revision 3 +type EventUpdateDateCriteria struct { + // denom is the basket denom. + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (m *EventUpdateDateCriteria) Reset() { *m = EventUpdateDateCriteria{} } +func (m *EventUpdateDateCriteria) String() string { return proto.CompactTextString(m) } +func (*EventUpdateDateCriteria) ProtoMessage() {} +func (*EventUpdateDateCriteria) Descriptor() ([]byte, []int) { + return fileDescriptor_bc7fc2fbcbd93cbc, []int{4} +} +func (m *EventUpdateDateCriteria) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventUpdateDateCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventUpdateDateCriteria.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 *EventUpdateDateCriteria) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUpdateDateCriteria.Merge(m, src) +} +func (m *EventUpdateDateCriteria) XXX_Size() int { + return m.Size() +} +func (m *EventUpdateDateCriteria) XXX_DiscardUnknown() { + xxx_messageInfo_EventUpdateDateCriteria.DiscardUnknown(m) +} + +var xxx_messageInfo_EventUpdateDateCriteria proto.InternalMessageInfo + +func (m *EventUpdateDateCriteria) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + func init() { proto.RegisterType((*EventCreate)(nil), "regen.ecocredit.basket.v1.EventCreate") proto.RegisterType((*EventPut)(nil), "regen.ecocredit.basket.v1.EventPut") proto.RegisterType((*EventTake)(nil), "regen.ecocredit.basket.v1.EventTake") proto.RegisterType((*EventUpdateCurator)(nil), "regen.ecocredit.basket.v1.EventUpdateCurator") + proto.RegisterType((*EventUpdateDateCriteria)(nil), "regen.ecocredit.basket.v1.EventUpdateDateCriteria") } func init() { @@ -306,28 +356,29 @@ func init() { } var fileDescriptor_bc7fc2fbcbd93cbc = []byte{ - // 325 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x92, 0x41, 0x4e, 0x02, 0x31, - 0x14, 0x86, 0x29, 0x28, 0x48, 0x71, 0xd5, 0xb8, 0x18, 0x89, 0x69, 0x90, 0x44, 0x25, 0x26, 0xb6, - 0x41, 0x4f, 0x20, 0xc8, 0xd6, 0x18, 0xa2, 0x1b, 0x5d, 0x98, 0x32, 0xf3, 0x82, 0x04, 0x69, 0x49, - 0x79, 0x33, 0xe8, 0x2d, 0x3c, 0x85, 0x5e, 0xc5, 0x25, 0x4b, 0x97, 0x06, 0x2e, 0x62, 0xa6, 0x1d, - 0x89, 0xc9, 0x84, 0xbd, 0xbb, 0xbe, 0xbf, 0x7f, 0xff, 0xf7, 0xb5, 0x7d, 0xf4, 0xd8, 0xc2, 0x10, - 0xb4, 0x84, 0xd0, 0x84, 0x16, 0xa2, 0x11, 0xca, 0x81, 0x9a, 0x8d, 0x01, 0x65, 0xd2, 0x96, 0x90, - 0x80, 0xc6, 0x99, 0x98, 0x5a, 0x83, 0x86, 0xed, 0x3b, 0x9f, 0x58, 0xfb, 0x84, 0xf7, 0x89, 0xa4, - 0x5d, 0x3f, 0xda, 0x1c, 0x81, 0xaf, 0x53, 0xc8, 0x12, 0x9a, 0xd7, 0xb4, 0xd6, 0x4b, 0x13, 0xbb, - 0x16, 0x14, 0x02, 0x3b, 0xa4, 0xbb, 0xde, 0xf7, 0x18, 0x81, 0x36, 0x93, 0x80, 0x34, 0x48, 0xab, - 0xda, 0xaf, 0x79, 0xed, 0x2a, 0x95, 0xd8, 0x01, 0xad, 0x84, 0xb1, 0x55, 0x68, 0x6c, 0x50, 0x4c, - 0x77, 0x3b, 0xc5, 0x80, 0xf4, 0x7f, 0xa5, 0xe6, 0x3b, 0xa1, 0x3b, 0x2e, 0xf0, 0x26, 0x46, 0xb6, - 0x47, 0xb7, 0xcd, 0x5c, 0x83, 0xcd, 0x62, 0x7c, 0x91, 0xeb, 0x51, 0xcc, 0xf7, 0xe8, 0xd1, 0x8a, - 0xa7, 0x9e, 0x05, 0xa5, 0x46, 0xa9, 0x55, 0x3b, 0x3f, 0x11, 0x1b, 0x6f, 0x2a, 0x3a, 0x6e, 0xd5, - 0x75, 0x72, 0x06, 0xe3, 0xcf, 0xb2, 0x3a, 0x2d, 0xab, 0x89, 0x89, 0x35, 0x06, 0x5b, 0x6b, 0xd2, - 0x4c, 0x69, 0x7e, 0x10, 0x5a, 0x75, 0xa0, 0xb7, 0x6a, 0x0c, 0xff, 0x9a, 0xf4, 0x94, 0x32, 0x07, - 0x7a, 0x37, 0x8d, 0x14, 0x42, 0xd7, 0x3f, 0x74, 0x4a, 0xfc, 0xf7, 0x8b, 0x7c, 0xd1, 0x79, 0xf8, - 0x5c, 0x72, 0xb2, 0x58, 0x72, 0xf2, 0xbd, 0xe4, 0xe4, 0x6d, 0xc5, 0x0b, 0x8b, 0x15, 0x2f, 0x7c, - 0xad, 0x78, 0xe1, 0xfe, 0x72, 0x38, 0xc2, 0xa7, 0x78, 0x20, 0x42, 0x33, 0x91, 0x8e, 0xf0, 0x4c, - 0x03, 0xce, 0x8d, 0x1d, 0x67, 0xd5, 0x33, 0x44, 0x43, 0xb0, 0xf2, 0x25, 0x3f, 0x31, 0x6e, 0x5c, - 0x64, 0xd2, 0x1e, 0x94, 0xdd, 0xc8, 0x5c, 0xfc, 0x04, 0x00, 0x00, 0xff, 0xff, 0x65, 0x80, 0xa0, - 0x00, 0x9e, 0x02, 0x00, 0x00, + // 341 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x92, 0xcf, 0x4e, 0xc2, 0x40, + 0x10, 0xc6, 0x59, 0x50, 0x90, 0xc5, 0x53, 0x63, 0x62, 0x25, 0xa6, 0xc1, 0x26, 0x2a, 0x31, 0x71, + 0x37, 0xe8, 0x13, 0xc8, 0x9f, 0xab, 0x31, 0x44, 0x2f, 0x7a, 0x30, 0x4b, 0x3b, 0xc1, 0x06, 0xd9, + 0x25, 0xcb, 0xb4, 0xe8, 0x5b, 0xf8, 0x14, 0xfa, 0x2a, 0x1e, 0x39, 0x7a, 0x34, 0xf0, 0x22, 0xa6, + 0xbb, 0x95, 0x90, 0x54, 0xee, 0xde, 0x3a, 0x5f, 0xbf, 0xf9, 0xe6, 0x37, 0xed, 0xd0, 0x13, 0x0d, + 0x43, 0x90, 0x1c, 0x02, 0x15, 0x68, 0x08, 0x23, 0xe4, 0x03, 0x31, 0x1d, 0x01, 0xf2, 0xa4, 0xc5, + 0x21, 0x01, 0x89, 0x53, 0x36, 0xd1, 0x0a, 0x95, 0x73, 0x60, 0x7c, 0x6c, 0xe5, 0x63, 0xd6, 0xc7, + 0x92, 0x56, 0xfd, 0x78, 0x73, 0x04, 0xbe, 0x4e, 0x20, 0x4b, 0xf0, 0xaf, 0x69, 0xad, 0x97, 0x26, + 0x76, 0x34, 0x08, 0x04, 0xe7, 0x88, 0xee, 0x5a, 0xdf, 0x63, 0x08, 0x52, 0x8d, 0x5d, 0xd2, 0x20, + 0xcd, 0x6a, 0xbf, 0x66, 0xb5, 0x6e, 0x2a, 0x39, 0x87, 0xb4, 0x12, 0xc4, 0x5a, 0xa0, 0xd2, 0x6e, + 0x31, 0x7d, 0xdb, 0x2e, 0xba, 0xa4, 0xff, 0x2b, 0xf9, 0xef, 0x84, 0xee, 0x98, 0xc0, 0x9b, 0x18, + 0x9d, 0x3d, 0xba, 0xad, 0x66, 0x12, 0x74, 0x16, 0x63, 0x8b, 0xdc, 0x8c, 0x62, 0x7e, 0x46, 0x8f, + 0x56, 0x2c, 0xf5, 0xd4, 0x2d, 0x35, 0x4a, 0xcd, 0xda, 0xc5, 0x29, 0xdb, 0xb8, 0x29, 0x6b, 0x9b, + 0xa7, 0x8e, 0x91, 0x33, 0x18, 0xdb, 0xeb, 0xd4, 0x69, 0x59, 0x8c, 0x55, 0x2c, 0xd1, 0xdd, 0x5a, + 0x91, 0x66, 0x8a, 0xff, 0x41, 0x68, 0xd5, 0x80, 0xde, 0x8a, 0x11, 0xfc, 0x6b, 0xd2, 0x33, 0xea, + 0x18, 0xd0, 0xbb, 0x49, 0x28, 0x10, 0x3a, 0xf6, 0x43, 0xa7, 0xc4, 0xeb, 0xbf, 0xc8, 0x16, 0x3e, + 0xa7, 0xfb, 0x6b, 0xde, 0x6e, 0xea, 0xd7, 0x11, 0x82, 0x8e, 0xc4, 0xdf, 0x0d, 0xed, 0x87, 0xcf, + 0x85, 0x47, 0xe6, 0x0b, 0x8f, 0x7c, 0x2f, 0x3c, 0xf2, 0xb6, 0xf4, 0x0a, 0xf3, 0xa5, 0x57, 0xf8, + 0x5a, 0x7a, 0x85, 0xfb, 0xab, 0x61, 0x84, 0x4f, 0xf1, 0x80, 0x05, 0x6a, 0xcc, 0xcd, 0x4a, 0xe7, + 0x12, 0x70, 0xa6, 0xf4, 0x28, 0xab, 0x9e, 0x21, 0x1c, 0x82, 0xe6, 0x2f, 0xf9, 0x13, 0x33, 0xf7, + 0xc5, 0x93, 0xd6, 0xa0, 0x6c, 0x6e, 0xec, 0xf2, 0x27, 0x00, 0x00, 0xff, 0xff, 0xff, 0x60, 0x8b, + 0x55, 0xcf, 0x02, 0x00, 0x00, } func (m *EventCreate) Marshal() (dAtA []byte, err error) { @@ -513,6 +564,36 @@ func (m *EventUpdateCurator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *EventUpdateDateCriteria) 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 *EventUpdateDateCriteria) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventUpdateDateCriteria) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { offset -= sovEvents(v) base := offset @@ -608,6 +689,19 @@ func (m *EventUpdateCurator) Size() (n int) { return n } +func (m *EventUpdateDateCriteria) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + func sovEvents(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1170,6 +1264,88 @@ func (m *EventUpdateCurator) Unmarshal(dAtA []byte) error { } return nil } +func (m *EventUpdateDateCriteria) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventUpdateDateCriteria: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventUpdateDateCriteria: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipEvents(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/ecocredit/basket/types/v1/features/msg_update_date_criteria.feature b/x/ecocredit/basket/types/v1/features/msg_update_date_criteria.feature new file mode 100644 index 0000000000..528ee53849 --- /dev/null +++ b/x/ecocredit/basket/types/v1/features/msg_update_date_criteria.feature @@ -0,0 +1,131 @@ +Feature: MsgUpdateDateCriteria + + Scenario: a valid message + Given the message + """ + { + "authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw", + "denom": "eco.uC.NCT" + } + """ + When the message is validated + Then expect no error + + Scenario Outline: a valid message with new data criteria + Given the message + """ + { + "authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw", + "denom": "eco.uC.NCT", + "new_date_criteria": + } + """ + When the message is validated + Then expect no error + + Examples: + | description | date-criteria | + | minimum start date | {"min_start_date": "2012-01-01T00:00:00Z"} | + | start date window | {"start_date_window": "315360000s"} | + | years in the past | {"years_in_the_past": 10} | + + Scenario: an error is returned if authority is empty + Given the message + """ + {} + """ + When the message is validated + Then expect the error "invalid authority address: empty address string is not allowed: invalid address" + + Scenario: an error is returned if authority is not a bech32 address + Given the message + """ + { + "authority": "foo" + } + """ + When the message is validated + Then expect the error "invalid authority address: decoding bech32 failed: invalid bech32 string length 3: invalid address" + + Scenario: an error is returned if basket denom is not formatted + Given the message + """ + { + "authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw", + "denom": "foo" + } + """ + When the message is validated + Then expect the error "invalid basket denom: expected format eco..: parse error: invalid request" + + Scenario Outline: an error is returned if more than one data criteria is provided + Given the message + """ + { + "authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw", + "denom": "eco.uC.NCT", + "new_date_criteria": + } + """ + When the message is validated + Then expect the error "invalid date criteria: only one of min_start_date, start_date_window, or years_in_the_past must be set: invalid request" + + Examples: + | description | date-criteria | + | date and window | {"min_start_date": "2012-01-01T00:00:00Z", "start_date_window": "315360000s"} | + | window and years | {"start_date_window": "315360000s", "years_in_the_past": 10} | + | years and date | {"years_in_the_past": 10, "min_start_date": "2012-01-01T00:00:00Z"} | + + Scenario: an error is returned if minimum start date is before 1900-01-01 + Given the message + """ + { + "authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "min_start_date": "1899-01-01T00:00:00Z" + } + } + """ + When the message is validated + Then expect the error "invalid date criteria: min_start_date must be after 1900-01-01: invalid request" + + Scenario: an error is returned if start date window is less than one day + Given the message + """ + { + "authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "start_date_window": "23h" + } + } + """ + When the message is validated + Then expect the error "invalid date criteria: start_date_window must be at least 1 day: invalid request" + + Scenario: a valid amino message + Given the message + """ + { + "authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "years_in_the_past": 10 + } + } + """ + When message sign bytes queried + Then expect the sign bytes + """ + { + "type":"regen.basket/MsgUpdateDateCriteria", + "value":{ + "authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw", + "denom": "eco.uC.NCT", + "new_date_criteria": { + "years_in_the_past": 10 + } + } + } + """ diff --git a/x/ecocredit/basket/types/v1/msg_update_date_criteria.go b/x/ecocredit/basket/types/v1/msg_update_date_criteria.go new file mode 100644 index 0000000000..1ef25cb063 --- /dev/null +++ b/x/ecocredit/basket/types/v1/msg_update_date_criteria.go @@ -0,0 +1,44 @@ +package v1 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" + "github.com/regen-network/regen-ledger/x/ecocredit/v3/basket" +) + +var _ legacytx.LegacyMsg = &MsgUpdateDateCriteria{} + +// Route implements LegacyMsg. +func (m MsgUpdateDateCriteria) Route() string { return sdk.MsgTypeURL(&m) } + +// Type implements LegacyMsg. +func (m MsgUpdateDateCriteria) Type() string { return sdk.MsgTypeURL(&m) } + +// GetSignBytes implements LegacyMsg. +func (m MsgUpdateDateCriteria) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) +} + +// ValidateBasic does a stateless sanity check on the provided data. +func (m MsgUpdateDateCriteria) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil { + return sdkerrors.ErrInvalidAddress.Wrapf("invalid authority address: %s", err) + } + + if err := basket.ValidateBasketDenom(m.Denom); err != nil { + return sdkerrors.ErrInvalidRequest.Wrapf("invalid basket denom: %s", err) + } + + if err := m.NewDateCriteria.Validate(); err != nil { + return sdkerrors.ErrInvalidRequest.Wrapf("invalid date criteria: %s", err) + } + + return nil +} + +// GetSigners returns the expected signers for MsgUpdateDateCriteria. +func (m MsgUpdateDateCriteria) GetSigners() []sdk.AccAddress { + addr, _ := sdk.AccAddressFromBech32(m.Authority) + return []sdk.AccAddress{addr} +} diff --git a/x/ecocredit/basket/types/v1/msg_update_date_criteria_test.go b/x/ecocredit/basket/types/v1/msg_update_date_criteria_test.go new file mode 100644 index 0000000000..6531d9818a --- /dev/null +++ b/x/ecocredit/basket/types/v1/msg_update_date_criteria_test.go @@ -0,0 +1,54 @@ +package v1 + +import ( + "bytes" + "encoding/json" + "testing" + + "github.com/gogo/protobuf/jsonpb" + "github.com/regen-network/gocuke" + "github.com/stretchr/testify/require" +) + +type msgUpdateDateCriteriaSuite struct { + t gocuke.TestingT + msg *MsgUpdateDateCriteria + err error + signBytes string +} + +func TestMsgUpdateDateCriteria(t *testing.T) { + gocuke.NewRunner(t, &msgUpdateDateCriteriaSuite{}).Path("./features/msg_update_date_criteria.feature").Run() +} + +func (s *msgUpdateDateCriteriaSuite) Before(t gocuke.TestingT) { + s.t = t +} + +func (s *msgUpdateDateCriteriaSuite) TheMessage(a gocuke.DocString) { + s.msg = &MsgUpdateDateCriteria{} + err := jsonpb.UnmarshalString(a.Content, s.msg) + require.NoError(s.t, err) +} + +func (s *msgUpdateDateCriteriaSuite) TheMessageIsValidated() { + s.err = s.msg.ValidateBasic() +} + +func (s *msgUpdateDateCriteriaSuite) ExpectTheError(a string) { + require.EqualError(s.t, s.err, a) +} + +func (s *msgUpdateDateCriteriaSuite) ExpectNoError() { + require.NoError(s.t, s.err) +} + +func (s *msgUpdateDateCriteriaSuite) MessageSignBytesQueried() { + s.signBytes = string(s.msg.GetSignBytes()) +} + +func (s *msgUpdateDateCriteriaSuite) ExpectTheSignBytes(expected gocuke.DocString) { + buffer := new(bytes.Buffer) + require.NoError(s.t, json.Compact(buffer, []byte(expected.Content))) + require.Equal(s.t, buffer.String(), s.signBytes) +} diff --git a/x/ecocredit/basket/types/v1/tx.pb.go b/x/ecocredit/basket/types/v1/tx.pb.go index eefa858173..e6866852b9 100644 --- a/x/ecocredit/basket/types/v1/tx.pb.go +++ b/x/ecocredit/basket/types/v1/tx.pb.go @@ -64,7 +64,7 @@ type MsgCreate struct { // allowed_classes are the credit classes allowed to be put in the basket AllowedClasses []string `protobuf:"bytes,7,rep,name=allowed_classes,json=allowedClasses,proto3" json:"allowed_classes,omitempty"` // date_criteria is the date criteria for batches admitted to the basket. - // At most, only one of the fields in the date_criteria should be set. + // At most, only one of the date criteria fields can be set. DateCriteria *DateCriteria `protobuf:"bytes,8,opt,name=date_criteria,json=dateCriteria,proto3" json:"date_criteria,omitempty"` // fee is the basket creation fee. A fee is not required if no fee exists // in the basket fee parameter. The fee must be greater than or equal to the @@ -699,6 +699,112 @@ func (m *MsgUpdateCuratorResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateCuratorResponse proto.InternalMessageInfo +// MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. +// +// Since Revision 3 +type MsgUpdateDateCriteria struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // denom is the unique identifier of the basket. + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` + // new_date_criteria is the new date criteria for batches admitted to the + // basket. At most, only one of the date criteria fields can be set. + NewDateCriteria *DateCriteria `protobuf:"bytes,8,opt,name=new_date_criteria,json=newDateCriteria,proto3" json:"new_date_criteria,omitempty"` +} + +func (m *MsgUpdateDateCriteria) Reset() { *m = MsgUpdateDateCriteria{} } +func (m *MsgUpdateDateCriteria) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateDateCriteria) ProtoMessage() {} +func (*MsgUpdateDateCriteria) Descriptor() ([]byte, []int) { + return fileDescriptor_a60f962a3c61f018, []int{10} +} +func (m *MsgUpdateDateCriteria) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateDateCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateDateCriteria.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 *MsgUpdateDateCriteria) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateDateCriteria.Merge(m, src) +} +func (m *MsgUpdateDateCriteria) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateDateCriteria) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateDateCriteria.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateDateCriteria proto.InternalMessageInfo + +func (m *MsgUpdateDateCriteria) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *MsgUpdateDateCriteria) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *MsgUpdateDateCriteria) GetNewDateCriteria() *DateCriteria { + if m != nil { + return m.NewDateCriteria + } + return nil +} + +// MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. +// +// Since Revision 3 +type MsgUpdateDateCriteriaResponse struct { +} + +func (m *MsgUpdateDateCriteriaResponse) Reset() { *m = MsgUpdateDateCriteriaResponse{} } +func (m *MsgUpdateDateCriteriaResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateDateCriteriaResponse) ProtoMessage() {} +func (*MsgUpdateDateCriteriaResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a60f962a3c61f018, []int{11} +} +func (m *MsgUpdateDateCriteriaResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateDateCriteriaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateDateCriteriaResponse.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 *MsgUpdateDateCriteriaResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateDateCriteriaResponse.Merge(m, src) +} +func (m *MsgUpdateDateCriteriaResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateDateCriteriaResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateDateCriteriaResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateDateCriteriaResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgCreate)(nil), "regen.ecocredit.basket.v1.MsgCreate") proto.RegisterType((*MsgCreateResponse)(nil), "regen.ecocredit.basket.v1.MsgCreateResponse") @@ -710,6 +816,8 @@ func init() { proto.RegisterType((*MsgUpdateBasketFeeResponse)(nil), "regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse") proto.RegisterType((*MsgUpdateCurator)(nil), "regen.ecocredit.basket.v1.MsgUpdateCurator") proto.RegisterType((*MsgUpdateCuratorResponse)(nil), "regen.ecocredit.basket.v1.MsgUpdateCuratorResponse") + proto.RegisterType((*MsgUpdateDateCriteria)(nil), "regen.ecocredit.basket.v1.MsgUpdateDateCriteria") + proto.RegisterType((*MsgUpdateDateCriteriaResponse)(nil), "regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse") } func init() { @@ -717,64 +825,67 @@ func init() { } var fileDescriptor_a60f962a3c61f018 = []byte{ - // 902 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x6e, 0xdb, 0x46, - 0x10, 0x36, 0x25, 0x5b, 0xb2, 0x46, 0xb6, 0x1c, 0x6f, 0x8c, 0x84, 0x11, 0x02, 0x59, 0x21, 0x52, - 0x44, 0x8d, 0x63, 0xaa, 0xb6, 0xd1, 0x16, 0xcd, 0xcd, 0x56, 0xd0, 0x43, 0x11, 0xa1, 0x01, 0xeb, - 0xf6, 0xd0, 0x1f, 0x10, 0x14, 0x39, 0x65, 0x58, 0x49, 0xbb, 0xca, 0xee, 0x4a, 0xb2, 0xaf, 0x7d, - 0x82, 0xbc, 0x45, 0x81, 0x9e, 0xfa, 0x02, 0xbd, 0xe7, 0x98, 0x63, 0x4f, 0x6d, 0x61, 0x1f, 0xfa, - 0x12, 0x3d, 0x04, 0xdc, 0x5d, 0x52, 0x8a, 0x0d, 0x2b, 0x89, 0x4f, 0xda, 0xfd, 0xe6, 0x9b, 0xd9, - 0x9d, 0xf9, 0x66, 0x96, 0x02, 0x87, 0x63, 0x8c, 0xb4, 0x8d, 0x21, 0x0b, 0x39, 0x46, 0x89, 0x6c, - 0xf7, 0x02, 0xd1, 0x47, 0xd9, 0x9e, 0xec, 0xb5, 0xe5, 0x89, 0x3b, 0xe2, 0x4c, 0x32, 0x72, 0x47, - 0x71, 0xdc, 0x9c, 0xe3, 0x6a, 0x8e, 0x3b, 0xd9, 0xab, 0x37, 0x42, 0x26, 0x86, 0x4c, 0xa4, 0x5e, - 0xd8, 0x9e, 0xec, 0xf5, 0x50, 0x06, 0x7b, 0xed, 0x90, 0x25, 0x54, 0xbb, 0xd6, 0x6f, 0x1b, 0xfb, - 0x50, 0xc4, 0x69, 0xc8, 0xa1, 0x88, 0x8d, 0x61, 0x2b, 0x66, 0x31, 0x53, 0xcb, 0x76, 0xba, 0x32, - 0xe8, 0x47, 0x0b, 0x6e, 0x73, 0x3a, 0x42, 0xa1, 0x69, 0xce, 0x9f, 0x45, 0xa8, 0x74, 0x45, 0xdc, - 0xe1, 0x18, 0x48, 0x24, 0x36, 0x94, 0xc3, 0x31, 0x0f, 0x24, 0xe3, 0xb6, 0xd5, 0xb4, 0x5a, 0x15, - 0x2f, 0xdb, 0x12, 0x02, 0xcb, 0x34, 0x18, 0xa2, 0x5d, 0x50, 0xb0, 0x5a, 0x93, 0x26, 0x54, 0x23, - 0x14, 0x21, 0x4f, 0x46, 0x32, 0x61, 0xd4, 0x2e, 0x2a, 0xd3, 0x3c, 0x44, 0x1a, 0xb0, 0x8a, 0x27, - 0x23, 0x46, 0x91, 0x4a, 0x7b, 0xb9, 0x69, 0xb5, 0xd6, 0x8f, 0x0a, 0xb6, 0xe5, 0xe5, 0x18, 0x71, - 0xe1, 0x66, 0x94, 0x88, 0xa0, 0x37, 0x40, 0x3f, 0x18, 0x4b, 0xe6, 0x73, 0x94, 0x09, 0x47, 0x7b, - 0xa5, 0x69, 0xb5, 0x56, 0xbd, 0x4d, 0x63, 0x3a, 0x1c, 0x4b, 0xe6, 0x29, 0x03, 0x79, 0x04, 0x44, - 0x67, 0xe3, 0xa7, 0x39, 0xf8, 0x41, 0xaf, 0xc7, 0x71, 0x62, 0x97, 0xd4, 0xc1, 0x37, 0xb4, 0xe5, - 0xf8, 0x74, 0x84, 0x87, 0x0a, 0x27, 0x0f, 0x60, 0x23, 0x18, 0x0c, 0xd8, 0x14, 0x23, 0x3f, 0x1c, - 0x04, 0x42, 0xa0, 0xb0, 0xcb, 0xcd, 0x62, 0xab, 0xe2, 0xd5, 0x0c, 0xdc, 0xd1, 0x28, 0x79, 0x0a, - 0xeb, 0x51, 0x20, 0xd1, 0x0f, 0x79, 0x22, 0x91, 0x27, 0x81, 0xbd, 0xda, 0xb4, 0x5a, 0xd5, 0xfd, - 0x07, 0xee, 0x95, 0x6a, 0xb9, 0x4f, 0x02, 0x89, 0x1d, 0x43, 0xf7, 0xd6, 0xa2, 0xb9, 0x1d, 0xf9, - 0x09, 0x8a, 0x3f, 0x23, 0xda, 0x95, 0x66, 0xb1, 0x55, 0xdd, 0xbf, 0xe3, 0x6a, 0xd9, 0x52, 0x57, - 0x74, 0x8d, 0xac, 0x6e, 0x87, 0x25, 0xf4, 0xe8, 0x93, 0x57, 0x7f, 0x6f, 0x2f, 0xfd, 0xfe, 0xcf, - 0x76, 0x2b, 0x4e, 0xe4, 0xf3, 0x71, 0xcf, 0x0d, 0xd9, 0xb0, 0x6d, 0x34, 0xd6, 0x3f, 0xbb, 0x22, - 0xea, 0x1b, 0xb1, 0x52, 0x07, 0xe1, 0xa5, 0x71, 0x1f, 0xaf, 0xfd, 0xfa, 0xdf, 0x1f, 0x0f, 0x33, - 0x5d, 0x9c, 0xcf, 0x60, 0x33, 0x97, 0xcf, 0x43, 0x31, 0x62, 0x54, 0x20, 0xb9, 0x07, 0x6b, 0xfa, - 0xa6, 0x7e, 0x84, 0x94, 0x0d, 0x8d, 0x96, 0x55, 0x8d, 0x3d, 0x49, 0x21, 0xe7, 0xa5, 0x05, 0xa5, - 0xae, 0x88, 0x9f, 0x8d, 0x25, 0xd9, 0x82, 0x15, 0x36, 0xa5, 0x98, 0x49, 0xae, 0x37, 0x97, 0x62, - 0x14, 0x2e, 0xc5, 0x20, 0x87, 0x50, 0xd6, 0x75, 0x11, 0x76, 0x51, 0x25, 0xbb, 0xa8, 0x60, 0x47, - 0x6a, 0xd5, 0x51, 0xb0, 0x97, 0xf9, 0x3d, 0x86, 0x34, 0x19, 0x7d, 0xa2, 0xf3, 0x05, 0xd4, 0xf4, - 0x8d, 0xf2, 0x3c, 0x52, 0x01, 0x87, 0x6c, 0x4c, 0xa5, 0xcf, 0x31, 0xc4, 0x64, 0x82, 0x91, 0xb9, - 0x63, 0x4d, 0xc3, 0x9e, 0x41, 0x9d, 0xdf, 0x0a, 0x50, 0xee, 0x8a, 0xf8, 0x38, 0xe8, 0xe3, 0xf5, - 0xd3, 0xb9, 0x05, 0x25, 0x1d, 0xd6, 0x74, 0xb2, 0xd9, 0x91, 0x03, 0xb8, 0xa9, 0xfb, 0x72, 0x88, - 0x54, 0xfa, 0x03, 0x16, 0x06, 0xaa, 0xdd, 0xd3, 0x7e, 0xae, 0xa8, 0x7e, 0x26, 0x33, 0xf3, 0x53, - 0x63, 0x25, 0xf7, 0xa1, 0xa6, 0x51, 0x9f, 0x51, 0x5f, 0x06, 0xfd, 0xac, 0xa9, 0xd7, 0x34, 0xfa, - 0x35, 0x55, 0x77, 0xfd, 0x1c, 0x6e, 0xcf, 0x85, 0xfe, 0x65, 0xcc, 0x13, 0x11, 0x25, 0xa1, 0x0a, - 0xaf, 0x9b, 0xfa, 0xd6, 0xcc, 0xfc, 0xd5, 0x9c, 0x95, 0xec, 0xc0, 0xe6, 0x9c, 0x23, 0xc7, 0x40, - 0x30, 0x6a, 0x97, 0xf5, 0x1c, 0xcc, 0x0c, 0x9e, 0xc2, 0xdf, 0x2a, 0xf2, 0x31, 0x6c, 0x98, 0x42, - 0xe5, 0x55, 0x9e, 0x93, 0xd1, 0xba, 0x9e, 0x8c, 0x0e, 0x03, 0xd2, 0x15, 0xf1, 0xb7, 0xa3, 0x74, - 0x0e, 0x34, 0xe3, 0x4b, 0x44, 0x72, 0x17, 0x2a, 0xc1, 0x58, 0x3e, 0x67, 0x3c, 0x91, 0xa7, 0x46, - 0x8d, 0x19, 0x40, 0x76, 0xf4, 0x98, 0x14, 0xd4, 0xa8, 0x5d, 0x3d, 0x26, 0xba, 0xe9, 0x6b, 0x69, - 0x0a, 0x33, 0x67, 0xe7, 0x2e, 0xd4, 0x2f, 0x1f, 0x98, 0x65, 0xe4, 0xbc, 0x80, 0x1b, 0xb9, 0xb5, - 0x63, 0x1e, 0xb0, 0xab, 0x9f, 0xb6, 0x2d, 0x58, 0x99, 0xef, 0x09, 0xbd, 0x21, 0xdb, 0x50, 0xa5, - 0x38, 0xf5, 0x33, 0x1f, 0xdd, 0x12, 0x40, 0x71, 0x6a, 0x02, 0x5e, 0x98, 0xc3, 0x3a, 0xd8, 0x17, - 0x8f, 0xcc, 0xae, 0xb3, 0xff, 0x7f, 0x11, 0x8a, 0x5d, 0x11, 0x93, 0x1f, 0xa1, 0x64, 0xde, 0xd9, - 0xfb, 0x0b, 0x2a, 0x9c, 0x8f, 0x73, 0xfd, 0xd1, 0xfb, 0xb0, 0x72, 0x19, 0xbf, 0x81, 0x62, 0x3a, - 0xcd, 0xf7, 0x16, 0x3b, 0x3d, 0x1b, 0xcb, 0xfa, 0xc7, 0xef, 0xa4, 0xe4, 0x41, 0xbf, 0x83, 0x65, - 0xd5, 0xa8, 0xce, 0x62, 0x97, 0x94, 0x53, 0x7f, 0xf8, 0x6e, 0x4e, 0x1e, 0x77, 0x0a, 0x1b, 0x17, - 0xbb, 0x65, 0x77, 0xb1, 0xfb, 0x05, 0x7a, 0xfd, 0xd3, 0x0f, 0xa2, 0xe7, 0x07, 0xbf, 0x80, 0xf5, - 0xb7, 0xfb, 0x62, 0xe7, 0x7d, 0xe2, 0x18, 0x72, 0xfd, 0xe0, 0x03, 0xc8, 0xd9, 0x91, 0x47, 0x3f, - 0xbc, 0x3a, 0x6b, 0x58, 0xaf, 0xcf, 0x1a, 0xd6, 0xbf, 0x67, 0x0d, 0xeb, 0xe5, 0x79, 0x63, 0xe9, - 0xf5, 0x79, 0x63, 0xe9, 0xaf, 0xf3, 0xc6, 0xd2, 0xf7, 0x87, 0x73, 0x2f, 0xbf, 0x0a, 0xbc, 0x4b, - 0x51, 0x4e, 0x19, 0xef, 0x9b, 0xdd, 0x00, 0xa3, 0x18, 0x79, 0xfb, 0xe4, 0xf2, 0x57, 0x5c, 0x7d, - 0x15, 0xd2, 0x7f, 0x09, 0x25, 0xf5, 0x19, 0x3f, 0x78, 0x13, 0x00, 0x00, 0xff, 0xff, 0x30, 0xe5, - 0xfb, 0x03, 0x7d, 0x08, 0x00, 0x00, + // 958 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0x36, 0x2d, 0xff, 0x69, 0x64, 0xcb, 0xf1, 0xc6, 0x4d, 0x18, 0x22, 0x95, 0x15, 0x22, 0x45, + 0xd4, 0x38, 0xa6, 0x62, 0x1b, 0xfd, 0xcb, 0xcd, 0x56, 0xd0, 0x43, 0x11, 0xa1, 0x01, 0xe3, 0xf6, + 0xd0, 0x1f, 0x10, 0x14, 0x39, 0x65, 0x58, 0x49, 0xbb, 0x0a, 0x77, 0x25, 0xd9, 0xb7, 0xa2, 0x4f, + 0x90, 0xb7, 0x28, 0xd0, 0x43, 0xd1, 0x17, 0xe8, 0x3d, 0xc7, 0x1c, 0x7b, 0x6a, 0x0b, 0xfb, 0xd0, + 0xc7, 0x68, 0xc1, 0xdd, 0x15, 0xc5, 0xc8, 0xb6, 0x6c, 0x27, 0x27, 0xed, 0x7e, 0xf3, 0xcd, 0xec, + 0xcc, 0xce, 0x37, 0x2b, 0x82, 0x9d, 0x60, 0x84, 0xb4, 0x8e, 0x01, 0x0b, 0x12, 0x0c, 0x63, 0x51, + 0x6f, 0xf9, 0xbc, 0x8d, 0xa2, 0x3e, 0xd8, 0xae, 0x8b, 0x43, 0xa7, 0x97, 0x30, 0xc1, 0xc8, 0x2d, + 0xc9, 0x71, 0x32, 0x8e, 0xa3, 0x38, 0xce, 0x60, 0xdb, 0xaa, 0x04, 0x8c, 0x77, 0x19, 0x4f, 0xbd, + 0xb0, 0x3e, 0xd8, 0x6e, 0xa1, 0xf0, 0xb7, 0xeb, 0x01, 0x8b, 0xa9, 0x72, 0xb5, 0x6e, 0x6a, 0x7b, + 0x97, 0x47, 0x69, 0xc8, 0x2e, 0x8f, 0xb4, 0x61, 0x3d, 0x62, 0x11, 0x93, 0xcb, 0x7a, 0xba, 0xd2, + 0xe8, 0x07, 0x53, 0xb2, 0x39, 0xea, 0x21, 0x57, 0x34, 0xfb, 0x8f, 0x02, 0x14, 0x9b, 0x3c, 0x6a, + 0x24, 0xe8, 0x0b, 0x24, 0x26, 0x2c, 0x06, 0xfd, 0xc4, 0x17, 0x2c, 0x31, 0x8d, 0xaa, 0x51, 0x2b, + 0xba, 0xa3, 0x2d, 0x21, 0x30, 0x47, 0xfd, 0x2e, 0x9a, 0xb3, 0x12, 0x96, 0x6b, 0x52, 0x85, 0x52, + 0x88, 0x3c, 0x48, 0xe2, 0x9e, 0x88, 0x19, 0x35, 0x0b, 0xd2, 0x94, 0x87, 0x48, 0x05, 0x96, 0xf0, + 0xb0, 0xc7, 0x28, 0x52, 0x61, 0xce, 0x55, 0x8d, 0xda, 0xca, 0xfe, 0xac, 0x69, 0xb8, 0x19, 0x46, + 0x1c, 0xb8, 0x1e, 0xc6, 0xdc, 0x6f, 0x75, 0xd0, 0xf3, 0xfb, 0x82, 0x79, 0x09, 0x8a, 0x38, 0x41, + 0x73, 0xbe, 0x6a, 0xd4, 0x96, 0xdc, 0x35, 0x6d, 0xda, 0xeb, 0x0b, 0xe6, 0x4a, 0x03, 0x79, 0x00, + 0x44, 0x55, 0xe3, 0xa5, 0x35, 0x78, 0x7e, 0xab, 0x95, 0xe0, 0xc0, 0x5c, 0x90, 0x07, 0x5f, 0x53, + 0x96, 0x83, 0xa3, 0x1e, 0xee, 0x49, 0x9c, 0xdc, 0x83, 0x55, 0xbf, 0xd3, 0x61, 0x43, 0x0c, 0xbd, + 0xa0, 0xe3, 0x73, 0x8e, 0xdc, 0x5c, 0xac, 0x16, 0x6a, 0x45, 0xb7, 0xac, 0xe1, 0x86, 0x42, 0xc9, + 0x13, 0x58, 0x09, 0x7d, 0x81, 0x5e, 0x90, 0xc4, 0x02, 0x93, 0xd8, 0x37, 0x97, 0xaa, 0x46, 0xad, + 0xb4, 0x73, 0xcf, 0x39, 0xb7, 0x5b, 0xce, 0x63, 0x5f, 0x60, 0x43, 0xd3, 0xdd, 0xe5, 0x30, 0xb7, + 0x23, 0xdf, 0x43, 0xe1, 0x07, 0x44, 0xb3, 0x58, 0x2d, 0xd4, 0x4a, 0x3b, 0xb7, 0x1c, 0xd5, 0xb6, + 0xd4, 0x15, 0x1d, 0xdd, 0x56, 0xa7, 0xc1, 0x62, 0xba, 0xff, 0xf0, 0xd5, 0x5f, 0x1b, 0x33, 0xbf, + 0xfe, 0xbd, 0x51, 0x8b, 0x62, 0xf1, 0xbc, 0xdf, 0x72, 0x02, 0xd6, 0xad, 0xeb, 0x1e, 0xab, 0x9f, + 0x2d, 0x1e, 0xb6, 0x75, 0xb3, 0x52, 0x07, 0xee, 0xa6, 0x71, 0x1f, 0x2d, 0xff, 0xfc, 0xef, 0xef, + 0xf7, 0x47, 0x7d, 0xb1, 0x3f, 0x86, 0xb5, 0xac, 0x7d, 0x2e, 0xf2, 0x1e, 0xa3, 0x1c, 0xc9, 0x1d, + 0x58, 0x56, 0x99, 0x7a, 0x21, 0x52, 0xd6, 0xd5, 0xbd, 0x2c, 0x29, 0xec, 0x71, 0x0a, 0xd9, 0x2f, + 0x0d, 0x58, 0x68, 0xf2, 0xe8, 0x69, 0x5f, 0x90, 0x75, 0x98, 0x67, 0x43, 0x8a, 0xa3, 0x96, 0xab, + 0xcd, 0xa9, 0x18, 0xb3, 0xa7, 0x62, 0x90, 0x3d, 0x58, 0x54, 0xf7, 0xc2, 0xcd, 0x82, 0x2c, 0x76, + 0xda, 0x85, 0xed, 0xcb, 0x55, 0x43, 0xc2, 0xee, 0xc8, 0xef, 0x11, 0xa4, 0xc5, 0xa8, 0x13, 0xed, + 0xcf, 0xa0, 0xac, 0x32, 0xca, 0xea, 0x48, 0x1b, 0xd8, 0x65, 0x7d, 0x2a, 0xbc, 0x04, 0x03, 0x8c, + 0x07, 0x18, 0xea, 0x1c, 0xcb, 0x0a, 0x76, 0x35, 0x6a, 0xff, 0x32, 0x0b, 0x8b, 0x4d, 0x1e, 0x1d, + 0xf8, 0x6d, 0x7c, 0xfb, 0x72, 0x6e, 0xc0, 0x82, 0x0a, 0xab, 0x95, 0xac, 0x77, 0x64, 0x17, 0xae, + 0x2b, 0x5d, 0x76, 0x91, 0x0a, 0xaf, 0xc3, 0x02, 0x5f, 0xca, 0x3d, 0xd5, 0x73, 0x51, 0xea, 0x99, + 0x8c, 0xcd, 0x4f, 0xb4, 0x95, 0xdc, 0x85, 0xb2, 0x42, 0x3d, 0x46, 0x3d, 0xe1, 0xb7, 0x47, 0xa2, + 0x5e, 0x56, 0xe8, 0x97, 0x54, 0xe6, 0xfa, 0x09, 0xdc, 0xcc, 0x85, 0xfe, 0xb1, 0x9f, 0xc4, 0x3c, + 0x8c, 0x03, 0x19, 0x5e, 0x89, 0xfa, 0xc6, 0xd8, 0xfc, 0x45, 0xce, 0x4a, 0x36, 0x61, 0x2d, 0xe7, + 0x98, 0xa0, 0xcf, 0x19, 0x35, 0x17, 0xd5, 0x1c, 0x8c, 0x0d, 0xae, 0xc4, 0xdf, 0xb8, 0xe4, 0x03, + 0x58, 0xd5, 0x17, 0x95, 0xdd, 0x72, 0xae, 0x8d, 0xc6, 0xdb, 0xb5, 0xd1, 0x66, 0x40, 0x9a, 0x3c, + 0xfa, 0xaa, 0x97, 0xce, 0x81, 0x62, 0x7c, 0x8e, 0x48, 0x6e, 0x43, 0xd1, 0xef, 0x8b, 0xe7, 0x2c, + 0x89, 0xc5, 0x91, 0xee, 0xc6, 0x18, 0x20, 0x9b, 0x6a, 0x4c, 0x66, 0xe5, 0xa8, 0x9d, 0x3f, 0x26, + 0x4a, 0xf4, 0xe5, 0xb4, 0x84, 0xb1, 0xb3, 0x7d, 0x1b, 0xac, 0xd3, 0x07, 0x8e, 0x2a, 0xb2, 0x5f, + 0xc0, 0xb5, 0xcc, 0xda, 0xd0, 0x0f, 0xd8, 0xf9, 0x4f, 0xdb, 0x3a, 0xcc, 0xe7, 0x35, 0xa1, 0x36, + 0x64, 0x03, 0x4a, 0x14, 0x87, 0xde, 0xc8, 0x47, 0x49, 0x02, 0x28, 0x0e, 0x75, 0xc0, 0x89, 0x39, + 0xb4, 0xc0, 0x9c, 0x3c, 0x32, 0x4b, 0xe7, 0x37, 0x03, 0xde, 0xcb, 0x8c, 0xf9, 0x87, 0xe3, 0x82, + 0x1b, 0x3a, 0x3b, 0xb1, 0x67, 0xb0, 0x96, 0x26, 0xf6, 0x4e, 0x0f, 0xd6, 0x2a, 0xc5, 0x61, 0x1e, + 0x98, 0x28, 0x66, 0x03, 0xde, 0x3f, 0x33, 0xdf, 0x51, 0x45, 0x3b, 0xff, 0xcd, 0x41, 0xa1, 0xc9, + 0x23, 0xf2, 0x1d, 0x2c, 0xe8, 0x7f, 0x8e, 0xbb, 0x53, 0x8e, 0xce, 0x1e, 0x28, 0xeb, 0xc1, 0x65, + 0x58, 0x99, 0x30, 0x9f, 0x41, 0x21, 0x7d, 0x9f, 0xee, 0x4c, 0x77, 0x7a, 0xda, 0x17, 0xd6, 0x87, + 0x17, 0x52, 0xb2, 0xa0, 0x5f, 0xc3, 0x9c, 0x1c, 0x3d, 0x7b, 0xba, 0x4b, 0xca, 0xb1, 0xee, 0x5f, + 0xcc, 0xc9, 0xe2, 0x0e, 0x61, 0x75, 0x52, 0xff, 0x5b, 0xd3, 0xdd, 0x27, 0xe8, 0xd6, 0x47, 0x57, + 0xa2, 0x67, 0x07, 0xbf, 0x80, 0x95, 0x37, 0x95, 0xbe, 0x79, 0x99, 0x38, 0x9a, 0x6c, 0xed, 0x5e, + 0x81, 0x9c, 0x1d, 0xf9, 0x93, 0x01, 0xe4, 0x0c, 0x35, 0x3f, 0xbc, 0x4c, 0xac, 0xbc, 0x87, 0xf5, + 0xe9, 0x55, 0x3d, 0x46, 0x29, 0xec, 0x7f, 0xfb, 0xea, 0xb8, 0x62, 0xbc, 0x3e, 0xae, 0x18, 0xff, + 0x1c, 0x57, 0x8c, 0x97, 0x27, 0x95, 0x99, 0xd7, 0x27, 0x95, 0x99, 0x3f, 0x4f, 0x2a, 0x33, 0xdf, + 0xec, 0xe5, 0xfe, 0x4e, 0x65, 0xf4, 0x2d, 0x8a, 0x62, 0xc8, 0x92, 0xb6, 0xde, 0x75, 0x30, 0x8c, + 0x30, 0xa9, 0x1f, 0x9e, 0xfe, 0x34, 0x92, 0x7f, 0xb5, 0xe9, 0xa7, 0xd7, 0x82, 0xfc, 0x36, 0xda, + 0xfd, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xbf, 0x7e, 0x39, 0x56, 0xd2, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -830,6 +941,12 @@ type MsgClient interface { // // Since Revision 2 UpdateCurator(ctx context.Context, in *MsgUpdateCurator, opts ...grpc.CallOption) (*MsgUpdateCuratorResponse, error) + // UpdateDateCriteria is a governance method that allows for updating the date + // criteria of a basket. Updating basket date criteria could affect the value + // of basket tokens and therefore requires a network-wide governance process. + // + // Since Revision 3 + UpdateDateCriteria(ctx context.Context, in *MsgUpdateDateCriteria, opts ...grpc.CallOption) (*MsgUpdateDateCriteriaResponse, error) } type msgClient struct { @@ -885,6 +1002,15 @@ func (c *msgClient) UpdateCurator(ctx context.Context, in *MsgUpdateCurator, opt return out, nil } +func (c *msgClient) UpdateDateCriteria(ctx context.Context, in *MsgUpdateDateCriteria, opts ...grpc.CallOption) (*MsgUpdateDateCriteriaResponse, error) { + out := new(MsgUpdateDateCriteriaResponse) + err := c.cc.Invoke(ctx, "/regen.ecocredit.basket.v1.Msg/UpdateDateCriteria", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { // Create creates a basket that can hold different types of ecocredits that @@ -928,6 +1054,12 @@ type MsgServer interface { // // Since Revision 2 UpdateCurator(context.Context, *MsgUpdateCurator) (*MsgUpdateCuratorResponse, error) + // UpdateDateCriteria is a governance method that allows for updating the date + // criteria of a basket. Updating basket date criteria could affect the value + // of basket tokens and therefore requires a network-wide governance process. + // + // Since Revision 3 + UpdateDateCriteria(context.Context, *MsgUpdateDateCriteria) (*MsgUpdateDateCriteriaResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -949,6 +1081,9 @@ func (*UnimplementedMsgServer) UpdateBasketFee(ctx context.Context, req *MsgUpda func (*UnimplementedMsgServer) UpdateCurator(ctx context.Context, req *MsgUpdateCurator) (*MsgUpdateCuratorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateCurator not implemented") } +func (*UnimplementedMsgServer) UpdateDateCriteria(ctx context.Context, req *MsgUpdateDateCriteria) (*MsgUpdateDateCriteriaResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateDateCriteria not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -1044,6 +1179,24 @@ func _Msg_UpdateCurator_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } +func _Msg_UpdateDateCriteria_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateDateCriteria) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateDateCriteria(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.ecocredit.basket.v1.Msg/UpdateDateCriteria", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateDateCriteria(ctx, req.(*MsgUpdateDateCriteria)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "regen.ecocredit.basket.v1.Msg", HandlerType: (*MsgServer)(nil), @@ -1068,6 +1221,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "UpdateCurator", Handler: _Msg_UpdateCurator_Handler, }, + { + MethodName: "UpdateDateCriteria", + Handler: _Msg_UpdateDateCriteria_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "regen/ecocredit/basket/v1/tx.proto", @@ -1529,6 +1686,78 @@ func (m *MsgUpdateCuratorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } +func (m *MsgUpdateDateCriteria) 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 *MsgUpdateDateCriteria) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateDateCriteria) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NewDateCriteria != nil { + { + size, err := m.NewDateCriteria.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintTx(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateDateCriteriaResponse) 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 *MsgUpdateDateCriteriaResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateDateCriteriaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func encodeVarintTx(dAtA []byte, offset int, v uint64) int { offset -= sovTx(v) base := offset @@ -1743,6 +1972,36 @@ func (m *MsgUpdateCuratorResponse) Size() (n int) { return n } +func (m *MsgUpdateDateCriteria) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.NewDateCriteria != nil { + l = m.NewDateCriteria.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateDateCriteriaResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -3090,6 +3349,206 @@ func (m *MsgUpdateCuratorResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgUpdateDateCriteria) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateDateCriteria: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateDateCriteria: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewDateCriteria", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NewDateCriteria == nil { + m.NewDateCriteria = &DateCriteria{} + } + if err := m.NewDateCriteria.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateDateCriteriaResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateDateCriteriaResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateDateCriteriaResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0