From 4c619c380a0e2daf659a16803e16bf85aa79f047 Mon Sep 17 00:00:00 2001 From: Jayden Lee <41176085+tkxkd0159@users.noreply.github.com> Date: Fri, 16 Feb 2024 12:48:00 +0900 Subject: [PATCH] remove NFT offspring feature --- api/lbm/collection/v1/collection.pulsar.go | 369 +- api/lbm/collection/v1/event.pulsar.go | 3048 +------- api/lbm/collection/v1/genesis.pulsar.go | 1897 +---- api/lbm/collection/v1/query.pulsar.go | 7799 ++++--------------- api/lbm/collection/v1/query_grpc.pb.go | 156 - api/lbm/collection/v1/tx.pulsar.go | 6293 +++------------ api/lbm/collection/v1/tx_grpc.pb.go | 188 - api/lbm/foundation/v1/authz.pulsar.go | 51 +- api/lbm/foundation/v1/foundation.pulsar.go | 2 + go.mod | 4 +- proto/lbm/collection/v1/collection.proto | 3 +- proto/lbm/collection/v1/event.proto | 60 - proto/lbm/collection/v1/genesis.proto | 21 +- proto/lbm/collection/v1/query.proto | 83 - proto/lbm/collection/v1/tx.proto | 116 - x/collection/client/cli/query.go | 126 - x/collection/client/cli/tx.go | 148 - x/collection/codec.go | 8 - x/collection/collection.go | 1 - x/collection/collection.pb.go | 172 +- x/collection/errors.go | 92 +- x/collection/event.pb.go | 2361 ++---- x/collection/genesis.go | 28 +- x/collection/genesis.pb.go | 644 +- x/collection/genesis_test.go | 41 - x/collection/keeper/alias.go | 36 - x/collection/keeper/genesis.go | 40 +- x/collection/keeper/grpc_query.go | 110 +- x/collection/keeper/grpc_query_test.go | 266 +- x/collection/keeper/keeper_test.go | 36 +- x/collection/keeper/keys.go | 98 - x/collection/keeper/migrations/v3/helper.go | 84 + x/collection/keeper/migrations/v3/keys.go | 171 +- x/collection/keeper/migrations/v3/store.go | 74 +- x/collection/keeper/msg_server.go | 150 - x/collection/keeper/msg_server_test.go | 433 +- x/collection/keeper/nft.go | 248 - x/collection/keeper/nft_test.go | 99 - x/collection/keeper/send.go | 19 - x/collection/keeper/supply.go | 5 - x/collection/msgs.go | 180 - x/collection/msgs_test.go | 328 - x/collection/query.pb.go | 4103 +++------- x/collection/query.pb.gw.go | 510 -- x/collection/tx.pb.go | 7167 ++++++----------- 45 files changed, 7733 insertions(+), 30135 deletions(-) create mode 100644 x/collection/keeper/migrations/v3/helper.go diff --git a/api/lbm/collection/v1/collection.pulsar.go b/api/lbm/collection/v1/collection.pulsar.go index c881b5d8c4..cd96d710ea 100644 --- a/api/lbm/collection/v1/collection.pulsar.go +++ b/api/lbm/collection/v1/collection.pulsar.go @@ -15,16 +15,12 @@ import ( ) var ( - md_Params protoreflect.MessageDescriptor - fd_Params_depth_limit protoreflect.FieldDescriptor - fd_Params_width_limit protoreflect.FieldDescriptor + md_Params protoreflect.MessageDescriptor ) func init() { file_lbm_collection_v1_collection_proto_init() md_Params = File_lbm_collection_v1_collection_proto.Messages().ByName("Params") - fd_Params_depth_limit = md_Params.Fields().ByName("depth_limit") - fd_Params_width_limit = md_Params.Fields().ByName("width_limit") } var _ protoreflect.Message = (*fastReflection_Params)(nil) @@ -92,18 +88,6 @@ func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.DepthLimit != uint32(0) { - value := protoreflect.ValueOfUint32(x.DepthLimit) - if !f(fd_Params_depth_limit, value) { - return - } - } - if x.WidthLimit != uint32(0) { - value := protoreflect.ValueOfUint32(x.WidthLimit) - if !f(fd_Params_width_limit, value) { - return - } - } } // Has reports whether a field is populated. @@ -119,10 +103,6 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.Params.depth_limit": - return x.DepthLimit != uint32(0) - case "lbm.collection.v1.Params.width_limit": - return x.WidthLimit != uint32(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -139,10 +119,6 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.Params.depth_limit": - x.DepthLimit = uint32(0) - case "lbm.collection.v1.Params.width_limit": - x.WidthLimit = uint32(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -159,12 +135,6 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.Params.depth_limit": - value := x.DepthLimit - return protoreflect.ValueOfUint32(value) - case "lbm.collection.v1.Params.width_limit": - value := x.WidthLimit - return protoreflect.ValueOfUint32(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -185,10 +155,6 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.Params.depth_limit": - x.DepthLimit = uint32(value.Uint()) - case "lbm.collection.v1.Params.width_limit": - x.WidthLimit = uint32(value.Uint()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -209,10 +175,6 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.Params.depth_limit": - panic(fmt.Errorf("field depth_limit of message lbm.collection.v1.Params is not mutable")) - case "lbm.collection.v1.Params.width_limit": - panic(fmt.Errorf("field width_limit of message lbm.collection.v1.Params is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -226,10 +188,6 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.Params.depth_limit": - return protoreflect.ValueOfUint32(uint32(0)) - case "lbm.collection.v1.Params.width_limit": - return protoreflect.ValueOfUint32(uint32(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -299,12 +257,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.DepthLimit != 0 { - n += 1 + runtime.Sov(uint64(x.DepthLimit)) - } - if x.WidthLimit != 0 { - n += 1 + runtime.Sov(uint64(x.WidthLimit)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -334,16 +286,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.WidthLimit != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.WidthLimit)) - i-- - dAtA[i] = 0x10 - } - if x.DepthLimit != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.DepthLimit)) - i-- - dAtA[i] = 0x8 - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -393,44 +335,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DepthLimit", wireType) - } - x.DepthLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.DepthLimit |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WidthLimit", wireType) - } - x.WidthLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.WidthLimit |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -6888,9 +6792,6 @@ type Params struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - DepthLimit uint32 `protobuf:"varint,1,opt,name=depth_limit,json=depthLimit,proto3" json:"depth_limit,omitempty"` - WidthLimit uint32 `protobuf:"varint,2,opt,name=width_limit,json=widthLimit,proto3" json:"width_limit,omitempty"` } func (x *Params) Reset() { @@ -6913,20 +6814,6 @@ func (*Params) Descriptor() ([]byte, []int) { return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{0} } -func (x *Params) GetDepthLimit() uint32 { - if x != nil { - return x.DepthLimit - } - return 0 -} - -func (x *Params) GetWidthLimit() uint32 { - if x != nil { - return x.WidthLimit - } - return 0 -} - // Contract defines the information of the contract for the collection. type Contract struct { state protoimpl.MessageState @@ -7609,139 +7496,135 @@ var file_lbm_collection_v1_collection_proto_rawDesc = []byte{ 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x69, 0x64, 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x77, 0x69, 0x64, 0x74, 0x68, 0x4c, - 0x69, 0x6d, 0x69, 0x74, 0x22, 0x54, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x22, 0x8d, 0x01, 0x0a, 0x07, 0x46, - 0x54, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, - 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x1a, - 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x69, - 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x69, - 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3a, 0x12, 0x88, 0xa0, 0x1f, 0x01, 0xca, 0xb4, 0x2d, 0x0a, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x22, 0x56, 0x0a, 0x08, 0x4e, 0x46, - 0x54, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, - 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x3a, 0x12, - 0x88, 0xa0, 0x1f, 0x01, 0xca, 0xb4, 0x2d, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x22, 0x48, 0x0a, 0x03, 0x4e, 0x46, 0x54, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x03, 0x22, 0x54, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x22, 0xa9, 0x01, 0x0a, - 0x08, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x46, 0x54, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, - 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x2e, 0x0a, - 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x3a, 0x09, 0xca, - 0xb4, 0x2d, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xab, 0x01, 0x0a, 0x02, 0x46, 0x54, 0x12, - 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, - 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, - 0x65, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, - 0x1a, 0x0a, 0x08, 0x6d, 0x69, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3a, 0x09, 0xca, 0xb4, 0x2d, - 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x73, 0x0a, 0x09, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, + 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x22, 0x8d, + 0x01, 0x0a, 0x07, 0x46, 0x54, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, + 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, 0x1a, + 0x0a, 0x08, 0x6d, 0x69, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3a, 0x12, 0x88, 0xa0, 0x1f, 0x01, + 0xca, 0xb4, 0x2d, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x22, 0x56, + 0x0a, 0x08, 0x4e, 0x46, 0x54, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, + 0x74, 0x61, 0x3a, 0x12, 0x88, 0xa0, 0x1f, 0x01, 0xca, 0xb4, 0x2d, 0x0a, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x22, 0x48, 0x0a, 0x03, 0x4e, 0x46, 0x54, 0x12, 0x19, 0x0a, + 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, + 0x22, 0xa9, 0x01, 0x0a, 0x08, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x46, 0x54, 0x12, 0x1f, 0x0a, + 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, + 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, + 0x61, 0x12, 0x2e, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x3a, 0x09, 0xca, 0xb4, 0x2d, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xab, 0x01, 0x0a, + 0x02, 0x46, 0x54, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x22, 0x70, 0x0a, 0x04, 0x43, - 0x6f, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x43, - 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, - 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, - 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, - 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x3a, 0x08, 0x98, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x7a, 0x0a, - 0x05, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x70, 0x65, - 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x77, 0x0a, 0x0d, 0x41, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x06, 0x68, 0x6f, - 0x6c, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x08, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, + 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, + 0x61, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, + 0x61, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x69, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3a, + 0x09, 0xca, 0xb4, 0x2d, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x73, 0x0a, 0x09, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, + 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x22, + 0x70, 0x0a, 0x04, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x49, 0x64, 0x12, 0x43, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, + 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x08, 0x98, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, + 0x01, 0x22, 0x7a, 0x0a, 0x05, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x67, 0x72, + 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x3d, + 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x77, 0x0a, + 0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, + 0x0a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x22, 0x33, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0xf3, 0x01, 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x16, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, - 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x1a, 0x19, 0x8a, 0x9d, 0x20, 0x15, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x29, 0x0a, - 0x10, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x53, 0x53, 0x55, - 0x45, 0x10, 0x01, 0x1a, 0x13, 0x8a, 0x9d, 0x20, 0x0f, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, - 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x59, 0x10, 0x02, 0x1a, - 0x14, 0x8a, 0x9d, 0x20, 0x10, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, - 0x6f, 0x64, 0x69, 0x66, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, - 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4e, 0x54, 0x10, 0x03, 0x1a, 0x12, 0x8a, 0x9d, 0x20, 0x0e, - 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x74, 0x12, 0x27, - 0x0a, 0x0f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x55, 0x52, - 0x4e, 0x10, 0x04, 0x1a, 0x12, 0x8a, 0x9d, 0x20, 0x0e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x42, 0x75, 0x72, 0x6e, 0x1a, 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0xbe, 0x02, - 0x0a, 0x10, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x1d, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, - 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x1f, 0x8a, 0x9d, 0x20, 0x1b, 0x4c, 0x65, 0x67, 0x61, 0x63, - 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x73, 0x70, 0x65, - 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, - 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x53, 0x53, 0x55, - 0x45, 0x10, 0x01, 0x1a, 0x19, 0x8a, 0x9d, 0x20, 0x15, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x12, 0x38, - 0x0a, 0x18, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, - 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x59, 0x10, 0x02, 0x1a, 0x1a, 0x8a, 0x9d, - 0x20, 0x16, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x12, 0x34, 0x0a, 0x16, 0x4c, 0x45, 0x47, 0x41, - 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, - 0x4e, 0x54, 0x10, 0x03, 0x1a, 0x18, 0x8a, 0x9d, 0x20, 0x14, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, - 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x74, 0x12, 0x34, - 0x0a, 0x16, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, - 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x55, 0x52, 0x4e, 0x10, 0x04, 0x1a, 0x18, 0x8a, 0x9d, 0x20, 0x14, - 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x42, 0x75, 0x72, 0x6e, 0x1a, 0x08, 0x88, 0xa3, 0x1e, 0x00, 0xa8, 0xa4, 0x1e, 0x00, 0x42, 0xba, - 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x61, 0x70, 0x69, - 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, - 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, - 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, - 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, + 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, + 0x12, 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x33, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0xf3, 0x01, 0x0a, 0x0a, + 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x16, 0x50, 0x45, + 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x19, 0x8a, 0x9d, 0x20, 0x15, 0x50, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, + 0x64, 0x12, 0x29, 0x0a, 0x10, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, + 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x01, 0x1a, 0x13, 0x8a, 0x9d, 0x20, 0x0f, 0x50, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x12, 0x2b, 0x0a, 0x11, + 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x4f, 0x44, 0x49, 0x46, + 0x59, 0x10, 0x02, 0x1a, 0x14, 0x8a, 0x9d, 0x20, 0x10, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x50, 0x45, 0x52, + 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4e, 0x54, 0x10, 0x03, 0x1a, 0x12, + 0x8a, 0x9d, 0x20, 0x0e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x69, + 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, + 0x5f, 0x42, 0x55, 0x52, 0x4e, 0x10, 0x04, 0x1a, 0x12, 0x8a, 0x9d, 0x20, 0x0e, 0x50, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x75, 0x72, 0x6e, 0x1a, 0x04, 0x88, 0xa3, 0x1e, + 0x00, 0x2a, 0xbe, 0x02, 0x0a, 0x10, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x1d, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, + 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x1f, 0x8a, 0x9d, 0x20, 0x1b, 0x4c, + 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x55, + 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x4c, 0x45, + 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, + 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x01, 0x1a, 0x19, 0x8a, 0x9d, 0x20, 0x15, 0x4c, 0x65, 0x67, + 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x73, 0x73, + 0x75, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, + 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x59, 0x10, 0x02, + 0x1a, 0x1a, 0x8a, 0x9d, 0x20, 0x16, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x12, 0x34, 0x0a, 0x16, + 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, + 0x4e, 0x5f, 0x4d, 0x49, 0x4e, 0x54, 0x10, 0x03, 0x1a, 0x18, 0x8a, 0x9d, 0x20, 0x14, 0x4c, 0x65, + 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x69, + 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, + 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x55, 0x52, 0x4e, 0x10, 0x04, 0x1a, 0x18, + 0x8a, 0x9d, 0x20, 0x14, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x75, 0x72, 0x6e, 0x1a, 0x08, 0x88, 0xa3, 0x1e, 0x00, 0xa8, 0xa4, + 0x1e, 0x00, 0x42, 0xba, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x43, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x22, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, + 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, - 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, - 0x3a, 0x56, 0x31, 0xc8, 0xe1, 0x1e, 0x00, 0xa8, 0xe2, 0x1e, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x31, 0xe2, 0x02, 0x1d, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x13, 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0xc8, 0xe1, 0x1e, 0x00, 0xa8, 0xe2, 0x1e, 0x00, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/lbm/collection/v1/event.pulsar.go b/api/lbm/collection/v1/event.pulsar.go index 7a37e3b95d..f7dab26132 100644 --- a/api/lbm/collection/v1/event.pulsar.go +++ b/api/lbm/collection/v1/event.pulsar.go @@ -9234,2582 +9234,6 @@ func (x *fastReflection_EventModifiedNFT) ProtoMethods() *protoiface.Methods { } } -var ( - md_EventAttached protoreflect.MessageDescriptor - fd_EventAttached_contract_id protoreflect.FieldDescriptor - fd_EventAttached_operator protoreflect.FieldDescriptor - fd_EventAttached_holder protoreflect.FieldDescriptor - fd_EventAttached_subject protoreflect.FieldDescriptor - fd_EventAttached_target protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventAttached = File_lbm_collection_v1_event_proto.Messages().ByName("EventAttached") - fd_EventAttached_contract_id = md_EventAttached.Fields().ByName("contract_id") - fd_EventAttached_operator = md_EventAttached.Fields().ByName("operator") - fd_EventAttached_holder = md_EventAttached.Fields().ByName("holder") - fd_EventAttached_subject = md_EventAttached.Fields().ByName("subject") - fd_EventAttached_target = md_EventAttached.Fields().ByName("target") -} - -var _ protoreflect.Message = (*fastReflection_EventAttached)(nil) - -type fastReflection_EventAttached EventAttached - -func (x *EventAttached) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventAttached)(x) -} - -func (x *EventAttached) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[14] - 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_EventAttached_messageType fastReflection_EventAttached_messageType -var _ protoreflect.MessageType = fastReflection_EventAttached_messageType{} - -type fastReflection_EventAttached_messageType struct{} - -func (x fastReflection_EventAttached_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventAttached)(nil) -} -func (x fastReflection_EventAttached_messageType) New() protoreflect.Message { - return new(fastReflection_EventAttached) -} -func (x fastReflection_EventAttached_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventAttached -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventAttached) Descriptor() protoreflect.MessageDescriptor { - return md_EventAttached -} - -// 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_EventAttached) Type() protoreflect.MessageType { - return _fastReflection_EventAttached_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventAttached) New() protoreflect.Message { - return new(fastReflection_EventAttached) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventAttached) Interface() protoreflect.ProtoMessage { - return (*EventAttached)(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_EventAttached) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventAttached_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventAttached_operator, value) { - return - } - } - if x.Holder != "" { - value := protoreflect.ValueOfString(x.Holder) - if !f(fd_EventAttached_holder, value) { - return - } - } - if x.Subject != "" { - value := protoreflect.ValueOfString(x.Subject) - if !f(fd_EventAttached_subject, value) { - return - } - } - if x.Target != "" { - value := protoreflect.ValueOfString(x.Target) - if !f(fd_EventAttached_target, 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_EventAttached) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventAttached.operator": - return x.Operator != "" - case "lbm.collection.v1.EventAttached.holder": - return x.Holder != "" - case "lbm.collection.v1.EventAttached.subject": - return x.Subject != "" - case "lbm.collection.v1.EventAttached.target": - return x.Target != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached 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_EventAttached) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventAttached.operator": - x.Operator = "" - case "lbm.collection.v1.EventAttached.holder": - x.Holder = "" - case "lbm.collection.v1.EventAttached.subject": - x.Subject = "" - case "lbm.collection.v1.EventAttached.target": - x.Target = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached 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_EventAttached) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventAttached.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventAttached.holder": - value := x.Holder - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventAttached.subject": - value := x.Subject - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventAttached.target": - value := x.Target - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached 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_EventAttached) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventAttached.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventAttached.holder": - x.Holder = value.Interface().(string) - case "lbm.collection.v1.EventAttached.subject": - x.Subject = value.Interface().(string) - case "lbm.collection.v1.EventAttached.target": - x.Target = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached 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_EventAttached) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventAttached is not mutable")) - case "lbm.collection.v1.EventAttached.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventAttached is not mutable")) - case "lbm.collection.v1.EventAttached.holder": - panic(fmt.Errorf("field holder of message lbm.collection.v1.EventAttached is not mutable")) - case "lbm.collection.v1.EventAttached.subject": - panic(fmt.Errorf("field subject of message lbm.collection.v1.EventAttached is not mutable")) - case "lbm.collection.v1.EventAttached.target": - panic(fmt.Errorf("field target of message lbm.collection.v1.EventAttached is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached 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_EventAttached) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventAttached.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventAttached.holder": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventAttached.subject": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventAttached.target": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached 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_EventAttached) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventAttached", 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_EventAttached) 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_EventAttached) 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_EventAttached) 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_EventAttached) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventAttached) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Holder) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Subject) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Target) - 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().(*EventAttached) - 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.Target) > 0 { - i -= len(x.Target) - copy(dAtA[i:], x.Target) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Target))) - i-- - dAtA[i] = 0x2a - } - if len(x.Subject) > 0 { - i -= len(x.Subject) - copy(dAtA[i:], x.Subject) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Subject))) - i-- - dAtA[i] = 0x22 - } - if len(x.Holder) > 0 { - i -= len(x.Holder) - copy(dAtA[i:], x.Holder) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holder))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*EventAttached) - 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: EventAttached: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventAttached: 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 ContractId", 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.ContractId = 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 Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Holder", 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.Holder = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Subject", 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.Subject = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Target", 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.Target = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventDetached protoreflect.MessageDescriptor - fd_EventDetached_contract_id protoreflect.FieldDescriptor - fd_EventDetached_operator protoreflect.FieldDescriptor - fd_EventDetached_holder protoreflect.FieldDescriptor - fd_EventDetached_subject protoreflect.FieldDescriptor - fd_EventDetached_previous_parent protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventDetached = File_lbm_collection_v1_event_proto.Messages().ByName("EventDetached") - fd_EventDetached_contract_id = md_EventDetached.Fields().ByName("contract_id") - fd_EventDetached_operator = md_EventDetached.Fields().ByName("operator") - fd_EventDetached_holder = md_EventDetached.Fields().ByName("holder") - fd_EventDetached_subject = md_EventDetached.Fields().ByName("subject") - fd_EventDetached_previous_parent = md_EventDetached.Fields().ByName("previous_parent") -} - -var _ protoreflect.Message = (*fastReflection_EventDetached)(nil) - -type fastReflection_EventDetached EventDetached - -func (x *EventDetached) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventDetached)(x) -} - -func (x *EventDetached) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[15] - 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_EventDetached_messageType fastReflection_EventDetached_messageType -var _ protoreflect.MessageType = fastReflection_EventDetached_messageType{} - -type fastReflection_EventDetached_messageType struct{} - -func (x fastReflection_EventDetached_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventDetached)(nil) -} -func (x fastReflection_EventDetached_messageType) New() protoreflect.Message { - return new(fastReflection_EventDetached) -} -func (x fastReflection_EventDetached_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventDetached -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventDetached) Descriptor() protoreflect.MessageDescriptor { - return md_EventDetached -} - -// 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_EventDetached) Type() protoreflect.MessageType { - return _fastReflection_EventDetached_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventDetached) New() protoreflect.Message { - return new(fastReflection_EventDetached) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventDetached) Interface() protoreflect.ProtoMessage { - return (*EventDetached)(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_EventDetached) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventDetached_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventDetached_operator, value) { - return - } - } - if x.Holder != "" { - value := protoreflect.ValueOfString(x.Holder) - if !f(fd_EventDetached_holder, value) { - return - } - } - if x.Subject != "" { - value := protoreflect.ValueOfString(x.Subject) - if !f(fd_EventDetached_subject, value) { - return - } - } - if x.PreviousParent != "" { - value := protoreflect.ValueOfString(x.PreviousParent) - if !f(fd_EventDetached_previous_parent, 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_EventDetached) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventDetached.operator": - return x.Operator != "" - case "lbm.collection.v1.EventDetached.holder": - return x.Holder != "" - case "lbm.collection.v1.EventDetached.subject": - return x.Subject != "" - case "lbm.collection.v1.EventDetached.previous_parent": - return x.PreviousParent != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached 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_EventDetached) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventDetached.operator": - x.Operator = "" - case "lbm.collection.v1.EventDetached.holder": - x.Holder = "" - case "lbm.collection.v1.EventDetached.subject": - x.Subject = "" - case "lbm.collection.v1.EventDetached.previous_parent": - x.PreviousParent = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached 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_EventDetached) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventDetached.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventDetached.holder": - value := x.Holder - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventDetached.subject": - value := x.Subject - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventDetached.previous_parent": - value := x.PreviousParent - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached 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_EventDetached) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventDetached.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventDetached.holder": - x.Holder = value.Interface().(string) - case "lbm.collection.v1.EventDetached.subject": - x.Subject = value.Interface().(string) - case "lbm.collection.v1.EventDetached.previous_parent": - x.PreviousParent = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached 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_EventDetached) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventDetached is not mutable")) - case "lbm.collection.v1.EventDetached.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventDetached is not mutable")) - case "lbm.collection.v1.EventDetached.holder": - panic(fmt.Errorf("field holder of message lbm.collection.v1.EventDetached is not mutable")) - case "lbm.collection.v1.EventDetached.subject": - panic(fmt.Errorf("field subject of message lbm.collection.v1.EventDetached is not mutable")) - case "lbm.collection.v1.EventDetached.previous_parent": - panic(fmt.Errorf("field previous_parent of message lbm.collection.v1.EventDetached is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached 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_EventDetached) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventDetached.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventDetached.holder": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventDetached.subject": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventDetached.previous_parent": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached 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_EventDetached) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventDetached", 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_EventDetached) 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_EventDetached) 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_EventDetached) 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_EventDetached) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventDetached) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Holder) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Subject) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.PreviousParent) - 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().(*EventDetached) - 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.PreviousParent) > 0 { - i -= len(x.PreviousParent) - copy(dAtA[i:], x.PreviousParent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousParent))) - i-- - dAtA[i] = 0x2a - } - if len(x.Subject) > 0 { - i -= len(x.Subject) - copy(dAtA[i:], x.Subject) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Subject))) - i-- - dAtA[i] = 0x22 - } - if len(x.Holder) > 0 { - i -= len(x.Holder) - copy(dAtA[i:], x.Holder) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holder))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*EventDetached) - 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: EventDetached: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDetached: 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 ContractId", 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.ContractId = 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 Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Holder", 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.Holder = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Subject", 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.Subject = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousParent", 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.PreviousParent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventOwnerChanged protoreflect.MessageDescriptor - fd_EventOwnerChanged_contract_id protoreflect.FieldDescriptor - fd_EventOwnerChanged_token_id protoreflect.FieldDescriptor - fd_EventOwnerChanged_from protoreflect.FieldDescriptor - fd_EventOwnerChanged_to protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventOwnerChanged = File_lbm_collection_v1_event_proto.Messages().ByName("EventOwnerChanged") - fd_EventOwnerChanged_contract_id = md_EventOwnerChanged.Fields().ByName("contract_id") - fd_EventOwnerChanged_token_id = md_EventOwnerChanged.Fields().ByName("token_id") - fd_EventOwnerChanged_from = md_EventOwnerChanged.Fields().ByName("from") - fd_EventOwnerChanged_to = md_EventOwnerChanged.Fields().ByName("to") -} - -var _ protoreflect.Message = (*fastReflection_EventOwnerChanged)(nil) - -type fastReflection_EventOwnerChanged EventOwnerChanged - -func (x *EventOwnerChanged) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventOwnerChanged)(x) -} - -func (x *EventOwnerChanged) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[16] - 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_EventOwnerChanged_messageType fastReflection_EventOwnerChanged_messageType -var _ protoreflect.MessageType = fastReflection_EventOwnerChanged_messageType{} - -type fastReflection_EventOwnerChanged_messageType struct{} - -func (x fastReflection_EventOwnerChanged_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventOwnerChanged)(nil) -} -func (x fastReflection_EventOwnerChanged_messageType) New() protoreflect.Message { - return new(fastReflection_EventOwnerChanged) -} -func (x fastReflection_EventOwnerChanged_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventOwnerChanged -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventOwnerChanged) Descriptor() protoreflect.MessageDescriptor { - return md_EventOwnerChanged -} - -// 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_EventOwnerChanged) Type() protoreflect.MessageType { - return _fastReflection_EventOwnerChanged_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventOwnerChanged) New() protoreflect.Message { - return new(fastReflection_EventOwnerChanged) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventOwnerChanged) Interface() protoreflect.ProtoMessage { - return (*EventOwnerChanged)(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_EventOwnerChanged) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventOwnerChanged_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_EventOwnerChanged_token_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_EventOwnerChanged_from, value) { - return - } - } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_EventOwnerChanged_to, 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_EventOwnerChanged) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventOwnerChanged.token_id": - return x.TokenId != "" - case "lbm.collection.v1.EventOwnerChanged.from": - return x.From != "" - case "lbm.collection.v1.EventOwnerChanged.to": - return x.To != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged 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_EventOwnerChanged) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventOwnerChanged.token_id": - x.TokenId = "" - case "lbm.collection.v1.EventOwnerChanged.from": - x.From = "" - case "lbm.collection.v1.EventOwnerChanged.to": - x.To = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged 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_EventOwnerChanged) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventOwnerChanged.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventOwnerChanged.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventOwnerChanged.to": - value := x.To - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged 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_EventOwnerChanged) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventOwnerChanged.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.EventOwnerChanged.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.EventOwnerChanged.to": - x.To = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged 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_EventOwnerChanged) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventOwnerChanged is not mutable")) - case "lbm.collection.v1.EventOwnerChanged.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.EventOwnerChanged is not mutable")) - case "lbm.collection.v1.EventOwnerChanged.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.EventOwnerChanged is not mutable")) - case "lbm.collection.v1.EventOwnerChanged.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.EventOwnerChanged is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged 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_EventOwnerChanged) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventOwnerChanged.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventOwnerChanged.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventOwnerChanged.to": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged 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_EventOwnerChanged) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventOwnerChanged", 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_EventOwnerChanged) 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_EventOwnerChanged) 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_EventOwnerChanged) 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_EventOwnerChanged) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventOwnerChanged) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.To) - 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().(*EventOwnerChanged) - 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.To) > 0 { - i -= len(x.To) - copy(dAtA[i:], x.To) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.To))) - i-- - dAtA[i] = 0x22 - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x1a - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*EventOwnerChanged) - 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: EventOwnerChanged: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventOwnerChanged: 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 ContractId", 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.ContractId = 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 TokenId", 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.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field To", 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.To = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventRootChanged protoreflect.MessageDescriptor - fd_EventRootChanged_contract_id protoreflect.FieldDescriptor - fd_EventRootChanged_token_id protoreflect.FieldDescriptor - fd_EventRootChanged_from protoreflect.FieldDescriptor - fd_EventRootChanged_to protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventRootChanged = File_lbm_collection_v1_event_proto.Messages().ByName("EventRootChanged") - fd_EventRootChanged_contract_id = md_EventRootChanged.Fields().ByName("contract_id") - fd_EventRootChanged_token_id = md_EventRootChanged.Fields().ByName("token_id") - fd_EventRootChanged_from = md_EventRootChanged.Fields().ByName("from") - fd_EventRootChanged_to = md_EventRootChanged.Fields().ByName("to") -} - -var _ protoreflect.Message = (*fastReflection_EventRootChanged)(nil) - -type fastReflection_EventRootChanged EventRootChanged - -func (x *EventRootChanged) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventRootChanged)(x) -} - -func (x *EventRootChanged) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[17] - 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_EventRootChanged_messageType fastReflection_EventRootChanged_messageType -var _ protoreflect.MessageType = fastReflection_EventRootChanged_messageType{} - -type fastReflection_EventRootChanged_messageType struct{} - -func (x fastReflection_EventRootChanged_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventRootChanged)(nil) -} -func (x fastReflection_EventRootChanged_messageType) New() protoreflect.Message { - return new(fastReflection_EventRootChanged) -} -func (x fastReflection_EventRootChanged_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventRootChanged -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventRootChanged) Descriptor() protoreflect.MessageDescriptor { - return md_EventRootChanged -} - -// 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_EventRootChanged) Type() protoreflect.MessageType { - return _fastReflection_EventRootChanged_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventRootChanged) New() protoreflect.Message { - return new(fastReflection_EventRootChanged) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventRootChanged) Interface() protoreflect.ProtoMessage { - return (*EventRootChanged)(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_EventRootChanged) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventRootChanged_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_EventRootChanged_token_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_EventRootChanged_from, value) { - return - } - } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_EventRootChanged_to, 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_EventRootChanged) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventRootChanged.token_id": - return x.TokenId != "" - case "lbm.collection.v1.EventRootChanged.from": - return x.From != "" - case "lbm.collection.v1.EventRootChanged.to": - return x.To != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged 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_EventRootChanged) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventRootChanged.token_id": - x.TokenId = "" - case "lbm.collection.v1.EventRootChanged.from": - x.From = "" - case "lbm.collection.v1.EventRootChanged.to": - x.To = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged 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_EventRootChanged) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventRootChanged.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventRootChanged.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventRootChanged.to": - value := x.To - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged 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_EventRootChanged) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventRootChanged.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.EventRootChanged.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.EventRootChanged.to": - x.To = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged 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_EventRootChanged) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventRootChanged is not mutable")) - case "lbm.collection.v1.EventRootChanged.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.EventRootChanged is not mutable")) - case "lbm.collection.v1.EventRootChanged.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.EventRootChanged is not mutable")) - case "lbm.collection.v1.EventRootChanged.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.EventRootChanged is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged 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_EventRootChanged) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventRootChanged.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventRootChanged.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventRootChanged.to": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged 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_EventRootChanged) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventRootChanged", 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_EventRootChanged) 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_EventRootChanged) 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_EventRootChanged) 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_EventRootChanged) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventRootChanged) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.To) - 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().(*EventRootChanged) - 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.To) > 0 { - i -= len(x.To) - copy(dAtA[i:], x.To) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.To))) - i-- - dAtA[i] = 0x22 - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x1a - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*EventRootChanged) - 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: EventRootChanged: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventRootChanged: 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 ContractId", 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.ContractId = 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 TokenId", 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.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field To", 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.To = 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 @@ -12843,288 +10267,6 @@ func (x *EventModifiedNFT) GetChanges() []*Attribute { return nil } -// EventAttached is emitted when a token is attached to another. -// -// Since: 0.46.0 (finschia) -type EventAttached struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address which triggered the attach. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address which holds the tokens. - Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` - // subject of the attach. - Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` - // target of the attach. - Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` -} - -func (x *EventAttached) Reset() { - *x = EventAttached{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventAttached) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventAttached) ProtoMessage() {} - -// Deprecated: Use EventAttached.ProtoReflect.Descriptor instead. -func (*EventAttached) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{14} -} - -func (x *EventAttached) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *EventAttached) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *EventAttached) GetHolder() string { - if x != nil { - return x.Holder - } - return "" -} - -func (x *EventAttached) GetSubject() string { - if x != nil { - return x.Subject - } - return "" -} - -func (x *EventAttached) GetTarget() string { - if x != nil { - return x.Target - } - return "" -} - -// EventDetached is emitted when a token is detached from its parent. -// -// Since: 0.46.0 (finschia) -type EventDetached struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address which triggered the detach. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address which holds the token. - Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` - // token being detached. - Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` - // parent token before the detach. - PreviousParent string `protobuf:"bytes,5,opt,name=previous_parent,json=previousParent,proto3" json:"previous_parent,omitempty"` -} - -func (x *EventDetached) Reset() { - *x = EventDetached{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventDetached) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventDetached) ProtoMessage() {} - -// Deprecated: Use EventDetached.ProtoReflect.Descriptor instead. -func (*EventDetached) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{15} -} - -func (x *EventDetached) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *EventDetached) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *EventDetached) GetHolder() string { - if x != nil { - return x.Holder - } - return "" -} - -func (x *EventDetached) GetSubject() string { - if x != nil { - return x.Subject - } - return "" -} - -func (x *EventDetached) GetPreviousParent() string { - if x != nil { - return x.PreviousParent - } - return "" -} - -// EventOwnerChanged is emitted when the owner of token is changed by operation applied to its ancestor. -// -// Since: 0.46.0 (finschia) -type EventOwnerChanged struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // address of the previous owner before the change. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // address of the new owner. - To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` -} - -func (x *EventOwnerChanged) Reset() { - *x = EventOwnerChanged{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventOwnerChanged) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventOwnerChanged) ProtoMessage() {} - -// Deprecated: Use EventOwnerChanged.ProtoReflect.Descriptor instead. -func (*EventOwnerChanged) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{16} -} - -func (x *EventOwnerChanged) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *EventOwnerChanged) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -func (x *EventOwnerChanged) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *EventOwnerChanged) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -// EventRootChanged is emitted when the root of token is changed by operation applied to its ancestor. -// -// Since: 0.46.0 (finschia) -type EventRootChanged struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // token id of the previous root before the change. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // token id of the new root. - To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` -} - -func (x *EventRootChanged) Reset() { - *x = EventRootChanged{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventRootChanged) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventRootChanged) ProtoMessage() {} - -// Deprecated: Use EventRootChanged.ProtoReflect.Descriptor instead. -func (*EventRootChanged) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{17} -} - -func (x *EventRootChanged) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *EventRootChanged) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -func (x *EventRootChanged) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *EventRootChanged) GetTo() string { - if x != nil { - return x.To - } - return "" -} - var File_lbm_collection_v1_event_proto protoreflect.FileDescriptor var file_lbm_collection_v1_event_proto_rawDesc = []byte{ @@ -13308,85 +10450,37 @@ var file_lbm_collection_v1_event_proto_rawDesc = []byte{ 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0xca, 0x01, 0x0a, - 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x12, 0x1f, - 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, - 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, - 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xdb, 0x01, 0x0a, 0x0d, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x08, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x68, 0x6f, - 0x6c, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x27, - 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, - 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x1f, 0x0a, - 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, - 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, - 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x28, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x02, 0x74, - 0x6f, 0x22, 0xa6, 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, - 0x12, 0x28, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x02, 0x74, 0x6f, 0x2a, 0xa4, 0x02, 0x0a, 0x0c, 0x41, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x3a, 0x0a, 0x19, 0x41, - 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x1b, 0x8a, 0x9d, 0x20, 0x17, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x55, 0x6e, 0x73, 0x70, - 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x41, 0x54, 0x54, 0x52, 0x49, - 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x1a, + 0xde, 0x1f, 0x00, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2a, 0xa4, 0x02, 0x0a, + 0x0c, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x3a, 0x0a, + 0x19, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x1b, 0x8a, 0x9d, + 0x20, 0x17, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x55, 0x6e, + 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x41, 0x54, 0x54, + 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, + 0x01, 0x1a, 0x14, 0x8a, 0x9d, 0x20, 0x10, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x41, 0x54, 0x54, 0x52, 0x49, + 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x10, 0x02, 0x1a, 0x14, 0x8a, 0x9d, 0x20, 0x10, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, - 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x10, 0x02, 0x1a, 0x14, 0x8a, - 0x9d, 0x20, 0x10, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x4d, - 0x65, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x1a, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, - 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4d, 0x47, 0x5f, 0x55, 0x52, - 0x49, 0x10, 0x08, 0x1a, 0x1a, 0x8a, 0x9d, 0x20, 0x16, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x4b, 0x65, 0x79, 0x42, 0x61, 0x73, 0x65, 0x49, 0x6d, 0x67, 0x55, 0x52, 0x49, 0x12, - 0x2a, 0x0a, 0x11, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, - 0x5f, 0x55, 0x52, 0x49, 0x10, 0x14, 0x1a, 0x13, 0x8a, 0x9d, 0x20, 0x0f, 0x41, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x55, 0x52, 0x49, 0x1a, 0x08, 0x88, 0xa3, 0x1e, - 0x00, 0xa8, 0xa4, 0x1e, 0x00, 0x22, 0x04, 0x08, 0x03, 0x10, 0x07, 0x22, 0x04, 0x08, 0x09, 0x10, - 0x13, 0x42, 0xad, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x61, 0x70, 0x69, 0x2f, 0x6c, - 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, - 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, - 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4c, 0x62, - 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4c, 0x62, - 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x79, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x1a, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, + 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4d, 0x47, 0x5f, + 0x55, 0x52, 0x49, 0x10, 0x08, 0x1a, 0x1a, 0x8a, 0x9d, 0x20, 0x16, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x42, 0x61, 0x73, 0x65, 0x49, 0x6d, 0x67, 0x55, 0x52, + 0x49, 0x12, 0x2a, 0x0a, 0x11, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, + 0x45, 0x59, 0x5f, 0x55, 0x52, 0x49, 0x10, 0x14, 0x1a, 0x13, 0x8a, 0x9d, 0x20, 0x0f, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x55, 0x52, 0x49, 0x1a, 0x08, 0x88, + 0xa3, 0x1e, 0x00, 0xa8, 0xa4, 0x1e, 0x00, 0x22, 0x04, 0x08, 0x03, 0x10, 0x07, 0x22, 0x04, 0x08, + 0x09, 0x10, 0x13, 0x42, 0xad, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x61, 0x70, 0x69, + 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, + 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, + 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, + 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, + 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -13402,7 +10496,7 @@ func file_lbm_collection_v1_event_proto_rawDescGZIP() []byte { } var file_lbm_collection_v1_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_lbm_collection_v1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_lbm_collection_v1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 14) var file_lbm_collection_v1_event_proto_goTypes = []interface{}{ (AttributeKey)(0), // 0: lbm.collection.v1.AttributeKey (*EventSent)(nil), // 1: lbm.collection.v1.EventSent @@ -13419,25 +10513,21 @@ var file_lbm_collection_v1_event_proto_goTypes = []interface{}{ (*EventModifiedContract)(nil), // 12: lbm.collection.v1.EventModifiedContract (*EventModifiedTokenClass)(nil), // 13: lbm.collection.v1.EventModifiedTokenClass (*EventModifiedNFT)(nil), // 14: lbm.collection.v1.EventModifiedNFT - (*EventAttached)(nil), // 15: lbm.collection.v1.EventAttached - (*EventDetached)(nil), // 16: lbm.collection.v1.EventDetached - (*EventOwnerChanged)(nil), // 17: lbm.collection.v1.EventOwnerChanged - (*EventRootChanged)(nil), // 18: lbm.collection.v1.EventRootChanged - (*Coin)(nil), // 19: lbm.collection.v1.Coin - (Permission)(0), // 20: lbm.collection.v1.Permission - (*NFT)(nil), // 21: lbm.collection.v1.NFT - (*Attribute)(nil), // 22: lbm.collection.v1.Attribute + (*Coin)(nil), // 15: lbm.collection.v1.Coin + (Permission)(0), // 16: lbm.collection.v1.Permission + (*NFT)(nil), // 17: lbm.collection.v1.NFT + (*Attribute)(nil), // 18: lbm.collection.v1.Attribute } var file_lbm_collection_v1_event_proto_depIdxs = []int32{ - 19, // 0: lbm.collection.v1.EventSent.amount:type_name -> lbm.collection.v1.Coin - 20, // 1: lbm.collection.v1.EventGranted.permission:type_name -> lbm.collection.v1.Permission - 20, // 2: lbm.collection.v1.EventRenounced.permission:type_name -> lbm.collection.v1.Permission - 19, // 3: lbm.collection.v1.EventMintedFT.amount:type_name -> lbm.collection.v1.Coin - 21, // 4: lbm.collection.v1.EventMintedNFT.tokens:type_name -> lbm.collection.v1.NFT - 19, // 5: lbm.collection.v1.EventBurned.amount:type_name -> lbm.collection.v1.Coin - 22, // 6: lbm.collection.v1.EventModifiedContract.changes:type_name -> lbm.collection.v1.Attribute - 22, // 7: lbm.collection.v1.EventModifiedTokenClass.changes:type_name -> lbm.collection.v1.Attribute - 22, // 8: lbm.collection.v1.EventModifiedNFT.changes:type_name -> lbm.collection.v1.Attribute + 15, // 0: lbm.collection.v1.EventSent.amount:type_name -> lbm.collection.v1.Coin + 16, // 1: lbm.collection.v1.EventGranted.permission:type_name -> lbm.collection.v1.Permission + 16, // 2: lbm.collection.v1.EventRenounced.permission:type_name -> lbm.collection.v1.Permission + 15, // 3: lbm.collection.v1.EventMintedFT.amount:type_name -> lbm.collection.v1.Coin + 17, // 4: lbm.collection.v1.EventMintedNFT.tokens:type_name -> lbm.collection.v1.NFT + 15, // 5: lbm.collection.v1.EventBurned.amount:type_name -> lbm.collection.v1.Coin + 18, // 6: lbm.collection.v1.EventModifiedContract.changes:type_name -> lbm.collection.v1.Attribute + 18, // 7: lbm.collection.v1.EventModifiedTokenClass.changes:type_name -> lbm.collection.v1.Attribute + 18, // 8: lbm.collection.v1.EventModifiedNFT.changes:type_name -> lbm.collection.v1.Attribute 9, // [9:9] is the sub-list for method output_type 9, // [9:9] is the sub-list for method input_type 9, // [9:9] is the sub-list for extension type_name @@ -13620,54 +10710,6 @@ func file_lbm_collection_v1_event_proto_init() { return nil } } - file_lbm_collection_v1_event_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventAttached); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_event_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventDetached); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_event_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventOwnerChanged); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_event_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventRootChanged); 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{ @@ -13675,7 +10717,7 @@ func file_lbm_collection_v1_event_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_lbm_collection_v1_event_proto_rawDesc, NumEnums: 1, - NumMessages: 18, + NumMessages: 14, NumExtensions: 0, NumServices: 0, }, diff --git a/api/lbm/collection/v1/genesis.pulsar.go b/api/lbm/collection/v1/genesis.pulsar.go index 11a7fdad74..bfcbd0cb9a 100644 --- a/api/lbm/collection/v1/genesis.pulsar.go +++ b/api/lbm/collection/v1/genesis.pulsar.go @@ -321,57 +321,6 @@ func (x *_GenesisState_7_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_GenesisState_8_list)(nil) - -type _GenesisState_8_list struct { - list *[]*ContractTokenRelations -} - -func (x *_GenesisState_8_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_8_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_8_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ContractTokenRelations) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_8_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ContractTokenRelations) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_8_list) AppendMutable() protoreflect.Value { - v := new(ContractTokenRelations) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_8_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_8_list) NewElement() protoreflect.Value { - v := new(ContractTokenRelations) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_8_list) IsValid() bool { - return x.list != nil -} - var _ protoreflect.List = (*_GenesisState_9_list)(nil) type _GenesisState_9_list struct { @@ -585,7 +534,6 @@ var ( fd_GenesisState_next_token_ids protoreflect.FieldDescriptor fd_GenesisState_balances protoreflect.FieldDescriptor fd_GenesisState_nfts protoreflect.FieldDescriptor - fd_GenesisState_parents protoreflect.FieldDescriptor fd_GenesisState_grants protoreflect.FieldDescriptor fd_GenesisState_authorizations protoreflect.FieldDescriptor fd_GenesisState_supplies protoreflect.FieldDescriptor @@ -603,7 +551,6 @@ func init() { fd_GenesisState_next_token_ids = md_GenesisState.Fields().ByName("next_token_ids") fd_GenesisState_balances = md_GenesisState.Fields().ByName("balances") fd_GenesisState_nfts = md_GenesisState.Fields().ByName("nfts") - fd_GenesisState_parents = md_GenesisState.Fields().ByName("parents") fd_GenesisState_grants = md_GenesisState.Fields().ByName("grants") fd_GenesisState_authorizations = md_GenesisState.Fields().ByName("authorizations") fd_GenesisState_supplies = md_GenesisState.Fields().ByName("supplies") @@ -718,12 +665,6 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } - if len(x.Parents) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_8_list{list: &x.Parents}) - if !f(fd_GenesisState_parents, value) { - return - } - } if len(x.Grants) != 0 { value := protoreflect.ValueOfList(&_GenesisState_9_list{list: &x.Grants}) if !f(fd_GenesisState_grants, value) { @@ -783,8 +724,6 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return len(x.Balances) != 0 case "lbm.collection.v1.GenesisState.nfts": return len(x.Nfts) != 0 - case "lbm.collection.v1.GenesisState.parents": - return len(x.Parents) != 0 case "lbm.collection.v1.GenesisState.grants": return len(x.Grants) != 0 case "lbm.collection.v1.GenesisState.authorizations": @@ -825,8 +764,6 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.Balances = nil case "lbm.collection.v1.GenesisState.nfts": x.Nfts = nil - case "lbm.collection.v1.GenesisState.parents": - x.Parents = nil case "lbm.collection.v1.GenesisState.grants": x.Grants = nil case "lbm.collection.v1.GenesisState.authorizations": @@ -892,12 +829,6 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_7_list{list: &x.Nfts} return protoreflect.ValueOfList(listValue) - case "lbm.collection.v1.GenesisState.parents": - if len(x.Parents) == 0 { - return protoreflect.ValueOfList(&_GenesisState_8_list{}) - } - listValue := &_GenesisState_8_list{list: &x.Parents} - return protoreflect.ValueOfList(listValue) case "lbm.collection.v1.GenesisState.grants": if len(x.Grants) == 0 { return protoreflect.ValueOfList(&_GenesisState_9_list{}) @@ -971,10 +902,6 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_7_list) x.Nfts = *clv.list - case "lbm.collection.v1.GenesisState.parents": - lv := value.List() - clv := lv.(*_GenesisState_8_list) - x.Parents = *clv.list case "lbm.collection.v1.GenesisState.grants": lv := value.List() clv := lv.(*_GenesisState_9_list) @@ -1054,12 +981,6 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_7_list{list: &x.Nfts} return protoreflect.ValueOfList(value) - case "lbm.collection.v1.GenesisState.parents": - if x.Parents == nil { - x.Parents = []*ContractTokenRelations{} - } - value := &_GenesisState_8_list{list: &x.Parents} - return protoreflect.ValueOfList(value) case "lbm.collection.v1.GenesisState.grants": if x.Grants == nil { x.Grants = []*ContractGrants{} @@ -1123,9 +1044,6 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "lbm.collection.v1.GenesisState.nfts": list := []*ContractNFTs{} return protoreflect.ValueOfList(&_GenesisState_7_list{list: &list}) - case "lbm.collection.v1.GenesisState.parents": - list := []*ContractTokenRelations{} - return protoreflect.ValueOfList(&_GenesisState_8_list{list: &list}) case "lbm.collection.v1.GenesisState.grants": list := []*ContractGrants{} return protoreflect.ValueOfList(&_GenesisState_9_list{list: &list}) @@ -1250,12 +1168,6 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } - if len(x.Parents) > 0 { - for _, e := range x.Parents { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } if len(x.Grants) > 0 { for _, e := range x.Grants { l = options.Size(e) @@ -1391,22 +1303,6 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x4a } } - if len(x.Parents) > 0 { - for iNdEx := len(x.Parents) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Parents[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x42 - } - } if len(x.Nfts) > 0 { for iNdEx := len(x.Nfts) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.Nfts[iNdEx]) @@ -1806,40 +1702,6 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Parents", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Parents = append(x.Parents, &ContractTokenRelations{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Parents[len(x.Parents)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex case 9: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) @@ -8027,79 +7889,74 @@ func (x *fastReflection_NextTokenID) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_ContractTokenRelations_2_list)(nil) +var _ protoreflect.List = (*_ClassState_2_list)(nil) -type _ContractTokenRelations_2_list struct { - list *[]*TokenRelation +type _ClassState_2_list struct { + list *[]string } -func (x *_ContractTokenRelations_2_list) Len() int { +func (x *_ClassState_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_ContractTokenRelations_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +func (x *_ClassState_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) } -func (x *_ContractTokenRelations_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TokenRelation) +func (x *_ClassState_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_ContractTokenRelations_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TokenRelation) +func (x *_ClassState_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_ContractTokenRelations_2_list) AppendMutable() protoreflect.Value { - v := new(TokenRelation) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_ClassState_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message ClassState at list field Ids as it is not of Message kind")) } -func (x *_ContractTokenRelations_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } +func (x *_ClassState_2_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_ContractTokenRelations_2_list) NewElement() protoreflect.Value { - v := new(TokenRelation) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_ClassState_2_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) } -func (x *_ContractTokenRelations_2_list) IsValid() bool { +func (x *_ClassState_2_list) IsValid() bool { return x.list != nil } var ( - md_ContractTokenRelations protoreflect.MessageDescriptor - fd_ContractTokenRelations_contract_id protoreflect.FieldDescriptor - fd_ContractTokenRelations_relations protoreflect.FieldDescriptor + md_ClassState protoreflect.MessageDescriptor + fd_ClassState_nonce protoreflect.FieldDescriptor + fd_ClassState_ids protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_genesis_proto_init() - md_ContractTokenRelations = File_lbm_collection_v1_genesis_proto.Messages().ByName("ContractTokenRelations") - fd_ContractTokenRelations_contract_id = md_ContractTokenRelations.Fields().ByName("contract_id") - fd_ContractTokenRelations_relations = md_ContractTokenRelations.Fields().ByName("relations") + md_ClassState = File_lbm_collection_v1_genesis_proto.Messages().ByName("ClassState") + fd_ClassState_nonce = md_ClassState.Fields().ByName("nonce") + fd_ClassState_ids = md_ClassState.Fields().ByName("ids") } -var _ protoreflect.Message = (*fastReflection_ContractTokenRelations)(nil) +var _ protoreflect.Message = (*fastReflection_ClassState)(nil) -type fastReflection_ContractTokenRelations ContractTokenRelations +type fastReflection_ClassState ClassState -func (x *ContractTokenRelations) ProtoReflect() protoreflect.Message { - return (*fastReflection_ContractTokenRelations)(x) +func (x *ClassState) ProtoReflect() protoreflect.Message { + return (*fastReflection_ClassState)(x) } -func (x *ContractTokenRelations) slowProtoReflect() protoreflect.Message { +func (x *ClassState) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_genesis_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8111,43 +7968,43 @@ func (x *ContractTokenRelations) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ContractTokenRelations_messageType fastReflection_ContractTokenRelations_messageType -var _ protoreflect.MessageType = fastReflection_ContractTokenRelations_messageType{} +var _fastReflection_ClassState_messageType fastReflection_ClassState_messageType +var _ protoreflect.MessageType = fastReflection_ClassState_messageType{} -type fastReflection_ContractTokenRelations_messageType struct{} +type fastReflection_ClassState_messageType struct{} -func (x fastReflection_ContractTokenRelations_messageType) Zero() protoreflect.Message { - return (*fastReflection_ContractTokenRelations)(nil) +func (x fastReflection_ClassState_messageType) Zero() protoreflect.Message { + return (*fastReflection_ClassState)(nil) } -func (x fastReflection_ContractTokenRelations_messageType) New() protoreflect.Message { - return new(fastReflection_ContractTokenRelations) +func (x fastReflection_ClassState_messageType) New() protoreflect.Message { + return new(fastReflection_ClassState) } -func (x fastReflection_ContractTokenRelations_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ContractTokenRelations +func (x fastReflection_ClassState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ClassState } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ContractTokenRelations) Descriptor() protoreflect.MessageDescriptor { - return md_ContractTokenRelations +func (x *fastReflection_ClassState) Descriptor() protoreflect.MessageDescriptor { + return md_ClassState } // 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_ContractTokenRelations) Type() protoreflect.MessageType { - return _fastReflection_ContractTokenRelations_messageType +func (x *fastReflection_ClassState) Type() protoreflect.MessageType { + return _fastReflection_ClassState_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ContractTokenRelations) New() protoreflect.Message { - return new(fastReflection_ContractTokenRelations) +func (x *fastReflection_ClassState) New() protoreflect.Message { + return new(fastReflection_ClassState) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ContractTokenRelations) Interface() protoreflect.ProtoMessage { - return (*ContractTokenRelations)(x) +func (x *fastReflection_ClassState) Interface() protoreflect.ProtoMessage { + return (*ClassState)(x) } // Range iterates over every populated field in an undefined order, @@ -8155,16 +8012,16 @@ func (x *fastReflection_ContractTokenRelations) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ContractTokenRelations) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_ContractTokenRelations_contract_id, value) { +func (x *fastReflection_ClassState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != "" { + value := protoreflect.ValueOfString(x.Nonce) + if !f(fd_ClassState_nonce, value) { return } } - if len(x.Relations) != 0 { - value := protoreflect.ValueOfList(&_ContractTokenRelations_2_list{list: &x.Relations}) - if !f(fd_ContractTokenRelations_relations, value) { + if len(x.Ids) != 0 { + value := protoreflect.ValueOfList(&_ClassState_2_list{list: &x.Ids}) + if !f(fd_ClassState_ids, value) { return } } @@ -8181,17 +8038,17 @@ func (x *fastReflection_ContractTokenRelations) Range(f func(protoreflect.FieldD // 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_ContractTokenRelations) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ClassState) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.ContractTokenRelations.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.ContractTokenRelations.relations": - return len(x.Relations) != 0 + case "lbm.collection.v1.ClassState.nonce": + return x.Nonce != "" + case "lbm.collection.v1.ClassState.ids": + return len(x.Ids) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState does not contain field %s", fd.FullName())) } } @@ -8201,17 +8058,17 @@ func (x *fastReflection_ContractTokenRelations) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ContractTokenRelations) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ClassState) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.ContractTokenRelations.contract_id": - x.ContractId = "" - case "lbm.collection.v1.ContractTokenRelations.relations": - x.Relations = nil + case "lbm.collection.v1.ClassState.nonce": + x.Nonce = "" + case "lbm.collection.v1.ClassState.ids": + x.Ids = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState does not contain field %s", fd.FullName())) } } @@ -8221,22 +8078,22 @@ func (x *fastReflection_ContractTokenRelations) Clear(fd protoreflect.FieldDescr // 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_ContractTokenRelations) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ClassState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.ContractTokenRelations.contract_id": - value := x.ContractId + case "lbm.collection.v1.ClassState.nonce": + value := x.Nonce return protoreflect.ValueOfString(value) - case "lbm.collection.v1.ContractTokenRelations.relations": - if len(x.Relations) == 0 { - return protoreflect.ValueOfList(&_ContractTokenRelations_2_list{}) + case "lbm.collection.v1.ClassState.ids": + if len(x.Ids) == 0 { + return protoreflect.ValueOfList(&_ClassState_2_list{}) } - listValue := &_ContractTokenRelations_2_list{list: &x.Relations} + listValue := &_ClassState_2_list{list: &x.Ids} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState does not contain field %s", descriptor.FullName())) } } @@ -8250,19 +8107,19 @@ func (x *fastReflection_ContractTokenRelations) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ContractTokenRelations) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ClassState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.ContractTokenRelations.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.ContractTokenRelations.relations": + case "lbm.collection.v1.ClassState.nonce": + x.Nonce = value.Interface().(string) + case "lbm.collection.v1.ClassState.ids": lv := value.List() - clv := lv.(*_ContractTokenRelations_2_list) - x.Relations = *clv.list + clv := lv.(*_ClassState_2_list) + x.Ids = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState does not contain field %s", fd.FullName())) } } @@ -8276,49 +8133,49 @@ func (x *fastReflection_ContractTokenRelations) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ContractTokenRelations) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ClassState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.ContractTokenRelations.relations": - if x.Relations == nil { - x.Relations = []*TokenRelation{} + case "lbm.collection.v1.ClassState.ids": + if x.Ids == nil { + x.Ids = []string{} } - value := &_ContractTokenRelations_2_list{list: &x.Relations} + value := &_ClassState_2_list{list: &x.Ids} return protoreflect.ValueOfList(value) - case "lbm.collection.v1.ContractTokenRelations.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.ContractTokenRelations is not mutable")) + case "lbm.collection.v1.ClassState.nonce": + panic(fmt.Errorf("field nonce of message lbm.collection.v1.ClassState is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState 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_ContractTokenRelations) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ClassState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.ContractTokenRelations.contract_id": + case "lbm.collection.v1.ClassState.nonce": return protoreflect.ValueOfString("") - case "lbm.collection.v1.ContractTokenRelations.relations": - list := []*TokenRelation{} - return protoreflect.ValueOfList(&_ContractTokenRelations_2_list{list: &list}) + case "lbm.collection.v1.ClassState.ids": + list := []string{} + return protoreflect.ValueOfList(&_ClassState_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState 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_ContractTokenRelations) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ClassState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.ContractTokenRelations", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.ClassState", d.FullName())) } panic("unreachable") } @@ -8326,7 +8183,7 @@ func (x *fastReflection_ContractTokenRelations) WhichOneof(d protoreflect.OneofD // 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_ContractTokenRelations) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ClassState) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8337,7 +8194,7 @@ func (x *fastReflection_ContractTokenRelations) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ContractTokenRelations) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ClassState) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8349,7 +8206,7 @@ func (x *fastReflection_ContractTokenRelations) SetUnknown(fields protoreflect.R // 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_ContractTokenRelations) IsValid() bool { +func (x *fastReflection_ClassState) IsValid() bool { return x != nil } @@ -8359,9 +8216,9 @@ func (x *fastReflection_ContractTokenRelations) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ClassState) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ContractTokenRelations) + x := input.Message.Interface().(*ClassState) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8373,13 +8230,13 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho var n int var l int _ = l - l = len(x.ContractId) + l = len(x.Nonce) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Relations) > 0 { - for _, e := range x.Relations { - l = options.Size(e) + if len(x.Ids) > 0 { + for _, s := range x.Ids { + l = len(s) n += 1 + l + runtime.Sov(uint64(l)) } } @@ -8393,7 +8250,7 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ContractTokenRelations) + x := input.Message.Interface().(*ClassState) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8412,26 +8269,19 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Relations) > 0 { - for iNdEx := len(x.Relations) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Relations[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.Ids) > 0 { + for iNdEx := len(x.Ids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Ids[iNdEx]) + copy(dAtA[i:], x.Ids[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Ids[iNdEx]))) i-- dAtA[i] = 0x12 } } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) + if len(x.Nonce) > 0 { + i -= len(x.Nonce) + copy(dAtA[i:], x.Nonce) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Nonce))) i-- dAtA[i] = 0xa } @@ -8446,7 +8296,7 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ContractTokenRelations) + x := input.Message.Interface().(*ClassState) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8478,15 +8328,15 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ContractTokenRelations: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ClassState: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ContractTokenRelations: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ClassState: 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 ContractId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8514,13 +8364,13 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ContractId = string(dAtA[iNdEx:postIndex]) + x.Nonce = 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 Relations", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -8530,1037 +8380,7 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Relations = append(x.Relations, &TokenRelation{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Relations[len(x.Relations)-1]); 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_TokenRelation protoreflect.MessageDescriptor - fd_TokenRelation_self protoreflect.FieldDescriptor - fd_TokenRelation_other protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_genesis_proto_init() - md_TokenRelation = File_lbm_collection_v1_genesis_proto.Messages().ByName("TokenRelation") - fd_TokenRelation_self = md_TokenRelation.Fields().ByName("self") - fd_TokenRelation_other = md_TokenRelation.Fields().ByName("other") -} - -var _ protoreflect.Message = (*fastReflection_TokenRelation)(nil) - -type fastReflection_TokenRelation TokenRelation - -func (x *TokenRelation) ProtoReflect() protoreflect.Message { - return (*fastReflection_TokenRelation)(x) -} - -func (x *TokenRelation) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_genesis_proto_msgTypes[13] - 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_TokenRelation_messageType fastReflection_TokenRelation_messageType -var _ protoreflect.MessageType = fastReflection_TokenRelation_messageType{} - -type fastReflection_TokenRelation_messageType struct{} - -func (x fastReflection_TokenRelation_messageType) Zero() protoreflect.Message { - return (*fastReflection_TokenRelation)(nil) -} -func (x fastReflection_TokenRelation_messageType) New() protoreflect.Message { - return new(fastReflection_TokenRelation) -} -func (x fastReflection_TokenRelation_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_TokenRelation -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_TokenRelation) Descriptor() protoreflect.MessageDescriptor { - return md_TokenRelation -} - -// 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_TokenRelation) Type() protoreflect.MessageType { - return _fastReflection_TokenRelation_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_TokenRelation) New() protoreflect.Message { - return new(fastReflection_TokenRelation) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_TokenRelation) Interface() protoreflect.ProtoMessage { - return (*TokenRelation)(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_TokenRelation) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Self != "" { - value := protoreflect.ValueOfString(x.Self) - if !f(fd_TokenRelation_self, value) { - return - } - } - if x.Other != "" { - value := protoreflect.ValueOfString(x.Other) - if !f(fd_TokenRelation_other, 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_TokenRelation) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.TokenRelation.self": - return x.Self != "" - case "lbm.collection.v1.TokenRelation.other": - return x.Other != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation 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_TokenRelation) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.TokenRelation.self": - x.Self = "" - case "lbm.collection.v1.TokenRelation.other": - x.Other = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation 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_TokenRelation) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.TokenRelation.self": - value := x.Self - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.TokenRelation.other": - value := x.Other - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation 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_TokenRelation) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.TokenRelation.self": - x.Self = value.Interface().(string) - case "lbm.collection.v1.TokenRelation.other": - x.Other = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation 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_TokenRelation) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.TokenRelation.self": - panic(fmt.Errorf("field self of message lbm.collection.v1.TokenRelation is not mutable")) - case "lbm.collection.v1.TokenRelation.other": - panic(fmt.Errorf("field other of message lbm.collection.v1.TokenRelation is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation 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_TokenRelation) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.TokenRelation.self": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.TokenRelation.other": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation 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_TokenRelation) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.TokenRelation", 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_TokenRelation) 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_TokenRelation) 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_TokenRelation) 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_TokenRelation) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*TokenRelation) - 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.Self) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Other) - 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().(*TokenRelation) - 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.Other) > 0 { - i -= len(x.Other) - copy(dAtA[i:], x.Other) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Other))) - i-- - dAtA[i] = 0x12 - } - if len(x.Self) > 0 { - i -= len(x.Self) - copy(dAtA[i:], x.Self) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Self))) - 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().(*TokenRelation) - 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: TokenRelation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TokenRelation: 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 Self", 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.Self = 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 Other", 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.Other = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_ClassState_2_list)(nil) - -type _ClassState_2_list struct { - list *[]string -} - -func (x *_ClassState_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_ClassState_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_ClassState_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_ClassState_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_ClassState_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message ClassState at list field Ids as it is not of Message kind")) -} - -func (x *_ClassState_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_ClassState_2_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_ClassState_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_ClassState protoreflect.MessageDescriptor - fd_ClassState_nonce protoreflect.FieldDescriptor - fd_ClassState_ids protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_genesis_proto_init() - md_ClassState = File_lbm_collection_v1_genesis_proto.Messages().ByName("ClassState") - fd_ClassState_nonce = md_ClassState.Fields().ByName("nonce") - fd_ClassState_ids = md_ClassState.Fields().ByName("ids") -} - -var _ protoreflect.Message = (*fastReflection_ClassState)(nil) - -type fastReflection_ClassState ClassState - -func (x *ClassState) ProtoReflect() protoreflect.Message { - return (*fastReflection_ClassState)(x) -} - -func (x *ClassState) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_genesis_proto_msgTypes[14] - 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_ClassState_messageType fastReflection_ClassState_messageType -var _ protoreflect.MessageType = fastReflection_ClassState_messageType{} - -type fastReflection_ClassState_messageType struct{} - -func (x fastReflection_ClassState_messageType) Zero() protoreflect.Message { - return (*fastReflection_ClassState)(nil) -} -func (x fastReflection_ClassState_messageType) New() protoreflect.Message { - return new(fastReflection_ClassState) -} -func (x fastReflection_ClassState_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ClassState -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ClassState) Descriptor() protoreflect.MessageDescriptor { - return md_ClassState -} - -// 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_ClassState) Type() protoreflect.MessageType { - return _fastReflection_ClassState_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ClassState) New() protoreflect.Message { - return new(fastReflection_ClassState) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ClassState) Interface() protoreflect.ProtoMessage { - return (*ClassState)(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_ClassState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Nonce != "" { - value := protoreflect.ValueOfString(x.Nonce) - if !f(fd_ClassState_nonce, value) { - return - } - } - if len(x.Ids) != 0 { - value := protoreflect.ValueOfList(&_ClassState_2_list{list: &x.Ids}) - if !f(fd_ClassState_ids, 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_ClassState) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.ClassState.nonce": - return x.Nonce != "" - case "lbm.collection.v1.ClassState.ids": - return len(x.Ids) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) - } - panic(fmt.Errorf("message lbm.collection.v1.ClassState 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_ClassState) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.ClassState.nonce": - x.Nonce = "" - case "lbm.collection.v1.ClassState.ids": - x.Ids = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) - } - panic(fmt.Errorf("message lbm.collection.v1.ClassState 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_ClassState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.ClassState.nonce": - value := x.Nonce - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.ClassState.ids": - if len(x.Ids) == 0 { - return protoreflect.ValueOfList(&_ClassState_2_list{}) - } - listValue := &_ClassState_2_list{list: &x.Ids} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) - } - panic(fmt.Errorf("message lbm.collection.v1.ClassState 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_ClassState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.ClassState.nonce": - x.Nonce = value.Interface().(string) - case "lbm.collection.v1.ClassState.ids": - lv := value.List() - clv := lv.(*_ClassState_2_list) - x.Ids = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) - } - panic(fmt.Errorf("message lbm.collection.v1.ClassState 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_ClassState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.ClassState.ids": - if x.Ids == nil { - x.Ids = []string{} - } - value := &_ClassState_2_list{list: &x.Ids} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.ClassState.nonce": - panic(fmt.Errorf("field nonce of message lbm.collection.v1.ClassState is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) - } - panic(fmt.Errorf("message lbm.collection.v1.ClassState 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_ClassState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.ClassState.nonce": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.ClassState.ids": - list := []string{} - return protoreflect.ValueOfList(&_ClassState_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) - } - panic(fmt.Errorf("message lbm.collection.v1.ClassState 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_ClassState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.ClassState", 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_ClassState) 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_ClassState) 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_ClassState) 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_ClassState) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ClassState) - 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.Nonce) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Ids) > 0 { - for _, s := range x.Ids { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ClassState) - 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.Ids) > 0 { - for iNdEx := len(x.Ids) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Ids[iNdEx]) - copy(dAtA[i:], x.Ids[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Ids[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.Nonce) > 0 { - i -= len(x.Nonce) - copy(dAtA[i:], x.Nonce) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Nonce))) - 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().(*ClassState) - 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: ClassState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ClassState: 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 Nonce", 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.Nonce = 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 Ids", 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 + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9646,8 +8466,6 @@ type GenesisState struct { Balances []*ContractBalances `protobuf:"bytes,6,rep,name=balances,proto3" json:"balances,omitempty"` // nfts is an array containing the nfts. Nfts []*ContractNFTs `protobuf:"bytes,7,rep,name=nfts,proto3" json:"nfts,omitempty"` - // parents represents the parents of (non-fungible) tokens. - Parents []*ContractTokenRelations `protobuf:"bytes,8,rep,name=parents,proto3" json:"parents,omitempty"` // grants defines the grant information. Grants []*ContractGrants `protobuf:"bytes,9,rep,name=grants,proto3" json:"grants,omitempty"` // authorizations defines the approve information. @@ -9729,13 +8547,6 @@ func (x *GenesisState) GetNfts() []*ContractNFTs { return nil } -func (x *GenesisState) GetParents() []*ContractTokenRelations { - if x != nil { - return x.Parents - } - return nil -} - func (x *GenesisState) GetGrants() []*ContractGrants { if x != nil { return x.Grants @@ -10283,98 +9094,6 @@ func (x *NextTokenID) GetId() string { return "" } -// ContractTokenRelations defines token relations belong to a contract. -type ContractTokenRelations struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // relations - Relations []*TokenRelation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` -} - -func (x *ContractTokenRelations) Reset() { - *x = ContractTokenRelations{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_genesis_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ContractTokenRelations) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ContractTokenRelations) ProtoMessage() {} - -// Deprecated: Use ContractTokenRelations.ProtoReflect.Descriptor instead. -func (*ContractTokenRelations) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_genesis_proto_rawDescGZIP(), []int{12} -} - -func (x *ContractTokenRelations) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *ContractTokenRelations) GetRelations() []*TokenRelation { - if x != nil { - return x.Relations - } - return nil -} - -// TokenRelation defines relations between two tokens. -type TokenRelation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // self - Self string `protobuf:"bytes,1,opt,name=self,proto3" json:"self,omitempty"` - // other - Other string `protobuf:"bytes,2,opt,name=other,proto3" json:"other,omitempty"` -} - -func (x *TokenRelation) Reset() { - *x = TokenRelation{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_genesis_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TokenRelation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TokenRelation) ProtoMessage() {} - -// Deprecated: Use TokenRelation.ProtoReflect.Descriptor instead. -func (*TokenRelation) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_genesis_proto_rawDescGZIP(), []int{13} -} - -func (x *TokenRelation) GetSelf() string { - if x != nil { - return x.Self - } - return "" -} - -func (x *TokenRelation) GetOther() string { - if x != nil { - return x.Other - } - return "" -} - // ClassState defines the classes state. type ClassState struct { state protoimpl.MessageState @@ -10390,7 +9109,7 @@ type ClassState struct { func (x *ClassState) Reset() { *x = ClassState{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_genesis_proto_msgTypes[14] + mi := &file_lbm_collection_v1_genesis_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10404,7 +9123,7 @@ func (*ClassState) ProtoMessage() {} // Deprecated: Use ClassState.ProtoReflect.Descriptor instead. func (*ClassState) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_genesis_proto_rawDescGZIP(), []int{14} + return file_lbm_collection_v1_genesis_proto_rawDescGZIP(), []int{12} } func (x *ClassState) GetNonce() string { @@ -10434,7 +9153,7 @@ var file_lbm_collection_v1_genesis_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x07, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xde, 0x06, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, @@ -10465,149 +9184,133 @@ var file_lbm_collection_v1_genesis_proto_rawDesc = []byte{ 0x6e, 0x66, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x4e, 0x46, 0x54, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x04, 0x6e, 0x66, 0x74, 0x73, 0x12, 0x49, 0x0a, 0x07, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x73, 0x12, 0x3f, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x09, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x73, 0x12, 0x57, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x62, - 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x47, 0x0a, 0x08, - 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, - 0x73, 0x74, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x73, 0x75, 0x70, - 0x70, 0x6c, 0x69, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x06, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x73, 0x18, - 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x06, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x6c, - 0x61, 0x73, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0a, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x71, 0x0a, 0x10, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x1f, + 0x00, 0x52, 0x04, 0x6e, 0x66, 0x74, 0x73, 0x12, 0x3f, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, + 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x57, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x47, 0x0a, 0x08, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x0b, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x08, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x06, 0x62, 0x75, + 0x72, 0x6e, 0x74, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x62, 0x6d, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x73, 0x12, + 0x3e, 0x0a, 0x0b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4a, + 0x04, 0x08, 0x08, 0x10, 0x09, 0x22, 0x71, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x08, 0x62, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, + 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, + 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x7f, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, - 0x3c, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x7f, 0x0a, - 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, - 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x71, - 0x0a, 0x0f, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, - 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, - 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x22, 0x69, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, - 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x05, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x76, 0x0a, 0x0f, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, - 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, - 0x12, 0x42, 0x0a, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x12, 0xc8, 0xde, 0x1f, 0x00, 0xca, 0xb4, 0x2d, - 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x07, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x65, 0x73, 0x22, 0x61, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x4e, 0x46, 0x54, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x66, 0x74, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x46, 0x54, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x04, 0x6e, 0x66, 0x74, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x49, 0x64, 0x12, 0x4e, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x62, - 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0x69, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0xcc, - 0x01, 0x0a, 0x0c, 0x4e, 0x65, 0x78, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x44, 0x73, 0x12, + 0x48, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, + 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x73, + 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x71, 0x0a, 0x0f, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x19, 0x0a, 0x08, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x69, 0x0a, 0x07, + 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, + 0xaa, 0xdf, 0x1f, 0x05, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x76, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x07, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, + 0x6e, 0x79, 0x42, 0x12, 0xc8, 0xde, 0x1f, 0x00, 0xca, 0xb4, 0x2d, 0x0a, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x22, + 0x61, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x4e, 0x46, 0x54, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, - 0x12, 0x49, 0x0a, 0x08, 0x66, 0x75, 0x6e, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x2d, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x16, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x55, 0x69, - 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x55, 0x69, 0x6e, - 0x74, 0x52, 0x08, 0x66, 0x75, 0x6e, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x50, 0x0a, 0x0c, 0x6e, - 0x6f, 0x6e, 0x5f, 0x66, 0x75, 0x6e, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x2d, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x16, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x55, 0x69, 0x6e, - 0x74, 0xd2, 0xb4, 0x2d, 0x0b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, - 0x52, 0x0b, 0x6e, 0x6f, 0x6e, 0x46, 0x75, 0x6e, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x22, 0x7a, 0x0a, - 0x14, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x49, 0x44, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, - 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, - 0x78, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x44, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x67, 0x0a, 0x0b, 0x4e, 0x65, 0x78, - 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x44, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, - 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, - 0x73, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x2d, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x16, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, - 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0xd2, - 0xb4, 0x2d, 0x0b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x02, - 0x69, 0x64, 0x22, 0x7f, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x44, 0x0a, - 0x09, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0x39, 0x0a, 0x0d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6c, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6c, 0x66, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x6c, 0x66, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x22, 0x63, - 0x0a, 0x0a, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x05, - 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xc8, 0xde, 0x1f, - 0x00, 0xda, 0xde, 0x1f, 0x16, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, - 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0b, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, - 0x65, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, - 0x69, 0x64, 0x73, 0x42, 0xaf, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, - 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x61, - 0x70, 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, - 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, 0x43, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, - 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x1d, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x13, 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x66, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x4e, 0x46, 0x54, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x04, 0x6e, 0x66, + 0x74, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, + 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x4e, + 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x69, + 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, + 0x64, 0x12, 0x36, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x0c, 0x4e, 0x65, + 0x78, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x44, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x08, 0x66, + 0x75, 0x6e, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x16, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, + 0x0b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x08, 0x66, 0x75, + 0x6e, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x50, 0x0a, 0x0c, 0x6e, 0x6f, 0x6e, 0x5f, 0x66, 0x75, + 0x6e, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xc8, 0xde, + 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x16, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0b, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x0b, 0x6e, 0x6f, 0x6e, + 0x46, 0x75, 0x6e, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x22, 0x7a, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x44, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, + 0x64, 0x12, 0x41, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x49, 0x44, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x49, 0x64, 0x73, 0x22, 0x67, 0x0a, 0x0b, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x49, 0x44, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x3d, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x16, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0b, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x02, 0x69, 0x64, 0x22, 0x63, 0x0a, + 0x0a, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x05, 0x6e, + 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x16, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0b, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, + 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, + 0x64, 0x73, 0x42, 0xaf, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, + 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x61, 0x70, + 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, 0x43, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, + 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x1d, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, + 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x13, 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -10622,7 +9325,7 @@ func file_lbm_collection_v1_genesis_proto_rawDescGZIP() []byte { return file_lbm_collection_v1_genesis_proto_rawDescData } -var file_lbm_collection_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_lbm_collection_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_lbm_collection_v1_genesis_proto_goTypes = []interface{}{ (*GenesisState)(nil), // 0: lbm.collection.v1.GenesisState (*ContractBalances)(nil), // 1: lbm.collection.v1.ContractBalances @@ -10636,45 +9339,41 @@ var file_lbm_collection_v1_genesis_proto_goTypes = []interface{}{ (*NextClassIDs)(nil), // 9: lbm.collection.v1.NextClassIDs (*ContractNextTokenIDs)(nil), // 10: lbm.collection.v1.ContractNextTokenIDs (*NextTokenID)(nil), // 11: lbm.collection.v1.NextTokenID - (*ContractTokenRelations)(nil), // 12: lbm.collection.v1.ContractTokenRelations - (*TokenRelation)(nil), // 13: lbm.collection.v1.TokenRelation - (*ClassState)(nil), // 14: lbm.collection.v1.ClassState - (*Params)(nil), // 15: lbm.collection.v1.Params - (*Contract)(nil), // 16: lbm.collection.v1.Contract - (*Coin)(nil), // 17: lbm.collection.v1.Coin - (*anypb.Any)(nil), // 18: google.protobuf.Any - (*NFT)(nil), // 19: lbm.collection.v1.NFT - (*Authorization)(nil), // 20: lbm.collection.v1.Authorization - (*Grant)(nil), // 21: lbm.collection.v1.Grant + (*ClassState)(nil), // 12: lbm.collection.v1.ClassState + (*Params)(nil), // 13: lbm.collection.v1.Params + (*Contract)(nil), // 14: lbm.collection.v1.Contract + (*Coin)(nil), // 15: lbm.collection.v1.Coin + (*anypb.Any)(nil), // 16: google.protobuf.Any + (*NFT)(nil), // 17: lbm.collection.v1.NFT + (*Authorization)(nil), // 18: lbm.collection.v1.Authorization + (*Grant)(nil), // 19: lbm.collection.v1.Grant } var file_lbm_collection_v1_genesis_proto_depIdxs = []int32{ - 15, // 0: lbm.collection.v1.GenesisState.params:type_name -> lbm.collection.v1.Params - 16, // 1: lbm.collection.v1.GenesisState.contracts:type_name -> lbm.collection.v1.Contract + 13, // 0: lbm.collection.v1.GenesisState.params:type_name -> lbm.collection.v1.Params + 14, // 1: lbm.collection.v1.GenesisState.contracts:type_name -> lbm.collection.v1.Contract 9, // 2: lbm.collection.v1.GenesisState.next_class_ids:type_name -> lbm.collection.v1.NextClassIDs 5, // 3: lbm.collection.v1.GenesisState.classes:type_name -> lbm.collection.v1.ContractClasses 10, // 4: lbm.collection.v1.GenesisState.next_token_ids:type_name -> lbm.collection.v1.ContractNextTokenIDs 1, // 5: lbm.collection.v1.GenesisState.balances:type_name -> lbm.collection.v1.ContractBalances 6, // 6: lbm.collection.v1.GenesisState.nfts:type_name -> lbm.collection.v1.ContractNFTs - 12, // 7: lbm.collection.v1.GenesisState.parents:type_name -> lbm.collection.v1.ContractTokenRelations - 8, // 8: lbm.collection.v1.GenesisState.grants:type_name -> lbm.collection.v1.ContractGrants - 7, // 9: lbm.collection.v1.GenesisState.authorizations:type_name -> lbm.collection.v1.ContractAuthorizations - 2, // 10: lbm.collection.v1.GenesisState.supplies:type_name -> lbm.collection.v1.ContractStatistics - 2, // 11: lbm.collection.v1.GenesisState.burnts:type_name -> lbm.collection.v1.ContractStatistics - 14, // 12: lbm.collection.v1.GenesisState.class_state:type_name -> lbm.collection.v1.ClassState - 4, // 13: lbm.collection.v1.ContractBalances.balances:type_name -> lbm.collection.v1.Balance - 3, // 14: lbm.collection.v1.ContractStatistics.statistics:type_name -> lbm.collection.v1.ClassStatistics - 17, // 15: lbm.collection.v1.Balance.amount:type_name -> lbm.collection.v1.Coin - 18, // 16: lbm.collection.v1.ContractClasses.classes:type_name -> google.protobuf.Any - 19, // 17: lbm.collection.v1.ContractNFTs.nfts:type_name -> lbm.collection.v1.NFT - 20, // 18: lbm.collection.v1.ContractAuthorizations.authorizations:type_name -> lbm.collection.v1.Authorization - 21, // 19: lbm.collection.v1.ContractGrants.grants:type_name -> lbm.collection.v1.Grant - 11, // 20: lbm.collection.v1.ContractNextTokenIDs.token_ids:type_name -> lbm.collection.v1.NextTokenID - 13, // 21: lbm.collection.v1.ContractTokenRelations.relations:type_name -> lbm.collection.v1.TokenRelation - 22, // [22:22] is the sub-list for method output_type - 22, // [22:22] is the sub-list for method input_type - 22, // [22:22] is the sub-list for extension type_name - 22, // [22:22] is the sub-list for extension extendee - 0, // [0:22] is the sub-list for field type_name + 8, // 7: lbm.collection.v1.GenesisState.grants:type_name -> lbm.collection.v1.ContractGrants + 7, // 8: lbm.collection.v1.GenesisState.authorizations:type_name -> lbm.collection.v1.ContractAuthorizations + 2, // 9: lbm.collection.v1.GenesisState.supplies:type_name -> lbm.collection.v1.ContractStatistics + 2, // 10: lbm.collection.v1.GenesisState.burnts:type_name -> lbm.collection.v1.ContractStatistics + 12, // 11: lbm.collection.v1.GenesisState.class_state:type_name -> lbm.collection.v1.ClassState + 4, // 12: lbm.collection.v1.ContractBalances.balances:type_name -> lbm.collection.v1.Balance + 3, // 13: lbm.collection.v1.ContractStatistics.statistics:type_name -> lbm.collection.v1.ClassStatistics + 15, // 14: lbm.collection.v1.Balance.amount:type_name -> lbm.collection.v1.Coin + 16, // 15: lbm.collection.v1.ContractClasses.classes:type_name -> google.protobuf.Any + 17, // 16: lbm.collection.v1.ContractNFTs.nfts:type_name -> lbm.collection.v1.NFT + 18, // 17: lbm.collection.v1.ContractAuthorizations.authorizations:type_name -> lbm.collection.v1.Authorization + 19, // 18: lbm.collection.v1.ContractGrants.grants:type_name -> lbm.collection.v1.Grant + 11, // 19: lbm.collection.v1.ContractNextTokenIDs.token_ids:type_name -> lbm.collection.v1.NextTokenID + 20, // [20:20] is the sub-list for method output_type + 20, // [20:20] is the sub-list for method input_type + 20, // [20:20] is the sub-list for extension type_name + 20, // [20:20] is the sub-list for extension extendee + 0, // [0:20] is the sub-list for field type_name } func init() { file_lbm_collection_v1_genesis_proto_init() } @@ -10829,30 +9528,6 @@ func file_lbm_collection_v1_genesis_proto_init() { } } file_lbm_collection_v1_genesis_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContractTokenRelations); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_genesis_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenRelation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_genesis_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ClassState); i { case 0: return &v.state @@ -10871,7 +9546,7 @@ func file_lbm_collection_v1_genesis_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_lbm_collection_v1_genesis_proto_rawDesc, NumEnums: 0, - NumMessages: 15, + NumMessages: 13, NumExtensions: 0, NumServices: 0, }, diff --git a/api/lbm/collection/v1/query.pulsar.go b/api/lbm/collection/v1/query.pulsar.go index 0fa0a7eed1..85fe689443 100644 --- a/api/lbm/collection/v1/query.pulsar.go +++ b/api/lbm/collection/v1/query.pulsar.go @@ -11158,27 +11158,29 @@ func (x *fastReflection_QueryTokenResponse) ProtoMethods() *protoiface.Methods { } var ( - md_QueryRootRequest protoreflect.MessageDescriptor - fd_QueryRootRequest_contract_id protoreflect.FieldDescriptor - fd_QueryRootRequest_token_id protoreflect.FieldDescriptor + md_QueryGranteeGrantsRequest protoreflect.MessageDescriptor + fd_QueryGranteeGrantsRequest_contract_id protoreflect.FieldDescriptor + fd_QueryGranteeGrantsRequest_grantee protoreflect.FieldDescriptor + fd_QueryGranteeGrantsRequest_pagination protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryRootRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryRootRequest") - fd_QueryRootRequest_contract_id = md_QueryRootRequest.Fields().ByName("contract_id") - fd_QueryRootRequest_token_id = md_QueryRootRequest.Fields().ByName("token_id") + md_QueryGranteeGrantsRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryGranteeGrantsRequest") + fd_QueryGranteeGrantsRequest_contract_id = md_QueryGranteeGrantsRequest.Fields().ByName("contract_id") + fd_QueryGranteeGrantsRequest_grantee = md_QueryGranteeGrantsRequest.Fields().ByName("grantee") + fd_QueryGranteeGrantsRequest_pagination = md_QueryGranteeGrantsRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryRootRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGranteeGrantsRequest)(nil) -type fastReflection_QueryRootRequest QueryRootRequest +type fastReflection_QueryGranteeGrantsRequest QueryGranteeGrantsRequest -func (x *QueryRootRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRootRequest)(x) +func (x *QueryGranteeGrantsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGranteeGrantsRequest)(x) } -func (x *QueryRootRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryGranteeGrantsRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11190,43 +11192,43 @@ func (x *QueryRootRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryRootRequest_messageType fastReflection_QueryRootRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryRootRequest_messageType{} +var _fastReflection_QueryGranteeGrantsRequest_messageType fastReflection_QueryGranteeGrantsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGranteeGrantsRequest_messageType{} -type fastReflection_QueryRootRequest_messageType struct{} +type fastReflection_QueryGranteeGrantsRequest_messageType struct{} -func (x fastReflection_QueryRootRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRootRequest)(nil) +func (x fastReflection_QueryGranteeGrantsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGranteeGrantsRequest)(nil) } -func (x fastReflection_QueryRootRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRootRequest) +func (x fastReflection_QueryGranteeGrantsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGranteeGrantsRequest) } -func (x fastReflection_QueryRootRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRootRequest +func (x fastReflection_QueryGranteeGrantsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGranteeGrantsRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryRootRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRootRequest +func (x *fastReflection_QueryGranteeGrantsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGranteeGrantsRequest } // 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_QueryRootRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryRootRequest_messageType +func (x *fastReflection_QueryGranteeGrantsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGranteeGrantsRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRootRequest) New() protoreflect.Message { - return new(fastReflection_QueryRootRequest) +func (x *fastReflection_QueryGranteeGrantsRequest) New() protoreflect.Message { + return new(fastReflection_QueryGranteeGrantsRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRootRequest) Interface() protoreflect.ProtoMessage { - return (*QueryRootRequest)(x) +func (x *fastReflection_QueryGranteeGrantsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGranteeGrantsRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -11234,16 +11236,22 @@ func (x *fastReflection_QueryRootRequest) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryRootRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryGranteeGrantsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryRootRequest_contract_id, value) { + if !f(fd_QueryGranteeGrantsRequest_contract_id, value) { return } } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryRootRequest_token_id, value) { + if x.Grantee != "" { + value := protoreflect.ValueOfString(x.Grantee) + if !f(fd_QueryGranteeGrantsRequest_grantee, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryGranteeGrantsRequest_pagination, value) { return } } @@ -11260,17 +11268,19 @@ func (x *fastReflection_QueryRootRequest) Range(f func(protoreflect.FieldDescrip // 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_QueryRootRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGranteeGrantsRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryRootRequest.token_id": - return x.TokenId != "" + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": + return x.Grantee != "" + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) } } @@ -11280,17 +11290,19 @@ func (x *fastReflection_QueryRootRequest) Has(fd protoreflect.FieldDescriptor) b // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRootRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGranteeGrantsRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryRootRequest.token_id": - x.TokenId = "" + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": + x.Grantee = "" + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) } } @@ -11300,19 +11312,22 @@ func (x *fastReflection_QueryRootRequest) Clear(fd protoreflect.FieldDescriptor) // 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_QueryRootRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryRootRequest.token_id": - value := x.TokenId + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": + value := x.Grantee return protoreflect.ValueOfString(value) + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", descriptor.FullName())) } } @@ -11326,17 +11341,19 @@ func (x *fastReflection_QueryRootRequest) Get(descriptor protoreflect.FieldDescr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRootRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGranteeGrantsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryRootRequest.token_id": - x.TokenId = value.Interface().(string) + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": + x.Grantee = value.Interface().(string) + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + x.Pagination = value.Message().Interface().(*query.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) } } @@ -11350,44 +11367,52 @@ func (x *fastReflection_QueryRootRequest) Set(fd protoreflect.FieldDescriptor, v // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRootRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryRootRequest is not mutable")) - case "lbm.collection.v1.QueryRootRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryRootRequest is not mutable")) + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(query.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryGranteeGrantsRequest is not mutable")) + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": + panic(fmt.Errorf("field grantee of message lbm.collection.v1.QueryGranteeGrantsRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest 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_QueryRootRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryRootRequest.token_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": return protoreflect.ValueOfString("") + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + m := new(query.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest 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_QueryRootRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGranteeGrantsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryRootRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryGranteeGrantsRequest", d.FullName())) } panic("unreachable") } @@ -11395,7 +11420,7 @@ func (x *fastReflection_QueryRootRequest) WhichOneof(d protoreflect.OneofDescrip // 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_QueryRootRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGranteeGrantsRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11406,7 +11431,7 @@ func (x *fastReflection_QueryRootRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRootRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGranteeGrantsRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11418,7 +11443,7 @@ func (x *fastReflection_QueryRootRequest) SetUnknown(fields protoreflect.RawFiel // 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_QueryRootRequest) IsValid() bool { +func (x *fastReflection_QueryGranteeGrantsRequest) IsValid() bool { return x != nil } @@ -11428,9 +11453,9 @@ func (x *fastReflection_QueryRootRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryRootRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGranteeGrantsRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRootRequest) + x := input.Message.Interface().(*QueryGranteeGrantsRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11446,10 +11471,14 @@ func (x *fastReflection_QueryRootRequest) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.TokenId) + l = len(x.Grantee) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -11460,7 +11489,7 @@ func (x *fastReflection_QueryRootRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryRootRequest) + x := input.Message.Interface().(*QueryGranteeGrantsRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11479,10 +11508,24 @@ func (x *fastReflection_QueryRootRequest) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.Grantee) > 0 { + i -= len(x.Grantee) + copy(dAtA[i:], x.Grantee) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Grantee))) i-- dAtA[i] = 0x12 } @@ -11504,7 +11547,7 @@ func (x *fastReflection_QueryRootRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRootRequest) + x := input.Message.Interface().(*QueryGranteeGrantsRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11536,10 +11579,10 @@ func (x *fastReflection_QueryRootRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRootRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRootRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -11576,7 +11619,7 @@ func (x *fastReflection_QueryRootRequest) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11604,7 +11647,43 @@ func (x *fastReflection_QueryRootRequest) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TokenId = string(dAtA[iNdEx:postIndex]) + x.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &query.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -11641,26 +11720,79 @@ func (x *fastReflection_QueryRootRequest) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_QueryGranteeGrantsResponse_1_list)(nil) + +type _QueryGranteeGrantsResponse_1_list struct { + list *[]*Grant +} + +func (x *_QueryGranteeGrantsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryGranteeGrantsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryGranteeGrantsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Grant) + (*x.list)[i] = concreteValue +} + +func (x *_QueryGranteeGrantsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Grant) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryGranteeGrantsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(Grant) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryGranteeGrantsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryGranteeGrantsResponse_1_list) NewElement() protoreflect.Value { + v := new(Grant) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryGranteeGrantsResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryRootResponse protoreflect.MessageDescriptor - fd_QueryRootResponse_root protoreflect.FieldDescriptor + md_QueryGranteeGrantsResponse protoreflect.MessageDescriptor + fd_QueryGranteeGrantsResponse_grants protoreflect.FieldDescriptor + fd_QueryGranteeGrantsResponse_pagination protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryRootResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryRootResponse") - fd_QueryRootResponse_root = md_QueryRootResponse.Fields().ByName("root") + md_QueryGranteeGrantsResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryGranteeGrantsResponse") + fd_QueryGranteeGrantsResponse_grants = md_QueryGranteeGrantsResponse.Fields().ByName("grants") + fd_QueryGranteeGrantsResponse_pagination = md_QueryGranteeGrantsResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryRootResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGranteeGrantsResponse)(nil) -type fastReflection_QueryRootResponse QueryRootResponse +type fastReflection_QueryGranteeGrantsResponse QueryGranteeGrantsResponse -func (x *QueryRootResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRootResponse)(x) +func (x *QueryGranteeGrantsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGranteeGrantsResponse)(x) } -func (x *QueryRootResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryGranteeGrantsResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11672,43 +11804,43 @@ func (x *QueryRootResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryRootResponse_messageType fastReflection_QueryRootResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryRootResponse_messageType{} +var _fastReflection_QueryGranteeGrantsResponse_messageType fastReflection_QueryGranteeGrantsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGranteeGrantsResponse_messageType{} -type fastReflection_QueryRootResponse_messageType struct{} +type fastReflection_QueryGranteeGrantsResponse_messageType struct{} -func (x fastReflection_QueryRootResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRootResponse)(nil) +func (x fastReflection_QueryGranteeGrantsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGranteeGrantsResponse)(nil) } -func (x fastReflection_QueryRootResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRootResponse) +func (x fastReflection_QueryGranteeGrantsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGranteeGrantsResponse) } -func (x fastReflection_QueryRootResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRootResponse +func (x fastReflection_QueryGranteeGrantsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGranteeGrantsResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryRootResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRootResponse +func (x *fastReflection_QueryGranteeGrantsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGranteeGrantsResponse } // 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_QueryRootResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryRootResponse_messageType +func (x *fastReflection_QueryGranteeGrantsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGranteeGrantsResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRootResponse) New() protoreflect.Message { - return new(fastReflection_QueryRootResponse) +func (x *fastReflection_QueryGranteeGrantsResponse) New() protoreflect.Message { + return new(fastReflection_QueryGranteeGrantsResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRootResponse) Interface() protoreflect.ProtoMessage { - return (*QueryRootResponse)(x) +func (x *fastReflection_QueryGranteeGrantsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGranteeGrantsResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -11716,10 +11848,16 @@ func (x *fastReflection_QueryRootResponse) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryRootResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Root != nil { - value := protoreflect.ValueOfMessage(x.Root.ProtoReflect()) - if !f(fd_QueryRootResponse_root, value) { +func (x *fastReflection_QueryGranteeGrantsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Grants) != 0 { + value := protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{list: &x.Grants}) + if !f(fd_QueryGranteeGrantsResponse_grants, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryGranteeGrantsResponse_pagination, value) { return } } @@ -11736,15 +11874,17 @@ func (x *fastReflection_QueryRootResponse) Range(f func(protoreflect.FieldDescri // 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_QueryRootResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGranteeGrantsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - return x.Root != nil + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + return len(x.Grants) != 0 + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) } } @@ -11754,15 +11894,17 @@ func (x *fastReflection_QueryRootResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRootResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGranteeGrantsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - x.Root = nil + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + x.Grants = nil + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) } } @@ -11772,16 +11914,22 @@ func (x *fastReflection_QueryRootResponse) Clear(fd protoreflect.FieldDescriptor // 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_QueryRootResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - value := x.Root + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + if len(x.Grants) == 0 { + return protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{}) + } + listValue := &_QueryGranteeGrantsResponse_1_list{list: &x.Grants} + return protoreflect.ValueOfList(listValue) + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", descriptor.FullName())) } } @@ -11795,15 +11943,19 @@ func (x *fastReflection_QueryRootResponse) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRootResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGranteeGrantsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - x.Root = value.Message().Interface().(*NFT) + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + lv := value.List() + clv := lv.(*_QueryGranteeGrantsResponse_1_list) + x.Grants = *clv.list + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + x.Pagination = value.Message().Interface().(*query.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) } } @@ -11817,44 +11969,53 @@ func (x *fastReflection_QueryRootResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRootResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - if x.Root == nil { - x.Root = new(NFT) + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + if x.Grants == nil { + x.Grants = []*Grant{} + } + value := &_QueryGranteeGrantsResponse_1_list{list: &x.Grants} + return protoreflect.ValueOfList(value) + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(query.PageResponse) } - return protoreflect.ValueOfMessage(x.Root.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse 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_QueryRootResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - m := new(NFT) + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + list := []*Grant{} + return protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{list: &list}) + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + m := new(query.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse 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_QueryRootResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGranteeGrantsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryRootResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryGranteeGrantsResponse", d.FullName())) } panic("unreachable") } @@ -11862,7 +12023,7 @@ func (x *fastReflection_QueryRootResponse) WhichOneof(d protoreflect.OneofDescri // 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_QueryRootResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGranteeGrantsResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11873,7 +12034,7 @@ func (x *fastReflection_QueryRootResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRootResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGranteeGrantsResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11885,7 +12046,7 @@ func (x *fastReflection_QueryRootResponse) SetUnknown(fields protoreflect.RawFie // 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_QueryRootResponse) IsValid() bool { +func (x *fastReflection_QueryGranteeGrantsResponse) IsValid() bool { return x != nil } @@ -11895,9 +12056,9 @@ func (x *fastReflection_QueryRootResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryRootResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGranteeGrantsResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRootResponse) + x := input.Message.Interface().(*QueryGranteeGrantsResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11909,8 +12070,14 @@ func (x *fastReflection_QueryRootResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.Root != nil { - l = options.Size(x.Root) + if len(x.Grants) > 0 { + for _, e := range x.Grants { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -11923,7 +12090,7 @@ func (x *fastReflection_QueryRootResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryRootResponse) + x := input.Message.Interface().(*QueryGranteeGrantsResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11942,8 +12109,8 @@ func (x *fastReflection_QueryRootResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Root != nil { - encoded, err := options.Marshal(x.Root) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11954,7 +12121,23 @@ func (x *fastReflection_QueryRootResponse) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if len(x.Grants) > 0 { + for iNdEx := len(x.Grants) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Grants[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -11967,7 +12150,7 @@ func (x *fastReflection_QueryRootResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRootResponse) + x := input.Message.Interface().(*QueryGranteeGrantsResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11999,15 +12182,49 @@ func (x *fastReflection_QueryRootResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRootResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRootResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsResponse: 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 Root", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Grants = append(x.Grants, &Grant{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Grants[len(x.Grants)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12034,10 +12251,10 @@ func (x *fastReflection_QueryRootResponse) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Root == nil { - x.Root = &NFT{} + if x.Pagination == nil { + x.Pagination = &query.PageResponse{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Root); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -12077,27 +12294,29 @@ func (x *fastReflection_QueryRootResponse) ProtoMethods() *protoiface.Methods { } var ( - md_QueryHasParentRequest protoreflect.MessageDescriptor - fd_QueryHasParentRequest_contract_id protoreflect.FieldDescriptor - fd_QueryHasParentRequest_token_id protoreflect.FieldDescriptor + md_QueryIsOperatorForRequest protoreflect.MessageDescriptor + fd_QueryIsOperatorForRequest_contract_id protoreflect.FieldDescriptor + fd_QueryIsOperatorForRequest_operator protoreflect.FieldDescriptor + fd_QueryIsOperatorForRequest_holder protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryHasParentRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHasParentRequest") - fd_QueryHasParentRequest_contract_id = md_QueryHasParentRequest.Fields().ByName("contract_id") - fd_QueryHasParentRequest_token_id = md_QueryHasParentRequest.Fields().ByName("token_id") + md_QueryIsOperatorForRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryIsOperatorForRequest") + fd_QueryIsOperatorForRequest_contract_id = md_QueryIsOperatorForRequest.Fields().ByName("contract_id") + fd_QueryIsOperatorForRequest_operator = md_QueryIsOperatorForRequest.Fields().ByName("operator") + fd_QueryIsOperatorForRequest_holder = md_QueryIsOperatorForRequest.Fields().ByName("holder") } -var _ protoreflect.Message = (*fastReflection_QueryHasParentRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsOperatorForRequest)(nil) -type fastReflection_QueryHasParentRequest QueryHasParentRequest +type fastReflection_QueryIsOperatorForRequest QueryIsOperatorForRequest -func (x *QueryHasParentRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryHasParentRequest)(x) +func (x *QueryIsOperatorForRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsOperatorForRequest)(x) } -func (x *QueryHasParentRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryIsOperatorForRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12109,43 +12328,43 @@ func (x *QueryHasParentRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryHasParentRequest_messageType fastReflection_QueryHasParentRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryHasParentRequest_messageType{} +var _fastReflection_QueryIsOperatorForRequest_messageType fastReflection_QueryIsOperatorForRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsOperatorForRequest_messageType{} -type fastReflection_QueryHasParentRequest_messageType struct{} +type fastReflection_QueryIsOperatorForRequest_messageType struct{} -func (x fastReflection_QueryHasParentRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryHasParentRequest)(nil) +func (x fastReflection_QueryIsOperatorForRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsOperatorForRequest)(nil) } -func (x fastReflection_QueryHasParentRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryHasParentRequest) +func (x fastReflection_QueryIsOperatorForRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsOperatorForRequest) } -func (x fastReflection_QueryHasParentRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHasParentRequest +func (x fastReflection_QueryIsOperatorForRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsOperatorForRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryHasParentRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHasParentRequest +func (x *fastReflection_QueryIsOperatorForRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsOperatorForRequest } // 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_QueryHasParentRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryHasParentRequest_messageType +func (x *fastReflection_QueryIsOperatorForRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryIsOperatorForRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryHasParentRequest) New() protoreflect.Message { - return new(fastReflection_QueryHasParentRequest) +func (x *fastReflection_QueryIsOperatorForRequest) New() protoreflect.Message { + return new(fastReflection_QueryIsOperatorForRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryHasParentRequest) Interface() protoreflect.ProtoMessage { - return (*QueryHasParentRequest)(x) +func (x *fastReflection_QueryIsOperatorForRequest) Interface() protoreflect.ProtoMessage { + return (*QueryIsOperatorForRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -12153,16 +12372,22 @@ func (x *fastReflection_QueryHasParentRequest) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryHasParentRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryIsOperatorForRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryHasParentRequest_contract_id, value) { + if !f(fd_QueryIsOperatorForRequest_contract_id, value) { return } } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryHasParentRequest_token_id, value) { + if x.Operator != "" { + value := protoreflect.ValueOfString(x.Operator) + if !f(fd_QueryIsOperatorForRequest_operator, value) { + return + } + } + if x.Holder != "" { + value := protoreflect.ValueOfString(x.Holder) + if !f(fd_QueryIsOperatorForRequest_holder, value) { return } } @@ -12179,17 +12404,19 @@ func (x *fastReflection_QueryHasParentRequest) Range(f func(protoreflect.FieldDe // 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_QueryHasParentRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsOperatorForRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryHasParentRequest.token_id": - return x.TokenId != "" + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": + return x.Operator != "" + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": + return x.Holder != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) } } @@ -12199,17 +12426,19 @@ func (x *fastReflection_QueryHasParentRequest) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHasParentRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsOperatorForRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryHasParentRequest.token_id": - x.TokenId = "" + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": + x.Operator = "" + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": + x.Holder = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) } } @@ -12219,19 +12448,22 @@ func (x *fastReflection_QueryHasParentRequest) Clear(fd protoreflect.FieldDescri // 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_QueryHasParentRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryHasParentRequest.token_id": - value := x.TokenId + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": + value := x.Operator + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": + value := x.Holder return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", descriptor.FullName())) } } @@ -12245,17 +12477,19 @@ func (x *fastReflection_QueryHasParentRequest) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHasParentRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsOperatorForRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryHasParentRequest.token_id": - x.TokenId = value.Interface().(string) + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": + x.Operator = value.Interface().(string) + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": + x.Holder = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) } } @@ -12269,44 +12503,48 @@ func (x *fastReflection_QueryHasParentRequest) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHasParentRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryHasParentRequest is not mutable")) - case "lbm.collection.v1.QueryHasParentRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryHasParentRequest is not mutable")) + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": + panic(fmt.Errorf("field holder of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest 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_QueryHasParentRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryHasParentRequest.token_id": + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest 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_QueryHasParentRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsOperatorForRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHasParentRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryIsOperatorForRequest", d.FullName())) } panic("unreachable") } @@ -12314,7 +12552,7 @@ func (x *fastReflection_QueryHasParentRequest) WhichOneof(d protoreflect.OneofDe // 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_QueryHasParentRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsOperatorForRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12325,7 +12563,7 @@ func (x *fastReflection_QueryHasParentRequest) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHasParentRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsOperatorForRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12337,7 +12575,7 @@ func (x *fastReflection_QueryHasParentRequest) SetUnknown(fields protoreflect.Ra // 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_QueryHasParentRequest) IsValid() bool { +func (x *fastReflection_QueryIsOperatorForRequest) IsValid() bool { return x != nil } @@ -12347,9 +12585,9 @@ func (x *fastReflection_QueryHasParentRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryHasParentRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsOperatorForRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryHasParentRequest) + x := input.Message.Interface().(*QueryIsOperatorForRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12365,7 +12603,11 @@ func (x *fastReflection_QueryHasParentRequest) ProtoMethods() *protoiface.Method if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.TokenId) + l = len(x.Operator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Holder) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -12379,7 +12621,7 @@ func (x *fastReflection_QueryHasParentRequest) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryHasParentRequest) + x := input.Message.Interface().(*QueryIsOperatorForRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12398,10 +12640,17 @@ func (x *fastReflection_QueryHasParentRequest) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) + if len(x.Holder) > 0 { + i -= len(x.Holder) + copy(dAtA[i:], x.Holder) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holder))) + i-- + dAtA[i] = 0x1a + } + if len(x.Operator) > 0 { + i -= len(x.Operator) + copy(dAtA[i:], x.Operator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) i-- dAtA[i] = 0x12 } @@ -12423,7 +12672,7 @@ func (x *fastReflection_QueryHasParentRequest) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryHasParentRequest) + x := input.Message.Interface().(*QueryIsOperatorForRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12455,10 +12704,10 @@ func (x *fastReflection_QueryHasParentRequest) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHasParentRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHasParentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -12495,7 +12744,7 @@ func (x *fastReflection_QueryHasParentRequest) ProtoMethods() *protoiface.Method iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12523,7 +12772,39 @@ func (x *fastReflection_QueryHasParentRequest) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TokenId = string(dAtA[iNdEx:postIndex]) + x.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Holder", 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.Holder = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -12561,25 +12842,25 @@ func (x *fastReflection_QueryHasParentRequest) ProtoMethods() *protoiface.Method } var ( - md_QueryHasParentResponse protoreflect.MessageDescriptor - fd_QueryHasParentResponse_has_parent protoreflect.FieldDescriptor + md_QueryIsOperatorForResponse protoreflect.MessageDescriptor + fd_QueryIsOperatorForResponse_authorized protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryHasParentResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHasParentResponse") - fd_QueryHasParentResponse_has_parent = md_QueryHasParentResponse.Fields().ByName("has_parent") + md_QueryIsOperatorForResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryIsOperatorForResponse") + fd_QueryIsOperatorForResponse_authorized = md_QueryIsOperatorForResponse.Fields().ByName("authorized") } -var _ protoreflect.Message = (*fastReflection_QueryHasParentResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsOperatorForResponse)(nil) -type fastReflection_QueryHasParentResponse QueryHasParentResponse +type fastReflection_QueryIsOperatorForResponse QueryIsOperatorForResponse -func (x *QueryHasParentResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryHasParentResponse)(x) +func (x *QueryIsOperatorForResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsOperatorForResponse)(x) } -func (x *QueryHasParentResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryIsOperatorForResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12591,43 +12872,43 @@ func (x *QueryHasParentResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryHasParentResponse_messageType fastReflection_QueryHasParentResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryHasParentResponse_messageType{} +var _fastReflection_QueryIsOperatorForResponse_messageType fastReflection_QueryIsOperatorForResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsOperatorForResponse_messageType{} -type fastReflection_QueryHasParentResponse_messageType struct{} +type fastReflection_QueryIsOperatorForResponse_messageType struct{} -func (x fastReflection_QueryHasParentResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryHasParentResponse)(nil) +func (x fastReflection_QueryIsOperatorForResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsOperatorForResponse)(nil) } -func (x fastReflection_QueryHasParentResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryHasParentResponse) +func (x fastReflection_QueryIsOperatorForResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsOperatorForResponse) } -func (x fastReflection_QueryHasParentResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHasParentResponse +func (x fastReflection_QueryIsOperatorForResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsOperatorForResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryHasParentResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHasParentResponse +func (x *fastReflection_QueryIsOperatorForResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsOperatorForResponse } // 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_QueryHasParentResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryHasParentResponse_messageType +func (x *fastReflection_QueryIsOperatorForResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryIsOperatorForResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryHasParentResponse) New() protoreflect.Message { - return new(fastReflection_QueryHasParentResponse) +func (x *fastReflection_QueryIsOperatorForResponse) New() protoreflect.Message { + return new(fastReflection_QueryIsOperatorForResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryHasParentResponse) Interface() protoreflect.ProtoMessage { - return (*QueryHasParentResponse)(x) +func (x *fastReflection_QueryIsOperatorForResponse) Interface() protoreflect.ProtoMessage { + return (*QueryIsOperatorForResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -12635,10 +12916,10 @@ func (x *fastReflection_QueryHasParentResponse) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryHasParentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.HasParent != false { - value := protoreflect.ValueOfBool(x.HasParent) - if !f(fd_QueryHasParentResponse_has_parent, value) { +func (x *fastReflection_QueryIsOperatorForResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authorized != false { + value := protoreflect.ValueOfBool(x.Authorized) + if !f(fd_QueryIsOperatorForResponse_authorized, value) { return } } @@ -12655,15 +12936,15 @@ func (x *fastReflection_QueryHasParentResponse) Range(f func(protoreflect.FieldD // 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_QueryHasParentResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsOperatorForResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": - return x.HasParent != false + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": + return x.Authorized != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) } } @@ -12673,15 +12954,15 @@ func (x *fastReflection_QueryHasParentResponse) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHasParentResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsOperatorForResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": - x.HasParent = false + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": + x.Authorized = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) } } @@ -12691,16 +12972,16 @@ func (x *fastReflection_QueryHasParentResponse) Clear(fd protoreflect.FieldDescr // 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_QueryHasParentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": - value := x.HasParent + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": + value := x.Authorized return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", descriptor.FullName())) } } @@ -12714,15 +12995,15 @@ func (x *fastReflection_QueryHasParentResponse) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHasParentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsOperatorForResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": - x.HasParent = value.Bool() + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": + x.Authorized = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) } } @@ -12736,40 +13017,40 @@ func (x *fastReflection_QueryHasParentResponse) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHasParentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": - panic(fmt.Errorf("field has_parent of message lbm.collection.v1.QueryHasParentResponse is not mutable")) + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": + panic(fmt.Errorf("field authorized of message lbm.collection.v1.QueryIsOperatorForResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse 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_QueryHasParentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse 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_QueryHasParentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsOperatorForResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHasParentResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryIsOperatorForResponse", d.FullName())) } panic("unreachable") } @@ -12777,7 +13058,7 @@ func (x *fastReflection_QueryHasParentResponse) WhichOneof(d protoreflect.OneofD // 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_QueryHasParentResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsOperatorForResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12788,7 +13069,7 @@ func (x *fastReflection_QueryHasParentResponse) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHasParentResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsOperatorForResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12800,7 +13081,7 @@ func (x *fastReflection_QueryHasParentResponse) SetUnknown(fields protoreflect.R // 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_QueryHasParentResponse) IsValid() bool { +func (x *fastReflection_QueryIsOperatorForResponse) IsValid() bool { return x != nil } @@ -12810,9 +13091,9 @@ func (x *fastReflection_QueryHasParentResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryHasParentResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsOperatorForResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryHasParentResponse) + x := input.Message.Interface().(*QueryIsOperatorForResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12824,7 +13105,7 @@ func (x *fastReflection_QueryHasParentResponse) ProtoMethods() *protoiface.Metho var n int var l int _ = l - if x.HasParent { + if x.Authorized { n += 2 } if x.unknownFields != nil { @@ -12837,7 +13118,7 @@ func (x *fastReflection_QueryHasParentResponse) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryHasParentResponse) + x := input.Message.Interface().(*QueryIsOperatorForResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12856,9 +13137,9 @@ func (x *fastReflection_QueryHasParentResponse) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.HasParent { + if x.Authorized { i-- - if x.HasParent { + if x.Authorized { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -12877,7 +13158,7 @@ func (x *fastReflection_QueryHasParentResponse) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryHasParentResponse) + x := input.Message.Interface().(*QueryIsOperatorForResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12909,15 +13190,15 @@ func (x *fastReflection_QueryHasParentResponse) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHasParentResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHasParentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HasParent", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authorized", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -12934,7 +13215,7 @@ func (x *fastReflection_QueryHasParentResponse) ProtoMethods() *protoiface.Metho break } } - x.HasParent = bool(v != 0) + x.Authorized = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -12971,27 +13252,29 @@ func (x *fastReflection_QueryHasParentResponse) ProtoMethods() *protoiface.Metho } var ( - md_QueryParentRequest protoreflect.MessageDescriptor - fd_QueryParentRequest_contract_id protoreflect.FieldDescriptor - fd_QueryParentRequest_token_id protoreflect.FieldDescriptor + md_QueryHoldersByOperatorRequest protoreflect.MessageDescriptor + fd_QueryHoldersByOperatorRequest_contract_id protoreflect.FieldDescriptor + fd_QueryHoldersByOperatorRequest_operator protoreflect.FieldDescriptor + fd_QueryHoldersByOperatorRequest_pagination protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryParentRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryParentRequest") - fd_QueryParentRequest_contract_id = md_QueryParentRequest.Fields().ByName("contract_id") - fd_QueryParentRequest_token_id = md_QueryParentRequest.Fields().ByName("token_id") + md_QueryHoldersByOperatorRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHoldersByOperatorRequest") + fd_QueryHoldersByOperatorRequest_contract_id = md_QueryHoldersByOperatorRequest.Fields().ByName("contract_id") + fd_QueryHoldersByOperatorRequest_operator = md_QueryHoldersByOperatorRequest.Fields().ByName("operator") + fd_QueryHoldersByOperatorRequest_pagination = md_QueryHoldersByOperatorRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryParentRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryHoldersByOperatorRequest)(nil) -type fastReflection_QueryParentRequest QueryParentRequest +type fastReflection_QueryHoldersByOperatorRequest QueryHoldersByOperatorRequest -func (x *QueryParentRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParentRequest)(x) +func (x *QueryHoldersByOperatorRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryHoldersByOperatorRequest)(x) } -func (x *QueryParentRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryHoldersByOperatorRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13003,43 +13286,43 @@ func (x *QueryParentRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryParentRequest_messageType fastReflection_QueryParentRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryParentRequest_messageType{} +var _fastReflection_QueryHoldersByOperatorRequest_messageType fastReflection_QueryHoldersByOperatorRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryHoldersByOperatorRequest_messageType{} -type fastReflection_QueryParentRequest_messageType struct{} +type fastReflection_QueryHoldersByOperatorRequest_messageType struct{} -func (x fastReflection_QueryParentRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParentRequest)(nil) +func (x fastReflection_QueryHoldersByOperatorRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryHoldersByOperatorRequest)(nil) } -func (x fastReflection_QueryParentRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParentRequest) +func (x fastReflection_QueryHoldersByOperatorRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryHoldersByOperatorRequest) } -func (x fastReflection_QueryParentRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParentRequest +func (x fastReflection_QueryHoldersByOperatorRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryHoldersByOperatorRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryParentRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParentRequest +func (x *fastReflection_QueryHoldersByOperatorRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryHoldersByOperatorRequest } // 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_QueryParentRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryParentRequest_messageType +func (x *fastReflection_QueryHoldersByOperatorRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryHoldersByOperatorRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParentRequest) New() protoreflect.Message { - return new(fastReflection_QueryParentRequest) +func (x *fastReflection_QueryHoldersByOperatorRequest) New() protoreflect.Message { + return new(fastReflection_QueryHoldersByOperatorRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParentRequest) Interface() protoreflect.ProtoMessage { - return (*QueryParentRequest)(x) +func (x *fastReflection_QueryHoldersByOperatorRequest) Interface() protoreflect.ProtoMessage { + return (*QueryHoldersByOperatorRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -13047,16 +13330,22 @@ func (x *fastReflection_QueryParentRequest) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryParentRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryHoldersByOperatorRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryParentRequest_contract_id, value) { + if !f(fd_QueryHoldersByOperatorRequest_contract_id, value) { return } } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryParentRequest_token_id, value) { + if x.Operator != "" { + value := protoreflect.ValueOfString(x.Operator) + if !f(fd_QueryHoldersByOperatorRequest_operator, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryHoldersByOperatorRequest_pagination, value) { return } } @@ -13073,17 +13362,19 @@ func (x *fastReflection_QueryParentRequest) Range(f func(protoreflect.FieldDescr // 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_QueryParentRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryHoldersByOperatorRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryParentRequest.token_id": - return x.TokenId != "" + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": + return x.Operator != "" + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) } } @@ -13093,17 +13384,19 @@ func (x *fastReflection_QueryParentRequest) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParentRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryHoldersByOperatorRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryParentRequest.token_id": - x.TokenId = "" + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": + x.Operator = "" + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) } } @@ -13113,19 +13406,22 @@ func (x *fastReflection_QueryParentRequest) Clear(fd protoreflect.FieldDescripto // 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_QueryParentRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryParentRequest.token_id": - value := x.TokenId + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": + value := x.Operator return protoreflect.ValueOfString(value) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", descriptor.FullName())) } } @@ -13139,17 +13435,19 @@ func (x *fastReflection_QueryParentRequest) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParentRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryHoldersByOperatorRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryParentRequest.token_id": - x.TokenId = value.Interface().(string) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": + x.Operator = value.Interface().(string) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + x.Pagination = value.Message().Interface().(*query.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) } } @@ -13163,44 +13461,52 @@ func (x *fastReflection_QueryParentRequest) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParentRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryParentRequest is not mutable")) - case "lbm.collection.v1.QueryParentRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryParentRequest is not mutable")) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(query.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryHoldersByOperatorRequest is not mutable")) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.QueryHoldersByOperatorRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest 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_QueryParentRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryParentRequest.token_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": return protoreflect.ValueOfString("") + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + m := new(query.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest 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_QueryParentRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryHoldersByOperatorRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryParentRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHoldersByOperatorRequest", d.FullName())) } panic("unreachable") } @@ -13208,7 +13514,7 @@ func (x *fastReflection_QueryParentRequest) WhichOneof(d protoreflect.OneofDescr // 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_QueryParentRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryHoldersByOperatorRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -13219,7 +13525,7 @@ func (x *fastReflection_QueryParentRequest) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParentRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryHoldersByOperatorRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -13231,7 +13537,7 @@ func (x *fastReflection_QueryParentRequest) SetUnknown(fields protoreflect.RawFi // 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_QueryParentRequest) IsValid() bool { +func (x *fastReflection_QueryHoldersByOperatorRequest) IsValid() bool { return x != nil } @@ -13241,9 +13547,9 @@ func (x *fastReflection_QueryParentRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryParentRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryHoldersByOperatorRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParentRequest) + x := input.Message.Interface().(*QueryHoldersByOperatorRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13259,10 +13565,14 @@ func (x *fastReflection_QueryParentRequest) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.TokenId) + l = len(x.Operator) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -13273,7 +13583,7 @@ func (x *fastReflection_QueryParentRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParentRequest) + x := input.Message.Interface().(*QueryHoldersByOperatorRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13292,10 +13602,24 @@ func (x *fastReflection_QueryParentRequest) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.Operator) > 0 { + i -= len(x.Operator) + copy(dAtA[i:], x.Operator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) i-- dAtA[i] = 0x12 } @@ -13317,7 +13641,7 @@ func (x *fastReflection_QueryParentRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParentRequest) + x := input.Message.Interface().(*QueryHoldersByOperatorRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13349,10 +13673,10 @@ func (x *fastReflection_QueryParentRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParentRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -13389,7 +13713,7 @@ func (x *fastReflection_QueryParentRequest) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13417,7 +13741,43 @@ func (x *fastReflection_QueryParentRequest) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TokenId = string(dAtA[iNdEx:postIndex]) + x.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &query.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -13454,26 +13814,74 @@ func (x *fastReflection_QueryParentRequest) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_QueryHoldersByOperatorResponse_1_list)(nil) + +type _QueryHoldersByOperatorResponse_1_list struct { + list *[]string +} + +func (x *_QueryHoldersByOperatorResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryHoldersByOperatorResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_QueryHoldersByOperatorResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_QueryHoldersByOperatorResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryHoldersByOperatorResponse_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QueryHoldersByOperatorResponse at list field Holders as it is not of Message kind")) +} + +func (x *_QueryHoldersByOperatorResponse_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_QueryHoldersByOperatorResponse_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_QueryHoldersByOperatorResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryParentResponse protoreflect.MessageDescriptor - fd_QueryParentResponse_parent protoreflect.FieldDescriptor + md_QueryHoldersByOperatorResponse protoreflect.MessageDescriptor + fd_QueryHoldersByOperatorResponse_holders protoreflect.FieldDescriptor + fd_QueryHoldersByOperatorResponse_pagination protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryParentResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryParentResponse") - fd_QueryParentResponse_parent = md_QueryParentResponse.Fields().ByName("parent") + md_QueryHoldersByOperatorResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHoldersByOperatorResponse") + fd_QueryHoldersByOperatorResponse_holders = md_QueryHoldersByOperatorResponse.Fields().ByName("holders") + fd_QueryHoldersByOperatorResponse_pagination = md_QueryHoldersByOperatorResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryParentResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryHoldersByOperatorResponse)(nil) -type fastReflection_QueryParentResponse QueryParentResponse +type fastReflection_QueryHoldersByOperatorResponse QueryHoldersByOperatorResponse -func (x *QueryParentResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParentResponse)(x) +func (x *QueryHoldersByOperatorResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryHoldersByOperatorResponse)(x) } -func (x *QueryParentResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryHoldersByOperatorResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13485,43 +13893,43 @@ func (x *QueryParentResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryParentResponse_messageType fastReflection_QueryParentResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryParentResponse_messageType{} +var _fastReflection_QueryHoldersByOperatorResponse_messageType fastReflection_QueryHoldersByOperatorResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryHoldersByOperatorResponse_messageType{} -type fastReflection_QueryParentResponse_messageType struct{} +type fastReflection_QueryHoldersByOperatorResponse_messageType struct{} -func (x fastReflection_QueryParentResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParentResponse)(nil) +func (x fastReflection_QueryHoldersByOperatorResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryHoldersByOperatorResponse)(nil) } -func (x fastReflection_QueryParentResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParentResponse) +func (x fastReflection_QueryHoldersByOperatorResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryHoldersByOperatorResponse) } -func (x fastReflection_QueryParentResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParentResponse +func (x fastReflection_QueryHoldersByOperatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryHoldersByOperatorResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryParentResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParentResponse +func (x *fastReflection_QueryHoldersByOperatorResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryHoldersByOperatorResponse } // 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_QueryParentResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryParentResponse_messageType +func (x *fastReflection_QueryHoldersByOperatorResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryHoldersByOperatorResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParentResponse) New() protoreflect.Message { - return new(fastReflection_QueryParentResponse) +func (x *fastReflection_QueryHoldersByOperatorResponse) New() protoreflect.Message { + return new(fastReflection_QueryHoldersByOperatorResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParentResponse) Interface() protoreflect.ProtoMessage { - return (*QueryParentResponse)(x) +func (x *fastReflection_QueryHoldersByOperatorResponse) Interface() protoreflect.ProtoMessage { + return (*QueryHoldersByOperatorResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -13529,10 +13937,16 @@ func (x *fastReflection_QueryParentResponse) Interface() protoreflect.ProtoMessa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryParentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Parent != nil { - value := protoreflect.ValueOfMessage(x.Parent.ProtoReflect()) - if !f(fd_QueryParentResponse_parent, value) { +func (x *fastReflection_QueryHoldersByOperatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Holders) != 0 { + value := protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{list: &x.Holders}) + if !f(fd_QueryHoldersByOperatorResponse_holders, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryHoldersByOperatorResponse_pagination, value) { return } } @@ -13549,15 +13963,17 @@ func (x *fastReflection_QueryParentResponse) Range(f func(protoreflect.FieldDesc // 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_QueryParentResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryHoldersByOperatorResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - return x.Parent != nil + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + return len(x.Holders) != 0 + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) } } @@ -13567,15 +13983,17 @@ func (x *fastReflection_QueryParentResponse) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParentResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryHoldersByOperatorResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - x.Parent = nil + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + x.Holders = nil + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) } } @@ -13585,16 +14003,22 @@ func (x *fastReflection_QueryParentResponse) Clear(fd protoreflect.FieldDescript // 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_QueryParentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - value := x.Parent + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + if len(x.Holders) == 0 { + return protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{}) + } + listValue := &_QueryHoldersByOperatorResponse_1_list{list: &x.Holders} + return protoreflect.ValueOfList(listValue) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", descriptor.FullName())) } } @@ -13608,15 +14032,19 @@ func (x *fastReflection_QueryParentResponse) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryHoldersByOperatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - x.Parent = value.Message().Interface().(*NFT) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + lv := value.List() + clv := lv.(*_QueryHoldersByOperatorResponse_1_list) + x.Holders = *clv.list + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + x.Pagination = value.Message().Interface().(*query.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) } } @@ -13630,44 +14058,53 @@ func (x *fastReflection_QueryParentResponse) Set(fd protoreflect.FieldDescriptor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - if x.Parent == nil { - x.Parent = new(NFT) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + if x.Holders == nil { + x.Holders = []string{} + } + value := &_QueryHoldersByOperatorResponse_1_list{list: &x.Holders} + return protoreflect.ValueOfList(value) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(query.PageResponse) } - return protoreflect.ValueOfMessage(x.Parent.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse 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_QueryParentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - m := new(NFT) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + list := []string{} + return protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{list: &list}) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + m := new(query.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse 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_QueryParentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryHoldersByOperatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryParentResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHoldersByOperatorResponse", d.FullName())) } panic("unreachable") } @@ -13675,7 +14112,7 @@ func (x *fastReflection_QueryParentResponse) WhichOneof(d protoreflect.OneofDesc // 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_QueryParentResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryHoldersByOperatorResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -13686,7 +14123,7 @@ func (x *fastReflection_QueryParentResponse) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParentResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryHoldersByOperatorResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -13698,7 +14135,7 @@ func (x *fastReflection_QueryParentResponse) SetUnknown(fields protoreflect.RawF // 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_QueryParentResponse) IsValid() bool { +func (x *fastReflection_QueryHoldersByOperatorResponse) IsValid() bool { return x != nil } @@ -13708,9 +14145,9 @@ func (x *fastReflection_QueryParentResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryParentResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryHoldersByOperatorResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParentResponse) + x := input.Message.Interface().(*QueryHoldersByOperatorResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13722,8 +14159,14 @@ func (x *fastReflection_QueryParentResponse) ProtoMethods() *protoiface.Methods var n int var l int _ = l - if x.Parent != nil { - l = options.Size(x.Parent) + if len(x.Holders) > 0 { + for _, s := range x.Holders { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -13736,7 +14179,7 @@ func (x *fastReflection_QueryParentResponse) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParentResponse) + x := input.Message.Interface().(*QueryHoldersByOperatorResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13755,8 +14198,8 @@ func (x *fastReflection_QueryParentResponse) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Parent != nil { - encoded, err := options.Marshal(x.Parent) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13767,7 +14210,16 @@ func (x *fastReflection_QueryParentResponse) ProtoMethods() *protoiface.Methods copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if len(x.Holders) > 0 { + for iNdEx := len(x.Holders) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Holders[iNdEx]) + copy(dAtA[i:], x.Holders[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holders[iNdEx]))) + i-- + dAtA[i] = 0xa + } } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -13780,7 +14232,7 @@ func (x *fastReflection_QueryParentResponse) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParentResponse) + x := input.Message.Interface().(*QueryHoldersByOperatorResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13812,15 +14264,47 @@ func (x *fastReflection_QueryParentResponse) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParentResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorResponse: 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 Parent", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Holders", 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.Holders = append(x.Holders, 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 Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13847,10 +14331,10 @@ func (x *fastReflection_QueryParentResponse) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Parent == nil { - x.Parent = &NFT{} + if x.Pagination == nil { + x.Pagination = &query.PageResponse{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Parent); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -13889,5228 +14373,547 @@ func (x *fastReflection_QueryParentResponse) ProtoMethods() *protoiface.Methods } } -var ( - md_QueryChildrenRequest protoreflect.MessageDescriptor - fd_QueryChildrenRequest_contract_id protoreflect.FieldDescriptor - fd_QueryChildrenRequest_token_id protoreflect.FieldDescriptor - fd_QueryChildrenRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryChildrenRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryChildrenRequest") - fd_QueryChildrenRequest_contract_id = md_QueryChildrenRequest.Fields().ByName("contract_id") - fd_QueryChildrenRequest_token_id = md_QueryChildrenRequest.Fields().ByName("token_id") - fd_QueryChildrenRequest_pagination = md_QueryChildrenRequest.Fields().ByName("pagination") -} +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: lbm/collection/v1/query.proto -var _ protoreflect.Message = (*fastReflection_QueryChildrenRequest)(nil) +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -type fastReflection_QueryChildrenRequest QueryChildrenRequest +// QueryBalanceRequest is the request type for the Query/Balance RPC method. +type QueryBalanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *QueryChildrenRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryChildrenRequest)(x) + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address is the address to query the balance for. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // token id associated with the token. + TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` } -func (x *QueryChildrenRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { +func (x *QueryBalanceRequest) Reset() { + *x = QueryBalanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_lbm_collection_v1_query_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms + ms.StoreMessageInfo(mi) } - return mi.MessageOf(x) -} - -var _fastReflection_QueryChildrenRequest_messageType fastReflection_QueryChildrenRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryChildrenRequest_messageType{} - -type fastReflection_QueryChildrenRequest_messageType struct{} - -func (x fastReflection_QueryChildrenRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryChildrenRequest)(nil) -} -func (x fastReflection_QueryChildrenRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryChildrenRequest) -} -func (x fastReflection_QueryChildrenRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChildrenRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryChildrenRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChildrenRequest -} - -// 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_QueryChildrenRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryChildrenRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryChildrenRequest) New() protoreflect.Message { - return new(fastReflection_QueryChildrenRequest) } -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryChildrenRequest) Interface() protoreflect.ProtoMessage { - return (*QueryChildrenRequest)(x) +func (x *QueryBalanceRequest) String() string { + return protoimpl.X.MessageStringOf(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_QueryChildrenRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryChildrenRequest_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryChildrenRequest_token_id, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryChildrenRequest_pagination, value) { - return - } - } -} +func (*QueryBalanceRequest) ProtoMessage() {} -// 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_QueryChildrenRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryChildrenRequest.token_id": - return x.TokenId != "" - case "lbm.collection.v1.QueryChildrenRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", fd.FullName())) - } +// Deprecated: Use QueryBalanceRequest.ProtoReflect.Descriptor instead. +func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{0} } -// 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_QueryChildrenRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryChildrenRequest.token_id": - x.TokenId = "" - case "lbm.collection.v1.QueryChildrenRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", fd.FullName())) +func (x *QueryBalanceRequest) GetContractId() string { + if x != nil { + return x.ContractId } + return "" } -// 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_QueryChildrenRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryChildrenRequest.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryChildrenRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", descriptor.FullName())) +func (x *QueryBalanceRequest) GetAddress() string { + if x != nil { + return x.Address } + return "" } -// 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_QueryChildrenRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryChildrenRequest.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.QueryChildrenRequest.pagination": - x.Pagination = value.Message().Interface().(*query.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", fd.FullName())) +func (x *QueryBalanceRequest) GetTokenId() string { + if x != nil { + return x.TokenId } + return "" } -// 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_QueryChildrenRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryChildrenRequest is not mutable")) - case "lbm.collection.v1.QueryChildrenRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryChildrenRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", fd.FullName())) - } -} +// QueryBalanceResponse is the response type for the Query/Balance RPC method. +type QueryBalanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// 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_QueryChildrenRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryChildrenRequest.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryChildrenRequest.pagination": - m := new(query.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", fd.FullName())) - } + // balance is the balance of the token. + Balance *Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` } -// 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_QueryChildrenRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryChildrenRequest", d.FullName())) +func (x *QueryBalanceResponse) Reset() { + *x = QueryBalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_lbm_collection_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - 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_QueryChildrenRequest) 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_QueryChildrenRequest) 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_QueryChildrenRequest) 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_QueryChildrenRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryChildrenRequest) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryChildrenRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*QueryChildrenRequest) - 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: QueryChildrenRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryChildrenRequest: 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 ContractId", 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.ContractId = 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 TokenId", 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.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryChildrenResponse_1_list)(nil) - -type _QueryChildrenResponse_1_list struct { - list *[]*NFT -} - -func (x *_QueryChildrenResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryChildrenResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryChildrenResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NFT) - (*x.list)[i] = concreteValue -} - -func (x *_QueryChildrenResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NFT) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryChildrenResponse_1_list) AppendMutable() protoreflect.Value { - v := new(NFT) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryChildrenResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryChildrenResponse_1_list) NewElement() protoreflect.Value { - v := new(NFT) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryChildrenResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryChildrenResponse protoreflect.MessageDescriptor - fd_QueryChildrenResponse_children protoreflect.FieldDescriptor - fd_QueryChildrenResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryChildrenResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryChildrenResponse") - fd_QueryChildrenResponse_children = md_QueryChildrenResponse.Fields().ByName("children") - fd_QueryChildrenResponse_pagination = md_QueryChildrenResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryChildrenResponse)(nil) - -type fastReflection_QueryChildrenResponse QueryChildrenResponse - -func (x *QueryChildrenResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryChildrenResponse)(x) -} - -func (x *QueryChildrenResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[31] - 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_QueryChildrenResponse_messageType fastReflection_QueryChildrenResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryChildrenResponse_messageType{} - -type fastReflection_QueryChildrenResponse_messageType struct{} - -func (x fastReflection_QueryChildrenResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryChildrenResponse)(nil) -} -func (x fastReflection_QueryChildrenResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryChildrenResponse) -} -func (x fastReflection_QueryChildrenResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChildrenResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryChildrenResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChildrenResponse -} - -// 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_QueryChildrenResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryChildrenResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryChildrenResponse) New() protoreflect.Message { - return new(fastReflection_QueryChildrenResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryChildrenResponse) Interface() protoreflect.ProtoMessage { - return (*QueryChildrenResponse)(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_QueryChildrenResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Children) != 0 { - value := protoreflect.ValueOfList(&_QueryChildrenResponse_1_list{list: &x.Children}) - if !f(fd_QueryChildrenResponse_children, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryChildrenResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryChildrenResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - return len(x.Children) != 0 - case "lbm.collection.v1.QueryChildrenResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse 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_QueryChildrenResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - x.Children = nil - case "lbm.collection.v1.QueryChildrenResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse 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_QueryChildrenResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - if len(x.Children) == 0 { - return protoreflect.ValueOfList(&_QueryChildrenResponse_1_list{}) - } - listValue := &_QueryChildrenResponse_1_list{list: &x.Children} - return protoreflect.ValueOfList(listValue) - case "lbm.collection.v1.QueryChildrenResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse 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_QueryChildrenResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - lv := value.List() - clv := lv.(*_QueryChildrenResponse_1_list) - x.Children = *clv.list - case "lbm.collection.v1.QueryChildrenResponse.pagination": - x.Pagination = value.Message().Interface().(*query.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse 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_QueryChildrenResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - if x.Children == nil { - x.Children = []*NFT{} - } - value := &_QueryChildrenResponse_1_list{list: &x.Children} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.QueryChildrenResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse 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_QueryChildrenResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - list := []*NFT{} - return protoreflect.ValueOfList(&_QueryChildrenResponse_1_list{list: &list}) - case "lbm.collection.v1.QueryChildrenResponse.pagination": - m := new(query.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse 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_QueryChildrenResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryChildrenResponse", 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_QueryChildrenResponse) 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_QueryChildrenResponse) 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_QueryChildrenResponse) 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_QueryChildrenResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryChildrenResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Children) > 0 { - for _, e := range x.Children { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryChildrenResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Children) > 0 { - for iNdEx := len(x.Children) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Children[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryChildrenResponse) - 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: QueryChildrenResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryChildrenResponse: 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 Children", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Children = append(x.Children, &NFT{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Children[len(x.Children)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGranteeGrantsRequest protoreflect.MessageDescriptor - fd_QueryGranteeGrantsRequest_contract_id protoreflect.FieldDescriptor - fd_QueryGranteeGrantsRequest_grantee protoreflect.FieldDescriptor - fd_QueryGranteeGrantsRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryGranteeGrantsRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryGranteeGrantsRequest") - fd_QueryGranteeGrantsRequest_contract_id = md_QueryGranteeGrantsRequest.Fields().ByName("contract_id") - fd_QueryGranteeGrantsRequest_grantee = md_QueryGranteeGrantsRequest.Fields().ByName("grantee") - fd_QueryGranteeGrantsRequest_pagination = md_QueryGranteeGrantsRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGranteeGrantsRequest)(nil) - -type fastReflection_QueryGranteeGrantsRequest QueryGranteeGrantsRequest - -func (x *QueryGranteeGrantsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGranteeGrantsRequest)(x) -} - -func (x *QueryGranteeGrantsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[32] - 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_QueryGranteeGrantsRequest_messageType fastReflection_QueryGranteeGrantsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGranteeGrantsRequest_messageType{} - -type fastReflection_QueryGranteeGrantsRequest_messageType struct{} - -func (x fastReflection_QueryGranteeGrantsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGranteeGrantsRequest)(nil) -} -func (x fastReflection_QueryGranteeGrantsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGranteeGrantsRequest) -} -func (x fastReflection_QueryGranteeGrantsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGranteeGrantsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGranteeGrantsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGranteeGrantsRequest -} - -// 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_QueryGranteeGrantsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGranteeGrantsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGranteeGrantsRequest) New() protoreflect.Message { - return new(fastReflection_QueryGranteeGrantsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGranteeGrantsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGranteeGrantsRequest)(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_QueryGranteeGrantsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryGranteeGrantsRequest_contract_id, value) { - return - } - } - if x.Grantee != "" { - value := protoreflect.ValueOfString(x.Grantee) - if !f(fd_QueryGranteeGrantsRequest_grantee, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGranteeGrantsRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGranteeGrantsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - return x.Grantee != "" - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest 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_QueryGranteeGrantsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - x.Grantee = "" - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest 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_QueryGranteeGrantsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - value := x.Grantee - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest 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_QueryGranteeGrantsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - x.Grantee = value.Interface().(string) - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - x.Pagination = value.Message().Interface().(*query.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest 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_QueryGranteeGrantsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryGranteeGrantsRequest is not mutable")) - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - panic(fmt.Errorf("field grantee of message lbm.collection.v1.QueryGranteeGrantsRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest 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_QueryGranteeGrantsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - m := new(query.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest 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_QueryGranteeGrantsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryGranteeGrantsRequest", 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_QueryGranteeGrantsRequest) 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_QueryGranteeGrantsRequest) 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_QueryGranteeGrantsRequest) 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_QueryGranteeGrantsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGranteeGrantsRequest) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Grantee) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGranteeGrantsRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if len(x.Grantee) > 0 { - i -= len(x.Grantee) - copy(dAtA[i:], x.Grantee) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Grantee))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*QueryGranteeGrantsRequest) - 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: QueryGranteeGrantsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsRequest: 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 ContractId", 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.ContractId = 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 Grantee", 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.Grantee = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryGranteeGrantsResponse_1_list)(nil) - -type _QueryGranteeGrantsResponse_1_list struct { - list *[]*Grant -} - -func (x *_QueryGranteeGrantsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryGranteeGrantsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryGranteeGrantsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Grant) - (*x.list)[i] = concreteValue -} - -func (x *_QueryGranteeGrantsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Grant) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryGranteeGrantsResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Grant) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGranteeGrantsResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryGranteeGrantsResponse_1_list) NewElement() protoreflect.Value { - v := new(Grant) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGranteeGrantsResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryGranteeGrantsResponse protoreflect.MessageDescriptor - fd_QueryGranteeGrantsResponse_grants protoreflect.FieldDescriptor - fd_QueryGranteeGrantsResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryGranteeGrantsResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryGranteeGrantsResponse") - fd_QueryGranteeGrantsResponse_grants = md_QueryGranteeGrantsResponse.Fields().ByName("grants") - fd_QueryGranteeGrantsResponse_pagination = md_QueryGranteeGrantsResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGranteeGrantsResponse)(nil) - -type fastReflection_QueryGranteeGrantsResponse QueryGranteeGrantsResponse - -func (x *QueryGranteeGrantsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGranteeGrantsResponse)(x) -} - -func (x *QueryGranteeGrantsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[33] - 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_QueryGranteeGrantsResponse_messageType fastReflection_QueryGranteeGrantsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGranteeGrantsResponse_messageType{} - -type fastReflection_QueryGranteeGrantsResponse_messageType struct{} - -func (x fastReflection_QueryGranteeGrantsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGranteeGrantsResponse)(nil) -} -func (x fastReflection_QueryGranteeGrantsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGranteeGrantsResponse) -} -func (x fastReflection_QueryGranteeGrantsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGranteeGrantsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGranteeGrantsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGranteeGrantsResponse -} - -// 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_QueryGranteeGrantsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGranteeGrantsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGranteeGrantsResponse) New() protoreflect.Message { - return new(fastReflection_QueryGranteeGrantsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGranteeGrantsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGranteeGrantsResponse)(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_QueryGranteeGrantsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Grants) != 0 { - value := protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{list: &x.Grants}) - if !f(fd_QueryGranteeGrantsResponse_grants, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGranteeGrantsResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGranteeGrantsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - return len(x.Grants) != 0 - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse 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_QueryGranteeGrantsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - x.Grants = nil - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse 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_QueryGranteeGrantsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - if len(x.Grants) == 0 { - return protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{}) - } - listValue := &_QueryGranteeGrantsResponse_1_list{list: &x.Grants} - return protoreflect.ValueOfList(listValue) - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse 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_QueryGranteeGrantsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - lv := value.List() - clv := lv.(*_QueryGranteeGrantsResponse_1_list) - x.Grants = *clv.list - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - x.Pagination = value.Message().Interface().(*query.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse 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_QueryGranteeGrantsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - if x.Grants == nil { - x.Grants = []*Grant{} - } - value := &_QueryGranteeGrantsResponse_1_list{list: &x.Grants} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse 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_QueryGranteeGrantsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - list := []*Grant{} - return protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{list: &list}) - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - m := new(query.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse 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_QueryGranteeGrantsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryGranteeGrantsResponse", 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_QueryGranteeGrantsResponse) 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_QueryGranteeGrantsResponse) 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_QueryGranteeGrantsResponse) 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_QueryGranteeGrantsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGranteeGrantsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Grants) > 0 { - for _, e := range x.Grants { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGranteeGrantsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Grants) > 0 { - for iNdEx := len(x.Grants) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Grants[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGranteeGrantsResponse) - 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: QueryGranteeGrantsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsResponse: 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 Grants", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Grants = append(x.Grants, &Grant{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Grants[len(x.Grants)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryIsOperatorForRequest protoreflect.MessageDescriptor - fd_QueryIsOperatorForRequest_contract_id protoreflect.FieldDescriptor - fd_QueryIsOperatorForRequest_operator protoreflect.FieldDescriptor - fd_QueryIsOperatorForRequest_holder protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryIsOperatorForRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryIsOperatorForRequest") - fd_QueryIsOperatorForRequest_contract_id = md_QueryIsOperatorForRequest.Fields().ByName("contract_id") - fd_QueryIsOperatorForRequest_operator = md_QueryIsOperatorForRequest.Fields().ByName("operator") - fd_QueryIsOperatorForRequest_holder = md_QueryIsOperatorForRequest.Fields().ByName("holder") -} - -var _ protoreflect.Message = (*fastReflection_QueryIsOperatorForRequest)(nil) - -type fastReflection_QueryIsOperatorForRequest QueryIsOperatorForRequest - -func (x *QueryIsOperatorForRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsOperatorForRequest)(x) -} - -func (x *QueryIsOperatorForRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[34] - 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_QueryIsOperatorForRequest_messageType fastReflection_QueryIsOperatorForRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsOperatorForRequest_messageType{} - -type fastReflection_QueryIsOperatorForRequest_messageType struct{} - -func (x fastReflection_QueryIsOperatorForRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsOperatorForRequest)(nil) -} -func (x fastReflection_QueryIsOperatorForRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsOperatorForRequest) -} -func (x fastReflection_QueryIsOperatorForRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsOperatorForRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryIsOperatorForRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsOperatorForRequest -} - -// 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_QueryIsOperatorForRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryIsOperatorForRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsOperatorForRequest) New() protoreflect.Message { - return new(fastReflection_QueryIsOperatorForRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsOperatorForRequest) Interface() protoreflect.ProtoMessage { - return (*QueryIsOperatorForRequest)(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_QueryIsOperatorForRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryIsOperatorForRequest_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_QueryIsOperatorForRequest_operator, value) { - return - } - } - if x.Holder != "" { - value := protoreflect.ValueOfString(x.Holder) - if !f(fd_QueryIsOperatorForRequest_holder, 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_QueryIsOperatorForRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - return x.Operator != "" - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - return x.Holder != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest 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_QueryIsOperatorForRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - x.Operator = "" - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - x.Holder = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest 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_QueryIsOperatorForRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - value := x.Holder - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest 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_QueryIsOperatorForRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - x.Holder = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest 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_QueryIsOperatorForRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - panic(fmt.Errorf("field holder of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest 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_QueryIsOperatorForRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest 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_QueryIsOperatorForRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryIsOperatorForRequest", 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_QueryIsOperatorForRequest) 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_QueryIsOperatorForRequest) 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_QueryIsOperatorForRequest) 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_QueryIsOperatorForRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsOperatorForRequest) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Holder) - 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().(*QueryIsOperatorForRequest) - 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.Holder) > 0 { - i -= len(x.Holder) - copy(dAtA[i:], x.Holder) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holder))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*QueryIsOperatorForRequest) - 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: QueryIsOperatorForRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForRequest: 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 ContractId", 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.ContractId = 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 Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Holder", 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.Holder = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryIsOperatorForResponse protoreflect.MessageDescriptor - fd_QueryIsOperatorForResponse_authorized protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryIsOperatorForResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryIsOperatorForResponse") - fd_QueryIsOperatorForResponse_authorized = md_QueryIsOperatorForResponse.Fields().ByName("authorized") -} - -var _ protoreflect.Message = (*fastReflection_QueryIsOperatorForResponse)(nil) - -type fastReflection_QueryIsOperatorForResponse QueryIsOperatorForResponse - -func (x *QueryIsOperatorForResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsOperatorForResponse)(x) -} - -func (x *QueryIsOperatorForResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[35] - 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_QueryIsOperatorForResponse_messageType fastReflection_QueryIsOperatorForResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsOperatorForResponse_messageType{} - -type fastReflection_QueryIsOperatorForResponse_messageType struct{} - -func (x fastReflection_QueryIsOperatorForResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsOperatorForResponse)(nil) -} -func (x fastReflection_QueryIsOperatorForResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsOperatorForResponse) -} -func (x fastReflection_QueryIsOperatorForResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsOperatorForResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryIsOperatorForResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsOperatorForResponse -} - -// 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_QueryIsOperatorForResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryIsOperatorForResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsOperatorForResponse) New() protoreflect.Message { - return new(fastReflection_QueryIsOperatorForResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsOperatorForResponse) Interface() protoreflect.ProtoMessage { - return (*QueryIsOperatorForResponse)(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_QueryIsOperatorForResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authorized != false { - value := protoreflect.ValueOfBool(x.Authorized) - if !f(fd_QueryIsOperatorForResponse_authorized, 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_QueryIsOperatorForResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - return x.Authorized != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse 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_QueryIsOperatorForResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - x.Authorized = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse 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_QueryIsOperatorForResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - value := x.Authorized - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse 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_QueryIsOperatorForResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - x.Authorized = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse 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_QueryIsOperatorForResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - panic(fmt.Errorf("field authorized of message lbm.collection.v1.QueryIsOperatorForResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse 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_QueryIsOperatorForResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse 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_QueryIsOperatorForResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryIsOperatorForResponse", 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_QueryIsOperatorForResponse) 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_QueryIsOperatorForResponse) 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_QueryIsOperatorForResponse) 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_QueryIsOperatorForResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsOperatorForResponse) - 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.Authorized { - n += 2 - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsOperatorForResponse) - 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.Authorized { - i-- - if x.Authorized { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsOperatorForResponse) - 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: QueryIsOperatorForResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authorized", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Authorized = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryHoldersByOperatorRequest protoreflect.MessageDescriptor - fd_QueryHoldersByOperatorRequest_contract_id protoreflect.FieldDescriptor - fd_QueryHoldersByOperatorRequest_operator protoreflect.FieldDescriptor - fd_QueryHoldersByOperatorRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryHoldersByOperatorRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHoldersByOperatorRequest") - fd_QueryHoldersByOperatorRequest_contract_id = md_QueryHoldersByOperatorRequest.Fields().ByName("contract_id") - fd_QueryHoldersByOperatorRequest_operator = md_QueryHoldersByOperatorRequest.Fields().ByName("operator") - fd_QueryHoldersByOperatorRequest_pagination = md_QueryHoldersByOperatorRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryHoldersByOperatorRequest)(nil) - -type fastReflection_QueryHoldersByOperatorRequest QueryHoldersByOperatorRequest - -func (x *QueryHoldersByOperatorRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryHoldersByOperatorRequest)(x) -} - -func (x *QueryHoldersByOperatorRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[36] - 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_QueryHoldersByOperatorRequest_messageType fastReflection_QueryHoldersByOperatorRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryHoldersByOperatorRequest_messageType{} - -type fastReflection_QueryHoldersByOperatorRequest_messageType struct{} - -func (x fastReflection_QueryHoldersByOperatorRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryHoldersByOperatorRequest)(nil) -} -func (x fastReflection_QueryHoldersByOperatorRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryHoldersByOperatorRequest) -} -func (x fastReflection_QueryHoldersByOperatorRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHoldersByOperatorRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryHoldersByOperatorRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHoldersByOperatorRequest -} - -// 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_QueryHoldersByOperatorRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryHoldersByOperatorRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryHoldersByOperatorRequest) New() protoreflect.Message { - return new(fastReflection_QueryHoldersByOperatorRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryHoldersByOperatorRequest) Interface() protoreflect.ProtoMessage { - return (*QueryHoldersByOperatorRequest)(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_QueryHoldersByOperatorRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryHoldersByOperatorRequest_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_QueryHoldersByOperatorRequest_operator, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryHoldersByOperatorRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryHoldersByOperatorRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - return x.Operator != "" - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest 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_QueryHoldersByOperatorRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - x.Operator = "" - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest 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_QueryHoldersByOperatorRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest 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_QueryHoldersByOperatorRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - x.Pagination = value.Message().Interface().(*query.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest 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_QueryHoldersByOperatorRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryHoldersByOperatorRequest is not mutable")) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.QueryHoldersByOperatorRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest 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_QueryHoldersByOperatorRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - m := new(query.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest 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_QueryHoldersByOperatorRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHoldersByOperatorRequest", 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_QueryHoldersByOperatorRequest) 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_QueryHoldersByOperatorRequest) 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_QueryHoldersByOperatorRequest) 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_QueryHoldersByOperatorRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryHoldersByOperatorRequest) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryHoldersByOperatorRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*QueryHoldersByOperatorRequest) - 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: QueryHoldersByOperatorRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorRequest: 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 ContractId", 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.ContractId = 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 Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryHoldersByOperatorResponse_1_list)(nil) - -type _QueryHoldersByOperatorResponse_1_list struct { - list *[]string -} - -func (x *_QueryHoldersByOperatorResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryHoldersByOperatorResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_QueryHoldersByOperatorResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryHoldersByOperatorResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryHoldersByOperatorResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryHoldersByOperatorResponse at list field Holders as it is not of Message kind")) -} - -func (x *_QueryHoldersByOperatorResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryHoldersByOperatorResponse_1_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_QueryHoldersByOperatorResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryHoldersByOperatorResponse protoreflect.MessageDescriptor - fd_QueryHoldersByOperatorResponse_holders protoreflect.FieldDescriptor - fd_QueryHoldersByOperatorResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryHoldersByOperatorResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHoldersByOperatorResponse") - fd_QueryHoldersByOperatorResponse_holders = md_QueryHoldersByOperatorResponse.Fields().ByName("holders") - fd_QueryHoldersByOperatorResponse_pagination = md_QueryHoldersByOperatorResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryHoldersByOperatorResponse)(nil) - -type fastReflection_QueryHoldersByOperatorResponse QueryHoldersByOperatorResponse - -func (x *QueryHoldersByOperatorResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryHoldersByOperatorResponse)(x) -} - -func (x *QueryHoldersByOperatorResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[37] - 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_QueryHoldersByOperatorResponse_messageType fastReflection_QueryHoldersByOperatorResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryHoldersByOperatorResponse_messageType{} - -type fastReflection_QueryHoldersByOperatorResponse_messageType struct{} - -func (x fastReflection_QueryHoldersByOperatorResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryHoldersByOperatorResponse)(nil) -} -func (x fastReflection_QueryHoldersByOperatorResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryHoldersByOperatorResponse) -} -func (x fastReflection_QueryHoldersByOperatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHoldersByOperatorResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryHoldersByOperatorResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHoldersByOperatorResponse -} - -// 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_QueryHoldersByOperatorResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryHoldersByOperatorResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryHoldersByOperatorResponse) New() protoreflect.Message { - return new(fastReflection_QueryHoldersByOperatorResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryHoldersByOperatorResponse) Interface() protoreflect.ProtoMessage { - return (*QueryHoldersByOperatorResponse)(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_QueryHoldersByOperatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Holders) != 0 { - value := protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{list: &x.Holders}) - if !f(fd_QueryHoldersByOperatorResponse_holders, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryHoldersByOperatorResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryHoldersByOperatorResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - return len(x.Holders) != 0 - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse 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_QueryHoldersByOperatorResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - x.Holders = nil - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse 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_QueryHoldersByOperatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - if len(x.Holders) == 0 { - return protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{}) - } - listValue := &_QueryHoldersByOperatorResponse_1_list{list: &x.Holders} - return protoreflect.ValueOfList(listValue) - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse 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_QueryHoldersByOperatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - lv := value.List() - clv := lv.(*_QueryHoldersByOperatorResponse_1_list) - x.Holders = *clv.list - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - x.Pagination = value.Message().Interface().(*query.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse 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_QueryHoldersByOperatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - if x.Holders == nil { - x.Holders = []string{} - } - value := &_QueryHoldersByOperatorResponse_1_list{list: &x.Holders} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse 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_QueryHoldersByOperatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - list := []string{} - return protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{list: &list}) - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - m := new(query.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse 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_QueryHoldersByOperatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHoldersByOperatorResponse", 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_QueryHoldersByOperatorResponse) 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_QueryHoldersByOperatorResponse) 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_QueryHoldersByOperatorResponse) 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_QueryHoldersByOperatorResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryHoldersByOperatorResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Holders) > 0 { - for _, s := range x.Holders { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryHoldersByOperatorResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Holders) > 0 { - for iNdEx := len(x.Holders) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Holders[iNdEx]) - copy(dAtA[i:], x.Holders[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holders[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryHoldersByOperatorResponse) - 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: QueryHoldersByOperatorResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorResponse: 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 Holders", 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.Holders = append(x.Holders, 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 Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: lbm/collection/v1/query.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// QueryBalanceRequest is the request type for the Query/Balance RPC method. -type QueryBalanceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address is the address to query the balance for. - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - // token id associated with the token. - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (x *QueryBalanceRequest) Reset() { - *x = QueryBalanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryBalanceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryBalanceRequest) ProtoMessage() {} - -// Deprecated: Use QueryBalanceRequest.ProtoReflect.Descriptor instead. -func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{0} -} - -func (x *QueryBalanceRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryBalanceRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *QueryBalanceRequest) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -// QueryBalanceResponse is the response type for the Query/Balance RPC method. -type QueryBalanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // balance is the balance of the token. - Balance *Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` -} - -func (x *QueryBalanceResponse) Reset() { - *x = QueryBalanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryBalanceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryBalanceResponse) ProtoMessage() {} - -// Deprecated: Use QueryBalanceResponse.ProtoReflect.Descriptor instead. -func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{1} -} - -func (x *QueryBalanceResponse) GetBalance() *Coin { - if x != nil { - return x.Balance - } - return nil -} - -// QueryAllBalancesRequest is the request type for the Query/AllBalances RPC method. -type QueryAllBalancesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address is the address to query the balances for. - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryAllBalancesRequest) Reset() { - *x = QueryAllBalancesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAllBalancesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAllBalancesRequest) ProtoMessage() {} - -// Deprecated: Use QueryAllBalancesRequest.ProtoReflect.Descriptor instead. -func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{2} -} - -func (x *QueryAllBalancesRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryAllBalancesRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *QueryAllBalancesRequest) GetPagination() *query.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method. -type QueryAllBalancesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // balances is the balalces of all the tokens. - Balances []*Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` - // pagination defines the pagination in the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryAllBalancesResponse) Reset() { - *x = QueryAllBalancesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAllBalancesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAllBalancesResponse) ProtoMessage() {} - -// Deprecated: Use QueryAllBalancesResponse.ProtoReflect.Descriptor instead. -func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{3} -} - -func (x *QueryAllBalancesResponse) GetBalances() []*Coin { - if x != nil { - return x.Balances - } - return nil -} - -func (x *QueryAllBalancesResponse) GetPagination() *query.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryFTSupplyRequest is the request type for the Query/FTSupply RPC method. -type QueryFTSupplyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (x *QueryFTSupplyRequest) Reset() { - *x = QueryFTSupplyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTSupplyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFTSupplyRequest) ProtoMessage() {} - -// Deprecated: Use QueryFTSupplyRequest.ProtoReflect.Descriptor instead. -func (*QueryFTSupplyRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{4} -} - -func (x *QueryFTSupplyRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryFTSupplyRequest) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -// QueryFTSupplyResponse is the response type for the Query/FTSupply RPC method. -type QueryFTSupplyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // supply is the supply of the tokens. - Supply string `protobuf:"bytes,1,opt,name=supply,proto3" json:"supply,omitempty"` -} - -func (x *QueryFTSupplyResponse) Reset() { - *x = QueryFTSupplyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTSupplyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFTSupplyResponse) ProtoMessage() {} - -// Deprecated: Use QueryFTSupplyResponse.ProtoReflect.Descriptor instead. -func (*QueryFTSupplyResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{5} -} - -func (x *QueryFTSupplyResponse) GetSupply() string { - if x != nil { - return x.Supply - } - return "" -} - -// QueryFTMintedRequest is the request type for the Query/FTMinted RPC method. -type QueryFTMintedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (x *QueryFTMintedRequest) Reset() { - *x = QueryFTMintedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTMintedRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFTMintedRequest) ProtoMessage() {} - -// Deprecated: Use QueryFTMintedRequest.ProtoReflect.Descriptor instead. -func (*QueryFTMintedRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{6} -} - -func (x *QueryFTMintedRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryFTMintedRequest) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -// QueryFTMintedResponse is the response type for the Query/FTMinted RPC method. -type QueryFTMintedResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // minted is the amount of the minted tokens. - Minted string `protobuf:"bytes,1,opt,name=minted,proto3" json:"minted,omitempty"` -} - -func (x *QueryFTMintedResponse) Reset() { - *x = QueryFTMintedResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTMintedResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFTMintedResponse) ProtoMessage() {} - -// Deprecated: Use QueryFTMintedResponse.ProtoReflect.Descriptor instead. -func (*QueryFTMintedResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{7} -} - -func (x *QueryFTMintedResponse) GetMinted() string { - if x != nil { - return x.Minted - } - return "" -} - -// QueryFTBurntRequest is the request type for the Query/FTBurnt RPC method. -type QueryFTBurntRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (x *QueryFTBurntRequest) Reset() { - *x = QueryFTBurntRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTBurntRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFTBurntRequest) ProtoMessage() {} - -// Deprecated: Use QueryFTBurntRequest.ProtoReflect.Descriptor instead. -func (*QueryFTBurntRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{8} -} - -func (x *QueryFTBurntRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryFTBurntRequest) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -// QueryFTBurntResponse is the response type for the Query/FTBurnt RPC method. -type QueryFTBurntResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // burnt is the amount of the burnt tokens. - Burnt string `protobuf:"bytes,1,opt,name=burnt,proto3" json:"burnt,omitempty"` -} - -func (x *QueryFTBurntResponse) Reset() { - *x = QueryFTBurntResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTBurntResponse) String() string { +func (x *QueryBalanceResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryFTBurntResponse) ProtoMessage() {} +func (*QueryBalanceResponse) ProtoMessage() {} -// Deprecated: Use QueryFTBurntResponse.ProtoReflect.Descriptor instead. -func (*QueryFTBurntResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{9} +// Deprecated: Use QueryBalanceResponse.ProtoReflect.Descriptor instead. +func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{1} } -func (x *QueryFTBurntResponse) GetBurnt() string { +func (x *QueryBalanceResponse) GetBalance() *Coin { if x != nil { - return x.Burnt + return x.Balance } - return "" + return nil } -// QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. -type QueryNFTSupplyRequest struct { +// QueryAllBalancesRequest is the request type for the Query/AllBalances RPC method. +type QueryAllBalancesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token type associated with the token type. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // address is the address to query the balances for. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryNFTSupplyRequest) Reset() { - *x = QueryNFTSupplyRequest{} +func (x *QueryAllBalancesRequest) Reset() { + *x = QueryAllBalancesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[10] + mi := &file_lbm_collection_v1_query_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryNFTSupplyRequest) String() string { +func (x *QueryAllBalancesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryNFTSupplyRequest) ProtoMessage() {} +func (*QueryAllBalancesRequest) ProtoMessage() {} -// Deprecated: Use QueryNFTSupplyRequest.ProtoReflect.Descriptor instead. -func (*QueryNFTSupplyRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{10} +// Deprecated: Use QueryAllBalancesRequest.ProtoReflect.Descriptor instead. +func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{2} } -func (x *QueryNFTSupplyRequest) GetContractId() string { +func (x *QueryAllBalancesRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryNFTSupplyRequest) GetTokenType() string { +func (x *QueryAllBalancesRequest) GetAddress() string { if x != nil { - return x.TokenType + return x.Address } return "" } -// QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method. -type QueryNFTSupplyResponse struct { +func (x *QueryAllBalancesRequest) GetPagination() *query.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method. +type QueryAllBalancesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // supply is the supply of the non-fungible token. - Supply string `protobuf:"bytes,1,opt,name=supply,proto3" json:"supply,omitempty"` + // balances is the balalces of all the tokens. + Balances []*Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryNFTSupplyResponse) Reset() { - *x = QueryNFTSupplyResponse{} +func (x *QueryAllBalancesResponse) Reset() { + *x = QueryAllBalancesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[11] + mi := &file_lbm_collection_v1_query_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryNFTSupplyResponse) String() string { +func (x *QueryAllBalancesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryNFTSupplyResponse) ProtoMessage() {} +func (*QueryAllBalancesResponse) ProtoMessage() {} -// Deprecated: Use QueryNFTSupplyResponse.ProtoReflect.Descriptor instead. -func (*QueryNFTSupplyResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{11} +// Deprecated: Use QueryAllBalancesResponse.ProtoReflect.Descriptor instead. +func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{3} } -func (x *QueryNFTSupplyResponse) GetSupply() string { +func (x *QueryAllBalancesResponse) GetBalances() []*Coin { if x != nil { - return x.Supply + return x.Balances } - return "" + return nil } -// QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method. -type QueryNFTMintedRequest struct { +func (x *QueryAllBalancesResponse) GetPagination() *query.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryFTSupplyRequest is the request type for the Query/FTSupply RPC method. +type QueryFTSupplyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token type associated with the token type. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // token id associated with the fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` } -func (x *QueryNFTMintedRequest) Reset() { - *x = QueryNFTMintedRequest{} +func (x *QueryFTSupplyRequest) Reset() { + *x = QueryFTSupplyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[12] + mi := &file_lbm_collection_v1_query_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryNFTMintedRequest) String() string { +func (x *QueryFTSupplyRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryNFTMintedRequest) ProtoMessage() {} +func (*QueryFTSupplyRequest) ProtoMessage() {} -// Deprecated: Use QueryNFTMintedRequest.ProtoReflect.Descriptor instead. -func (*QueryNFTMintedRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{12} +// Deprecated: Use QueryFTSupplyRequest.ProtoReflect.Descriptor instead. +func (*QueryFTSupplyRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{4} } -func (x *QueryNFTMintedRequest) GetContractId() string { +func (x *QueryFTSupplyRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryNFTMintedRequest) GetTokenType() string { +func (x *QueryFTSupplyRequest) GetTokenId() string { if x != nil { - return x.TokenType + return x.TokenId } return "" } -// QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method. -type QueryNFTMintedResponse struct { +// QueryFTSupplyResponse is the response type for the Query/FTSupply RPC method. +type QueryFTSupplyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // minted is the amount of minted tokens. - Minted string `protobuf:"bytes,1,opt,name=minted,proto3" json:"minted,omitempty"` + // supply is the supply of the tokens. + Supply string `protobuf:"bytes,1,opt,name=supply,proto3" json:"supply,omitempty"` } -func (x *QueryNFTMintedResponse) Reset() { - *x = QueryNFTMintedResponse{} +func (x *QueryFTSupplyResponse) Reset() { + *x = QueryFTSupplyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[13] + mi := &file_lbm_collection_v1_query_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryNFTMintedResponse) String() string { +func (x *QueryFTSupplyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryNFTMintedResponse) ProtoMessage() {} +func (*QueryFTSupplyResponse) ProtoMessage() {} -// Deprecated: Use QueryNFTMintedResponse.ProtoReflect.Descriptor instead. -func (*QueryNFTMintedResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{13} +// Deprecated: Use QueryFTSupplyResponse.ProtoReflect.Descriptor instead. +func (*QueryFTSupplyResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{5} } -func (x *QueryNFTMintedResponse) GetMinted() string { +func (x *QueryFTSupplyResponse) GetSupply() string { if x != nil { - return x.Minted + return x.Supply } return "" } -// QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method. -type QueryNFTBurntRequest struct { +// QueryFTMintedRequest is the request type for the Query/FTMinted RPC method. +type QueryFTMintedRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token type associated with the token type. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // token id associated with the fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` } -func (x *QueryNFTBurntRequest) Reset() { - *x = QueryNFTBurntRequest{} +func (x *QueryFTMintedRequest) Reset() { + *x = QueryFTMintedRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[14] + mi := &file_lbm_collection_v1_query_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryNFTBurntRequest) String() string { +func (x *QueryFTMintedRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryNFTBurntRequest) ProtoMessage() {} +func (*QueryFTMintedRequest) ProtoMessage() {} -// Deprecated: Use QueryNFTBurntRequest.ProtoReflect.Descriptor instead. -func (*QueryNFTBurntRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{14} +// Deprecated: Use QueryFTMintedRequest.ProtoReflect.Descriptor instead. +func (*QueryFTMintedRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{6} } -func (x *QueryNFTBurntRequest) GetContractId() string { +func (x *QueryFTMintedRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryNFTBurntRequest) GetTokenType() string { +func (x *QueryFTMintedRequest) GetTokenId() string { if x != nil { - return x.TokenType + return x.TokenId } return "" } -// QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method. -type QueryNFTBurntResponse struct { +// QueryFTMintedResponse is the response type for the Query/FTMinted RPC method. +type QueryFTMintedResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // burnt is the amount of the burnt tokens. - Burnt string `protobuf:"bytes,1,opt,name=burnt,proto3" json:"burnt,omitempty"` + // minted is the amount of the minted tokens. + Minted string `protobuf:"bytes,1,opt,name=minted,proto3" json:"minted,omitempty"` } -func (x *QueryNFTBurntResponse) Reset() { - *x = QueryNFTBurntResponse{} +func (x *QueryFTMintedResponse) Reset() { + *x = QueryFTMintedResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[15] + mi := &file_lbm_collection_v1_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryNFTBurntResponse) String() string { +func (x *QueryFTMintedResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryNFTBurntResponse) ProtoMessage() {} +func (*QueryFTMintedResponse) ProtoMessage() {} -// Deprecated: Use QueryNFTBurntResponse.ProtoReflect.Descriptor instead. -func (*QueryNFTBurntResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{15} +// Deprecated: Use QueryFTMintedResponse.ProtoReflect.Descriptor instead. +func (*QueryFTMintedResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{7} } -func (x *QueryNFTBurntResponse) GetBurnt() string { +func (x *QueryFTMintedResponse) GetMinted() string { if x != nil { - return x.Burnt + return x.Minted } return "" } -// QueryContractRequest is the request type for the Query/Contract RPC method. -type QueryContractRequest struct { +// QueryFTBurntRequest is the request type for the Query/FTBurnt RPC method. +type QueryFTBurntRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token id associated with the fungible token. + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` } -func (x *QueryContractRequest) Reset() { - *x = QueryContractRequest{} +func (x *QueryFTBurntRequest) Reset() { + *x = QueryFTBurntRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[16] + mi := &file_lbm_collection_v1_query_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryContractRequest) String() string { +func (x *QueryFTBurntRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryContractRequest) ProtoMessage() {} +func (*QueryFTBurntRequest) ProtoMessage() {} -// Deprecated: Use QueryContractRequest.ProtoReflect.Descriptor instead. -func (*QueryContractRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{16} +// Deprecated: Use QueryFTBurntRequest.ProtoReflect.Descriptor instead. +func (*QueryFTBurntRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{8} } -func (x *QueryContractRequest) GetContractId() string { +func (x *QueryFTBurntRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -// QueryContractResponse is the response type for the Query/Contract RPC method. -type QueryContractResponse struct { +func (x *QueryFTBurntRequest) GetTokenId() string { + if x != nil { + return x.TokenId + } + return "" +} + +// QueryFTBurntResponse is the response type for the Query/FTBurnt RPC method. +type QueryFTBurntResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // contract is the information of the contract. - Contract *Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` + // burnt is the amount of the burnt tokens. + Burnt string `protobuf:"bytes,1,opt,name=burnt,proto3" json:"burnt,omitempty"` } -func (x *QueryContractResponse) Reset() { - *x = QueryContractResponse{} +func (x *QueryFTBurntResponse) Reset() { + *x = QueryFTBurntResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[17] + mi := &file_lbm_collection_v1_query_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryContractResponse) String() string { +func (x *QueryFTBurntResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryContractResponse) ProtoMessage() {} +func (*QueryFTBurntResponse) ProtoMessage() {} -// Deprecated: Use QueryContractResponse.ProtoReflect.Descriptor instead. -func (*QueryContractResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{17} +// Deprecated: Use QueryFTBurntResponse.ProtoReflect.Descriptor instead. +func (*QueryFTBurntResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{9} } -func (x *QueryContractResponse) GetContract() *Contract { +func (x *QueryFTBurntResponse) GetBurnt() string { if x != nil { - return x.Contract + return x.Burnt } - return nil + return "" } -// QueryTokenClassTypeNameRequest is the request type for the Query/TokenClassTypeName RPC method. -// -// Since: 0.46.0 (finschia) -type QueryTokenClassTypeNameRequest struct { +// QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. +type QueryNFTSupplyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // class id associated with the token class. - ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // token type associated with the token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *QueryTokenClassTypeNameRequest) Reset() { - *x = QueryTokenClassTypeNameRequest{} +func (x *QueryNFTSupplyRequest) Reset() { + *x = QueryNFTSupplyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[18] + mi := &file_lbm_collection_v1_query_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenClassTypeNameRequest) String() string { +func (x *QueryNFTSupplyRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenClassTypeNameRequest) ProtoMessage() {} +func (*QueryNFTSupplyRequest) ProtoMessage() {} -// Deprecated: Use QueryTokenClassTypeNameRequest.ProtoReflect.Descriptor instead. -func (*QueryTokenClassTypeNameRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{18} +// Deprecated: Use QueryNFTSupplyRequest.ProtoReflect.Descriptor instead. +func (*QueryNFTSupplyRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{10} } -func (x *QueryTokenClassTypeNameRequest) GetContractId() string { +func (x *QueryNFTSupplyRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryTokenClassTypeNameRequest) GetClassId() string { +func (x *QueryNFTSupplyRequest) GetTokenType() string { if x != nil { - return x.ClassId + return x.TokenType } return "" } -// QueryTokenClassTypeNameResponse is the response type for the Query/TokenClassTypeName RPC method. -// -// Since: 0.46.0 (finschia) -type QueryTokenClassTypeNameResponse struct { +// QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method. +type QueryNFTSupplyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // type name of the token class. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // supply is the supply of the non-fungible token. + Supply string `protobuf:"bytes,1,opt,name=supply,proto3" json:"supply,omitempty"` } -func (x *QueryTokenClassTypeNameResponse) Reset() { - *x = QueryTokenClassTypeNameResponse{} +func (x *QueryNFTSupplyResponse) Reset() { + *x = QueryNFTSupplyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[19] + mi := &file_lbm_collection_v1_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenClassTypeNameResponse) String() string { +func (x *QueryNFTSupplyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenClassTypeNameResponse) ProtoMessage() {} +func (*QueryNFTSupplyResponse) ProtoMessage() {} -// Deprecated: Use QueryTokenClassTypeNameResponse.ProtoReflect.Descriptor instead. -func (*QueryTokenClassTypeNameResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{19} +// Deprecated: Use QueryNFTSupplyResponse.ProtoReflect.Descriptor instead. +func (*QueryNFTSupplyResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{11} } -func (x *QueryTokenClassTypeNameResponse) GetName() string { +func (x *QueryNFTSupplyResponse) GetSupply() string { if x != nil { - return x.Name + return x.Supply } return "" } -// QueryTokenTypeRequest is the request type for the Query/TokenType RPC method. -type QueryTokenTypeRequest struct { +// QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method. +type QueryNFTMintedRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -19122,507 +14925,485 @@ type QueryTokenTypeRequest struct { TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *QueryTokenTypeRequest) Reset() { - *x = QueryTokenTypeRequest{} +func (x *QueryNFTMintedRequest) Reset() { + *x = QueryNFTMintedRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[20] + mi := &file_lbm_collection_v1_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenTypeRequest) String() string { +func (x *QueryNFTMintedRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenTypeRequest) ProtoMessage() {} +func (*QueryNFTMintedRequest) ProtoMessage() {} -// Deprecated: Use QueryTokenTypeRequest.ProtoReflect.Descriptor instead. -func (*QueryTokenTypeRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{20} +// Deprecated: Use QueryNFTMintedRequest.ProtoReflect.Descriptor instead. +func (*QueryNFTMintedRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{12} } -func (x *QueryTokenTypeRequest) GetContractId() string { +func (x *QueryNFTMintedRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryTokenTypeRequest) GetTokenType() string { +func (x *QueryNFTMintedRequest) GetTokenType() string { if x != nil { return x.TokenType } return "" } -// QueryTokenTypeResponse is the response type for the Query/TokenType RPC method. -type QueryTokenTypeResponse struct { +// QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method. +type QueryNFTMintedResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // token type is the information of the token type. - TokenType *TokenType `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // minted is the amount of minted tokens. + Minted string `protobuf:"bytes,1,opt,name=minted,proto3" json:"minted,omitempty"` } -func (x *QueryTokenTypeResponse) Reset() { - *x = QueryTokenTypeResponse{} +func (x *QueryNFTMintedResponse) Reset() { + *x = QueryNFTMintedResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[21] + mi := &file_lbm_collection_v1_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenTypeResponse) String() string { +func (x *QueryNFTMintedResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenTypeResponse) ProtoMessage() {} +func (*QueryNFTMintedResponse) ProtoMessage() {} -// Deprecated: Use QueryTokenTypeResponse.ProtoReflect.Descriptor instead. -func (*QueryTokenTypeResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{21} +// Deprecated: Use QueryNFTMintedResponse.ProtoReflect.Descriptor instead. +func (*QueryNFTMintedResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{13} } -func (x *QueryTokenTypeResponse) GetTokenType() *TokenType { +func (x *QueryNFTMintedResponse) GetMinted() string { if x != nil { - return x.TokenType + return x.Minted } - return nil + return "" } -// QueryTokenRequest is the request type for the Query/Token RPC method. -type QueryTokenRequest struct { +// QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method. +type QueryNFTBurntRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // token type associated with the token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *QueryTokenRequest) Reset() { - *x = QueryTokenRequest{} +func (x *QueryNFTBurntRequest) Reset() { + *x = QueryNFTBurntRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[22] + mi := &file_lbm_collection_v1_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenRequest) String() string { +func (x *QueryNFTBurntRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenRequest) ProtoMessage() {} +func (*QueryNFTBurntRequest) ProtoMessage() {} -// Deprecated: Use QueryTokenRequest.ProtoReflect.Descriptor instead. -func (*QueryTokenRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{22} +// Deprecated: Use QueryNFTBurntRequest.ProtoReflect.Descriptor instead. +func (*QueryNFTBurntRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{14} } -func (x *QueryTokenRequest) GetContractId() string { +func (x *QueryNFTBurntRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryTokenRequest) GetTokenId() string { +func (x *QueryNFTBurntRequest) GetTokenType() string { if x != nil { - return x.TokenId + return x.TokenType } return "" } -// QueryTokenResponse is the response type for the Query/Token RPC method. -type QueryTokenResponse struct { +// QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method. +type QueryNFTBurntResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // information of the token. - Token *anypb.Any `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + // burnt is the amount of the burnt tokens. + Burnt string `protobuf:"bytes,1,opt,name=burnt,proto3" json:"burnt,omitempty"` } -func (x *QueryTokenResponse) Reset() { - *x = QueryTokenResponse{} +func (x *QueryNFTBurntResponse) Reset() { + *x = QueryNFTBurntResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[23] + mi := &file_lbm_collection_v1_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenResponse) String() string { +func (x *QueryNFTBurntResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenResponse) ProtoMessage() {} +func (*QueryNFTBurntResponse) ProtoMessage() {} -// Deprecated: Use QueryTokenResponse.ProtoReflect.Descriptor instead. -func (*QueryTokenResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{23} +// Deprecated: Use QueryNFTBurntResponse.ProtoReflect.Descriptor instead. +func (*QueryNFTBurntResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{15} } -func (x *QueryTokenResponse) GetToken() *anypb.Any { +func (x *QueryNFTBurntResponse) GetBurnt() string { if x != nil { - return x.Token + return x.Burnt } - return nil + return "" } -// QueryRootRequest is the request type for the Query/Root RPC method. -type QueryRootRequest struct { +// QueryContractRequest is the request type for the Query/Contract RPC method. +type QueryContractRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the non-fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` } -func (x *QueryRootRequest) Reset() { - *x = QueryRootRequest{} +func (x *QueryContractRequest) Reset() { + *x = QueryContractRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[24] + mi := &file_lbm_collection_v1_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryRootRequest) String() string { +func (x *QueryContractRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRootRequest) ProtoMessage() {} +func (*QueryContractRequest) ProtoMessage() {} -// Deprecated: Use QueryRootRequest.ProtoReflect.Descriptor instead. -func (*QueryRootRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{24} +// Deprecated: Use QueryContractRequest.ProtoReflect.Descriptor instead. +func (*QueryContractRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{16} } -func (x *QueryRootRequest) GetContractId() string { +func (x *QueryContractRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryRootRequest) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -// QueryRootResponse is the response type for the Query/Root RPC method. -type QueryRootResponse struct { +// QueryContractResponse is the response type for the Query/Contract RPC method. +type QueryContractResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // root is the information of the root token. - // it would return itself if it's the root token. - Root *NFT `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` + // contract is the information of the contract. + Contract *Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` } -func (x *QueryRootResponse) Reset() { - *x = QueryRootResponse{} +func (x *QueryContractResponse) Reset() { + *x = QueryContractResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[25] + mi := &file_lbm_collection_v1_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryRootResponse) String() string { +func (x *QueryContractResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRootResponse) ProtoMessage() {} +func (*QueryContractResponse) ProtoMessage() {} -// Deprecated: Use QueryRootResponse.ProtoReflect.Descriptor instead. -func (*QueryRootResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{25} +// Deprecated: Use QueryContractResponse.ProtoReflect.Descriptor instead. +func (*QueryContractResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{17} } -func (x *QueryRootResponse) GetRoot() *NFT { +func (x *QueryContractResponse) GetContract() *Contract { if x != nil { - return x.Root + return x.Contract } return nil } -// QueryHasParentRequest is the request type for the Query/HasParent RPC method. -type QueryHasParentRequest struct { +// QueryTokenClassTypeNameRequest is the request type for the Query/TokenClassTypeName RPC method. +// +// Since: 0.46.0 (finschia) +type QueryTokenClassTypeNameRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated wit the non-fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` } -func (x *QueryHasParentRequest) Reset() { - *x = QueryHasParentRequest{} +func (x *QueryTokenClassTypeNameRequest) Reset() { + *x = QueryTokenClassTypeNameRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[26] + mi := &file_lbm_collection_v1_query_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryHasParentRequest) String() string { +func (x *QueryTokenClassTypeNameRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryHasParentRequest) ProtoMessage() {} +func (*QueryTokenClassTypeNameRequest) ProtoMessage() {} -// Deprecated: Use QueryHasParentRequest.ProtoReflect.Descriptor instead. -func (*QueryHasParentRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{26} +// Deprecated: Use QueryTokenClassTypeNameRequest.ProtoReflect.Descriptor instead. +func (*QueryTokenClassTypeNameRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{18} } -func (x *QueryHasParentRequest) GetContractId() string { +func (x *QueryTokenClassTypeNameRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryHasParentRequest) GetTokenId() string { +func (x *QueryTokenClassTypeNameRequest) GetClassId() string { if x != nil { - return x.TokenId + return x.ClassId } return "" } -// QueryHasParentResponse is the response type for the Query/HasParent RPC method. -type QueryHasParentResponse struct { +// QueryTokenClassTypeNameResponse is the response type for the Query/TokenClassTypeName RPC method. +// +// Since: 0.46.0 (finschia) +type QueryTokenClassTypeNameResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // whether the token has its parent. - HasParent bool `protobuf:"varint,1,opt,name=has_parent,json=hasParent,proto3" json:"has_parent,omitempty"` + // type name of the token class. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (x *QueryHasParentResponse) Reset() { - *x = QueryHasParentResponse{} +func (x *QueryTokenClassTypeNameResponse) Reset() { + *x = QueryTokenClassTypeNameResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[27] + mi := &file_lbm_collection_v1_query_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryHasParentResponse) String() string { +func (x *QueryTokenClassTypeNameResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryHasParentResponse) ProtoMessage() {} +func (*QueryTokenClassTypeNameResponse) ProtoMessage() {} -// Deprecated: Use QueryHasParentResponse.ProtoReflect.Descriptor instead. -func (*QueryHasParentResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{27} +// Deprecated: Use QueryTokenClassTypeNameResponse.ProtoReflect.Descriptor instead. +func (*QueryTokenClassTypeNameResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{19} } -func (x *QueryHasParentResponse) GetHasParent() bool { +func (x *QueryTokenClassTypeNameResponse) GetName() string { if x != nil { - return x.HasParent + return x.Name } - return false + return "" } -// QueryParentRequest is the request type for the Query/Parent RPC method. -type QueryParentRequest struct { +// QueryTokenTypeRequest is the request type for the Query/TokenType RPC method. +type QueryTokenTypeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated wit the non-fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // token type associated with the token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *QueryParentRequest) Reset() { - *x = QueryParentRequest{} +func (x *QueryTokenTypeRequest) Reset() { + *x = QueryTokenTypeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[28] + mi := &file_lbm_collection_v1_query_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryParentRequest) String() string { +func (x *QueryTokenTypeRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryParentRequest) ProtoMessage() {} +func (*QueryTokenTypeRequest) ProtoMessage() {} -// Deprecated: Use QueryParentRequest.ProtoReflect.Descriptor instead. -func (*QueryParentRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{28} +// Deprecated: Use QueryTokenTypeRequest.ProtoReflect.Descriptor instead. +func (*QueryTokenTypeRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{20} } -func (x *QueryParentRequest) GetContractId() string { +func (x *QueryTokenTypeRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryParentRequest) GetTokenId() string { +func (x *QueryTokenTypeRequest) GetTokenType() string { if x != nil { - return x.TokenId + return x.TokenType } return "" } -// QueryParentResponse is the response type for the Query/Parent RPC method. -type QueryParentResponse struct { +// QueryTokenTypeResponse is the response type for the Query/TokenType RPC method. +type QueryTokenTypeResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // parent is the information of the parent token. - Parent *NFT `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // token type is the information of the token type. + TokenType *TokenType `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *QueryParentResponse) Reset() { - *x = QueryParentResponse{} +func (x *QueryTokenTypeResponse) Reset() { + *x = QueryTokenTypeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[29] + mi := &file_lbm_collection_v1_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryParentResponse) String() string { +func (x *QueryTokenTypeResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryParentResponse) ProtoMessage() {} +func (*QueryTokenTypeResponse) ProtoMessage() {} -// Deprecated: Use QueryParentResponse.ProtoReflect.Descriptor instead. -func (*QueryParentResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{29} +// Deprecated: Use QueryTokenTypeResponse.ProtoReflect.Descriptor instead. +func (*QueryTokenTypeResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{21} } -func (x *QueryParentResponse) GetParent() *NFT { +func (x *QueryTokenTypeResponse) GetTokenType() *TokenType { if x != nil { - return x.Parent + return x.TokenType } return nil } -// QueryChildrenRequest is the request type for the Query/Children RPC method. -type QueryChildrenRequest struct { +// QueryTokenRequest is the request type for the Query/Token RPC method. +type QueryTokenRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the non-fungible token. + // token id associated with the fungible token. TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryChildrenRequest) Reset() { - *x = QueryChildrenRequest{} +func (x *QueryTokenRequest) Reset() { + *x = QueryTokenRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[30] + mi := &file_lbm_collection_v1_query_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryChildrenRequest) String() string { +func (x *QueryTokenRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryChildrenRequest) ProtoMessage() {} +func (*QueryTokenRequest) ProtoMessage() {} -// Deprecated: Use QueryChildrenRequest.ProtoReflect.Descriptor instead. -func (*QueryChildrenRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{30} +// Deprecated: Use QueryTokenRequest.ProtoReflect.Descriptor instead. +func (*QueryTokenRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{22} } -func (x *QueryChildrenRequest) GetContractId() string { +func (x *QueryTokenRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryChildrenRequest) GetTokenId() string { +func (x *QueryTokenRequest) GetTokenId() string { if x != nil { return x.TokenId } return "" } -func (x *QueryChildrenRequest) GetPagination() *query.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryChildrenResponse is the response type for the Query/Children RPC method. -type QueryChildrenResponse struct { +// QueryTokenResponse is the response type for the Query/Token RPC method. +type QueryTokenResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // children is the information of the child tokens. - Children []*NFT `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"` - // pagination defines the pagination in the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + // information of the token. + Token *anypb.Any `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` } -func (x *QueryChildrenResponse) Reset() { - *x = QueryChildrenResponse{} +func (x *QueryTokenResponse) Reset() { + *x = QueryTokenResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[31] + mi := &file_lbm_collection_v1_query_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryChildrenResponse) String() string { +func (x *QueryTokenResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryChildrenResponse) ProtoMessage() {} - -// Deprecated: Use QueryChildrenResponse.ProtoReflect.Descriptor instead. -func (*QueryChildrenResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{31} -} +func (*QueryTokenResponse) ProtoMessage() {} -func (x *QueryChildrenResponse) GetChildren() []*NFT { - if x != nil { - return x.Children - } - return nil +// Deprecated: Use QueryTokenResponse.ProtoReflect.Descriptor instead. +func (*QueryTokenResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{23} } -func (x *QueryChildrenResponse) GetPagination() *query.PageResponse { +func (x *QueryTokenResponse) GetToken() *anypb.Any { if x != nil { - return x.Pagination + return x.Token } return nil } @@ -19644,7 +15425,7 @@ type QueryGranteeGrantsRequest struct { func (x *QueryGranteeGrantsRequest) Reset() { *x = QueryGranteeGrantsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[32] + mi := &file_lbm_collection_v1_query_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19658,7 +15439,7 @@ func (*QueryGranteeGrantsRequest) ProtoMessage() {} // Deprecated: Use QueryGranteeGrantsRequest.ProtoReflect.Descriptor instead. func (*QueryGranteeGrantsRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{32} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{24} } func (x *QueryGranteeGrantsRequest) GetContractId() string { @@ -19696,7 +15477,7 @@ type QueryGranteeGrantsResponse struct { func (x *QueryGranteeGrantsResponse) Reset() { *x = QueryGranteeGrantsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[33] + mi := &file_lbm_collection_v1_query_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19710,7 +15491,7 @@ func (*QueryGranteeGrantsResponse) ProtoMessage() {} // Deprecated: Use QueryGranteeGrantsResponse.ProtoReflect.Descriptor instead. func (*QueryGranteeGrantsResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{33} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{25} } func (x *QueryGranteeGrantsResponse) GetGrants() []*Grant { @@ -19744,7 +15525,7 @@ type QueryIsOperatorForRequest struct { func (x *QueryIsOperatorForRequest) Reset() { *x = QueryIsOperatorForRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[34] + mi := &file_lbm_collection_v1_query_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19758,7 +15539,7 @@ func (*QueryIsOperatorForRequest) ProtoMessage() {} // Deprecated: Use QueryIsOperatorForRequest.ProtoReflect.Descriptor instead. func (*QueryIsOperatorForRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{34} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{26} } func (x *QueryIsOperatorForRequest) GetContractId() string { @@ -19794,7 +15575,7 @@ type QueryIsOperatorForResponse struct { func (x *QueryIsOperatorForResponse) Reset() { *x = QueryIsOperatorForResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[35] + mi := &file_lbm_collection_v1_query_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19808,7 +15589,7 @@ func (*QueryIsOperatorForResponse) ProtoMessage() {} // Deprecated: Use QueryIsOperatorForResponse.ProtoReflect.Descriptor instead. func (*QueryIsOperatorForResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{35} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{27} } func (x *QueryIsOperatorForResponse) GetAuthorized() bool { @@ -19835,7 +15616,7 @@ type QueryHoldersByOperatorRequest struct { func (x *QueryHoldersByOperatorRequest) Reset() { *x = QueryHoldersByOperatorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[36] + mi := &file_lbm_collection_v1_query_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19849,7 +15630,7 @@ func (*QueryHoldersByOperatorRequest) ProtoMessage() {} // Deprecated: Use QueryHoldersByOperatorRequest.ProtoReflect.Descriptor instead. func (*QueryHoldersByOperatorRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{36} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{28} } func (x *QueryHoldersByOperatorRequest) GetContractId() string { @@ -19887,7 +15668,7 @@ type QueryHoldersByOperatorResponse struct { func (x *QueryHoldersByOperatorResponse) Reset() { *x = QueryHoldersByOperatorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[37] + mi := &file_lbm_collection_v1_query_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19901,7 +15682,7 @@ func (*QueryHoldersByOperatorResponse) ProtoMessage() {} // Deprecated: Use QueryHoldersByOperatorResponse.ProtoReflect.Descriptor instead. func (*QueryHoldersByOperatorResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{37} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{29} } func (x *QueryHoldersByOperatorResponse) GetHolders() []string { @@ -20077,324 +15858,234 @@ var file_lbm_collection_v1_query_proto_rawDesc = []byte{ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x4e, 0x0a, 0x10, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, - 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, - 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x11, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, - 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x4e, 0x46, 0x54, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x04, 0x72, 0x6f, 0x6f, - 0x74, 0x22, 0x53, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x61, 0x73, 0x50, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x22, 0x37, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, - 0x61, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, - 0x50, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, - 0x64, 0x22, 0x4b, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x46, 0x54, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x9a, - 0x01, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0xde, 0x1f, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xb8, 0x01, 0x0a, 0x19, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x67, 0x72, 0x61, + 0x6e, 0x74, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x46, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, + 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x06, 0x68, 0x6f, + 0x6c, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x22, 0x3c, 0x0a, 0x1a, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, + 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x22, 0xbe, 0x01, 0x0a, 0x1d, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x34, 0x0a, + 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x15, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, - 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x46, 0x54, 0x42, - 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x12, - 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb8, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x46, 0x0a, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x65, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x49, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x06, 0x68, 0x6f, 0x6c, 0x64, - 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x22, 0x3c, 0x0a, 0x1a, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x49, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x22, 0xbe, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x6f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, - 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x1e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x07, - 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, - 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, - 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xf8, 0x18, 0x0a, 0x05, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x12, 0xac, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, - 0x26, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x50, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4a, 0x12, 0x48, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, - 0x64, 0x7d, 0x12, 0xad, 0x01, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x12, 0x2a, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, - 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x7d, 0x12, 0xa7, 0x01, 0x0a, 0x08, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, - 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, 0x6c, 0x62, 0x6d, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x1e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, + 0x0a, 0x07, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x68, 0x6f, 0x6c, 0x64, 0x65, + 0x72, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xd7, 0x13, 0x0a, 0x05, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0xac, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x26, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x50, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4a, 0x12, 0x48, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0xa7, 0x01, 0x0a, - 0x08, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, + 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, + 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xad, 0x01, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x73, 0x12, 0x2a, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, + 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2b, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, + 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x7d, 0x12, 0xa7, 0x01, 0x0a, 0x08, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, + 0x79, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x53, 0x75, 0x70, + 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, 0x6c, + 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, + 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0xa7, + 0x01, 0x0a, 0x08, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x27, 0x2e, 0x6c, 0x62, + 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, + 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x7d, 0x2f, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, + 0x7d, 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x12, 0xa3, 0x01, 0x0a, 0x07, 0x46, 0x54, 0x42, + 0x75, 0x72, 0x6e, 0x74, 0x12, 0x26, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, + 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6c, + 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x47, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, + 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, + 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x12, 0xb4, + 0x01, 0x0a, 0x09, 0x4e, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x28, 0x2e, 0x6c, + 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4e, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x12, 0x4a, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x73, + 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0xb4, 0x01, 0x0a, 0x09, 0x4e, 0x46, 0x54, 0x4d, 0x69, 0x6e, + 0x74, 0x65, 0x64, 0x12, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, + 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, + 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, + 0x12, 0x4a, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x12, 0xb0, 0x01, 0x0a, + 0x08, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x4d, 0x69, - 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x42, + 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, - 0x2f, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, - 0x6d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x12, 0xa3, 0x01, 0x0a, 0x07, 0x46, 0x54, 0x42, 0x75, 0x72, - 0x6e, 0x74, 0x12, 0x26, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x42, 0x75, - 0x72, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6c, 0x62, 0x6d, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x47, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x6c, 0x62, - 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x12, 0xb4, 0x01, 0x0a, - 0x09, 0x4e, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x28, 0x2e, 0x6c, 0x62, 0x6d, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, - 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x12, 0x4a, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, + 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x12, + 0x91, 0x01, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x27, 0x2e, 0x6c, + 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, - 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, - 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x73, 0x75, 0x70, - 0x70, 0x6c, 0x79, 0x12, 0xb4, 0x01, 0x0a, 0x09, 0x4e, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, - 0x64, 0x12, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x4d, 0x69, - 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6c, 0x62, - 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x12, 0x4a, - 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, - 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x7d, 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x12, 0xb0, 0x01, 0x0a, 0x08, 0x4e, - 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, - 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x12, 0x91, 0x01, - 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, + 0x69, 0x64, 0x7d, 0x12, 0xd2, 0x01, 0x0a, 0x12, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x7d, 0x12, 0xd2, 0x01, 0x0a, 0x12, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, + 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x54, 0x79, + 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, + 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x55, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4f, 0x12, 0x4d, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xad, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x29, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x12, 0x9a, 0x01, 0x0a, 0x05, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6c, 0x62, - 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x54, - 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x55, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4f, 0x12, 0x4d, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, + 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, - 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, - 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xad, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x45, 0x12, 0x43, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, - 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x12, 0x9a, 0x01, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x7d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, - 0x69, 0x64, 0x7d, 0x12, 0x9a, 0x01, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x23, 0x2e, 0x6c, - 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6f, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x47, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, - 0x3f, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6e, 0x66, 0x74, 0x73, - 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x72, 0x6f, 0x6f, 0x74, - 0x12, 0xaf, 0x01, 0x0a, 0x09, 0x48, 0x61, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x28, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x61, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x48, 0x61, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x12, 0x45, 0x2f, 0x6c, 0x62, - 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6e, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x68, 0x61, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x12, 0xa2, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, - 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x43, 0x12, 0x41, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, - 0x2f, 0x6e, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, - 0x2f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xaa, 0x01, 0x0a, 0x08, 0x43, 0x68, 0x69, 0x6c, - 0x64, 0x72, 0x65, 0x6e, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x68, - 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, - 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, - 0x43, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6e, 0x66, 0x74, 0x73, - 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x68, 0x69, 0x6c, - 0x64, 0x72, 0x65, 0x6e, 0x12, 0xb1, 0x01, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x65, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x6c, 0x62, - 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, - 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x7d, 0x12, 0x6e, 0x0a, 0x0d, 0x49, 0x73, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, 0x12, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x49, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, + 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb1, 0x01, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, + 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x49, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7a, 0x0a, 0x11, 0x48, 0x6f, 0x6c, 0x64, - 0x65, 0x72, 0x73, 0x42, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x30, 0x2e, - 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x31, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, - 0x42, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x42, 0xad, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, 0x6d, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x61, 0x70, - 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, - 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, 0x43, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, - 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x1d, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, - 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x13, 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x79, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x6c, + 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, + 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, + 0x7b, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x7d, 0x12, 0x6e, 0x0a, 0x0d, 0x49, 0x73, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, 0x12, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x49, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7a, 0x0a, 0x11, 0x48, 0x6f, 0x6c, + 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x30, + 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x42, + 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x31, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, + 0x73, 0x42, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xad, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, + 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, + 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x61, + 0x70, 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, 0x43, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, + 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, + 0x02, 0x1d, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x13, 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -20409,7 +16100,7 @@ func file_lbm_collection_v1_query_proto_rawDescGZIP() []byte { return file_lbm_collection_v1_query_proto_rawDescData } -var file_lbm_collection_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 38) +var file_lbm_collection_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 30) var file_lbm_collection_v1_query_proto_goTypes = []interface{}{ (*QueryBalanceRequest)(nil), // 0: lbm.collection.v1.QueryBalanceRequest (*QueryBalanceResponse)(nil), // 1: lbm.collection.v1.QueryBalanceResponse @@ -20435,90 +16126,68 @@ var file_lbm_collection_v1_query_proto_goTypes = []interface{}{ (*QueryTokenTypeResponse)(nil), // 21: lbm.collection.v1.QueryTokenTypeResponse (*QueryTokenRequest)(nil), // 22: lbm.collection.v1.QueryTokenRequest (*QueryTokenResponse)(nil), // 23: lbm.collection.v1.QueryTokenResponse - (*QueryRootRequest)(nil), // 24: lbm.collection.v1.QueryRootRequest - (*QueryRootResponse)(nil), // 25: lbm.collection.v1.QueryRootResponse - (*QueryHasParentRequest)(nil), // 26: lbm.collection.v1.QueryHasParentRequest - (*QueryHasParentResponse)(nil), // 27: lbm.collection.v1.QueryHasParentResponse - (*QueryParentRequest)(nil), // 28: lbm.collection.v1.QueryParentRequest - (*QueryParentResponse)(nil), // 29: lbm.collection.v1.QueryParentResponse - (*QueryChildrenRequest)(nil), // 30: lbm.collection.v1.QueryChildrenRequest - (*QueryChildrenResponse)(nil), // 31: lbm.collection.v1.QueryChildrenResponse - (*QueryGranteeGrantsRequest)(nil), // 32: lbm.collection.v1.QueryGranteeGrantsRequest - (*QueryGranteeGrantsResponse)(nil), // 33: lbm.collection.v1.QueryGranteeGrantsResponse - (*QueryIsOperatorForRequest)(nil), // 34: lbm.collection.v1.QueryIsOperatorForRequest - (*QueryIsOperatorForResponse)(nil), // 35: lbm.collection.v1.QueryIsOperatorForResponse - (*QueryHoldersByOperatorRequest)(nil), // 36: lbm.collection.v1.QueryHoldersByOperatorRequest - (*QueryHoldersByOperatorResponse)(nil), // 37: lbm.collection.v1.QueryHoldersByOperatorResponse - (*Coin)(nil), // 38: lbm.collection.v1.Coin - (*query.PageRequest)(nil), // 39: cosmos.base.query.v1beta1.PageRequest - (*query.PageResponse)(nil), // 40: cosmos.base.query.v1beta1.PageResponse - (*Contract)(nil), // 41: lbm.collection.v1.Contract - (*TokenType)(nil), // 42: lbm.collection.v1.TokenType - (*anypb.Any)(nil), // 43: google.protobuf.Any - (*NFT)(nil), // 44: lbm.collection.v1.NFT - (*Grant)(nil), // 45: lbm.collection.v1.Grant + (*QueryGranteeGrantsRequest)(nil), // 24: lbm.collection.v1.QueryGranteeGrantsRequest + (*QueryGranteeGrantsResponse)(nil), // 25: lbm.collection.v1.QueryGranteeGrantsResponse + (*QueryIsOperatorForRequest)(nil), // 26: lbm.collection.v1.QueryIsOperatorForRequest + (*QueryIsOperatorForResponse)(nil), // 27: lbm.collection.v1.QueryIsOperatorForResponse + (*QueryHoldersByOperatorRequest)(nil), // 28: lbm.collection.v1.QueryHoldersByOperatorRequest + (*QueryHoldersByOperatorResponse)(nil), // 29: lbm.collection.v1.QueryHoldersByOperatorResponse + (*Coin)(nil), // 30: lbm.collection.v1.Coin + (*query.PageRequest)(nil), // 31: cosmos.base.query.v1beta1.PageRequest + (*query.PageResponse)(nil), // 32: cosmos.base.query.v1beta1.PageResponse + (*Contract)(nil), // 33: lbm.collection.v1.Contract + (*TokenType)(nil), // 34: lbm.collection.v1.TokenType + (*anypb.Any)(nil), // 35: google.protobuf.Any + (*Grant)(nil), // 36: lbm.collection.v1.Grant } var file_lbm_collection_v1_query_proto_depIdxs = []int32{ - 38, // 0: lbm.collection.v1.QueryBalanceResponse.balance:type_name -> lbm.collection.v1.Coin - 39, // 1: lbm.collection.v1.QueryAllBalancesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 38, // 2: lbm.collection.v1.QueryAllBalancesResponse.balances:type_name -> lbm.collection.v1.Coin - 40, // 3: lbm.collection.v1.QueryAllBalancesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 41, // 4: lbm.collection.v1.QueryContractResponse.contract:type_name -> lbm.collection.v1.Contract - 42, // 5: lbm.collection.v1.QueryTokenTypeResponse.token_type:type_name -> lbm.collection.v1.TokenType - 43, // 6: lbm.collection.v1.QueryTokenResponse.token:type_name -> google.protobuf.Any - 44, // 7: lbm.collection.v1.QueryRootResponse.root:type_name -> lbm.collection.v1.NFT - 44, // 8: lbm.collection.v1.QueryParentResponse.parent:type_name -> lbm.collection.v1.NFT - 39, // 9: lbm.collection.v1.QueryChildrenRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 44, // 10: lbm.collection.v1.QueryChildrenResponse.children:type_name -> lbm.collection.v1.NFT - 40, // 11: lbm.collection.v1.QueryChildrenResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 39, // 12: lbm.collection.v1.QueryGranteeGrantsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 45, // 13: lbm.collection.v1.QueryGranteeGrantsResponse.grants:type_name -> lbm.collection.v1.Grant - 40, // 14: lbm.collection.v1.QueryGranteeGrantsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 39, // 15: lbm.collection.v1.QueryHoldersByOperatorRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 40, // 16: lbm.collection.v1.QueryHoldersByOperatorResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 0, // 17: lbm.collection.v1.Query.Balance:input_type -> lbm.collection.v1.QueryBalanceRequest - 2, // 18: lbm.collection.v1.Query.AllBalances:input_type -> lbm.collection.v1.QueryAllBalancesRequest - 4, // 19: lbm.collection.v1.Query.FTSupply:input_type -> lbm.collection.v1.QueryFTSupplyRequest - 6, // 20: lbm.collection.v1.Query.FTMinted:input_type -> lbm.collection.v1.QueryFTMintedRequest - 8, // 21: lbm.collection.v1.Query.FTBurnt:input_type -> lbm.collection.v1.QueryFTBurntRequest - 10, // 22: lbm.collection.v1.Query.NFTSupply:input_type -> lbm.collection.v1.QueryNFTSupplyRequest - 12, // 23: lbm.collection.v1.Query.NFTMinted:input_type -> lbm.collection.v1.QueryNFTMintedRequest - 14, // 24: lbm.collection.v1.Query.NFTBurnt:input_type -> lbm.collection.v1.QueryNFTBurntRequest - 16, // 25: lbm.collection.v1.Query.Contract:input_type -> lbm.collection.v1.QueryContractRequest - 18, // 26: lbm.collection.v1.Query.TokenClassTypeName:input_type -> lbm.collection.v1.QueryTokenClassTypeNameRequest - 20, // 27: lbm.collection.v1.Query.TokenType:input_type -> lbm.collection.v1.QueryTokenTypeRequest - 22, // 28: lbm.collection.v1.Query.Token:input_type -> lbm.collection.v1.QueryTokenRequest - 24, // 29: lbm.collection.v1.Query.Root:input_type -> lbm.collection.v1.QueryRootRequest - 26, // 30: lbm.collection.v1.Query.HasParent:input_type -> lbm.collection.v1.QueryHasParentRequest - 28, // 31: lbm.collection.v1.Query.Parent:input_type -> lbm.collection.v1.QueryParentRequest - 30, // 32: lbm.collection.v1.Query.Children:input_type -> lbm.collection.v1.QueryChildrenRequest - 32, // 33: lbm.collection.v1.Query.GranteeGrants:input_type -> lbm.collection.v1.QueryGranteeGrantsRequest - 34, // 34: lbm.collection.v1.Query.IsOperatorFor:input_type -> lbm.collection.v1.QueryIsOperatorForRequest - 36, // 35: lbm.collection.v1.Query.HoldersByOperator:input_type -> lbm.collection.v1.QueryHoldersByOperatorRequest - 1, // 36: lbm.collection.v1.Query.Balance:output_type -> lbm.collection.v1.QueryBalanceResponse - 3, // 37: lbm.collection.v1.Query.AllBalances:output_type -> lbm.collection.v1.QueryAllBalancesResponse - 5, // 38: lbm.collection.v1.Query.FTSupply:output_type -> lbm.collection.v1.QueryFTSupplyResponse - 7, // 39: lbm.collection.v1.Query.FTMinted:output_type -> lbm.collection.v1.QueryFTMintedResponse - 9, // 40: lbm.collection.v1.Query.FTBurnt:output_type -> lbm.collection.v1.QueryFTBurntResponse - 11, // 41: lbm.collection.v1.Query.NFTSupply:output_type -> lbm.collection.v1.QueryNFTSupplyResponse - 13, // 42: lbm.collection.v1.Query.NFTMinted:output_type -> lbm.collection.v1.QueryNFTMintedResponse - 15, // 43: lbm.collection.v1.Query.NFTBurnt:output_type -> lbm.collection.v1.QueryNFTBurntResponse - 17, // 44: lbm.collection.v1.Query.Contract:output_type -> lbm.collection.v1.QueryContractResponse - 19, // 45: lbm.collection.v1.Query.TokenClassTypeName:output_type -> lbm.collection.v1.QueryTokenClassTypeNameResponse - 21, // 46: lbm.collection.v1.Query.TokenType:output_type -> lbm.collection.v1.QueryTokenTypeResponse - 23, // 47: lbm.collection.v1.Query.Token:output_type -> lbm.collection.v1.QueryTokenResponse - 25, // 48: lbm.collection.v1.Query.Root:output_type -> lbm.collection.v1.QueryRootResponse - 27, // 49: lbm.collection.v1.Query.HasParent:output_type -> lbm.collection.v1.QueryHasParentResponse - 29, // 50: lbm.collection.v1.Query.Parent:output_type -> lbm.collection.v1.QueryParentResponse - 31, // 51: lbm.collection.v1.Query.Children:output_type -> lbm.collection.v1.QueryChildrenResponse - 33, // 52: lbm.collection.v1.Query.GranteeGrants:output_type -> lbm.collection.v1.QueryGranteeGrantsResponse - 35, // 53: lbm.collection.v1.Query.IsOperatorFor:output_type -> lbm.collection.v1.QueryIsOperatorForResponse - 37, // 54: lbm.collection.v1.Query.HoldersByOperator:output_type -> lbm.collection.v1.QueryHoldersByOperatorResponse - 36, // [36:55] is the sub-list for method output_type - 17, // [17:36] is the sub-list for method input_type - 17, // [17:17] is the sub-list for extension type_name - 17, // [17:17] is the sub-list for extension extendee - 0, // [0:17] is the sub-list for field type_name + 30, // 0: lbm.collection.v1.QueryBalanceResponse.balance:type_name -> lbm.collection.v1.Coin + 31, // 1: lbm.collection.v1.QueryAllBalancesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 30, // 2: lbm.collection.v1.QueryAllBalancesResponse.balances:type_name -> lbm.collection.v1.Coin + 32, // 3: lbm.collection.v1.QueryAllBalancesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 33, // 4: lbm.collection.v1.QueryContractResponse.contract:type_name -> lbm.collection.v1.Contract + 34, // 5: lbm.collection.v1.QueryTokenTypeResponse.token_type:type_name -> lbm.collection.v1.TokenType + 35, // 6: lbm.collection.v1.QueryTokenResponse.token:type_name -> google.protobuf.Any + 31, // 7: lbm.collection.v1.QueryGranteeGrantsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 36, // 8: lbm.collection.v1.QueryGranteeGrantsResponse.grants:type_name -> lbm.collection.v1.Grant + 32, // 9: lbm.collection.v1.QueryGranteeGrantsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 31, // 10: lbm.collection.v1.QueryHoldersByOperatorRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 32, // 11: lbm.collection.v1.QueryHoldersByOperatorResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 0, // 12: lbm.collection.v1.Query.Balance:input_type -> lbm.collection.v1.QueryBalanceRequest + 2, // 13: lbm.collection.v1.Query.AllBalances:input_type -> lbm.collection.v1.QueryAllBalancesRequest + 4, // 14: lbm.collection.v1.Query.FTSupply:input_type -> lbm.collection.v1.QueryFTSupplyRequest + 6, // 15: lbm.collection.v1.Query.FTMinted:input_type -> lbm.collection.v1.QueryFTMintedRequest + 8, // 16: lbm.collection.v1.Query.FTBurnt:input_type -> lbm.collection.v1.QueryFTBurntRequest + 10, // 17: lbm.collection.v1.Query.NFTSupply:input_type -> lbm.collection.v1.QueryNFTSupplyRequest + 12, // 18: lbm.collection.v1.Query.NFTMinted:input_type -> lbm.collection.v1.QueryNFTMintedRequest + 14, // 19: lbm.collection.v1.Query.NFTBurnt:input_type -> lbm.collection.v1.QueryNFTBurntRequest + 16, // 20: lbm.collection.v1.Query.Contract:input_type -> lbm.collection.v1.QueryContractRequest + 18, // 21: lbm.collection.v1.Query.TokenClassTypeName:input_type -> lbm.collection.v1.QueryTokenClassTypeNameRequest + 20, // 22: lbm.collection.v1.Query.TokenType:input_type -> lbm.collection.v1.QueryTokenTypeRequest + 22, // 23: lbm.collection.v1.Query.Token:input_type -> lbm.collection.v1.QueryTokenRequest + 24, // 24: lbm.collection.v1.Query.GranteeGrants:input_type -> lbm.collection.v1.QueryGranteeGrantsRequest + 26, // 25: lbm.collection.v1.Query.IsOperatorFor:input_type -> lbm.collection.v1.QueryIsOperatorForRequest + 28, // 26: lbm.collection.v1.Query.HoldersByOperator:input_type -> lbm.collection.v1.QueryHoldersByOperatorRequest + 1, // 27: lbm.collection.v1.Query.Balance:output_type -> lbm.collection.v1.QueryBalanceResponse + 3, // 28: lbm.collection.v1.Query.AllBalances:output_type -> lbm.collection.v1.QueryAllBalancesResponse + 5, // 29: lbm.collection.v1.Query.FTSupply:output_type -> lbm.collection.v1.QueryFTSupplyResponse + 7, // 30: lbm.collection.v1.Query.FTMinted:output_type -> lbm.collection.v1.QueryFTMintedResponse + 9, // 31: lbm.collection.v1.Query.FTBurnt:output_type -> lbm.collection.v1.QueryFTBurntResponse + 11, // 32: lbm.collection.v1.Query.NFTSupply:output_type -> lbm.collection.v1.QueryNFTSupplyResponse + 13, // 33: lbm.collection.v1.Query.NFTMinted:output_type -> lbm.collection.v1.QueryNFTMintedResponse + 15, // 34: lbm.collection.v1.Query.NFTBurnt:output_type -> lbm.collection.v1.QueryNFTBurntResponse + 17, // 35: lbm.collection.v1.Query.Contract:output_type -> lbm.collection.v1.QueryContractResponse + 19, // 36: lbm.collection.v1.Query.TokenClassTypeName:output_type -> lbm.collection.v1.QueryTokenClassTypeNameResponse + 21, // 37: lbm.collection.v1.Query.TokenType:output_type -> lbm.collection.v1.QueryTokenTypeResponse + 23, // 38: lbm.collection.v1.Query.Token:output_type -> lbm.collection.v1.QueryTokenResponse + 25, // 39: lbm.collection.v1.Query.GranteeGrants:output_type -> lbm.collection.v1.QueryGranteeGrantsResponse + 27, // 40: lbm.collection.v1.Query.IsOperatorFor:output_type -> lbm.collection.v1.QueryIsOperatorForResponse + 29, // 41: lbm.collection.v1.Query.HoldersByOperator:output_type -> lbm.collection.v1.QueryHoldersByOperatorResponse + 27, // [27:42] is the sub-list for method output_type + 12, // [12:27] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_lbm_collection_v1_query_proto_init() } @@ -20817,102 +16486,6 @@ func file_lbm_collection_v1_query_proto_init() { } } file_lbm_collection_v1_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRootRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRootResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryHasParentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryHasParentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryChildrenRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryChildrenResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGranteeGrantsRequest); i { case 0: return &v.state @@ -20924,7 +16497,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGranteeGrantsResponse); i { case 0: return &v.state @@ -20936,7 +16509,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsOperatorForRequest); i { case 0: return &v.state @@ -20948,7 +16521,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsOperatorForResponse); i { case 0: return &v.state @@ -20960,7 +16533,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryHoldersByOperatorRequest); i { case 0: return &v.state @@ -20972,7 +16545,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryHoldersByOperatorResponse); i { case 0: return &v.state @@ -20991,7 +16564,7 @@ func file_lbm_collection_v1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_lbm_collection_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 38, + NumMessages: 30, NumExtensions: 0, NumServices: 1, }, diff --git a/api/lbm/collection/v1/query_grpc.pb.go b/api/lbm/collection/v1/query_grpc.pb.go index e7b4caf218..c112237656 100644 --- a/api/lbm/collection/v1/query_grpc.pb.go +++ b/api/lbm/collection/v1/query_grpc.pb.go @@ -31,10 +31,6 @@ const ( Query_TokenClassTypeName_FullMethodName = "/lbm.collection.v1.Query/TokenClassTypeName" Query_TokenType_FullMethodName = "/lbm.collection.v1.Query/TokenType" Query_Token_FullMethodName = "/lbm.collection.v1.Query/Token" - Query_Root_FullMethodName = "/lbm.collection.v1.Query/Root" - Query_HasParent_FullMethodName = "/lbm.collection.v1.Query/HasParent" - Query_Parent_FullMethodName = "/lbm.collection.v1.Query/Parent" - Query_Children_FullMethodName = "/lbm.collection.v1.Query/Children" Query_GranteeGrants_FullMethodName = "/lbm.collection.v1.Query/GranteeGrants" Query_IsOperatorFor_FullMethodName = "/lbm.collection.v1.Query/IsOperatorFor" Query_HoldersByOperator_FullMethodName = "/lbm.collection.v1.Query/HoldersByOperator" @@ -70,14 +66,6 @@ type QueryClient interface { TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) // Token queries a metadata of a token from its token id. Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) - // Root queries the root of a given nft. - Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error) - // HasParent queries whether a given nft has its parent. - HasParent(ctx context.Context, in *QueryHasParentRequest, opts ...grpc.CallOption) (*QueryHasParentResponse, error) - // Parent queries the parent of a given nft. - Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error) - // Children queries the children of a given nft. - Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error) // GranteeGrants queries all permissions on a given grantee. GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) // IsOperatorFor queries whether the operator is authorized by the holder. @@ -202,42 +190,6 @@ func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ... return out, nil } -func (c *queryClient) Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error) { - out := new(QueryRootResponse) - err := c.cc.Invoke(ctx, Query_Root_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) HasParent(ctx context.Context, in *QueryHasParentRequest, opts ...grpc.CallOption) (*QueryHasParentResponse, error) { - out := new(QueryHasParentResponse) - err := c.cc.Invoke(ctx, Query_HasParent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error) { - out := new(QueryParentResponse) - err := c.cc.Invoke(ctx, Query_Parent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error) { - out := new(QueryChildrenResponse) - err := c.cc.Invoke(ctx, Query_Children_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) { out := new(QueryGranteeGrantsResponse) err := c.cc.Invoke(ctx, Query_GranteeGrants_FullMethodName, in, out, opts...) @@ -295,14 +247,6 @@ type QueryServer interface { TokenType(context.Context, *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) // Token queries a metadata of a token from its token id. Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) - // Root queries the root of a given nft. - Root(context.Context, *QueryRootRequest) (*QueryRootResponse, error) - // HasParent queries whether a given nft has its parent. - HasParent(context.Context, *QueryHasParentRequest) (*QueryHasParentResponse, error) - // Parent queries the parent of a given nft. - Parent(context.Context, *QueryParentRequest) (*QueryParentResponse, error) - // Children queries the children of a given nft. - Children(context.Context, *QueryChildrenRequest) (*QueryChildrenResponse, error) // GranteeGrants queries all permissions on a given grantee. GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) // IsOperatorFor queries whether the operator is authorized by the holder. @@ -352,18 +296,6 @@ func (UnimplementedQueryServer) TokenType(context.Context, *QueryTokenTypeReques func (UnimplementedQueryServer) Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") } -func (UnimplementedQueryServer) Root(context.Context, *QueryRootRequest) (*QueryRootResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Root not implemented") -} -func (UnimplementedQueryServer) HasParent(context.Context, *QueryHasParentRequest) (*QueryHasParentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HasParent not implemented") -} -func (UnimplementedQueryServer) Parent(context.Context, *QueryParentRequest) (*QueryParentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Parent not implemented") -} -func (UnimplementedQueryServer) Children(context.Context, *QueryChildrenRequest) (*QueryChildrenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Children not implemented") -} func (UnimplementedQueryServer) GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GranteeGrants not implemented") } @@ -602,78 +534,6 @@ func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _Query_Root_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRootRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Root(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Root_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Root(ctx, req.(*QueryRootRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_HasParent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryHasParentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).HasParent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_HasParent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).HasParent(ctx, req.(*QueryHasParentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Parent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Parent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Parent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Parent(ctx, req.(*QueryParentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Children_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryChildrenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Children(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Children_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Children(ctx, req.(*QueryChildrenRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_GranteeGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGranteeGrantsRequest) if err := dec(in); err != nil { @@ -783,22 +643,6 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "Token", Handler: _Query_Token_Handler, }, - { - MethodName: "Root", - Handler: _Query_Root_Handler, - }, - { - MethodName: "HasParent", - Handler: _Query_HasParent_Handler, - }, - { - MethodName: "Parent", - Handler: _Query_Parent_Handler, - }, - { - MethodName: "Children", - Handler: _Query_Children_Handler, - }, { MethodName: "GranteeGrants", Handler: _Query_GranteeGrants_Handler, diff --git a/api/lbm/collection/v1/tx.pulsar.go b/api/lbm/collection/v1/tx.pulsar.go index bd4b175bb5..d3fd1c1a40 100644 --- a/api/lbm/collection/v1/tx.pulsar.go +++ b/api/lbm/collection/v1/tx.pulsar.go @@ -19164,6046 +19164,1794 @@ func (x *fastReflection_MsgRevokePermissionResponse) ProtoMethods() *protoiface. } } -var ( - md_MsgAttach protoreflect.MessageDescriptor - fd_MsgAttach_contract_id protoreflect.FieldDescriptor - fd_MsgAttach_from protoreflect.FieldDescriptor - fd_MsgAttach_token_id protoreflect.FieldDescriptor - fd_MsgAttach_to_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgAttach = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgAttach") - fd_MsgAttach_contract_id = md_MsgAttach.Fields().ByName("contract_id") - fd_MsgAttach_from = md_MsgAttach.Fields().ByName("from") - fd_MsgAttach_token_id = md_MsgAttach.Fields().ByName("token_id") - fd_MsgAttach_to_token_id = md_MsgAttach.Fields().ByName("to_token_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgAttach)(nil) - -type fastReflection_MsgAttach MsgAttach - -func (x *MsgAttach) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAttach)(x) -} - -func (x *MsgAttach) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[37] - 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_MsgAttach_messageType fastReflection_MsgAttach_messageType -var _ protoreflect.MessageType = fastReflection_MsgAttach_messageType{} - -type fastReflection_MsgAttach_messageType struct{} - -func (x fastReflection_MsgAttach_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAttach)(nil) -} -func (x fastReflection_MsgAttach_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAttach) -} -func (x fastReflection_MsgAttach_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAttach -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgAttach) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAttach -} - -// 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_MsgAttach) Type() protoreflect.MessageType { - return _fastReflection_MsgAttach_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAttach) New() protoreflect.Message { - return new(fastReflection_MsgAttach) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAttach) Interface() protoreflect.ProtoMessage { - return (*MsgAttach)(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_MsgAttach) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgAttach_contract_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgAttach_from, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_MsgAttach_token_id, value) { - return - } - } - if x.ToTokenId != "" { - value := protoreflect.ValueOfString(x.ToTokenId) - if !f(fd_MsgAttach_to_token_id, 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_MsgAttach) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgAttach.from": - return x.From != "" - case "lbm.collection.v1.MsgAttach.token_id": - return x.TokenId != "" - case "lbm.collection.v1.MsgAttach.to_token_id": - return x.ToTokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach 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_MsgAttach) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgAttach.from": - x.From = "" - case "lbm.collection.v1.MsgAttach.token_id": - x.TokenId = "" - case "lbm.collection.v1.MsgAttach.to_token_id": - x.ToTokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach 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_MsgAttach) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgAttach.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgAttach.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgAttach.to_token_id": - value := x.ToTokenId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach 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_MsgAttach) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgAttach.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgAttach.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.MsgAttach.to_token_id": - x.ToTokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach 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_MsgAttach) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgAttach is not mutable")) - case "lbm.collection.v1.MsgAttach.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgAttach is not mutable")) - case "lbm.collection.v1.MsgAttach.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.MsgAttach is not mutable")) - case "lbm.collection.v1.MsgAttach.to_token_id": - panic(fmt.Errorf("field to_token_id of message lbm.collection.v1.MsgAttach is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach 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_MsgAttach) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgAttach.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgAttach.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgAttach.to_token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach 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_MsgAttach) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgAttach", 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_MsgAttach) 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_MsgAttach) 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_MsgAttach) 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_MsgAttach) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAttach) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ToTokenId) - 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().(*MsgAttach) - 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.ToTokenId) > 0 { - i -= len(x.ToTokenId) - copy(dAtA[i:], x.ToTokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ToTokenId))) - i-- - dAtA[i] = 0x22 - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x1a - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*MsgAttach) - 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: MsgAttach: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAttach: 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 ContractId", 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.ContractId = 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 From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", 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.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ToTokenId", 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.ToTokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgAttachResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgAttachResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgAttachResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgAttachResponse)(nil) - -type fastReflection_MsgAttachResponse MsgAttachResponse - -func (x *MsgAttachResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAttachResponse)(x) -} - -func (x *MsgAttachResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[38] - 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_MsgAttachResponse_messageType fastReflection_MsgAttachResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgAttachResponse_messageType{} - -type fastReflection_MsgAttachResponse_messageType struct{} - -func (x fastReflection_MsgAttachResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAttachResponse)(nil) -} -func (x fastReflection_MsgAttachResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAttachResponse) -} -func (x fastReflection_MsgAttachResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAttachResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgAttachResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAttachResponse -} - -// 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_MsgAttachResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgAttachResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAttachResponse) New() protoreflect.Message { - return new(fastReflection_MsgAttachResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAttachResponse) Interface() protoreflect.ProtoMessage { - return (*MsgAttachResponse)(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_MsgAttachResponse) 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_MsgAttachResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse 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_MsgAttachResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse 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_MsgAttachResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse 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_MsgAttachResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse 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_MsgAttachResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse 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_MsgAttachResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse 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_MsgAttachResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgAttachResponse", 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_MsgAttachResponse) 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_MsgAttachResponse) 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_MsgAttachResponse) 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_MsgAttachResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAttachResponse) - 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().(*MsgAttachResponse) - 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().(*MsgAttachResponse) - 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: MsgAttachResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAttachResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgDetach protoreflect.MessageDescriptor - fd_MsgDetach_contract_id protoreflect.FieldDescriptor - fd_MsgDetach_from protoreflect.FieldDescriptor - fd_MsgDetach_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgDetach = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgDetach") - fd_MsgDetach_contract_id = md_MsgDetach.Fields().ByName("contract_id") - fd_MsgDetach_from = md_MsgDetach.Fields().ByName("from") - fd_MsgDetach_token_id = md_MsgDetach.Fields().ByName("token_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgDetach)(nil) - -type fastReflection_MsgDetach MsgDetach - -func (x *MsgDetach) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgDetach)(x) -} - -func (x *MsgDetach) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[39] - 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_MsgDetach_messageType fastReflection_MsgDetach_messageType -var _ protoreflect.MessageType = fastReflection_MsgDetach_messageType{} - -type fastReflection_MsgDetach_messageType struct{} - -func (x fastReflection_MsgDetach_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgDetach)(nil) -} -func (x fastReflection_MsgDetach_messageType) New() protoreflect.Message { - return new(fastReflection_MsgDetach) -} -func (x fastReflection_MsgDetach_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDetach -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgDetach) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDetach -} - -// 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_MsgDetach) Type() protoreflect.MessageType { - return _fastReflection_MsgDetach_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgDetach) New() protoreflect.Message { - return new(fastReflection_MsgDetach) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgDetach) Interface() protoreflect.ProtoMessage { - return (*MsgDetach)(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_MsgDetach) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgDetach_contract_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgDetach_from, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_MsgDetach_token_id, 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_MsgDetach) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgDetach.from": - return x.From != "" - case "lbm.collection.v1.MsgDetach.token_id": - return x.TokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach 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_MsgDetach) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgDetach.from": - x.From = "" - case "lbm.collection.v1.MsgDetach.token_id": - x.TokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach 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_MsgDetach) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgDetach.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgDetach.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach 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_MsgDetach) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgDetach.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgDetach.token_id": - x.TokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach 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_MsgDetach) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgDetach is not mutable")) - case "lbm.collection.v1.MsgDetach.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgDetach is not mutable")) - case "lbm.collection.v1.MsgDetach.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.MsgDetach is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach 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_MsgDetach) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgDetach.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgDetach.token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach 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_MsgDetach) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgDetach", 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_MsgDetach) 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_MsgDetach) 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_MsgDetach) 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_MsgDetach) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgDetach) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - 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().(*MsgDetach) - 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.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x1a - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*MsgDetach) - 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: MsgDetach: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDetach: 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 ContractId", 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.ContractId = 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 From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", 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.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgDetachResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgDetachResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgDetachResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgDetachResponse)(nil) - -type fastReflection_MsgDetachResponse MsgDetachResponse - -func (x *MsgDetachResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgDetachResponse)(x) -} - -func (x *MsgDetachResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[40] - 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_MsgDetachResponse_messageType fastReflection_MsgDetachResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgDetachResponse_messageType{} - -type fastReflection_MsgDetachResponse_messageType struct{} - -func (x fastReflection_MsgDetachResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgDetachResponse)(nil) -} -func (x fastReflection_MsgDetachResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgDetachResponse) -} -func (x fastReflection_MsgDetachResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDetachResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgDetachResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDetachResponse -} - -// 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_MsgDetachResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgDetachResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgDetachResponse) New() protoreflect.Message { - return new(fastReflection_MsgDetachResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgDetachResponse) Interface() protoreflect.ProtoMessage { - return (*MsgDetachResponse)(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_MsgDetachResponse) 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_MsgDetachResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse 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_MsgDetachResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse 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_MsgDetachResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse 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_MsgDetachResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse 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_MsgDetachResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse 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_MsgDetachResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse 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_MsgDetachResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgDetachResponse", 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_MsgDetachResponse) 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_MsgDetachResponse) 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_MsgDetachResponse) 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_MsgDetachResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgDetachResponse) - 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().(*MsgDetachResponse) - 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().(*MsgDetachResponse) - 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: MsgDetachResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDetachResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgOperatorAttach protoreflect.MessageDescriptor - fd_MsgOperatorAttach_contract_id protoreflect.FieldDescriptor - fd_MsgOperatorAttach_operator protoreflect.FieldDescriptor - fd_MsgOperatorAttach_from protoreflect.FieldDescriptor - fd_MsgOperatorAttach_token_id protoreflect.FieldDescriptor - fd_MsgOperatorAttach_to_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorAttach = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorAttach") - fd_MsgOperatorAttach_contract_id = md_MsgOperatorAttach.Fields().ByName("contract_id") - fd_MsgOperatorAttach_operator = md_MsgOperatorAttach.Fields().ByName("operator") - fd_MsgOperatorAttach_from = md_MsgOperatorAttach.Fields().ByName("from") - fd_MsgOperatorAttach_token_id = md_MsgOperatorAttach.Fields().ByName("token_id") - fd_MsgOperatorAttach_to_token_id = md_MsgOperatorAttach.Fields().ByName("to_token_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorAttach)(nil) - -type fastReflection_MsgOperatorAttach MsgOperatorAttach - -func (x *MsgOperatorAttach) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorAttach)(x) -} - -func (x *MsgOperatorAttach) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[41] - 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_MsgOperatorAttach_messageType fastReflection_MsgOperatorAttach_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorAttach_messageType{} - -type fastReflection_MsgOperatorAttach_messageType struct{} - -func (x fastReflection_MsgOperatorAttach_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorAttach)(nil) -} -func (x fastReflection_MsgOperatorAttach_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorAttach) -} -func (x fastReflection_MsgOperatorAttach_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorAttach -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorAttach) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorAttach -} - -// 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_MsgOperatorAttach) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorAttach_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorAttach) New() protoreflect.Message { - return new(fastReflection_MsgOperatorAttach) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorAttach) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorAttach)(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_MsgOperatorAttach) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgOperatorAttach_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_MsgOperatorAttach_operator, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgOperatorAttach_from, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_MsgOperatorAttach_token_id, value) { - return - } - } - if x.ToTokenId != "" { - value := protoreflect.ValueOfString(x.ToTokenId) - if !f(fd_MsgOperatorAttach_to_token_id, 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_MsgOperatorAttach) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgOperatorAttach.operator": - return x.Operator != "" - case "lbm.collection.v1.MsgOperatorAttach.from": - return x.From != "" - case "lbm.collection.v1.MsgOperatorAttach.token_id": - return x.TokenId != "" - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - return x.ToTokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach 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_MsgOperatorAttach) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgOperatorAttach.operator": - x.Operator = "" - case "lbm.collection.v1.MsgOperatorAttach.from": - x.From = "" - case "lbm.collection.v1.MsgOperatorAttach.token_id": - x.TokenId = "" - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - x.ToTokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach 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_MsgOperatorAttach) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorAttach.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorAttach.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorAttach.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - value := x.ToTokenId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach 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_MsgOperatorAttach) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorAttach.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorAttach.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorAttach.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - x.ToTokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach 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_MsgOperatorAttach) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgOperatorAttach is not mutable")) - case "lbm.collection.v1.MsgOperatorAttach.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgOperatorAttach is not mutable")) - case "lbm.collection.v1.MsgOperatorAttach.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgOperatorAttach is not mutable")) - case "lbm.collection.v1.MsgOperatorAttach.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.MsgOperatorAttach is not mutable")) - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - panic(fmt.Errorf("field to_token_id of message lbm.collection.v1.MsgOperatorAttach is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach 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_MsgOperatorAttach) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorAttach.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorAttach.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorAttach.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach 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_MsgOperatorAttach) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorAttach", 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_MsgOperatorAttach) 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_MsgOperatorAttach) 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_MsgOperatorAttach) 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_MsgOperatorAttach) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorAttach) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ToTokenId) - 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().(*MsgOperatorAttach) - 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.ToTokenId) > 0 { - i -= len(x.ToTokenId) - copy(dAtA[i:], x.ToTokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ToTokenId))) - i-- - dAtA[i] = 0x2a - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x22 - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*MsgOperatorAttach) - 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: MsgOperatorAttach: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorAttach: 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 ContractId", 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.ContractId = 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 Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", 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.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ToTokenId", 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.ToTokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgOperatorAttachResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorAttachResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorAttachResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorAttachResponse)(nil) - -type fastReflection_MsgOperatorAttachResponse MsgOperatorAttachResponse - -func (x *MsgOperatorAttachResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorAttachResponse)(x) -} - -func (x *MsgOperatorAttachResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[42] - 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_MsgOperatorAttachResponse_messageType fastReflection_MsgOperatorAttachResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorAttachResponse_messageType{} - -type fastReflection_MsgOperatorAttachResponse_messageType struct{} - -func (x fastReflection_MsgOperatorAttachResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorAttachResponse)(nil) -} -func (x fastReflection_MsgOperatorAttachResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorAttachResponse) -} -func (x fastReflection_MsgOperatorAttachResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorAttachResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorAttachResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorAttachResponse -} - -// 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_MsgOperatorAttachResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorAttachResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorAttachResponse) New() protoreflect.Message { - return new(fastReflection_MsgOperatorAttachResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorAttachResponse) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorAttachResponse)(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_MsgOperatorAttachResponse) 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_MsgOperatorAttachResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse 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_MsgOperatorAttachResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse 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_MsgOperatorAttachResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse 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_MsgOperatorAttachResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse 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_MsgOperatorAttachResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse 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_MsgOperatorAttachResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse 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_MsgOperatorAttachResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorAttachResponse", 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_MsgOperatorAttachResponse) 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_MsgOperatorAttachResponse) 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_MsgOperatorAttachResponse) 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_MsgOperatorAttachResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorAttachResponse) - 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().(*MsgOperatorAttachResponse) - 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().(*MsgOperatorAttachResponse) - 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: MsgOperatorAttachResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorAttachResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgOperatorDetach protoreflect.MessageDescriptor - fd_MsgOperatorDetach_contract_id protoreflect.FieldDescriptor - fd_MsgOperatorDetach_operator protoreflect.FieldDescriptor - fd_MsgOperatorDetach_from protoreflect.FieldDescriptor - fd_MsgOperatorDetach_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorDetach = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorDetach") - fd_MsgOperatorDetach_contract_id = md_MsgOperatorDetach.Fields().ByName("contract_id") - fd_MsgOperatorDetach_operator = md_MsgOperatorDetach.Fields().ByName("operator") - fd_MsgOperatorDetach_from = md_MsgOperatorDetach.Fields().ByName("from") - fd_MsgOperatorDetach_token_id = md_MsgOperatorDetach.Fields().ByName("token_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorDetach)(nil) - -type fastReflection_MsgOperatorDetach MsgOperatorDetach - -func (x *MsgOperatorDetach) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorDetach)(x) -} - -func (x *MsgOperatorDetach) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[43] - 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_MsgOperatorDetach_messageType fastReflection_MsgOperatorDetach_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorDetach_messageType{} - -type fastReflection_MsgOperatorDetach_messageType struct{} - -func (x fastReflection_MsgOperatorDetach_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorDetach)(nil) -} -func (x fastReflection_MsgOperatorDetach_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorDetach) -} -func (x fastReflection_MsgOperatorDetach_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorDetach -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorDetach) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorDetach -} - -// 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_MsgOperatorDetach) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorDetach_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorDetach) New() protoreflect.Message { - return new(fastReflection_MsgOperatorDetach) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorDetach) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorDetach)(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_MsgOperatorDetach) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgOperatorDetach_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_MsgOperatorDetach_operator, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgOperatorDetach_from, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_MsgOperatorDetach_token_id, 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_MsgOperatorDetach) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgOperatorDetach.operator": - return x.Operator != "" - case "lbm.collection.v1.MsgOperatorDetach.from": - return x.From != "" - case "lbm.collection.v1.MsgOperatorDetach.token_id": - return x.TokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach 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_MsgOperatorDetach) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgOperatorDetach.operator": - x.Operator = "" - case "lbm.collection.v1.MsgOperatorDetach.from": - x.From = "" - case "lbm.collection.v1.MsgOperatorDetach.token_id": - x.TokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach 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_MsgOperatorDetach) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorDetach.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorDetach.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorDetach.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach 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_MsgOperatorDetach) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorDetach.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorDetach.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorDetach.token_id": - x.TokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach 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_MsgOperatorDetach) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgOperatorDetach is not mutable")) - case "lbm.collection.v1.MsgOperatorDetach.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgOperatorDetach is not mutable")) - case "lbm.collection.v1.MsgOperatorDetach.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgOperatorDetach is not mutable")) - case "lbm.collection.v1.MsgOperatorDetach.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.MsgOperatorDetach is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach 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_MsgOperatorDetach) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorDetach.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorDetach.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorDetach.token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach 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_MsgOperatorDetach) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorDetach", 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_MsgOperatorDetach) 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_MsgOperatorDetach) 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_MsgOperatorDetach) 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_MsgOperatorDetach) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorDetach) - 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.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - 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().(*MsgOperatorDetach) - 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.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x22 - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - 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().(*MsgOperatorDetach) - 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: MsgOperatorDetach: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorDetach: 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 ContractId", 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.ContractId = 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 Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", 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.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgOperatorDetachResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorDetachResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorDetachResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorDetachResponse)(nil) - -type fastReflection_MsgOperatorDetachResponse MsgOperatorDetachResponse - -func (x *MsgOperatorDetachResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorDetachResponse)(x) -} - -func (x *MsgOperatorDetachResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[44] - 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_MsgOperatorDetachResponse_messageType fastReflection_MsgOperatorDetachResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorDetachResponse_messageType{} - -type fastReflection_MsgOperatorDetachResponse_messageType struct{} - -func (x fastReflection_MsgOperatorDetachResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorDetachResponse)(nil) -} -func (x fastReflection_MsgOperatorDetachResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorDetachResponse) -} -func (x fastReflection_MsgOperatorDetachResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorDetachResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorDetachResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorDetachResponse -} - -// 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_MsgOperatorDetachResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorDetachResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorDetachResponse) New() protoreflect.Message { - return new(fastReflection_MsgOperatorDetachResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorDetachResponse) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorDetachResponse)(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_MsgOperatorDetachResponse) 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_MsgOperatorDetachResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse 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_MsgOperatorDetachResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse 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_MsgOperatorDetachResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse 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_MsgOperatorDetachResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse 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_MsgOperatorDetachResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse 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_MsgOperatorDetachResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse 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_MsgOperatorDetachResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorDetachResponse", 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_MsgOperatorDetachResponse) 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_MsgOperatorDetachResponse) 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_MsgOperatorDetachResponse) 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_MsgOperatorDetachResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorDetachResponse) - 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().(*MsgOperatorDetachResponse) - 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().(*MsgOperatorDetachResponse) - 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: MsgOperatorDetachResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorDetachResponse: 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 -// protoc (unknown) -// source: lbm/collection/v1/tx.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// MsgSendFT is the Msg/SendFT request type. -type MsgSendFT struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address which the transfer is from. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // the address which the transfer is to. - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - // the amount of the transfer. - // Note: amount may be empty. - Amount []*Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *MsgSendFT) Reset() { - *x = MsgSendFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSendFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSendFT) ProtoMessage() {} - -// Deprecated: Use MsgSendFT.ProtoReflect.Descriptor instead. -func (*MsgSendFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{0} -} - -func (x *MsgSendFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgSendFT) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *MsgSendFT) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *MsgSendFT) GetAmount() []*Coin { - if x != nil { - return x.Amount - } - return nil -} - -// MsgSendFTResponse is the Msg/SendFT response type. -type MsgSendFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSendFTResponse) Reset() { - *x = MsgSendFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSendFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSendFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgSendFTResponse.ProtoReflect.Descriptor instead. -func (*MsgSendFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{1} -} - -// MsgOperatorSendFT is the Msg/OperatorSendFT request type. -type MsgOperatorSendFT struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // the address which the transfer is from. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // the address which the transfer is to. - To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` - // the amount of the transfer. - // Note: amount may be empty. - Amount []*Coin `protobuf:"bytes,5,rep,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *MsgOperatorSendFT) Reset() { - *x = MsgOperatorSendFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgOperatorSendFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgOperatorSendFT) ProtoMessage() {} - -// Deprecated: Use MsgOperatorSendFT.ProtoReflect.Descriptor instead. -func (*MsgOperatorSendFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{2} -} - -func (x *MsgOperatorSendFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgOperatorSendFT) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *MsgOperatorSendFT) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *MsgOperatorSendFT) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *MsgOperatorSendFT) GetAmount() []*Coin { - if x != nil { - return x.Amount - } - return nil -} - -// MsgOperatorSendFTResponse is the Msg/OperatorSendFT response type. -type MsgOperatorSendFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgOperatorSendFTResponse) Reset() { - *x = MsgOperatorSendFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgOperatorSendFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgOperatorSendFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgOperatorSendFTResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorSendFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{3} -} - -// MsgSendNFT is the Msg/SendNFT request type. -type MsgSendNFT struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address which the transfer is from. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // the address which the transfer is to. - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - // the token ids to transfer. - TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` -} - -func (x *MsgSendNFT) Reset() { - *x = MsgSendNFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSendNFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSendNFT) ProtoMessage() {} - -// Deprecated: Use MsgSendNFT.ProtoReflect.Descriptor instead. -func (*MsgSendNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{4} -} - -func (x *MsgSendNFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgSendNFT) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *MsgSendNFT) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *MsgSendNFT) GetTokenIds() []string { - if x != nil { - return x.TokenIds - } - return nil -} - -// MsgSendNFTResponse is the Msg/SendNFT response type. -type MsgSendNFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSendNFTResponse) Reset() { - *x = MsgSendNFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSendNFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSendNFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgSendNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgSendNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{5} -} - -// MsgOperatorSendNFT is the Msg/OperatorSendNFT request type. -type MsgOperatorSendNFT struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // the address which the transfer is from. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // the address which the transfer is to. - To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` - // the token ids to transfer. - TokenIds []string `protobuf:"bytes,5,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` -} - -func (x *MsgOperatorSendNFT) Reset() { - *x = MsgOperatorSendNFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgOperatorSendNFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgOperatorSendNFT) ProtoMessage() {} - -// Deprecated: Use MsgOperatorSendNFT.ProtoReflect.Descriptor instead. -func (*MsgOperatorSendNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{6} -} - -func (x *MsgOperatorSendNFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgOperatorSendNFT) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *MsgOperatorSendNFT) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *MsgOperatorSendNFT) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *MsgOperatorSendNFT) GetTokenIds() []string { - if x != nil { - return x.TokenIds - } - return nil -} - -// MsgOperatorSendNFTResponse is the Msg/OperatorSendNFT response type. -type MsgOperatorSendNFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgOperatorSendNFTResponse) Reset() { - *x = MsgOperatorSendNFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgOperatorSendNFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgOperatorSendNFTResponse) ProtoMessage() {} +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: lbm/collection/v1/tx.proto -// Deprecated: Use MsgOperatorSendNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorSendNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{7} -} +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// MsgAuthorizeOperator is the Msg/AuthorizeOperator request type. -type MsgAuthorizeOperator struct { +// MsgSendFT is the Msg/SendFT request type. +type MsgSendFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the holder who allows the manipulation of its token. - Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` - // address which the manipulation is allowed to. - Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` + // the address which the transfer is from. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // the address which the transfer is to. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // the amount of the transfer. + // Note: amount may be empty. + Amount []*Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"` } -func (x *MsgAuthorizeOperator) Reset() { - *x = MsgAuthorizeOperator{} +func (x *MsgSendFT) Reset() { + *x = MsgSendFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[8] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgAuthorizeOperator) String() string { +func (x *MsgSendFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgAuthorizeOperator) ProtoMessage() {} +func (*MsgSendFT) ProtoMessage() {} -// Deprecated: Use MsgAuthorizeOperator.ProtoReflect.Descriptor instead. -func (*MsgAuthorizeOperator) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{8} +// Deprecated: Use MsgSendFT.ProtoReflect.Descriptor instead. +func (*MsgSendFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{0} } -func (x *MsgAuthorizeOperator) GetContractId() string { +func (x *MsgSendFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgAuthorizeOperator) GetHolder() string { +func (x *MsgSendFT) GetFrom() string { if x != nil { - return x.Holder + return x.From } return "" } -func (x *MsgAuthorizeOperator) GetOperator() string { +func (x *MsgSendFT) GetTo() string { if x != nil { - return x.Operator + return x.To } return "" } -// MsgAuthorizeOperatorResponse is the Msg/AuthorizeOperator response type. -type MsgAuthorizeOperatorResponse struct { +func (x *MsgSendFT) GetAmount() []*Coin { + if x != nil { + return x.Amount + } + return nil +} + +// MsgSendFTResponse is the Msg/SendFT response type. +type MsgSendFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgAuthorizeOperatorResponse) Reset() { - *x = MsgAuthorizeOperatorResponse{} +func (x *MsgSendFTResponse) Reset() { + *x = MsgSendFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[9] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgAuthorizeOperatorResponse) String() string { +func (x *MsgSendFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgAuthorizeOperatorResponse) ProtoMessage() {} +func (*MsgSendFTResponse) ProtoMessage() {} -// Deprecated: Use MsgAuthorizeOperatorResponse.ProtoReflect.Descriptor instead. -func (*MsgAuthorizeOperatorResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{9} +// Deprecated: Use MsgSendFTResponse.ProtoReflect.Descriptor instead. +func (*MsgSendFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{1} } -// MsgRevokeOperator is the Msg/RevokeOperator request type. -type MsgRevokeOperator struct { +// MsgOperatorSendFT is the Msg/OperatorSendFT request type. +type MsgOperatorSendFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the holder who allows the manipulation of its token. - Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` - // address which the manipulation is allowed to. - Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` + // the address of the operator. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // the address which the transfer is from. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // the address which the transfer is to. + To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + // the amount of the transfer. + // Note: amount may be empty. + Amount []*Coin `protobuf:"bytes,5,rep,name=amount,proto3" json:"amount,omitempty"` } -func (x *MsgRevokeOperator) Reset() { - *x = MsgRevokeOperator{} +func (x *MsgOperatorSendFT) Reset() { + *x = MsgOperatorSendFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[10] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgRevokeOperator) String() string { +func (x *MsgOperatorSendFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgRevokeOperator) ProtoMessage() {} +func (*MsgOperatorSendFT) ProtoMessage() {} -// Deprecated: Use MsgRevokeOperator.ProtoReflect.Descriptor instead. -func (*MsgRevokeOperator) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{10} +// Deprecated: Use MsgOperatorSendFT.ProtoReflect.Descriptor instead. +func (*MsgOperatorSendFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{2} } -func (x *MsgRevokeOperator) GetContractId() string { +func (x *MsgOperatorSendFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgRevokeOperator) GetHolder() string { +func (x *MsgOperatorSendFT) GetOperator() string { if x != nil { - return x.Holder + return x.Operator } return "" } -func (x *MsgRevokeOperator) GetOperator() string { +func (x *MsgOperatorSendFT) GetFrom() string { if x != nil { - return x.Operator + return x.From } return "" } -// MsgRevokeOperatorResponse is the Msg/RevokeOperator response type. -type MsgRevokeOperatorResponse struct { +func (x *MsgOperatorSendFT) GetTo() string { + if x != nil { + return x.To + } + return "" +} + +func (x *MsgOperatorSendFT) GetAmount() []*Coin { + if x != nil { + return x.Amount + } + return nil +} + +// MsgOperatorSendFTResponse is the Msg/OperatorSendFT response type. +type MsgOperatorSendFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgRevokeOperatorResponse) Reset() { - *x = MsgRevokeOperatorResponse{} +func (x *MsgOperatorSendFTResponse) Reset() { + *x = MsgOperatorSendFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[11] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgRevokeOperatorResponse) String() string { +func (x *MsgOperatorSendFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgRevokeOperatorResponse) ProtoMessage() {} +func (*MsgOperatorSendFTResponse) ProtoMessage() {} -// Deprecated: Use MsgRevokeOperatorResponse.ProtoReflect.Descriptor instead. -func (*MsgRevokeOperatorResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{11} +// Deprecated: Use MsgOperatorSendFTResponse.ProtoReflect.Descriptor instead. +func (*MsgOperatorSendFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{3} } -// MsgCreateContract is the Msg/CreateContract request type. -type MsgCreateContract struct { +// MsgSendNFT is the Msg/SendNFT request type. +type MsgSendNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // address which all the permissions on the contract will be granted to (not a permanent property). - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - // name defines the human-readable name of the contract. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // uri for the contract image stored off chain. - Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` - // meta is a brief description of the contract. - Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address which the transfer is from. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // the address which the transfer is to. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // the token ids to transfer. + TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` } -func (x *MsgCreateContract) Reset() { - *x = MsgCreateContract{} +func (x *MsgSendNFT) Reset() { + *x = MsgSendNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[12] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCreateContract) String() string { +func (x *MsgSendNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateContract) ProtoMessage() {} +func (*MsgSendNFT) ProtoMessage() {} -// Deprecated: Use MsgCreateContract.ProtoReflect.Descriptor instead. -func (*MsgCreateContract) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{12} +// Deprecated: Use MsgSendNFT.ProtoReflect.Descriptor instead. +func (*MsgSendNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{4} } -func (x *MsgCreateContract) GetOwner() string { +func (x *MsgSendNFT) GetContractId() string { if x != nil { - return x.Owner + return x.ContractId } return "" } -func (x *MsgCreateContract) GetName() string { +func (x *MsgSendNFT) GetFrom() string { if x != nil { - return x.Name + return x.From } return "" } -func (x *MsgCreateContract) GetUri() string { +func (x *MsgSendNFT) GetTo() string { if x != nil { - return x.Uri + return x.To } return "" } -func (x *MsgCreateContract) GetMeta() string { +func (x *MsgSendNFT) GetTokenIds() []string { if x != nil { - return x.Meta + return x.TokenIds } - return "" + return nil } -// MsgCreateContractResponse is the Msg/CreateContract response type. -type MsgCreateContractResponse struct { +// MsgSendNFTResponse is the Msg/SendNFT response type. +type MsgSendNFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // id of the new contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` } -func (x *MsgCreateContractResponse) Reset() { - *x = MsgCreateContractResponse{} +func (x *MsgSendNFTResponse) Reset() { + *x = MsgSendNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[13] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCreateContractResponse) String() string { +func (x *MsgSendNFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateContractResponse) ProtoMessage() {} - -// Deprecated: Use MsgCreateContractResponse.ProtoReflect.Descriptor instead. -func (*MsgCreateContractResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{13} -} +func (*MsgSendNFTResponse) ProtoMessage() {} -func (x *MsgCreateContractResponse) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" +// Deprecated: Use MsgSendNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgSendNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{5} } -// MsgIssueFT is the Msg/IssueFT request type. -type MsgIssueFT struct { +// MsgOperatorSendNFT is the Msg/OperatorSendNFT request type. +type MsgOperatorSendNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // name defines the human-readable name of the token type. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // meta is a brief description of the token type. - Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` - // decimals is the number of decimals which one must divide the amount by to get its user representation. - Decimals int32 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"` - // mintable represents whether the token is allowed to be minted or burnt. - Mintable bool `protobuf:"varint,5,opt,name=mintable,proto3" json:"mintable,omitempty"` - // the address of the grantee which must have the permission to issue a token. - Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` - // the address to send the minted tokens to. mandatory. - To string `protobuf:"bytes,7,opt,name=to,proto3" json:"to,omitempty"` - // the amount of tokens to mint on the issuance. - // Note: if you provide negative amount, a panic may result. - // Note: amount may be zero. - Amount string `protobuf:"bytes,8,opt,name=amount,proto3" json:"amount,omitempty"` + // the address of the operator. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // the address which the transfer is from. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // the address which the transfer is to. + To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + // the token ids to transfer. + TokenIds []string `protobuf:"bytes,5,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` } -func (x *MsgIssueFT) Reset() { - *x = MsgIssueFT{} +func (x *MsgOperatorSendNFT) Reset() { + *x = MsgOperatorSendNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[14] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgIssueFT) String() string { +func (x *MsgOperatorSendNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgIssueFT) ProtoMessage() {} +func (*MsgOperatorSendNFT) ProtoMessage() {} -// Deprecated: Use MsgIssueFT.ProtoReflect.Descriptor instead. -func (*MsgIssueFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{14} +// Deprecated: Use MsgOperatorSendNFT.ProtoReflect.Descriptor instead. +func (*MsgOperatorSendNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{6} } -func (x *MsgIssueFT) GetContractId() string { +func (x *MsgOperatorSendNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgIssueFT) GetName() string { +func (x *MsgOperatorSendNFT) GetOperator() string { if x != nil { - return x.Name + return x.Operator } return "" } -func (x *MsgIssueFT) GetMeta() string { +func (x *MsgOperatorSendNFT) GetFrom() string { if x != nil { - return x.Meta + return x.From } return "" } -func (x *MsgIssueFT) GetDecimals() int32 { +func (x *MsgOperatorSendNFT) GetTo() string { if x != nil { - return x.Decimals + return x.To } - return 0 + return "" } -func (x *MsgIssueFT) GetMintable() bool { +func (x *MsgOperatorSendNFT) GetTokenIds() []string { if x != nil { - return x.Mintable + return x.TokenIds } - return false + return nil } -func (x *MsgIssueFT) GetOwner() string { +// MsgOperatorSendNFTResponse is the Msg/OperatorSendNFT response type. +type MsgOperatorSendNFTResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgOperatorSendNFTResponse) Reset() { + *x = MsgOperatorSendNFTResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_lbm_collection_v1_tx_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgOperatorSendNFTResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgOperatorSendNFTResponse) ProtoMessage() {} + +// Deprecated: Use MsgOperatorSendNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgOperatorSendNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{7} +} + +// MsgAuthorizeOperator is the Msg/AuthorizeOperator request type. +type MsgAuthorizeOperator struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the holder who allows the manipulation of its token. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which the manipulation is allowed to. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (x *MsgAuthorizeOperator) Reset() { + *x = MsgAuthorizeOperator{} + if protoimpl.UnsafeEnabled { + mi := &file_lbm_collection_v1_tx_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAuthorizeOperator) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAuthorizeOperator) ProtoMessage() {} + +// Deprecated: Use MsgAuthorizeOperator.ProtoReflect.Descriptor instead. +func (*MsgAuthorizeOperator) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{8} +} + +func (x *MsgAuthorizeOperator) GetContractId() string { if x != nil { - return x.Owner + return x.ContractId } return "" } -func (x *MsgIssueFT) GetTo() string { +func (x *MsgAuthorizeOperator) GetHolder() string { if x != nil { - return x.To + return x.Holder } return "" } -func (x *MsgIssueFT) GetAmount() string { +func (x *MsgAuthorizeOperator) GetOperator() string { if x != nil { - return x.Amount + return x.Operator } return "" } -// MsgIssueFTResponse is the Msg/IssueFT response type. -type MsgIssueFTResponse struct { +// MsgAuthorizeOperatorResponse is the Msg/AuthorizeOperator response type. +type MsgAuthorizeOperatorResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // id of the token. - TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` } -func (x *MsgIssueFTResponse) Reset() { - *x = MsgIssueFTResponse{} +func (x *MsgAuthorizeOperatorResponse) Reset() { + *x = MsgAuthorizeOperatorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[15] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgIssueFTResponse) String() string { +func (x *MsgAuthorizeOperatorResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgIssueFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgIssueFTResponse.ProtoReflect.Descriptor instead. -func (*MsgIssueFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{15} -} +func (*MsgAuthorizeOperatorResponse) ProtoMessage() {} -func (x *MsgIssueFTResponse) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" +// Deprecated: Use MsgAuthorizeOperatorResponse.ProtoReflect.Descriptor instead. +func (*MsgAuthorizeOperatorResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{9} } -// MsgIssueNFT is the Msg/IssueNFT request type. -type MsgIssueNFT struct { +// MsgRevokeOperator is the Msg/RevokeOperator request type. +type MsgRevokeOperator struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // name defines the human-readable name of the token type. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // meta is a brief description of the token type. - Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` - // the address of the grantee which must have the permission to issue a token. - Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` + // address of the holder who allows the manipulation of its token. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which the manipulation is allowed to. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` } -func (x *MsgIssueNFT) Reset() { - *x = MsgIssueNFT{} +func (x *MsgRevokeOperator) Reset() { + *x = MsgRevokeOperator{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[16] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgIssueNFT) String() string { +func (x *MsgRevokeOperator) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgIssueNFT) ProtoMessage() {} +func (*MsgRevokeOperator) ProtoMessage() {} -// Deprecated: Use MsgIssueNFT.ProtoReflect.Descriptor instead. -func (*MsgIssueNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{16} +// Deprecated: Use MsgRevokeOperator.ProtoReflect.Descriptor instead. +func (*MsgRevokeOperator) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{10} } -func (x *MsgIssueNFT) GetContractId() string { +func (x *MsgRevokeOperator) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgIssueNFT) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *MsgIssueNFT) GetMeta() string { +func (x *MsgRevokeOperator) GetHolder() string { if x != nil { - return x.Meta + return x.Holder } return "" } -func (x *MsgIssueNFT) GetOwner() string { +func (x *MsgRevokeOperator) GetOperator() string { if x != nil { - return x.Owner + return x.Operator } return "" } -// MsgIssueNFTResponse is the Msg/IssueNFT response type. -type MsgIssueNFTResponse struct { +// MsgRevokeOperatorResponse is the Msg/RevokeOperator response type. +type MsgRevokeOperatorResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // id of the new token type. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *MsgIssueNFTResponse) Reset() { - *x = MsgIssueNFTResponse{} +func (x *MsgRevokeOperatorResponse) Reset() { + *x = MsgRevokeOperatorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[17] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgIssueNFTResponse) String() string { +func (x *MsgRevokeOperatorResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgIssueNFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgIssueNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgIssueNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{17} -} +func (*MsgRevokeOperatorResponse) ProtoMessage() {} -func (x *MsgIssueNFTResponse) GetTokenType() string { - if x != nil { - return x.TokenType - } - return "" +// Deprecated: Use MsgRevokeOperatorResponse.ProtoReflect.Descriptor instead. +func (*MsgRevokeOperatorResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{11} } -// MsgMintFT is the Msg/MintFT request type. -type MsgMintFT struct { +// MsgCreateContract is the Msg/CreateContract request type. +type MsgCreateContract struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the grantee which has the permission for the mint. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // address which the minted tokens will be sent to. - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - // the amount of the mint. - // Note: amount may be empty. - Amount []*Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"` + // address which all the permissions on the contract will be granted to (not a permanent property). + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + // name defines the human-readable name of the contract. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // uri for the contract image stored off chain. + Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` + // meta is a brief description of the contract. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` } -func (x *MsgMintFT) Reset() { - *x = MsgMintFT{} +func (x *MsgCreateContract) Reset() { + *x = MsgCreateContract{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[18] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgMintFT) String() string { +func (x *MsgCreateContract) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgMintFT) ProtoMessage() {} +func (*MsgCreateContract) ProtoMessage() {} -// Deprecated: Use MsgMintFT.ProtoReflect.Descriptor instead. -func (*MsgMintFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{18} +// Deprecated: Use MsgCreateContract.ProtoReflect.Descriptor instead. +func (*MsgCreateContract) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{12} } -func (x *MsgMintFT) GetContractId() string { +func (x *MsgCreateContract) GetOwner() string { if x != nil { - return x.ContractId + return x.Owner } return "" } -func (x *MsgMintFT) GetFrom() string { +func (x *MsgCreateContract) GetName() string { if x != nil { - return x.From + return x.Name } return "" } -func (x *MsgMintFT) GetTo() string { +func (x *MsgCreateContract) GetUri() string { if x != nil { - return x.To + return x.Uri } return "" } -func (x *MsgMintFT) GetAmount() []*Coin { +func (x *MsgCreateContract) GetMeta() string { if x != nil { - return x.Amount + return x.Meta } - return nil + return "" } -// MsgMintFTResponse is the Msg/MintFT response type. -type MsgMintFTResponse struct { +// MsgCreateContractResponse is the Msg/CreateContract response type. +type MsgCreateContractResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // id of the new contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` } -func (x *MsgMintFTResponse) Reset() { - *x = MsgMintFTResponse{} +func (x *MsgCreateContractResponse) Reset() { + *x = MsgCreateContractResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[19] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgMintFTResponse) String() string { +func (x *MsgCreateContractResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgMintFTResponse) ProtoMessage() {} +func (*MsgCreateContractResponse) ProtoMessage() {} -// Deprecated: Use MsgMintFTResponse.ProtoReflect.Descriptor instead. -func (*MsgMintFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{19} +// Deprecated: Use MsgCreateContractResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateContractResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{13} } -// MsgMintNFT is the Msg/MintNFT request type. -type MsgMintNFT struct { +func (x *MsgCreateContractResponse) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +// MsgIssueFT is the Msg/IssueFT request type. +type MsgIssueFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the grantee which has the permission for the mint. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // address which the minted token will be sent to. - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - // parameters for the minted tokens. - Params []*MintNFTParam `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"` + // name defines the human-readable name of the token type. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token type. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + // decimals is the number of decimals which one must divide the amount by to get its user representation. + Decimals int32 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"` + // mintable represents whether the token is allowed to be minted or burnt. + Mintable bool `protobuf:"varint,5,opt,name=mintable,proto3" json:"mintable,omitempty"` + // the address of the grantee which must have the permission to issue a token. + Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` + // the address to send the minted tokens to. mandatory. + To string `protobuf:"bytes,7,opt,name=to,proto3" json:"to,omitempty"` + // the amount of tokens to mint on the issuance. + // Note: if you provide negative amount, a panic may result. + // Note: amount may be zero. + Amount string `protobuf:"bytes,8,opt,name=amount,proto3" json:"amount,omitempty"` } -func (x *MsgMintNFT) Reset() { - *x = MsgMintNFT{} +func (x *MsgIssueFT) Reset() { + *x = MsgIssueFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[20] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgMintNFT) String() string { +func (x *MsgIssueFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgMintNFT) ProtoMessage() {} +func (*MsgIssueFT) ProtoMessage() {} -// Deprecated: Use MsgMintNFT.ProtoReflect.Descriptor instead. -func (*MsgMintNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{20} +// Deprecated: Use MsgIssueFT.ProtoReflect.Descriptor instead. +func (*MsgIssueFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{14} } -func (x *MsgMintNFT) GetContractId() string { +func (x *MsgIssueFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgMintNFT) GetFrom() string { +func (x *MsgIssueFT) GetName() string { if x != nil { - return x.From + return x.Name } return "" } -func (x *MsgMintNFT) GetTo() string { +func (x *MsgIssueFT) GetMeta() string { if x != nil { - return x.To + return x.Meta } return "" } -func (x *MsgMintNFT) GetParams() []*MintNFTParam { +func (x *MsgIssueFT) GetDecimals() int32 { if x != nil { - return x.Params + return x.Decimals } - return nil -} - -// MsgMintNFTResponse is the Msg/MintNFT response type. -type MsgMintNFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // ids of the new non-fungible tokens. - TokenIds []string `protobuf:"bytes,1,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` + return 0 } -func (x *MsgMintNFTResponse) Reset() { - *x = MsgMintNFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *MsgIssueFT) GetMintable() bool { + if x != nil { + return x.Mintable } + return false } -func (x *MsgMintNFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *MsgIssueFT) GetOwner() string { + if x != nil { + return x.Owner + } + return "" } -func (*MsgMintNFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgMintNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgMintNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{21} +func (x *MsgIssueFT) GetTo() string { + if x != nil { + return x.To + } + return "" } -func (x *MsgMintNFTResponse) GetTokenIds() []string { +func (x *MsgIssueFT) GetAmount() string { if x != nil { - return x.TokenIds + return x.Amount } - return nil + return "" } -// MintNFTParam defines a parameter for minting nft. -type MintNFTParam struct { +// MsgIssueFTResponse is the Msg/IssueFT response type. +type MsgIssueFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // token type or class id of the nft. - // Note: it cannot start with zero. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` - // name defines the human-readable name of the nft (mandatory). - // Note: it has an app-specific limit in length. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // meta is a brief description of the nft. - // Note: it has an app-specific limit in length. - Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + // id of the token. + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` } -func (x *MintNFTParam) Reset() { - *x = MintNFTParam{} +func (x *MsgIssueFTResponse) Reset() { + *x = MsgIssueFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[22] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MintNFTParam) String() string { +func (x *MsgIssueFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MintNFTParam) ProtoMessage() {} - -// Deprecated: Use MintNFTParam.ProtoReflect.Descriptor instead. -func (*MintNFTParam) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{22} -} - -func (x *MintNFTParam) GetTokenType() string { - if x != nil { - return x.TokenType - } - return "" -} +func (*MsgIssueFTResponse) ProtoMessage() {} -func (x *MintNFTParam) GetName() string { - if x != nil { - return x.Name - } - return "" +// Deprecated: Use MsgIssueFTResponse.ProtoReflect.Descriptor instead. +func (*MsgIssueFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{15} } -func (x *MintNFTParam) GetMeta() string { +func (x *MsgIssueFTResponse) GetTokenId() string { if x != nil { - return x.Meta + return x.TokenId } return "" } -// MsgBurnFT is the Msg/BurnFT request type. -type MsgBurnFT struct { +// MsgIssueNFT is the Msg/IssueNFT request type. +type MsgIssueNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address which the tokens will be burnt from. - // Note: it must have the permission for the burn. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // the amount of the burn. - // Note: amount may be empty. - Amount []*Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` + // name defines the human-readable name of the token type. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token type. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + // the address of the grantee which must have the permission to issue a token. + Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` } -func (x *MsgBurnFT) Reset() { - *x = MsgBurnFT{} +func (x *MsgIssueNFT) Reset() { + *x = MsgIssueNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[23] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgBurnFT) String() string { +func (x *MsgIssueNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgBurnFT) ProtoMessage() {} +func (*MsgIssueNFT) ProtoMessage() {} -// Deprecated: Use MsgBurnFT.ProtoReflect.Descriptor instead. -func (*MsgBurnFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{23} +// Deprecated: Use MsgIssueNFT.ProtoReflect.Descriptor instead. +func (*MsgIssueNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{16} } -func (x *MsgBurnFT) GetContractId() string { +func (x *MsgIssueNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgBurnFT) GetFrom() string { +func (x *MsgIssueNFT) GetName() string { if x != nil { - return x.From + return x.Name } return "" } -func (x *MsgBurnFT) GetAmount() []*Coin { +func (x *MsgIssueNFT) GetMeta() string { if x != nil { - return x.Amount + return x.Meta } - return nil + return "" } -// MsgBurnFTResponse is the Msg/BurnFT response type. -type MsgBurnFTResponse struct { +func (x *MsgIssueNFT) GetOwner() string { + if x != nil { + return x.Owner + } + return "" +} + +// MsgIssueNFTResponse is the Msg/IssueNFT response type. +type MsgIssueNFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // id of the new token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *MsgBurnFTResponse) Reset() { - *x = MsgBurnFTResponse{} +func (x *MsgIssueNFTResponse) Reset() { + *x = MsgIssueNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[24] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgBurnFTResponse) String() string { +func (x *MsgIssueNFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgBurnFTResponse) ProtoMessage() {} +func (*MsgIssueNFTResponse) ProtoMessage() {} -// Deprecated: Use MsgBurnFTResponse.ProtoReflect.Descriptor instead. -func (*MsgBurnFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{24} +// Deprecated: Use MsgIssueNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgIssueNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{17} } -// MsgOperatorBurnFT is the Msg/OperatorBurnFT request type. -type MsgOperatorBurnFT struct { +func (x *MsgIssueNFTResponse) GetTokenType() string { + if x != nil { + return x.TokenType + } + return "" +} + +// MsgMintFT is the Msg/MintFT request type. +type MsgMintFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address which triggers the burn. - // Note: it must have the permission for the burn. - // Note: it must have been authorized by from. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address which the tokens will be burnt from. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // the amount of the burn. + // address of the grantee which has the permission for the mint. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // address which the minted tokens will be sent to. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // the amount of the mint. // Note: amount may be empty. Amount []*Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"` } -func (x *MsgOperatorBurnFT) Reset() { - *x = MsgOperatorBurnFT{} +func (x *MsgMintFT) Reset() { + *x = MsgMintFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[25] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorBurnFT) String() string { +func (x *MsgMintFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorBurnFT) ProtoMessage() {} +func (*MsgMintFT) ProtoMessage() {} -// Deprecated: Use MsgOperatorBurnFT.ProtoReflect.Descriptor instead. -func (*MsgOperatorBurnFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{25} +// Deprecated: Use MsgMintFT.ProtoReflect.Descriptor instead. +func (*MsgMintFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{18} } -func (x *MsgOperatorBurnFT) GetContractId() string { +func (x *MsgMintFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgOperatorBurnFT) GetOperator() string { +func (x *MsgMintFT) GetFrom() string { if x != nil { - return x.Operator + return x.From } return "" } -func (x *MsgOperatorBurnFT) GetFrom() string { +func (x *MsgMintFT) GetTo() string { if x != nil { - return x.From + return x.To } return "" } -func (x *MsgOperatorBurnFT) GetAmount() []*Coin { +func (x *MsgMintFT) GetAmount() []*Coin { if x != nil { return x.Amount } return nil } -// MsgOperatorBurnFTResponse is the Msg/OperatorBurnFT response type. -type MsgOperatorBurnFTResponse struct { +// MsgMintFTResponse is the Msg/MintFT response type. +type MsgMintFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgOperatorBurnFTResponse) Reset() { - *x = MsgOperatorBurnFTResponse{} +func (x *MsgMintFTResponse) Reset() { + *x = MsgMintFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[26] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorBurnFTResponse) String() string { +func (x *MsgMintFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorBurnFTResponse) ProtoMessage() {} +func (*MsgMintFTResponse) ProtoMessage() {} -// Deprecated: Use MsgOperatorBurnFTResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorBurnFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{26} +// Deprecated: Use MsgMintFTResponse.ProtoReflect.Descriptor instead. +func (*MsgMintFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{19} } -// MsgBurnNFT is the Msg/BurnNFT request type. -type MsgBurnNFT struct { +// MsgMintNFT is the Msg/MintNFT request type. +type MsgMintNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address which the tokens will be burnt from. - // Note: it must have the permission for the burn. + // address of the grantee which has the permission for the mint. From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // the token ids to burn. - // Note: id cannot start with zero. - TokenIds []string `protobuf:"bytes,3,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` + // address which the minted token will be sent to. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // parameters for the minted tokens. + Params []*MintNFTParam `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"` } -func (x *MsgBurnNFT) Reset() { - *x = MsgBurnNFT{} +func (x *MsgMintNFT) Reset() { + *x = MsgMintNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[27] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgBurnNFT) String() string { +func (x *MsgMintNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgBurnNFT) ProtoMessage() {} +func (*MsgMintNFT) ProtoMessage() {} -// Deprecated: Use MsgBurnNFT.ProtoReflect.Descriptor instead. -func (*MsgBurnNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{27} +// Deprecated: Use MsgMintNFT.ProtoReflect.Descriptor instead. +func (*MsgMintNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{20} } -func (x *MsgBurnNFT) GetContractId() string { +func (x *MsgMintNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgBurnNFT) GetFrom() string { +func (x *MsgMintNFT) GetFrom() string { if x != nil { return x.From } return "" } -func (x *MsgBurnNFT) GetTokenIds() []string { +func (x *MsgMintNFT) GetTo() string { if x != nil { - return x.TokenIds + return x.To + } + return "" +} + +func (x *MsgMintNFT) GetParams() []*MintNFTParam { + if x != nil { + return x.Params } return nil } -// MsgBurnNFTResponse is the Msg/BurnNFT response type. -type MsgBurnNFTResponse struct { +// MsgMintNFTResponse is the Msg/MintNFT response type. +type MsgMintNFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // ids of the new non-fungible tokens. + TokenIds []string `protobuf:"bytes,1,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` } -func (x *MsgBurnNFTResponse) Reset() { - *x = MsgBurnNFTResponse{} +func (x *MsgMintNFTResponse) Reset() { + *x = MsgMintNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[28] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgBurnNFTResponse) String() string { +func (x *MsgMintNFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgBurnNFTResponse) ProtoMessage() {} +func (*MsgMintNFTResponse) ProtoMessage() {} -// Deprecated: Use MsgBurnNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgBurnNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{28} +// Deprecated: Use MsgMintNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgMintNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{21} } -// MsgOperatorBurnNFT is the Msg/OperatorBurnNFT request type. -type MsgOperatorBurnNFT struct { +func (x *MsgMintNFTResponse) GetTokenIds() []string { + if x != nil { + return x.TokenIds + } + return nil +} + +// MintNFTParam defines a parameter for minting nft. +type MintNFTParam struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address which triggers the burn. - // Note: it must have the permission for the burn. - // Note: it must have been authorized by from. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address which the tokens will be burnt from. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // the token ids to burn. - // Note: id cannot start with zero. - TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` + // token type or class id of the nft. + // Note: it cannot start with zero. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // name defines the human-readable name of the nft (mandatory). + // Note: it has an app-specific limit in length. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the nft. + // Note: it has an app-specific limit in length. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` } -func (x *MsgOperatorBurnNFT) Reset() { - *x = MsgOperatorBurnNFT{} +func (x *MintNFTParam) Reset() { + *x = MintNFTParam{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[29] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorBurnNFT) String() string { +func (x *MintNFTParam) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorBurnNFT) ProtoMessage() {} +func (*MintNFTParam) ProtoMessage() {} -// Deprecated: Use MsgOperatorBurnNFT.ProtoReflect.Descriptor instead. -func (*MsgOperatorBurnNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{29} +// Deprecated: Use MintNFTParam.ProtoReflect.Descriptor instead. +func (*MintNFTParam) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{22} } -func (x *MsgOperatorBurnNFT) GetContractId() string { +func (x *MintNFTParam) GetTokenType() string { if x != nil { - return x.ContractId + return x.TokenType } return "" } -func (x *MsgOperatorBurnNFT) GetOperator() string { +func (x *MintNFTParam) GetName() string { if x != nil { - return x.Operator + return x.Name } return "" } -func (x *MsgOperatorBurnNFT) GetFrom() string { +func (x *MintNFTParam) GetMeta() string { if x != nil { - return x.From + return x.Meta } return "" } -func (x *MsgOperatorBurnNFT) GetTokenIds() []string { - if x != nil { - return x.TokenIds - } - return nil -} - -// MsgOperatorBurnNFTResponse is the Msg/OperatorBurnNFT response type. -type MsgOperatorBurnNFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgOperatorBurnNFTResponse) Reset() { - *x = MsgOperatorBurnNFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgOperatorBurnNFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgOperatorBurnNFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgOperatorBurnNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorBurnNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{30} -} - -// MsgModify is the Msg/Modify request type. -type MsgModify struct { +// MsgBurnFT is the Msg/BurnFT request type. +type MsgBurnFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address of the grantee which must have modify permission. - Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` - // token type of the token. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` - // token index of the token. - // if index is empty, it would modify the corresponding token type. - // if index is not empty, it would modify the corresponding nft. - // Note: if token type is of FTs, the index cannot be empty. - TokenIndex string `protobuf:"bytes,4,opt,name=token_index,json=tokenIndex,proto3" json:"token_index,omitempty"` - // changes to apply. - // possible attribute keys on modifying collection: name, uri, base_img_uri (deprecated), meta. - // possible attribute keys on modifying token type and token: name, meta. - Changes []*Attribute `protobuf:"bytes,5,rep,name=changes,proto3" json:"changes,omitempty"` + // address which the tokens will be burnt from. + // Note: it must have the permission for the burn. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // the amount of the burn. + // Note: amount may be empty. + Amount []*Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` } -func (x *MsgModify) Reset() { - *x = MsgModify{} +func (x *MsgBurnFT) Reset() { + *x = MsgBurnFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[31] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgModify) String() string { +func (x *MsgBurnFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgModify) ProtoMessage() {} +func (*MsgBurnFT) ProtoMessage() {} -// Deprecated: Use MsgModify.ProtoReflect.Descriptor instead. -func (*MsgModify) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{31} +// Deprecated: Use MsgBurnFT.ProtoReflect.Descriptor instead. +func (*MsgBurnFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{23} } -func (x *MsgModify) GetContractId() string { +func (x *MsgBurnFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgModify) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *MsgModify) GetTokenType() string { - if x != nil { - return x.TokenType - } - return "" -} - -func (x *MsgModify) GetTokenIndex() string { +func (x *MsgBurnFT) GetFrom() string { if x != nil { - return x.TokenIndex + return x.From } return "" } -func (x *MsgModify) GetChanges() []*Attribute { +func (x *MsgBurnFT) GetAmount() []*Coin { if x != nil { - return x.Changes + return x.Amount } return nil } -// MsgModifyResponse is the Msg/Modify response type. -type MsgModifyResponse struct { +// MsgBurnFTResponse is the Msg/BurnFT response type. +type MsgBurnFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgModifyResponse) Reset() { - *x = MsgModifyResponse{} +func (x *MsgBurnFTResponse) Reset() { + *x = MsgBurnFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[32] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgModifyResponse) String() string { +func (x *MsgBurnFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgModifyResponse) ProtoMessage() {} +func (*MsgBurnFTResponse) ProtoMessage() {} -// Deprecated: Use MsgModifyResponse.ProtoReflect.Descriptor instead. -func (*MsgModifyResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{32} +// Deprecated: Use MsgBurnFTResponse.ProtoReflect.Descriptor instead. +func (*MsgBurnFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{24} } -// MsgGrantPermission is the Msg/GrantPermission request type. -type MsgGrantPermission struct { +// MsgOperatorBurnFT is the Msg/OperatorBurnFT request type. +type MsgOperatorBurnFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the granter which must have the permission to give. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // address of the grantee. - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - // permission on the contract. - Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"` + // address which triggers the burn. + // Note: it must have the permission for the burn. + // Note: it must have been authorized by from. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // address which the tokens will be burnt from. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // the amount of the burn. + // Note: amount may be empty. + Amount []*Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"` } -func (x *MsgGrantPermission) Reset() { - *x = MsgGrantPermission{} +func (x *MsgOperatorBurnFT) Reset() { + *x = MsgOperatorBurnFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[33] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgGrantPermission) String() string { +func (x *MsgOperatorBurnFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgGrantPermission) ProtoMessage() {} +func (*MsgOperatorBurnFT) ProtoMessage() {} -// Deprecated: Use MsgGrantPermission.ProtoReflect.Descriptor instead. -func (*MsgGrantPermission) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{33} +// Deprecated: Use MsgOperatorBurnFT.ProtoReflect.Descriptor instead. +func (*MsgOperatorBurnFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{25} } -func (x *MsgGrantPermission) GetContractId() string { +func (x *MsgOperatorBurnFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgGrantPermission) GetFrom() string { +func (x *MsgOperatorBurnFT) GetOperator() string { if x != nil { - return x.From + return x.Operator } return "" } -func (x *MsgGrantPermission) GetTo() string { +func (x *MsgOperatorBurnFT) GetFrom() string { if x != nil { - return x.To + return x.From } return "" } -func (x *MsgGrantPermission) GetPermission() string { +func (x *MsgOperatorBurnFT) GetAmount() []*Coin { if x != nil { - return x.Permission + return x.Amount } - return "" + return nil } -// MsgGrantPermissionResponse is the Msg/GrantPermission response type. -type MsgGrantPermissionResponse struct { +// MsgOperatorBurnFTResponse is the Msg/OperatorBurnFT response type. +type MsgOperatorBurnFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgGrantPermissionResponse) Reset() { - *x = MsgGrantPermissionResponse{} +func (x *MsgOperatorBurnFTResponse) Reset() { + *x = MsgOperatorBurnFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[34] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgGrantPermissionResponse) String() string { +func (x *MsgOperatorBurnFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgGrantPermissionResponse) ProtoMessage() {} +func (*MsgOperatorBurnFTResponse) ProtoMessage() {} -// Deprecated: Use MsgGrantPermissionResponse.ProtoReflect.Descriptor instead. -func (*MsgGrantPermissionResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{34} +// Deprecated: Use MsgOperatorBurnFTResponse.ProtoReflect.Descriptor instead. +func (*MsgOperatorBurnFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{26} } -// MsgRevokePermission is the Msg/RevokePermission request type. -type MsgRevokePermission struct { +// MsgBurnNFT is the Msg/BurnNFT request type. +type MsgBurnNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the grantee which abandons the permission. + // address which the tokens will be burnt from. + // Note: it must have the permission for the burn. From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // permission on the contract. - Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` + // the token ids to burn. + // Note: id cannot start with zero. + TokenIds []string `protobuf:"bytes,3,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` } -func (x *MsgRevokePermission) Reset() { - *x = MsgRevokePermission{} +func (x *MsgBurnNFT) Reset() { + *x = MsgBurnNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[35] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgRevokePermission) String() string { +func (x *MsgBurnNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgRevokePermission) ProtoMessage() {} +func (*MsgBurnNFT) ProtoMessage() {} -// Deprecated: Use MsgRevokePermission.ProtoReflect.Descriptor instead. -func (*MsgRevokePermission) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{35} +// Deprecated: Use MsgBurnNFT.ProtoReflect.Descriptor instead. +func (*MsgBurnNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{27} } -func (x *MsgRevokePermission) GetContractId() string { +func (x *MsgBurnNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgRevokePermission) GetFrom() string { +func (x *MsgBurnNFT) GetFrom() string { if x != nil { return x.From } return "" } -func (x *MsgRevokePermission) GetPermission() string { +func (x *MsgBurnNFT) GetTokenIds() []string { if x != nil { - return x.Permission + return x.TokenIds } - return "" + return nil } -// MsgRevokePermissionResponse is the Msg/RevokePermission response type. -type MsgRevokePermissionResponse struct { +// MsgBurnNFTResponse is the Msg/BurnNFT response type. +type MsgBurnNFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgRevokePermissionResponse) Reset() { - *x = MsgRevokePermissionResponse{} +func (x *MsgBurnNFTResponse) Reset() { + *x = MsgBurnNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[36] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgRevokePermissionResponse) String() string { +func (x *MsgBurnNFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgRevokePermissionResponse) ProtoMessage() {} +func (*MsgBurnNFTResponse) ProtoMessage() {} -// Deprecated: Use MsgRevokePermissionResponse.ProtoReflect.Descriptor instead. -func (*MsgRevokePermissionResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{36} +// Deprecated: Use MsgBurnNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgBurnNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{28} } -// MsgAttach is the Msg/Attach request type. -// -// Deprecated: Do not use. -type MsgAttach struct { +// MsgOperatorBurnNFT is the Msg/OperatorBurnNFT request type. +type MsgOperatorBurnNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to attach. - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // to token id which one attachs the token to. - ToTokenId string `protobuf:"bytes,4,opt,name=to_token_id,json=toTokenId,proto3" json:"to_token_id,omitempty"` + // address which triggers the burn. + // Note: it must have the permission for the burn. + // Note: it must have been authorized by from. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // address which the tokens will be burnt from. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // the token ids to burn. + // Note: id cannot start with zero. + TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` } -func (x *MsgAttach) Reset() { - *x = MsgAttach{} +func (x *MsgOperatorBurnNFT) Reset() { + *x = MsgOperatorBurnNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[37] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgAttach) String() string { +func (x *MsgOperatorBurnNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgAttach) ProtoMessage() {} +func (*MsgOperatorBurnNFT) ProtoMessage() {} -// Deprecated: Use MsgAttach.ProtoReflect.Descriptor instead. -func (*MsgAttach) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{37} +// Deprecated: Use MsgOperatorBurnNFT.ProtoReflect.Descriptor instead. +func (*MsgOperatorBurnNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{29} } -func (x *MsgAttach) GetContractId() string { +func (x *MsgOperatorBurnNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgAttach) GetFrom() string { +func (x *MsgOperatorBurnNFT) GetOperator() string { if x != nil { - return x.From + return x.Operator } return "" } -func (x *MsgAttach) GetTokenId() string { +func (x *MsgOperatorBurnNFT) GetFrom() string { if x != nil { - return x.TokenId + return x.From } return "" } -func (x *MsgAttach) GetToTokenId() string { +func (x *MsgOperatorBurnNFT) GetTokenIds() []string { if x != nil { - return x.ToTokenId + return x.TokenIds } - return "" + return nil } -// MsgAttachResponse is the Msg/Attach response type. -// -// Deprecated: Do not use. -type MsgAttachResponse struct { +// MsgOperatorBurnNFTResponse is the Msg/OperatorBurnNFT response type. +type MsgOperatorBurnNFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgAttachResponse) Reset() { - *x = MsgAttachResponse{} +func (x *MsgOperatorBurnNFTResponse) Reset() { + *x = MsgOperatorBurnNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[38] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgAttachResponse) String() string { +func (x *MsgOperatorBurnNFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgAttachResponse) ProtoMessage() {} +func (*MsgOperatorBurnNFTResponse) ProtoMessage() {} -// Deprecated: Use MsgAttachResponse.ProtoReflect.Descriptor instead. -func (*MsgAttachResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{38} +// Deprecated: Use MsgOperatorBurnNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgOperatorBurnNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{30} } -// MsgDetach is the Msg/Detach request type. -// -// Deprecated: Do not use. -type MsgDetach struct { +// MsgModify is the Msg/Modify request type. +type MsgModify struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to detach. - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // the address of the grantee which must have modify permission. + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + // token type of the token. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // token index of the token. + // if index is empty, it would modify the corresponding token type. + // if index is not empty, it would modify the corresponding nft. + // Note: if token type is of FTs, the index cannot be empty. + TokenIndex string `protobuf:"bytes,4,opt,name=token_index,json=tokenIndex,proto3" json:"token_index,omitempty"` + // changes to apply. + // possible attribute keys on modifying collection: name, uri, base_img_uri (deprecated), meta. + // possible attribute keys on modifying token type and token: name, meta. + Changes []*Attribute `protobuf:"bytes,5,rep,name=changes,proto3" json:"changes,omitempty"` } -func (x *MsgDetach) Reset() { - *x = MsgDetach{} +func (x *MsgModify) Reset() { + *x = MsgModify{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[39] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgDetach) String() string { +func (x *MsgModify) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgDetach) ProtoMessage() {} +func (*MsgModify) ProtoMessage() {} -// Deprecated: Use MsgDetach.ProtoReflect.Descriptor instead. -func (*MsgDetach) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{39} +// Deprecated: Use MsgModify.ProtoReflect.Descriptor instead. +func (*MsgModify) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{31} } -func (x *MsgDetach) GetContractId() string { +func (x *MsgModify) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgDetach) GetFrom() string { +func (x *MsgModify) GetOwner() string { if x != nil { - return x.From + return x.Owner } return "" } -func (x *MsgDetach) GetTokenId() string { +func (x *MsgModify) GetTokenType() string { if x != nil { - return x.TokenId + return x.TokenType } return "" } -// MsgDetachResponse is the Msg/Detach response type. -// -// Deprecated: Do not use. -type MsgDetachResponse struct { +func (x *MsgModify) GetTokenIndex() string { + if x != nil { + return x.TokenIndex + } + return "" +} + +func (x *MsgModify) GetChanges() []*Attribute { + if x != nil { + return x.Changes + } + return nil +} + +// MsgModifyResponse is the Msg/Modify response type. +type MsgModifyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgDetachResponse) Reset() { - *x = MsgDetachResponse{} +func (x *MsgModifyResponse) Reset() { + *x = MsgModifyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[40] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgDetachResponse) String() string { +func (x *MsgModifyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgDetachResponse) ProtoMessage() {} +func (*MsgModifyResponse) ProtoMessage() {} -// Deprecated: Use MsgDetachResponse.ProtoReflect.Descriptor instead. -func (*MsgDetachResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{40} +// Deprecated: Use MsgModifyResponse.ProtoReflect.Descriptor instead. +func (*MsgModifyResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{32} } -// MsgOperatorAttach is the Msg/OperatorAttach request type. -// -// Deprecated: Do not use. -type MsgOperatorAttach struct { +// MsgGrantPermission is the Msg/GrantPermission request type. +type MsgGrantPermission struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to attach. - TokenId string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // to token id which one attachs the token to. - ToTokenId string `protobuf:"bytes,5,opt,name=to_token_id,json=toTokenId,proto3" json:"to_token_id,omitempty"` + // address of the granter which must have the permission to give. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // address of the grantee. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // permission on the contract. + Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"` } -func (x *MsgOperatorAttach) Reset() { - *x = MsgOperatorAttach{} +func (x *MsgGrantPermission) Reset() { + *x = MsgGrantPermission{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[41] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorAttach) String() string { +func (x *MsgGrantPermission) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorAttach) ProtoMessage() {} +func (*MsgGrantPermission) ProtoMessage() {} -// Deprecated: Use MsgOperatorAttach.ProtoReflect.Descriptor instead. -func (*MsgOperatorAttach) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{41} +// Deprecated: Use MsgGrantPermission.ProtoReflect.Descriptor instead. +func (*MsgGrantPermission) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{33} } -func (x *MsgOperatorAttach) GetContractId() string { +func (x *MsgGrantPermission) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgOperatorAttach) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *MsgOperatorAttach) GetFrom() string { +func (x *MsgGrantPermission) GetFrom() string { if x != nil { return x.From } return "" } -func (x *MsgOperatorAttach) GetTokenId() string { +func (x *MsgGrantPermission) GetTo() string { if x != nil { - return x.TokenId + return x.To } return "" } -func (x *MsgOperatorAttach) GetToTokenId() string { +func (x *MsgGrantPermission) GetPermission() string { if x != nil { - return x.ToTokenId + return x.Permission } return "" } -// MsgOperatorAttachResponse is the Msg/OperatorAttach response type. -// -// Deprecated: Do not use. -type MsgOperatorAttachResponse struct { +// MsgGrantPermissionResponse is the Msg/GrantPermission response type. +type MsgGrantPermissionResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgOperatorAttachResponse) Reset() { - *x = MsgOperatorAttachResponse{} +func (x *MsgGrantPermissionResponse) Reset() { + *x = MsgGrantPermissionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[42] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorAttachResponse) String() string { +func (x *MsgGrantPermissionResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorAttachResponse) ProtoMessage() {} +func (*MsgGrantPermissionResponse) ProtoMessage() {} -// Deprecated: Use MsgOperatorAttachResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorAttachResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{42} +// Deprecated: Use MsgGrantPermissionResponse.ProtoReflect.Descriptor instead. +func (*MsgGrantPermissionResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{34} } -// MsgOperatorDetach is the Msg/OperatorDetach request type. -// -// Deprecated: Do not use. -type MsgOperatorDetach struct { +// MsgRevokePermission is the Msg/RevokePermission request type. +type MsgRevokePermission struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to detach. - TokenId string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // address of the grantee which abandons the permission. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // permission on the contract. + Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` } -func (x *MsgOperatorDetach) Reset() { - *x = MsgOperatorDetach{} +func (x *MsgRevokePermission) Reset() { + *x = MsgRevokePermission{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[43] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorDetach) String() string { +func (x *MsgRevokePermission) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorDetach) ProtoMessage() {} +func (*MsgRevokePermission) ProtoMessage() {} -// Deprecated: Use MsgOperatorDetach.ProtoReflect.Descriptor instead. -func (*MsgOperatorDetach) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{43} +// Deprecated: Use MsgRevokePermission.ProtoReflect.Descriptor instead. +func (*MsgRevokePermission) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{35} } -func (x *MsgOperatorDetach) GetContractId() string { +func (x *MsgRevokePermission) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgOperatorDetach) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *MsgOperatorDetach) GetFrom() string { +func (x *MsgRevokePermission) GetFrom() string { if x != nil { return x.From } return "" } -func (x *MsgOperatorDetach) GetTokenId() string { +func (x *MsgRevokePermission) GetPermission() string { if x != nil { - return x.TokenId + return x.Permission } return "" } -// MsgOperatorDetachResponse is the Msg/OperatorDetach response type. -// -// Deprecated: Do not use. -type MsgOperatorDetachResponse struct { +// MsgRevokePermissionResponse is the Msg/RevokePermission response type. +type MsgRevokePermissionResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgOperatorDetachResponse) Reset() { - *x = MsgOperatorDetachResponse{} +func (x *MsgRevokePermissionResponse) Reset() { + *x = MsgRevokePermissionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[44] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorDetachResponse) String() string { +func (x *MsgRevokePermissionResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorDetachResponse) ProtoMessage() {} +func (*MsgRevokePermissionResponse) ProtoMessage() {} -// Deprecated: Use MsgOperatorDetachResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorDetachResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{44} +// Deprecated: Use MsgRevokePermissionResponse.ProtoReflect.Descriptor instead. +func (*MsgRevokePermissionResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{36} } var File_lbm_collection_v1_tx_proto protoreflect.FileDescriptor @@ -25464,205 +21212,124 @@ var file_lbm_collection_v1_tx_proto_rawDesc = []byte{ 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb8, 0x01, - 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x04, - 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x74, 0x6f, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x3a, 0x21, 0x18, 0x01, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, - 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x11, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, - 0x73, 0x67, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x22, 0x17, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x41, - 0x74, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x02, 0x18, - 0x01, 0x22, 0x98, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x12, - 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, - 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x19, - 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x3a, 0x21, 0x18, 0x01, 0x82, 0xe7, 0xb0, - 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x11, 0x6c, 0x62, 0x6d, 0x2d, 0x73, - 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x22, 0x17, 0x0a, 0x11, - 0x4d, 0x73, 0x67, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x82, 0x02, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x08, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, - 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x74, - 0x6f, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x74, 0x6f, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x3a, 0x2d, 0x18, 0x01, 0x82, - 0xe7, 0xb0, 0x2a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, - 0x19, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x22, 0x1f, 0x0a, 0x19, 0x4d, 0x73, - 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xe2, 0x01, 0x0a, 0x11, - 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x63, - 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x49, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, - 0x64, 0x3a, 0x2d, 0x18, 0x01, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, - 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, - 0x22, 0x1f, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x44, - 0x65, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x02, 0x18, - 0x01, 0x32, 0xf2, 0x0f, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x4c, 0x0a, 0x06, 0x53, 0x65, 0x6e, - 0x64, 0x46, 0x54, 0x12, 0x1c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x46, - 0x54, 0x1a, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0e, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x1a, - 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, - 0x65, 0x6e, 0x64, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, - 0x07, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x12, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x1a, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, - 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, - 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, - 0x54, 0x12, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x1a, 0x2d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x27, 0x2e, 0x6c, - 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x2f, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x2c, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x24, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x07, 0x49, 0x73, 0x73, 0x75, 0x65, 0x46, 0x54, 0x12, 0x1d, 0x2e, - 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, 0x65, 0x46, 0x54, 0x1a, 0x25, 0x2e, 0x6c, - 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, 0x65, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x08, 0x49, 0x73, 0x73, 0x75, 0x65, 0x4e, 0x46, 0x54, 0x12, - 0x1e, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, 0x65, 0x4e, 0x46, 0x54, 0x1a, - 0x26, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, 0x65, 0x4e, 0x46, 0x54, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x4d, 0x69, 0x6e, 0x74, 0x46, - 0x54, 0x12, 0x1c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x46, 0x54, 0x1a, - 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x46, 0x54, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x07, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, - 0x12, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x1a, - 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, - 0x12, 0x1c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, 0x1a, 0x24, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, 0x1a, 0x2c, 0x2e, 0x6c, - 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, - 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x07, 0x42, 0x75, - 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x12, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, - 0x6e, 0x4e, 0x46, 0x54, 0x1a, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, - 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x0f, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x12, 0x25, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x75, - 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x1a, 0x2d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x12, 0x1c, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x1a, 0x24, 0x2e, 0x6c, - 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x67, 0x0a, 0x0f, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x2d, 0x2e, 0x6c, - 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x10, 0x52, - 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x26, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x2e, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, - 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x41, 0x74, 0x74, 0x61, 0x63, - 0x68, 0x12, 0x1c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x1a, - 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x12, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x8a, 0x0d, + 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x4c, 0x0a, 0x06, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x12, 0x1c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x1a, 0x24, 0x2e, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x1a, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x41, - 0x74, 0x74, 0x61, 0x63, 0x68, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, + 0x65, 0x6e, 0x64, 0x46, 0x54, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x1a, 0x2c, 0x2e, 0x6c, 0x62, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x1a, 0x2c, 0x2e, 0x6c, 0x62, + 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x46, + 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x07, 0x53, 0x65, 0x6e, + 0x64, 0x4e, 0x46, 0x54, 0x12, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, + 0x4e, 0x46, 0x54, 0x1a, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4e, + 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x0f, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x12, 0x25, 0x2e, + 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, + 0x64, 0x4e, 0x46, 0x54, 0x1a, 0x2d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x1a, 0x2f, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x6f, 0x72, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, + 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x1a, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, + 0x0a, 0x07, 0x49, 0x73, 0x73, 0x75, 0x65, 0x46, 0x54, 0x12, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x49, 0x73, 0x73, 0x75, 0x65, 0x46, 0x54, 0x1a, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x49, 0x73, 0x73, 0x75, 0x65, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x52, 0x0a, 0x08, 0x49, 0x73, 0x73, 0x75, 0x65, 0x4e, 0x46, 0x54, 0x12, 0x1e, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x74, 0x74, 0x61, 0x63, - 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0e, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x12, 0x24, 0x2e, 0x6c, 0x62, + 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, 0x65, 0x4e, 0x46, 0x54, 0x1a, 0x26, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x63, - 0x68, 0x1a, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, - 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xae, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, + 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, 0x65, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x4d, 0x69, 0x6e, 0x74, 0x46, 0x54, 0x12, 0x1c, 0x2e, + 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x46, 0x54, 0x1a, 0x24, 0x2e, 0x6c, 0x62, + 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4f, 0x0a, 0x07, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x12, 0x1d, 0x2e, 0x6c, + 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x1a, 0x25, 0x2e, 0x6c, 0x62, + 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, 0x12, 0x1c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x61, 0x70, 0x69, - 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, - 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, - 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, - 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, + 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, 0x1a, 0x24, 0x2e, 0x6c, 0x62, 0x6d, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x64, 0x0a, 0x0e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, + 0x46, 0x54, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, 0x1a, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x07, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, + 0x54, 0x12, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, + 0x1a, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x12, 0x25, 0x2e, 0x6c, 0x62, 0x6d, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, + 0x54, 0x1a, 0x2d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4c, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x12, 0x1c, 0x2e, 0x6c, 0x62, 0x6d, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x1a, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, + 0x0a, 0x0f, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x50, 0x65, + 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x2d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x47, 0x72, 0x61, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x10, 0x52, 0x65, 0x76, 0x6f, 0x6b, + 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x6c, 0x62, + 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x1a, 0x2e, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, + 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xae, 0x01, 0x0a, 0x15, 0x63, + 0x6f, 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x22, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, + 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, - 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, - 0x3a, 0x56, 0x31, 0xa8, 0xe2, 0x1e, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0xe2, 0x02, 0x1d, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x13, 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0xa8, 0xe2, 0x1e, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -25677,7 +21344,7 @@ func file_lbm_collection_v1_tx_proto_rawDescGZIP() []byte { return file_lbm_collection_v1_tx_proto_rawDescData } -var file_lbm_collection_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 45) +var file_lbm_collection_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 37) var file_lbm_collection_v1_tx_proto_goTypes = []interface{}{ (*MsgSendFT)(nil), // 0: lbm.collection.v1.MsgSendFT (*MsgSendFTResponse)(nil), // 1: lbm.collection.v1.MsgSendFTResponse @@ -25716,25 +21383,17 @@ var file_lbm_collection_v1_tx_proto_goTypes = []interface{}{ (*MsgGrantPermissionResponse)(nil), // 34: lbm.collection.v1.MsgGrantPermissionResponse (*MsgRevokePermission)(nil), // 35: lbm.collection.v1.MsgRevokePermission (*MsgRevokePermissionResponse)(nil), // 36: lbm.collection.v1.MsgRevokePermissionResponse - (*MsgAttach)(nil), // 37: lbm.collection.v1.MsgAttach - (*MsgAttachResponse)(nil), // 38: lbm.collection.v1.MsgAttachResponse - (*MsgDetach)(nil), // 39: lbm.collection.v1.MsgDetach - (*MsgDetachResponse)(nil), // 40: lbm.collection.v1.MsgDetachResponse - (*MsgOperatorAttach)(nil), // 41: lbm.collection.v1.MsgOperatorAttach - (*MsgOperatorAttachResponse)(nil), // 42: lbm.collection.v1.MsgOperatorAttachResponse - (*MsgOperatorDetach)(nil), // 43: lbm.collection.v1.MsgOperatorDetach - (*MsgOperatorDetachResponse)(nil), // 44: lbm.collection.v1.MsgOperatorDetachResponse - (*Coin)(nil), // 45: lbm.collection.v1.Coin - (*Attribute)(nil), // 46: lbm.collection.v1.Attribute + (*Coin)(nil), // 37: lbm.collection.v1.Coin + (*Attribute)(nil), // 38: lbm.collection.v1.Attribute } var file_lbm_collection_v1_tx_proto_depIdxs = []int32{ - 45, // 0: lbm.collection.v1.MsgSendFT.amount:type_name -> lbm.collection.v1.Coin - 45, // 1: lbm.collection.v1.MsgOperatorSendFT.amount:type_name -> lbm.collection.v1.Coin - 45, // 2: lbm.collection.v1.MsgMintFT.amount:type_name -> lbm.collection.v1.Coin + 37, // 0: lbm.collection.v1.MsgSendFT.amount:type_name -> lbm.collection.v1.Coin + 37, // 1: lbm.collection.v1.MsgOperatorSendFT.amount:type_name -> lbm.collection.v1.Coin + 37, // 2: lbm.collection.v1.MsgMintFT.amount:type_name -> lbm.collection.v1.Coin 22, // 3: lbm.collection.v1.MsgMintNFT.params:type_name -> lbm.collection.v1.MintNFTParam - 45, // 4: lbm.collection.v1.MsgBurnFT.amount:type_name -> lbm.collection.v1.Coin - 45, // 5: lbm.collection.v1.MsgOperatorBurnFT.amount:type_name -> lbm.collection.v1.Coin - 46, // 6: lbm.collection.v1.MsgModify.changes:type_name -> lbm.collection.v1.Attribute + 37, // 4: lbm.collection.v1.MsgBurnFT.amount:type_name -> lbm.collection.v1.Coin + 37, // 5: lbm.collection.v1.MsgOperatorBurnFT.amount:type_name -> lbm.collection.v1.Coin + 38, // 6: lbm.collection.v1.MsgModify.changes:type_name -> lbm.collection.v1.Attribute 0, // 7: lbm.collection.v1.Msg.SendFT:input_type -> lbm.collection.v1.MsgSendFT 2, // 8: lbm.collection.v1.Msg.OperatorSendFT:input_type -> lbm.collection.v1.MsgOperatorSendFT 4, // 9: lbm.collection.v1.Msg.SendNFT:input_type -> lbm.collection.v1.MsgSendNFT @@ -25753,34 +21412,26 @@ var file_lbm_collection_v1_tx_proto_depIdxs = []int32{ 31, // 22: lbm.collection.v1.Msg.Modify:input_type -> lbm.collection.v1.MsgModify 33, // 23: lbm.collection.v1.Msg.GrantPermission:input_type -> lbm.collection.v1.MsgGrantPermission 35, // 24: lbm.collection.v1.Msg.RevokePermission:input_type -> lbm.collection.v1.MsgRevokePermission - 37, // 25: lbm.collection.v1.Msg.Attach:input_type -> lbm.collection.v1.MsgAttach - 39, // 26: lbm.collection.v1.Msg.Detach:input_type -> lbm.collection.v1.MsgDetach - 41, // 27: lbm.collection.v1.Msg.OperatorAttach:input_type -> lbm.collection.v1.MsgOperatorAttach - 43, // 28: lbm.collection.v1.Msg.OperatorDetach:input_type -> lbm.collection.v1.MsgOperatorDetach - 1, // 29: lbm.collection.v1.Msg.SendFT:output_type -> lbm.collection.v1.MsgSendFTResponse - 3, // 30: lbm.collection.v1.Msg.OperatorSendFT:output_type -> lbm.collection.v1.MsgOperatorSendFTResponse - 5, // 31: lbm.collection.v1.Msg.SendNFT:output_type -> lbm.collection.v1.MsgSendNFTResponse - 7, // 32: lbm.collection.v1.Msg.OperatorSendNFT:output_type -> lbm.collection.v1.MsgOperatorSendNFTResponse - 9, // 33: lbm.collection.v1.Msg.AuthorizeOperator:output_type -> lbm.collection.v1.MsgAuthorizeOperatorResponse - 11, // 34: lbm.collection.v1.Msg.RevokeOperator:output_type -> lbm.collection.v1.MsgRevokeOperatorResponse - 13, // 35: lbm.collection.v1.Msg.CreateContract:output_type -> lbm.collection.v1.MsgCreateContractResponse - 15, // 36: lbm.collection.v1.Msg.IssueFT:output_type -> lbm.collection.v1.MsgIssueFTResponse - 17, // 37: lbm.collection.v1.Msg.IssueNFT:output_type -> lbm.collection.v1.MsgIssueNFTResponse - 19, // 38: lbm.collection.v1.Msg.MintFT:output_type -> lbm.collection.v1.MsgMintFTResponse - 21, // 39: lbm.collection.v1.Msg.MintNFT:output_type -> lbm.collection.v1.MsgMintNFTResponse - 24, // 40: lbm.collection.v1.Msg.BurnFT:output_type -> lbm.collection.v1.MsgBurnFTResponse - 26, // 41: lbm.collection.v1.Msg.OperatorBurnFT:output_type -> lbm.collection.v1.MsgOperatorBurnFTResponse - 28, // 42: lbm.collection.v1.Msg.BurnNFT:output_type -> lbm.collection.v1.MsgBurnNFTResponse - 30, // 43: lbm.collection.v1.Msg.OperatorBurnNFT:output_type -> lbm.collection.v1.MsgOperatorBurnNFTResponse - 32, // 44: lbm.collection.v1.Msg.Modify:output_type -> lbm.collection.v1.MsgModifyResponse - 34, // 45: lbm.collection.v1.Msg.GrantPermission:output_type -> lbm.collection.v1.MsgGrantPermissionResponse - 36, // 46: lbm.collection.v1.Msg.RevokePermission:output_type -> lbm.collection.v1.MsgRevokePermissionResponse - 38, // 47: lbm.collection.v1.Msg.Attach:output_type -> lbm.collection.v1.MsgAttachResponse - 40, // 48: lbm.collection.v1.Msg.Detach:output_type -> lbm.collection.v1.MsgDetachResponse - 42, // 49: lbm.collection.v1.Msg.OperatorAttach:output_type -> lbm.collection.v1.MsgOperatorAttachResponse - 44, // 50: lbm.collection.v1.Msg.OperatorDetach:output_type -> lbm.collection.v1.MsgOperatorDetachResponse - 29, // [29:51] is the sub-list for method output_type - 7, // [7:29] is the sub-list for method input_type + 1, // 25: lbm.collection.v1.Msg.SendFT:output_type -> lbm.collection.v1.MsgSendFTResponse + 3, // 26: lbm.collection.v1.Msg.OperatorSendFT:output_type -> lbm.collection.v1.MsgOperatorSendFTResponse + 5, // 27: lbm.collection.v1.Msg.SendNFT:output_type -> lbm.collection.v1.MsgSendNFTResponse + 7, // 28: lbm.collection.v1.Msg.OperatorSendNFT:output_type -> lbm.collection.v1.MsgOperatorSendNFTResponse + 9, // 29: lbm.collection.v1.Msg.AuthorizeOperator:output_type -> lbm.collection.v1.MsgAuthorizeOperatorResponse + 11, // 30: lbm.collection.v1.Msg.RevokeOperator:output_type -> lbm.collection.v1.MsgRevokeOperatorResponse + 13, // 31: lbm.collection.v1.Msg.CreateContract:output_type -> lbm.collection.v1.MsgCreateContractResponse + 15, // 32: lbm.collection.v1.Msg.IssueFT:output_type -> lbm.collection.v1.MsgIssueFTResponse + 17, // 33: lbm.collection.v1.Msg.IssueNFT:output_type -> lbm.collection.v1.MsgIssueNFTResponse + 19, // 34: lbm.collection.v1.Msg.MintFT:output_type -> lbm.collection.v1.MsgMintFTResponse + 21, // 35: lbm.collection.v1.Msg.MintNFT:output_type -> lbm.collection.v1.MsgMintNFTResponse + 24, // 36: lbm.collection.v1.Msg.BurnFT:output_type -> lbm.collection.v1.MsgBurnFTResponse + 26, // 37: lbm.collection.v1.Msg.OperatorBurnFT:output_type -> lbm.collection.v1.MsgOperatorBurnFTResponse + 28, // 38: lbm.collection.v1.Msg.BurnNFT:output_type -> lbm.collection.v1.MsgBurnNFTResponse + 30, // 39: lbm.collection.v1.Msg.OperatorBurnNFT:output_type -> lbm.collection.v1.MsgOperatorBurnNFTResponse + 32, // 40: lbm.collection.v1.Msg.Modify:output_type -> lbm.collection.v1.MsgModifyResponse + 34, // 41: lbm.collection.v1.Msg.GrantPermission:output_type -> lbm.collection.v1.MsgGrantPermissionResponse + 36, // 42: lbm.collection.v1.Msg.RevokePermission:output_type -> lbm.collection.v1.MsgRevokePermissionResponse + 25, // [25:43] is the sub-list for method output_type + 7, // [7:25] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name 7, // [7:7] is the sub-list for extension extendee 0, // [0:7] is the sub-list for field type_name @@ -26237,102 +21888,6 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAttach); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAttachResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgDetach); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgDetachResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorAttach); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorAttachResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorDetach); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorDetachResponse); 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{ @@ -26340,7 +21895,7 @@ func file_lbm_collection_v1_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_lbm_collection_v1_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 45, + NumMessages: 37, NumExtensions: 0, NumServices: 1, }, diff --git a/api/lbm/collection/v1/tx_grpc.pb.go b/api/lbm/collection/v1/tx_grpc.pb.go index 46a7668fd5..3e6eb130c7 100644 --- a/api/lbm/collection/v1/tx_grpc.pb.go +++ b/api/lbm/collection/v1/tx_grpc.pb.go @@ -37,10 +37,6 @@ const ( Msg_Modify_FullMethodName = "/lbm.collection.v1.Msg/Modify" Msg_GrantPermission_FullMethodName = "/lbm.collection.v1.Msg/GrantPermission" Msg_RevokePermission_FullMethodName = "/lbm.collection.v1.Msg/RevokePermission" - Msg_Attach_FullMethodName = "/lbm.collection.v1.Msg/Attach" - Msg_Detach_FullMethodName = "/lbm.collection.v1.Msg/Detach" - Msg_OperatorAttach_FullMethodName = "/lbm.collection.v1.Msg/OperatorAttach" - Msg_OperatorDetach_FullMethodName = "/lbm.collection.v1.Msg/OperatorDetach" ) // MsgClient is the client API for Msg service. @@ -125,30 +121,6 @@ type MsgClient interface { // Fires: // - EventRenounced RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error) - // Attach defines a method to attach a token to another token. - // Fires: - // - EventAttach - // - attach (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - Attach(ctx context.Context, in *MsgAttach, opts ...grpc.CallOption) (*MsgAttachResponse, error) - // Detach defines a method to detach a token from another token. - // Fires: - // - EventDetach - // - detach (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - Detach(ctx context.Context, in *MsgDetach, opts ...grpc.CallOption) (*MsgDetachResponse, error) - // OperatorAttach defines a method to attach a token to another token by operator. - // Fires: - // - EventAttach - // - attach_from (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - OperatorAttach(ctx context.Context, in *MsgOperatorAttach, opts ...grpc.CallOption) (*MsgOperatorAttachResponse, error) - // OperatorDetach defines a method to detach a token from another token by operator. - // Fires: - // - EventDetach - // - detach_from (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - OperatorDetach(ctx context.Context, in *MsgOperatorDetach, opts ...grpc.CallOption) (*MsgOperatorDetachResponse, error) } type msgClient struct { @@ -321,42 +293,6 @@ func (c *msgClient) RevokePermission(ctx context.Context, in *MsgRevokePermissio return out, nil } -func (c *msgClient) Attach(ctx context.Context, in *MsgAttach, opts ...grpc.CallOption) (*MsgAttachResponse, error) { - out := new(MsgAttachResponse) - err := c.cc.Invoke(ctx, Msg_Attach_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Detach(ctx context.Context, in *MsgDetach, opts ...grpc.CallOption) (*MsgDetachResponse, error) { - out := new(MsgDetachResponse) - err := c.cc.Invoke(ctx, Msg_Detach_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) OperatorAttach(ctx context.Context, in *MsgOperatorAttach, opts ...grpc.CallOption) (*MsgOperatorAttachResponse, error) { - out := new(MsgOperatorAttachResponse) - err := c.cc.Invoke(ctx, Msg_OperatorAttach_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) OperatorDetach(ctx context.Context, in *MsgOperatorDetach, opts ...grpc.CallOption) (*MsgOperatorDetachResponse, error) { - out := new(MsgOperatorDetachResponse) - err := c.cc.Invoke(ctx, Msg_OperatorDetach_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // MsgServer is the server API for Msg service. // All implementations must embed UnimplementedMsgServer // for forward compatibility @@ -439,30 +375,6 @@ type MsgServer interface { // Fires: // - EventRenounced RevokePermission(context.Context, *MsgRevokePermission) (*MsgRevokePermissionResponse, error) - // Attach defines a method to attach a token to another token. - // Fires: - // - EventAttach - // - attach (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - Attach(context.Context, *MsgAttach) (*MsgAttachResponse, error) - // Detach defines a method to detach a token from another token. - // Fires: - // - EventDetach - // - detach (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - Detach(context.Context, *MsgDetach) (*MsgDetachResponse, error) - // OperatorAttach defines a method to attach a token to another token by operator. - // Fires: - // - EventAttach - // - attach_from (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - OperatorAttach(context.Context, *MsgOperatorAttach) (*MsgOperatorAttachResponse, error) - // OperatorDetach defines a method to detach a token from another token by operator. - // Fires: - // - EventDetach - // - detach_from (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - OperatorDetach(context.Context, *MsgOperatorDetach) (*MsgOperatorDetachResponse, error) mustEmbedUnimplementedMsgServer() } @@ -524,18 +436,6 @@ func (UnimplementedMsgServer) GrantPermission(context.Context, *MsgGrantPermissi func (UnimplementedMsgServer) RevokePermission(context.Context, *MsgRevokePermission) (*MsgRevokePermissionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RevokePermission not implemented") } -func (UnimplementedMsgServer) Attach(context.Context, *MsgAttach) (*MsgAttachResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Attach not implemented") -} -func (UnimplementedMsgServer) Detach(context.Context, *MsgDetach) (*MsgDetachResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Detach not implemented") -} -func (UnimplementedMsgServer) OperatorAttach(context.Context, *MsgOperatorAttach) (*MsgOperatorAttachResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperatorAttach not implemented") -} -func (UnimplementedMsgServer) OperatorDetach(context.Context, *MsgOperatorDetach) (*MsgOperatorDetachResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperatorDetach not implemented") -} func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} // UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. @@ -873,78 +773,6 @@ func _Msg_RevokePermission_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _Msg_Attach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAttach) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Attach(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_Attach_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Attach(ctx, req.(*MsgAttach)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Detach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgDetach) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Detach(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_Detach_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Detach(ctx, req.(*MsgDetach)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_OperatorAttach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgOperatorAttach) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).OperatorAttach(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_OperatorAttach_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OperatorAttach(ctx, req.(*MsgOperatorAttach)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_OperatorDetach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgOperatorDetach) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).OperatorDetach(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_OperatorDetach_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OperatorDetach(ctx, req.(*MsgOperatorDetach)) - } - 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) @@ -1024,22 +852,6 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "RevokePermission", Handler: _Msg_RevokePermission_Handler, }, - { - MethodName: "Attach", - Handler: _Msg_Attach_Handler, - }, - { - MethodName: "Detach", - Handler: _Msg_Detach_Handler, - }, - { - MethodName: "OperatorAttach", - Handler: _Msg_OperatorAttach_Handler, - }, - { - MethodName: "OperatorDetach", - Handler: _Msg_OperatorDetach_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "lbm/collection/v1/tx.proto", diff --git a/api/lbm/foundation/v1/authz.pulsar.go b/api/lbm/foundation/v1/authz.pulsar.go index fe1a96fb4d..c8d559b993 100644 --- a/api/lbm/foundation/v1/authz.pulsar.go +++ b/api/lbm/foundation/v1/authz.pulsar.go @@ -6,7 +6,6 @@ import ( _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" - _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -418,32 +417,30 @@ var file_lbm_foundation_v1_authz_proto_rawDesc = []byte{ 0x0a, 0x1d, 0x6c, 0x62, 0x6d, 0x2f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6c, 0x62, 0x6d, 0x2e, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, - 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x90, 0x01, 0x0a, 0x20, 0x52, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x79, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x6c, 0xca, 0xb4, 0x2d, - 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6e, 0x73, - 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2d, 0x73, 0x64, - 0x6b, 0x2f, 0x78, 0x2f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x8a, 0xe7, 0xb0, 0x2a, - 0x28, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xad, 0x01, 0x0a, 0x15, 0x63, 0x6f, - 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x22, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x66, 0x6f, 0x75, 0x6e, 0x64, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x46, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, - 0x6d, 0x2e, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4c, 0x62, 0x6d, 0x5c, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x46, 0x6f, 0x75, 0x6e, 0x64, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, + 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x90, 0x01, 0x0a, 0x20, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, + 0x54, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x6c, 0xca, 0xb4, 0x2d, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, + 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x78, 0x2f, 0x66, 0x6f, + 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x8a, 0xe7, 0xb0, 0x2a, 0x28, 0x6c, 0x62, 0x6d, 0x2d, 0x73, + 0x64, 0x6b, 0x2f, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x72, + 0x65, 0x61, 0x73, 0x75, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x42, 0xad, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, + 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x41, + 0x75, 0x74, 0x68, 0x7a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x61, 0x70, 0x69, + 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x76, 0x31, 0x3b, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, + 0x02, 0x03, 0x4c, 0x46, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, 0x46, 0x6f, 0x75, 0x6e, + 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, + 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, + 0x4c, 0x62, 0x6d, 0x5c, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, + 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/lbm/foundation/v1/foundation.pulsar.go b/api/lbm/foundation/v1/foundation.pulsar.go index 9afaf7bb20..2b3e5be8c5 100644 --- a/api/lbm/foundation/v1/foundation.pulsar.go +++ b/api/lbm/foundation/v1/foundation.pulsar.go @@ -7998,6 +7998,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// CensorshipAuthority defines the authorities which could be used in Censorship. type CensorshipAuthority int32 const ( @@ -8273,6 +8274,7 @@ func (x *Params) GetFoundationTax() string { return "" } +// Censorship states which message is being censored by a certain authority. type Censorship struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/go.mod b/go.mod index 9059c27457..11671a3803 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,10 @@ module github.com/Finschia/finschia-sdk require ( cosmossdk.io/math v1.2.0 + github.com/cosmos/cosmos-proto v1.0.0-beta.3 github.com/cosmos/cosmos-sdk v0.50.2 github.com/cosmos/go-bip39 v1.0.0 + github.com/cosmos/gogoproto v1.4.11 github.com/stretchr/testify v1.8.4 github.com/tendermint/go-amino v0.16.0 ) @@ -36,8 +38,6 @@ require ( github.com/cometbft/cometbft-db v0.9.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.0.0 // indirect - github.com/cosmos/cosmos-proto v1.0.0-beta.3 // indirect - github.com/cosmos/gogoproto v1.4.11 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect diff --git a/proto/lbm/collection/v1/collection.proto b/proto/lbm/collection/v1/collection.proto index 252b913fba..c36b52894c 100644 --- a/proto/lbm/collection/v1/collection.proto +++ b/proto/lbm/collection/v1/collection.proto @@ -10,8 +10,7 @@ import "cosmos_proto/cosmos.proto"; // Params defines the parameters for the collection module. message Params { - uint32 depth_limit = 1; - uint32 width_limit = 2; + reserved 1 to 2; } // Contract defines the information of the contract for the collection. diff --git a/proto/lbm/collection/v1/event.proto b/proto/lbm/collection/v1/event.proto index 065b9c7de3..08b47516a1 100644 --- a/proto/lbm/collection/v1/event.proto +++ b/proto/lbm/collection/v1/event.proto @@ -236,63 +236,3 @@ message EventModifiedNFT { // possible attribute keys are same as those of MsgModify. repeated Attribute changes = 4 [(gogoproto.nullable) = false]; } - -// EventAttached is emitted when a token is attached to another. -// -// Since: 0.46.0 (finschia) -message EventAttached { - // contract id associated with the contract. - string contract_id = 1; - // address which triggered the attach. - string operator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // address which holds the tokens. - string holder = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // subject of the attach. - string subject = 4; - // target of the attach. - string target = 5; -} - -// EventDetached is emitted when a token is detached from its parent. -// -// Since: 0.46.0 (finschia) -message EventDetached { - // contract id associated with the contract. - string contract_id = 1; - // address which triggered the detach. - string operator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // address which holds the token. - string holder = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token being detached. - string subject = 4; - // parent token before the detach. - string previous_parent = 5; -} - -// EventOwnerChanged is emitted when the owner of token is changed by operation applied to its ancestor. -// -// Since: 0.46.0 (finschia) -message EventOwnerChanged { - // contract id associated with the contract. - string contract_id = 1; - // token id associated with the token. - string token_id = 2; - // address of the previous owner before the change. - string from = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // address of the new owner. - string to = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; -} - -// EventRootChanged is emitted when the root of token is changed by operation applied to its ancestor. -// -// Since: 0.46.0 (finschia) -message EventRootChanged { - // contract id associated with the contract. - string contract_id = 1; - // token id associated with the token. - string token_id = 2; - // token id of the previous root before the change. - string from = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token id of the new root. - string to = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; -} diff --git a/proto/lbm/collection/v1/genesis.proto b/proto/lbm/collection/v1/genesis.proto index 07ba210e89..f1f4ebe525 100644 --- a/proto/lbm/collection/v1/genesis.proto +++ b/proto/lbm/collection/v1/genesis.proto @@ -32,8 +32,7 @@ message GenesisState { // nfts is an array containing the nfts. repeated ContractNFTs nfts = 7 [(gogoproto.nullable) = false]; - // parents represents the parents of (non-fungible) tokens. - repeated ContractTokenRelations parents = 8 [(gogoproto.nullable) = false]; + reserved 8; // grants defines the grant information. repeated ContractGrants grants = 9 [(gogoproto.nullable) = false]; @@ -157,22 +156,6 @@ message NextTokenID { ]; } -// ContractTokenRelations defines token relations belong to a contract. -message ContractTokenRelations { - // contract id associated with the contract. - string contract_id = 1; - // relations - repeated TokenRelation relations = 2 [(gogoproto.nullable) = false]; -} - -// TokenRelation defines relations between two tokens. -message TokenRelation { - // self - string self = 1; - // other - string other = 2; -} - // ClassState defines the classes state. message ClassState { // nonce is the next class nonce to issue. @@ -184,4 +167,4 @@ message ClassState { // ids represents the issued ids. repeated string ids = 2; -} \ No newline at end of file +} diff --git a/proto/lbm/collection/v1/query.proto b/proto/lbm/collection/v1/query.proto index 2da2105b01..7c08d91881 100644 --- a/proto/lbm/collection/v1/query.proto +++ b/proto/lbm/collection/v1/query.proto @@ -76,26 +76,6 @@ service Query { option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/tokens/{token_id}"; } - // Root queries the root of a given nft. - rpc Root(QueryRootRequest) returns (QueryRootResponse) { - option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/root"; - } - - // HasParent queries whether a given nft has its parent. - rpc HasParent(QueryHasParentRequest) returns (QueryHasParentResponse) { - option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/has_parent"; - } - - // Parent queries the parent of a given nft. - rpc Parent(QueryParentRequest) returns (QueryParentResponse) { - option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/parent"; - } - - // Children queries the children of a given nft. - rpc Children(QueryChildrenRequest) returns (QueryChildrenResponse) { - option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/children"; - } - // GranteeGrants queries all permissions on a given grantee. rpc GranteeGrants(QueryGranteeGrantsRequest) returns (QueryGranteeGrantsResponse) { option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/grants/{grantee}"; @@ -314,69 +294,6 @@ message QueryTokenResponse { google.protobuf.Any token = 1 [(gogoproto.nullable) = false]; } -// QueryRootRequest is the request type for the Query/Root RPC method. -message QueryRootRequest { - // contract id associated with the contract. - string contract_id = 1; - // token id associated with the non-fungible token. - string token_id = 2; -} - -// QueryRootResponse is the response type for the Query/Root RPC method. -message QueryRootResponse { - // root is the information of the root token. - // it would return itself if it's the root token. - NFT root = 1 [(gogoproto.nullable) = false]; -} - -// QueryHasParentRequest is the request type for the Query/HasParent RPC method. -message QueryHasParentRequest { - // contract id associated with the contract. - string contract_id = 1; - // token id associated wit the non-fungible token. - string token_id = 2; -} - -// QueryHasParentResponse is the response type for the Query/HasParent RPC method. -message QueryHasParentResponse { - // whether the token has its parent. - bool has_parent = 1; -} - -// QueryParentRequest is the request type for the Query/Parent RPC method. -message QueryParentRequest { - // contract id associated with the contract. - string contract_id = 1; - // token id associated wit the non-fungible token. - string token_id = 2; -} - -// QueryParentResponse is the response type for the Query/Parent RPC method. -message QueryParentResponse { - // parent is the information of the parent token. - NFT parent = 1 [(gogoproto.nullable) = false]; -} - -// QueryChildrenRequest is the request type for the Query/Children RPC method. -message QueryChildrenRequest { - // contract id associated with the contract. - string contract_id = 1; - // token id associated with the non-fungible token. - string token_id = 2; - - // pagination defines an optional pagination for the request. - cosmos.base.query.v1beta1.PageRequest pagination = 3; -} - -// QueryChildrenResponse is the response type for the Query/Children RPC method. -message QueryChildrenResponse { - // children is the information of the child tokens. - repeated NFT children = 1 [(gogoproto.nullable) = false]; - - // pagination defines the pagination in the response. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - // QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. message QueryGranteeGrantsRequest { // contract id associated with the contract. diff --git a/proto/lbm/collection/v1/tx.proto b/proto/lbm/collection/v1/tx.proto index 150c63bdeb..d5d5c94079 100644 --- a/proto/lbm/collection/v1/tx.proto +++ b/proto/lbm/collection/v1/tx.proto @@ -111,34 +111,6 @@ service Msg { // Fires: // - EventRenounced rpc RevokePermission(MsgRevokePermission) returns (MsgRevokePermissionResponse); - - // Attach defines a method to attach a token to another token. - // Fires: - // - EventAttach - // - attach (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - rpc Attach(MsgAttach) returns (MsgAttachResponse); - - // Detach defines a method to detach a token from another token. - // Fires: - // - EventDetach - // - detach (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - rpc Detach(MsgDetach) returns (MsgDetachResponse); - - // OperatorAttach defines a method to attach a token to another token by operator. - // Fires: - // - EventAttach - // - attach_from (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - rpc OperatorAttach(MsgOperatorAttach) returns (MsgOperatorAttachResponse); - - // OperatorDetach defines a method to detach a token from another token by operator. - // Fires: - // - EventDetach - // - detach_from (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - rpc OperatorDetach(MsgOperatorDetach) returns (MsgOperatorDetachResponse); } // MsgSendFT is the Msg/SendFT request type. @@ -524,91 +496,3 @@ message MsgRevokePermission { // MsgRevokePermissionResponse is the Msg/RevokePermission response type. message MsgRevokePermissionResponse {} - -// MsgAttach is the Msg/Attach request type. -message MsgAttach { - option deprecated = true; - - option (cosmos.msg.v1.signer) = "from"; - option (amino.name) = "lbm-sdk/MsgAttach"; - - // contract id associated with the contract. - string contract_id = 1; - // address of the owner of the token. - string from = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token id of the token to attach. - string token_id = 3; - // to token id which one attachs the token to. - string to_token_id = 4; -} - -// MsgAttachResponse is the Msg/Attach response type. -message MsgAttachResponse { - option deprecated = true; -} - -// MsgDetach is the Msg/Detach request type. -message MsgDetach { - option deprecated = true; - - option (cosmos.msg.v1.signer) = "from"; - option (amino.name) = "lbm-sdk/MsgDetach"; - - // contract id associated with the contract. - string contract_id = 1; - // address of the owner of the token. - string from = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token id of the token to detach. - string token_id = 3; -} - -// MsgDetachResponse is the Msg/Detach response type. -message MsgDetachResponse { - option deprecated = true; -} - -// MsgOperatorAttach is the Msg/OperatorAttach request type. -message MsgOperatorAttach { - option deprecated = true; - - option (cosmos.msg.v1.signer) = "operator"; - option (amino.name) = "lbm-sdk/MsgOperatorAttach"; - - // contract id associated with the contract. - string contract_id = 1; - // address of the operator. - string operator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // address of the owner of the token. - string from = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token id of the token to attach. - string token_id = 4; - // to token id which one attachs the token to. - string to_token_id = 5; -} - -// MsgOperatorAttachResponse is the Msg/OperatorAttach response type. -message MsgOperatorAttachResponse { - option deprecated = true; -} - -// MsgOperatorDetach is the Msg/OperatorDetach request type. -message MsgOperatorDetach { - option deprecated = true; - - option (cosmos.msg.v1.signer) = "operator"; - option (amino.name) = "lbm-sdk/MsgOperatorDetach"; - - // contract id associated with the contract. - string contract_id = 1; - // address of the operator. - string operator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // address of the owner of the token. - string from = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token id of the token to detach. - string token_id = 4; -} - -// MsgOperatorDetachResponse is the Msg/OperatorDetach response type. -message MsgOperatorDetachResponse { - option deprecated = true; -} diff --git a/x/collection/client/cli/query.go b/x/collection/client/cli/query.go index 7a9600a369..ad3c2ebaf7 100644 --- a/x/collection/client/cli/query.go +++ b/x/collection/client/cli/query.go @@ -39,9 +39,6 @@ func NewQueryCmd() *cobra.Command { NewQueryCmdContract(), NewQueryCmdToken(), NewQueryCmdTokenType(), - NewQueryCmdRoot(), - NewQueryCmdParent(), - NewQueryCmdChildren(), NewQueryCmdGranteeGrants(), NewQueryCmdIsOperatorFor(), NewQueryCmdHoldersByOperator(), @@ -465,129 +462,6 @@ func NewQueryCmdToken() *cobra.Command { return cmd } -func NewQueryCmdRoot() *cobra.Command { - cmd := &cobra.Command{ - Use: "root [contract-id] [token-id]", - Args: cobra.ExactArgs(2), - Short: "query root of an nft", - Example: fmt.Sprintf(`$ %s query %s root [contract-id] [token-id]`, version.AppName, collection.ModuleName), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - contractID := args[0] - if err := collection.ValidateContractID(contractID); err != nil { - return err - } - - tokenID := args[1] - if err := collection.ValidateNFTID(tokenID); err != nil { - return err - } - - queryClient := collection.NewQueryClient(clientCtx) - req := &collection.QueryRootRequest{ - ContractId: contractID, - TokenId: tokenID, - } - res, err := queryClient.Root(cmd.Context(), req) - if err != nil { - return err - } - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - return cmd -} - -func NewQueryCmdParent() *cobra.Command { - cmd := &cobra.Command{ - Use: "parent [contract-id] [token-id]", - Args: cobra.ExactArgs(2), - Short: "query parent of an nft", - Example: fmt.Sprintf(`$ %s query %s parent [contract-id] [token-id]`, version.AppName, collection.ModuleName), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - contractID := args[0] - if err := collection.ValidateContractID(contractID); err != nil { - return err - } - - tokenID := args[1] - if err := collection.ValidateNFTID(tokenID); err != nil { - return err - } - - queryClient := collection.NewQueryClient(clientCtx) - req := &collection.QueryParentRequest{ - ContractId: contractID, - TokenId: tokenID, - } - res, err := queryClient.Parent(cmd.Context(), req) - if err != nil { - return err - } - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - return cmd -} - -func NewQueryCmdChildren() *cobra.Command { - cmd := &cobra.Command{ - Use: "children [contract-id] [token-id]", - Args: cobra.ExactArgs(2), - Short: "query children of an nft", - Example: fmt.Sprintf(`$ %s query %s children [contract-id] [token-id]`, version.AppName, collection.ModuleName), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - contractID := args[0] - if err := collection.ValidateContractID(contractID); err != nil { - return err - } - - tokenID := args[1] - if err := collection.ValidateNFTID(tokenID); err != nil { - return err - } - - queryClient := collection.NewQueryClient(clientCtx) - pageReq, err := client.ReadPageRequest(cmd.Flags()) - if err != nil { - return err - } - req := &collection.QueryChildrenRequest{ - ContractId: contractID, - TokenId: tokenID, - Pagination: pageReq, - } - res, err := queryClient.Children(cmd.Context(), req) - if err != nil { - return err - } - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - flags.AddPaginationFlagsToCmd(cmd, "children") - return cmd -} - func NewQueryCmdGranteeGrants() *cobra.Command { cmd := &cobra.Command{ Use: "grantee-grants [contract-id] [grantee]", diff --git a/x/collection/client/cli/tx.go b/x/collection/client/cli/tx.go index 86d97d1563..e089251fb3 100644 --- a/x/collection/client/cli/tx.go +++ b/x/collection/client/cli/tx.go @@ -55,10 +55,6 @@ func NewTxCmd() *cobra.Command { NewTxCmdIssueNFT(), NewTxCmdMintFT(), NewTxCmdMintNFT(), - NewTxCmdAttach(), - NewTxCmdDetach(), - NewTxCmdOperatorAttach(), - NewTxCmdOperatorDetach(), NewTxCmdGrantPermission(), NewTxCmdRevokePermission(), NewTxCmdAuthorizeOperator(), @@ -708,150 +704,6 @@ func NewTxCmdModify() *cobra.Command { return cmd } -func NewTxCmdAttach() *cobra.Command { - cmd := &cobra.Command{ - Use: "attach [contract-id] [holder] [subject] [target]", - Args: cobra.ExactArgs(4), - Short: "attach a token to another", - Long: strings.TrimSpace(fmt.Sprintf(` - $ %s tx %s attach [contract-id] [holder] [subject] [target]`, version.AppName, collection.ModuleName), - ), - RunE: func(cmd *cobra.Command, args []string) error { - holder := args[1] - if err := cmd.Flags().Set(flags.FlagFrom, holder); err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := collection.MsgAttach{ - ContractId: args[0], - From: holder, - TokenId: args[2], - ToTokenId: args[3], - } - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - return cmd -} - -func NewTxCmdDetach() *cobra.Command { - cmd := &cobra.Command{ - Use: "detach [contract-id] [holder] [subject]", - Args: cobra.ExactArgs(3), - Short: "detach a token from its parent", - Long: strings.TrimSpace(fmt.Sprintf(` - $ %s tx %s detach [contract-id] [holder] [subject]`, version.AppName, collection.ModuleName), - ), - RunE: func(cmd *cobra.Command, args []string) error { - holder := args[1] - if err := cmd.Flags().Set(flags.FlagFrom, holder); err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := collection.MsgDetach{ - ContractId: args[0], - From: holder, - TokenId: args[2], - } - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - return cmd -} - -func NewTxCmdOperatorAttach() *cobra.Command { - cmd := &cobra.Command{ - Use: "operator-attach [contract-id] [operator] [holder] [subject] [target]", - Args: cobra.ExactArgs(5), - Short: "attach a token to another by the operator", - Long: strings.TrimSpace(fmt.Sprintf(` - $ %s tx %s operator-attach [contract-id] [operator] [holder] [subject] [target]`, version.AppName, collection.ModuleName), - ), - RunE: func(cmd *cobra.Command, args []string) error { - operator := args[1] - if err := cmd.Flags().Set(flags.FlagFrom, operator); err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := collection.MsgOperatorAttach{ - ContractId: args[0], - Operator: operator, - From: args[2], - TokenId: args[3], - ToTokenId: args[4], - } - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - return cmd -} - -func NewTxCmdOperatorDetach() *cobra.Command { - cmd := &cobra.Command{ - Use: "operator-detach [contract-id] [operator] [holder] [subject]", - Args: cobra.ExactArgs(4), - Short: "detach a token from its parent by the operator", - Long: strings.TrimSpace(fmt.Sprintf(` - $ %s tx %s operator-detach [contract-id] [operator] [holder] [subject]`, version.AppName, collection.ModuleName), - ), - RunE: func(cmd *cobra.Command, args []string) error { - operator := args[1] - if err := cmd.Flags().Set(flags.FlagFrom, operator); err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := collection.MsgOperatorDetach{ - ContractId: args[0], - Operator: operator, - From: args[2], - TokenId: args[3], - } - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - return cmd -} - func NewTxCmdGrantPermission() *cobra.Command { cmd := &cobra.Command{ Use: "grant-permission [contract-id] [granter] [grantee] [permission]", diff --git a/x/collection/codec.go b/x/collection/codec.go index eaa3072f58..9f7ed86137 100644 --- a/x/collection/codec.go +++ b/x/collection/codec.go @@ -29,10 +29,6 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { legacy.RegisterAminoMsg(cdc, &MsgModify{}, "lbm-sdk/collection/MsgModify") // Changed msgName due to conflict with `x/token` legacy.RegisterAminoMsg(cdc, &MsgGrantPermission{}, "lbm-sdk/collection/MsgGrantPermission") // Changed msgName due to conflict with `x/token` legacy.RegisterAminoMsg(cdc, &MsgRevokePermission{}, "lbm-sdk/collection/MsgRevokePermission") // Changed msgName due to conflict with `x/token` - legacy.RegisterAminoMsg(cdc, &MsgAttach{}, "lbm-sdk/MsgAttach") - legacy.RegisterAminoMsg(cdc, &MsgDetach{}, "lbm-sdk/MsgDetach") - legacy.RegisterAminoMsg(cdc, &MsgOperatorAttach{}, "lbm-sdk/MsgOperatorAttach") - legacy.RegisterAminoMsg(cdc, &MsgOperatorDetach{}, "lbm-sdk/MsgOperatorDetach") } func RegisterInterfaces(registry types.InterfaceRegistry) { @@ -42,8 +38,6 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { &MsgIssueNFT{}, &MsgMintFT{}, &MsgMintNFT{}, - &MsgAttach{}, - &MsgDetach{}, &MsgSendFT{}, &MsgOperatorSendFT{}, &MsgSendNFT{}, @@ -57,8 +51,6 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { &MsgModify{}, &MsgGrantPermission{}, &MsgRevokePermission{}, - &MsgOperatorAttach{}, - &MsgOperatorDetach{}, ) registry.RegisterInterface( diff --git a/x/collection/collection.go b/x/collection/collection.go index 9701fe0749..2bce50dfba 100644 --- a/x/collection/collection.go +++ b/x/collection/collection.go @@ -36,7 +36,6 @@ func DefaultNextClassIDs(contractID string) NextClassIDs { } func validateParams(_ Params) error { - // limits are uint32, so no need to validate them. return nil } diff --git a/x/collection/collection.pb.go b/x/collection/collection.pb.go index 3cd3daec5d..81c7cb1834 100644 --- a/x/collection/collection.pb.go +++ b/x/collection/collection.pb.go @@ -105,8 +105,6 @@ func (LegacyPermission) EnumDescriptor() ([]byte, []int) { // Params defines the parameters for the collection module. type Params struct { - DepthLimit uint32 `protobuf:"varint,1,opt,name=depth_limit,json=depthLimit,proto3" json:"depth_limit,omitempty"` - WidthLimit uint32 `protobuf:"varint,2,opt,name=width_limit,json=widthLimit,proto3" json:"width_limit,omitempty"` } func (m *Params) Reset() { *m = Params{} } @@ -725,65 +723,63 @@ func init() { } var fileDescriptor_bb15fea9f4c37044 = []byte{ - // 917 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4d, 0x6f, 0xdb, 0x46, - 0x10, 0x25, 0xf5, 0x65, 0x69, 0x82, 0x38, 0xca, 0x56, 0x71, 0x65, 0x15, 0xa6, 0x08, 0x5e, 0x9a, - 0x26, 0x90, 0xd4, 0x7c, 0xb4, 0x28, 0x0c, 0xf4, 0x60, 0x29, 0x52, 0xca, 0xc2, 0x96, 0x0d, 0x4a, - 0x2e, 0x90, 0x5e, 0x04, 0x8a, 0x5c, 0x4b, 0x0b, 0x93, 0x5c, 0x81, 0x5c, 0xd9, 0x55, 0x7e, 0x41, - 0x20, 0xa0, 0x40, 0x8f, 0xbd, 0x08, 0x30, 0xd0, 0x1e, 0x52, 0xf4, 0xea, 0x73, 0xcf, 0x46, 0x4e, - 0x41, 0x4e, 0x45, 0x0f, 0x41, 0x6b, 0x5f, 0x7a, 0xef, 0x1f, 0x28, 0xb8, 0xa4, 0x24, 0x56, 0x56, - 0x9c, 0xa0, 0x05, 0x7a, 0x9b, 0x99, 0x7d, 0x6f, 0x66, 0xf6, 0xcd, 0x68, 0x45, 0x50, 0xac, 0xae, - 0x5d, 0x31, 0xa8, 0x65, 0x61, 0x83, 0x11, 0xea, 0x54, 0x8e, 0xee, 0x45, 0xbc, 0xf2, 0xc0, 0xa5, - 0x8c, 0xa2, 0x9b, 0x56, 0xd7, 0x2e, 0x47, 0xa2, 0x47, 0xf7, 0x0a, 0xb9, 0x1e, 0xed, 0x51, 0x7e, - 0x5a, 0xf1, 0xad, 0x00, 0x58, 0x58, 0x37, 0xa8, 0x67, 0x53, 0xaf, 0x13, 0x1c, 0x04, 0x4e, 0x70, - 0xa4, 0x7c, 0x09, 0xa9, 0x3d, 0xdd, 0xd5, 0x6d, 0x0f, 0x15, 0xe1, 0x9a, 0x89, 0x07, 0xac, 0xdf, - 0xb1, 0x88, 0x4d, 0x58, 0x5e, 0x94, 0xc5, 0xdb, 0xd7, 0x35, 0xe0, 0xa1, 0x6d, 0x3f, 0xe2, 0x03, - 0x8e, 0x89, 0x39, 0x03, 0xc4, 0x02, 0x00, 0x0f, 0x71, 0x80, 0xd2, 0x86, 0x74, 0x8d, 0x3a, 0xcc, - 0xd5, 0x0d, 0x86, 0x56, 0x21, 0x46, 0x4c, 0x9e, 0x24, 0xa3, 0xc5, 0x88, 0x89, 0x10, 0x24, 0x1c, - 0xdd, 0xc6, 0x9c, 0x95, 0xd1, 0xb8, 0xed, 0xc7, 0x6c, 0xcc, 0xf4, 0x7c, 0x3c, 0x88, 0xf9, 0x36, - 0xca, 0x42, 0x7c, 0xe8, 0x92, 0x7c, 0x82, 0x87, 0x7c, 0x53, 0xf9, 0x56, 0x84, 0x95, 0x46, 0xbb, - 0x66, 0xe9, 0x9e, 0xf7, 0xaf, 0xb3, 0x16, 0x20, 0x6d, 0x62, 0x83, 0xd8, 0xba, 0xe5, 0xf1, 0xd4, - 0x49, 0x6d, 0xe6, 0xfb, 0x67, 0x36, 0x71, 0x98, 0xde, 0xb5, 0x70, 0x3e, 0x29, 0x8b, 0xb7, 0xd3, - 0xda, 0xcc, 0xdf, 0x44, 0xcf, 0x4e, 0x8a, 0xe2, 0x8b, 0xd3, 0x12, 0xb4, 0xe9, 0x21, 0x76, 0x78, - 0x0f, 0xca, 0x57, 0x90, 0x6e, 0xfe, 0xc7, 0x7e, 0x96, 0xe6, 0xfd, 0x02, 0xe2, 0xcd, 0x46, 0x1b, - 0xad, 0x43, 0x9a, 0xf9, 0xc1, 0xce, 0x2c, 0xf1, 0x0a, 0xf7, 0xd5, 0x77, 0xce, 0xae, 0xfc, 0x24, - 0x42, 0x7a, 0xf7, 0xd8, 0xc1, 0xae, 0x9f, 0xaf, 0x08, 0xd7, 0x8c, 0x70, 0x28, 0xf3, 0x94, 0x30, - 0x0d, 0xa9, 0xe6, 0x3f, 0x0a, 0xc6, 0x96, 0x17, 0x8c, 0x2f, 0x29, 0x98, 0x88, 0xc8, 0x5b, 0x86, - 0x24, 0xf5, 0xeb, 0x71, 0xfd, 0x32, 0xd5, 0xfc, 0xab, 0xd3, 0x52, 0x2e, 0xdc, 0xb2, 0x2d, 0xd3, - 0x74, 0xb1, 0xe7, 0xb5, 0x98, 0x4b, 0x9c, 0x9e, 0x16, 0xc0, 0x36, 0x33, 0x2f, 0x4e, 0x4b, 0x49, - 0x7e, 0x75, 0xe5, 0x67, 0x11, 0x62, 0xff, 0x53, 0x97, 0xd1, 0x25, 0x48, 0x5e, 0xb1, 0x04, 0xa9, - 0x85, 0x25, 0x88, 0x74, 0xeb, 0x41, 0x86, 0x1b, 0xed, 0xd1, 0x00, 0xbf, 0xbd, 0xe7, 0x0d, 0x80, - 0xa0, 0x67, 0x36, 0x1a, 0x4c, 0xa7, 0x96, 0x61, 0x33, 0xfe, 0x3b, 0xf6, 0xad, 0x0c, 0x20, 0x51, - 0xa3, 0xc4, 0xb9, 0x6a, 0x33, 0x6a, 0x90, 0xd2, 0x6d, 0x3a, 0x74, 0x82, 0x5f, 0x65, 0xa6, 0x7a, - 0xf7, 0xec, 0x75, 0x51, 0xf8, 0xed, 0x75, 0xf1, 0x56, 0x30, 0x05, 0xcf, 0x3c, 0x2c, 0x13, 0x5a, - 0xb1, 0x75, 0xd6, 0x2f, 0xab, 0x0e, 0x7b, 0x75, 0x5a, 0x82, 0x70, 0x3c, 0xaa, 0xc3, 0xb4, 0x90, - 0xba, 0x99, 0xfe, 0xfe, 0xa4, 0x28, 0xfc, 0x79, 0x52, 0x14, 0x95, 0xa7, 0x90, 0x7c, 0xec, 0xea, - 0x0e, 0x43, 0xf7, 0x61, 0xa5, 0xe7, 0x1b, 0x18, 0x07, 0x15, 0xaf, 0x18, 0xed, 0x14, 0x88, 0x3e, - 0x07, 0x18, 0x60, 0xd7, 0x26, 0x9e, 0x47, 0xa8, 0xc3, 0xfb, 0x59, 0xbd, 0xbf, 0x51, 0xbe, 0xf4, - 0x54, 0x95, 0xf7, 0x66, 0x20, 0x2d, 0x42, 0x50, 0x8e, 0xe1, 0xfa, 0xd6, 0x90, 0xf5, 0xa9, 0x4b, - 0x9e, 0xea, 0x3e, 0x14, 0x7d, 0x0c, 0xa9, 0x3e, 0xb5, 0x4c, 0xec, 0xbe, 0xb5, 0x85, 0x10, 0x87, - 0x1e, 0x42, 0x9a, 0x0e, 0xb0, 0xab, 0x33, 0xea, 0x86, 0x7a, 0xbc, 0x99, 0x33, 0x43, 0x2a, 0x0f, - 0x20, 0xb3, 0xc5, 0x98, 0x4b, 0xba, 0x43, 0x86, 0xfd, 0x67, 0xe8, 0x10, 0x8f, 0x42, 0x99, 0x7d, - 0x13, 0xe5, 0x20, 0x79, 0xa4, 0x5b, 0xc3, 0xe9, 0x1c, 0x03, 0xe7, 0xce, 0x5f, 0x22, 0xc0, 0xfc, - 0x22, 0xe8, 0x13, 0x58, 0xdb, 0xab, 0x6b, 0x3b, 0x6a, 0xab, 0xa5, 0xee, 0x36, 0x3b, 0xfb, 0xcd, - 0xd6, 0x5e, 0xbd, 0xa6, 0x36, 0xd4, 0xfa, 0xa3, 0xac, 0x50, 0x58, 0x1f, 0x4f, 0xe4, 0x5b, 0x73, - 0xec, 0xbe, 0xe3, 0x0d, 0xb0, 0x41, 0x0e, 0x08, 0x36, 0xd1, 0x47, 0x90, 0x8d, 0xd0, 0xd4, 0x56, - 0x6b, 0xbf, 0x9e, 0x15, 0x0b, 0xef, 0x8d, 0x27, 0xf2, 0x8d, 0x39, 0x41, 0xf5, 0xbc, 0x21, 0x46, - 0x77, 0xe1, 0x66, 0x04, 0xba, 0xb3, 0xfb, 0x48, 0x6d, 0x3c, 0xc9, 0xc6, 0x0a, 0xb9, 0xf1, 0x44, - 0xce, 0xce, 0xb1, 0x3b, 0xd4, 0x24, 0x07, 0x23, 0xf4, 0x21, 0xdc, 0x88, 0x82, 0xd5, 0x66, 0x3b, - 0x1b, 0x2f, 0xa0, 0xf1, 0x44, 0x5e, 0x8d, 0x40, 0x89, 0xc3, 0x16, 0x80, 0xd5, 0x7d, 0xad, 0x99, - 0x4d, 0x2c, 0x02, 0xab, 0x43, 0xd7, 0x29, 0x24, 0x9e, 0xfd, 0x20, 0x09, 0x77, 0x7e, 0x89, 0x41, - 0x76, 0x1b, 0xf7, 0x74, 0x63, 0x14, 0xb9, 0x7b, 0x15, 0x36, 0xb6, 0xeb, 0x8f, 0xb7, 0x6a, 0x4f, - 0x3a, 0x6f, 0x94, 0xa0, 0x38, 0x9e, 0xc8, 0x1f, 0x2c, 0x12, 0xa3, 0x42, 0x7c, 0x0a, 0xef, 0x5f, - 0xce, 0x31, 0xd5, 0x83, 0x0b, 0xb8, 0xc8, 0x0e, 0x54, 0xf9, 0x0c, 0xf2, 0x97, 0x79, 0x33, 0x71, - 0x0a, 0xe3, 0x89, 0xbc, 0xb6, 0x48, 0x0c, 0x25, 0x7a, 0x08, 0x6b, 0x4b, 0x98, 0x81, 0x52, 0xf9, - 0xf1, 0x44, 0xce, 0x5d, 0xe2, 0xf9, 0x7a, 0x2d, 0x65, 0x85, 0xb2, 0x2d, 0x65, 0x71, 0xf1, 0xd2, - 0xbe, 0x78, 0xcf, 0x7f, 0x94, 0x84, 0xea, 0xee, 0xd9, 0x1f, 0x92, 0xf0, 0xfc, 0x5c, 0x12, 0xce, - 0xce, 0x25, 0xf1, 0xe5, 0xb9, 0x24, 0xfe, 0x7e, 0x2e, 0x89, 0xdf, 0x5d, 0x48, 0xc2, 0xcb, 0x0b, - 0x49, 0xf8, 0xf5, 0x42, 0x12, 0xbe, 0x2e, 0xf5, 0x08, 0xeb, 0x0f, 0xbb, 0x65, 0x83, 0xda, 0x95, - 0x06, 0x71, 0x3c, 0xa3, 0x4f, 0xf4, 0xca, 0x41, 0x68, 0x94, 0x3c, 0xf3, 0xb0, 0xf2, 0x4d, 0xe4, - 0x83, 0xa0, 0x9b, 0xe2, 0xff, 0xe6, 0x0f, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x86, 0x63, - 0x97, 0x37, 0x08, 0x00, 0x00, + // 889 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xde, 0xf5, 0xaf, 0xac, 0x1f, 0x22, 0xdd, 0x2e, 0x6e, 0x70, 0x8c, 0xb2, 0x5e, 0xed, 0x85, + 0xd2, 0xca, 0x36, 0xfd, 0x01, 0x42, 0x91, 0x38, 0xc4, 0xae, 0x5d, 0x16, 0x35, 0x4e, 0x64, 0x3b, + 0x48, 0xe5, 0x12, 0xad, 0x77, 0x27, 0xf6, 0x28, 0xbb, 0x33, 0xd6, 0xce, 0x38, 0xc5, 0xfd, 0x0b, + 0x2a, 0x4b, 0x48, 0x1c, 0xb9, 0x58, 0x8a, 0x04, 0x87, 0x22, 0xae, 0x39, 0x73, 0x8e, 0x7a, 0xaa, + 0x7a, 0x42, 0x1c, 0x2a, 0x48, 0x2e, 0xdc, 0xf9, 0x07, 0xd0, 0xfe, 0xb0, 0xbd, 0x38, 0x6e, 0x1a, + 0x81, 0xc4, 0xed, 0xbd, 0x37, 0xdf, 0xf7, 0xde, 0x37, 0xdf, 0x1b, 0xed, 0x82, 0xee, 0x74, 0xdd, + 0x8a, 0x45, 0x1d, 0x07, 0x59, 0x1c, 0x53, 0x52, 0x39, 0xba, 0x13, 0xcb, 0xca, 0x03, 0x8f, 0x72, + 0xaa, 0x5c, 0x77, 0xba, 0x6e, 0x39, 0x56, 0x3d, 0xba, 0x53, 0xc8, 0xf5, 0x68, 0x8f, 0x06, 0xa7, + 0x15, 0x3f, 0x0a, 0x81, 0x85, 0x75, 0x8b, 0x32, 0x97, 0xb2, 0xfd, 0xf0, 0x20, 0x4c, 0xc2, 0x23, + 0x7d, 0x15, 0x32, 0xbb, 0xa6, 0x67, 0xba, 0xec, 0xcb, 0x94, 0x24, 0xca, 0x49, 0xbd, 0x03, 0x52, + 0x8d, 0x12, 0xee, 0x99, 0x16, 0x57, 0x56, 0x21, 0x81, 0xed, 0xbc, 0xa8, 0x89, 0x37, 0xb3, 0xad, + 0x04, 0xb6, 0x15, 0x05, 0x52, 0xc4, 0x74, 0x51, 0x3e, 0x11, 0x54, 0x82, 0xd8, 0xaf, 0xb9, 0x88, + 0x9b, 0xf9, 0x64, 0x58, 0xf3, 0x63, 0x45, 0x86, 0xe4, 0xd0, 0xc3, 0xf9, 0x54, 0x50, 0xf2, 0x43, + 0xfd, 0x5b, 0x11, 0x56, 0x1a, 0x9d, 0x9a, 0x63, 0x32, 0xf6, 0xaf, 0xbb, 0x16, 0x40, 0xb2, 0x91, + 0x85, 0x5d, 0xd3, 0x61, 0x41, 0xeb, 0x74, 0x6b, 0x96, 0xfb, 0x67, 0x2e, 0x26, 0xdc, 0xec, 0x3a, + 0x28, 0x9f, 0xd6, 0xc4, 0x9b, 0x52, 0x6b, 0x96, 0x6f, 0x2a, 0xcf, 0x8e, 0x8b, 0xe2, 0x8b, 0x93, + 0x12, 0x74, 0xe8, 0x21, 0x22, 0x81, 0x06, 0xfd, 0x2b, 0x90, 0x9a, 0xff, 0x51, 0xcf, 0xd2, 0xbe, + 0x5f, 0x40, 0xb2, 0xd9, 0xe8, 0x28, 0xeb, 0x20, 0x71, 0xbf, 0xb8, 0x3f, 0x6b, 0xbc, 0x12, 0xe4, + 0xc6, 0x95, 0xbb, 0xeb, 0x3f, 0x89, 0x20, 0xed, 0x3c, 0x21, 0xc8, 0xf3, 0xfb, 0x15, 0xe1, 0x1d, + 0x2b, 0x5a, 0xca, 0xbc, 0x25, 0x4c, 0x4b, 0x86, 0xfd, 0x8f, 0x81, 0x89, 0xe5, 0x03, 0x93, 0x4b, + 0x06, 0xa6, 0x62, 0xf6, 0x96, 0x21, 0x4d, 0xfd, 0x79, 0x81, 0x7f, 0xd9, 0x6a, 0xfe, 0xd5, 0x49, + 0x29, 0x17, 0xbd, 0x94, 0x2d, 0xdb, 0xf6, 0x10, 0x63, 0x6d, 0xee, 0x61, 0xd2, 0x6b, 0x85, 0xb0, + 0xcd, 0xec, 0x8b, 0x93, 0x52, 0x3a, 0xb8, 0xba, 0xfe, 0xb3, 0x08, 0x89, 0xff, 0x49, 0x65, 0xfc, + 0x11, 0xa4, 0x2f, 0x79, 0x04, 0x99, 0x85, 0x47, 0x10, 0x53, 0xcb, 0x20, 0x1b, 0x04, 0x9d, 0xd1, + 0x00, 0xbd, 0x5d, 0xf3, 0x06, 0x40, 0xa8, 0x99, 0x8f, 0x06, 0xd3, 0xad, 0x65, 0xf9, 0x8c, 0x7f, + 0x45, 0xdd, 0xfa, 0x00, 0x52, 0x35, 0x8a, 0xc9, 0x65, 0x2f, 0xa3, 0x06, 0x19, 0xd3, 0xa5, 0x43, + 0xc2, 0xc3, 0x29, 0xd5, 0xdb, 0xa7, 0xaf, 0x8b, 0xc2, 0x6f, 0xaf, 0x8b, 0x37, 0xc2, 0x2d, 0x30, + 0xfb, 0xb0, 0x8c, 0x69, 0xc5, 0x35, 0x79, 0xbf, 0x6c, 0x10, 0xfe, 0xea, 0xa4, 0x04, 0xd1, 0x7a, + 0x0c, 0xc2, 0x5b, 0x11, 0x75, 0x53, 0xfa, 0xfe, 0xb8, 0x28, 0xfc, 0x79, 0x5c, 0x14, 0xf5, 0xa7, + 0x90, 0x7e, 0xe8, 0x99, 0x84, 0x2b, 0x77, 0x61, 0xa5, 0xe7, 0x07, 0x08, 0x85, 0x13, 0x2f, 0x59, + 0xed, 0x14, 0xa8, 0x7c, 0x0e, 0x30, 0x40, 0x9e, 0x8b, 0x19, 0xc3, 0x94, 0x04, 0x7a, 0x56, 0xef, + 0x6e, 0x94, 0x2f, 0x7c, 0x6e, 0xca, 0xbb, 0x33, 0x50, 0x2b, 0x46, 0xd0, 0x9f, 0xc0, 0xbb, 0x5b, + 0x43, 0xde, 0xa7, 0x1e, 0x7e, 0x6a, 0xfa, 0x50, 0xe5, 0x63, 0xc8, 0xf4, 0xa9, 0x63, 0x23, 0xef, + 0xad, 0x12, 0x22, 0x9c, 0x72, 0x1f, 0x24, 0x3a, 0x40, 0x9e, 0xc9, 0xa9, 0x17, 0xf9, 0xf1, 0x66, + 0xce, 0x0c, 0xa9, 0xdf, 0x83, 0xec, 0x16, 0xe7, 0x1e, 0xee, 0x0e, 0x39, 0xf2, 0x3f, 0x43, 0x87, + 0x68, 0x14, 0xd9, 0xec, 0x87, 0x4a, 0x0e, 0xd2, 0x47, 0xa6, 0x33, 0x9c, 0xee, 0x31, 0x4c, 0x6e, + 0xfd, 0x25, 0x02, 0xcc, 0x2f, 0xa2, 0x7c, 0x02, 0x6b, 0xbb, 0xf5, 0xd6, 0xb6, 0xd1, 0x6e, 0x1b, + 0x3b, 0xcd, 0xfd, 0xbd, 0x66, 0x7b, 0xb7, 0x5e, 0x33, 0x1a, 0x46, 0xfd, 0x81, 0x2c, 0x14, 0xd6, + 0xc7, 0x13, 0xed, 0xc6, 0x1c, 0xbb, 0x47, 0xd8, 0x00, 0x59, 0xf8, 0x00, 0x23, 0x5b, 0xf9, 0x08, + 0xe4, 0x18, 0xcd, 0x68, 0xb7, 0xf7, 0xea, 0xb2, 0x58, 0x78, 0x6f, 0x3c, 0xd1, 0xae, 0xcd, 0x09, + 0x06, 0x63, 0x43, 0xa4, 0xdc, 0x86, 0xeb, 0x31, 0xe8, 0xf6, 0xce, 0x03, 0xa3, 0xf1, 0x58, 0x4e, + 0x14, 0x72, 0xe3, 0x89, 0x26, 0xcf, 0xb1, 0xdb, 0xd4, 0xc6, 0x07, 0x23, 0xe5, 0x43, 0xb8, 0x16, + 0x07, 0x1b, 0xcd, 0x8e, 0x9c, 0x2c, 0x28, 0xe3, 0x89, 0xb6, 0x1a, 0x83, 0x62, 0xc2, 0x17, 0x80, + 0xd5, 0xbd, 0x56, 0x53, 0x4e, 0x2d, 0x02, 0xab, 0x43, 0x8f, 0x14, 0x52, 0xcf, 0x7e, 0x50, 0x85, + 0x5b, 0xbf, 0x24, 0x40, 0x7e, 0x84, 0x7a, 0xa6, 0x35, 0x8a, 0xdd, 0xbd, 0x0a, 0x1b, 0x8f, 0xea, + 0x0f, 0xb7, 0x6a, 0x8f, 0xf7, 0xdf, 0x68, 0x41, 0x71, 0x3c, 0xd1, 0x3e, 0x58, 0x24, 0xc6, 0x8d, + 0xf8, 0x14, 0xde, 0xbf, 0xd8, 0x63, 0xea, 0x47, 0x60, 0xe0, 0x22, 0x3b, 0x74, 0xe5, 0x33, 0xc8, + 0x5f, 0xe4, 0xcd, 0xcc, 0x29, 0x8c, 0x27, 0xda, 0xda, 0x22, 0x31, 0xb2, 0xe8, 0x3e, 0xac, 0x2d, + 0x61, 0x86, 0x4e, 0xe5, 0xc7, 0x13, 0x2d, 0x77, 0x81, 0xe7, 0xfb, 0xb5, 0x94, 0x15, 0xd9, 0xb6, + 0x94, 0x15, 0x98, 0x27, 0xf9, 0xe6, 0x3d, 0xff, 0x51, 0x15, 0xaa, 0x3b, 0xa7, 0x7f, 0xa8, 0xc2, + 0xf3, 0x33, 0x55, 0x38, 0x3d, 0x53, 0xc5, 0x97, 0x67, 0xaa, 0xf8, 0xfb, 0x99, 0x2a, 0x7e, 0x77, + 0xae, 0x0a, 0x2f, 0xcf, 0x55, 0xe1, 0xd7, 0x73, 0x55, 0xf8, 0xba, 0xd4, 0xc3, 0xbc, 0x3f, 0xec, + 0x96, 0x2d, 0xea, 0x56, 0x1a, 0x98, 0x30, 0xab, 0x8f, 0xcd, 0xca, 0x41, 0x14, 0x94, 0x98, 0x7d, + 0x58, 0xf9, 0x26, 0xf6, 0x53, 0xef, 0x66, 0x82, 0x3f, 0xf2, 0xbd, 0xbf, 0x03, 0x00, 0x00, 0xff, + 0xff, 0xef, 0x69, 0x2f, 0x84, 0xfb, 0x07, 0x00, 0x00, } func (this *Coin) Equal(that interface{}) bool { @@ -833,16 +829,6 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.WidthLimit != 0 { - i = encodeVarintCollection(dAtA, i, uint64(m.WidthLimit)) - i-- - dAtA[i] = 0x10 - } - if m.DepthLimit != 0 { - i = encodeVarintCollection(dAtA, i, uint64(m.DepthLimit)) - i-- - dAtA[i] = 0x8 - } return len(dAtA) - i, nil } @@ -1385,12 +1371,6 @@ func (m *Params) Size() (n int) { } var l int _ = l - if m.DepthLimit != 0 { - n += 1 + sovCollection(uint64(m.DepthLimit)) - } - if m.WidthLimit != 0 { - n += 1 + sovCollection(uint64(m.WidthLimit)) - } return n } @@ -1673,44 +1653,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DepthLimit", wireType) - } - m.DepthLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCollection - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DepthLimit |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WidthLimit", wireType) - } - m.WidthLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCollection - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WidthLimit |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipCollection(dAtA[iNdEx:]) diff --git a/x/collection/errors.go b/x/collection/errors.go index d94f53f163..de7bf23b84 100644 --- a/x/collection/errors.go +++ b/x/collection/errors.go @@ -7,42 +7,34 @@ import ( const collectionCodespace = ModuleName var ( - ErrTokenNotExist = errorsmod.Register(collectionCodespace, 2, "token symbol, token-id does not exist") - ErrTokenNotMintable = errorsmod.Register(collectionCodespace, 3, "token symbol, token-id is not mintable") - ErrInvalidTokenName = errorsmod.Register(collectionCodespace, 4, "token name should not be empty") - ErrInvalidTokenID = errorsmod.Register(collectionCodespace, 5, "invalid token id") - ErrInvalidTokenDecimals = errorsmod.Register(collectionCodespace, 6, "token decimals should be within the range in 0 ~ 18") - ErrInvalidIssueFT = errorsmod.Register(collectionCodespace, 7, "Issuing token with amount[1], decimals[0], mintable[false] prohibited. Issue nft token instead.") - ErrInvalidAmount = errorsmod.Register(collectionCodespace, 8, "invalid token amount") - ErrInvalidBaseImgURILength = errorsmod.Register(collectionCodespace, 9, "invalid base_img_uri length") - ErrInvalidNameLength = errorsmod.Register(collectionCodespace, 10, "invalid name length") - ErrInvalidTokenType = errorsmod.Register(collectionCodespace, 11, "invalid token type pattern found") - ErrInvalidTokenIndex = errorsmod.Register(collectionCodespace, 12, "invalid token index pattern found") - ErrCollectionNotExist = errorsmod.Register(collectionCodespace, 14, "collection does not exists") - ErrTokenTypeNotExist = errorsmod.Register(collectionCodespace, 16, "token type for contract_id, token-type does not exist") - ErrTokenNoPermission = errorsmod.Register(collectionCodespace, 20, "account does not have the permission") - ErrTokenAlreadyAChild = errorsmod.Register(collectionCodespace, 21, "token is already a child of some other") - ErrTokenNotAChild = errorsmod.Register(collectionCodespace, 22, "token is not a child of some other") - ErrTokenNotOwnedBy = errorsmod.Register(collectionCodespace, 23, "token is being not owned by") - ErrTokenCannotTransferChildToken = errorsmod.Register(collectionCodespace, 24, "cannot transfer a child token") - ErrTokenNotNFT = errorsmod.Register(collectionCodespace, 25, "token is not a NFT") - ErrCannotAttachToItself = errorsmod.Register(collectionCodespace, 26, "cannot attach token to itself") - ErrCannotAttachToADescendant = errorsmod.Register(collectionCodespace, 27, "cannot attach token to a descendant") - ErrApproverProxySame = errorsmod.Register(collectionCodespace, 28, "approver is same with proxy") - ErrCollectionNotApproved = errorsmod.Register(collectionCodespace, 29, "proxy is not approved on the collection") - ErrCollectionAlreadyApproved = errorsmod.Register(collectionCodespace, 30, "proxy is already approved on the collection") - ErrInvalidChangesFieldCount = errorsmod.Register(collectionCodespace, 35, "invalid count of field changes") - ErrEmptyChanges = errorsmod.Register(collectionCodespace, 36, "changes is empty") - ErrInvalidChangesField = errorsmod.Register(collectionCodespace, 37, "invalid field of changes") - ErrTokenIndexWithoutType = errorsmod.Register(collectionCodespace, 38, "There is a token index but no token type") - ErrTokenTypeFTWithoutIndex = errorsmod.Register(collectionCodespace, 39, "There is a token type of ft but no token index") - ErrInsufficientToken = errorsmod.Register(collectionCodespace, 40, "insufficient token") - ErrDuplicateChangesField = errorsmod.Register(collectionCodespace, 41, "duplicate field of changes") - ErrInvalidMetaLength = errorsmod.Register(collectionCodespace, 42, "invalid meta length") - ErrEmptyField = errorsmod.Register(collectionCodespace, 44, "required field cannot be empty") - ErrCompositionTooDeep = errorsmod.Register(collectionCodespace, 45, "cannot attach token (composition too deep)") - ErrCompositionTooWide = errorsmod.Register(collectionCodespace, 46, "cannot attach token (composition too wide)") - ErrBurnNonRootNFT = errorsmod.Register(collectionCodespace, 47, "cannot burn non-root NFTs") + ErrTokenNotExist = errorsmod.Register(collectionCodespace, 2, "token symbol, token-id does not exist") + ErrTokenNotMintable = errorsmod.Register(collectionCodespace, 3, "token symbol, token-id is not mintable") + ErrInvalidTokenName = errorsmod.Register(collectionCodespace, 4, "token name should not be empty") + ErrInvalidTokenID = errorsmod.Register(collectionCodespace, 5, "invalid token id") + ErrInvalidTokenDecimals = errorsmod.Register(collectionCodespace, 6, "token decimals should be within the range in 0 ~ 18") + ErrInvalidIssueFT = errorsmod.Register(collectionCodespace, 7, "Issuing token with amount[1], decimals[0], mintable[false] prohibited. Issue nft token instead.") + ErrInvalidAmount = errorsmod.Register(collectionCodespace, 8, "invalid token amount") + ErrInvalidBaseImgURILength = errorsmod.Register(collectionCodespace, 9, "invalid base_img_uri length") + ErrInvalidNameLength = errorsmod.Register(collectionCodespace, 10, "invalid name length") + ErrInvalidTokenType = errorsmod.Register(collectionCodespace, 11, "invalid token type pattern found") + ErrInvalidTokenIndex = errorsmod.Register(collectionCodespace, 12, "invalid token index pattern found") + ErrCollectionNotExist = errorsmod.Register(collectionCodespace, 14, "collection does not exists") + ErrTokenTypeNotExist = errorsmod.Register(collectionCodespace, 16, "token type for contract_id, token-type does not exist") + ErrTokenNoPermission = errorsmod.Register(collectionCodespace, 20, "account does not have the permission") + ErrTokenNotOwnedBy = errorsmod.Register(collectionCodespace, 23, "token is being not owned by") + ErrTokenNotNFT = errorsmod.Register(collectionCodespace, 25, "token is not a NFT") + ErrApproverProxySame = errorsmod.Register(collectionCodespace, 28, "approver is same with proxy") + ErrCollectionNotApproved = errorsmod.Register(collectionCodespace, 29, "proxy is not approved on the collection") + ErrCollectionAlreadyApproved = errorsmod.Register(collectionCodespace, 30, "proxy is already approved on the collection") + ErrInvalidChangesFieldCount = errorsmod.Register(collectionCodespace, 35, "invalid count of field changes") + ErrEmptyChanges = errorsmod.Register(collectionCodespace, 36, "changes is empty") + ErrInvalidChangesField = errorsmod.Register(collectionCodespace, 37, "invalid field of changes") + ErrTokenIndexWithoutType = errorsmod.Register(collectionCodespace, 38, "There is a token index but no token type") + ErrTokenTypeFTWithoutIndex = errorsmod.Register(collectionCodespace, 39, "There is a token type of ft but no token index") + ErrInsufficientToken = errorsmod.Register(collectionCodespace, 40, "insufficient token") + ErrDuplicateChangesField = errorsmod.Register(collectionCodespace, 41, "duplicate field of changes") + ErrInvalidMetaLength = errorsmod.Register(collectionCodespace, 42, "invalid meta length") + ErrEmptyField = errorsmod.Register(collectionCodespace, 44, "required field cannot be empty") ) // Legacy Token module error starts from 101 @@ -54,14 +46,22 @@ var ( // Deprecated: do not use from v0.50.x var ( - ErrCollectionExist = errorsmod.Register(collectionCodespace, 13, "collection already exists") - ErrTokenTypeExist = errorsmod.Register(collectionCodespace, 15, "token type for contract_id, token-type already exists") - ErrTokenTypeFull = errorsmod.Register(collectionCodespace, 17, "all token type for contract_id are occupied") - ErrTokenIndexFull = errorsmod.Register(collectionCodespace, 18, "all non-fungible token index for contract_id, token-type are occupied") - ErrTokenIDFull = errorsmod.Register(collectionCodespace, 19, "all fungible token-id for contract_id are occupied") - ErrAccountExist = errorsmod.Register(collectionCodespace, 31, "account already exists") - ErrAccountNotExist = errorsmod.Register(collectionCodespace, 32, "account does not exists") - ErrInsufficientSupply = errorsmod.Register(collectionCodespace, 33, "insufficient supply") - ErrInvalidCoin = errorsmod.Register(collectionCodespace, 34, "invalid coin") - ErrSupplyOverflow = errorsmod.Register(collectionCodespace, 43, "supply for collection reached maximum") + ErrCollectionExist = errorsmod.Register(collectionCodespace, 13, "collection already exists") + ErrTokenTypeExist = errorsmod.Register(collectionCodespace, 15, "token type for contract_id, token-type already exists") + ErrTokenTypeFull = errorsmod.Register(collectionCodespace, 17, "all token type for contract_id are occupied") + ErrTokenIndexFull = errorsmod.Register(collectionCodespace, 18, "all non-fungible token index for contract_id, token-type are occupied") + ErrTokenIDFull = errorsmod.Register(collectionCodespace, 19, "all fungible token-id for contract_id are occupied") + ErrTokenAlreadyAChild = errorsmod.Register(collectionCodespace, 21, "token is already a child of some other") + ErrTokenNotAChild = errorsmod.Register(collectionCodespace, 22, "token is not a child of some other") + ErrTokenCannotTransferChildToken = errorsmod.Register(collectionCodespace, 24, "cannot transfer a child token") + ErrCannotAttachToItself = errorsmod.Register(collectionCodespace, 26, "cannot attach token to itself") + ErrCannotAttachToADescendant = errorsmod.Register(collectionCodespace, 27, "cannot attach token to a descendant") + ErrAccountExist = errorsmod.Register(collectionCodespace, 31, "account already exists") + ErrAccountNotExist = errorsmod.Register(collectionCodespace, 32, "account does not exists") + ErrInsufficientSupply = errorsmod.Register(collectionCodespace, 33, "insufficient supply") + ErrInvalidCoin = errorsmod.Register(collectionCodespace, 34, "invalid coin") + ErrSupplyOverflow = errorsmod.Register(collectionCodespace, 43, "supply for collection reached maximum") + ErrCompositionTooDeep = errorsmod.Register(collectionCodespace, 45, "cannot attach token (composition too deep)") + ErrCompositionTooWide = errorsmod.Register(collectionCodespace, 46, "cannot attach token (composition too wide)") + ErrBurnNonRootNFT = errorsmod.Register(collectionCodespace, 47, "cannot burn non-root NFTs") ) diff --git a/x/collection/event.pb.go b/x/collection/event.pb.go index 881a013203..5d5775c629 100644 --- a/x/collection/event.pb.go +++ b/x/collection/event.pb.go @@ -1145,324 +1145,6 @@ func (m *EventModifiedNFT) GetChanges() []Attribute { return nil } -// EventAttached is emitted when a token is attached to another. -// -// Since: 0.46.0 (finschia) -type EventAttached struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address which triggered the attach. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address which holds the tokens. - Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` - // subject of the attach. - Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` - // target of the attach. - Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` -} - -func (m *EventAttached) Reset() { *m = EventAttached{} } -func (m *EventAttached) String() string { return proto.CompactTextString(m) } -func (*EventAttached) ProtoMessage() {} -func (*EventAttached) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{14} -} -func (m *EventAttached) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventAttached) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventAttached.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 *EventAttached) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventAttached.Merge(m, src) -} -func (m *EventAttached) XXX_Size() int { - return m.Size() -} -func (m *EventAttached) XXX_DiscardUnknown() { - xxx_messageInfo_EventAttached.DiscardUnknown(m) -} - -var xxx_messageInfo_EventAttached proto.InternalMessageInfo - -func (m *EventAttached) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *EventAttached) GetOperator() string { - if m != nil { - return m.Operator - } - return "" -} - -func (m *EventAttached) GetHolder() string { - if m != nil { - return m.Holder - } - return "" -} - -func (m *EventAttached) GetSubject() string { - if m != nil { - return m.Subject - } - return "" -} - -func (m *EventAttached) GetTarget() string { - if m != nil { - return m.Target - } - return "" -} - -// EventDetached is emitted when a token is detached from its parent. -// -// Since: 0.46.0 (finschia) -type EventDetached struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address which triggered the detach. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address which holds the token. - Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` - // token being detached. - Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` - // parent token before the detach. - PreviousParent string `protobuf:"bytes,5,opt,name=previous_parent,json=previousParent,proto3" json:"previous_parent,omitempty"` -} - -func (m *EventDetached) Reset() { *m = EventDetached{} } -func (m *EventDetached) String() string { return proto.CompactTextString(m) } -func (*EventDetached) ProtoMessage() {} -func (*EventDetached) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{15} -} -func (m *EventDetached) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventDetached) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventDetached.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 *EventDetached) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventDetached.Merge(m, src) -} -func (m *EventDetached) XXX_Size() int { - return m.Size() -} -func (m *EventDetached) XXX_DiscardUnknown() { - xxx_messageInfo_EventDetached.DiscardUnknown(m) -} - -var xxx_messageInfo_EventDetached proto.InternalMessageInfo - -func (m *EventDetached) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *EventDetached) GetOperator() string { - if m != nil { - return m.Operator - } - return "" -} - -func (m *EventDetached) GetHolder() string { - if m != nil { - return m.Holder - } - return "" -} - -func (m *EventDetached) GetSubject() string { - if m != nil { - return m.Subject - } - return "" -} - -func (m *EventDetached) GetPreviousParent() string { - if m != nil { - return m.PreviousParent - } - return "" -} - -// EventOwnerChanged is emitted when the owner of token is changed by operation applied to its ancestor. -// -// Since: 0.46.0 (finschia) -type EventOwnerChanged struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // address of the previous owner before the change. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // address of the new owner. - To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` -} - -func (m *EventOwnerChanged) Reset() { *m = EventOwnerChanged{} } -func (m *EventOwnerChanged) String() string { return proto.CompactTextString(m) } -func (*EventOwnerChanged) ProtoMessage() {} -func (*EventOwnerChanged) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{16} -} -func (m *EventOwnerChanged) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventOwnerChanged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventOwnerChanged.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 *EventOwnerChanged) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventOwnerChanged.Merge(m, src) -} -func (m *EventOwnerChanged) XXX_Size() int { - return m.Size() -} -func (m *EventOwnerChanged) XXX_DiscardUnknown() { - xxx_messageInfo_EventOwnerChanged.DiscardUnknown(m) -} - -var xxx_messageInfo_EventOwnerChanged proto.InternalMessageInfo - -func (m *EventOwnerChanged) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *EventOwnerChanged) GetTokenId() string { - if m != nil { - return m.TokenId - } - return "" -} - -func (m *EventOwnerChanged) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *EventOwnerChanged) GetTo() string { - if m != nil { - return m.To - } - return "" -} - -// EventRootChanged is emitted when the root of token is changed by operation applied to its ancestor. -// -// Since: 0.46.0 (finschia) -type EventRootChanged struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // token id of the previous root before the change. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // token id of the new root. - To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` -} - -func (m *EventRootChanged) Reset() { *m = EventRootChanged{} } -func (m *EventRootChanged) String() string { return proto.CompactTextString(m) } -func (*EventRootChanged) ProtoMessage() {} -func (*EventRootChanged) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{17} -} -func (m *EventRootChanged) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventRootChanged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventRootChanged.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 *EventRootChanged) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventRootChanged.Merge(m, src) -} -func (m *EventRootChanged) XXX_Size() int { - return m.Size() -} -func (m *EventRootChanged) XXX_DiscardUnknown() { - xxx_messageInfo_EventRootChanged.DiscardUnknown(m) -} - -var xxx_messageInfo_EventRootChanged proto.InternalMessageInfo - -func (m *EventRootChanged) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *EventRootChanged) GetTokenId() string { - if m != nil { - return m.TokenId - } - return "" -} - -func (m *EventRootChanged) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *EventRootChanged) GetTo() string { - if m != nil { - return m.To - } - return "" -} - func init() { proto.RegisterEnum("lbm.collection.v1.AttributeKey", AttributeKey_name, AttributeKey_value) proto.RegisterType((*EventSent)(nil), "lbm.collection.v1.EventSent") @@ -1479,82 +1161,71 @@ func init() { proto.RegisterType((*EventModifiedContract)(nil), "lbm.collection.v1.EventModifiedContract") proto.RegisterType((*EventModifiedTokenClass)(nil), "lbm.collection.v1.EventModifiedTokenClass") proto.RegisterType((*EventModifiedNFT)(nil), "lbm.collection.v1.EventModifiedNFT") - proto.RegisterType((*EventAttached)(nil), "lbm.collection.v1.EventAttached") - proto.RegisterType((*EventDetached)(nil), "lbm.collection.v1.EventDetached") - proto.RegisterType((*EventOwnerChanged)(nil), "lbm.collection.v1.EventOwnerChanged") - proto.RegisterType((*EventRootChanged)(nil), "lbm.collection.v1.EventRootChanged") } func init() { proto.RegisterFile("lbm/collection/v1/event.proto", fileDescriptor_478cfab12ea1b00e) } var fileDescriptor_478cfab12ea1b00e = []byte{ - // 1048 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x97, 0x4f, 0x6f, 0xe3, 0xc4, - 0x1b, 0xc7, 0xe3, 0x24, 0xcd, 0x9f, 0xa7, 0xfb, 0xeb, 0xba, 0x6e, 0x7e, 0xad, 0xeb, 0xa5, 0xd9, - 0xc8, 0x17, 0xa2, 0xd5, 0x36, 0x61, 0xcb, 0x72, 0x59, 0xc1, 0x21, 0xc9, 0xa6, 0x95, 0xb5, 0x4a, - 0xb6, 0x72, 0x93, 0x03, 0x5c, 0x22, 0xc7, 0x9e, 0x26, 0xa6, 0xf1, 0x4c, 0x64, 0x4f, 0x02, 0xe5, - 0x15, 0xa0, 0x9e, 0x78, 0x03, 0x15, 0x12, 0x94, 0x3f, 0x07, 0x8e, 0xfb, 0x0a, 0xb8, 0xec, 0xc2, - 0x69, 0xc5, 0x01, 0x21, 0x21, 0x21, 0xd4, 0x1e, 0x90, 0xb8, 0xf1, 0x0e, 0x90, 0xc7, 0x76, 0xea, - 0x34, 0xd5, 0x26, 0x01, 0x05, 0xca, 0x6d, 0xfe, 0x7c, 0x1f, 0xfb, 0xfb, 0x99, 0x99, 0xe7, 0xf1, - 0x18, 0xb6, 0x7a, 0x6d, 0xab, 0xa8, 0x93, 0x5e, 0x0f, 0xe9, 0xd4, 0x24, 0xb8, 0x38, 0x7c, 0x50, - 0x44, 0x43, 0x84, 0x69, 0xa1, 0x6f, 0x13, 0x4a, 0x84, 0xd5, 0x5e, 0xdb, 0x2a, 0x5c, 0x4e, 0x17, - 0x86, 0x0f, 0xa4, 0x4c, 0x87, 0x74, 0x08, 0x9b, 0x2d, 0xba, 0x2d, 0x4f, 0x28, 0x6d, 0xea, 0xc4, - 0xb1, 0x88, 0xd3, 0xf2, 0x26, 0xbc, 0x8e, 0x3f, 0x25, 0x4f, 0xbe, 0x22, 0xf4, 0x44, 0xa6, 0x91, - 0xff, 0xe0, 0x20, 0x5d, 0x75, 0xdf, 0x7b, 0x80, 0x30, 0x15, 0xee, 0xc2, 0xb2, 0x4e, 0x30, 0xb5, - 0x35, 0x9d, 0xb6, 0x4c, 0x43, 0xe4, 0x72, 0x5c, 0x3e, 0xad, 0x42, 0x30, 0xa4, 0x18, 0xc2, 0x43, - 0x48, 0x91, 0x3e, 0xb2, 0x35, 0x4a, 0x6c, 0x31, 0xea, 0xce, 0x96, 0xc5, 0x1f, 0x9e, 0x6d, 0x67, - 0xfc, 0xd7, 0x96, 0x0c, 0xc3, 0x46, 0x8e, 0x73, 0x40, 0x6d, 0x13, 0x77, 0xd4, 0x91, 0x52, 0xb8, - 0x0f, 0xf1, 0x43, 0x9b, 0x58, 0x62, 0x6c, 0x4a, 0x04, 0x53, 0x09, 0x79, 0x88, 0x52, 0x22, 0xc6, - 0xa7, 0x68, 0xa3, 0x94, 0x08, 0x6f, 0x41, 0x42, 0xb3, 0xc8, 0x00, 0x53, 0x71, 0x29, 0x17, 0xcb, - 0x2f, 0xef, 0x6c, 0x14, 0x26, 0x56, 0xad, 0x50, 0x21, 0x26, 0x2e, 0xc7, 0x5f, 0xfc, 0x72, 0x37, - 0xa2, 0xfa, 0x62, 0xf9, 0x33, 0x0e, 0x36, 0x18, 0x73, 0x69, 0x40, 0xbb, 0xc4, 0x36, 0x3f, 0x42, - 0xc6, 0xd3, 0xc0, 0xea, 0xd4, 0x15, 0x78, 0x03, 0x12, 0x5d, 0xd2, 0x33, 0xd0, 0x74, 0x7e, 0x5f, - 0x37, 0xb6, 0x66, 0xb1, 0x59, 0xd7, 0x4c, 0xfe, 0x94, 0x83, 0x0c, 0x33, 0xa9, 0xa2, 0x21, 0x39, - 0xba, 0x89, 0x0e, 0xbf, 0x08, 0x1c, 0x56, 0x6c, 0xa4, 0x51, 0x64, 0x54, 0x7c, 0x0b, 0xc2, 0x0e, - 0x24, 0x75, 0x77, 0x88, 0xd8, 0x9e, 0xbb, 0x57, 0x3c, 0x2d, 0x10, 0x5e, 0xa5, 0x8a, 0x4e, 0x50, - 0x09, 0x10, 0xc7, 0x9a, 0x85, 0x3c, 0x7f, 0x2a, 0x6b, 0xbb, 0x63, 0x16, 0xa2, 0x9a, 0x77, 0x56, - 0x54, 0xd6, 0x16, 0x78, 0x88, 0x0d, 0x6c, 0x53, 0x5c, 0x62, 0x43, 0x6e, 0x53, 0xfe, 0x8d, 0x83, - 0xb5, 0xb0, 0xcf, 0xdd, 0x46, 0xa5, 0xa7, 0x39, 0xce, 0xa2, 0x0e, 0xfb, 0x26, 0xa4, 0x28, 0x39, - 0x42, 0xd8, 0x7d, 0xa6, 0x67, 0x36, 0xc9, 0xfa, 0x21, 0x86, 0xf8, 0x35, 0x0c, 0x4b, 0x21, 0x06, - 0x09, 0x52, 0x06, 0xd2, 0x4d, 0x4b, 0xeb, 0x39, 0x62, 0x22, 0xc7, 0xe5, 0x97, 0xd4, 0x51, 0xdf, - 0x9d, 0xb3, 0x4c, 0x4c, 0xb5, 0x76, 0x0f, 0x89, 0xc9, 0x1c, 0x97, 0x4f, 0xa9, 0xa3, 0xbe, 0xfc, - 0xec, 0xca, 0x8e, 0xd4, 0x17, 0x8c, 0xba, 0x05, 0xe0, 0xa1, 0xd2, 0xe3, 0x7e, 0xb0, 0x33, 0x69, - 0x36, 0xd2, 0x38, 0xee, 0xa3, 0x59, 0x71, 0xe5, 0x1f, 0x39, 0xb8, 0xc5, 0x6c, 0xef, 0xd9, 0x1a, - 0xa6, 0xc8, 0x98, 0x6e, 0x77, 0x07, 0x92, 0x1d, 0xa6, 0x9d, 0xee, 0x36, 0x10, 0x5e, 0xc6, 0xa0, - 0xa9, 0x67, 0x3c, 0x10, 0x0a, 0xef, 0x00, 0xf4, 0x91, 0x6d, 0x99, 0x8e, 0x63, 0x12, 0xcc, 0x38, - 0x56, 0x76, 0xb6, 0xae, 0x29, 0x32, 0xfb, 0x23, 0x91, 0x1a, 0x0a, 0x90, 0xcf, 0x38, 0x58, 0xf1, - 0x73, 0x18, 0x93, 0x01, 0xd6, 0xe7, 0x42, 0x43, 0xb3, 0xa2, 0x5d, 0xb5, 0x19, 0x9b, 0xd7, 0xe6, - 0x73, 0x0e, 0xfe, 0xc7, 0x6c, 0xd6, 0x4c, 0xcc, 0xf2, 0x63, 0x51, 0xe7, 0xc5, 0xab, 0xec, 0xb1, - 0xb9, 0x2a, 0x7b, 0x7c, 0x9e, 0xca, 0xfe, 0x3c, 0x58, 0x70, 0x8f, 0xa4, 0x7e, 0x13, 0x50, 0x1e, - 0x42, 0x82, 0xa5, 0x84, 0xe3, 0xa3, 0xac, 0x5f, 0x83, 0x52, 0xdf, 0x6d, 0x04, 0x24, 0x9e, 0x56, - 0xfe, 0x8e, 0x83, 0x65, 0x46, 0x52, 0x1e, 0xd8, 0x78, 0x96, 0x73, 0xf3, 0x4f, 0x7c, 0x99, 0xff, - 0xe2, 0xae, 0x7c, 0xc3, 0xc1, 0xff, 0xbd, 0x5d, 0x21, 0x86, 0x79, 0x68, 0x86, 0xbe, 0x14, 0x0b, - 0xa2, 0x7a, 0x1b, 0x92, 0x7a, 0x57, 0xc3, 0x1d, 0xe4, 0x88, 0x31, 0x66, 0xf4, 0xb5, 0x6b, 0x8c, - 0x96, 0x28, 0xb5, 0xcd, 0xf6, 0x80, 0x22, 0xdf, 0x6d, 0x10, 0x22, 0xff, 0x1e, 0x5c, 0x0f, 0x02, - 0xbb, 0x0d, 0x77, 0x4b, 0xfe, 0xcd, 0x42, 0x1a, 0xe2, 0x89, 0xcf, 0xcd, 0x23, 0xdc, 0x81, 0xb4, - 0xfb, 0xd8, 0x16, 0xab, 0xc5, 0x5e, 0xdd, 0x4d, 0xb9, 0x03, 0x75, 0xcd, 0x42, 0xf2, 0xb7, 0x1c, - 0xf0, 0x63, 0xb0, 0x0b, 0xcc, 0x99, 0x57, 0x7c, 0x19, 0xff, 0x16, 0xa1, 0xfc, 0x7d, 0x50, 0xc0, - 0x4a, 0x94, 0x6a, 0x7a, 0x77, 0x71, 0xe9, 0x72, 0x79, 0xb5, 0x8a, 0xcd, 0x78, 0xb5, 0x12, 0x21, - 0xe9, 0x0c, 0xda, 0xef, 0x23, 0x9d, 0xfa, 0x9f, 0xc1, 0xa0, 0x2b, 0xac, 0x43, 0x82, 0x6a, 0x76, - 0x07, 0x51, 0x7f, 0x4f, 0xfc, 0x9e, 0xfc, 0x73, 0x00, 0xf3, 0x18, 0xfd, 0x77, 0x60, 0x5e, 0x87, - 0xdb, 0x7d, 0x1b, 0x0d, 0x4d, 0x32, 0x70, 0x5a, 0x7d, 0xcd, 0x46, 0x38, 0xa0, 0x5a, 0x09, 0x86, - 0xf7, 0xd9, 0xa8, 0xfc, 0x15, 0x07, 0xab, 0x8c, 0xee, 0xe9, 0x07, 0x18, 0xd9, 0x15, 0xb6, 0x81, - 0x33, 0x10, 0x86, 0x8f, 0x4e, 0x74, 0xfc, 0xe8, 0x2c, 0xe8, 0xe7, 0x42, 0xfe, 0x32, 0xc8, 0x0c, - 0x95, 0x10, 0x7a, 0x83, 0x8d, 0xde, 0x3b, 0x8b, 0xc2, 0xad, 0x51, 0x6a, 0x3c, 0x41, 0xc7, 0xc2, - 0x23, 0xd8, 0x2c, 0x35, 0x1a, 0xaa, 0x52, 0x6e, 0x36, 0xaa, 0xad, 0x27, 0xd5, 0x77, 0x5b, 0xcd, - 0xfa, 0xc1, 0x7e, 0xb5, 0xa2, 0xec, 0x2a, 0xd5, 0xc7, 0x7c, 0x44, 0xba, 0x73, 0x72, 0x9a, 0xdb, - 0x08, 0x07, 0x34, 0xb1, 0xd3, 0x47, 0x3a, 0xcb, 0x7e, 0xe1, 0x3e, 0x08, 0xe3, 0xb1, 0xf5, 0x52, - 0xad, 0xca, 0x73, 0x52, 0xe6, 0xe4, 0x34, 0xc7, 0x87, 0x83, 0xdc, 0xea, 0x31, 0xa9, 0xae, 0x55, - 0x1b, 0x25, 0x3e, 0x3a, 0xa9, 0xae, 0xb9, 0xd7, 0xda, 0x47, 0x20, 0x8d, 0xab, 0xcb, 0xa5, 0x83, - 0x6a, 0x4b, 0xa9, 0xed, 0xb5, 0x9a, 0xaa, 0xc2, 0xa7, 0x24, 0xe9, 0xe4, 0x34, 0xb7, 0x1e, 0x8e, - 0x2a, 0x6b, 0x0e, 0x52, 0xac, 0x4e, 0x53, 0x55, 0x84, 0x7b, 0xb0, 0x7a, 0x85, 0x49, 0x55, 0xf8, - 0x8c, 0xb4, 0x76, 0x72, 0x9a, 0xbb, 0x3d, 0xc6, 0xa2, 0x2a, 0x52, 0xea, 0xe3, 0xcf, 0xb3, 0x91, - 0xaf, 0xcf, 0xb2, 0x11, 0x39, 0x9e, 0x8a, 0xf1, 0x49, 0x39, 0x9e, 0x4a, 0xf3, 0x6b, 0xe5, 0xbd, - 0x17, 0xe7, 0x59, 0xee, 0xe5, 0x79, 0x96, 0xfb, 0xf5, 0x3c, 0xcb, 0x7d, 0x72, 0x91, 0x8d, 0xbc, - 0xbc, 0xc8, 0x46, 0x7e, 0xba, 0xc8, 0x46, 0xde, 0xdb, 0xee, 0x98, 0xb4, 0x3b, 0x68, 0x17, 0x74, - 0x62, 0x15, 0x77, 0x4d, 0xec, 0xe8, 0x5d, 0x53, 0x2b, 0x1e, 0xfa, 0x8d, 0x6d, 0xc7, 0x38, 0x2a, - 0x7e, 0x18, 0xfa, 0x71, 0x6e, 0x27, 0xd8, 0x9f, 0xf3, 0x9b, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, - 0x9d, 0x39, 0x37, 0xab, 0xc2, 0x0f, 0x00, 0x00, + // 936 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x97, 0x4f, 0x6f, 0xe3, 0x44, + 0x18, 0xc6, 0x33, 0x89, 0x9b, 0x38, 0xef, 0x2e, 0x8b, 0xd7, 0x0d, 0x5b, 0xd7, 0x4b, 0xb3, 0x91, + 0x4f, 0xd1, 0x6a, 0x9b, 0xb0, 0x65, 0xb9, 0xac, 0xe0, 0x90, 0x84, 0xb4, 0xb2, 0x56, 0x09, 0x2b, + 0x37, 0x39, 0xc0, 0x25, 0x72, 0xec, 0x69, 0x62, 0x35, 0x9e, 0x89, 0xec, 0x49, 0x45, 0xf9, 0x04, + 0xa8, 0x27, 0xbe, 0x40, 0x85, 0x04, 0x45, 0xe2, 0xc0, 0x71, 0x3f, 0x01, 0x97, 0x5d, 0x6e, 0x2b, + 0x0e, 0x88, 0x13, 0x42, 0xed, 0x01, 0x89, 0x1b, 0xdf, 0x00, 0x79, 0x6c, 0x67, 0x9d, 0xa6, 0xda, + 0x34, 0xa0, 0xc0, 0xde, 0x66, 0xe6, 0x7d, 0xde, 0xf1, 0xf3, 0x9b, 0x3f, 0xef, 0x24, 0xb0, 0x35, + 0xea, 0xbb, 0x55, 0x8b, 0x8e, 0x46, 0xd8, 0x62, 0x0e, 0x25, 0xd5, 0xa3, 0x87, 0x55, 0x7c, 0x84, + 0x09, 0xab, 0x8c, 0x3d, 0xca, 0xa8, 0x7c, 0x7b, 0xd4, 0x77, 0x2b, 0xaf, 0xc2, 0x95, 0xa3, 0x87, + 0x6a, 0x61, 0x40, 0x07, 0x94, 0x47, 0xab, 0x41, 0x2b, 0x14, 0xaa, 0x9b, 0x16, 0xf5, 0x5d, 0xea, + 0xf7, 0xc2, 0x40, 0xd8, 0x89, 0x42, 0xda, 0xfc, 0x27, 0x12, 0x33, 0x72, 0x8d, 0xf6, 0x17, 0x82, + 0x7c, 0x33, 0xf8, 0xee, 0x3e, 0x26, 0x4c, 0xbe, 0x07, 0x37, 0x2c, 0x4a, 0x98, 0x67, 0x5a, 0xac, + 0xe7, 0xd8, 0x0a, 0x2a, 0xa1, 0x72, 0xde, 0x80, 0x78, 0x48, 0xb7, 0xe5, 0x47, 0x20, 0xd2, 0x31, + 0xf6, 0x4c, 0x46, 0x3d, 0x25, 0x1d, 0x44, 0xeb, 0xca, 0xcf, 0xcf, 0xb6, 0x0b, 0xd1, 0x67, 0x6b, + 0xb6, 0xed, 0x61, 0xdf, 0xdf, 0x67, 0x9e, 0x43, 0x06, 0xc6, 0x54, 0x29, 0x3f, 0x00, 0xe1, 0xc0, + 0xa3, 0xae, 0x92, 0x59, 0x90, 0xc1, 0x55, 0x72, 0x19, 0xd2, 0x8c, 0x2a, 0xc2, 0x02, 0x6d, 0x9a, + 0x51, 0xf9, 0x03, 0xc8, 0x9a, 0x2e, 0x9d, 0x10, 0xa6, 0xac, 0x95, 0x32, 0xe5, 0x1b, 0x3b, 0x1b, + 0x95, 0xb9, 0x55, 0xab, 0x34, 0xa8, 0x43, 0xea, 0xc2, 0x8b, 0xdf, 0xee, 0xa5, 0x8c, 0x48, 0xac, + 0x7d, 0x83, 0x60, 0x83, 0x33, 0xd7, 0x26, 0x6c, 0x48, 0x3d, 0xe7, 0x0b, 0x6c, 0x7f, 0x12, 0x5b, + 0x5d, 0xb8, 0x02, 0xef, 0x41, 0x76, 0x48, 0x47, 0x36, 0x5e, 0xcc, 0x1f, 0xe9, 0x66, 0xd6, 0x2c, + 0x73, 0xdd, 0x35, 0xd3, 0xbe, 0x46, 0x50, 0xe0, 0x26, 0x0d, 0x7c, 0x44, 0x0f, 0xdf, 0x44, 0x87, + 0xdf, 0xc5, 0x0e, 0x1b, 0x1e, 0x36, 0x19, 0xb6, 0x1b, 0x91, 0x05, 0x79, 0x07, 0x72, 0x56, 0x30, + 0x44, 0xbd, 0xd0, 0xdd, 0x6b, 0x66, 0x8b, 0x85, 0x97, 0xa9, 0xd2, 0x73, 0x54, 0x32, 0x08, 0xc4, + 0x74, 0x71, 0xe8, 0xcf, 0xe0, 0xed, 0x60, 0xcc, 0xc5, 0xcc, 0x0c, 0xcf, 0x8a, 0xc1, 0xdb, 0xb2, + 0x04, 0x99, 0x89, 0xe7, 0x28, 0x6b, 0x7c, 0x28, 0x68, 0x6a, 0x7f, 0x20, 0x58, 0x4f, 0xfa, 0xdc, + 0xed, 0x34, 0x46, 0xa6, 0xef, 0xaf, 0xea, 0xb0, 0x6f, 0x82, 0xc8, 0xe8, 0x21, 0x26, 0xc1, 0x9c, + 0xa1, 0xd9, 0x1c, 0xef, 0x27, 0x18, 0x84, 0x2b, 0x18, 0xd6, 0x12, 0x0c, 0x2a, 0x88, 0x36, 0xb6, + 0x1c, 0xd7, 0x1c, 0xf9, 0x4a, 0xb6, 0x84, 0xca, 0x6b, 0xc6, 0xb4, 0x1f, 0xc4, 0x5c, 0x87, 0x30, + 0xb3, 0x3f, 0xc2, 0x4a, 0xae, 0x84, 0xca, 0xa2, 0x31, 0xed, 0x6b, 0xcf, 0x2e, 0xed, 0x48, 0x7b, + 0xc5, 0xa8, 0x5b, 0x00, 0x21, 0x2a, 0x3b, 0x1e, 0xc7, 0x3b, 0x93, 0xe7, 0x23, 0x9d, 0xe3, 0x31, + 0xbe, 0x2e, 0xae, 0xf6, 0x0b, 0x82, 0x9b, 0xdc, 0xf6, 0x9e, 0x67, 0x12, 0x86, 0xed, 0xc5, 0x76, + 0x77, 0x20, 0x37, 0xe0, 0xda, 0xc5, 0x6e, 0x63, 0xe1, 0xab, 0x1c, 0xbc, 0xf0, 0x8c, 0xc7, 0x42, + 0xf9, 0x23, 0x80, 0x31, 0xf6, 0x5c, 0xc7, 0xf7, 0x1d, 0x4a, 0x38, 0xc7, 0xad, 0x9d, 0xad, 0x2b, + 0x8a, 0xcc, 0xd3, 0xa9, 0xc8, 0x48, 0x24, 0x68, 0x67, 0x08, 0x6e, 0x45, 0x77, 0x98, 0xd0, 0x09, + 0xb1, 0x96, 0x42, 0xc3, 0xd7, 0x45, 0xbb, 0x6c, 0x33, 0xb3, 0xac, 0xcd, 0xe7, 0x08, 0xde, 0xe2, + 0x36, 0x5b, 0x0e, 0xe1, 0xf7, 0x63, 0x55, 0xe7, 0x25, 0xac, 0xec, 0x99, 0xa5, 0x2a, 0xbb, 0xb0, + 0x4c, 0x65, 0x7f, 0x1e, 0x2f, 0x78, 0x48, 0xd2, 0x7e, 0x13, 0x50, 0x1e, 0x41, 0x96, 0x5f, 0x09, + 0x3f, 0x42, 0xb9, 0x73, 0x05, 0x4a, 0x7b, 0xb7, 0x13, 0x93, 0x84, 0x5a, 0xed, 0x27, 0x04, 0x37, + 0x38, 0x49, 0x7d, 0xe2, 0x91, 0xeb, 0x9c, 0x9b, 0xff, 0xe2, 0x65, 0xfe, 0x87, 0xbb, 0xf2, 0x03, + 0x82, 0x77, 0xc2, 0x5d, 0xa1, 0xb6, 0x73, 0xe0, 0x24, 0x5e, 0x8a, 0x15, 0x51, 0x7d, 0x08, 0x39, + 0x6b, 0x68, 0x92, 0x01, 0xf6, 0x95, 0x0c, 0x37, 0xfa, 0xee, 0x15, 0x46, 0x6b, 0x8c, 0x79, 0x4e, + 0x7f, 0xc2, 0x70, 0xe4, 0x36, 0x4e, 0xd1, 0xfe, 0x8c, 0x7f, 0x1e, 0xc4, 0x76, 0x3b, 0xc1, 0x96, + 0xfc, 0x9f, 0x85, 0x34, 0xc1, 0x23, 0x2c, 0xcd, 0x23, 0xdf, 0x85, 0x7c, 0x30, 0x6d, 0x8f, 0xd7, + 0xe2, 0xb0, 0xee, 0x8a, 0xc1, 0x40, 0xdb, 0x74, 0xb1, 0xf6, 0x23, 0x02, 0x69, 0x06, 0x76, 0x85, + 0x77, 0xe6, 0x35, 0x2f, 0xe3, 0xbf, 0x22, 0xbc, 0x7f, 0x96, 0x86, 0x9b, 0xd3, 0xe0, 0x13, 0x7c, + 0x2c, 0x3f, 0x86, 0xcd, 0x5a, 0xa7, 0x63, 0xe8, 0xf5, 0x6e, 0xa7, 0xd9, 0x7b, 0xd2, 0xfc, 0xb4, + 0xd7, 0x6d, 0xef, 0x3f, 0x6d, 0x36, 0xf4, 0x5d, 0xbd, 0xf9, 0xb1, 0x94, 0x52, 0xef, 0x9e, 0x9c, + 0x96, 0x36, 0x92, 0x09, 0x5d, 0xe2, 0x8f, 0xb1, 0xc5, 0xf9, 0xe5, 0x07, 0x20, 0xcf, 0xe6, 0xb6, + 0x6b, 0xad, 0xa6, 0x84, 0xd4, 0xc2, 0xc9, 0x69, 0x49, 0x4a, 0x26, 0x05, 0xeb, 0x37, 0xaf, 0x6e, + 0x35, 0x3b, 0x35, 0x29, 0x3d, 0xaf, 0x6e, 0x05, 0x0f, 0xfb, 0x63, 0x50, 0x67, 0xd5, 0xf5, 0xda, + 0x7e, 0xb3, 0xa7, 0xb7, 0xf6, 0x7a, 0x5d, 0x43, 0x97, 0x44, 0x55, 0x3d, 0x39, 0x2d, 0xdd, 0x49, + 0x66, 0xd5, 0x4d, 0x1f, 0xeb, 0xee, 0xa0, 0x6b, 0xe8, 0xf2, 0x7d, 0xb8, 0x7d, 0x89, 0xc9, 0xd0, + 0xa5, 0x82, 0xba, 0x7e, 0x72, 0x5a, 0x7a, 0x7b, 0x86, 0xc5, 0xd0, 0x55, 0xf1, 0xcb, 0x6f, 0x8b, + 0xa9, 0xef, 0xcf, 0x8a, 0x29, 0x4d, 0x10, 0x33, 0x52, 0x4e, 0x13, 0xc4, 0xbc, 0xb4, 0x5e, 0xdf, + 0x7b, 0x71, 0x5e, 0x44, 0x2f, 0xcf, 0x8b, 0xe8, 0xf7, 0xf3, 0x22, 0xfa, 0xea, 0xa2, 0x98, 0x7a, + 0x79, 0x51, 0x4c, 0xfd, 0x7a, 0x51, 0x4c, 0x7d, 0xb6, 0x3d, 0x70, 0xd8, 0x70, 0xd2, 0xaf, 0x58, + 0xd4, 0xad, 0xee, 0x3a, 0xc4, 0xb7, 0x86, 0x8e, 0x59, 0x3d, 0x88, 0x1a, 0xdb, 0xbe, 0x7d, 0x58, + 0xfd, 0x3c, 0xf1, 0xd7, 0xa1, 0x9f, 0xe5, 0xff, 0x1d, 0xde, 0xff, 0x3b, 0x00, 0x00, 0xff, 0xff, + 0xa6, 0x8c, 0xca, 0x08, 0xc4, 0x0c, 0x00, 0x00, } func (m *EventSent) Marshal() (dAtA []byte, err error) { @@ -2338,252 +2009,34 @@ func (m *EventModifiedNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *EventAttached) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { + offset -= sovEvent(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - return dAtA[:n], nil -} - -func (m *EventAttached) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + dAtA[offset] = uint8(v) + return base } - -func (m *EventAttached) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *EventSent) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if len(m.Target) > 0 { - i -= len(m.Target) - copy(dAtA[i:], m.Target) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Target))) - i-- - dAtA[i] = 0x2a + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) } - if len(m.Subject) > 0 { - i -= len(m.Subject) - copy(dAtA[i:], m.Subject) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Subject))) - i-- - dAtA[i] = 0x22 + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) } - if len(m.Holder) > 0 { - i -= len(m.Holder) - copy(dAtA[i:], m.Holder) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) - i-- - dAtA[i] = 0x1a - } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EventDetached) 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 *EventDetached) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventDetached) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PreviousParent) > 0 { - i -= len(m.PreviousParent) - copy(dAtA[i:], m.PreviousParent) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PreviousParent))) - i-- - dAtA[i] = 0x2a - } - if len(m.Subject) > 0 { - i -= len(m.Subject) - copy(dAtA[i:], m.Subject) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Subject))) - i-- - dAtA[i] = 0x22 - } - if len(m.Holder) > 0 { - i -= len(m.Holder) - copy(dAtA[i:], m.Holder) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) - i-- - dAtA[i] = 0x1a - } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EventOwnerChanged) 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 *EventOwnerChanged) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventOwnerChanged) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.To) > 0 { - i -= len(m.To) - copy(dAtA[i:], m.To) - i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) - i-- - dAtA[i] = 0x22 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x1a - } - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.TokenId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EventRootChanged) 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 *EventRootChanged) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventRootChanged) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.To) > 0 { - i -= len(m.To) - copy(dAtA[i:], m.To) - i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) - i-- - dAtA[i] = 0x22 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x1a - } - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.TokenId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { - offset -= sovEvent(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *EventSent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) + l = len(m.From) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) } l = len(m.To) if l > 0 { @@ -2939,119 +2392,11 @@ func (m *EventModifiedNFT) Size() (n int) { return n } -func (m *EventAttached) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Holder) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Subject) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Target) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n +func sovEvent(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 } - -func (m *EventDetached) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Holder) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Subject) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PreviousParent) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *EventOwnerChanged) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.TokenId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.To) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *EventRootChanged) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.TokenId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.To) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func sovEvent(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEvent(x uint64) (n int) { - return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozEvent(x uint64) (n int) { + return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *EventSent) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -3208,759 +2553,13 @@ func (m *EventSent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.To = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Amount = append(m.Amount, Coin{}) - if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventAuthorizedOperator) 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 ErrIntOverflowEvent - } - 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: EventAuthorizedOperator: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventAuthorizedOperator: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Holder = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventRevokedOperator) 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 ErrIntOverflowEvent - } - 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: EventRevokedOperator: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventRevokedOperator: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Holder = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventCreatedContract) 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 ErrIntOverflowEvent - } - 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: EventCreatedContract: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventCreatedContract: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Meta = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventCreatedFTClass) 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 ErrIntOverflowEvent - } - 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: EventCreatedFTClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventCreatedFTClass: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Meta = string(dAtA[iNdEx:postIndex]) + m.To = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - m.Decimals = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -3970,31 +2569,26 @@ func (m *EventCreatedFTClass) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Decimals |= int32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) + if msglen < 0 { + return ErrInvalidLengthEvent } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent } - m.Mintable = bool(v != 0) + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvent(dAtA[iNdEx:]) @@ -4016,7 +2610,7 @@ func (m *EventCreatedFTClass) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventCreatedNFTClass) Unmarshal(dAtA []byte) error { +func (m *EventAuthorizedOperator) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4039,10 +2633,10 @@ func (m *EventCreatedNFTClass) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventCreatedNFTClass: wiretype end group for non-group") + return fmt.Errorf("proto: EventAuthorizedOperator: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventCreatedNFTClass: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventAuthorizedOperator: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4079,7 +2673,7 @@ func (m *EventCreatedNFTClass) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4107,75 +2701,11 @@ func (m *EventCreatedNFTClass) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Operator = string(dAtA[iNdEx:postIndex]) + m.Holder = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TokenType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4203,7 +2733,7 @@ func (m *EventCreatedNFTClass) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Meta = string(dAtA[iNdEx:postIndex]) + m.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4226,7 +2756,7 @@ func (m *EventCreatedNFTClass) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventGranted) Unmarshal(dAtA []byte) error { +func (m *EventRevokedOperator) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4249,10 +2779,10 @@ func (m *EventGranted) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventGranted: wiretype end group for non-group") + return fmt.Errorf("proto: EventRevokedOperator: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventGranted: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventRevokedOperator: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4289,7 +2819,7 @@ func (m *EventGranted) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4317,11 +2847,11 @@ func (m *EventGranted) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Granter = string(dAtA[iNdEx:postIndex]) + m.Holder = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4349,27 +2879,8 @@ func (m *EventGranted) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Grantee = string(dAtA[iNdEx:postIndex]) + m.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) - } - m.Permission = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Permission |= Permission(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipEvent(dAtA[iNdEx:]) @@ -4391,7 +2902,7 @@ func (m *EventGranted) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventRenounced) Unmarshal(dAtA []byte) error { +func (m *EventCreatedContract) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4414,15 +2925,15 @@ func (m *EventRenounced) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventRenounced: wiretype end group for non-group") + return fmt.Errorf("proto: EventCreatedContract: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventRenounced: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventCreatedContract: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4450,11 +2961,11 @@ func (m *EventRenounced) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContractId = string(dAtA[iNdEx:postIndex]) + m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4482,13 +2993,13 @@ func (m *EventRenounced) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Grantee = string(dAtA[iNdEx:postIndex]) + m.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - m.Permission = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -4498,11 +3009,88 @@ func (m *EventRenounced) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Permission |= Permission(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvent(dAtA[iNdEx:]) @@ -4524,7 +3112,7 @@ func (m *EventRenounced) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventMintedFT) Unmarshal(dAtA []byte) error { +func (m *EventCreatedFTClass) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4547,10 +3135,10 @@ func (m *EventMintedFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventMintedFT: wiretype end group for non-group") + return fmt.Errorf("proto: EventCreatedFTClass: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventMintedFT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventCreatedFTClass: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4619,7 +3207,7 @@ func (m *EventMintedFT) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4647,13 +3235,13 @@ func (m *EventMintedFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.To = string(dAtA[iNdEx:postIndex]) + m.TokenId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -4663,26 +3251,95 @@ func (m *EventMintedFT) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEvent } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvent } if postIndex > l { return io.ErrUnexpectedEOF } - m.Amount = append(m.Amount, Coin{}) - if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF } + m.Meta = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + } + m.Decimals = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimals |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Mintable = bool(v != 0) default: iNdEx = preIndex skippy, err := skipEvent(dAtA[iNdEx:]) @@ -4704,7 +3361,7 @@ func (m *EventMintedFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventMintedNFT) Unmarshal(dAtA []byte) error { +func (m *EventCreatedNFTClass) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4727,10 +3384,10 @@ func (m *EventMintedNFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventMintedNFT: wiretype end group for non-group") + return fmt.Errorf("proto: EventCreatedNFTClass: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventMintedNFT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventCreatedNFTClass: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4799,7 +3456,7 @@ func (m *EventMintedNFT) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4827,13 +3484,13 @@ func (m *EventMintedNFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.To = string(dAtA[iNdEx:postIndex]) + m.TokenType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tokens", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -4843,25 +3500,55 @@ func (m *EventMintedNFT) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEvent } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvent } if postIndex > l { return io.ErrUnexpectedEOF } - m.Tokens = append(m.Tokens, NFT{}) - if err := m.Tokens[len(m.Tokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4884,7 +3571,7 @@ func (m *EventMintedNFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventBurned) Unmarshal(dAtA []byte) error { +func (m *EventGranted) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4907,10 +3594,10 @@ func (m *EventBurned) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventBurned: wiretype end group for non-group") + return fmt.Errorf("proto: EventGranted: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventBurned: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventGranted: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4947,7 +3634,7 @@ func (m *EventBurned) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4975,11 +3662,11 @@ func (m *EventBurned) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Operator = string(dAtA[iNdEx:postIndex]) + m.Granter = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5007,13 +3694,13 @@ func (m *EventBurned) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.From = string(dAtA[iNdEx:postIndex]) + m.Grantee = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) } - var msglen int + m.Permission = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -5023,26 +3710,11 @@ func (m *EventBurned) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Permission |= Permission(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Amount = append(m.Amount, Coin{}) - if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvent(dAtA[iNdEx:]) @@ -5064,7 +3736,7 @@ func (m *EventBurned) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventModifiedContract) Unmarshal(dAtA []byte) error { +func (m *EventRenounced) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5087,10 +3759,10 @@ func (m *EventModifiedContract) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventModifiedContract: wiretype end group for non-group") + return fmt.Errorf("proto: EventRenounced: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventModifiedContract: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventRenounced: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5127,7 +3799,7 @@ func (m *EventModifiedContract) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5155,13 +3827,13 @@ func (m *EventModifiedContract) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Operator = string(dAtA[iNdEx:postIndex]) + m.Grantee = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) } - var msglen int + m.Permission = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -5171,26 +3843,11 @@ func (m *EventModifiedContract) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Permission |= Permission(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Changes = append(m.Changes, Attribute{}) - if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvent(dAtA[iNdEx:]) @@ -5212,7 +3869,7 @@ func (m *EventModifiedContract) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventModifiedTokenClass) Unmarshal(dAtA []byte) error { +func (m *EventMintedFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5235,10 +3892,10 @@ func (m *EventModifiedTokenClass) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventModifiedTokenClass: wiretype end group for non-group") + return fmt.Errorf("proto: EventMintedFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventModifiedTokenClass: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventMintedFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5303,45 +3960,13 @@ func (m *EventModifiedTokenClass) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TokenType = string(dAtA[iNdEx:postIndex]) + m.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -5351,31 +3976,29 @@ func (m *EventModifiedTokenClass) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEvent } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvent } if postIndex > l { return io.ErrUnexpectedEOF } - m.Changes = append(m.Changes, Attribute{}) - if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.To = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -5385,23 +4008,25 @@ func (m *EventModifiedTokenClass) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthEvent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEvent } if postIndex > l { return io.ErrUnexpectedEOF } - m.TypeName = string(dAtA[iNdEx:postIndex]) + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -5424,7 +4049,7 @@ func (m *EventModifiedTokenClass) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventModifiedNFT) Unmarshal(dAtA []byte) error { +func (m *EventMintedNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5447,10 +4072,10 @@ func (m *EventModifiedNFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventModifiedNFT: wiretype end group for non-group") + return fmt.Errorf("proto: EventMintedNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventModifiedNFT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventMintedNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5519,7 +4144,7 @@ func (m *EventModifiedNFT) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5547,11 +4172,11 @@ func (m *EventModifiedNFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenId = string(dAtA[iNdEx:postIndex]) + m.To = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tokens", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5578,8 +4203,8 @@ func (m *EventModifiedNFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Changes = append(m.Changes, Attribute{}) - if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Tokens = append(m.Tokens, NFT{}) + if err := m.Tokens[len(m.Tokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5604,7 +4229,7 @@ func (m *EventModifiedNFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventAttached) Unmarshal(dAtA []byte) error { +func (m *EventBurned) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5627,10 +4252,10 @@ func (m *EventAttached) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventAttached: wiretype end group for non-group") + return fmt.Errorf("proto: EventBurned: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventAttached: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventBurned: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5699,7 +4324,7 @@ func (m *EventAttached) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5727,13 +4352,13 @@ func (m *EventAttached) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Holder = string(dAtA[iNdEx:postIndex]) + m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -5743,55 +4368,25 @@ func (m *EventAttached) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthEvent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEvent } if postIndex > l { return io.ErrUnexpectedEOF } - m.Subject = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Target = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -5814,7 +4409,7 @@ func (m *EventAttached) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventDetached) Unmarshal(dAtA []byte) error { +func (m *EventModifiedContract) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5837,10 +4432,10 @@ func (m *EventDetached) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventDetached: wiretype end group for non-group") + return fmt.Errorf("proto: EventModifiedContract: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventDetached: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventModifiedContract: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5909,41 +4504,9 @@ func (m *EventDetached) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Holder = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -5953,55 +4516,25 @@ func (m *EventDetached) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthEvent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEvent } if postIndex > l { return io.ErrUnexpectedEOF } - m.Subject = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreviousParent", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.PreviousParent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -6024,7 +4557,7 @@ func (m *EventDetached) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventOwnerChanged) Unmarshal(dAtA []byte) error { +func (m *EventModifiedTokenClass) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6047,10 +4580,10 @@ func (m *EventOwnerChanged) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventOwnerChanged: wiretype end group for non-group") + return fmt.Errorf("proto: EventModifiedTokenClass: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventOwnerChanged: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventModifiedTokenClass: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6087,7 +4620,7 @@ func (m *EventOwnerChanged) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6115,11 +4648,11 @@ func (m *EventOwnerChanged) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenId = string(dAtA[iNdEx:postIndex]) + m.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6147,11 +4680,45 @@ func (m *EventOwnerChanged) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.From = string(dAtA[iNdEx:postIndex]) + m.TokenType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6179,7 +4746,7 @@ func (m *EventOwnerChanged) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.To = string(dAtA[iNdEx:postIndex]) + m.TypeName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -6202,7 +4769,7 @@ func (m *EventOwnerChanged) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventRootChanged) Unmarshal(dAtA []byte) error { +func (m *EventModifiedNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6225,10 +4792,10 @@ func (m *EventRootChanged) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventRootChanged: wiretype end group for non-group") + return fmt.Errorf("proto: EventModifiedNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventRootChanged: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventModifiedNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6265,7 +4832,7 @@ func (m *EventRootChanged) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6293,11 +4860,11 @@ func (m *EventRootChanged) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenId = string(dAtA[iNdEx:postIndex]) + m.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6325,13 +4892,13 @@ func (m *EventRootChanged) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.From = string(dAtA[iNdEx:postIndex]) + m.TokenId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -6341,23 +4908,25 @@ func (m *EventRootChanged) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthEvent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEvent } if postIndex > l { return io.ErrUnexpectedEOF } - m.To = string(dAtA[iNdEx:postIndex]) + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/collection/genesis.go b/x/collection/genesis.go index dc6431c130..ca12808e9d 100644 --- a/x/collection/genesis.go +++ b/x/collection/genesis.go @@ -10,11 +10,6 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -const ( - DefaultDepthLimit = 1 - DefaultWidthLimit = 4 -) - // ValidateGenesis check the given genesis state has no integrity issues func ValidateGenesis(data GenesisState) error { if err := validateParams(data.Params); err != nil { @@ -114,24 +109,6 @@ func ValidateGenesis(data GenesisState) error { } } - for _, contractParents := range data.Parents { - if err := ValidateContractID(contractParents.ContractId); err != nil { - return err - } - - if len(contractParents.Relations) == 0 { - return sdkerrors.ErrInvalidRequest.Wrap("parents cannot be empty") - } - for _, relation := range contractParents.Relations { - if err := ValidateTokenID(relation.Self); err != nil { - return err - } - if err := ValidateTokenID(relation.Other); err != nil { - return err - } - } - } - for _, contractAuthorizations := range data.Authorizations { if err := ValidateContractID(contractAuthorizations.ContractId); err != nil { return err @@ -216,10 +193,7 @@ func ValidateGenesis(data GenesisState) error { // DefaultGenesisState - Return a default genesis state func DefaultGenesisState() *GenesisState { return &GenesisState{ - Params: Params{ - DepthLimit: DefaultDepthLimit, - WidthLimit: DefaultWidthLimit, - }, + Params: Params{}, ClassState: &ClassState{ Nonce: cmath.ZeroUint(), }, diff --git a/x/collection/genesis.pb.go b/x/collection/genesis.pb.go index 5ccf7d410e..d2e9a09dd6 100644 --- a/x/collection/genesis.pb.go +++ b/x/collection/genesis.pb.go @@ -42,8 +42,6 @@ type GenesisState struct { Balances []ContractBalances `protobuf:"bytes,6,rep,name=balances,proto3" json:"balances"` // nfts is an array containing the nfts. Nfts []ContractNFTs `protobuf:"bytes,7,rep,name=nfts,proto3" json:"nfts"` - // parents represents the parents of (non-fungible) tokens. - Parents []ContractTokenRelations `protobuf:"bytes,8,rep,name=parents,proto3" json:"parents"` // grants defines the grant information. Grants []ContractGrants `protobuf:"bytes,9,rep,name=grants,proto3" json:"grants"` // authorizations defines the approve information. @@ -138,13 +136,6 @@ func (m *GenesisState) GetNfts() []ContractNFTs { return nil } -func (m *GenesisState) GetParents() []ContractTokenRelations { - if m != nil { - return m.Parents - } - return nil -} - func (m *GenesisState) GetGrants() []ContractGrants { if m != nil { return m.Grants @@ -763,116 +754,6 @@ func (m *NextTokenID) GetClassId() string { return "" } -// ContractTokenRelations defines token relations belong to a contract. -type ContractTokenRelations struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // relations - Relations []TokenRelation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations"` -} - -func (m *ContractTokenRelations) Reset() { *m = ContractTokenRelations{} } -func (m *ContractTokenRelations) String() string { return proto.CompactTextString(m) } -func (*ContractTokenRelations) ProtoMessage() {} -func (*ContractTokenRelations) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8b3f666cffb1ec, []int{12} -} -func (m *ContractTokenRelations) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContractTokenRelations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContractTokenRelations.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 *ContractTokenRelations) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContractTokenRelations.Merge(m, src) -} -func (m *ContractTokenRelations) XXX_Size() int { - return m.Size() -} -func (m *ContractTokenRelations) XXX_DiscardUnknown() { - xxx_messageInfo_ContractTokenRelations.DiscardUnknown(m) -} - -var xxx_messageInfo_ContractTokenRelations proto.InternalMessageInfo - -func (m *ContractTokenRelations) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *ContractTokenRelations) GetRelations() []TokenRelation { - if m != nil { - return m.Relations - } - return nil -} - -// TokenRelation defines relations between two tokens. -type TokenRelation struct { - // self - Self string `protobuf:"bytes,1,opt,name=self,proto3" json:"self,omitempty"` - // other - Other string `protobuf:"bytes,2,opt,name=other,proto3" json:"other,omitempty"` -} - -func (m *TokenRelation) Reset() { *m = TokenRelation{} } -func (m *TokenRelation) String() string { return proto.CompactTextString(m) } -func (*TokenRelation) ProtoMessage() {} -func (*TokenRelation) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8b3f666cffb1ec, []int{13} -} -func (m *TokenRelation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TokenRelation.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 *TokenRelation) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenRelation.Merge(m, src) -} -func (m *TokenRelation) XXX_Size() int { - return m.Size() -} -func (m *TokenRelation) XXX_DiscardUnknown() { - xxx_messageInfo_TokenRelation.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenRelation proto.InternalMessageInfo - -func (m *TokenRelation) GetSelf() string { - if m != nil { - return m.Self - } - return "" -} - -func (m *TokenRelation) GetOther() string { - if m != nil { - return m.Other - } - return "" -} - // ClassState defines the classes state. type ClassState struct { // nonce is the next class nonce to issue. @@ -885,7 +766,7 @@ func (m *ClassState) Reset() { *m = ClassState{} } func (m *ClassState) String() string { return proto.CompactTextString(m) } func (*ClassState) ProtoMessage() {} func (*ClassState) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8b3f666cffb1ec, []int{14} + return fileDescriptor_2b8b3f666cffb1ec, []int{12} } func (m *ClassState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -934,77 +815,71 @@ func init() { proto.RegisterType((*NextClassIDs)(nil), "lbm.collection.v1.NextClassIDs") proto.RegisterType((*ContractNextTokenIDs)(nil), "lbm.collection.v1.ContractNextTokenIDs") proto.RegisterType((*NextTokenID)(nil), "lbm.collection.v1.NextTokenID") - proto.RegisterType((*ContractTokenRelations)(nil), "lbm.collection.v1.ContractTokenRelations") - proto.RegisterType((*TokenRelation)(nil), "lbm.collection.v1.TokenRelation") proto.RegisterType((*ClassState)(nil), "lbm.collection.v1.ClassState") } func init() { proto.RegisterFile("lbm/collection/v1/genesis.proto", fileDescriptor_2b8b3f666cffb1ec) } var fileDescriptor_2b8b3f666cffb1ec = []byte{ - // 987 bytes of a gzipped FileDescriptorProto + // 921 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0x8e, 0xf3, 0xc3, 0x3f, 0x9e, 0x9d, 0xb4, 0x8c, 0x42, 0xd8, 0x04, 0x61, 0x87, 0x45, 0x88, - 0x22, 0xe4, 0x5d, 0x5a, 0x24, 0x50, 0x11, 0xb4, 0x8a, 0x5d, 0x12, 0x2c, 0xa4, 0xaa, 0x72, 0x83, - 0x90, 0xb8, 0x58, 0xeb, 0xdd, 0xb1, 0x3d, 0xca, 0x7a, 0xc6, 0xdd, 0x19, 0x47, 0x69, 0x2f, 0x3d, - 0x73, 0xe3, 0x4f, 0x40, 0xe2, 0xc6, 0xb9, 0x7f, 0x44, 0x85, 0x38, 0x54, 0x9c, 0x10, 0x87, 0x82, - 0x92, 0x0b, 0x7f, 0x06, 0x9a, 0x1f, 0xbb, 0x5e, 0xdb, 0x5b, 0xaf, 0xda, 0xdb, 0xcc, 0xce, 0xfb, - 0xbe, 0xef, 0xcd, 0xf3, 0x7b, 0xdf, 0x18, 0x1a, 0x61, 0x7f, 0xec, 0xfa, 0x2c, 0x0c, 0xb1, 0x2f, - 0x08, 0xa3, 0xee, 0xf9, 0x4d, 0x77, 0x88, 0x29, 0xe6, 0x84, 0x3b, 0x93, 0x88, 0x09, 0x86, 0xde, - 0x0a, 0xfb, 0x63, 0x67, 0x16, 0xe0, 0x9c, 0xdf, 0x3c, 0xd8, 0x1f, 0x32, 0x36, 0x0c, 0xb1, 0xab, - 0x02, 0xfa, 0xd3, 0x81, 0xeb, 0xd1, 0xc7, 0x3a, 0xfa, 0x60, 0x77, 0xc8, 0x86, 0x4c, 0x2d, 0x5d, - 0xb9, 0x32, 0x5f, 0xf7, 0x7d, 0xc6, 0xc7, 0x8c, 0xf7, 0xf4, 0x81, 0xde, 0x98, 0x23, 0x7b, 0x59, - 0x3f, 0x25, 0xa6, 0x62, 0xec, 0x5f, 0x4b, 0x50, 0x3b, 0xd1, 0x49, 0x3d, 0x14, 0x9e, 0xc0, 0xe8, - 0x0b, 0x28, 0x4e, 0xbc, 0xc8, 0x1b, 0x73, 0xab, 0x70, 0x58, 0xb8, 0x51, 0xbd, 0xb5, 0xef, 0x2c, - 0x25, 0xe9, 0x3c, 0x50, 0x01, 0xad, 0xcd, 0xe7, 0x2f, 0x1b, 0x6b, 0x5d, 0x13, 0x8e, 0xee, 0x42, - 0xc5, 0x67, 0x54, 0x44, 0x9e, 0x2f, 0xb8, 0xb5, 0x7e, 0xb8, 0x71, 0xa3, 0x7a, 0xeb, 0xdd, 0x0c, - 0x6c, 0xdb, 0xc4, 0x18, 0xf4, 0x0c, 0x83, 0xbe, 0x83, 0x1d, 0x8a, 0x2f, 0x44, 0xcf, 0x0f, 0x3d, - 0xce, 0x7b, 0x24, 0xe0, 0xd6, 0x86, 0x62, 0x69, 0x64, 0xb0, 0xdc, 0xc7, 0x17, 0xa2, 0x2d, 0xe3, - 0x3a, 0xf7, 0xe2, 0x3c, 0x6a, 0x34, 0xf9, 0x16, 0x70, 0xd4, 0x82, 0x92, 0xe2, 0xc1, 0xdc, 0xda, - 0x54, 0x2c, 0xf6, 0x8a, 0x5c, 0xda, 0x3a, 0xd2, 0x10, 0xc5, 0x40, 0xf4, 0xd0, 0x24, 0x24, 0xd8, - 0x19, 0xa6, 0x2a, 0xa1, 0x2d, 0x45, 0xf5, 0xd1, 0x0a, 0x2a, 0x99, 0xd8, 0xa9, 0x8c, 0x5f, 0x48, - 0x4c, 0x7f, 0x0b, 0x38, 0xfa, 0x06, 0xca, 0x7d, 0x2f, 0xf4, 0xa8, 0x8f, 0xb9, 0x55, 0x54, 0x74, - 0x1f, 0xac, 0xaa, 0x92, 0x09, 0x35, 0x54, 0x09, 0x14, 0xdd, 0x86, 0x4d, 0x3a, 0x10, 0xdc, 0x2a, - 0xbd, 0xb2, 0x44, 0x49, 0x46, 0xc7, 0xa7, 0x31, 0x5c, 0x41, 0x50, 0x07, 0x4a, 0x13, 0x2f, 0xc2, - 0x54, 0x70, 0xab, 0xac, 0xd0, 0x1f, 0xaf, 0x40, 0xab, 0xbc, 0xbb, 0x38, 0xf4, 0xe4, 0x41, 0x52, - 0x21, 0x83, 0x47, 0x77, 0xa1, 0x38, 0x8c, 0x3c, 0xc9, 0x54, 0x51, 0x4c, 0xef, 0xaf, 0x60, 0x3a, - 0x51, 0x81, 0x71, 0xd3, 0x68, 0x18, 0xfa, 0x01, 0x76, 0xbc, 0xa9, 0x18, 0xb1, 0x88, 0x3c, 0xd1, - 0x0a, 0x16, 0xe4, 0xa6, 0x74, 0x34, 0x07, 0x30, 0x84, 0x0b, 0x34, 0xe8, 0x04, 0xca, 0x7c, 0x3a, - 0x99, 0x84, 0x04, 0x73, 0xab, 0xaa, 0x28, 0x3f, 0x5c, 0x41, 0x29, 0x5b, 0x9f, 0x70, 0x41, 0xfc, - 0xa4, 0xd0, 0x31, 0x18, 0xb5, 0xa1, 0xd8, 0x9f, 0x46, 0xf2, 0x8a, 0xb5, 0xd7, 0xa7, 0x31, 0x50, - 0x74, 0x07, 0xaa, 0xba, 0xab, 0xb9, 0x9c, 0x31, 0x6b, 0x5b, 0x4d, 0xd6, 0x7b, 0x59, 0x4c, 0x32, - 0x4a, 0x0d, 0x62, 0x17, 0xfc, 0x64, 0x6d, 0x3f, 0x82, 0xeb, 0x8b, 0x1d, 0x81, 0x1a, 0x50, 0x8d, - 0x67, 0xa7, 0x47, 0x02, 0x35, 0xad, 0x95, 0x2e, 0xc4, 0x9f, 0x3a, 0x01, 0xfa, 0x2a, 0xd5, 0x69, - 0x7a, 0x1e, 0x0f, 0x32, 0x14, 0x0d, 0xdf, 0x62, 0x83, 0xd9, 0x4f, 0x01, 0x2d, 0x5f, 0x2b, 0x5f, - 0xf4, 0x5b, 0x00, 0x9e, 0x84, 0x1b, 0x59, 0x7b, 0xd5, 0x45, 0xe7, 0xea, 0x95, 0xc2, 0xda, 0x8f, - 0xe0, 0xda, 0x42, 0x10, 0xda, 0x87, 0x72, 0x6c, 0x0e, 0x46, 0x5a, 0xcf, 0x6a, 0x27, 0x90, 0x3f, - 0x93, 0x37, 0x66, 0x53, 0x2a, 0xac, 0x75, 0x79, 0xd0, 0xfa, 0x44, 0xf2, 0xfd, 0xfd, 0xb2, 0xf1, - 0xb6, 0x76, 0x44, 0x1e, 0x9c, 0x39, 0x84, 0xb9, 0x63, 0x4f, 0x8c, 0x9c, 0x0e, 0x15, 0x7f, 0x3e, - 0x6b, 0x82, 0xb1, 0xca, 0x0e, 0x15, 0x5d, 0x03, 0xb5, 0x09, 0x94, 0x4c, 0x39, 0x90, 0x05, 0x25, - 0x2f, 0x08, 0x22, 0xcc, 0x79, 0xac, 0x64, 0xb6, 0xe8, 0x4e, 0x4a, 0x49, 0xde, 0xee, 0x9d, 0xcc, - 0x86, 0x20, 0xb4, 0xb5, 0x2d, 0x53, 0xf8, 0xed, 0x9f, 0xc6, 0x96, 0xdc, 0xf1, 0x58, 0xe4, 0xcb, - 0xcd, 0xff, 0x7e, 0x69, 0x14, 0xec, 0x73, 0xb8, 0xb6, 0xe0, 0x3e, 0xf9, 0xb5, 0x4d, 0x79, 0x9a, - 0x96, 0xde, 0x75, 0xf4, 0x6b, 0xe1, 0xc4, 0xaf, 0x85, 0x73, 0x44, 0x1f, 0xb7, 0x90, 0xd4, 0xfd, - 0xfd, 0x59, 0x13, 0xd4, 0xec, 0x2a, 0xf6, 0xc4, 0xd3, 0x6c, 0x0f, 0x6a, 0x69, 0x63, 0xc8, 0x17, - 0xfd, 0xd4, 0x18, 0x8d, 0x56, 0xdc, 0xcb, 0xf2, 0xe2, 0xe3, 0xd3, 0xb4, 0xbf, 0xd8, 0x3f, 0x15, - 0x60, 0x2f, 0x7b, 0x56, 0xf3, 0xd5, 0xee, 0x2f, 0xf9, 0x81, 0xd6, 0x3d, 0xcc, 0xd0, 0x9d, 0xe3, - 0xce, 0xb6, 0x01, 0x9b, 0xc0, 0xce, 0xbc, 0xff, 0xe4, 0xa7, 0xf0, 0x79, 0xe2, 0x69, 0x5a, 0xda, - 0xca, 0x90, 0x56, 0x5c, 0xf3, 0x56, 0x66, 0xff, 0x51, 0x80, 0x5a, 0xfa, 0x59, 0xca, 0x57, 0xea, - 0x40, 0x79, 0x30, 0xa5, 0x43, 0xd2, 0x0f, 0xb1, 0xe9, 0xda, 0xa6, 0xe9, 0xda, 0xbd, 0xe5, 0xae, - 0xfd, 0x9e, 0xa8, 0xb6, 0xad, 0x9a, 0xb6, 0x95, 0xdb, 0x6e, 0x02, 0x47, 0x0f, 0xa0, 0x46, 0x19, - 0xed, 0x25, 0x74, 0x1b, 0x6f, 0x42, 0x57, 0xa5, 0x8c, 0x1e, 0x1b, 0x06, 0xfb, 0x09, 0xec, 0x66, - 0xbd, 0x69, 0xf9, 0xb7, 0x3a, 0x82, 0xca, 0xec, 0xc1, 0xd4, 0x25, 0xac, 0xbf, 0xe2, 0x05, 0x37, - 0xa4, 0xb1, 0xf7, 0x08, 0xf3, 0x46, 0xda, 0x43, 0xa8, 0xa6, 0x8e, 0x57, 0x8d, 0xfd, 0xd7, 0xb0, - 0x4e, 0x82, 0x37, 0x2b, 0xde, 0x3a, 0x09, 0xec, 0xa7, 0xb3, 0x4e, 0x9d, 0x7f, 0xe8, 0xf2, 0xaf, - 0x79, 0x0f, 0x2a, 0x51, 0x1c, 0xbd, 0xa2, 0x49, 0xe7, 0x68, 0xe3, 0xff, 0x3c, 0x09, 0xd0, 0xbe, - 0x0d, 0xdb, 0x73, 0x11, 0x08, 0xc1, 0x26, 0xc7, 0xe1, 0xc0, 0x08, 0xaa, 0x35, 0xda, 0x85, 0x2d, - 0x26, 0x46, 0x38, 0xd2, 0xf7, 0xec, 0xea, 0x8d, 0xed, 0x03, 0xcc, 0x5e, 0x0b, 0xd4, 0x86, 0x2d, - 0xca, 0xa8, 0x8f, 0x35, 0xf0, 0x75, 0x6b, 0xa1, 0xb1, 0xe8, 0x3a, 0x6c, 0xc4, 0x3f, 0x5a, 0xa5, - 0x2b, 0x97, 0xad, 0x93, 0xe7, 0x97, 0xf5, 0xc2, 0x8b, 0xcb, 0x7a, 0xe1, 0xdf, 0xcb, 0x7a, 0xe1, - 0xe7, 0xab, 0xfa, 0xda, 0x8b, 0xab, 0xfa, 0xda, 0x5f, 0x57, 0xf5, 0xb5, 0x1f, 0x9b, 0x43, 0x22, - 0x46, 0xd3, 0xbe, 0xe3, 0xb3, 0xb1, 0x7b, 0x4c, 0x28, 0xf7, 0x47, 0xc4, 0x73, 0x07, 0x66, 0xd1, - 0xe4, 0xc1, 0x99, 0x7b, 0x91, 0xfa, 0xb7, 0xd9, 0x2f, 0x2a, 0x8b, 0xfa, 0xec, 0xff, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x22, 0x41, 0x81, 0x16, 0x14, 0x0b, 0x00, 0x00, + 0x14, 0x8e, 0x13, 0xc7, 0xb1, 0x9f, 0xdd, 0x34, 0x8c, 0x42, 0xd8, 0x04, 0x61, 0x87, 0x41, 0x88, + 0x22, 0xe4, 0x5d, 0x5a, 0x24, 0x10, 0x08, 0x5a, 0xc5, 0x86, 0x04, 0x83, 0x54, 0x55, 0x6e, 0x10, + 0x12, 0x17, 0x6b, 0xbc, 0xbb, 0xd9, 0x8c, 0xb2, 0x9e, 0x49, 0x3d, 0xe3, 0x28, 0xed, 0x85, 0x33, + 0x37, 0xfe, 0x04, 0xce, 0x9c, 0xfb, 0x47, 0x54, 0x88, 0x43, 0xc5, 0x09, 0x71, 0x08, 0x28, 0xb9, + 0xf0, 0x67, 0x54, 0xf3, 0x63, 0x37, 0x6b, 0x7b, 0xbb, 0x56, 0x7b, 0x9b, 0x9d, 0x79, 0xdf, 0xf7, + 0xbd, 0x79, 0x7e, 0xef, 0x1b, 0x43, 0x2b, 0x1e, 0x8e, 0x3c, 0x9f, 0xc7, 0x71, 0xe8, 0x4b, 0xca, + 0x99, 0x77, 0x76, 0xdb, 0x8b, 0x42, 0x16, 0x0a, 0x2a, 0xdc, 0xd3, 0x31, 0x97, 0x1c, 0xbd, 0x11, + 0x0f, 0x47, 0xee, 0x75, 0x80, 0x7b, 0x76, 0x7b, 0x67, 0x3b, 0xe2, 0x3c, 0x8a, 0x43, 0x4f, 0x07, + 0x0c, 0x27, 0x47, 0x1e, 0x61, 0x8f, 0x4d, 0xf4, 0xce, 0x66, 0xc4, 0x23, 0xae, 0x97, 0x9e, 0x5a, + 0xd9, 0xdd, 0x6d, 0x9f, 0x8b, 0x11, 0x17, 0x03, 0x73, 0x60, 0x3e, 0xec, 0x11, 0x9e, 0xd7, 0xcf, + 0x88, 0xe9, 0x18, 0x7c, 0x51, 0x81, 0xc6, 0x81, 0x49, 0xea, 0xa1, 0x24, 0x32, 0x44, 0x9f, 0x41, + 0xe5, 0x94, 0x8c, 0xc9, 0x48, 0x38, 0xa5, 0xdd, 0xd2, 0xad, 0xfa, 0x9d, 0x6d, 0x77, 0x2e, 0x49, + 0xf7, 0x81, 0x0e, 0xe8, 0x94, 0x9f, 0x5d, 0xb4, 0x96, 0xfa, 0x36, 0x1c, 0xdd, 0x83, 0x9a, 0xcf, + 0x99, 0x1c, 0x13, 0x5f, 0x0a, 0x67, 0x79, 0x77, 0xe5, 0x56, 0xfd, 0xce, 0xdb, 0x39, 0xd8, 0xae, + 0x8d, 0xb1, 0xe8, 0x6b, 0x0c, 0xfa, 0x1e, 0xd6, 0x59, 0x78, 0x2e, 0x07, 0x7e, 0x4c, 0x84, 0x18, + 0xd0, 0x40, 0x38, 0x2b, 0x9a, 0xa5, 0x95, 0xc3, 0x72, 0x3f, 0x3c, 0x97, 0x5d, 0x15, 0xd7, 0xfb, + 0x3a, 0xc9, 0xa3, 0xc1, 0xd2, 0xbd, 0x40, 0xa0, 0x0e, 0xac, 0x69, 0x9e, 0x50, 0x38, 0x65, 0xcd, + 0x82, 0x0b, 0x72, 0xe9, 0x9a, 0x48, 0x4b, 0x94, 0x00, 0xd1, 0x43, 0x9b, 0x90, 0xe4, 0x27, 0x21, + 0xd3, 0x09, 0xad, 0x6a, 0xaa, 0x0f, 0x0a, 0xa8, 0x54, 0x62, 0x87, 0x2a, 0x7e, 0x26, 0x31, 0xb3, + 0x17, 0x08, 0xf4, 0x0d, 0x54, 0x87, 0x24, 0x26, 0xcc, 0x0f, 0x85, 0x53, 0xd1, 0x74, 0xef, 0x15, + 0x55, 0xc9, 0x86, 0x5a, 0xaa, 0x14, 0x8a, 0x3e, 0x87, 0x32, 0x3b, 0x92, 0xc2, 0x59, 0x7b, 0x69, + 0x89, 0xd2, 0x8c, 0xf6, 0x0f, 0x13, 0xb8, 0x86, 0xa0, 0x7b, 0x50, 0x89, 0xc6, 0x84, 0x49, 0xe1, + 0xd4, 0x34, 0xf8, 0xdd, 0x02, 0xf0, 0x81, 0x0e, 0x4c, 0x7e, 0x69, 0x03, 0x43, 0x3f, 0xc2, 0x3a, + 0x99, 0xc8, 0x63, 0x3e, 0xa6, 0x4f, 0x88, 0x02, 0x08, 0x07, 0x34, 0xd1, 0x87, 0x05, 0x44, 0x7b, + 0x53, 0x00, 0x4b, 0x38, 0x43, 0x83, 0x0e, 0xa0, 0x2a, 0x26, 0xa7, 0xa7, 0x31, 0x0d, 0x85, 0x53, + 0xd7, 0x94, 0xef, 0x17, 0x50, 0xaa, 0x7e, 0xa5, 0x42, 0x52, 0x3f, 0xad, 0x4e, 0x02, 0x46, 0x5d, + 0xa8, 0x0c, 0x27, 0x63, 0x75, 0xc5, 0xc6, 0xab, 0xd3, 0x58, 0x28, 0xba, 0x0b, 0x75, 0xd3, 0x8a, + 0x42, 0x0d, 0x86, 0x73, 0x43, 0x8f, 0xc3, 0x3b, 0x79, 0x4c, 0x2a, 0x4a, 0x4f, 0x4f, 0x1f, 0xfc, + 0x74, 0xfd, 0x5d, 0xb9, 0x5a, 0xdd, 0xa8, 0xe1, 0x47, 0xb0, 0x31, 0xfb, 0x63, 0xa2, 0x16, 0xd4, + 0x93, 0xb6, 0x1f, 0xd0, 0x40, 0x0f, 0x5a, 0xad, 0x0f, 0xc9, 0x56, 0x2f, 0x40, 0x5f, 0x66, 0x9a, + 0xc4, 0x8c, 0xd2, 0x4e, 0x8e, 0xae, 0xe5, 0x9b, 0xed, 0x0d, 0xfc, 0x33, 0xa0, 0xf9, 0xcb, 0x2d, + 0x16, 0xfd, 0x16, 0x40, 0xa4, 0xe1, 0x56, 0x16, 0x17, 0x5d, 0x77, 0xaa, 0x6a, 0x19, 0x2c, 0x7e, + 0x04, 0x37, 0x67, 0x82, 0xd0, 0x36, 0x54, 0x93, 0xb9, 0xb6, 0xd2, 0x66, 0xcc, 0x7a, 0x81, 0xfa, + 0xb1, 0xc8, 0x88, 0x4f, 0x98, 0x74, 0x96, 0xd5, 0x41, 0xe7, 0x23, 0xc5, 0xf7, 0xcf, 0x45, 0xeb, + 0x4d, 0x63, 0x66, 0x22, 0x38, 0x71, 0x29, 0xf7, 0x46, 0x44, 0x1e, 0xbb, 0x3d, 0x26, 0xff, 0x7a, + 0xda, 0x06, 0xeb, 0x72, 0x3d, 0x26, 0xfb, 0x16, 0x8a, 0x29, 0xac, 0xd9, 0x72, 0x20, 0x07, 0xd6, + 0x48, 0x10, 0x8c, 0x43, 0x21, 0x12, 0x25, 0xfb, 0x89, 0xee, 0x66, 0x94, 0xd4, 0xed, 0xde, 0xca, + 0x6d, 0x0b, 0xca, 0x3a, 0x37, 0x54, 0x0a, 0xbf, 0xff, 0xdb, 0x5a, 0x55, 0x5f, 0x22, 0x11, 0xf9, + 0xa2, 0xfc, 0xff, 0x6f, 0xad, 0x12, 0x3e, 0x83, 0x9b, 0x33, 0xc6, 0xb1, 0xb8, 0xb6, 0x19, 0x3b, + 0x32, 0xd2, 0x9b, 0xae, 0x31, 0x7a, 0x37, 0x31, 0x7a, 0x77, 0x8f, 0x3d, 0xee, 0x20, 0xa5, 0xfb, + 0xc7, 0xd3, 0x36, 0x68, 0xbb, 0xd0, 0xec, 0xa9, 0x1d, 0x61, 0x02, 0x8d, 0xec, 0x4c, 0x2f, 0x16, + 0xfd, 0xd8, 0x7a, 0x84, 0x51, 0xdc, 0xca, 0xb3, 0xd1, 0xfd, 0xc3, 0xac, 0x35, 0xe0, 0x5f, 0x4a, + 0xb0, 0x95, 0x3f, 0xb1, 0x8b, 0xd5, 0xee, 0xcf, 0xb9, 0x82, 0xd1, 0xdd, 0xcd, 0xd1, 0x9d, 0xe2, + 0xce, 0x37, 0x03, 0x4c, 0x61, 0x7d, 0xda, 0x85, 0x16, 0xa7, 0xf0, 0x69, 0xea, 0x6c, 0x46, 0xda, + 0xc9, 0x91, 0xd6, 0x5c, 0xd3, 0x86, 0x86, 0xff, 0x2c, 0x41, 0x23, 0xfb, 0xa2, 0x2c, 0x56, 0xea, + 0x41, 0xf5, 0x68, 0xc2, 0x22, 0x3a, 0x8c, 0x43, 0xdb, 0xb5, 0x6d, 0xdb, 0xb5, 0x5b, 0xf3, 0x5d, + 0xfb, 0x03, 0xd5, 0x6d, 0x5b, 0xb7, 0x6d, 0xab, 0x3e, 0xfb, 0x29, 0x1c, 0x3d, 0x80, 0x06, 0xe3, + 0x6c, 0x90, 0xd2, 0xad, 0xbc, 0x0e, 0x5d, 0x9d, 0x71, 0xb6, 0x6f, 0x19, 0xf0, 0x13, 0xd8, 0xcc, + 0x7b, 0x8e, 0x16, 0xdf, 0x6a, 0x0f, 0x6a, 0xd7, 0x6f, 0x9d, 0x29, 0x61, 0xf3, 0x25, 0x8f, 0xaf, + 0x25, 0x4d, 0xbc, 0x47, 0xda, 0xe7, 0x0d, 0x47, 0x50, 0xcf, 0x1c, 0x17, 0x8d, 0xfd, 0x57, 0xb0, + 0x4c, 0x83, 0xd7, 0x2b, 0xde, 0x32, 0x0d, 0xb0, 0x0f, 0x70, 0xed, 0xbb, 0xa8, 0x0b, 0xab, 0x8c, + 0x33, 0x3f, 0x34, 0x22, 0xaf, 0xca, 0x67, 0xb0, 0x68, 0x03, 0x56, 0x92, 0x8b, 0xd7, 0xfa, 0x6a, + 0xd9, 0x39, 0x78, 0x76, 0xd9, 0x2c, 0x3d, 0xbf, 0x6c, 0x96, 0xfe, 0xbb, 0x6c, 0x96, 0x7e, 0xbd, + 0x6a, 0x2e, 0x3d, 0xbf, 0x6a, 0x2e, 0xfd, 0x7d, 0xd5, 0x5c, 0xfa, 0xa9, 0x1d, 0x51, 0x79, 0x3c, + 0x19, 0xba, 0x3e, 0x1f, 0x79, 0xfb, 0x94, 0x09, 0xff, 0x98, 0x12, 0xef, 0xc8, 0x2e, 0xda, 0x22, + 0x38, 0xf1, 0xce, 0x33, 0x7f, 0xb6, 0x86, 0x15, 0x3d, 0xe6, 0x9f, 0xbc, 0x08, 0x00, 0x00, 0xff, + 0xff, 0xb9, 0x21, 0xb6, 0x79, 0x13, 0x0a, 0x00, 0x00, } func (this *Balance) Equal(that interface{}) bool { @@ -1127,20 +1002,6 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x4a } } - if len(m.Parents) > 0 { - for iNdEx := len(m.Parents) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Parents[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - } if len(m.Nfts) > 0 { for iNdEx := len(m.Nfts) - 1; iNdEx >= 0; iNdEx-- { { @@ -1720,87 +1581,6 @@ func (m *NextTokenID) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ContractTokenRelations) 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 *ContractTokenRelations) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContractTokenRelations) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Relations) > 0 { - for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Relations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TokenRelation) 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 *TokenRelation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenRelation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Other) > 0 { - i -= len(m.Other) - copy(dAtA[i:], m.Other) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Other))) - i-- - dAtA[i] = 0x12 - } - if len(m.Self) > 0 { - i -= len(m.Self) - copy(dAtA[i:], m.Self) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Self))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *ClassState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1898,12 +1678,6 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - if len(m.Parents) > 0 { - for _, e := range m.Parents { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } if len(m.Grants) > 0 { for _, e := range m.Grants { l = e.Size() @@ -2134,42 +1908,6 @@ func (m *NextTokenID) Size() (n int) { return n } -func (m *ContractTokenRelations) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if len(m.Relations) > 0 { - for _, e := range m.Relations { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func (m *TokenRelation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Self) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.Other) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - return n -} - func (m *ClassState) Size() (n int) { if m == nil { return 0 @@ -2459,40 +2197,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parents", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Parents = append(m.Parents, ContractTokenRelations{}) - if err := m.Parents[len(m.Parents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) @@ -3996,236 +3700,6 @@ func (m *NextTokenID) Unmarshal(dAtA []byte) error { } return nil } -func (m *ContractTokenRelations) 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 ErrIntOverflowGenesis - } - 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: ContractTokenRelations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContractTokenRelations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Relations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Relations = append(m.Relations, TokenRelation{}) - if err := m.Relations[len(m.Relations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TokenRelation) 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 ErrIntOverflowGenesis - } - 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: TokenRelation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TokenRelation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Self", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Self = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Other", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Other = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *ClassState) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/collection/genesis_test.go b/x/collection/genesis_test.go index fff8dff3ea..e6148eac91 100644 --- a/x/collection/genesis_test.go +++ b/x/collection/genesis_test.go @@ -241,47 +241,6 @@ func TestValidateGenesis(t *testing.T) { }, false, }, - "contract parents of invalid contract id": { - &collection.GenesisState{ - Parents: []collection.ContractTokenRelations{{ - Relations: []collection.TokenRelation{{ - Self: collection.NewNFTID("deadbeef", 1), - Other: collection.NewNFTID("fee1dead", 1), - }}, - }}, - }, - false, - }, - "contract parents of empty relations": { - &collection.GenesisState{ - Parents: []collection.ContractTokenRelations{{ - ContractId: "deadbeef", - }}, - }, - false, - }, - "contract parents of invalid token": { - &collection.GenesisState{ - Parents: []collection.ContractTokenRelations{{ - ContractId: "deadbeef", - Relations: []collection.TokenRelation{{ - Other: collection.NewNFTID("fee1dead", 1), - }}, - }}, - }, - false, - }, - "contract parents of invalid parent": { - &collection.GenesisState{ - Parents: []collection.ContractTokenRelations{{ - ContractId: "deadbeef", - Relations: []collection.TokenRelation{{ - Self: collection.NewNFTID("deadbeef", 1), - }}, - }}, - }, - false, - }, "contract authorizations of invalid contract id": { &collection.GenesisState{ Authorizations: []collection.ContractAuthorizations{{ diff --git a/x/collection/keeper/alias.go b/x/collection/keeper/alias.go index 5dcd90a21e..59dc45cafd 100644 --- a/x/collection/keeper/alias.go +++ b/x/collection/keeper/alias.go @@ -1,8 +1,6 @@ package keeper import ( - gogotypes "github.com/cosmos/gogoproto/types" - "cosmossdk.io/math" storetypes "cosmossdk.io/store/types" @@ -153,40 +151,6 @@ func (k Keeper) iterateNFTsImpl(ctx sdk.Context, prefix []byte, fn func(contract } } -func (k Keeper) iterateContractParents(ctx sdk.Context, contractID string, fn func(tokenID, parentID string) (stop bool)) { - k.iterateParentsImpl(ctx, parentKeyPrefixByContractID(contractID), func(_, tokenID, parentID string) (stop bool) { - return fn(tokenID, parentID) - }) -} - -func (k Keeper) iterateParentsImpl(ctx sdk.Context, prefix []byte, fn func(contractID, tokenID, parentID string) (stop bool)) { - iterator := k.iterWithPrefix(ctx, prefix) - defer iterator.Close() - - for ; iterator.Valid(); iterator.Next() { - contractID, tokenID := splitParentKey(iterator.Key()) - - var parentID gogotypes.StringValue - k.cdc.MustUnmarshal(iterator.Value(), &parentID) - - if fn(contractID, tokenID, parentID.Value) { - break - } - } -} - -func (k Keeper) iterateChildrenImpl(ctx sdk.Context, prefix []byte, fn func(contractID, tokenID, childID string) (stop bool)) { - iterator := k.iterWithPrefix(ctx, prefix) - defer iterator.Close() - - for ; iterator.Valid(); iterator.Next() { - contractID, tokenID, childID := splitChildKey(iterator.Key()) - if fn(contractID, tokenID, childID) { - break - } - } -} - func (k Keeper) iterateStatisticsImpl(ctx sdk.Context, prefix []byte, fn func(contractID, classID string, amount math.Int) (stop bool)) { iterator := k.iterWithPrefix(ctx, prefix) defer iterator.Close() diff --git a/x/collection/keeper/genesis.go b/x/collection/keeper/genesis.go index e1e5d3d210..b5b98975c7 100644 --- a/x/collection/keeper/genesis.go +++ b/x/collection/keeper/genesis.go @@ -138,20 +138,6 @@ func (k Keeper) InitGenesis(ctx sdk.Context, data *collection.GenesisState) { reporter.Tick() } - reporter = newProgressReporter(k.Logger(ctx), "import parents", len(data.Parents)) - for _, contractParents := range data.Parents { - contractID := contractParents.ContractId - - for _, relation := range contractParents.Relations { - tokenID := relation.Self - parentID := relation.Other - k.setParent(ctx, contractID, tokenID, parentID) - k.setChild(ctx, contractID, parentID, tokenID) - } - - reporter.Tick() - } - reporter = newProgressReporter(k.Logger(ctx), "import authorizations", len(data.Authorizations)) for _, contractAuthorizations := range data.Authorizations { for _, authorization := range contractAuthorizations.Authorizations { @@ -220,13 +206,13 @@ func (k Keeper) ExportGenesis(ctx sdk.Context) *collection.GenesisState { contracts := k.getContracts(ctx) return &collection.GenesisState{ + Params: k.GetParams(ctx), Contracts: contracts, NextClassIds: k.getAllNextClassIDs(ctx), Classes: k.getClasses(ctx, contracts), NextTokenIds: k.getNextTokenIDs(ctx, contracts), Balances: k.getBalances(ctx, contracts), Nfts: k.getNFTs(ctx, contracts), - Parents: k.getParents(ctx, contracts), Grants: k.getGrants(ctx, contracts), Authorizations: k.getAuthorizations(ctx, contracts), Supplies: k.getSupplies(ctx, contracts), @@ -356,30 +342,6 @@ func (k Keeper) getNFTs(ctx sdk.Context, contracts []collection.Contract) []coll return parents } -func (k Keeper) getParents(ctx sdk.Context, contracts []collection.Contract) []collection.ContractTokenRelations { - var parents []collection.ContractTokenRelations - for _, contract := range contracts { - contractID := contract.Id - contractParents := collection.ContractTokenRelations{ - ContractId: contractID, - } - - k.iterateContractParents(ctx, contractID, func(tokenID, parentID string) (stop bool) { - relation := collection.TokenRelation{ - Self: tokenID, - Other: parentID, - } - contractParents.Relations = append(contractParents.Relations, relation) - return false - }) - if len(contractParents.Relations) != 0 { - parents = append(parents, contractParents) - } - } - - return parents -} - func (k Keeper) getAuthorizations(ctx sdk.Context, contracts []collection.Contract) []collection.ContractAuthorizations { var authorizations []collection.ContractAuthorizations for _, contract := range contracts { diff --git a/x/collection/keeper/grpc_query.go b/x/collection/keeper/grpc_query.go index 4c2d22ef6f..4e93ff4509 100644 --- a/x/collection/keeper/grpc_query.go +++ b/x/collection/keeper/grpc_query.go @@ -375,7 +375,7 @@ func (s queryServer) getToken(ctx sdk.Context, contractID, tokenID string) (coll return nil, err } - owner := s.keeper.GetRootOwner(ctx, contractID, token.TokenId) + owner := s.keeper.getOwner(ctx, contractID, token.TokenId) return &collection.OwnerNFT{ ContractId: contractID, TokenId: token.TokenId, @@ -435,114 +435,6 @@ func (s queryServer) Token(c context.Context, req *collection.QueryTokenRequest) return &collection.QueryTokenResponse{Token: *anyv}, nil } -func (s queryServer) Root(c context.Context, req *collection.QueryRootRequest) (*collection.QueryRootResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - - if err := collection.ValidateContractID(req.ContractId); err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - if err := collection.ValidateNFTID(req.TokenId); err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - ctx := sdk.UnwrapSDKContext(c) - if err := s.keeper.hasNFT(ctx, req.ContractId, req.TokenId); err != nil { - return nil, status.Error(codes.NotFound, err.Error()) - } - - root := s.keeper.GetRoot(ctx, req.ContractId, req.TokenId) - token, err := s.keeper.GetNFT(ctx, req.ContractId, root) - if err != nil { - panic(err) - } - - return &collection.QueryRootResponse{Root: *token}, nil -} - -func (s queryServer) HasParent(c context.Context, req *collection.QueryHasParentRequest) (*collection.QueryHasParentResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - - if err := collection.ValidateContractID(req.GetContractId()); err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - if err := collection.ValidateNFTID(req.GetTokenId()); err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - ctx := sdk.UnwrapSDKContext(c) - _, err := s.keeper.GetParent(ctx, req.ContractId, req.TokenId) - return &collection.QueryHasParentResponse{HasParent: (err == nil)}, nil -} - -func (s queryServer) Parent(c context.Context, req *collection.QueryParentRequest) (*collection.QueryParentResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - - if err := collection.ValidateContractID(req.GetContractId()); err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - if err := collection.ValidateNFTID(req.GetTokenId()); err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - ctx := sdk.UnwrapSDKContext(c) - parent, err := s.keeper.GetParent(ctx, req.ContractId, req.TokenId) - if err != nil { - return nil, status.Error(codes.NotFound, err.Error()) - } - - token, err := s.keeper.GetNFT(ctx, req.ContractId, *parent) - if err != nil { - panic(err) - } - - return &collection.QueryParentResponse{Parent: *token}, nil -} - -func (s queryServer) Children(c context.Context, req *collection.QueryChildrenRequest) (*collection.QueryChildrenResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - - if err := collection.ValidateContractID(req.ContractId); err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - if err := collection.ValidateNFTID(req.TokenId); err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - ctx := sdk.UnwrapSDKContext(c) - - store := s.keeper.storeService.OpenKVStore(ctx) - adapter := runtime.KVStoreAdapter(store) - childStore := prefix.NewStore(adapter, childKeyPrefixByTokenID(req.ContractId, req.TokenId)) - var children []collection.NFT - pageRes, err := query.Paginate(childStore, req.Pagination, func(key, _ []byte) error { - childID := string(key) - child, err := s.keeper.GetNFT(ctx, req.ContractId, childID) - if err != nil { - panic(err) - } - - children = append(children, *child) - return nil - }) - if err != nil { - return nil, err - } - - return &collection.QueryChildrenResponse{Children: children, Pagination: pageRes}, nil -} - func (s queryServer) GranteeGrants(c context.Context, req *collection.QueryGranteeGrantsRequest) (*collection.QueryGranteeGrantsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "empty request") diff --git a/x/collection/keeper/grpc_query_test.go b/x/collection/keeper/grpc_query_test.go index 62f02536f7..127cffeea6 100644 --- a/x/collection/keeper/grpc_query_test.go +++ b/x/collection/keeper/grpc_query_test.go @@ -100,7 +100,7 @@ func (s *KeeperTestSuite) TestQueryAllBalances() { address: s.customer, valid: true, postTest: func(res *collection.QueryAllBalancesResponse) { - s.Require().Equal(s.numRoots+1, len(res.Balances)) + s.Require().Equal(s.numNFTs+1, len(res.Balances)) }, }, "valid request with limit": { @@ -788,270 +788,6 @@ func (s *KeeperTestSuite) TestQueryToken() { } } -func (s *KeeperTestSuite) TestQueryRoot() { - // empty request - _, err := s.queryServer.Root(s.ctx, nil) - s.Require().Error(err) - - tokenID := collection.NewNFTID(s.nftClassID, 2) - testCases := map[string]struct { - contractID string - tokenID string - valid bool - postTest func(res *collection.QueryRootResponse) - }{ - "valid request": { - contractID: s.contractID, - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryRootResponse) { - s.Require().Equal(collection.NewNFTID(s.nftClassID, 1), res.Root.TokenId) - }, - }, - "invalid contract id": { - tokenID: tokenID, - }, - "invalid token id": { - contractID: s.contractID, - }, - "collection not found": { - contractID: "deadbeef", - tokenID: tokenID, - }, - "token not found": { - contractID: s.contractID, - tokenID: collection.NewNFTID("deadbeef", 1), - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - req := &collection.QueryRootRequest{ - ContractId: tc.contractID, - TokenId: tc.tokenID, - } - res, err := s.queryServer.Root(s.ctx, req) - if !tc.valid { - s.Require().Error(err) - return - } - s.Require().NoError(err) - s.Require().NotNil(res) - tc.postTest(res) - }) - } -} - -func (s *KeeperTestSuite) TestQueryHasParent() { - // empty request - _, err := s.queryServer.HasParent(s.ctx, nil) - s.Require().Error(err) - - tokenID := collection.NewNFTID(s.nftClassID, 2) - testCases := map[string]struct { - contractID string - tokenID string - valid bool - postTest func(res *collection.QueryHasParentResponse) - }{ - "valid request": { - contractID: s.contractID, - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryHasParentResponse) { - s.Require().NotNil(res) - s.Require().Equal(true, res.HasParent) - }, - }, - "valid request with no parent": { - contractID: s.contractID, - tokenID: collection.NewNFTID(s.nftClassID, 1), - valid: true, - postTest: func(res *collection.QueryHasParentResponse) { - s.Require().NotNil(res) - s.Require().Equal(false, res.HasParent) - }, - }, - "collection not found": { - contractID: "deadbeef", - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryHasParentResponse) { - s.Require().NotNil(res) - s.Require().Equal(false, res.HasParent) - }, - }, - "token not found": { - contractID: s.contractID, - tokenID: collection.NewNFTID("deadbeef", 1), - valid: true, - postTest: func(res *collection.QueryHasParentResponse) { - s.Require().NotNil(res) - s.Require().Equal(false, res.HasParent) - }, - }, - "invalid contract id": { - tokenID: tokenID, - }, - "invalid token id": { - contractID: s.contractID, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - req := &collection.QueryHasParentRequest{ - ContractId: tc.contractID, - TokenId: tc.tokenID, - } - res, err := s.queryServer.HasParent(s.ctx, req) - if !tc.valid { - s.Require().Error(err) - return - } - s.Require().NoError(err) - tc.postTest(res) - }) - } -} - -func (s *KeeperTestSuite) TestQueryParent() { - // empty request - _, err := s.queryServer.Parent(s.ctx, nil) - s.Require().Error(err) - - tokenID := collection.NewNFTID(s.nftClassID, 2) - testCases := map[string]struct { - contractID string - tokenID string - valid bool - postTest func(res *collection.QueryParentResponse) - }{ - "valid request": { - contractID: s.contractID, - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryParentResponse) { - s.Require().Equal(collection.NewNFTID(s.nftClassID, 1), res.Parent.TokenId) - }, - }, - "invalid contract id": { - tokenID: tokenID, - }, - "invalid token id": { - contractID: s.contractID, - }, - "collection not found": { - contractID: "deadbeef", - tokenID: tokenID, - }, - "token not found": { - contractID: s.contractID, - tokenID: collection.NewNFTID("deadbeef", 1), - }, - "no parent": { - contractID: s.contractID, - tokenID: collection.NewNFTID(s.nftClassID, 1), - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - req := &collection.QueryParentRequest{ - ContractId: tc.contractID, - TokenId: tc.tokenID, - } - res, err := s.queryServer.Parent(s.ctx, req) - if !tc.valid { - s.Require().Error(err) - return - } - s.Require().NoError(err) - s.Require().NotNil(res) - tc.postTest(res) - }) - } -} - -func (s *KeeperTestSuite) TestQueryChildren() { - // empty request - _, err := s.queryServer.Children(s.ctx, nil) - s.Require().Error(err) - - tokenID := collection.NewNFTID(s.nftClassID, 1) - testCases := map[string]struct { - contractID string - tokenID string - valid bool - count uint64 - postTest func(res *collection.QueryChildrenResponse) - }{ - "valid request": { - contractID: s.contractID, - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryChildrenResponse) { - s.Require().Equal(1, len(res.Children)) - s.Require().Equal(collection.NewNFTID(s.nftClassID, 2), res.Children[0].TokenId) - }, - }, - "valid request with limit": { - contractID: s.contractID, - tokenID: tokenID, - valid: true, - count: 1, - postTest: func(res *collection.QueryChildrenResponse) { - s.Require().Equal(1, len(res.Children)) - s.Require().Equal(collection.NewNFTID(s.nftClassID, 2), res.Children[0].TokenId) - }, - }, - "collection not found": { - contractID: "deadbeef", - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryChildrenResponse) { - s.Require().Equal(0, len(res.Children)) - }, - }, - "token not found": { - contractID: s.contractID, - tokenID: collection.NewNFTID("deadbeef", 1), - valid: true, - postTest: func(res *collection.QueryChildrenResponse) { - s.Require().Equal(0, len(res.Children)) - }, - }, - "invalid contract id": { - tokenID: tokenID, - }, - "invalid token id": { - contractID: s.contractID, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - pageReq := &query.PageRequest{} - if tc.count != 0 { - pageReq.Limit = tc.count - } - req := &collection.QueryChildrenRequest{ - ContractId: tc.contractID, - TokenId: tc.tokenID, - Pagination: pageReq, - } - res, err := s.queryServer.Children(s.ctx, req) - if !tc.valid { - s.Require().Error(err) - return - } - s.Require().NoError(err) - s.Require().NotNil(res) - tc.postTest(res) - }) - } -} - func (s *KeeperTestSuite) TestQueryGranteeGrants() { // empty request _, err := s.queryServer.GranteeGrants(s.ctx, nil) diff --git a/x/collection/keeper/keeper_test.go b/x/collection/keeper/keeper_test.go index 998993fc33..25e1ae52f5 100644 --- a/x/collection/keeper/keeper_test.go +++ b/x/collection/keeper/keeper_test.go @@ -43,10 +43,7 @@ type KeeperTestSuite struct { balance math.Int - depthLimit int - - numNFTs int - numRoots int + numNFTs int } func (s *KeeperTestSuite) createRandomAccounts(accNum int) []sdk.AccAddress { @@ -121,31 +118,10 @@ func (s *KeeperTestSuite) SetupTest() { } return res } - // 1 for the successful attach, 2 for the failure - remainders := 1 + 2 - s.numNFTs = s.depthLimit + remainders - // 3 chains, and each chain has depth_limit, 1 and 2 of its length. - s.numRoots = 3 + s.numNFTs = 4 for _, to := range []sdk.AccAddress{s.customer, s.operator, s.vendor} { - tokens, err := s.keeper.MintNFT(s.ctx, s.contractID, to, newParams(s.nftClassID, s.depthLimit)) - s.Require().NoError(err) - - // create a chain of its length depth_limit - for i := range tokens[1:] { - r := len(tokens) - 1 - i - subject := tokens[r].TokenId - target := tokens[r-1].TokenId - err := s.keeper.Attach(s.ctx, s.contractID, to, subject, target) - s.Require().NoError(err) - } - - tokens, err = s.keeper.MintNFT(s.ctx, s.contractID, to, newParams(s.nftClassID, remainders)) + _, err := s.keeper.MintNFT(s.ctx, s.contractID, to, newParams(s.nftClassID, s.numNFTs)) s.Require().NoError(err) - - // a chain of length 2 - err = s.keeper.Attach(s.ctx, s.contractID, to, tokens[remainders-1].TokenId, tokens[remainders-2].TokenId) - s.Require().NoError(err) - } // authorize @@ -190,11 +166,7 @@ func (s *KeeperTestSuite) prepareInitialSetup() { s.keeper = keeper.NewKeeper(encCfg.Codec, kvStoreService) s.keeper.InitGenesis(s.ctx, collection.DefaultGenesisState()) - s.depthLimit = 4 - s.keeper.SetParams(s.ctx, collection.Params{ - DepthLimit: uint32(s.depthLimit), - WidthLimit: 4, - }) + s.keeper.SetParams(s.ctx, collection.Params{}) s.queryServer = keeper.NewQueryServer(s.keeper) s.msgServer = keeper.NewMsgServer(s.keeper) diff --git a/x/collection/keeper/keys.go b/x/collection/keeper/keys.go index 5c8840cf00..d6f5001cc5 100644 --- a/x/collection/keeper/keys.go +++ b/x/collection/keeper/keys.go @@ -17,8 +17,6 @@ var ( balanceKeyPrefix = []byte{0x20} ownerKeyPrefix = []byte{0x21} nftKeyPrefix = []byte{0x22} - parentKeyPrefix = []byte{0x23} - childKeyPrefix = []byte{0x24} authorizationKeyPrefix = []byte{0x30} grantKeyPrefix = []byte{0x31} @@ -154,102 +152,6 @@ func splitNFTKey(key []byte) (contractID, tokenID string) { return } -// ---------------------------------------------------------------------------- -// parent -func parentKey(contractID, tokenID string) []byte { - prefix := parentKeyPrefixByContractID(contractID) - key := make([]byte, len(prefix)+len(tokenID)) - - copy(key, prefix) - copy(key[len(prefix):], tokenID) - - return key -} - -func parentKeyPrefixByContractID(contractID string) []byte { - key := make([]byte, len(parentKeyPrefix)+1+len(contractID)) - - begin := 0 - copy(key, parentKeyPrefix) - - begin += len(parentKeyPrefix) - key[begin] = byte(len(contractID)) - - begin++ - copy(key[begin:], contractID) - - return key -} - -func splitParentKey(key []byte) (contractID, tokenID string) { - begin := len(parentKeyPrefix) + 1 - end := begin + int(key[begin-1]) - contractID = string(key[begin:end]) - - begin = end - tokenID = string(key[begin:]) - - return -} - -// ---------------------------------------------------------------------------- -// child -func childKey(contractID, tokenID, childID string) []byte { - prefix := childKeyPrefixByTokenID(contractID, tokenID) - key := make([]byte, len(prefix)+len(childID)) - - copy(key, prefix) - copy(key[len(prefix):], childID) - - return key -} - -func childKeyPrefixByTokenID(contractID, tokenID string) []byte { - prefix := childKeyPrefixByContractID(contractID) - key := make([]byte, len(prefix)+1+len(tokenID)) - - begin := 0 - copy(key, prefix) - - begin += len(prefix) - key[begin] = byte(len(tokenID)) - - begin++ - copy(key[begin:], tokenID) - - return key -} - -func childKeyPrefixByContractID(contractID string) []byte { - key := make([]byte, len(childKeyPrefix)+1+len(contractID)) - - begin := 0 - copy(key, childKeyPrefix) - - begin += len(childKeyPrefix) - key[begin] = byte(len(contractID)) - - begin++ - copy(key[begin:], contractID) - - return key -} - -func splitChildKey(key []byte) (contractID, tokenID, childID string) { - begin := len(childKeyPrefix) + 1 - end := begin + int(key[begin-1]) - contractID = string(key[begin:end]) - - begin = end + 1 - end = begin + int(key[begin-1]) - tokenID = string(key[begin:end]) - - begin = end - childID = string(key[begin:]) - - return -} - // ---------------------------------------------------------------------------- func contractKey(contractID string) []byte { key := make([]byte, len(contractKeyPrefix)+len(contractID)) diff --git a/x/collection/keeper/migrations/v3/helper.go b/x/collection/keeper/migrations/v3/helper.go new file mode 100644 index 0000000000..daa54d3d26 --- /dev/null +++ b/x/collection/keeper/migrations/v3/helper.go @@ -0,0 +1,84 @@ +package v3 + +import ( + "errors" + + gogotypes "github.com/cosmos/gogoproto/types" + + "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" + + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func getRootOwner(store storetypes.KVStore, cdc codec.BinaryCodec, contractID, tokenID string) sdk.AccAddress { + id := tokenID + err := iterateAncestors(store, cdc, contractID, tokenID, func(tokenID string) error { + id = tokenID + return nil + }) + if err != nil { + panic(err) + } + + return getOwner(store, contractID, id) +} + +func getOwner(store storetypes.KVStore, contractID, tokenID string) sdk.AccAddress { + key := ownerKey(contractID, tokenID) + bz := store.Get(key) + if bz == nil { + panic("owner must exist") + } + + var owner sdk.AccAddress + if err := owner.Unmarshal(bz); err != nil { + panic(err) + } + return owner +} + +func iterateAncestors(store storetypes.KVStore, cdc codec.BinaryCodec, contractID, tokenID string, fn func(tokenID string) error) error { + var err error + for id := &tokenID; err == nil; id, err = getParent(store, cdc, contractID, *id) { + if fnErr := fn(*id); fnErr != nil { + return fnErr + } + } + + return nil +} + +func getParent(store storetypes.KVStore, cdc codec.BinaryCodec, contractID, tokenID string) (*string, error) { + key := parentKey(contractID, tokenID) + bz := store.Get(key) + if bz == nil { + return nil, errors.New("token is not a child of some other") + } + + var parent gogotypes.StringValue + cdc.MustUnmarshal(bz, &parent) + return &parent.Value, nil +} + +func addCoin(store storetypes.KVStore, contractID string, address sdk.AccAddress, amount collection.Coin) { + key := balanceKey(contractID, address, amount.TokenId) + var beforeBalance math.Int + bz := store.Get(key) + if bz == nil { + beforeBalance = math.ZeroInt() + } + if err := beforeBalance.Unmarshal(bz); err != nil { + panic(err) + } + + afterBalance := beforeBalance.Add(amount.Amount) + bz, err := afterBalance.Marshal() + if err != nil { + panic(err) + } + store.Set(key, bz) +} diff --git a/x/collection/keeper/migrations/v3/keys.go b/x/collection/keeper/migrations/v3/keys.go index 2ed9c4ce34..184bec6aa2 100644 --- a/x/collection/keeper/migrations/v3/keys.go +++ b/x/collection/keeper/migrations/v3/keys.go @@ -1,12 +1,179 @@ package v3 +import sdk "github.com/cosmos/cosmos-sdk/types" + const ClassStoreKey = "class" var ( - nonceKey = []byte{0x01} - idKeyPrefix = []byte{0x02} + classStorePrefix = []byte{0x50} + + paramsKey = []byte{0x00} + nonceKey = []byte{0x01} + idKeyPrefix = []byte{0x02} + balanceKeyPrefix = []byte{0x20} + ownerKeyPrefix = []byte{0x21} +) + +// Deprecated +var ( + parentKeyPrefix = []byte{0x23} + childKeyPrefix = []byte{0x24} ) +func idKey(id string) []byte { + key := make([]byte, len(idKeyPrefix)+len(id)) + copy(key, idKeyPrefix) + copy(key[len(idKeyPrefix):], id) + return key +} + func splitIDKey(key []byte) (id string) { return string(key[len(idKeyPrefix):]) } + +func balanceKey(contractID string, address sdk.AccAddress, tokenID string) []byte { + prefix := balanceKeyPrefixByAddress(contractID, address) + key := make([]byte, len(prefix)+len(tokenID)) + + copy(key, prefix) + copy(key[len(prefix):], tokenID) + + return key +} + +func balanceKeyPrefixByAddress(contractID string, address sdk.AccAddress) []byte { + prefix := balanceKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+1+len(address)) + + begin := 0 + copy(key, prefix) + + begin += len(prefix) + key[begin] = byte(len(address)) + + begin++ + copy(key[begin:], address) + + return key +} + +func balanceKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(balanceKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, balanceKeyPrefix) + + begin += len(balanceKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +// ---------------------------------------------------------------------------- +// parent +func parentKey(contractID, tokenID string) []byte { + prefix := parentKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+len(tokenID)) + + copy(key, prefix) + copy(key[len(prefix):], tokenID) + + return key +} + +func parentKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(parentKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, parentKeyPrefix) + + begin += len(parentKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +func splitParentKey(key []byte) (contractID, tokenID string) { + begin := len(parentKeyPrefix) + 1 + end := begin + int(key[begin-1]) + contractID = string(key[begin:end]) + + begin = end + tokenID = string(key[begin:]) + + return +} + +// ---------------------------------------------------------------------------- +// child +func childKey(contractID, tokenID, childID string) []byte { + prefix := childKeyPrefixByTokenID(contractID, tokenID) + key := make([]byte, len(prefix)+len(childID)) + + copy(key, prefix) + copy(key[len(prefix):], childID) + + return key +} + +func childKeyPrefixByTokenID(contractID, tokenID string) []byte { + prefix := childKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+1+len(tokenID)) + + begin := 0 + copy(key, prefix) + + begin += len(prefix) + key[begin] = byte(len(tokenID)) + + begin++ + copy(key[begin:], tokenID) + + return key +} + +func childKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(childKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, childKeyPrefix) + + begin += len(childKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +func ownerKey(contractID, tokenID string) []byte { + prefix := ownerKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+len(tokenID)) + + copy(key, prefix) + copy(key[len(prefix):], tokenID) + + return key +} + +func ownerKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(ownerKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, ownerKeyPrefix) + + begin += len(ownerKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} diff --git a/x/collection/keeper/migrations/v3/store.go b/x/collection/keeper/migrations/v3/store.go index 88b4841591..cc3019d093 100644 --- a/x/collection/keeper/migrations/v3/store.go +++ b/x/collection/keeper/migrations/v3/store.go @@ -1,7 +1,10 @@ package v3 import ( + gogotypes "github.com/cosmos/gogoproto/types" + cmath "cosmossdk.io/math" + "cosmossdk.io/store/prefix" storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" @@ -10,52 +13,73 @@ import ( "github.com/Finschia/finschia-sdk/x/collection" ) -// TODO: need to implement logics for migrating ClassState and generate new genesis state for Collection -func MigrateStore(store, classStore storetypes.KVStore, cdc codec.BinaryCodec) error { - _, err := getClassState(classStore) +func MigrateStore(collectionStore, oldClassStore storetypes.KVStore, cdc codec.BinaryCodec) error { + err := migrateClassStateAndRemoveLegacyState(collectionStore, oldClassStore, cdc) if err != nil { return err } - _ = store - _ = cdc + err = initParams(collectionStore) + if err != nil { + return err + } return nil } -func getClassState(store storetypes.KVStore) (collection.ClassState, error) { - cs := collection.ClassState{} +func migrateClassStateAndRemoveLegacyState(collectionStore, oldStore storetypes.KVStore, cdc codec.BinaryCodec) error { + newClassStore := prefix.NewStore(collectionStore, classStorePrefix) + iterator := storetypes.KVStorePrefixIterator(oldStore, idKeyPrefix) + defer iterator.Close() - ids := make([]string, 0) - iterateIDs(store, func(id string) (stop bool) { - ids = append(ids, id) - return false - }) - cs.Ids = ids + for ; iterator.Valid(); iterator.Next() { + id := splitIDKey(iterator.Key()) + newClassStore.Set(idKey(id), []byte{}) + oldStore.Delete(idKey(id)) + + detachNFT(collectionStore, cdc, id) + } - bz := store.Get(nonceKey) + bz := oldStore.Get(nonceKey) if bz == nil { - return cs, sdkerrors.ErrNotFound.Wrap("next id must exist") + return sdkerrors.ErrNotFound.Wrap("next id must exist") } var nonce cmath.Uint if err := nonce.Unmarshal(bz); err != nil { - return cs, err + return err } - cs.Nonce = nonce + newClassStore.Set(nonceKey, bz) + oldStore.Set(nonceKey, bz) - return cs, nil + return nil } -func iterateIDs(store storetypes.KVStore, fn func(id string) (stop bool)) { - iterator := storetypes.KVStorePrefixIterator(store, idKeyPrefix) +func detachNFT(store storetypes.KVStore, cdc codec.BinaryCodec, id string) { + iterator := storetypes.KVStorePrefixIterator(store, parentKeyPrefixByContractID(id)) defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - id := splitIDKey(iterator.Key()) - - stop := fn(id) - if stop { - break + contractID, tokenID := splitParentKey(iterator.Key()) + if contractID != tokenID { + panic("invalid NFT attachment information") } + + var parentID gogotypes.StringValue + cdc.MustUnmarshal(iterator.Value(), &parentID) + addCoin(store, id, getRootOwner(store, cdc, contractID, tokenID), collection.NewCoin(tokenID, cmath.OneInt())) + + store.Delete(parentKey(contractID, tokenID)) + key := childKey(contractID, parentID.Value, tokenID) + store.Delete(key) + } +} + +func initParams(store storetypes.KVStore) error { + p := collection.Params{} + bz, err := p.Marshal() + if err != nil { + return err } + store.Set(paramsKey, bz) + return nil } diff --git a/x/collection/keeper/msg_server.go b/x/collection/keeper/msg_server.go index cd11bd6663..c60da7a647 100644 --- a/x/collection/keeper/msg_server.go +++ b/x/collection/keeper/msg_server.go @@ -106,9 +106,6 @@ func (s msgServer) SendNFT(c context.Context, req *collection.MsgSendNFT) (*coll if err := s.keeper.hasNFT(ctx, req.ContractId, id); err != nil { return nil, err } - if _, err := s.keeper.GetParent(ctx, req.ContractId, id); err == nil { - return nil, collection.ErrTokenCannotTransferChildToken.Wrap(id) - } if !s.keeper.getOwner(ctx, req.ContractId, id).Equals(fromAddr) { return nil, collection.ErrTokenNotOwnedBy.Wrapf("%s does not have %s", fromAddr, id) } @@ -156,9 +153,6 @@ func (s msgServer) OperatorSendNFT(c context.Context, req *collection.MsgOperato if err := s.keeper.hasNFT(ctx, req.ContractId, id); err != nil { return nil, err } - if _, err := s.keeper.GetParent(ctx, req.ContractId, id); err == nil { - return nil, collection.ErrTokenCannotTransferChildToken.Wrap(id) - } if !s.keeper.getOwner(ctx, req.ContractId, id).Equals(fromAddr) { return nil, collection.ErrTokenNotOwnedBy.Wrapf("%s does not have %s", fromAddr, id) } @@ -509,9 +503,6 @@ func (s msgServer) BurnNFT(c context.Context, req *collection.MsgBurnNFT) (*coll if err := s.keeper.hasNFT(ctx, req.ContractId, id); err != nil { return nil, err } - if _, err := s.keeper.GetParent(ctx, req.ContractId, id); err == nil { - return nil, collection.ErrBurnNonRootNFT.Wrap(id) - } if !s.keeper.getOwner(ctx, req.ContractId, id).Equals(fromAddr) { return nil, collection.ErrTokenNotOwnedBy.Wrapf("%s does not have %s", fromAddr, id) } @@ -562,9 +553,6 @@ func (s msgServer) OperatorBurnNFT(c context.Context, req *collection.MsgOperato if err := s.keeper.hasNFT(ctx, req.ContractId, id); err != nil { return nil, err } - if _, err := s.keeper.GetParent(ctx, req.ContractId, id); err == nil { - return nil, collection.ErrBurnNonRootNFT.Wrap(id) - } if !s.keeper.getOwner(ctx, req.ContractId, id).Equals(fromAddr) { return nil, collection.ErrTokenNotOwnedBy.Wrapf("%s does not have %s", fromAddr, id) } @@ -723,141 +711,3 @@ func (s msgServer) RevokePermission(c context.Context, req *collection.MsgRevoke return &collection.MsgRevokePermissionResponse{}, nil } - -func (s msgServer) Attach(c context.Context, req *collection.MsgAttach) (*collection.MsgAttachResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - - if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { - return nil, err - } - - event := collection.EventAttached{ - ContractId: req.ContractId, - Operator: req.From, - Holder: req.From, - Subject: req.TokenId, - Target: req.ToTokenId, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - - fromAddr := sdk.MustAccAddressFromBech32(req.From) - - if err := s.keeper.Attach(ctx, req.ContractId, fromAddr, req.TokenId, req.ToTokenId); err != nil { - return nil, err - } - - return &collection.MsgAttachResponse{}, nil -} - -func (s msgServer) Detach(c context.Context, req *collection.MsgDetach) (*collection.MsgDetachResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - - if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { - return nil, err - } - - // legacy - if err := s.keeper.hasNFT(ctx, req.ContractId, req.TokenId); err != nil { - return nil, err - } - - // for the additional field of the event - parent, err := s.keeper.GetParent(ctx, req.ContractId, req.TokenId) - if err != nil { - return nil, collection.ErrTokenNotAChild.Wrap(err.Error()) - } - event := collection.EventDetached{ - ContractId: req.ContractId, - Operator: req.From, - Holder: req.From, - Subject: req.TokenId, - PreviousParent: *parent, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - - fromAddr := sdk.MustAccAddressFromBech32(req.From) - - if err := s.keeper.Detach(ctx, req.ContractId, fromAddr, req.TokenId); err != nil { - return nil, err - } - - return &collection.MsgDetachResponse{}, nil -} - -func (s msgServer) OperatorAttach(c context.Context, req *collection.MsgOperatorAttach) (*collection.MsgOperatorAttachResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - - if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { - return nil, err - } - - fromAddr := sdk.MustAccAddressFromBech32(req.From) - operatorAddr := sdk.MustAccAddressFromBech32(req.Operator) - - if _, err := s.keeper.GetAuthorization(ctx, req.ContractId, fromAddr, operatorAddr); err != nil { - return nil, collection.ErrCollectionNotApproved.Wrap(err.Error()) - } - - event := collection.EventAttached{ - ContractId: req.ContractId, - Operator: req.Operator, - Holder: req.From, - Subject: req.TokenId, - Target: req.ToTokenId, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - - if err := s.keeper.Attach(ctx, req.ContractId, fromAddr, req.TokenId, req.ToTokenId); err != nil { - return nil, err - } - - return &collection.MsgOperatorAttachResponse{}, nil -} - -func (s msgServer) OperatorDetach(c context.Context, req *collection.MsgOperatorDetach) (*collection.MsgOperatorDetachResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - - if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { - return nil, err - } - - fromAddr := sdk.MustAccAddressFromBech32(req.From) - operatorAddr := sdk.MustAccAddressFromBech32(req.Operator) - - if _, err := s.keeper.GetAuthorization(ctx, req.ContractId, fromAddr, operatorAddr); err != nil { - return nil, err - } - - // legacy - if err := s.keeper.hasNFT(ctx, req.ContractId, req.TokenId); err != nil { - return nil, err - } - - // for the additional field of the event - parent, err := s.keeper.GetParent(ctx, req.ContractId, req.TokenId) - if err != nil { - return nil, collection.ErrTokenNotAChild.Wrap(err.Error()) - } - event := collection.EventDetached{ - ContractId: req.ContractId, - Operator: req.Operator, - Holder: req.From, - Subject: req.TokenId, - PreviousParent: *parent, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - - if err := s.keeper.Detach(ctx, req.ContractId, fromAddr, req.TokenId); err != nil { - return nil, err - } - - return &collection.MsgOperatorDetachResponse{}, nil -} diff --git a/x/collection/keeper/msg_server_test.go b/x/collection/keeper/msg_server_test.go index 09c8c730a9..87bee53a99 100644 --- a/x/collection/keeper/msg_server_test.go +++ b/x/collection/keeper/msg_server_test.go @@ -9,7 +9,6 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" "github.com/Finschia/finschia-sdk/x/collection" ) @@ -222,7 +221,6 @@ func (s *KeeperTestSuite) TestMsgOperatorSendFT() { func (s *KeeperTestSuite) TestMsgSendNFT() { rootNFTID := collection.NewNFTID(s.nftClassID, 1) - issuedTokenIDs := s.extractChainedNFTIDs(rootNFTID) testCases := map[string]struct { contractID string @@ -234,37 +232,10 @@ func (s *KeeperTestSuite) TestMsgSendNFT() { contractID: s.contractID, tokenID: rootNFTID, events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventOwnerChanged", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(s.customer.String()), Index: false}, - {Key: "to", Value: w(s.vendor.String()), Index: false}, - {Key: "token_id", Value: w(issuedTokenIDs[1]), Index: false}, - }, - }, - sdk.Event{ - Type: "lbm.collection.v1.EventOwnerChanged", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(s.customer.String()), Index: false}, - {Key: "to", Value: w(s.vendor.String()), Index: false}, - {Key: "token_id", Value: w(issuedTokenIDs[2]), Index: false}, - }, - }, - sdk.Event{ - Type: "lbm.collection.v1.EventOwnerChanged", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(s.customer.String()), Index: false}, - {Key: "to", Value: w(s.vendor.String()), Index: false}, - {Key: "token_id", Value: w(issuedTokenIDs[3]), Index: false}, - }, - }, sdk.Event{ Type: "lbm.collection.v1.EventSent", Attributes: []abci.EventAttribute{ - {Key: "amount", Value: mustJSONMarshal(collection.NewCoins(collection.Coin{TokenId: issuedTokenIDs[0], Amount: math.OneInt()})), Index: false}, + {Key: "amount", Value: mustJSONMarshal(collection.NewCoins(collection.Coin{TokenId: rootNFTID, Amount: math.OneInt()})), Index: false}, {Key: "contract_id", Value: w(s.contractID), Index: false}, {Key: "from", Value: w(s.customer.String()), Index: false}, {Key: "operator", Value: w(s.customer.String()), Index: false}, @@ -283,11 +254,6 @@ func (s *KeeperTestSuite) TestMsgSendNFT() { tokenID: collection.NewNFTID("deadbeef", 1), err: collection.ErrTokenNotExist, }, - "child": { - contractID: s.contractID, - tokenID: collection.NewNFTID(s.nftClassID, 2), - err: collection.ErrTokenCannotTransferChildToken, - }, "not owned by": { contractID: s.contractID, tokenID: collection.NewNFTID(s.nftClassID, s.numNFTs+1), @@ -319,7 +285,6 @@ func (s *KeeperTestSuite) TestMsgSendNFT() { func (s *KeeperTestSuite) TestMsgOperatorSendNFT() { rootNFTID := collection.NewNFTID(s.nftClassID, 1) - issuedTokenIDs := s.extractChainedNFTIDs(rootNFTID) testCases := map[string]struct { contractID string @@ -335,37 +300,10 @@ func (s *KeeperTestSuite) TestMsgOperatorSendNFT() { from: s.customer, tokenID: rootNFTID, events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventOwnerChanged", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(s.customer.String()), Index: false}, - {Key: "to", Value: w(s.vendor.String()), Index: false}, - {Key: "token_id", Value: w(issuedTokenIDs[1]), Index: false}, - }, - }, - sdk.Event{ - Type: "lbm.collection.v1.EventOwnerChanged", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(s.customer.String()), Index: false}, - {Key: "to", Value: w(s.vendor.String()), Index: false}, - {Key: "token_id", Value: w(issuedTokenIDs[2]), Index: false}, - }, - }, - sdk.Event{ - Type: "lbm.collection.v1.EventOwnerChanged", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(s.customer.String()), Index: false}, - {Key: "to", Value: w(s.vendor.String()), Index: false}, - {Key: "token_id", Value: w(issuedTokenIDs[3]), Index: false}, - }, - }, sdk.Event{ Type: "lbm.collection.v1.EventSent", Attributes: []abci.EventAttribute{ - {Key: "amount", Value: mustJSONMarshal(collection.NewCoins(collection.Coin{TokenId: issuedTokenIDs[0], Amount: math.OneInt()})), Index: false}, + {Key: "amount", Value: mustJSONMarshal(collection.NewCoins(collection.Coin{TokenId: rootNFTID, Amount: math.OneInt()})), Index: false}, {Key: "contract_id", Value: w(s.contractID), Index: false}, {Key: "from", Value: w(s.customer.String()), Index: false}, {Key: "operator", Value: w(s.operator.String()), Index: false}, @@ -395,13 +333,6 @@ func (s *KeeperTestSuite) TestMsgOperatorSendNFT() { tokenID: collection.NewNFTID("deadbeef", 1), err: collection.ErrTokenNotExist, }, - "child": { - contractID: s.contractID, - operator: s.operator, - from: s.customer, - tokenID: collection.NewNFTID(s.nftClassID, 2), - err: collection.ErrTokenCannotTransferChildToken, - }, "not owned by": { contractID: s.contractID, operator: s.operator, @@ -1048,7 +979,7 @@ func (s *KeeperTestSuite) TestMsgMintNFT() { }} expectedTokens := []collection.NFT{ { - TokenId: "1000000100000016", + TokenId: "100000010000000d", Name: params[0].Name, Meta: params[0].Meta, }, @@ -1396,11 +1327,7 @@ func (s *KeeperTestSuite) TestMsgOperatorBurnFT() { func (s *KeeperTestSuite) TestMsgBurnNFT() { rootNFTID := collection.NewNFTID(s.nftClassID, s.numNFTs*2+1) - issuedTokenIDs := s.extractChainedNFTIDs(rootNFTID) - coins := make([]collection.Coin, 0) - for _, id := range issuedTokenIDs { - coins = append(coins, collection.NewCoin(id, math.NewInt(1))) - } + coins := []collection.Coin{collection.NewCoin(rootNFTID, math.NewInt(1))} testCases := map[string]struct { contractID string @@ -1445,14 +1372,6 @@ func (s *KeeperTestSuite) TestMsgBurnNFT() { }, err: collection.ErrTokenNotExist, }, - "child": { - contractID: s.contractID, - from: s.vendor, - tokenIDs: []string{ - collection.NewNFTID(s.nftClassID, 2), - }, - err: collection.ErrBurnNonRootNFT, - }, "not owned by": { contractID: s.contractID, from: s.vendor, @@ -1486,11 +1405,7 @@ func (s *KeeperTestSuite) TestMsgBurnNFT() { func (s *KeeperTestSuite) TestMsgOperatorBurnNFT() { rootNFTID := collection.NewNFTID(s.nftClassID, 1) - issuedTokenIDs := s.extractChainedNFTIDs(rootNFTID) - coins := make([]collection.Coin, 0) - for _, id := range issuedTokenIDs { - coins = append(coins, collection.NewCoin(id, math.NewInt(1))) - } + coins := []collection.Coin{collection.NewCoin(rootNFTID, math.NewInt(1))} testCases := map[string]struct { contractID string @@ -1547,15 +1462,6 @@ func (s *KeeperTestSuite) TestMsgOperatorBurnNFT() { }, err: collection.ErrTokenNotExist, }, - "child": { - contractID: s.contractID, - operator: s.operator, - from: s.customer, - tokenIDs: []string{ - collection.NewNFTID(s.nftClassID, 2), - }, - err: collection.ErrBurnNonRootNFT, - }, "not owned by": { contractID: s.contractID, operator: s.operator, @@ -1795,332 +1701,3 @@ func (s *KeeperTestSuite) TestMsgRevokePermission() { }) } } - -func (s *KeeperTestSuite) TestMsgAttach() { - testCases := map[string]struct { - contractID string - subjectID string - targetID string - err error - events sdk.Events - }{ - "valid request": { - contractID: s.contractID, - subjectID: collection.NewNFTID(s.nftClassID, s.depthLimit+1), - targetID: collection.NewNFTID(s.nftClassID, 1), - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventAttached", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "holder", Value: w(s.customer.String()), Index: false}, - {Key: "operator", Value: w(s.customer.String()), Index: false}, - {Key: "subject", Value: w(collection.NewNFTID(s.nftClassID, s.depthLimit+1)), Index: false}, - {Key: "target", Value: w(collection.NewNFTID(s.nftClassID, 1)), Index: false}, - }, - }, - }, - }, - "contract not found": { - contractID: "deadbeef", - subjectID: collection.NewNFTID(s.nftClassID, collection.DefaultDepthLimit+1), - targetID: collection.NewNFTID(s.nftClassID, 1), - err: collection.ErrContractNotExist, - }, - "not owner of the token": { - contractID: s.contractID, - subjectID: collection.NewNFTID(s.nftClassID, s.numNFTs+1), - targetID: collection.NewNFTID(s.nftClassID, 1), - err: collection.ErrTokenNotOwnedBy, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - ctx, _ := s.ctx.CacheContext() - - req := &collection.MsgAttach{ - ContractId: tc.contractID, - From: s.customer.String(), - TokenId: tc.subjectID, - ToTokenId: tc.targetID, - } - res, err := s.msgServer.Attach(ctx, req) - s.Require().ErrorIs(err, tc.err) - if tc.err != nil { - return - } - - s.Require().NotNil(res) - s.Require().Equal(tc.events, ctx.EventManager().Events()) - }) - } -} - -func (s *KeeperTestSuite) TestMsgDetach() { - issuedNfts := make([]string, s.depthLimit) - for i := 1; i <= s.depthLimit; i++ { - issuedNfts[i-1] = collection.NewNFTID(s.nftClassID, i) - } - - testCases := map[string]struct { - contractID string - subjectID string - err error - events sdk.Events - }{ - "valid request": { - contractID: s.contractID, - subjectID: issuedNfts[1], - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventDetached", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "holder", Value: w(s.customer.String()), Index: false}, - {Key: "operator", Value: w(s.customer.String()), Index: false}, - {Key: "previous_parent", Value: w(issuedNfts[0]), Index: false}, - {Key: "subject", Value: w(issuedNfts[1]), Index: false}, - }, - }, - sdk.Event{ - Type: "lbm.collection.v1.EventRootChanged", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(issuedNfts[0]), Index: false}, - {Key: "to", Value: w(issuedNfts[1]), Index: false}, - {Key: "token_id", Value: w(issuedNfts[2]), Index: false}, - }, - }, - sdk.Event{ - Type: "lbm.collection.v1.EventRootChanged", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(issuedNfts[0]), Index: false}, - {Key: "to", Value: w(issuedNfts[1]), Index: false}, - {Key: "token_id", Value: w(issuedNfts[3]), Index: false}, - }, - }, - }, - }, - "contract not found": { - contractID: "deadbeef", - subjectID: collection.NewNFTID(s.nftClassID, 2), - err: collection.ErrContractNotExist, - }, - "not owner of the token": { - contractID: s.contractID, - subjectID: collection.NewNFTID(s.nftClassID, s.numNFTs+2), - err: collection.ErrTokenNotOwnedBy, - }, - "not a child": { - contractID: s.contractID, - subjectID: collection.NewNFTID(s.nftClassID, 1), - err: collection.ErrTokenNotAChild, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - ctx, _ := s.ctx.CacheContext() - - req := &collection.MsgDetach{ - ContractId: tc.contractID, - From: s.customer.String(), - TokenId: tc.subjectID, - } - res, err := s.msgServer.Detach(ctx, req) - s.Require().ErrorIs(err, tc.err) - if tc.err != nil { - return - } - - s.Require().NotNil(res) - s.Require().Equal(tc.events, ctx.EventManager().Events()) - }) - } -} - -func (s *KeeperTestSuite) TestMsgOperatorAttach() { - testCases := map[string]struct { - contractID string - operator sdk.AccAddress - subjectID string - targetID string - err error - events sdk.Events - }{ - "valid request": { - contractID: s.contractID, - operator: s.operator, - subjectID: collection.NewNFTID(s.nftClassID, s.depthLimit+1), - targetID: collection.NewNFTID(s.nftClassID, 1), - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventAttached", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "holder", Value: w(s.customer.String()), Index: false}, - {Key: "operator", Value: w(s.operator.String()), Index: false}, - {Key: "subject", Value: w(collection.NewNFTID(s.nftClassID, s.depthLimit+1)), Index: false}, - {Key: "target", Value: w(collection.NewNFTID(s.nftClassID, 1)), Index: false}, - }, - }, - }, - }, - "contract not found": { - contractID: "deadbeef", - operator: s.operator, - subjectID: collection.NewNFTID(s.nftClassID, collection.DefaultDepthLimit+1), - targetID: collection.NewNFTID(s.nftClassID, 1), - err: collection.ErrContractNotExist, - }, - "not authorized": { - contractID: s.contractID, - operator: s.vendor, - subjectID: collection.NewNFTID(s.nftClassID, s.depthLimit+1), - targetID: collection.NewNFTID(s.nftClassID, 1), - err: collection.ErrCollectionNotApproved, - }, - "not owner of the token": { - contractID: s.contractID, - operator: s.operator, - subjectID: collection.NewNFTID(s.nftClassID, s.numNFTs+1), - targetID: collection.NewNFTID(s.nftClassID, 1), - err: collection.ErrTokenNotOwnedBy, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - ctx, _ := s.ctx.CacheContext() - - req := &collection.MsgOperatorAttach{ - ContractId: tc.contractID, - Operator: tc.operator.String(), - From: s.customer.String(), - TokenId: tc.subjectID, - ToTokenId: tc.targetID, - } - res, err := s.msgServer.OperatorAttach(ctx, req) - s.Require().ErrorIs(err, tc.err) - if tc.err != nil { - return - } - - s.Require().NotNil(res) - s.Require().Equal(tc.events, ctx.EventManager().Events()) - }) - } -} - -func (s *KeeperTestSuite) TestMsgOperatorDetach() { - nfts := make([]string, s.depthLimit) - for i := 1; i <= s.depthLimit; i++ { - nfts[i-1] = collection.NewNFTID(s.nftClassID, i) - } - - testCases := map[string]struct { - contractID string - operator sdk.AccAddress - subjectID string - err error - events sdk.Events - }{ - "valid request": { - contractID: s.contractID, - operator: s.operator, - subjectID: collection.NewNFTID(s.nftClassID, 2), - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventDetached", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "holder", Value: w(s.customer.String()), Index: false}, - {Key: "operator", Value: w(s.operator.String()), Index: false}, - {Key: "previous_parent", Value: w(nfts[0]), Index: false}, - {Key: "subject", Value: w(nfts[1]), Index: false}, - }, - }, - sdk.Event{ - Type: "lbm.collection.v1.EventRootChanged", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(nfts[0]), Index: false}, - {Key: "to", Value: w(nfts[1]), Index: false}, - {Key: "token_id", Value: w(nfts[2]), Index: false}, - }, - }, - sdk.Event{ - Type: "lbm.collection.v1.EventRootChanged", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(nfts[0]), Index: false}, - {Key: "to", Value: w(nfts[1]), Index: false}, - {Key: "token_id", Value: w(nfts[3]), Index: false}, - }, - }, - }, - }, - "contract not found": { - contractID: "deadbeef", - operator: s.operator, - subjectID: collection.NewNFTID(s.nftClassID, 2), - err: collection.ErrContractNotExist, - }, - "not authorized": { - contractID: s.contractID, - operator: s.vendor, - subjectID: collection.NewNFTID(s.nftClassID, 2), - err: collection.ErrCollectionNotApproved, - }, - "not owner of the token": { - contractID: s.contractID, - operator: s.operator, - subjectID: collection.NewNFTID(s.nftClassID, s.numNFTs+2), - err: collection.ErrTokenNotOwnedBy, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - ctx, _ := s.ctx.CacheContext() - - req := &collection.MsgOperatorDetach{ - ContractId: tc.contractID, - Operator: tc.operator.String(), - From: s.customer.String(), - TokenId: tc.subjectID, - } - res, err := s.msgServer.OperatorDetach(ctx, req) - s.Require().ErrorIs(err, tc.err) - if tc.err != nil { - return - } - - s.Require().NotNil(res) - s.Require().Equal(tc.events, ctx.EventManager().Events()) - }) - } -} - -func (s *KeeperTestSuite) extractChainedNFTIDs(root string) []string { - allTokenIDs := make([]string, 0) - allTokenIDs = append(allTokenIDs, root) - cursor := allTokenIDs[0] - for { - ctx, _ := s.ctx.CacheContext() - res, err := s.queryServer.Children(ctx, &collection.QueryChildrenRequest{ - ContractId: s.contractID, - TokenId: cursor, - Pagination: &query.PageRequest{}, - }) - s.Require().NoError(err) - if res.Children == nil { - break - } - allTokenIDs = append(allTokenIDs, res.Children[0].TokenId) - cursor = allTokenIDs[len(allTokenIDs)-1] - } - return allTokenIDs -} diff --git a/x/collection/keeper/nft.go b/x/collection/keeper/nft.go index ef0216488c..e87b5b5861 100644 --- a/x/collection/keeper/nft.go +++ b/x/collection/keeper/nft.go @@ -1,10 +1,6 @@ package keeper import ( - gogotypes "github.com/cosmos/gogoproto/types" - - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/Finschia/finschia-sdk/x/collection" @@ -75,131 +71,6 @@ func (k Keeper) deleteNFT(ctx sdk.Context, contractID, tokenID string) { } } -func (k Keeper) pruneNFT(ctx sdk.Context, contractID, tokenID string) []string { - var burnt []string - for _, child := range k.GetChildren(ctx, contractID, tokenID) { - k.deleteChild(ctx, contractID, tokenID, child) - k.deleteParent(ctx, contractID, child) - k.deleteNFT(ctx, contractID, child) - burnt = append(burnt, child) - - pruned := k.pruneNFT(ctx, contractID, child) - burnt = append(burnt, pruned...) - } - return burnt -} - -func (k Keeper) Attach(ctx sdk.Context, contractID string, owner sdk.AccAddress, subject, target string) error { - // validate subject - if err := k.hasNFT(ctx, contractID, subject); err != nil { - return err - } - - if _, err := k.GetParent(ctx, contractID, subject); err == nil { - return collection.ErrTokenAlreadyAChild.Wrap(subject) - } - - if !k.GetBalance(ctx, contractID, owner, subject).IsPositive() { - return collection.ErrTokenNotOwnedBy.Wrapf("%s is not owner of %s", owner, subject) - } - - // validate target - if err := k.hasNFT(ctx, contractID, target); err != nil { - return err - } - - root := k.GetRoot(ctx, contractID, target) - if !owner.Equals(k.getOwner(ctx, contractID, root)) { - return collection.ErrTokenNotOwnedBy.Wrapf("%s is not owner of %s", owner, target) - } - if root == subject { - return collection.ErrCannotAttachToADescendant.Wrap("cycles not allowed") - } - - if err := k.subtractCoins(ctx, contractID, owner, collection.NewCoins(collection.NewCoin(subject, math.OneInt()))); err != nil { - panic(collection.ErrInsufficientToken.Wrapf("%s not owns %s", owner, subject)) - } - - // update relation - k.setParent(ctx, contractID, subject, target) - k.setChild(ctx, contractID, target, subject) - - // finally, check the invariant - if err := k.validateDepthAndWidth(ctx, contractID, root); err != nil { - return err - } - - // legacy - k.iterateDescendants(ctx, contractID, subject, func(descendantID string, _ int) (stop bool) { - event := collection.EventRootChanged{ - ContractId: contractID, - TokenId: descendantID, - From: subject, - To: root, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - return false - }) - - return nil -} - -func (k Keeper) Detach(ctx sdk.Context, contractID string, owner sdk.AccAddress, subject string) error { - if err := k.hasNFT(ctx, contractID, subject); err != nil { - return err - } - - parent, err := k.GetParent(ctx, contractID, subject) - if err != nil { - return collection.ErrTokenNotAChild.Wrap(err.Error()) - } - - if !owner.Equals(k.GetRootOwner(ctx, contractID, subject)) { - return collection.ErrTokenNotOwnedBy.Wrapf("%s is not owner of %s", owner, subject) - } - - k.addCoins(ctx, contractID, owner, collection.NewCoins(collection.NewCoin(subject, math.OneInt()))) - - // update relation - k.deleteParent(ctx, contractID, subject) - k.deleteChild(ctx, contractID, *parent, subject) - - // legacy - root := k.GetRoot(ctx, contractID, *parent) - k.iterateDescendants(ctx, contractID, subject, func(descendantID string, _ int) (stop bool) { - event := collection.EventRootChanged{ - ContractId: contractID, - TokenId: descendantID, - From: root, - To: subject, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - return false - }) - - return nil -} - -func (k Keeper) iterateAncestors(ctx sdk.Context, contractID, tokenID string, fn func(tokenID string) error) error { - var err error - for id := &tokenID; err == nil; id, err = k.GetParent(ctx, contractID, *id) { - if fnErr := fn(*id); fnErr != nil { - return fnErr - } - } - - return nil -} - -func (k Keeper) GetRootOwner(ctx sdk.Context, contractID, tokenID string) sdk.AccAddress { - rootID := k.GetRoot(ctx, contractID, tokenID) - return k.getOwner(ctx, contractID, rootID) -} - func (k Keeper) getOwner(ctx sdk.Context, contractID, tokenID string) sdk.AccAddress { store := k.storeService.OpenKVStore(ctx) key := ownerKey(contractID, tokenID) @@ -238,101 +109,6 @@ func (k Keeper) deleteOwner(ctx sdk.Context, contractID, tokenID string) { } } -func (k Keeper) GetParent(ctx sdk.Context, contractID, tokenID string) (*string, error) { - store := k.storeService.OpenKVStore(ctx) - key := parentKey(contractID, tokenID) - bz, _ := store.Get(key) - if bz == nil { - return nil, collection.ErrTokenNotAChild.Wrapf("%s has no parent", tokenID) - } - - var parent gogotypes.StringValue - k.cdc.MustUnmarshal(bz, &parent) - return &parent.Value, nil -} - -func (k Keeper) setParent(ctx sdk.Context, contractID, tokenID, parentID string) { - store := k.storeService.OpenKVStore(ctx) - key := parentKey(contractID, tokenID) - - val := &gogotypes.StringValue{Value: parentID} - bz := k.cdc.MustMarshal(val) - err := store.Set(key, bz) - if err != nil { - panic(err) - } -} - -func (k Keeper) deleteParent(ctx sdk.Context, contractID, tokenID string) { - store := k.storeService.OpenKVStore(ctx) - key := parentKey(contractID, tokenID) - err := store.Delete(key) - if err != nil { - panic(err) - } -} - -func (k Keeper) GetChildren(ctx sdk.Context, contractID, tokenID string) []string { - var children []string - k.iterateChildren(ctx, contractID, tokenID, func(childID string) (stop bool) { - children = append(children, childID) - return false - }) - return children -} - -func (k Keeper) iterateChildren(ctx sdk.Context, contractID, tokenID string, fn func(childID string) (stop bool)) { - k.iterateChildrenImpl(ctx, childKeyPrefixByTokenID(contractID, tokenID), func(_, _, childID string) (stop bool) { - return fn(childID) - }) -} - -func (k Keeper) iterateDescendants(ctx sdk.Context, contractID, tokenID string, fn func(descendantID string, depth int) (stop bool)) { - k.iterateDescendantsImpl(ctx, contractID, tokenID, 1, fn) -} - -func (k Keeper) iterateDescendantsImpl(ctx sdk.Context, contractID, tokenID string, depth int, fn func(descendantID string, depth int) (stop bool)) { - k.iterateChildren(ctx, contractID, tokenID, func(childID string) (stop bool) { - if stop := fn(childID, depth); stop { - return true - } - - k.iterateDescendantsImpl(ctx, contractID, childID, depth+1, fn) - return false - }) -} - -func (k Keeper) setChild(ctx sdk.Context, contractID, tokenID, childID string) { - store := k.storeService.OpenKVStore(ctx) - key := childKey(contractID, tokenID, childID) - err := store.Set(key, []byte{}) - if err != nil { - panic(err) - } -} - -func (k Keeper) deleteChild(ctx sdk.Context, contractID, tokenID, childID string) { - store := k.storeService.OpenKVStore(ctx) - key := childKey(contractID, tokenID, childID) - err := store.Delete(key) - if err != nil { - panic(err) - } -} - -func (k Keeper) GetRoot(ctx sdk.Context, contractID, tokenID string) string { - id := tokenID - err := k.iterateAncestors(ctx, contractID, tokenID, func(tokenID string) error { - id = tokenID - return nil - }) - if err != nil { - panic(err) - } - - return id -} - // Deprecated func (k Keeper) setLegacyToken(ctx sdk.Context, contractID, tokenID string) { store := k.storeService.OpenKVStore(ctx) @@ -362,27 +138,3 @@ func (k Keeper) setLegacyTokenType(ctx sdk.Context, contractID, tokenType string panic(err) } } - -// Deprecated -func (k Keeper) validateDepthAndWidth(ctx sdk.Context, contractID, tokenID string) error { - widths := map[int]int{0: 1} - k.iterateDescendants(ctx, contractID, tokenID, func(descendantID string, depth int) (stop bool) { - widths[depth]++ - return false - }) - - params := k.GetParams(ctx) - - depth := len(widths) - if legacyDepth := depth - 1; legacyDepth > int(params.DepthLimit) { - return collection.ErrCompositionTooDeep.Wrapf("resulting depth exceeds its limit: %d", params.DepthLimit) - } - - for _, width := range widths { - if width > int(params.WidthLimit) { - return collection.ErrCompositionTooWide.Wrapf("resulting width exceeds its limit: %d", params.WidthLimit) - } - } - - return nil -} diff --git a/x/collection/keeper/nft_test.go b/x/collection/keeper/nft_test.go index 4cc67e952f..b8cceb8ccf 100644 --- a/x/collection/keeper/nft_test.go +++ b/x/collection/keeper/nft_test.go @@ -4,105 +4,6 @@ import ( "github.com/Finschia/finschia-sdk/x/collection" ) -func (s *KeeperTestSuite) TestAttach() { - testCases := map[string]struct { - contractID string - subject string - target string - err error - }{ - "valid request": { - contractID: s.contractID, - subject: collection.NewNFTID(s.nftClassID, s.depthLimit+1), - target: collection.NewNFTID(s.nftClassID, s.depthLimit), - }, - "not owner of subject": { - contractID: s.contractID, - subject: collection.NewNFTID(s.nftClassID, s.numNFTs+1), - target: collection.NewNFTID(s.nftClassID, 1), - err: collection.ErrTokenNotOwnedBy, - }, - "target not found": { - contractID: s.contractID, - subject: collection.NewNFTID(s.nftClassID, s.depthLimit+1), - target: collection.NewNFTID(s.nftClassID, s.numNFTs*3+1), - err: collection.ErrTokenNotExist, - }, - "result exceeds the limit": { - contractID: s.contractID, - subject: collection.NewNFTID(s.nftClassID, s.depthLimit+2), - target: collection.NewNFTID(s.nftClassID, s.depthLimit), - err: collection.ErrCompositionTooDeep, - }, - "not owner of target": { - contractID: s.contractID, - subject: collection.NewNFTID(s.nftClassID, s.depthLimit+1), - target: collection.NewNFTID(s.nftClassID, s.numNFTs+1), - err: collection.ErrTokenNotOwnedBy, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - ctx, _ := s.ctx.CacheContext() - - err := s.keeper.Attach(ctx, tc.contractID, s.customer, tc.subject, tc.target) - s.Require().ErrorIs(err, tc.err) - if tc.err != nil { - return - } - - parent, err := s.keeper.GetParent(ctx, tc.contractID, tc.subject) - s.Require().NoError(err) - s.Require().Equal(*parent, tc.target) - }) - } -} - -func (s *KeeperTestSuite) TestDetach() { - testCases := map[string]struct { - contractID string - subject string - err error - }{ - "valid request": { - contractID: s.contractID, - subject: collection.NewNFTID(s.nftClassID, 2), - }, - "subject not found": { - contractID: s.contractID, - subject: collection.NewNFTID(s.nftClassID, s.numNFTs*3+1), - err: collection.ErrTokenNotExist, - }, - "subject has no parent": { - contractID: s.contractID, - subject: collection.NewNFTID(s.nftClassID, 1), - err: collection.ErrTokenNotAChild, - }, - "not owner of subject": { - contractID: s.contractID, - subject: collection.NewNFTID(s.nftClassID, s.numNFTs+2), - err: collection.ErrTokenNotOwnedBy, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - ctx, _ := s.ctx.CacheContext() - - err := s.keeper.Detach(ctx, tc.contractID, s.customer, tc.subject) - s.Require().ErrorIs(err, tc.err) - if tc.err != nil { - return - } - - parent, err := s.keeper.GetParent(ctx, tc.contractID, tc.subject) - s.Require().Error(err) - s.Require().Nil(parent) - }) - } -} - func (s *KeeperTestSuite) TestGetNFT() { testCases := map[string]struct { tokenID string diff --git a/x/collection/keeper/send.go b/x/collection/keeper/send.go index 63bd267361..b5ef3ca306 100644 --- a/x/collection/keeper/send.go +++ b/x/collection/keeper/send.go @@ -13,25 +13,6 @@ func (k Keeper) SendCoins(ctx sdk.Context, contractID string, from, to sdk.AccAd return err } k.addCoins(ctx, contractID, to, amount) - - // legacy - for _, coin := range amount { - if err := collection.ValidateNFTID(coin.TokenId); err == nil { - k.iterateDescendants(ctx, contractID, coin.TokenId, func(descendantID string, _ int) (stop bool) { - event := collection.EventOwnerChanged{ - ContractId: contractID, - TokenId: descendantID, - From: from.String(), - To: to.String(), - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - return false - }) - } - } - return nil } diff --git a/x/collection/keeper/supply.go b/x/collection/keeper/supply.go index bb8023bcb5..3da891c19d 100644 --- a/x/collection/keeper/supply.go +++ b/x/collection/keeper/supply.go @@ -261,11 +261,6 @@ func (k Keeper) BurnCoins(ctx sdk.Context, contractID string, from sdk.AccAddres burntAmount = append(burntAmount, coin) if err := collection.ValidateNFTID(coin.TokenId); err == nil { k.deleteNFT(ctx, contractID, coin.TokenId) - pruned := k.pruneNFT(ctx, contractID, coin.TokenId) - - for _, id := range pruned { - burntAmount = append(burntAmount, collection.NewCoin(id, math.OneInt())) - } // legacy k.deleteLegacyToken(ctx, contractID, coin.TokenId) diff --git a/x/collection/msgs.go b/x/collection/msgs.go index de3031afe5..2c9a0dfb05 100644 --- a/x/collection/msgs.go +++ b/x/collection/msgs.go @@ -1123,183 +1123,3 @@ func (m MsgRevokePermission) Route() string { func (m MsgRevokePermission) GetSignBytes() []byte { return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) } - -var _ sdk.Msg = (*MsgAttach)(nil) - -// ValidateBasic implements Msg. -func (m MsgAttach) ValidateBasic() error { - if err := ValidateContractID(m.ContractId); err != nil { - return err - } - - if _, err := sdk.AccAddressFromBech32(m.From); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", m.From) - } - - if err := ValidateTokenID(m.TokenId); err != nil { - return err - } - if err := ValidateTokenID(m.ToTokenId); err != nil { - return err - } - - if m.TokenId == m.ToTokenId { - return ErrCannotAttachToItself.Wrap("cannot attach token to itself") - } - - return nil -} - -// GetSigners implements Msg -func (m MsgAttach) GetSigners() []sdk.AccAddress { - signer, _ := sdk.AccAddressFromBech32(m.From) - return []sdk.AccAddress{signer} -} - -// Type implements the LegacyMsg.Type method. -func (m MsgAttach) Type() string { - return sdk.MsgTypeURL(&m) -} - -// Route implements the LegacyMsg.Route method. -func (m MsgAttach) Route() string { - return RouterKey -} - -// GetSignBytes implements the LegacyMsg.GetSignBytes method. -func (m MsgAttach) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - -var _ sdk.Msg = (*MsgDetach)(nil) - -// ValidateBasic implements Msg. -func (m MsgDetach) ValidateBasic() error { - if err := ValidateContractID(m.ContractId); err != nil { - return err - } - - if _, err := sdk.AccAddressFromBech32(m.From); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", m.From) - } - - if err := ValidateTokenID(m.TokenId); err != nil { - return err - } - - return nil -} - -// GetSigners implements Msg -func (m MsgDetach) GetSigners() []sdk.AccAddress { - signer, _ := sdk.AccAddressFromBech32(m.From) - return []sdk.AccAddress{signer} -} - -// Type implements the LegacyMsg.Type method. -func (m MsgDetach) Type() string { - return sdk.MsgTypeURL(&m) -} - -// Route implements the LegacyMsg.Route method. -func (m MsgDetach) Route() string { - return RouterKey -} - -// GetSignBytes implements the LegacyMsg.GetSignBytes method. -func (m MsgDetach) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - -var _ sdk.Msg = (*MsgOperatorAttach)(nil) - -// ValidateBasic implements Msg. -func (m MsgOperatorAttach) ValidateBasic() error { - if err := ValidateContractID(m.ContractId); err != nil { - return err - } - - if _, err := sdk.AccAddressFromBech32(m.Operator); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid operator address: %s", m.Operator) - } - if _, err := sdk.AccAddressFromBech32(m.From); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", m.From) - } - - if err := ValidateTokenID(m.TokenId); err != nil { - return err - } - if err := ValidateTokenID(m.ToTokenId); err != nil { - return err - } - - if m.TokenId == m.ToTokenId { - return ErrCannotAttachToItself.Wrap("cannot attach token to itself") - } - - return nil -} - -// GetSigners implements Msg -func (m MsgOperatorAttach) GetSigners() []sdk.AccAddress { - signer, _ := sdk.AccAddressFromBech32(m.Operator) - return []sdk.AccAddress{signer} -} - -// Type implements the LegacyMsg.Type method. -func (m MsgOperatorAttach) Type() string { - return sdk.MsgTypeURL(&m) -} - -// Route implements the LegacyMsg.Route method. -func (m MsgOperatorAttach) Route() string { - return RouterKey -} - -// GetSignBytes implements the LegacyMsg.GetSignBytes method. -func (m MsgOperatorAttach) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - -var _ sdk.Msg = (*MsgOperatorDetach)(nil) - -// ValidateBasic implements Msg. -func (m MsgOperatorDetach) ValidateBasic() error { - if err := ValidateContractID(m.ContractId); err != nil { - return err - } - - if _, err := sdk.AccAddressFromBech32(m.Operator); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid operator address: %s", m.Operator) - } - if _, err := sdk.AccAddressFromBech32(m.From); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", m.From) - } - - if err := ValidateTokenID(m.TokenId); err != nil { - return err - } - - return nil -} - -// GetSigners implements Msg -func (m MsgOperatorDetach) GetSigners() []sdk.AccAddress { - signer, _ := sdk.AccAddressFromBech32(m.Operator) - return []sdk.AccAddress{signer} -} - -// Type implements the LegacyMsg.Type method. -func (m MsgOperatorDetach) Type() string { - return sdk.MsgTypeURL(&m) -} - -// Route implements the LegacyMsg.Route method. -func (m MsgOperatorDetach) Route() string { - return RouterKey -} - -// GetSignBytes implements the LegacyMsg.GetSignBytes method. -func (m MsgOperatorDetach) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} diff --git a/x/collection/msgs_test.go b/x/collection/msgs_test.go index 0d4958fdc1..c5d595d080 100644 --- a/x/collection/msgs_test.go +++ b/x/collection/msgs_test.go @@ -1457,294 +1457,6 @@ func TestMsgRevokePermission(t *testing.T) { } } -func TestMsgAttach(t *testing.T) { - addrs := make([]sdk.AccAddress, 1) - for i := range addrs { - addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) - } - - contractID := contractID - tokenIDs := []string{ - collection.NewNFTID(contractID, 1), - collection.NewNFTID("fee1dead", 1), - } - - testCases := map[string]struct { - contractID string - from sdk.AccAddress - tokenID string - toTokenID string - err error - }{ - "valid msg": { - contractID: contractID, - from: addrs[0], - tokenID: tokenIDs[0], - toTokenID: tokenIDs[1], - }, - "invalid from": { - contractID: contractID, - tokenID: tokenIDs[0], - toTokenID: tokenIDs[1], - err: sdkerrors.ErrInvalidAddress, - }, - "invalid contract id": { - from: addrs[0], - tokenID: tokenIDs[0], - toTokenID: tokenIDs[1], - err: collection.ErrInvalidContractID, - }, - "invalid token id": { - contractID: contractID, - from: addrs[0], - toTokenID: tokenIDs[1], - err: collection.ErrInvalidTokenID, - }, - "invalid to id": { - contractID: contractID, - from: addrs[0], - tokenID: tokenIDs[0], - err: collection.ErrInvalidTokenID, - }, - "to itself": { - contractID: contractID, - from: addrs[0], - tokenID: tokenIDs[0], - toTokenID: tokenIDs[0], - err: collection.ErrCannotAttachToItself, - }, - } - - for name, tc := range testCases { - t.Run(name, func(t *testing.T) { - msg := collection.MsgAttach{ - ContractId: tc.contractID, - From: tc.from.String(), - TokenId: tc.tokenID, - ToTokenId: tc.toTokenID, - } - - require.ErrorIs(t, msg.ValidateBasic(), tc.err) - if tc.err != nil { - return - } - - require.Equal(t, []sdk.AccAddress{tc.from}, msg.GetSigners()) - }) - } -} - -func TestMsgDetach(t *testing.T) { - addrs := make([]sdk.AccAddress, 1) - for i := range addrs { - addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) - } - - contractID := contractID - tokenID := collection.NewNFTID(contractID, 1) - - testCases := map[string]struct { - contractID string - from sdk.AccAddress - tokenID string - err error - }{ - "valid msg": { - contractID: contractID, - from: addrs[0], - tokenID: tokenID, - }, - "invalid from": { - contractID: contractID, - tokenID: tokenID, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid contract id": { - from: addrs[0], - tokenID: tokenID, - err: collection.ErrInvalidContractID, - }, - "invalid token id": { - contractID: contractID, - from: addrs[0], - err: collection.ErrInvalidTokenID, - }, - } - - for name, tc := range testCases { - t.Run(name, func(t *testing.T) { - msg := collection.MsgDetach{ - ContractId: tc.contractID, - From: tc.from.String(), - TokenId: tc.tokenID, - } - - require.ErrorIs(t, msg.ValidateBasic(), tc.err) - if tc.err != nil { - return - } - - require.Equal(t, []sdk.AccAddress{tc.from}, msg.GetSigners()) - }) - } -} - -func TestMsgOperatorAttach(t *testing.T) { - addrs := make([]sdk.AccAddress, 2) - for i := range addrs { - addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) - } - - tokenIDs := []string{ - collection.NewNFTID(contractID, 1), - collection.NewNFTID("fee1dead", 1), - } - - testCases := map[string]struct { - contractID string - operator sdk.AccAddress - from sdk.AccAddress - tokenID string - toTokenID string - err error - }{ - "valid msg": { - contractID: contractID, - operator: addrs[0], - from: addrs[1], - tokenID: tokenIDs[0], - toTokenID: tokenIDs[1], - }, - "empty operator": { - contractID: contractID, - from: addrs[1], - tokenID: tokenIDs[0], - toTokenID: tokenIDs[1], - err: sdkerrors.ErrInvalidAddress, - }, - "invalid from": { - contractID: contractID, - operator: addrs[0], - tokenID: tokenIDs[0], - toTokenID: tokenIDs[1], - err: sdkerrors.ErrInvalidAddress, - }, - "invalid contract id": { - operator: addrs[0], - from: addrs[1], - tokenID: tokenIDs[0], - toTokenID: tokenIDs[1], - err: collection.ErrInvalidContractID, - }, - "invalid token id": { - contractID: contractID, - operator: addrs[0], - from: addrs[1], - toTokenID: tokenIDs[1], - err: collection.ErrInvalidTokenID, - }, - "invalid to id": { - contractID: contractID, - operator: addrs[0], - from: addrs[1], - tokenID: tokenIDs[0], - err: collection.ErrInvalidTokenID, - }, - "to itself": { - contractID: contractID, - operator: addrs[0], - from: addrs[1], - tokenID: tokenIDs[0], - toTokenID: tokenIDs[0], - err: collection.ErrCannotAttachToItself, - }, - } - - for name, tc := range testCases { - t.Run(name, func(t *testing.T) { - msg := collection.MsgOperatorAttach{ - ContractId: tc.contractID, - Operator: tc.operator.String(), - From: tc.from.String(), - TokenId: tc.tokenID, - ToTokenId: tc.toTokenID, - } - - require.ErrorIs(t, msg.ValidateBasic(), tc.err) - if tc.err != nil { - return - } - - require.Equal(t, []sdk.AccAddress{tc.operator}, msg.GetSigners()) - }) - } -} - -func TestMsgOperatorDetach(t *testing.T) { - addrs := make([]sdk.AccAddress, 2) - for i := range addrs { - addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) - } - - tokenID := collection.NewNFTID(contractID, 1) - - testCases := map[string]struct { - contractID string - operator sdk.AccAddress - from sdk.AccAddress - tokenID string - err error - }{ - "valid msg": { - contractID: contractID, - operator: addrs[0], - from: addrs[1], - tokenID: tokenID, - }, - "empty operator": { - contractID: contractID, - from: addrs[1], - tokenID: tokenID, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid from": { - contractID: contractID, - operator: addrs[0], - tokenID: tokenID, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid contract id": { - operator: addrs[0], - from: addrs[1], - tokenID: tokenID, - err: collection.ErrInvalidContractID, - }, - "invalid token id": { - contractID: contractID, - operator: addrs[0], - from: addrs[1], - err: collection.ErrInvalidTokenID, - }, - } - - for name, tc := range testCases { - t.Run(name, func(t *testing.T) { - msg := collection.MsgOperatorDetach{ - ContractId: tc.contractID, - Operator: tc.operator.String(), - From: tc.from.String(), - TokenId: tc.tokenID, - } - require.ErrorIs(t, msg.ValidateBasic(), tc.err) - if tc.err != nil { - return - } - - require.Equal(t, []sdk.AccAddress{tc.operator}, msg.GetSigners()) - }) - } -} - func TestAminoJSON(t *testing.T) { tx := legacytx.StdTx{} ftClassID := "00bab10c" @@ -1953,46 +1665,6 @@ func TestAminoJSON(t *testing.T) { "/lbm.collection.v1.MsgRevokePermission", fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/collection/MsgRevokePermission\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"permission\":\"mint\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0].String()), }, - "MsgAttach": { - &collection.MsgAttach{ - ContractId: contractID, - From: addrs[0].String(), - TokenId: collection.NewNFTID(contractID, 1), - ToTokenId: collection.NewNFTID("fee1dead", 1), - }, - "/lbm.collection.v1.MsgAttach", - fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgAttach\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"to_token_id\":\"fee1dead00000001\",\"token_id\":\"deadbeef00000001\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0].String()), - }, - "MsgDetach": { - &collection.MsgDetach{ - ContractId: contractID, - From: addrs[0].String(), - TokenId: collection.NewNFTID("fee1dead", 1), - }, - "/lbm.collection.v1.MsgDetach", - fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgDetach\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"token_id\":\"fee1dead00000001\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0].String()), - }, - "MsgOperatorAttach": { - &collection.MsgOperatorAttach{ - ContractId: contractID, - Operator: addrs[0].String(), - From: addrs[1].String(), - TokenId: collection.NewNFTID(contractID, 1), - ToTokenId: collection.NewNFTID("fee1dead", 1), - }, - "/lbm.collection.v1.MsgOperatorAttach", - fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgOperatorAttach\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"operator\":\"%s\",\"to_token_id\":\"fee1dead00000001\",\"token_id\":\"deadbeef00000001\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[1].String(), addrs[0].String()), - }, - "MsgOperatorDetach": { - &collection.MsgOperatorDetach{ - ContractId: contractID, - Operator: addrs[0].String(), - From: addrs[1].String(), - TokenId: collection.NewNFTID("fee1dead", 1), - }, - "/lbm.collection.v1.MsgOperatorDetach", - fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgOperatorDetach\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"operator\":\"%s\",\"token_id\":\"fee1dead00000001\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[1].String(), addrs[0].String()), - }, } for name, tc := range testCase { diff --git a/x/collection/query.pb.go b/x/collection/query.pb.go index 596afe437e..3ec33fbbf2 100644 --- a/x/collection/query.pb.go +++ b/x/collection/query.pb.go @@ -1229,26 +1229,28 @@ func (m *QueryTokenResponse) GetToken() types.Any { return types.Any{} } -// QueryRootRequest is the request type for the Query/Root RPC method. -type QueryRootRequest struct { +// QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. +type QueryGranteeGrantsRequest struct { // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the non-fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // the address of the grantee. + Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryRootRequest) Reset() { *m = QueryRootRequest{} } -func (m *QueryRootRequest) String() string { return proto.CompactTextString(m) } -func (*QueryRootRequest) ProtoMessage() {} -func (*QueryRootRequest) Descriptor() ([]byte, []int) { +func (m *QueryGranteeGrantsRequest) Reset() { *m = QueryGranteeGrantsRequest{} } +func (m *QueryGranteeGrantsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGranteeGrantsRequest) ProtoMessage() {} +func (*QueryGranteeGrantsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_a09de688aac2ee73, []int{24} } -func (m *QueryRootRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryGranteeGrantsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryRootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGranteeGrantsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryRootRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGranteeGrantsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1258,99 +1260,58 @@ func (m *QueryRootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *QueryRootRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRootRequest.Merge(m, src) +func (m *QueryGranteeGrantsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGranteeGrantsRequest.Merge(m, src) } -func (m *QueryRootRequest) XXX_Size() int { +func (m *QueryGranteeGrantsRequest) XXX_Size() int { return m.Size() } -func (m *QueryRootRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRootRequest.DiscardUnknown(m) +func (m *QueryGranteeGrantsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGranteeGrantsRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryRootRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryGranteeGrantsRequest proto.InternalMessageInfo -func (m *QueryRootRequest) GetContractId() string { +func (m *QueryGranteeGrantsRequest) GetContractId() string { if m != nil { return m.ContractId } return "" } -func (m *QueryRootRequest) GetTokenId() string { +func (m *QueryGranteeGrantsRequest) GetGrantee() string { if m != nil { - return m.TokenId + return m.Grantee } return "" } -// QueryRootResponse is the response type for the Query/Root RPC method. -type QueryRootResponse struct { - // root is the information of the root token. - // it would return itself if it's the root token. - Root NFT `protobuf:"bytes,1,opt,name=root,proto3" json:"root"` -} - -func (m *QueryRootResponse) Reset() { *m = QueryRootResponse{} } -func (m *QueryRootResponse) String() string { return proto.CompactTextString(m) } -func (*QueryRootResponse) ProtoMessage() {} -func (*QueryRootResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{25} -} -func (m *QueryRootResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryRootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryRootResponse.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 *QueryRootResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRootResponse.Merge(m, src) -} -func (m *QueryRootResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryRootResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRootResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryRootResponse proto.InternalMessageInfo - -func (m *QueryRootResponse) GetRoot() NFT { +func (m *QueryGranteeGrantsRequest) GetPagination() *query.PageRequest { if m != nil { - return m.Root + return m.Pagination } - return NFT{} + return nil } -// QueryHasParentRequest is the request type for the Query/HasParent RPC method. -type QueryHasParentRequest struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated wit the non-fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. +type QueryGranteeGrantsResponse struct { + Grants []Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryHasParentRequest) Reset() { *m = QueryHasParentRequest{} } -func (m *QueryHasParentRequest) String() string { return proto.CompactTextString(m) } -func (*QueryHasParentRequest) ProtoMessage() {} -func (*QueryHasParentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{26} +func (m *QueryGranteeGrantsResponse) Reset() { *m = QueryGranteeGrantsResponse{} } +func (m *QueryGranteeGrantsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGranteeGrantsResponse) ProtoMessage() {} +func (*QueryGranteeGrantsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{25} } -func (m *QueryHasParentRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryGranteeGrantsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryHasParentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGranteeGrantsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryHasParentRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGranteeGrantsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1360,50 +1321,54 @@ func (m *QueryHasParentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryHasParentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryHasParentRequest.Merge(m, src) +func (m *QueryGranteeGrantsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGranteeGrantsResponse.Merge(m, src) } -func (m *QueryHasParentRequest) XXX_Size() int { +func (m *QueryGranteeGrantsResponse) XXX_Size() int { return m.Size() } -func (m *QueryHasParentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryHasParentRequest.DiscardUnknown(m) +func (m *QueryGranteeGrantsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGranteeGrantsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryHasParentRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryGranteeGrantsResponse proto.InternalMessageInfo -func (m *QueryHasParentRequest) GetContractId() string { +func (m *QueryGranteeGrantsResponse) GetGrants() []Grant { if m != nil { - return m.ContractId + return m.Grants } - return "" + return nil } -func (m *QueryHasParentRequest) GetTokenId() string { +func (m *QueryGranteeGrantsResponse) GetPagination() *query.PageResponse { if m != nil { - return m.TokenId + return m.Pagination } - return "" + return nil } -// QueryHasParentResponse is the response type for the Query/HasParent RPC method. -type QueryHasParentResponse struct { - // whether the token has its parent. - HasParent bool `protobuf:"varint,1,opt,name=has_parent,json=hasParent,proto3" json:"has_parent,omitempty"` +// QueryIsOperatorForRequest is the request type for the Query/IsOperatorFor RPC method. +type QueryIsOperatorForRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address of the operator. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // the address of the token holder. + Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` } -func (m *QueryHasParentResponse) Reset() { *m = QueryHasParentResponse{} } -func (m *QueryHasParentResponse) String() string { return proto.CompactTextString(m) } -func (*QueryHasParentResponse) ProtoMessage() {} -func (*QueryHasParentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{27} +func (m *QueryIsOperatorForRequest) Reset() { *m = QueryIsOperatorForRequest{} } +func (m *QueryIsOperatorForRequest) String() string { return proto.CompactTextString(m) } +func (*QueryIsOperatorForRequest) ProtoMessage() {} +func (*QueryIsOperatorForRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{26} } -func (m *QueryHasParentResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryIsOperatorForRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryHasParentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsOperatorForRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryHasParentResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsOperatorForRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1413,98 +1378,56 @@ func (m *QueryHasParentResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *QueryHasParentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryHasParentResponse.Merge(m, src) +func (m *QueryIsOperatorForRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsOperatorForRequest.Merge(m, src) } -func (m *QueryHasParentResponse) XXX_Size() int { +func (m *QueryIsOperatorForRequest) XXX_Size() int { return m.Size() } -func (m *QueryHasParentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryHasParentResponse.DiscardUnknown(m) +func (m *QueryIsOperatorForRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsOperatorForRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryHasParentResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryIsOperatorForRequest proto.InternalMessageInfo -func (m *QueryHasParentResponse) GetHasParent() bool { +func (m *QueryIsOperatorForRequest) GetContractId() string { if m != nil { - return m.HasParent - } - return false -} - -// QueryParentRequest is the request type for the Query/Parent RPC method. -type QueryParentRequest struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated wit the non-fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (m *QueryParentRequest) Reset() { *m = QueryParentRequest{} } -func (m *QueryParentRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParentRequest) ProtoMessage() {} -func (*QueryParentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{28} -} -func (m *QueryParentRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParentRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + return m.ContractId } + return "" } -func (m *QueryParentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParentRequest.Merge(m, src) -} -func (m *QueryParentRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParentRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParentRequest proto.InternalMessageInfo -func (m *QueryParentRequest) GetContractId() string { +func (m *QueryIsOperatorForRequest) GetOperator() string { if m != nil { - return m.ContractId + return m.Operator } return "" } -func (m *QueryParentRequest) GetTokenId() string { +func (m *QueryIsOperatorForRequest) GetHolder() string { if m != nil { - return m.TokenId + return m.Holder } return "" } -// QueryParentResponse is the response type for the Query/Parent RPC method. -type QueryParentResponse struct { - // parent is the information of the parent token. - Parent NFT `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent"` +// QueryIsOperatorForResponse is the response type for the Query/IsOperatorFor RPC method. +type QueryIsOperatorForResponse struct { + Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` } -func (m *QueryParentResponse) Reset() { *m = QueryParentResponse{} } -func (m *QueryParentResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParentResponse) ProtoMessage() {} -func (*QueryParentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{29} +func (m *QueryIsOperatorForResponse) Reset() { *m = QueryIsOperatorForResponse{} } +func (m *QueryIsOperatorForResponse) String() string { return proto.CompactTextString(m) } +func (*QueryIsOperatorForResponse) ProtoMessage() {} +func (*QueryIsOperatorForResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{27} } -func (m *QueryParentResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryIsOperatorForResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryParentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsOperatorForResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryParentResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsOperatorForResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1514,47 +1437,47 @@ func (m *QueryParentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryParentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParentResponse.Merge(m, src) +func (m *QueryIsOperatorForResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsOperatorForResponse.Merge(m, src) } -func (m *QueryParentResponse) XXX_Size() int { +func (m *QueryIsOperatorForResponse) XXX_Size() int { return m.Size() } -func (m *QueryParentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParentResponse.DiscardUnknown(m) +func (m *QueryIsOperatorForResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsOperatorForResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryParentResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryIsOperatorForResponse proto.InternalMessageInfo -func (m *QueryParentResponse) GetParent() NFT { +func (m *QueryIsOperatorForResponse) GetAuthorized() bool { if m != nil { - return m.Parent + return m.Authorized } - return NFT{} + return false } -// QueryChildrenRequest is the request type for the Query/Children RPC method. -type QueryChildrenRequest struct { +// QueryHoldersByOperatorRequest is the request type for the Query/HoldersByOperator RPC method. +type QueryHoldersByOperatorRequest struct { // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the non-fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // address of the operator. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryChildrenRequest) Reset() { *m = QueryChildrenRequest{} } -func (m *QueryChildrenRequest) String() string { return proto.CompactTextString(m) } -func (*QueryChildrenRequest) ProtoMessage() {} -func (*QueryChildrenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{30} +func (m *QueryHoldersByOperatorRequest) Reset() { *m = QueryHoldersByOperatorRequest{} } +func (m *QueryHoldersByOperatorRequest) String() string { return proto.CompactTextString(m) } +func (*QueryHoldersByOperatorRequest) ProtoMessage() {} +func (*QueryHoldersByOperatorRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{28} } -func (m *QueryChildrenRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryHoldersByOperatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryChildrenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryHoldersByOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryChildrenRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryHoldersByOperatorRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1564,59 +1487,58 @@ func (m *QueryChildrenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *QueryChildrenRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryChildrenRequest.Merge(m, src) +func (m *QueryHoldersByOperatorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryHoldersByOperatorRequest.Merge(m, src) } -func (m *QueryChildrenRequest) XXX_Size() int { +func (m *QueryHoldersByOperatorRequest) XXX_Size() int { return m.Size() } -func (m *QueryChildrenRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryChildrenRequest.DiscardUnknown(m) +func (m *QueryHoldersByOperatorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryHoldersByOperatorRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryChildrenRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryHoldersByOperatorRequest proto.InternalMessageInfo -func (m *QueryChildrenRequest) GetContractId() string { +func (m *QueryHoldersByOperatorRequest) GetContractId() string { if m != nil { return m.ContractId } return "" } -func (m *QueryChildrenRequest) GetTokenId() string { +func (m *QueryHoldersByOperatorRequest) GetOperator() string { if m != nil { - return m.TokenId + return m.Operator } return "" } -func (m *QueryChildrenRequest) GetPagination() *query.PageRequest { +func (m *QueryHoldersByOperatorRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -// QueryChildrenResponse is the response type for the Query/Children RPC method. -type QueryChildrenResponse struct { - // children is the information of the child tokens. - Children []NFT `protobuf:"bytes,1,rep,name=children,proto3" json:"children"` +// QueryHoldersByOperatorResponse is the response type for the Query/HoldersByOperator RPC method. +type QueryHoldersByOperatorResponse struct { + Holders []string `protobuf:"bytes,1,rep,name=holders,proto3" json:"holders,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryChildrenResponse) Reset() { *m = QueryChildrenResponse{} } -func (m *QueryChildrenResponse) String() string { return proto.CompactTextString(m) } -func (*QueryChildrenResponse) ProtoMessage() {} -func (*QueryChildrenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{31} +func (m *QueryHoldersByOperatorResponse) Reset() { *m = QueryHoldersByOperatorResponse{} } +func (m *QueryHoldersByOperatorResponse) String() string { return proto.CompactTextString(m) } +func (*QueryHoldersByOperatorResponse) ProtoMessage() {} +func (*QueryHoldersByOperatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{29} } -func (m *QueryChildrenResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryHoldersByOperatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryChildrenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryHoldersByOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryChildrenResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryHoldersByOperatorResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1626,1206 +1548,702 @@ func (m *QueryChildrenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryChildrenResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryChildrenResponse.Merge(m, src) +func (m *QueryHoldersByOperatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryHoldersByOperatorResponse.Merge(m, src) } -func (m *QueryChildrenResponse) XXX_Size() int { +func (m *QueryHoldersByOperatorResponse) XXX_Size() int { return m.Size() } -func (m *QueryChildrenResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryChildrenResponse.DiscardUnknown(m) +func (m *QueryHoldersByOperatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryHoldersByOperatorResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryChildrenResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryHoldersByOperatorResponse proto.InternalMessageInfo -func (m *QueryChildrenResponse) GetChildren() []NFT { +func (m *QueryHoldersByOperatorResponse) GetHolders() []string { if m != nil { - return m.Children + return m.Holders } return nil } -func (m *QueryChildrenResponse) GetPagination() *query.PageResponse { +func (m *QueryHoldersByOperatorResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } -// QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. -type QueryGranteeGrantsRequest struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address of the grantee. - Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +func init() { + proto.RegisterType((*QueryBalanceRequest)(nil), "lbm.collection.v1.QueryBalanceRequest") + proto.RegisterType((*QueryBalanceResponse)(nil), "lbm.collection.v1.QueryBalanceResponse") + proto.RegisterType((*QueryAllBalancesRequest)(nil), "lbm.collection.v1.QueryAllBalancesRequest") + proto.RegisterType((*QueryAllBalancesResponse)(nil), "lbm.collection.v1.QueryAllBalancesResponse") + proto.RegisterType((*QueryFTSupplyRequest)(nil), "lbm.collection.v1.QueryFTSupplyRequest") + proto.RegisterType((*QueryFTSupplyResponse)(nil), "lbm.collection.v1.QueryFTSupplyResponse") + proto.RegisterType((*QueryFTMintedRequest)(nil), "lbm.collection.v1.QueryFTMintedRequest") + proto.RegisterType((*QueryFTMintedResponse)(nil), "lbm.collection.v1.QueryFTMintedResponse") + proto.RegisterType((*QueryFTBurntRequest)(nil), "lbm.collection.v1.QueryFTBurntRequest") + proto.RegisterType((*QueryFTBurntResponse)(nil), "lbm.collection.v1.QueryFTBurntResponse") + proto.RegisterType((*QueryNFTSupplyRequest)(nil), "lbm.collection.v1.QueryNFTSupplyRequest") + proto.RegisterType((*QueryNFTSupplyResponse)(nil), "lbm.collection.v1.QueryNFTSupplyResponse") + proto.RegisterType((*QueryNFTMintedRequest)(nil), "lbm.collection.v1.QueryNFTMintedRequest") + proto.RegisterType((*QueryNFTMintedResponse)(nil), "lbm.collection.v1.QueryNFTMintedResponse") + proto.RegisterType((*QueryNFTBurntRequest)(nil), "lbm.collection.v1.QueryNFTBurntRequest") + proto.RegisterType((*QueryNFTBurntResponse)(nil), "lbm.collection.v1.QueryNFTBurntResponse") + proto.RegisterType((*QueryContractRequest)(nil), "lbm.collection.v1.QueryContractRequest") + proto.RegisterType((*QueryContractResponse)(nil), "lbm.collection.v1.QueryContractResponse") + proto.RegisterType((*QueryTokenClassTypeNameRequest)(nil), "lbm.collection.v1.QueryTokenClassTypeNameRequest") + proto.RegisterType((*QueryTokenClassTypeNameResponse)(nil), "lbm.collection.v1.QueryTokenClassTypeNameResponse") + proto.RegisterType((*QueryTokenTypeRequest)(nil), "lbm.collection.v1.QueryTokenTypeRequest") + proto.RegisterType((*QueryTokenTypeResponse)(nil), "lbm.collection.v1.QueryTokenTypeResponse") + proto.RegisterType((*QueryTokenRequest)(nil), "lbm.collection.v1.QueryTokenRequest") + proto.RegisterType((*QueryTokenResponse)(nil), "lbm.collection.v1.QueryTokenResponse") + proto.RegisterType((*QueryGranteeGrantsRequest)(nil), "lbm.collection.v1.QueryGranteeGrantsRequest") + proto.RegisterType((*QueryGranteeGrantsResponse)(nil), "lbm.collection.v1.QueryGranteeGrantsResponse") + proto.RegisterType((*QueryIsOperatorForRequest)(nil), "lbm.collection.v1.QueryIsOperatorForRequest") + proto.RegisterType((*QueryIsOperatorForResponse)(nil), "lbm.collection.v1.QueryIsOperatorForResponse") + proto.RegisterType((*QueryHoldersByOperatorRequest)(nil), "lbm.collection.v1.QueryHoldersByOperatorRequest") + proto.RegisterType((*QueryHoldersByOperatorResponse)(nil), "lbm.collection.v1.QueryHoldersByOperatorResponse") } -func (m *QueryGranteeGrantsRequest) Reset() { *m = QueryGranteeGrantsRequest{} } -func (m *QueryGranteeGrantsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGranteeGrantsRequest) ProtoMessage() {} -func (*QueryGranteeGrantsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{32} -} -func (m *QueryGranteeGrantsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +func init() { proto.RegisterFile("lbm/collection/v1/query.proto", fileDescriptor_a09de688aac2ee73) } + +var fileDescriptor_a09de688aac2ee73 = []byte{ + // 1376 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x97, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xc7, 0xb3, 0x69, 0x13, 0x3b, 0x2f, 0xea, 0xa1, 0xd3, 0x94, 0xba, 0x4b, 0xe3, 0x54, 0x2b, + 0x68, 0xd2, 0xb4, 0xd9, 0x8d, 0xcd, 0x8f, 0x0a, 0xd1, 0x50, 0x62, 0x53, 0x27, 0x6e, 0x69, 0xd2, + 0xb8, 0xa1, 0x88, 0x52, 0x14, 0xad, 0xed, 0x8d, 0xb3, 0x8a, 0xbd, 0xe3, 0xee, 0xae, 0x23, 0xdc, + 0x28, 0x17, 0x24, 0xee, 0x20, 0x6e, 0x48, 0x70, 0x01, 0x89, 0x0b, 0x48, 0x20, 0x45, 0x88, 0x13, + 0xe7, 0x1e, 0xab, 0x70, 0x00, 0x71, 0xa8, 0x50, 0xc2, 0x1f, 0x82, 0x76, 0xe6, 0xad, 0xbd, 0xfe, + 0xb1, 0xb6, 0x37, 0x6c, 0x4e, 0xf1, 0xce, 0xbe, 0xf7, 0xe6, 0x33, 0xdf, 0x79, 0x3b, 0xf9, 0x0e, + 0x4c, 0x96, 0xf3, 0x15, 0xa5, 0x40, 0xcb, 0x65, 0xad, 0x60, 0xeb, 0xd4, 0x50, 0x76, 0x12, 0xca, + 0x93, 0x9a, 0x66, 0xd6, 0xe5, 0xaa, 0x49, 0x6d, 0x4a, 0xce, 0x96, 0xf3, 0x15, 0xb9, 0xf9, 0x5a, + 0xde, 0x49, 0x88, 0xb3, 0x05, 0x6a, 0x55, 0xa8, 0xa5, 0xe4, 0x55, 0x4b, 0xe3, 0xb1, 0xca, 0x4e, + 0x22, 0xaf, 0xd9, 0x6a, 0x42, 0xa9, 0xaa, 0x25, 0xdd, 0x50, 0x59, 0x20, 0x4b, 0x17, 0x2f, 0x95, + 0x28, 0x2d, 0x95, 0x35, 0x45, 0xad, 0xea, 0x8a, 0x6a, 0x18, 0xd4, 0x66, 0x2f, 0x2d, 0x7c, 0x7b, + 0x91, 0x57, 0xda, 0x60, 0x4f, 0x0a, 0x7f, 0xc0, 0x57, 0x52, 0x27, 0x96, 0x87, 0x02, 0xd3, 0xb1, + 0x38, 0x7b, 0xca, 0xd7, 0x36, 0x15, 0xd5, 0x40, 0x6c, 0x71, 0xa2, 0x44, 0x4b, 0x94, 0x97, 0x75, + 0x7e, 0xf1, 0x51, 0xe9, 0x73, 0x01, 0xce, 0xad, 0x39, 0xc0, 0x29, 0xb5, 0xac, 0x1a, 0x05, 0x2d, + 0xa7, 0x3d, 0xa9, 0x69, 0x96, 0x4d, 0xa6, 0x60, 0xbc, 0x40, 0x0d, 0xdb, 0x54, 0x0b, 0xf6, 0x86, + 0x5e, 0x8c, 0x09, 0x97, 0x85, 0x99, 0xb1, 0x1c, 0xb8, 0x43, 0xd9, 0x22, 0x49, 0x42, 0x44, 0x2d, + 0x16, 0x4d, 0xcd, 0xb2, 0x62, 0xc3, 0xce, 0xcb, 0x54, 0xec, 0x60, 0x7f, 0x6e, 0x02, 0x81, 0x17, + 0xf9, 0x9b, 0x07, 0xb6, 0xa9, 0x1b, 0xa5, 0x9c, 0x1b, 0x48, 0x2e, 0x42, 0xd4, 0xa6, 0xdb, 0x9a, + 0xe1, 0x54, 0x3c, 0xc5, 0x2a, 0x46, 0xd8, 0x73, 0xb6, 0x28, 0xad, 0xc2, 0x44, 0x2b, 0x86, 0x55, + 0xa5, 0x86, 0xa5, 0x91, 0x1b, 0x10, 0xc9, 0xf3, 0x21, 0xc6, 0x30, 0x9e, 0xbc, 0x20, 0x77, 0xc8, + 0x2f, 0xa7, 0xa9, 0x6e, 0xa4, 0x4e, 0x3f, 0x7b, 0x31, 0x35, 0x94, 0x73, 0xa3, 0xa5, 0x5f, 0x05, + 0xb8, 0xc0, 0x2a, 0x2e, 0x96, 0xcb, 0x58, 0xd4, 0x3a, 0xd1, 0xc5, 0x65, 0x00, 0x9a, 0x7b, 0xcd, + 0x96, 0x37, 0x9e, 0xbc, 0x22, 0x63, 0x8e, 0xd3, 0x18, 0x32, 0x6f, 0x22, 0x6c, 0x0c, 0xf9, 0xbe, + 0x5a, 0x72, 0xd5, 0xce, 0x79, 0x32, 0xa5, 0x6f, 0x05, 0x88, 0x75, 0x82, 0xa3, 0x1c, 0x6f, 0x41, + 0x14, 0x17, 0x68, 0xc5, 0x84, 0xcb, 0xa7, 0xfa, 0xeb, 0xd1, 0x08, 0x27, 0x4b, 0x2d, 0x7c, 0xc3, + 0x8c, 0x6f, 0xba, 0x2f, 0x1f, 0x9f, 0xb7, 0x05, 0x30, 0x87, 0x5b, 0x95, 0x59, 0x7f, 0x50, 0xab, + 0x56, 0xcb, 0xf5, 0x81, 0x55, 0xf5, 0x6e, 0xff, 0x70, 0xeb, 0xf6, 0x3f, 0x86, 0xf3, 0x6d, 0x35, + 0x71, 0xc1, 0x69, 0x18, 0xb5, 0xd8, 0x08, 0xaf, 0x97, 0xba, 0xe6, 0xac, 0xea, 0xef, 0x17, 0x53, + 0xe7, 0x39, 0xb8, 0x55, 0xdc, 0x96, 0x75, 0xaa, 0x54, 0x54, 0x7b, 0x4b, 0xce, 0x1a, 0xf6, 0xc1, + 0xfe, 0x1c, 0xe0, 0x8a, 0xb2, 0x86, 0x9d, 0xc3, 0x54, 0x0f, 0xf1, 0x3d, 0xdd, 0xb0, 0xb5, 0x62, + 0xb8, 0xc4, 0x6e, 0xcd, 0x26, 0x71, 0x85, 0x8d, 0x1c, 0x8b, 0x98, 0xa7, 0x4a, 0x6b, 0xf8, 0x55, + 0x66, 0xd6, 0x53, 0x35, 0xd3, 0xb0, 0xc3, 0x00, 0xfe, 0xa8, 0x21, 0x02, 0x96, 0x44, 0xde, 0x45, + 0x18, 0xc9, 0x3b, 0x03, 0xc7, 0xc1, 0xe5, 0x99, 0xd2, 0x87, 0xa8, 0xc5, 0x4a, 0xe0, 0x96, 0x98, + 0x04, 0xe0, 0xbc, 0x76, 0xbd, 0xaa, 0x21, 0xf1, 0x18, 0x1b, 0x59, 0xaf, 0x57, 0x35, 0xe9, 0x13, + 0x78, 0xa9, 0xbd, 0x70, 0x98, 0x7d, 0xe1, 0xe1, 0x0e, 0xd8, 0x18, 0x83, 0x73, 0x9f, 0x44, 0x77, + 0x3c, 0xc4, 0xad, 0x5c, 0x09, 0xda, 0x1e, 0x7d, 0xb0, 0x1f, 0x35, 0xf5, 0x08, 0xbd, 0x47, 0x6e, + 0x20, 0x73, 0x1a, 0x69, 0x06, 0x65, 0x96, 0x1e, 0x22, 0x54, 0x33, 0x11, 0xa1, 0x16, 0x20, 0xea, + 0x86, 0xe1, 0xff, 0x86, 0x97, 0xbb, 0x9e, 0x85, 0x3c, 0xc4, 0x3d, 0x0f, 0xdd, 0x14, 0xe9, 0x31, + 0xc4, 0x59, 0xdd, 0x75, 0x67, 0xf9, 0xe9, 0xb2, 0x6a, 0x59, 0x8e, 0x06, 0x2b, 0x6a, 0x45, 0x0b, + 0xf2, 0xb5, 0x15, 0x9c, 0x44, 0xcf, 0xd7, 0xc6, 0x9e, 0xb3, 0x45, 0xe9, 0x0d, 0x98, 0xf2, 0xad, + 0x8e, 0xfc, 0x04, 0x4e, 0x1b, 0x6a, 0x45, 0xc3, 0xba, 0xec, 0x77, 0xa3, 0x23, 0xd7, 0xdd, 0x3d, + 0x09, 0x6b, 0x6b, 0x3f, 0xc6, 0x8e, 0xf4, 0x14, 0x6e, 0xec, 0xad, 0x37, 0x91, 0x0b, 0x79, 0xa9, + 0x8b, 0x90, 0x8d, 0x4c, 0x54, 0xd2, 0x53, 0x7c, 0x15, 0xce, 0x36, 0x8b, 0x87, 0x71, 0x56, 0x65, + 0x80, 0x78, 0x0b, 0x22, 0xe9, 0x3c, 0x8c, 0xb0, 0x00, 0x84, 0x9c, 0x90, 0xb9, 0xd9, 0x91, 0x5d, + 0xb3, 0x23, 0x2f, 0x1a, 0x75, 0x84, 0xe3, 0x81, 0xd2, 0x6f, 0x02, 0x5c, 0x64, 0x85, 0x96, 0x4c, + 0xd5, 0xb0, 0x35, 0x8d, 0xfd, 0x09, 0x64, 0x03, 0x4a, 0x3c, 0xb1, 0xbf, 0x0d, 0xc0, 0xc0, 0xd0, + 0x6c, 0xc0, 0x37, 0x02, 0x88, 0xdd, 0xd0, 0x51, 0x8b, 0x37, 0x61, 0x94, 0xcd, 0xe8, 0xda, 0x80, + 0x58, 0x97, 0x1d, 0x63, 0x29, 0x28, 0x08, 0x46, 0x87, 0xe7, 0x02, 0xbe, 0x77, 0xa5, 0xcd, 0x5a, + 0xab, 0x55, 0xcd, 0x54, 0x6d, 0x6a, 0x66, 0xa8, 0x39, 0xb0, 0xb4, 0xaf, 0x43, 0x94, 0x62, 0x5a, + 0x5f, 0x6d, 0x1b, 0x91, 0x64, 0x1e, 0x46, 0xb7, 0x68, 0xb9, 0xa8, 0x99, 0xdc, 0x3e, 0xf6, 0xc8, + 0xc1, 0x38, 0xe9, 0x26, 0xaa, 0xd8, 0x46, 0x89, 0x2a, 0xc6, 0x01, 0xd4, 0x9a, 0xbd, 0x45, 0x4d, + 0xfd, 0x29, 0x9e, 0xc8, 0xd1, 0x9c, 0x67, 0x44, 0xfa, 0x5d, 0x80, 0x49, 0x96, 0xbe, 0xcc, 0xaa, + 0x59, 0xa9, 0xba, 0x5b, 0xe5, 0x84, 0x17, 0x1a, 0x62, 0x17, 0xc5, 0xfd, 0x16, 0x80, 0x1a, 0x24, + 0x21, 0xc2, 0xb5, 0xe2, 0xad, 0xd4, 0xb3, 0xc9, 0x31, 0x30, 0xb4, 0x2e, 0x4a, 0xfe, 0x79, 0x0e, + 0x46, 0x18, 0x1f, 0xf9, 0x51, 0x80, 0x08, 0xda, 0x5d, 0x72, 0xa5, 0x4b, 0x33, 0x77, 0xb9, 0xa4, + 0x88, 0xd3, 0x7d, 0xe3, 0xf8, 0x94, 0xd2, 0xfd, 0xcf, 0xfe, 0xf8, 0xf7, 0xab, 0xe1, 0x3b, 0x64, + 0x59, 0xe9, 0x76, 0x87, 0xe2, 0x7b, 0x65, 0x29, 0xbb, 0x9e, 0x9d, 0xdc, 0x53, 0x5c, 0xe3, 0xac, + 0xec, 0xa2, 0xc3, 0xdf, 0x53, 0x76, 0xdd, 0xf3, 0x6a, 0x8f, 0xfc, 0x24, 0xc0, 0xb8, 0xc7, 0xa0, + 0x93, 0x59, 0x3f, 0x94, 0xce, 0xeb, 0x87, 0x78, 0x6d, 0xa0, 0x58, 0x44, 0xbf, 0xcd, 0xd0, 0x6f, + 0x91, 0x85, 0xff, 0x85, 0x4e, 0x7e, 0x10, 0x20, 0xea, 0x9a, 0x28, 0xe2, 0xab, 0x5b, 0x9b, 0x7f, + 0x13, 0x67, 0xfa, 0x07, 0x22, 0xe6, 0x32, 0xc3, 0x4c, 0x91, 0x77, 0x03, 0x60, 0x6e, 0x3a, 0x23, + 0x0d, 0x49, 0x15, 0x6e, 0xca, 0x90, 0x94, 0xdb, 0xa6, 0x5e, 0xa4, 0x2d, 0x8e, 0xad, 0x17, 0x69, + 0xab, 0x03, 0x0b, 0x83, 0x94, 0xdb, 0x30, 0xf2, 0x9d, 0x00, 0x11, 0x74, 0x4a, 0xfe, 0x2d, 0xdb, + 0x6a, 0xd1, 0xc4, 0xe9, 0xbe, 0x71, 0x88, 0xb9, 0xc4, 0x30, 0x17, 0xc9, 0xad, 0xe3, 0x63, 0x32, + 0xe3, 0x45, 0xf6, 0x05, 0x18, 0x6b, 0xf8, 0x67, 0xe2, 0xab, 0x53, 0xbb, 0x77, 0x17, 0xaf, 0x0e, + 0x10, 0x89, 0xac, 0x39, 0xc6, 0xfa, 0x3e, 0xb9, 0x13, 0x80, 0xb5, 0xe9, 0x39, 0x1a, 0xcc, 0xce, + 0x43, 0xa3, 0x0d, 0x10, 0x1b, 0xfb, 0xa0, 0x17, 0x76, 0x6b, 0x23, 0x5c, 0x1d, 0x20, 0xf2, 0x24, + 0xb0, 0xb1, 0x27, 0x7e, 0x16, 0x20, 0xea, 0xda, 0x67, 0xff, 0xee, 0x6d, 0x33, 0xee, 0xe2, 0x4c, + 0xff, 0x40, 0x64, 0x5e, 0x63, 0xcc, 0x77, 0x49, 0x36, 0x0c, 0x66, 0xde, 0x20, 0x5f, 0x0a, 0x10, + 0x75, 0x5d, 0xb2, 0x3f, 0x72, 0x9b, 0x6f, 0xf7, 0x47, 0x6e, 0xf7, 0xe9, 0x52, 0x92, 0x21, 0x5f, + 0x27, 0xb3, 0x83, 0x23, 0x93, 0x03, 0x01, 0x48, 0xa7, 0x75, 0x26, 0x09, 0xbf, 0x49, 0x7d, 0x4d, + 0xbc, 0x98, 0x0c, 0x92, 0x82, 0xc4, 0x1f, 0x30, 0xe2, 0x55, 0x72, 0x2f, 0xb0, 0xc8, 0xcc, 0xfe, + 0x3b, 0x32, 0xbb, 0xf7, 0x82, 0x3d, 0xc5, 0x91, 0x7a, 0xc3, 0x31, 0xf7, 0xce, 0xff, 0x8c, 0xb1, + 0x86, 0x8b, 0xf6, 0x6f, 0xe9, 0x76, 0xef, 0xef, 0xdf, 0xd2, 0x1d, 0x66, 0x5e, 0xba, 0xcb, 0xc8, + 0x6f, 0x93, 0x74, 0x08, 0xed, 0x41, 0xbe, 0x16, 0x60, 0x84, 0x4d, 0x41, 0x5e, 0xe9, 0x49, 0xe0, + 0x72, 0xbe, 0xda, 0x27, 0x0a, 0x19, 0xdf, 0x63, 0x8c, 0xef, 0x90, 0x9b, 0x41, 0x19, 0xbd, 0x87, + 0x1b, 0xf9, 0x45, 0x80, 0x33, 0x2d, 0xd6, 0x98, 0x5c, 0xf7, 0x9b, 0xbe, 0x9b, 0xf9, 0x17, 0xe7, + 0x06, 0x8c, 0x46, 0xe8, 0x34, 0x83, 0x5e, 0x20, 0x6f, 0x07, 0x80, 0xe6, 0x96, 0x5b, 0xd9, 0xc5, + 0xab, 0xc1, 0x1e, 0x31, 0xe0, 0x4c, 0x8b, 0x0f, 0xf5, 0x47, 0xee, 0x66, 0xaa, 0xfd, 0x91, 0xbb, + 0x9a, 0x5b, 0x69, 0x88, 0x3c, 0x85, 0xb3, 0x1d, 0xbe, 0x8f, 0xcc, 0xfb, 0x55, 0xf1, 0xf3, 0xb8, + 0x62, 0x22, 0x40, 0x86, 0x3b, 0x77, 0x6a, 0xe9, 0xd9, 0x61, 0x5c, 0x78, 0x7e, 0x18, 0x17, 0xfe, + 0x39, 0x8c, 0x0b, 0x5f, 0x1c, 0xc5, 0x87, 0x9e, 0x1f, 0xc5, 0x87, 0xfe, 0x3a, 0x8a, 0x0f, 0x3d, + 0x9a, 0x2b, 0xe9, 0xf6, 0x56, 0x2d, 0x2f, 0x17, 0x68, 0x45, 0xc9, 0xe8, 0x86, 0x55, 0xd8, 0xd2, + 0x55, 0x65, 0x13, 0x7f, 0xcc, 0x59, 0xc5, 0x6d, 0xe5, 0x53, 0x8f, 0xc0, 0xf9, 0x51, 0x76, 0xbd, + 0x7b, 0xed, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe3, 0xf6, 0x22, 0xb5, 0x96, 0x17, 0x00, 0x00, } -func (m *QueryGranteeGrantsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGranteeGrantsRequest.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 *QueryGranteeGrantsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGranteeGrantsRequest.Merge(m, src) -} -func (m *QueryGranteeGrantsRequest) XXX_Size() int { - return m.Size() + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Balance queries the balance of a single token class for a single account. + Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) + // AllBalances queries the balance of all token classes for a single account. + AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) + // FTSupply queries the number of tokens from a given contract id and token id. + FTSupply(ctx context.Context, in *QueryFTSupplyRequest, opts ...grpc.CallOption) (*QueryFTSupplyResponse, error) + // FTMinted queries the number of minted tokens from a given contract id and token id. + FTMinted(ctx context.Context, in *QueryFTMintedRequest, opts ...grpc.CallOption) (*QueryFTMintedResponse, error) + // FTBurnt queries the number of burnt tokens from a given contract id and token id. + FTBurnt(ctx context.Context, in *QueryFTBurntRequest, opts ...grpc.CallOption) (*QueryFTBurntResponse, error) + // NFTSupply queries the number of tokens from a given contract id and token type. + NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error) + // NFTMinted queries the number of minted tokens from a given contract id and token type. + NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error) + // NFTBurnt queries the number of burnt tokens from a given contract id and token type. + NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error) + // Contract queries a contract metadata based on its contract id. + Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error) + // TokenClassTypeName queries the fully qualified message type name of a token class from its class id. + // + // Since: 0.46.0 (finschia) + TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error) + // TokenType queries metadata of a token type. + TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) + // Token queries a metadata of a token from its token id. + Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) + // GranteeGrants queries all permissions on a given grantee. + GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) + // IsOperatorFor queries whether the operator is authorized by the holder. + IsOperatorFor(ctx context.Context, in *QueryIsOperatorForRequest, opts ...grpc.CallOption) (*QueryIsOperatorForResponse, error) + // HoldersByOperator queries holders of a given operator. + HoldersByOperator(ctx context.Context, in *QueryHoldersByOperatorRequest, opts ...grpc.CallOption) (*QueryHoldersByOperatorResponse, error) } -func (m *QueryGranteeGrantsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGranteeGrantsRequest.DiscardUnknown(m) + +type queryClient struct { + cc grpc1.ClientConn } -var xxx_messageInfo_QueryGranteeGrantsRequest proto.InternalMessageInfo +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} -func (m *QueryGranteeGrantsRequest) GetContractId() string { - if m != nil { - return m.ContractId +func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { + out := new(QueryBalanceResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Balance", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -func (m *QueryGranteeGrantsRequest) GetGrantee() string { - if m != nil { - return m.Grantee +func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) { + out := new(QueryAllBalancesResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/AllBalances", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -func (m *QueryGranteeGrantsRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination +func (c *queryClient) FTSupply(ctx context.Context, in *QueryFTSupplyRequest, opts ...grpc.CallOption) (*QueryFTSupplyResponse, error) { + out := new(QueryFTSupplyResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTSupply", in, out, opts...) + if err != nil { + return nil, err } - return nil + return out, nil } -// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. -type QueryGranteeGrantsResponse struct { - Grants []Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants"` - // pagination defines the pagination in the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +func (c *queryClient) FTMinted(ctx context.Context, in *QueryFTMintedRequest, opts ...grpc.CallOption) (*QueryFTMintedResponse, error) { + out := new(QueryFTMintedResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTMinted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *QueryGranteeGrantsResponse) Reset() { *m = QueryGranteeGrantsResponse{} } -func (m *QueryGranteeGrantsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGranteeGrantsResponse) ProtoMessage() {} -func (*QueryGranteeGrantsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{33} -} -func (m *QueryGranteeGrantsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGranteeGrantsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGranteeGrantsResponse.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 (c *queryClient) FTBurnt(ctx context.Context, in *QueryFTBurntRequest, opts ...grpc.CallOption) (*QueryFTBurntResponse, error) { + out := new(QueryFTBurntResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTBurnt", in, out, opts...) + if err != nil { + return nil, err } -} -func (m *QueryGranteeGrantsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGranteeGrantsResponse.Merge(m, src) -} -func (m *QueryGranteeGrantsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGranteeGrantsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGranteeGrantsResponse.DiscardUnknown(m) + return out, nil } -var xxx_messageInfo_QueryGranteeGrantsResponse proto.InternalMessageInfo - -func (m *QueryGranteeGrantsResponse) GetGrants() []Grant { - if m != nil { - return m.Grants +func (c *queryClient) NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error) { + out := new(QueryNFTSupplyResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTSupply", in, out, opts...) + if err != nil { + return nil, err } - return nil + return out, nil } -func (m *QueryGranteeGrantsResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination +func (c *queryClient) NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error) { + out := new(QueryNFTMintedResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTMinted", in, out, opts...) + if err != nil { + return nil, err } - return nil + return out, nil } -// QueryIsOperatorForRequest is the request type for the Query/IsOperatorFor RPC method. -type QueryIsOperatorForRequest struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // the address of the token holder. - Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` +func (c *queryClient) NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error) { + out := new(QueryNFTBurntResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTBurnt", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *QueryIsOperatorForRequest) Reset() { *m = QueryIsOperatorForRequest{} } -func (m *QueryIsOperatorForRequest) String() string { return proto.CompactTextString(m) } -func (*QueryIsOperatorForRequest) ProtoMessage() {} -func (*QueryIsOperatorForRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{34} -} -func (m *QueryIsOperatorForRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryIsOperatorForRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryIsOperatorForRequest.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 (c *queryClient) Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error) { + out := new(QueryContractResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Contract", in, out, opts...) + if err != nil { + return nil, err } + return out, nil } -func (m *QueryIsOperatorForRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsOperatorForRequest.Merge(m, src) -} -func (m *QueryIsOperatorForRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryIsOperatorForRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsOperatorForRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryIsOperatorForRequest proto.InternalMessageInfo -func (m *QueryIsOperatorForRequest) GetContractId() string { - if m != nil { - return m.ContractId +func (c *queryClient) TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error) { + out := new(QueryTokenClassTypeNameResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenClassTypeName", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -func (m *QueryIsOperatorForRequest) GetOperator() string { - if m != nil { - return m.Operator +func (c *queryClient) TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) { + out := new(QueryTokenTypeResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenType", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -func (m *QueryIsOperatorForRequest) GetHolder() string { - if m != nil { - return m.Holder +func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) { + out := new(QueryTokenResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Token", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -// QueryIsOperatorForResponse is the response type for the Query/IsOperatorFor RPC method. -type QueryIsOperatorForResponse struct { - Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` +func (c *queryClient) GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) { + out := new(QueryGranteeGrantsResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/GranteeGrants", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *QueryIsOperatorForResponse) Reset() { *m = QueryIsOperatorForResponse{} } -func (m *QueryIsOperatorForResponse) String() string { return proto.CompactTextString(m) } -func (*QueryIsOperatorForResponse) ProtoMessage() {} -func (*QueryIsOperatorForResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{35} -} -func (m *QueryIsOperatorForResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryIsOperatorForResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryIsOperatorForResponse.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 (c *queryClient) IsOperatorFor(ctx context.Context, in *QueryIsOperatorForRequest, opts ...grpc.CallOption) (*QueryIsOperatorForResponse, error) { + out := new(QueryIsOperatorForResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/IsOperatorFor", in, out, opts...) + if err != nil { + return nil, err } + return out, nil } -func (m *QueryIsOperatorForResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsOperatorForResponse.Merge(m, src) -} -func (m *QueryIsOperatorForResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryIsOperatorForResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsOperatorForResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryIsOperatorForResponse proto.InternalMessageInfo -func (m *QueryIsOperatorForResponse) GetAuthorized() bool { - if m != nil { - return m.Authorized +func (c *queryClient) HoldersByOperator(ctx context.Context, in *QueryHoldersByOperatorRequest, opts ...grpc.CallOption) (*QueryHoldersByOperatorResponse, error) { + out := new(QueryHoldersByOperatorResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/HoldersByOperator", in, out, opts...) + if err != nil { + return nil, err } - return false + return out, nil } -// QueryHoldersByOperatorRequest is the request type for the Query/HoldersByOperator RPC method. -type QueryHoldersByOperatorRequest struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +// QueryServer is the server API for Query service. +type QueryServer interface { + // Balance queries the balance of a single token class for a single account. + Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) + // AllBalances queries the balance of all token classes for a single account. + AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) + // FTSupply queries the number of tokens from a given contract id and token id. + FTSupply(context.Context, *QueryFTSupplyRequest) (*QueryFTSupplyResponse, error) + // FTMinted queries the number of minted tokens from a given contract id and token id. + FTMinted(context.Context, *QueryFTMintedRequest) (*QueryFTMintedResponse, error) + // FTBurnt queries the number of burnt tokens from a given contract id and token id. + FTBurnt(context.Context, *QueryFTBurntRequest) (*QueryFTBurntResponse, error) + // NFTSupply queries the number of tokens from a given contract id and token type. + NFTSupply(context.Context, *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) + // NFTMinted queries the number of minted tokens from a given contract id and token type. + NFTMinted(context.Context, *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error) + // NFTBurnt queries the number of burnt tokens from a given contract id and token type. + NFTBurnt(context.Context, *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error) + // Contract queries a contract metadata based on its contract id. + Contract(context.Context, *QueryContractRequest) (*QueryContractResponse, error) + // TokenClassTypeName queries the fully qualified message type name of a token class from its class id. + // + // Since: 0.46.0 (finschia) + TokenClassTypeName(context.Context, *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error) + // TokenType queries metadata of a token type. + TokenType(context.Context, *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) + // Token queries a metadata of a token from its token id. + Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) + // GranteeGrants queries all permissions on a given grantee. + GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) + // IsOperatorFor queries whether the operator is authorized by the holder. + IsOperatorFor(context.Context, *QueryIsOperatorForRequest) (*QueryIsOperatorForResponse, error) + // HoldersByOperator queries holders of a given operator. + HoldersByOperator(context.Context, *QueryHoldersByOperatorRequest) (*QueryHoldersByOperatorResponse, error) } -func (m *QueryHoldersByOperatorRequest) Reset() { *m = QueryHoldersByOperatorRequest{} } -func (m *QueryHoldersByOperatorRequest) String() string { return proto.CompactTextString(m) } -func (*QueryHoldersByOperatorRequest) ProtoMessage() {} -func (*QueryHoldersByOperatorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{36} +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { } -func (m *QueryHoldersByOperatorRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") } -func (m *QueryHoldersByOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryHoldersByOperatorRequest.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 (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllBalances not implemented") } -func (m *QueryHoldersByOperatorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryHoldersByOperatorRequest.Merge(m, src) +func (*UnimplementedQueryServer) FTSupply(ctx context.Context, req *QueryFTSupplyRequest) (*QueryFTSupplyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FTSupply not implemented") } -func (m *QueryHoldersByOperatorRequest) XXX_Size() int { - return m.Size() +func (*UnimplementedQueryServer) FTMinted(ctx context.Context, req *QueryFTMintedRequest) (*QueryFTMintedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FTMinted not implemented") } -func (m *QueryHoldersByOperatorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryHoldersByOperatorRequest.DiscardUnknown(m) +func (*UnimplementedQueryServer) FTBurnt(ctx context.Context, req *QueryFTBurntRequest) (*QueryFTBurntResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FTBurnt not implemented") } - -var xxx_messageInfo_QueryHoldersByOperatorRequest proto.InternalMessageInfo - -func (m *QueryHoldersByOperatorRequest) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" +func (*UnimplementedQueryServer) NFTSupply(ctx context.Context, req *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NFTSupply not implemented") } - -func (m *QueryHoldersByOperatorRequest) GetOperator() string { - if m != nil { - return m.Operator - } - return "" +func (*UnimplementedQueryServer) NFTMinted(ctx context.Context, req *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NFTMinted not implemented") } - -func (m *QueryHoldersByOperatorRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil +func (*UnimplementedQueryServer) NFTBurnt(ctx context.Context, req *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NFTBurnt not implemented") } - -// QueryHoldersByOperatorResponse is the response type for the Query/HoldersByOperator RPC method. -type QueryHoldersByOperatorResponse struct { - Holders []string `protobuf:"bytes,1,rep,name=holders,proto3" json:"holders,omitempty"` - // pagination defines the pagination in the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +func (*UnimplementedQueryServer) Contract(ctx context.Context, req *QueryContractRequest) (*QueryContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Contract not implemented") } - -func (m *QueryHoldersByOperatorResponse) Reset() { *m = QueryHoldersByOperatorResponse{} } -func (m *QueryHoldersByOperatorResponse) String() string { return proto.CompactTextString(m) } -func (*QueryHoldersByOperatorResponse) ProtoMessage() {} -func (*QueryHoldersByOperatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{37} +func (*UnimplementedQueryServer) TokenClassTypeName(ctx context.Context, req *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TokenClassTypeName not implemented") } -func (m *QueryHoldersByOperatorResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +func (*UnimplementedQueryServer) TokenType(ctx context.Context, req *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TokenType not implemented") } -func (m *QueryHoldersByOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryHoldersByOperatorResponse.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 (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") } -func (m *QueryHoldersByOperatorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryHoldersByOperatorResponse.Merge(m, src) +func (*UnimplementedQueryServer) GranteeGrants(ctx context.Context, req *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GranteeGrants not implemented") } -func (m *QueryHoldersByOperatorResponse) XXX_Size() int { - return m.Size() +func (*UnimplementedQueryServer) IsOperatorFor(ctx context.Context, req *QueryIsOperatorForRequest) (*QueryIsOperatorForResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsOperatorFor not implemented") } -func (m *QueryHoldersByOperatorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryHoldersByOperatorResponse.DiscardUnknown(m) +func (*UnimplementedQueryServer) HoldersByOperator(ctx context.Context, req *QueryHoldersByOperatorRequest) (*QueryHoldersByOperatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method HoldersByOperator not implemented") } -var xxx_messageInfo_QueryHoldersByOperatorResponse proto.InternalMessageInfo +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} -func (m *QueryHoldersByOperatorResponse) GetHolders() []string { - if m != nil { - return m.Holders +func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBalanceRequest) + if err := dec(in); err != nil { + return nil, err } - return nil + if interceptor == nil { + return srv.(QueryServer).Balance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Balance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryHoldersByOperatorResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination +func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllBalancesRequest) + if err := dec(in); err != nil { + return nil, err } - return nil + if interceptor == nil { + return srv.(QueryServer).AllBalances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/AllBalances", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AllBalances(ctx, req.(*QueryAllBalancesRequest)) + } + return interceptor(ctx, in, info, handler) } -func init() { - proto.RegisterType((*QueryBalanceRequest)(nil), "lbm.collection.v1.QueryBalanceRequest") - proto.RegisterType((*QueryBalanceResponse)(nil), "lbm.collection.v1.QueryBalanceResponse") - proto.RegisterType((*QueryAllBalancesRequest)(nil), "lbm.collection.v1.QueryAllBalancesRequest") - proto.RegisterType((*QueryAllBalancesResponse)(nil), "lbm.collection.v1.QueryAllBalancesResponse") - proto.RegisterType((*QueryFTSupplyRequest)(nil), "lbm.collection.v1.QueryFTSupplyRequest") - proto.RegisterType((*QueryFTSupplyResponse)(nil), "lbm.collection.v1.QueryFTSupplyResponse") - proto.RegisterType((*QueryFTMintedRequest)(nil), "lbm.collection.v1.QueryFTMintedRequest") - proto.RegisterType((*QueryFTMintedResponse)(nil), "lbm.collection.v1.QueryFTMintedResponse") - proto.RegisterType((*QueryFTBurntRequest)(nil), "lbm.collection.v1.QueryFTBurntRequest") - proto.RegisterType((*QueryFTBurntResponse)(nil), "lbm.collection.v1.QueryFTBurntResponse") - proto.RegisterType((*QueryNFTSupplyRequest)(nil), "lbm.collection.v1.QueryNFTSupplyRequest") - proto.RegisterType((*QueryNFTSupplyResponse)(nil), "lbm.collection.v1.QueryNFTSupplyResponse") - proto.RegisterType((*QueryNFTMintedRequest)(nil), "lbm.collection.v1.QueryNFTMintedRequest") - proto.RegisterType((*QueryNFTMintedResponse)(nil), "lbm.collection.v1.QueryNFTMintedResponse") - proto.RegisterType((*QueryNFTBurntRequest)(nil), "lbm.collection.v1.QueryNFTBurntRequest") - proto.RegisterType((*QueryNFTBurntResponse)(nil), "lbm.collection.v1.QueryNFTBurntResponse") - proto.RegisterType((*QueryContractRequest)(nil), "lbm.collection.v1.QueryContractRequest") - proto.RegisterType((*QueryContractResponse)(nil), "lbm.collection.v1.QueryContractResponse") - proto.RegisterType((*QueryTokenClassTypeNameRequest)(nil), "lbm.collection.v1.QueryTokenClassTypeNameRequest") - proto.RegisterType((*QueryTokenClassTypeNameResponse)(nil), "lbm.collection.v1.QueryTokenClassTypeNameResponse") - proto.RegisterType((*QueryTokenTypeRequest)(nil), "lbm.collection.v1.QueryTokenTypeRequest") - proto.RegisterType((*QueryTokenTypeResponse)(nil), "lbm.collection.v1.QueryTokenTypeResponse") - proto.RegisterType((*QueryTokenRequest)(nil), "lbm.collection.v1.QueryTokenRequest") - proto.RegisterType((*QueryTokenResponse)(nil), "lbm.collection.v1.QueryTokenResponse") - proto.RegisterType((*QueryRootRequest)(nil), "lbm.collection.v1.QueryRootRequest") - proto.RegisterType((*QueryRootResponse)(nil), "lbm.collection.v1.QueryRootResponse") - proto.RegisterType((*QueryHasParentRequest)(nil), "lbm.collection.v1.QueryHasParentRequest") - proto.RegisterType((*QueryHasParentResponse)(nil), "lbm.collection.v1.QueryHasParentResponse") - proto.RegisterType((*QueryParentRequest)(nil), "lbm.collection.v1.QueryParentRequest") - proto.RegisterType((*QueryParentResponse)(nil), "lbm.collection.v1.QueryParentResponse") - proto.RegisterType((*QueryChildrenRequest)(nil), "lbm.collection.v1.QueryChildrenRequest") - proto.RegisterType((*QueryChildrenResponse)(nil), "lbm.collection.v1.QueryChildrenResponse") - proto.RegisterType((*QueryGranteeGrantsRequest)(nil), "lbm.collection.v1.QueryGranteeGrantsRequest") - proto.RegisterType((*QueryGranteeGrantsResponse)(nil), "lbm.collection.v1.QueryGranteeGrantsResponse") - proto.RegisterType((*QueryIsOperatorForRequest)(nil), "lbm.collection.v1.QueryIsOperatorForRequest") - proto.RegisterType((*QueryIsOperatorForResponse)(nil), "lbm.collection.v1.QueryIsOperatorForResponse") - proto.RegisterType((*QueryHoldersByOperatorRequest)(nil), "lbm.collection.v1.QueryHoldersByOperatorRequest") - proto.RegisterType((*QueryHoldersByOperatorResponse)(nil), "lbm.collection.v1.QueryHoldersByOperatorResponse") -} - -func init() { proto.RegisterFile("lbm/collection/v1/query.proto", fileDescriptor_a09de688aac2ee73) } - -var fileDescriptor_a09de688aac2ee73 = []byte{ - // 1605 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xdf, 0x6f, 0xdb, 0x54, - 0x1b, 0xc7, 0xeb, 0xae, 0x3f, 0xd2, 0xa7, 0x9a, 0xf4, 0xee, 0xbc, 0xdd, 0x96, 0xf9, 0x5d, 0xd3, - 0xc9, 0xef, 0xd8, 0xef, 0xda, 0x6b, 0x18, 0x0c, 0xc4, 0xc6, 0x68, 0x42, 0xdb, 0x65, 0x63, 0x6d, - 0x97, 0x95, 0x21, 0xc6, 0x50, 0xe5, 0x24, 0x5e, 0x62, 0x2d, 0xf1, 0xc9, 0x6c, 0x67, 0xa2, 0xab, - 0x7a, 0x83, 0xc4, 0x3d, 0x88, 0xbb, 0x49, 0x70, 0x01, 0x48, 0x48, 0x08, 0x04, 0x48, 0x13, 0xe2, - 0x8a, 0xeb, 0x5d, 0x4e, 0xe3, 0x06, 0x71, 0x31, 0xa1, 0x8d, 0x3f, 0x82, 0x4b, 0xe4, 0x73, 0x9e, - 0xe3, 0x38, 0x4e, 0x9c, 0x1f, 0xad, 0x7b, 0xd5, 0xf8, 0xf8, 0x79, 0x1e, 0x7f, 0xce, 0xf7, 0x3c, - 0x3e, 0x3e, 0xdf, 0xc2, 0x74, 0xb5, 0x50, 0xd3, 0x8a, 0xb4, 0x5a, 0x35, 0x8a, 0xae, 0x49, 0x2d, - 0xed, 0xfe, 0x9c, 0x76, 0xaf, 0x61, 0xd8, 0x1b, 0x6a, 0xdd, 0xa6, 0x2e, 0x25, 0xfb, 0xaa, 0x85, - 0x9a, 0xda, 0xbc, 0xad, 0xde, 0x9f, 0x93, 0x4f, 0x15, 0xa9, 0x53, 0xa3, 0x8e, 0x56, 0xd0, 0x1d, - 0x83, 0xc7, 0x6a, 0xf7, 0xe7, 0x0a, 0x86, 0xab, 0xcf, 0x69, 0x75, 0xbd, 0x6c, 0x5a, 0x3a, 0x0b, - 0x64, 0xe9, 0xf2, 0xe1, 0x32, 0xa5, 0xe5, 0xaa, 0xa1, 0xe9, 0x75, 0x53, 0xd3, 0x2d, 0x8b, 0xba, - 0xec, 0xa6, 0x83, 0x77, 0x0f, 0xf1, 0x4a, 0xeb, 0xec, 0x4a, 0xe3, 0x17, 0x78, 0x4b, 0x69, 0xc7, - 0x0a, 0x50, 0x60, 0x3a, 0x16, 0x67, 0x57, 0x85, 0xc6, 0x1d, 0x4d, 0xb7, 0x10, 0x5b, 0x9e, 0x2a, - 0xd3, 0x32, 0xe5, 0x65, 0xbd, 0x5f, 0x7c, 0x54, 0xf9, 0x44, 0x82, 0xff, 0x5e, 0xf7, 0x80, 0x33, - 0x7a, 0x55, 0xb7, 0x8a, 0x46, 0xde, 0xb8, 0xd7, 0x30, 0x1c, 0x97, 0xcc, 0xc0, 0x64, 0x91, 0x5a, - 0xae, 0xad, 0x17, 0xdd, 0x75, 0xb3, 0x94, 0x94, 0x8e, 0x48, 0x27, 0x26, 0xf2, 0x20, 0x86, 0x72, - 0x25, 0x92, 0x86, 0x71, 0xbd, 0x54, 0xb2, 0x0d, 0xc7, 0x49, 0x0e, 0x7b, 0x37, 0x33, 0xc9, 0xa7, - 0x8f, 0x66, 0xa7, 0x10, 0x78, 0x9e, 0xdf, 0xb9, 0xe1, 0xda, 0xa6, 0x55, 0xce, 0x8b, 0x40, 0x72, - 0x08, 0x12, 0x2e, 0xbd, 0x6b, 0x58, 0x5e, 0xc5, 0x3d, 0xac, 0xe2, 0x38, 0xbb, 0xce, 0x95, 0x94, - 0x15, 0x98, 0x6a, 0xc5, 0x70, 0xea, 0xd4, 0x72, 0x0c, 0x72, 0x1e, 0xc6, 0x0b, 0x7c, 0x88, 0x31, - 0x4c, 0xa6, 0x0f, 0xaa, 0x6d, 0xf2, 0xab, 0x59, 0x6a, 0x5a, 0x99, 0x91, 0xc7, 0xcf, 0x66, 0x86, - 0xf2, 0x22, 0x5a, 0xf9, 0x45, 0x82, 0x83, 0xac, 0xe2, 0x7c, 0xb5, 0x8a, 0x45, 0x9d, 0x5d, 0x9d, - 0xdc, 0x22, 0x40, 0x73, 0xad, 0xd9, 0xf4, 0x26, 0xd3, 0xc7, 0x54, 0xcc, 0xf1, 0x1a, 0x43, 0xe5, - 0x4d, 0x84, 0x8d, 0xa1, 0xae, 0xea, 0x65, 0xa1, 0x76, 0x3e, 0x90, 0xa9, 0x7c, 0x29, 0x41, 0xb2, - 0x1d, 0x1c, 0xe5, 0x78, 0x1d, 0x12, 0x38, 0x41, 0x27, 0x29, 0x1d, 0xd9, 0xd3, 0x5b, 0x0f, 0x3f, - 0x9c, 0x2c, 0xb5, 0xf0, 0x0d, 0x33, 0xbe, 0xe3, 0x3d, 0xf9, 0xf8, 0x73, 0x5b, 0x00, 0xf3, 0xb8, - 0x54, 0x8b, 0x6b, 0x37, 0x1a, 0xf5, 0x7a, 0x75, 0xa3, 0x6f, 0x55, 0x83, 0xcb, 0x3f, 0xdc, 0xba, - 0xfc, 0xb7, 0x61, 0x7f, 0xa8, 0x26, 0x4e, 0x38, 0x0b, 0x63, 0x0e, 0x1b, 0xe1, 0xf5, 0x32, 0xa7, - 0xbd, 0x59, 0xfd, 0xf9, 0x6c, 0x66, 0x3f, 0x07, 0x77, 0x4a, 0x77, 0x55, 0x93, 0x6a, 0x35, 0xdd, - 0xad, 0xa8, 0x39, 0xcb, 0x7d, 0xfa, 0x68, 0x16, 0x70, 0x46, 0x39, 0xcb, 0xcd, 0x63, 0x6a, 0x80, - 0xf8, 0x9a, 0x69, 0xb9, 0x46, 0x29, 0x5e, 0x62, 0x51, 0xb3, 0x49, 0x5c, 0x63, 0x23, 0xdb, 0x22, - 0xe6, 0xa9, 0xca, 0x75, 0x7c, 0x2b, 0x17, 0xd7, 0x32, 0x0d, 0xdb, 0x72, 0xe3, 0x00, 0x7e, 0xdf, - 0x17, 0x01, 0x4b, 0x22, 0xef, 0x3c, 0x8c, 0x16, 0xbc, 0x81, 0xed, 0xe0, 0xf2, 0x4c, 0xe5, 0x3d, - 0xd4, 0x62, 0x79, 0xe0, 0x96, 0x98, 0x06, 0xe0, 0xbc, 0xee, 0x46, 0xdd, 0x40, 0xe2, 0x09, 0x36, - 0xb2, 0xb6, 0x51, 0x37, 0x94, 0x0f, 0xe1, 0x40, 0xb8, 0x70, 0x9c, 0x7d, 0x11, 0xe0, 0x1e, 0xb0, - 0x31, 0xfa, 0xe7, 0xde, 0x8d, 0xee, 0xb8, 0x89, 0x4b, 0xb9, 0x3c, 0x68, 0x7b, 0xf4, 0xc0, 0xbe, - 0xd5, 0xd4, 0x23, 0xf6, 0x1e, 0x39, 0x8f, 0xcc, 0x59, 0xa4, 0xe9, 0x97, 0x59, 0xb9, 0x89, 0x50, - 0xcd, 0x44, 0x84, 0xba, 0x08, 0x09, 0x11, 0x86, 0xdf, 0x86, 0xff, 0x75, 0xdc, 0x0b, 0x79, 0x88, - 0xd8, 0x0f, 0x45, 0x8a, 0x72, 0x1b, 0x52, 0xac, 0xee, 0x9a, 0x37, 0xfd, 0x6c, 0x55, 0x77, 0x1c, - 0x4f, 0x83, 0x65, 0xbd, 0x66, 0x0c, 0xf2, 0xb6, 0x15, 0xbd, 0xc4, 0xc0, 0xdb, 0xc6, 0xae, 0x73, - 0x25, 0xe5, 0x15, 0x98, 0x89, 0xac, 0x8e, 0xfc, 0x04, 0x46, 0x2c, 0xbd, 0x66, 0x60, 0x5d, 0xf6, - 0xdb, 0xef, 0xc8, 0x35, 0xb1, 0x26, 0x71, 0x2d, 0xed, 0x07, 0xd8, 0x91, 0x81, 0xc2, 0xfe, 0xda, - 0x06, 0x13, 0xb9, 0x90, 0x87, 0x3b, 0x08, 0xe9, 0x67, 0xa2, 0x92, 0x81, 0xe2, 0x2b, 0xb0, 0xaf, - 0x59, 0x3c, 0x8e, 0xbd, 0x6a, 0x11, 0x48, 0xb0, 0x20, 0x92, 0x9e, 0x85, 0x51, 0x16, 0x80, 0x90, - 0x53, 0x2a, 0x3f, 0xec, 0xa8, 0xe2, 0xb0, 0xa3, 0xce, 0x5b, 0x1b, 0x08, 0xc7, 0x03, 0x95, 0x65, - 0xf8, 0x0f, 0xab, 0x93, 0xa7, 0x34, 0x96, 0x3d, 0x74, 0x01, 0x27, 0xca, 0xeb, 0xf9, 0x58, 0x23, - 0x36, 0xa5, 0xa2, 0x07, 0x0f, 0x74, 0x90, 0xce, 0x7b, 0x9f, 0x38, 0x17, 0x8b, 0x54, 0x6e, 0xe0, - 0x2a, 0x5f, 0xd6, 0x9d, 0x55, 0xdd, 0x36, 0xe2, 0xd9, 0xdf, 0xcf, 0xe3, 0x0a, 0x07, 0x8a, 0x22, - 0xe0, 0x34, 0x40, 0x45, 0x77, 0xd6, 0xeb, 0x6c, 0x94, 0x15, 0x4d, 0xe4, 0x27, 0x2a, 0x22, 0x4c, - 0x59, 0x45, 0xb1, 0xe3, 0x43, 0xb9, 0x8a, 0x5f, 0xaf, 0x10, 0xc7, 0x39, 0x18, 0x0b, 0x30, 0xf4, - 0x92, 0x0a, 0x63, 0x95, 0x87, 0x92, 0xd8, 0x39, 0x2a, 0x66, 0xb5, 0x64, 0xc7, 0xd2, 0x60, 0xb1, - 0x1d, 0xd6, 0x1e, 0x4a, 0x62, 0x77, 0xf2, 0xe1, 0x70, 0xb2, 0xaf, 0x41, 0xa2, 0x88, 0x63, 0x78, - 0x52, 0xeb, 0x3e, 0x5d, 0x3f, 0x3a, 0xbe, 0x83, 0xda, 0xaf, 0x12, 0x1c, 0x62, 0x70, 0x4b, 0xb6, - 0x6e, 0xb9, 0x86, 0xc1, 0xfe, 0x0c, 0x74, 0x08, 0x2e, 0xf3, 0xc4, 0xde, 0x87, 0x60, 0x0c, 0x8c, - 0x4d, 0xd7, 0x2f, 0x24, 0x90, 0x3b, 0xa1, 0xa3, 0xb8, 0xaf, 0xc2, 0x18, 0x7b, 0xa2, 0x38, 0x04, - 0x27, 0x3b, 0x48, 0xcb, 0x52, 0x44, 0x2f, 0xf1, 0xe8, 0xf8, 0xa4, 0xfd, 0x46, 0x48, 0x9b, 0x73, - 0x56, 0xea, 0x86, 0xad, 0xbb, 0xd4, 0x5e, 0xa4, 0x76, 0xdf, 0xd2, 0x9e, 0x83, 0x04, 0xc5, 0xb4, - 0x9e, 0xda, 0xfa, 0x91, 0xe4, 0x2c, 0x8c, 0x55, 0x68, 0xb5, 0x64, 0xd8, 0xdc, 0x3c, 0x75, 0xc9, - 0xc1, 0x38, 0xe5, 0x02, 0xaa, 0x18, 0xa2, 0x44, 0x15, 0x53, 0x00, 0x7a, 0xc3, 0xad, 0x50, 0xdb, - 0x7c, 0x80, 0xe7, 0x91, 0x44, 0x3e, 0x30, 0xa2, 0xfc, 0x26, 0xc1, 0x34, 0xdf, 0x52, 0x58, 0x35, - 0x27, 0xb3, 0x21, 0xaa, 0xec, 0xf2, 0x44, 0x63, 0xec, 0xa2, 0x54, 0xd4, 0x04, 0x50, 0x83, 0x34, - 0x8c, 0x73, 0xad, 0x78, 0x2b, 0x75, 0x6d, 0x72, 0x0c, 0x8c, 0xad, 0x8b, 0xd2, 0xff, 0x24, 0x61, - 0x94, 0xf1, 0x91, 0xef, 0x25, 0x18, 0x47, 0xb3, 0x47, 0x8e, 0x75, 0x68, 0xe6, 0x0e, 0x16, 0x5d, - 0x3e, 0xde, 0x33, 0x8e, 0x3f, 0x52, 0x59, 0xfd, 0xf8, 0xf7, 0xbf, 0x3f, 0x1f, 0xbe, 0x42, 0x2e, - 0x6b, 0x9d, 0xfe, 0x83, 0xc0, 0xd7, 0xca, 0xd1, 0x36, 0x03, 0x2b, 0xb9, 0xa5, 0x09, 0xdb, 0xa8, - 0x6d, 0xa2, 0xbf, 0xdd, 0xd2, 0x36, 0xc5, 0x66, 0xba, 0x45, 0x7e, 0x90, 0x60, 0x32, 0x60, 0x4f, - 0xc9, 0xa9, 0x28, 0x94, 0x76, 0xf3, 0x2d, 0x9f, 0xee, 0x2b, 0x16, 0xd1, 0x17, 0x18, 0xfa, 0x25, - 0x72, 0x71, 0x47, 0xe8, 0xe4, 0x5b, 0x09, 0x12, 0xc2, 0x42, 0x90, 0x48, 0xdd, 0x42, 0xee, 0x45, - 0x3e, 0xd1, 0x3b, 0x10, 0x31, 0x2f, 0x33, 0xcc, 0x0c, 0x79, 0x6b, 0x00, 0xcc, 0x3b, 0xde, 0x88, - 0x2f, 0xa9, 0xc6, 0x2d, 0x09, 0x92, 0x72, 0xd3, 0xd0, 0x8d, 0xb4, 0xc5, 0xaf, 0x74, 0x23, 0x6d, - 0xf5, 0x1f, 0x71, 0x90, 0x72, 0x13, 0x42, 0xbe, 0x96, 0x60, 0x1c, 0x7d, 0x42, 0x74, 0xcb, 0xb6, - 0x1a, 0x14, 0xf9, 0x78, 0xcf, 0x38, 0xc4, 0x5c, 0x62, 0x98, 0xf3, 0xe4, 0xd2, 0xf6, 0x31, 0x99, - 0xed, 0x20, 0x8f, 0x24, 0x98, 0xf0, 0xdd, 0x23, 0x89, 0xd4, 0x29, 0xec, 0x5c, 0xe5, 0x93, 0x7d, - 0x44, 0x22, 0x6b, 0x9e, 0xb1, 0xbe, 0x43, 0xae, 0x0c, 0xc0, 0xda, 0x3c, 0x71, 0xfb, 0xcc, 0xde, - 0x85, 0xdf, 0x06, 0x88, 0x8d, 0x7d, 0xd0, 0x0d, 0xbb, 0xb5, 0x11, 0x4e, 0xf6, 0x11, 0xb9, 0x1b, - 0xd8, 0xd8, 0x13, 0x3f, 0x49, 0x90, 0x10, 0xe6, 0x31, 0xba, 0x7b, 0x43, 0xb6, 0x55, 0x3e, 0xd1, - 0x3b, 0x10, 0x99, 0xaf, 0x33, 0xe6, 0xab, 0x24, 0x17, 0x07, 0x33, 0x6f, 0x90, 0xcf, 0x24, 0x48, - 0x08, 0x8f, 0x18, 0x8d, 0x1c, 0x72, 0xad, 0xd1, 0xc8, 0x61, 0x97, 0xaa, 0xa4, 0x19, 0xf2, 0x19, - 0x72, 0xaa, 0x7f, 0x64, 0xf2, 0x54, 0x02, 0xd2, 0x6e, 0x1c, 0xc9, 0x5c, 0xd4, 0x43, 0x23, 0x2d, - 0xac, 0x9c, 0x1e, 0x24, 0x05, 0x89, 0xdf, 0x65, 0xc4, 0x2b, 0xe4, 0xda, 0xc0, 0x22, 0x33, 0xf3, - 0xeb, 0xc9, 0x2c, 0x5c, 0xf1, 0x96, 0xe6, 0x49, 0xbd, 0xee, 0x59, 0x5b, 0xef, 0x9b, 0x31, 0xe1, - 0x7b, 0xc8, 0xe8, 0x96, 0x0e, 0x3b, 0xdf, 0xe8, 0x96, 0x6e, 0xb3, 0xb2, 0xca, 0x55, 0x46, 0xbe, - 0x40, 0xb2, 0x31, 0xb4, 0x07, 0x79, 0x28, 0xc1, 0x28, 0x7b, 0x04, 0x39, 0xda, 0x95, 0x40, 0x70, - 0xbe, 0xd4, 0x23, 0x0a, 0x19, 0xdf, 0x66, 0x8c, 0x6f, 0x92, 0x0b, 0x83, 0x32, 0x06, 0x37, 0x37, - 0x0f, 0x6e, 0xc4, 0x33, 0xa1, 0xe4, 0xff, 0x51, 0x4f, 0x0d, 0x58, 0x5e, 0xf9, 0x68, 0xf7, 0xa0, - 0x1d, 0xec, 0xb9, 0x56, 0x68, 0xd3, 0xf5, 0xec, 0x2d, 0xf9, 0x51, 0x82, 0x09, 0xdf, 0x85, 0x46, - 0xaf, 0x74, 0xd8, 0xfd, 0x46, 0xaf, 0x74, 0x9b, 0xa5, 0x55, 0xae, 0x31, 0xd6, 0x25, 0xb2, 0xb0, - 0x03, 0xd6, 0xa6, 0x27, 0x26, 0x5f, 0x49, 0x30, 0x86, 0xb8, 0x91, 0xcb, 0xd8, 0xca, 0x7a, 0xac, - 0x57, 0x18, 0x82, 0xe6, 0x18, 0x68, 0x96, 0xcc, 0xef, 0x00, 0x14, 0x21, 0xbf, 0xf3, 0x76, 0x2a, - 0x61, 0x12, 0xa3, 0x77, 0xaa, 0x56, 0x97, 0xdc, 0x65, 0xa7, 0x0a, 0x39, 0xd6, 0x6d, 0xbd, 0x3d, - 0x61, 0x54, 0xdf, 0xc4, 0xfe, 0x2c, 0xc1, 0xde, 0x16, 0xef, 0x46, 0xce, 0x44, 0x81, 0x74, 0x72, - 0xa7, 0xf2, 0x6c, 0x9f, 0xd1, 0xc8, 0x9e, 0x65, 0xec, 0x17, 0xc9, 0x1b, 0x03, 0xb0, 0x73, 0x4f, - 0xa8, 0x6d, 0xa2, 0x77, 0xdd, 0x22, 0x16, 0xec, 0x6d, 0x31, 0x4a, 0xd1, 0xc8, 0x9d, 0x5c, 0x5f, - 0x34, 0x72, 0x47, 0xf7, 0xa5, 0x0c, 0x91, 0x07, 0xb0, 0xaf, 0xcd, 0x98, 0x90, 0xb3, 0x91, 0x2f, - 0x41, 0x84, 0x09, 0x93, 0xe7, 0x06, 0xc8, 0x10, 0xcf, 0xce, 0x2c, 0x3d, 0x7e, 0x9e, 0x92, 0x9e, - 0x3c, 0x4f, 0x49, 0x7f, 0x3d, 0x4f, 0x49, 0x9f, 0xbe, 0x48, 0x0d, 0x3d, 0x79, 0x91, 0x1a, 0xfa, - 0xe3, 0x45, 0x6a, 0xe8, 0xd6, 0x6c, 0xd9, 0x74, 0x2b, 0x8d, 0x82, 0x5a, 0xa4, 0x35, 0x6d, 0xd1, - 0xb4, 0x9c, 0x62, 0xc5, 0xd4, 0xb5, 0x3b, 0xf8, 0x63, 0xd6, 0x29, 0xdd, 0xd5, 0x3e, 0x0a, 0x08, - 0x5c, 0x18, 0x63, 0xff, 0x7d, 0x7b, 0xf9, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x04, 0x31, - 0xe2, 0x35, 0x1d, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Balance queries the balance of a single token class for a single account. - Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) - // AllBalances queries the balance of all token classes for a single account. - AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) - // FTSupply queries the number of tokens from a given contract id and token id. - FTSupply(ctx context.Context, in *QueryFTSupplyRequest, opts ...grpc.CallOption) (*QueryFTSupplyResponse, error) - // FTMinted queries the number of minted tokens from a given contract id and token id. - FTMinted(ctx context.Context, in *QueryFTMintedRequest, opts ...grpc.CallOption) (*QueryFTMintedResponse, error) - // FTBurnt queries the number of burnt tokens from a given contract id and token id. - FTBurnt(ctx context.Context, in *QueryFTBurntRequest, opts ...grpc.CallOption) (*QueryFTBurntResponse, error) - // NFTSupply queries the number of tokens from a given contract id and token type. - NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error) - // NFTMinted queries the number of minted tokens from a given contract id and token type. - NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error) - // NFTBurnt queries the number of burnt tokens from a given contract id and token type. - NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error) - // Contract queries a contract metadata based on its contract id. - Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error) - // TokenClassTypeName queries the fully qualified message type name of a token class from its class id. - // - // Since: 0.46.0 (finschia) - TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error) - // TokenType queries metadata of a token type. - TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) - // Token queries a metadata of a token from its token id. - Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) - // Root queries the root of a given nft. - Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error) - // HasParent queries whether a given nft has its parent. - HasParent(ctx context.Context, in *QueryHasParentRequest, opts ...grpc.CallOption) (*QueryHasParentResponse, error) - // Parent queries the parent of a given nft. - Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error) - // Children queries the children of a given nft. - Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error) - // GranteeGrants queries all permissions on a given grantee. - GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) - // IsOperatorFor queries whether the operator is authorized by the holder. - IsOperatorFor(ctx context.Context, in *QueryIsOperatorForRequest, opts ...grpc.CallOption) (*QueryIsOperatorForResponse, error) - // HoldersByOperator queries holders of a given operator. - HoldersByOperator(ctx context.Context, in *QueryHoldersByOperatorRequest, opts ...grpc.CallOption) (*QueryHoldersByOperatorResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { - out := new(QueryBalanceResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Balance", in, out, opts...) - if err != nil { +func _Query_FTSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFTSupplyRequest) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) { - out := new(QueryAllBalancesResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/AllBalances", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(QueryServer).FTSupply(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/FTSupply", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).FTSupply(ctx, req.(*QueryFTSupplyRequest)) + } + return interceptor(ctx, in, info, handler) } -func (c *queryClient) FTSupply(ctx context.Context, in *QueryFTSupplyRequest, opts ...grpc.CallOption) (*QueryFTSupplyResponse, error) { - out := new(QueryFTSupplyResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTSupply", in, out, opts...) - if err != nil { +func _Query_FTMinted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFTMintedRequest) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(QueryServer).FTMinted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/FTMinted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).FTMinted(ctx, req.(*QueryFTMintedRequest)) + } + return interceptor(ctx, in, info, handler) } -func (c *queryClient) FTMinted(ctx context.Context, in *QueryFTMintedRequest, opts ...grpc.CallOption) (*QueryFTMintedResponse, error) { - out := new(QueryFTMintedResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTMinted", in, out, opts...) - if err != nil { +func _Query_FTBurnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFTBurntRequest) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(QueryServer).FTBurnt(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/FTBurnt", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).FTBurnt(ctx, req.(*QueryFTBurntRequest)) + } + return interceptor(ctx, in, info, handler) } -func (c *queryClient) FTBurnt(ctx context.Context, in *QueryFTBurntRequest, opts ...grpc.CallOption) (*QueryFTBurntResponse, error) { - out := new(QueryFTBurntResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTBurnt", in, out, opts...) - if err != nil { +func _Query_NFTSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNFTSupplyRequest) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(QueryServer).NFTSupply(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/NFTSupply", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NFTSupply(ctx, req.(*QueryNFTSupplyRequest)) + } + return interceptor(ctx, in, info, handler) } -func (c *queryClient) NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error) { - out := new(QueryNFTSupplyResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTSupply", in, out, opts...) - if err != nil { +func _Query_NFTMinted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNFTMintedRequest) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(QueryServer).NFTMinted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/NFTMinted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NFTMinted(ctx, req.(*QueryNFTMintedRequest)) + } + return interceptor(ctx, in, info, handler) } -func (c *queryClient) NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error) { - out := new(QueryNFTMintedResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTMinted", in, out, opts...) - if err != nil { +func _Query_NFTBurnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNFTBurntRequest) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(QueryServer).NFTBurnt(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/NFTBurnt", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NFTBurnt(ctx, req.(*QueryNFTBurntRequest)) + } + return interceptor(ctx, in, info, handler) } -func (c *queryClient) NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error) { - out := new(QueryNFTBurntResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTBurnt", in, out, opts...) - if err != nil { +func _Query_Contract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryContractRequest) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(QueryServer).Contract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Contract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Contract(ctx, req.(*QueryContractRequest)) + } + return interceptor(ctx, in, info, handler) } -func (c *queryClient) Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error) { - out := new(QueryContractResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Contract", in, out, opts...) - if err != nil { +func _Query_TokenClassTypeName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenClassTypeNameRequest) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(QueryServer).TokenClassTypeName(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/TokenClassTypeName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TokenClassTypeName(ctx, req.(*QueryTokenClassTypeNameRequest)) + } + return interceptor(ctx, in, info, handler) } -func (c *queryClient) TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error) { - out := new(QueryTokenClassTypeNameResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenClassTypeName", in, out, opts...) - if err != nil { +func _Query_TokenType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenTypeRequest) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(QueryServer).TokenType(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/TokenType", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TokenType(ctx, req.(*QueryTokenTypeRequest)) + } + return interceptor(ctx, in, info, handler) } -func (c *queryClient) TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) { - out := new(QueryTokenTypeResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenType", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) { - out := new(QueryTokenResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Token", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error) { - out := new(QueryRootResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Root", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) HasParent(ctx context.Context, in *QueryHasParentRequest, opts ...grpc.CallOption) (*QueryHasParentResponse, error) { - out := new(QueryHasParentResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/HasParent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error) { - out := new(QueryParentResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Parent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error) { - out := new(QueryChildrenResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Children", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) { - out := new(QueryGranteeGrantsResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/GranteeGrants", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) IsOperatorFor(ctx context.Context, in *QueryIsOperatorForRequest, opts ...grpc.CallOption) (*QueryIsOperatorForResponse, error) { - out := new(QueryIsOperatorForResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/IsOperatorFor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) HoldersByOperator(ctx context.Context, in *QueryHoldersByOperatorRequest, opts ...grpc.CallOption) (*QueryHoldersByOperatorResponse, error) { - out := new(QueryHoldersByOperatorResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/HoldersByOperator", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // Balance queries the balance of a single token class for a single account. - Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) - // AllBalances queries the balance of all token classes for a single account. - AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) - // FTSupply queries the number of tokens from a given contract id and token id. - FTSupply(context.Context, *QueryFTSupplyRequest) (*QueryFTSupplyResponse, error) - // FTMinted queries the number of minted tokens from a given contract id and token id. - FTMinted(context.Context, *QueryFTMintedRequest) (*QueryFTMintedResponse, error) - // FTBurnt queries the number of burnt tokens from a given contract id and token id. - FTBurnt(context.Context, *QueryFTBurntRequest) (*QueryFTBurntResponse, error) - // NFTSupply queries the number of tokens from a given contract id and token type. - NFTSupply(context.Context, *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) - // NFTMinted queries the number of minted tokens from a given contract id and token type. - NFTMinted(context.Context, *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error) - // NFTBurnt queries the number of burnt tokens from a given contract id and token type. - NFTBurnt(context.Context, *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error) - // Contract queries a contract metadata based on its contract id. - Contract(context.Context, *QueryContractRequest) (*QueryContractResponse, error) - // TokenClassTypeName queries the fully qualified message type name of a token class from its class id. - // - // Since: 0.46.0 (finschia) - TokenClassTypeName(context.Context, *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error) - // TokenType queries metadata of a token type. - TokenType(context.Context, *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) - // Token queries a metadata of a token from its token id. - Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) - // Root queries the root of a given nft. - Root(context.Context, *QueryRootRequest) (*QueryRootResponse, error) - // HasParent queries whether a given nft has its parent. - HasParent(context.Context, *QueryHasParentRequest) (*QueryHasParentResponse, error) - // Parent queries the parent of a given nft. - Parent(context.Context, *QueryParentRequest) (*QueryParentResponse, error) - // Children queries the children of a given nft. - Children(context.Context, *QueryChildrenRequest) (*QueryChildrenResponse, error) - // GranteeGrants queries all permissions on a given grantee. - GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) - // IsOperatorFor queries whether the operator is authorized by the holder. - IsOperatorFor(context.Context, *QueryIsOperatorForRequest) (*QueryIsOperatorForResponse, error) - // HoldersByOperator queries holders of a given operator. - HoldersByOperator(context.Context, *QueryHoldersByOperatorRequest) (*QueryHoldersByOperatorResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") -} -func (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AllBalances not implemented") -} -func (*UnimplementedQueryServer) FTSupply(ctx context.Context, req *QueryFTSupplyRequest) (*QueryFTSupplyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FTSupply not implemented") -} -func (*UnimplementedQueryServer) FTMinted(ctx context.Context, req *QueryFTMintedRequest) (*QueryFTMintedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FTMinted not implemented") -} -func (*UnimplementedQueryServer) FTBurnt(ctx context.Context, req *QueryFTBurntRequest) (*QueryFTBurntResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FTBurnt not implemented") -} -func (*UnimplementedQueryServer) NFTSupply(ctx context.Context, req *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NFTSupply not implemented") -} -func (*UnimplementedQueryServer) NFTMinted(ctx context.Context, req *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NFTMinted not implemented") -} -func (*UnimplementedQueryServer) NFTBurnt(ctx context.Context, req *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NFTBurnt not implemented") -} -func (*UnimplementedQueryServer) Contract(ctx context.Context, req *QueryContractRequest) (*QueryContractResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Contract not implemented") -} -func (*UnimplementedQueryServer) TokenClassTypeName(ctx context.Context, req *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TokenClassTypeName not implemented") -} -func (*UnimplementedQueryServer) TokenType(ctx context.Context, req *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TokenType not implemented") -} -func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") -} -func (*UnimplementedQueryServer) Root(ctx context.Context, req *QueryRootRequest) (*QueryRootResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Root not implemented") -} -func (*UnimplementedQueryServer) HasParent(ctx context.Context, req *QueryHasParentRequest) (*QueryHasParentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HasParent not implemented") -} -func (*UnimplementedQueryServer) Parent(ctx context.Context, req *QueryParentRequest) (*QueryParentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Parent not implemented") -} -func (*UnimplementedQueryServer) Children(ctx context.Context, req *QueryChildrenRequest) (*QueryChildrenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Children not implemented") -} -func (*UnimplementedQueryServer) GranteeGrants(ctx context.Context, req *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GranteeGrants not implemented") -} -func (*UnimplementedQueryServer) IsOperatorFor(ctx context.Context, req *QueryIsOperatorForRequest) (*QueryIsOperatorForResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsOperatorFor not implemented") -} -func (*UnimplementedQueryServer) HoldersByOperator(ctx context.Context, req *QueryHoldersByOperatorRequest) (*QueryHoldersByOperatorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HoldersByOperator not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryBalanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Balance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/Balance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllBalancesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).AllBalances(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/AllBalances", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AllBalances(ctx, req.(*QueryAllBalancesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_FTSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryFTSupplyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).FTSupply(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/FTSupply", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).FTSupply(ctx, req.(*QueryFTSupplyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_FTMinted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryFTMintedRequest) - if err := dec(in); err != nil { +func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenRequest) + if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).FTMinted(ctx, in) + return srv.(QueryServer).Token(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/lbm.collection.v1.Query/FTMinted", + FullMethod: "/lbm.collection.v1.Query/Token", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).FTMinted(ctx, req.(*QueryFTMintedRequest)) + return srv.(QueryServer).Token(ctx, req.(*QueryTokenRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_FTBurnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryFTBurntRequest) +func _Query_GranteeGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGranteeGrantsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).FTBurnt(ctx, in) + return srv.(QueryServer).GranteeGrants(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/lbm.collection.v1.Query/FTBurnt", + FullMethod: "/lbm.collection.v1.Query/GranteeGrants", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).FTBurnt(ctx, req.(*QueryFTBurntRequest)) + return srv.(QueryServer).GranteeGrants(ctx, req.(*QueryGranteeGrantsRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_NFTSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryNFTSupplyRequest) +func _Query_IsOperatorFor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryIsOperatorForRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).NFTSupply(ctx, in) + return srv.(QueryServer).IsOperatorFor(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/lbm.collection.v1.Query/NFTSupply", + FullMethod: "/lbm.collection.v1.Query/IsOperatorFor", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).NFTSupply(ctx, req.(*QueryNFTSupplyRequest)) + return srv.(QueryServer).IsOperatorFor(ctx, req.(*QueryIsOperatorForRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_NFTMinted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryNFTMintedRequest) +func _Query_HoldersByOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryHoldersByOperatorRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).NFTMinted(ctx, in) + return srv.(QueryServer).HoldersByOperator(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/lbm.collection.v1.Query/NFTMinted", + FullMethod: "/lbm.collection.v1.Query/HoldersByOperator", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).NFTMinted(ctx, req.(*QueryNFTMintedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_NFTBurnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryNFTBurntRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).NFTBurnt(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/NFTBurnt", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).NFTBurnt(ctx, req.(*QueryNFTBurntRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Contract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryContractRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Contract(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/Contract", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Contract(ctx, req.(*QueryContractRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_TokenClassTypeName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokenClassTypeNameRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).TokenClassTypeName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/TokenClassTypeName", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).TokenClassTypeName(ctx, req.(*QueryTokenClassTypeNameRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_TokenType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokenTypeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).TokenType(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/TokenType", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).TokenType(ctx, req.(*QueryTokenTypeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Token(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/Token", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Token(ctx, req.(*QueryTokenRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Root_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRootRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Root(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/Root", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Root(ctx, req.(*QueryRootRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_HasParent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryHasParentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).HasParent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/HasParent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).HasParent(ctx, req.(*QueryHasParentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Parent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Parent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/Parent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Parent(ctx, req.(*QueryParentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Children_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryChildrenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Children(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/Children", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Children(ctx, req.(*QueryChildrenRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GranteeGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGranteeGrantsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GranteeGrants(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/GranteeGrants", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GranteeGrants(ctx, req.(*QueryGranteeGrantsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_IsOperatorFor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryIsOperatorForRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).IsOperatorFor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/IsOperatorFor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).IsOperatorFor(ctx, req.(*QueryIsOperatorForRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_HoldersByOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryHoldersByOperatorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).HoldersByOperator(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Query/HoldersByOperator", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).HoldersByOperator(ctx, req.(*QueryHoldersByOperatorRequest)) + return srv.(QueryServer).HoldersByOperator(ctx, req.(*QueryHoldersByOperatorRequest)) } return interceptor(ctx, in, info, handler) } @@ -2882,22 +2300,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "Token", Handler: _Query_Token_Handler, }, - { - MethodName: "Root", - Handler: _Query_Root_Handler, - }, - { - MethodName: "HasParent", - Handler: _Query_HasParent_Handler, - }, - { - MethodName: "Parent", - Handler: _Query_Parent_Handler, - }, - { - MethodName: "Children", - Handler: _Query_Children_Handler, - }, { MethodName: "GranteeGrants", Handler: _Query_GranteeGrants_Handler, @@ -3780,7 +3182,7 @@ func (m *QueryTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryRootRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryGranteeGrantsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3790,20 +3192,32 @@ func (m *QueryRootRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryRootRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGranteeGrantsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryRootRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGranteeGrantsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee))) i-- dAtA[i] = 0x12 } @@ -3817,7 +3231,7 @@ func (m *QueryRootRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryRootResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryGranteeGrantsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3827,67 +3241,46 @@ func (m *QueryRootResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryRootResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGranteeGrantsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryRootResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGranteeGrantsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size, err := m.Root.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryHasParentRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + i-- + dAtA[i] = 0x12 } - return dAtA[:n], nil -} - -func (m *QueryHasParentRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryHasParentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + if len(m.Grants) > 0 { + for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *QueryHasParentResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryIsOperatorForRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3897,53 +3290,27 @@ func (m *QueryHasParentResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryHasParentResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryIsOperatorForRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryHasParentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryIsOperatorForRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.HasParent { - i-- - if m.HasParent { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Holder))) i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryParentRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + dAtA[i] = 0x1a } - return dAtA[:n], nil -} - -func (m *QueryParentRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator))) i-- dAtA[i] = 0x12 } @@ -3957,7 +3324,7 @@ func (m *QueryParentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryParentResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryIsOperatorForResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3967,30 +3334,30 @@ func (m *QueryParentResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryParentResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryIsOperatorForResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryParentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryIsOperatorForResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size, err := m.Parent.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.Authorized { + i-- + if m.Authorized { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x8 } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryChildrenRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryHoldersByOperatorRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4000,12 +3367,12 @@ func (m *QueryChildrenRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryChildrenRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryHoldersByOperatorRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryChildrenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryHoldersByOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4022,10 +3389,10 @@ func (m *QueryChildrenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator))) i-- dAtA[i] = 0x12 } @@ -4039,7 +3406,7 @@ func (m *QueryChildrenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryChildrenResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryHoldersByOperatorResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4049,12 +3416,12 @@ func (m *QueryChildrenResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryChildrenResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryHoldersByOperatorResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryChildrenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryHoldersByOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4071,16 +3438,11 @@ func (m *QueryChildrenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.Children) > 0 { - for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Children[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } + if len(m.Holders) > 0 { + for iNdEx := len(m.Holders) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Holders[iNdEx]) + copy(dAtA[i:], m.Holders[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Holders[iNdEx]))) i-- dAtA[i] = 0xa } @@ -4088,336 +3450,68 @@ func (m *QueryChildrenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryGranteeGrantsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - return dAtA[:n], nil -} - -func (m *QueryGranteeGrantsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + dAtA[offset] = uint8(v) + return base } - -func (m *QueryGranteeGrantsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *QueryBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if len(m.Grantee) > 0 { - i -= len(m.Grantee) - copy(dAtA[i:], m.Grantee) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee))) - i-- - dAtA[i] = 0x12 + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - return len(dAtA) - i, nil + return n } -func (m *QueryGranteeGrantsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *QueryBalanceResponse) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *QueryGranteeGrantsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + var l int + _ = l + l = m.Balance.Size() + n += 1 + l + sovQuery(uint64(l)) + return n } -func (m *QueryGranteeGrantsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *QueryAllBalancesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if len(m.Grants) > 0 { - for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - return len(dAtA) - i, nil -} - -func (m *QueryIsOperatorForRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) } - return dAtA[:n], nil -} - -func (m *QueryIsOperatorForRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryIsOperatorForRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Holder) > 0 { - i -= len(m.Holder) - copy(dAtA[i:], m.Holder) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Holder))) - i-- - dAtA[i] = 0x1a - } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryIsOperatorForResponse) 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 *QueryIsOperatorForResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryIsOperatorForResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Authorized { - i-- - if m.Authorized { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryHoldersByOperatorRequest) 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 *QueryHoldersByOperatorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryHoldersByOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryHoldersByOperatorResponse) 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 *QueryHoldersByOperatorResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryHoldersByOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Holders) > 0 { - for iNdEx := len(m.Holders) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Holders[iNdEx]) - copy(dAtA[i:], m.Holders[iNdEx]) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Holders[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryBalanceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.TokenId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryBalanceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Balance.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryAllBalancesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n + return n } func (m *QueryAllBalancesResponse) Size() (n int) { @@ -4717,7 +3811,7 @@ func (m *QueryTokenResponse) Size() (n int) { return n } -func (m *QueryRootRequest) Size() (n int) { +func (m *QueryGranteeGrantsRequest) Size() (n int) { if m == nil { return 0 } @@ -4727,25 +3821,37 @@ func (m *QueryRootRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.TokenId) + l = len(m.Grantee) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } return n } -func (m *QueryRootResponse) Size() (n int) { +func (m *QueryGranteeGrantsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.Root.Size() - n += 1 + l + sovQuery(uint64(l)) + if len(m.Grants) > 0 { + for _, e := range m.Grants { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } return n } -func (m *QueryHasParentRequest) Size() (n int) { +func (m *QueryIsOperatorForRequest) Size() (n int) { if m == nil { return 0 } @@ -4755,26 +3861,30 @@ func (m *QueryHasParentRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.TokenId) + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Holder) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } -func (m *QueryHasParentResponse) Size() (n int) { +func (m *QueryIsOperatorForResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.HasParent { + if m.Authorized { n += 2 } return n } -func (m *QueryParentRequest) Size() (n int) { +func (m *QueryHoldersByOperatorRequest) Size() (n int) { if m == nil { return 0 } @@ -4784,153 +3894,12 @@ func (m *QueryParentRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.TokenId) + l = len(m.Operator) if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryParentResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Parent.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryChildrenRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.TokenId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryChildrenResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Children) > 0 { - for _, e := range m.Children { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGranteeGrantsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Grantee) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGranteeGrantsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Grants) > 0 { - for _, e := range m.Grants { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryIsOperatorForRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Holder) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryIsOperatorForResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Authorized { - n += 2 - } - return n -} - -func (m *QueryHoldersByOperatorRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Pagination != nil { - l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } return n @@ -4943,920 +3912,25 @@ func (m *QueryHoldersByOperatorResponse) Size() (n int) { var l int _ = l if len(m.Holders) > 0 { - for _, s := range m.Holders { - l = len(s) - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryBalanceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryBalanceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryAllBalancesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllBalancesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryAllBalancesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllBalancesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Balances = append(m.Balances, Coin{}) - if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryFTSupplyRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryFTSupplyRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryFTSupplyResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryFTSupplyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryFTMintedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryFTMintedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryFTMintedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryFTMintedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Minted", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Minted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + for _, s := range m.Holders { + l = len(s) + n += 1 + l + sovQuery(uint64(l)) } } - - if iNdEx > l { - return io.ErrUnexpectedEOF + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) } - return nil + return n } -func (m *QueryFTBurntRequest) Unmarshal(dAtA []byte) error { + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5879,10 +3953,10 @@ func (m *QueryFTBurntRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryFTBurntRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryBalanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5918,6 +3992,38 @@ func (m *QueryFTBurntRequest) Unmarshal(dAtA []byte) error { m.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) } @@ -5970,7 +4076,7 @@ func (m *QueryFTBurntRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryFTBurntResponse) Unmarshal(dAtA []byte) error { +func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5993,17 +4099,17 @@ func (m *QueryFTBurntResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryFTBurntResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryBalanceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Burnt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6013,23 +4119,22 @@ func (m *QueryFTBurntResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Burnt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6054,7 +4159,7 @@ func (m *QueryFTBurntResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryNFTSupplyRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6077,10 +4182,10 @@ func (m *QueryNFTSupplyRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryNFTSupplyRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllBalancesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryNFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllBalancesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6117,7 +4222,7 @@ func (m *QueryNFTSupplyRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6145,7 +4250,43 @@ func (m *QueryNFTSupplyRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenType = string(dAtA[iNdEx:postIndex]) + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -6168,7 +4309,7 @@ func (m *QueryNFTSupplyRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryNFTSupplyResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6191,17 +4332,17 @@ func (m *QueryNFTSupplyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryNFTSupplyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllBalancesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryNFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllBalancesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6211,23 +4352,59 @@ func (m *QueryNFTSupplyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Balances = append(m.Balances, Coin{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6252,7 +4429,7 @@ func (m *QueryNFTSupplyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryNFTMintedRequest) Unmarshal(dAtA []byte) error { +func (m *QueryFTSupplyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6275,10 +4452,10 @@ func (m *QueryNFTMintedRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryNFTMintedRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryFTSupplyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryNFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6315,7 +4492,7 @@ func (m *QueryNFTMintedRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6343,7 +4520,7 @@ func (m *QueryNFTMintedRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenType = string(dAtA[iNdEx:postIndex]) + m.TokenId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -6366,7 +4543,7 @@ func (m *QueryNFTMintedRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryNFTMintedResponse) Unmarshal(dAtA []byte) error { +func (m *QueryFTSupplyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6389,15 +4566,15 @@ func (m *QueryNFTMintedResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryNFTMintedResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryFTSupplyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryNFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Minted", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6425,7 +4602,7 @@ func (m *QueryNFTMintedResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Minted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6450,7 +4627,7 @@ func (m *QueryNFTMintedResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryNFTBurntRequest) Unmarshal(dAtA []byte) error { +func (m *QueryFTMintedRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6473,10 +4650,10 @@ func (m *QueryNFTBurntRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryNFTBurntRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryFTMintedRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryNFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6513,7 +4690,7 @@ func (m *QueryNFTBurntRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6541,7 +4718,7 @@ func (m *QueryNFTBurntRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenType = string(dAtA[iNdEx:postIndex]) + m.TokenId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -6564,7 +4741,7 @@ func (m *QueryNFTBurntRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryNFTBurntResponse) Unmarshal(dAtA []byte) error { +func (m *QueryFTMintedResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6587,15 +4764,15 @@ func (m *QueryNFTBurntResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryNFTBurntResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryFTMintedResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryNFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Burnt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Minted", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6623,7 +4800,7 @@ func (m *QueryNFTBurntResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Burnt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Minted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6648,7 +4825,7 @@ func (m *QueryNFTBurntResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryContractRequest) Unmarshal(dAtA []byte) error { +func (m *QueryFTBurntRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6671,10 +4848,10 @@ func (m *QueryContractRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryContractRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryFTBurntRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6709,6 +4886,38 @@ func (m *QueryContractRequest) Unmarshal(dAtA []byte) error { } m.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -6730,7 +4939,7 @@ func (m *QueryContractRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryContractResponse) Unmarshal(dAtA []byte) error { +func (m *QueryFTBurntResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6753,17 +4962,17 @@ func (m *QueryContractResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryContractResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryFTBurntResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Burnt", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6773,22 +4982,23 @@ func (m *QueryContractResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Contract.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Burnt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6813,7 +5023,7 @@ func (m *QueryContractResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTokenClassTypeNameRequest) Unmarshal(dAtA []byte) error { +func (m *QueryNFTSupplyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6836,10 +5046,10 @@ func (m *QueryTokenClassTypeNameRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenClassTypeNameRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryNFTSupplyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenClassTypeNameRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryNFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6876,7 +5086,7 @@ func (m *QueryTokenClassTypeNameRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6904,7 +5114,7 @@ func (m *QueryTokenClassTypeNameRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClassId = string(dAtA[iNdEx:postIndex]) + m.TokenType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -6927,7 +5137,7 @@ func (m *QueryTokenClassTypeNameRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTokenClassTypeNameResponse) Unmarshal(dAtA []byte) error { +func (m *QueryNFTSupplyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6950,15 +5160,15 @@ func (m *QueryTokenClassTypeNameResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenClassTypeNameResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryNFTSupplyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenClassTypeNameResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryNFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6986,7 +5196,9 @@ func (m *QueryTokenClassTypeNameResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -7009,7 +5221,7 @@ func (m *QueryTokenClassTypeNameResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTokenTypeRequest) Unmarshal(dAtA []byte) error { +func (m *QueryNFTMintedRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7032,10 +5244,10 @@ func (m *QueryTokenTypeRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenTypeRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryNFTMintedRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenTypeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryNFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7123,7 +5335,7 @@ func (m *QueryTokenTypeRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTokenTypeResponse) Unmarshal(dAtA []byte) error { +func (m *QueryNFTMintedResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7146,17 +5358,17 @@ func (m *QueryTokenTypeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenTypeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryNFTMintedResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenTypeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryNFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Minted", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7166,22 +5378,23 @@ func (m *QueryTokenTypeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.TokenType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Minted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7206,7 +5419,7 @@ func (m *QueryTokenTypeResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error { +func (m *QueryNFTBurntRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7229,10 +5442,10 @@ func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryNFTBurntRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryNFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7269,7 +5482,7 @@ func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7297,7 +5510,7 @@ func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenId = string(dAtA[iNdEx:postIndex]) + m.TokenType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7320,7 +5533,7 @@ func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error { +func (m *QueryNFTBurntResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7343,17 +5556,17 @@ func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryNFTBurntResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryNFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Burnt", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7363,22 +5576,23 @@ func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Burnt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7403,7 +5617,7 @@ func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryRootRequest) Unmarshal(dAtA []byte) error { +func (m *QueryContractRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7426,10 +5640,10 @@ func (m *QueryRootRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryRootRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryContractRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRootRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7464,38 +5678,6 @@ func (m *QueryRootRequest) Unmarshal(dAtA []byte) error { } m.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -7517,7 +5699,7 @@ func (m *QueryRootRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryRootResponse) Unmarshal(dAtA []byte) error { +func (m *QueryContractResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7540,15 +5722,15 @@ func (m *QueryRootResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryRootResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryContractResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRootResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7575,7 +5757,7 @@ func (m *QueryRootResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Root.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Contract.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7600,7 +5782,7 @@ func (m *QueryRootResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryHasParentRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTokenClassTypeNameRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7623,10 +5805,10 @@ func (m *QueryHasParentRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryHasParentRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenClassTypeNameRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryHasParentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenClassTypeNameRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7663,7 +5845,7 @@ func (m *QueryHasParentRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7691,7 +5873,7 @@ func (m *QueryHasParentRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenId = string(dAtA[iNdEx:postIndex]) + m.ClassId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7714,7 +5896,7 @@ func (m *QueryHasParentRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryHasParentResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTokenClassTypeNameResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7737,17 +5919,17 @@ func (m *QueryHasParentResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryHasParentResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenClassTypeNameResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryHasParentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenClassTypeNameResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HasParent", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7757,12 +5939,24 @@ func (m *QueryHasParentResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.HasParent = bool(v != 0) + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -7784,7 +5978,7 @@ func (m *QueryHasParentResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryParentRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTokenTypeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7807,10 +6001,10 @@ func (m *QueryParentRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParentRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenTypeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenTypeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7847,7 +6041,7 @@ func (m *QueryParentRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7875,7 +6069,7 @@ func (m *QueryParentRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenId = string(dAtA[iNdEx:postIndex]) + m.TokenType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7898,7 +6092,7 @@ func (m *QueryParentRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryParentResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTokenTypeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7921,15 +6115,15 @@ func (m *QueryParentResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParentResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenTypeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenTypeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7956,7 +6150,7 @@ func (m *QueryParentResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Parent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TokenType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7981,7 +6175,7 @@ func (m *QueryParentResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryChildrenRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8004,10 +6198,10 @@ func (m *QueryChildrenRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryChildrenRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryChildrenRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8074,42 +6268,6 @@ func (m *QueryChildrenRequest) Unmarshal(dAtA []byte) error { } m.TokenId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -8131,7 +6289,7 @@ func (m *QueryChildrenRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryChildrenResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8154,49 +6312,15 @@ func (m *QueryChildrenResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryChildrenResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryChildrenResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Children = append(m.Children, NFT{}) - if err := m.Children[len(m.Children)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8223,10 +6347,7 @@ func (m *QueryChildrenResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/collection/query.pb.gw.go b/x/collection/query.pb.gw.go index cf443cca64..b3168e4f21 100644 --- a/x/collection/query.pb.gw.go +++ b/x/collection/query.pb.gw.go @@ -963,328 +963,6 @@ func local_request_Query_Token_0(ctx context.Context, marshaler runtime.Marshale } -func request_Query_Root_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryRootRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["contract_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") - } - - protoReq.ContractId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) - } - - val, ok = pathParams["token_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") - } - - protoReq.TokenId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) - } - - msg, err := client.Root(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Root_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryRootRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["contract_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") - } - - protoReq.ContractId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) - } - - val, ok = pathParams["token_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") - } - - protoReq.TokenId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) - } - - msg, err := server.Root(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_HasParent_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryHasParentRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["contract_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") - } - - protoReq.ContractId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) - } - - val, ok = pathParams["token_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") - } - - protoReq.TokenId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) - } - - msg, err := client.HasParent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_HasParent_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryHasParentRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["contract_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") - } - - protoReq.ContractId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) - } - - val, ok = pathParams["token_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") - } - - protoReq.TokenId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) - } - - msg, err := server.HasParent(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_Parent_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryParentRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["contract_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") - } - - protoReq.ContractId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) - } - - val, ok = pathParams["token_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") - } - - protoReq.TokenId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) - } - - msg, err := client.Parent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Parent_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryParentRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["contract_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") - } - - protoReq.ContractId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) - } - - val, ok = pathParams["token_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") - } - - protoReq.TokenId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) - } - - msg, err := server.Parent(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_Children_0 = &utilities.DoubleArray{Encoding: map[string]int{"contract_id": 0, "token_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) - -func request_Query_Children_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryChildrenRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["contract_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") - } - - protoReq.ContractId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) - } - - val, ok = pathParams["token_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") - } - - protoReq.TokenId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Children_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.Children(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Children_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryChildrenRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["contract_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_id") - } - - protoReq.ContractId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_id", err) - } - - val, ok = pathParams["token_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") - } - - protoReq.TokenId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Children_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.Children(ctx, &protoReq) - return msg, metadata, err - -} - var ( filter_Query_GranteeGrants_0 = &utilities.DoubleArray{Encoding: map[string]int{"contract_id": 0, "grantee": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) @@ -1661,98 +1339,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_Root_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Root_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Root_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_HasParent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_HasParent_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_HasParent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Parent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Parent_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Parent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Children_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Children_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Children_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GranteeGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -2057,86 +1643,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_Root_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Root_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Root_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_HasParent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_HasParent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_HasParent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Parent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Parent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Parent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Children_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Children_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Children_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GranteeGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -2185,14 +1691,6 @@ var ( pattern_Query_Token_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "tokens", "token_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Root_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "nfts", "token_id", "root"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_HasParent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "nfts", "token_id", "has_parent"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_Parent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "nfts", "token_id", "parent"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_Children_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "nfts", "token_id", "children"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GranteeGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "grants", "grantee"}, "", runtime.AssumeColonVerbOpt(false))) ) @@ -2221,13 +1719,5 @@ var ( forward_Query_Token_0 = runtime.ForwardResponseMessage - forward_Query_Root_0 = runtime.ForwardResponseMessage - - forward_Query_HasParent_0 = runtime.ForwardResponseMessage - - forward_Query_Parent_0 = runtime.ForwardResponseMessage - - forward_Query_Children_0 = runtime.ForwardResponseMessage - forward_Query_GranteeGrants_0 = runtime.ForwardResponseMessage ) diff --git a/x/collection/tx.pb.go b/x/collection/tx.pb.go index feaf7aac1b..5f4a0774f6 100644 --- a/x/collection/tx.pb.go +++ b/x/collection/tx.pb.go @@ -2149,1659 +2149,1566 @@ func (m *MsgRevokePermissionResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRevokePermissionResponse proto.InternalMessageInfo -// MsgAttach is the Msg/Attach request type. -// -// Deprecated: Do not use. -type MsgAttach struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to attach. - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // to token id which one attachs the token to. - ToTokenId string `protobuf:"bytes,4,opt,name=to_token_id,json=toTokenId,proto3" json:"to_token_id,omitempty"` +func init() { + proto.RegisterType((*MsgSendFT)(nil), "lbm.collection.v1.MsgSendFT") + proto.RegisterType((*MsgSendFTResponse)(nil), "lbm.collection.v1.MsgSendFTResponse") + proto.RegisterType((*MsgOperatorSendFT)(nil), "lbm.collection.v1.MsgOperatorSendFT") + proto.RegisterType((*MsgOperatorSendFTResponse)(nil), "lbm.collection.v1.MsgOperatorSendFTResponse") + proto.RegisterType((*MsgSendNFT)(nil), "lbm.collection.v1.MsgSendNFT") + proto.RegisterType((*MsgSendNFTResponse)(nil), "lbm.collection.v1.MsgSendNFTResponse") + proto.RegisterType((*MsgOperatorSendNFT)(nil), "lbm.collection.v1.MsgOperatorSendNFT") + proto.RegisterType((*MsgOperatorSendNFTResponse)(nil), "lbm.collection.v1.MsgOperatorSendNFTResponse") + proto.RegisterType((*MsgAuthorizeOperator)(nil), "lbm.collection.v1.MsgAuthorizeOperator") + proto.RegisterType((*MsgAuthorizeOperatorResponse)(nil), "lbm.collection.v1.MsgAuthorizeOperatorResponse") + proto.RegisterType((*MsgRevokeOperator)(nil), "lbm.collection.v1.MsgRevokeOperator") + proto.RegisterType((*MsgRevokeOperatorResponse)(nil), "lbm.collection.v1.MsgRevokeOperatorResponse") + proto.RegisterType((*MsgCreateContract)(nil), "lbm.collection.v1.MsgCreateContract") + proto.RegisterType((*MsgCreateContractResponse)(nil), "lbm.collection.v1.MsgCreateContractResponse") + proto.RegisterType((*MsgIssueFT)(nil), "lbm.collection.v1.MsgIssueFT") + proto.RegisterType((*MsgIssueFTResponse)(nil), "lbm.collection.v1.MsgIssueFTResponse") + proto.RegisterType((*MsgIssueNFT)(nil), "lbm.collection.v1.MsgIssueNFT") + proto.RegisterType((*MsgIssueNFTResponse)(nil), "lbm.collection.v1.MsgIssueNFTResponse") + proto.RegisterType((*MsgMintFT)(nil), "lbm.collection.v1.MsgMintFT") + proto.RegisterType((*MsgMintFTResponse)(nil), "lbm.collection.v1.MsgMintFTResponse") + proto.RegisterType((*MsgMintNFT)(nil), "lbm.collection.v1.MsgMintNFT") + proto.RegisterType((*MsgMintNFTResponse)(nil), "lbm.collection.v1.MsgMintNFTResponse") + proto.RegisterType((*MintNFTParam)(nil), "lbm.collection.v1.MintNFTParam") + proto.RegisterType((*MsgBurnFT)(nil), "lbm.collection.v1.MsgBurnFT") + proto.RegisterType((*MsgBurnFTResponse)(nil), "lbm.collection.v1.MsgBurnFTResponse") + proto.RegisterType((*MsgOperatorBurnFT)(nil), "lbm.collection.v1.MsgOperatorBurnFT") + proto.RegisterType((*MsgOperatorBurnFTResponse)(nil), "lbm.collection.v1.MsgOperatorBurnFTResponse") + proto.RegisterType((*MsgBurnNFT)(nil), "lbm.collection.v1.MsgBurnNFT") + proto.RegisterType((*MsgBurnNFTResponse)(nil), "lbm.collection.v1.MsgBurnNFTResponse") + proto.RegisterType((*MsgOperatorBurnNFT)(nil), "lbm.collection.v1.MsgOperatorBurnNFT") + proto.RegisterType((*MsgOperatorBurnNFTResponse)(nil), "lbm.collection.v1.MsgOperatorBurnNFTResponse") + proto.RegisterType((*MsgModify)(nil), "lbm.collection.v1.MsgModify") + proto.RegisterType((*MsgModifyResponse)(nil), "lbm.collection.v1.MsgModifyResponse") + proto.RegisterType((*MsgGrantPermission)(nil), "lbm.collection.v1.MsgGrantPermission") + proto.RegisterType((*MsgGrantPermissionResponse)(nil), "lbm.collection.v1.MsgGrantPermissionResponse") + proto.RegisterType((*MsgRevokePermission)(nil), "lbm.collection.v1.MsgRevokePermission") + proto.RegisterType((*MsgRevokePermissionResponse)(nil), "lbm.collection.v1.MsgRevokePermissionResponse") } -func (m *MsgAttach) Reset() { *m = MsgAttach{} } -func (m *MsgAttach) String() string { return proto.CompactTextString(m) } -func (*MsgAttach) ProtoMessage() {} -func (*MsgAttach) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{37} -} -func (m *MsgAttach) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgAttach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgAttach.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 *MsgAttach) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAttach.Merge(m, src) -} -func (m *MsgAttach) XXX_Size() int { - return m.Size() -} -func (m *MsgAttach) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAttach.DiscardUnknown(m) +func init() { proto.RegisterFile("lbm/collection/v1/tx.proto", fileDescriptor_eaee77977a3cfe12) } + +var fileDescriptor_eaee77977a3cfe12 = []byte{ + // 1422 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcf, 0x4f, 0x1b, 0xc7, + 0x17, 0x67, 0x31, 0x36, 0x66, 0xf8, 0x26, 0xdf, 0xb0, 0xa1, 0x0d, 0x38, 0x60, 0xd3, 0x55, 0x20, + 0x88, 0x80, 0x57, 0x24, 0x54, 0x95, 0xac, 0xb4, 0x52, 0x40, 0xa2, 0xb2, 0xca, 0x8f, 0xc8, 0xa5, + 0x97, 0x5e, 0xd0, 0xda, 0x3b, 0xd8, 0x5b, 0xbc, 0x3b, 0xd6, 0xee, 0x98, 0x42, 0x4f, 0x51, 0x8f, + 0x91, 0x2a, 0xe5, 0x58, 0xa9, 0x52, 0xd5, 0x43, 0x0f, 0x51, 0x0f, 0x15, 0xad, 0xfa, 0x07, 0xf4, + 0xc8, 0x31, 0xea, 0x29, 0xea, 0x21, 0xad, 0xe0, 0xc0, 0xa9, 0xff, 0x43, 0x35, 0x3f, 0x76, 0xbc, + 0xb3, 0xde, 0xb5, 0x17, 0xea, 0xf6, 0x62, 0xed, 0xbc, 0x79, 0x33, 0xf3, 0xf9, 0xbc, 0x1f, 0xf3, + 0xde, 0x18, 0xe4, 0x9a, 0x55, 0x5b, 0xaf, 0xa1, 0x66, 0x13, 0xd6, 0xb0, 0x85, 0x1c, 0xfd, 0x68, + 0x55, 0xc7, 0xc7, 0xc5, 0x96, 0x8b, 0x30, 0x52, 0x27, 0x9a, 0x55, 0xbb, 0xd8, 0x99, 0x2b, 0x1e, + 0xad, 0xe6, 0x26, 0xeb, 0xa8, 0x8e, 0xe8, 0xac, 0x4e, 0xbe, 0x98, 0x62, 0xee, 0x4e, 0x0d, 0x79, + 0x36, 0xf2, 0x74, 0xdb, 0xab, 0x93, 0x0d, 0x6c, 0xaf, 0xce, 0x27, 0xa6, 0xd9, 0xc4, 0x3e, 0x5b, + 0xc1, 0x06, 0x7c, 0x6a, 0xc2, 0xb0, 0x2d, 0x07, 0xe9, 0xf4, 0x97, 0x8b, 0xb4, 0x6e, 0x2c, 0x81, + 0xd3, 0xa9, 0x8e, 0xf6, 0x52, 0x01, 0x63, 0xdb, 0x5e, 0xfd, 0x63, 0xe8, 0x98, 0x9b, 0x7b, 0x6a, + 0x01, 0x8c, 0xd7, 0x90, 0x83, 0x5d, 0xa3, 0x86, 0xf7, 0x2d, 0x73, 0x4a, 0x99, 0x53, 0x16, 0xc7, + 0x2a, 0xc0, 0x17, 0x95, 0x4d, 0x55, 0x05, 0x23, 0x07, 0x2e, 0xb2, 0xa7, 0x86, 0xe9, 0x0c, 0xfd, + 0x56, 0x6f, 0x82, 0x61, 0x8c, 0xa6, 0x52, 0x54, 0x32, 0x8c, 0x91, 0xfa, 0x2e, 0xc8, 0x18, 0x36, + 0x6a, 0x3b, 0x78, 0x6a, 0x64, 0x2e, 0xb5, 0x38, 0xfe, 0xf0, 0x4e, 0xb1, 0x8b, 0x77, 0x71, 0x03, + 0x59, 0xce, 0xfa, 0xc8, 0xd9, 0x9b, 0xc2, 0x50, 0x85, 0x2b, 0x97, 0x0a, 0x5f, 0x5e, 0x9e, 0x2e, + 0xd1, 0x1d, 0x9f, 0x5f, 0x9e, 0x2e, 0x11, 0x5b, 0xad, 0x78, 0xe6, 0xa1, 0x2e, 0xc0, 0x69, 0xb7, + 0xc1, 0x84, 0x18, 0x54, 0xa0, 0xd7, 0x42, 0x8e, 0x07, 0xb5, 0xd7, 0x0a, 0x95, 0xee, 0xb6, 0xa0, + 0x6b, 0x60, 0xe4, 0x26, 0xe5, 0x91, 0x03, 0x59, 0xc4, 0x97, 0x70, 0x2e, 0x62, 0x2c, 0x38, 0xa6, + 0xba, 0x38, 0x8e, 0x44, 0x70, 0x4c, 0x5f, 0x85, 0xe3, 0x03, 0xc2, 0x51, 0x9c, 0x44, 0x78, 0x4e, + 0x07, 0x78, 0xca, 0x24, 0xb4, 0xbb, 0x60, 0xba, 0x4b, 0x28, 0x78, 0xbf, 0x50, 0x00, 0xe0, 0xd6, + 0xd8, 0x19, 0x94, 0xe3, 0xee, 0x82, 0x31, 0x8c, 0x0e, 0xa1, 0xb3, 0x6f, 0x99, 0x1e, 0xf5, 0xdd, + 0x58, 0x25, 0x4b, 0x05, 0x65, 0xd3, 0x2b, 0xcd, 0x49, 0xee, 0x51, 0x43, 0xee, 0xd9, 0xd9, 0xdc, + 0xd3, 0x26, 0x81, 0xda, 0x19, 0x09, 0xa0, 0xbf, 0x2a, 0x54, 0x1c, 0xa4, 0xb1, 0xf3, 0x5f, 0x78, + 0x48, 0x22, 0x93, 0x0e, 0x91, 0x59, 0xee, 0xf2, 0x43, 0x2e, 0xc6, 0x0f, 0x84, 0xd8, 0x0c, 0xc8, + 0x75, 0x4b, 0x05, 0xc1, 0xef, 0x15, 0x30, 0xb9, 0xed, 0xd5, 0x9f, 0xb4, 0x71, 0x03, 0xb9, 0xd6, + 0x17, 0xd0, 0xd7, 0xeb, 0x4f, 0xf1, 0x6d, 0x90, 0x69, 0xa0, 0xa6, 0x09, 0x7d, 0x82, 0x7c, 0x24, + 0x51, 0x4f, 0xc9, 0xd4, 0x4b, 0xef, 0x11, 0xe4, 0x5c, 0x91, 0xe0, 0xbe, 0xef, 0xe3, 0x0e, 0xe4, + 0x79, 0x14, 0x1a, 0x2d, 0x0f, 0x66, 0xa2, 0xe4, 0x82, 0xc6, 0xb7, 0x2c, 0x91, 0x2a, 0xf0, 0x08, + 0x1d, 0xfe, 0xcb, 0x1c, 0xd6, 0x42, 0x1c, 0xee, 0x45, 0x73, 0x90, 0xa1, 0xf0, 0x74, 0x90, 0x85, + 0x02, 0xfd, 0x57, 0x0c, 0xfd, 0x86, 0x0b, 0x0d, 0x0c, 0x37, 0x38, 0x3c, 0x75, 0x12, 0xa4, 0xd1, + 0xe7, 0x0e, 0x74, 0x39, 0x6e, 0x36, 0x20, 0xd1, 0xe3, 0x18, 0x36, 0xf4, 0x53, 0x81, 0x7c, 0xab, + 0xb7, 0x40, 0xaa, 0xed, 0x5a, 0x1c, 0x29, 0xf9, 0x24, 0x5a, 0x36, 0xc4, 0x06, 0x8f, 0x28, 0xfa, + 0x5d, 0x5a, 0x24, 0xc0, 0xd9, 0x2e, 0xe1, 0xdc, 0x95, 0x4f, 0xd6, 0x1e, 0x53, 0xb0, 0xb2, 0xd0, + 0x07, 0xdb, 0xd7, 0xa8, 0xda, 0x37, 0xc3, 0x34, 0xb9, 0xcb, 0x9e, 0xd7, 0x86, 0x09, 0x93, 0xbb, + 0x8b, 0x91, 0x8f, 0x3f, 0xd5, 0xc1, 0x4f, 0x9c, 0x62, 0xc2, 0x9a, 0x65, 0x1b, 0x4d, 0x8f, 0xf2, + 0x4a, 0x57, 0xc4, 0x98, 0xcc, 0xd9, 0x96, 0x83, 0x8d, 0x6a, 0x13, 0x4e, 0xa5, 0xe7, 0x94, 0xc5, + 0x6c, 0x45, 0x8c, 0x3b, 0x76, 0xcc, 0x04, 0xed, 0xc8, 0x32, 0x6e, 0x54, 0x64, 0xdc, 0x86, 0xb8, + 0x13, 0xb3, 0x44, 0xb6, 0xfe, 0x80, 0x5c, 0x7d, 0xbf, 0xbf, 0x29, 0xbc, 0xc5, 0xea, 0x94, 0x67, + 0x1e, 0x16, 0x2d, 0xa4, 0xdb, 0x06, 0x6e, 0x14, 0xcb, 0x0e, 0xfe, 0xed, 0x97, 0x15, 0xc0, 0x0b, + 0x58, 0xd9, 0xc1, 0xe2, 0x86, 0x7c, 0x47, 0x36, 0x71, 0xf0, 0x9e, 0xe1, 0xe6, 0xd0, 0x74, 0x7a, + 0xa1, 0xf0, 0x91, 0x30, 0xea, 0x34, 0xc8, 0xfa, 0xf9, 0xce, 0x2d, 0x34, 0xca, 0xd3, 0x9d, 0xdc, + 0x95, 0xe3, 0xfe, 0x8a, 0x9d, 0x41, 0xda, 0x53, 0xd8, 0x65, 0x24, 0x60, 0x97, 0x92, 0x26, 0x53, + 0xb8, 0x1d, 0xa6, 0x40, 0xae, 0x94, 0x35, 0x70, 0x3b, 0x30, 0x14, 0x24, 0x66, 0x01, 0x60, 0x24, + 0xf0, 0x49, 0x0b, 0x72, 0x60, 0xec, 0x1a, 0xdb, 0x3b, 0x69, 0x41, 0xed, 0x27, 0x56, 0xac, 0xb7, + 0x2d, 0x07, 0x0f, 0xea, 0xce, 0xff, 0x20, 0x69, 0xb1, 0xbe, 0x41, 0xbc, 0xf9, 0xc3, 0x1f, 0x85, + 0x34, 0x19, 0x79, 0x09, 0xaa, 0x36, 0x43, 0xc9, 0xab, 0x36, 0x1b, 0x88, 0x74, 0xfd, 0x99, 0x55, + 0x2f, 0x22, 0x1d, 0x58, 0xf5, 0x7a, 0x1f, 0x64, 0x5a, 0x86, 0x6b, 0xd8, 0x1e, 0x67, 0x52, 0x88, + 0x60, 0xc2, 0x0f, 0x7c, 0x4a, 0xf4, 0xfc, 0xd2, 0xcc, 0x16, 0xf5, 0xa8, 0x6f, 0x7c, 0x91, 0xb6, + 0x4a, 0xe3, 0x8e, 0x8f, 0x84, 0xcb, 0xa4, 0x3a, 0xa3, 0xc8, 0x75, 0x46, 0xfb, 0x04, 0xfc, 0x2f, + 0x78, 0x64, 0x1f, 0xff, 0x26, 0x8d, 0x3b, 0xed, 0x6b, 0x16, 0x07, 0xeb, 0x6d, 0xd7, 0xb9, 0xae, + 0xf5, 0x3a, 0x0d, 0x4c, 0x6a, 0x30, 0x4d, 0x1a, 0x03, 0xc3, 0xdd, 0xcd, 0x06, 0xc2, 0xdd, 0x67, + 0x72, 0x93, 0x96, 0x14, 0xf7, 0x55, 0x5b, 0x80, 0x6b, 0x36, 0x9e, 0xc9, 0x9a, 0x32, 0xce, 0x4f, + 0x6e, 0xca, 0x42, 0x3c, 0x9f, 0xb1, 0xb0, 0x26, 0xd2, 0x6b, 0x87, 0xb5, 0x14, 0x4f, 0xa9, 0xc4, + 0x4d, 0x18, 0x3f, 0x93, 0x37, 0x61, 0x7c, 0x24, 0x80, 0x9d, 0xca, 0x4d, 0x58, 0x62, 0x80, 0x57, + 0xf5, 0x40, 0xcf, 0x0e, 0x32, 0x59, 0xd3, 0xe5, 0x13, 0x91, 0x9b, 0xae, 0x30, 0xa1, 0xbf, 0xf8, + 0x4d, 0x88, 0x4c, 0xeb, 0xe0, 0xa4, 0x3f, 0x0f, 0x71, 0x51, 0x0f, 0x07, 0x0b, 0x98, 0x9c, 0x8d, + 0xa9, 0x70, 0x36, 0x16, 0xc0, 0x38, 0x27, 0xe3, 0x98, 0xf0, 0x98, 0xdf, 0xf1, 0x6c, 0x45, 0x99, + 0x48, 0xd4, 0xc7, 0x60, 0xb4, 0xd6, 0x30, 0x9c, 0x3a, 0xf4, 0xf8, 0x2b, 0x60, 0x26, 0x22, 0xe0, + 0x9e, 0x60, 0xec, 0x5a, 0xd5, 0x36, 0x86, 0x3c, 0xea, 0xfc, 0x25, 0x2c, 0xec, 0x3a, 0x65, 0x62, + 0x26, 0xba, 0x09, 0x62, 0x0c, 0xfd, 0x5b, 0x94, 0x0e, 0x84, 0x11, 0x7e, 0x64, 0x5e, 0xfd, 0xd0, + 0x35, 0x1c, 0xfc, 0x14, 0xba, 0xb6, 0xe5, 0x79, 0x16, 0x72, 0x06, 0x73, 0x9b, 0xe6, 0x01, 0x68, + 0x89, 0x2d, 0x7d, 0xee, 0x1d, 0x49, 0xe9, 0x91, 0x14, 0x89, 0xf3, 0xd1, 0xe0, 0x43, 0xc8, 0xb8, + 0x4f, 0x43, 0x52, 0x41, 0xe7, 0x3b, 0x85, 0x16, 0x45, 0xd6, 0xe1, 0xfd, 0x53, 0x3e, 0x32, 0xfe, + 0x54, 0x17, 0xfe, 0x35, 0x09, 0xff, 0x42, 0xaf, 0x0e, 0x34, 0x40, 0x60, 0x16, 0xdc, 0x8d, 0x10, + 0xfb, 0x0c, 0x1e, 0x3e, 0xbf, 0x01, 0x52, 0xdb, 0x5e, 0x5d, 0xdd, 0x02, 0x19, 0xfe, 0x10, 0x8d, + 0x8a, 0x08, 0xf1, 0x88, 0xcd, 0xdd, 0xeb, 0x35, 0x2b, 0x2a, 0x8c, 0x09, 0x6e, 0x86, 0x9e, 0xb7, + 0x31, 0xeb, 0x64, 0xad, 0xdc, 0x72, 0x12, 0x2d, 0x71, 0xca, 0x2e, 0x18, 0xf5, 0xdf, 0x66, 0xb3, + 0xf1, 0xb0, 0x76, 0x36, 0xf7, 0x72, 0xf3, 0x3d, 0xa7, 0xc5, 0x86, 0x75, 0xf0, 0xff, 0xf0, 0xa3, + 0x6f, 0xbe, 0x3f, 0x22, 0x72, 0xc0, 0x4a, 0x22, 0x35, 0x71, 0x90, 0x0d, 0x26, 0xba, 0x1f, 0x5f, + 0xf7, 0xa3, 0xf7, 0xe8, 0x52, 0xcc, 0xe9, 0x09, 0x15, 0x83, 0xee, 0x08, 0x3d, 0x92, 0x62, 0xdc, + 0x21, 0x6b, 0xc5, 0xb9, 0x23, 0xfa, 0x41, 0x43, 0x4e, 0x09, 0x3d, 0x66, 0x62, 0x4e, 0x91, 0xb5, + 0xe2, 0x4e, 0x89, 0x79, 0x89, 0xec, 0x82, 0x51, 0xff, 0x91, 0x11, 0xe3, 0x74, 0x3e, 0x1d, 0xe7, + 0xf4, 0x70, 0x17, 0x5e, 0x01, 0x59, 0xd1, 0x66, 0xe7, 0x7b, 0x2c, 0x21, 0x6e, 0x5e, 0xe8, 0x3d, + 0x2f, 0xf6, 0xdc, 0x02, 0x19, 0xde, 0xf1, 0xc6, 0x64, 0x13, 0x9b, 0x8d, 0xcb, 0x26, 0xb9, 0xf5, + 0x24, 0x94, 0xfd, 0xb6, 0x73, 0x36, 0x7e, 0x41, 0x8f, 0x38, 0x0f, 0x37, 0x80, 0x5b, 0x20, 0xc3, + 0x1b, 0x9a, 0x18, 0x78, 0x6c, 0x36, 0x0e, 0x9e, 0xdc, 0x42, 0x04, 0x93, 0x9d, 0xef, 0xda, 0x27, + 0xd9, 0xf9, 0xee, 0xcb, 0x49, 0xb4, 0x82, 0x46, 0xf0, 0x7b, 0x80, 0xd9, 0x78, 0x58, 0x3d, 0x8c, + 0x10, 0xaa, 0xc7, 0xc1, 0x64, 0xf7, 0x37, 0x9e, 0xef, 0x8f, 0x28, 0x41, 0xb2, 0x87, 0x0f, 0x22, + 0xc1, 0xc0, 0x8a, 0x7e, 0x5c, 0x30, 0xd0, 0xd9, 0xd8, 0x60, 0x90, 0x2a, 0x28, 0x81, 0x1d, 0xae, + 0x9e, 0x31, 0xb0, 0x43, 0x6a, 0x71, 0xb0, 0x63, 0x6a, 0x9b, 0xfa, 0x19, 0xb8, 0xd5, 0x55, 0xd7, + 0x16, 0x7a, 0x5d, 0x08, 0x81, 0xa3, 0x8a, 0xc9, 0xf4, 0xfc, 0xb3, 0x72, 0xe9, 0x67, 0x97, 0xa7, + 0x4b, 0xca, 0xfa, 0x47, 0x2f, 0xcf, 0xf3, 0x43, 0x67, 0xe7, 0x79, 0xe5, 0xd5, 0x79, 0x5e, 0xf9, + 0xf3, 0x3c, 0xaf, 0xbc, 0xb8, 0xc8, 0x0f, 0xbd, 0xba, 0xc8, 0x0f, 0xbd, 0xbe, 0xc8, 0x0f, 0x7d, + 0xba, 0x52, 0xb7, 0x70, 0xa3, 0x5d, 0x2d, 0xd6, 0x90, 0xad, 0x6f, 0x5a, 0x8e, 0x57, 0x6b, 0x58, + 0x86, 0x7e, 0xc0, 0x3f, 0x68, 0x29, 0x3c, 0x0e, 0x14, 0xc3, 0x6a, 0x86, 0xfe, 0x5b, 0xfc, 0xe8, + 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xae, 0x60, 0x74, 0xcc, 0xdf, 0x16, 0x00, 0x00, } -var xxx_messageInfo_MsgAttach proto.InternalMessageInfo +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 -func (m *MsgAttach) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + // SendFT defines a method to send fungible tokens from one account to another account. + // Fires: + // - EventSent + SendFT(ctx context.Context, in *MsgSendFT, opts ...grpc.CallOption) (*MsgSendFTResponse, error) + // OperatorSendFT defines a method to send fungible tokens from one account to another account by the operator. + // Fires: + // - EventSent + OperatorSendFT(ctx context.Context, in *MsgOperatorSendFT, opts ...grpc.CallOption) (*MsgOperatorSendFTResponse, error) + // SendNFT defines a method to send non-fungible tokens from one account to another account. + // Fires: + // - EventSent + SendNFT(ctx context.Context, in *MsgSendNFT, opts ...grpc.CallOption) (*MsgSendNFTResponse, error) + // OperatorSendNFT defines a method to send non-fungible tokens from one account to another account by the operator. + // Fires: + // - EventSent + OperatorSendNFT(ctx context.Context, in *MsgOperatorSendNFT, opts ...grpc.CallOption) (*MsgOperatorSendNFTResponse, error) + // AuthorizeOperator allows one to send tokens on behalf of the holder. + // Fires: + // - EventAuthorizedOperator + AuthorizeOperator(ctx context.Context, in *MsgAuthorizeOperator, opts ...grpc.CallOption) (*MsgAuthorizeOperatorResponse, error) + // RevokeOperator revokes the authorization of the operator to send the holder's token. + // Fires: + // - EventRevokedOperator + RevokeOperator(ctx context.Context, in *MsgRevokeOperator, opts ...grpc.CallOption) (*MsgRevokeOperatorResponse, error) + // CreateContract defines a method to create a contract for collection. + // it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator. + // Fires: + // - EventCreatedContract + CreateContract(ctx context.Context, in *MsgCreateContract, opts ...grpc.CallOption) (*MsgCreateContractResponse, error) + // IssueFT defines a method to create a class of fungible token. + // Fires: + // - EventCreatedFTClass + // - EventMintedFT + // Note: it does not grant any permissions to its issuer. + IssueFT(ctx context.Context, in *MsgIssueFT, opts ...grpc.CallOption) (*MsgIssueFTResponse, error) + // IssueNFT defines a method to create a class of non-fungible token. + // Fires: + // - EventCreatedNFTClass + // Note: it DOES grant `mint` and `burn` permissions to its issuer. + IssueNFT(ctx context.Context, in *MsgIssueNFT, opts ...grpc.CallOption) (*MsgIssueNFTResponse, error) + // MintFT defines a method to mint fungible tokens. + // Fires: + // - EventMintedFT + MintFT(ctx context.Context, in *MsgMintFT, opts ...grpc.CallOption) (*MsgMintFTResponse, error) + // MintNFT defines a method to mint non-fungible tokens. + // Fires: + // - EventMintedNFT + MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MsgMintNFTResponse, error) + // BurnFT defines a method to burn fungible tokens. + // Fires: + // - EventBurned + BurnFT(ctx context.Context, in *MsgBurnFT, opts ...grpc.CallOption) (*MsgBurnFTResponse, error) + // OperatorBurnFT defines a method to burn fungible tokens of the holder by the operator. + // Fires: + // - EventBurned + OperatorBurnFT(ctx context.Context, in *MsgOperatorBurnFT, opts ...grpc.CallOption) (*MsgOperatorBurnFTResponse, error) + // BurnNFT defines a method to burn non-fungible tokens. + // Fires: + // - EventBurned + BurnNFT(ctx context.Context, in *MsgBurnNFT, opts ...grpc.CallOption) (*MsgBurnNFTResponse, error) + // OperatorBurnNFT defines a method to burn non-fungible tokens of the holder by the operator. + // Fires: + // - EventBurned + OperatorBurnNFT(ctx context.Context, in *MsgOperatorBurnNFT, opts ...grpc.CallOption) (*MsgOperatorBurnNFTResponse, error) + // Modify defines a method to modify metadata. + // Fires: + // - EventModifiedContract + // - EventModifiedTokenClass + // - EventModifiedNFT + Modify(ctx context.Context, in *MsgModify, opts ...grpc.CallOption) (*MsgModifyResponse, error) + // GrantPermission allows one to mint or burn tokens or modify metadata. + // Fires: + // - EventGranted + GrantPermission(ctx context.Context, in *MsgGrantPermission, opts ...grpc.CallOption) (*MsgGrantPermissionResponse, error) + // RevokePermission abandons a permission. + // Fires: + // - EventRenounced + RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error) } -func (m *MsgAttach) GetFrom() string { - if m != nil { - return m.From - } - return "" +type msgClient struct { + cc grpc1.ClientConn } -func (m *MsgAttach) GetTokenId() string { - if m != nil { - return m.TokenId - } - return "" +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} } -func (m *MsgAttach) GetToTokenId() string { - if m != nil { - return m.ToTokenId +func (c *msgClient) SendFT(ctx context.Context, in *MsgSendFT, opts ...grpc.CallOption) (*MsgSendFTResponse, error) { + out := new(MsgSendFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/SendFT", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -// MsgAttachResponse is the Msg/Attach response type. -// -// Deprecated: Do not use. -type MsgAttachResponse struct { +func (c *msgClient) OperatorSendFT(ctx context.Context, in *MsgOperatorSendFT, opts ...grpc.CallOption) (*MsgOperatorSendFTResponse, error) { + out := new(MsgOperatorSendFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorSendFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgAttachResponse) Reset() { *m = MsgAttachResponse{} } -func (m *MsgAttachResponse) String() string { return proto.CompactTextString(m) } -func (*MsgAttachResponse) ProtoMessage() {} -func (*MsgAttachResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{38} -} -func (m *MsgAttachResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgAttachResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgAttachResponse.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 (c *msgClient) SendNFT(ctx context.Context, in *MsgSendNFT, opts ...grpc.CallOption) (*MsgSendNFTResponse, error) { + out := new(MsgSendNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/SendNFT", in, out, opts...) + if err != nil { + return nil, err } + return out, nil } -func (m *MsgAttachResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAttachResponse.Merge(m, src) -} -func (m *MsgAttachResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgAttachResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAttachResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgAttachResponse proto.InternalMessageInfo -// MsgDetach is the Msg/Detach request type. -// -// Deprecated: Do not use. -type MsgDetach struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to detach. - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +func (c *msgClient) OperatorSendNFT(ctx context.Context, in *MsgOperatorSendNFT, opts ...grpc.CallOption) (*MsgOperatorSendNFTResponse, error) { + out := new(MsgOperatorSendNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorSendNFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgDetach) Reset() { *m = MsgDetach{} } -func (m *MsgDetach) String() string { return proto.CompactTextString(m) } -func (*MsgDetach) ProtoMessage() {} -func (*MsgDetach) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{39} -} -func (m *MsgDetach) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgDetach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgDetach.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 (c *msgClient) AuthorizeOperator(ctx context.Context, in *MsgAuthorizeOperator, opts ...grpc.CallOption) (*MsgAuthorizeOperatorResponse, error) { + out := new(MsgAuthorizeOperatorResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/AuthorizeOperator", in, out, opts...) + if err != nil { + return nil, err } -} -func (m *MsgDetach) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDetach.Merge(m, src) -} -func (m *MsgDetach) XXX_Size() int { - return m.Size() -} -func (m *MsgDetach) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDetach.DiscardUnknown(m) + return out, nil } -var xxx_messageInfo_MsgDetach proto.InternalMessageInfo - -func (m *MsgDetach) GetContractId() string { - if m != nil { - return m.ContractId +func (c *msgClient) RevokeOperator(ctx context.Context, in *MsgRevokeOperator, opts ...grpc.CallOption) (*MsgRevokeOperatorResponse, error) { + out := new(MsgRevokeOperatorResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/RevokeOperator", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -func (m *MsgDetach) GetFrom() string { - if m != nil { - return m.From +func (c *msgClient) CreateContract(ctx context.Context, in *MsgCreateContract, opts ...grpc.CallOption) (*MsgCreateContractResponse, error) { + out := new(MsgCreateContractResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/CreateContract", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -func (m *MsgDetach) GetTokenId() string { - if m != nil { - return m.TokenId +func (c *msgClient) IssueFT(ctx context.Context, in *MsgIssueFT, opts ...grpc.CallOption) (*MsgIssueFTResponse, error) { + out := new(MsgIssueFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/IssueFT", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -// MsgDetachResponse is the Msg/Detach response type. -// -// Deprecated: Do not use. -type MsgDetachResponse struct { +func (c *msgClient) IssueNFT(ctx context.Context, in *MsgIssueNFT, opts ...grpc.CallOption) (*MsgIssueNFTResponse, error) { + out := new(MsgIssueNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/IssueNFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgDetachResponse) Reset() { *m = MsgDetachResponse{} } -func (m *MsgDetachResponse) String() string { return proto.CompactTextString(m) } -func (*MsgDetachResponse) ProtoMessage() {} -func (*MsgDetachResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{40} -} -func (m *MsgDetachResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgDetachResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgDetachResponse.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 (c *msgClient) MintFT(ctx context.Context, in *MsgMintFT, opts ...grpc.CallOption) (*MsgMintFTResponse, error) { + out := new(MsgMintFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/MintFT", in, out, opts...) + if err != nil { + return nil, err } + return out, nil } -func (m *MsgDetachResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDetachResponse.Merge(m, src) -} -func (m *MsgDetachResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgDetachResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDetachResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgDetachResponse proto.InternalMessageInfo -// MsgOperatorAttach is the Msg/OperatorAttach request type. -// -// Deprecated: Do not use. -type MsgOperatorAttach struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to attach. - TokenId string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // to token id which one attachs the token to. - ToTokenId string `protobuf:"bytes,5,opt,name=to_token_id,json=toTokenId,proto3" json:"to_token_id,omitempty"` +func (c *msgClient) MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MsgMintNFTResponse, error) { + out := new(MsgMintNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/MintNFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgOperatorAttach) Reset() { *m = MsgOperatorAttach{} } -func (m *MsgOperatorAttach) String() string { return proto.CompactTextString(m) } -func (*MsgOperatorAttach) ProtoMessage() {} -func (*MsgOperatorAttach) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{41} -} -func (m *MsgOperatorAttach) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgOperatorAttach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgOperatorAttach.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 (c *msgClient) BurnFT(ctx context.Context, in *MsgBurnFT, opts ...grpc.CallOption) (*MsgBurnFTResponse, error) { + out := new(MsgBurnFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/BurnFT", in, out, opts...) + if err != nil { + return nil, err } -} -func (m *MsgOperatorAttach) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgOperatorAttach.Merge(m, src) -} -func (m *MsgOperatorAttach) XXX_Size() int { - return m.Size() -} -func (m *MsgOperatorAttach) XXX_DiscardUnknown() { - xxx_messageInfo_MsgOperatorAttach.DiscardUnknown(m) + return out, nil } -var xxx_messageInfo_MsgOperatorAttach proto.InternalMessageInfo +func (c *msgClient) OperatorBurnFT(ctx context.Context, in *MsgOperatorBurnFT, opts ...grpc.CallOption) (*MsgOperatorBurnFTResponse, error) { + out := new(MsgOperatorBurnFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorBurnFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} -func (m *MsgOperatorAttach) GetContractId() string { - if m != nil { - return m.ContractId +func (c *msgClient) BurnNFT(ctx context.Context, in *MsgBurnNFT, opts ...grpc.CallOption) (*MsgBurnNFTResponse, error) { + out := new(MsgBurnNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/BurnNFT", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -func (m *MsgOperatorAttach) GetOperator() string { - if m != nil { - return m.Operator +func (c *msgClient) OperatorBurnNFT(ctx context.Context, in *MsgOperatorBurnNFT, opts ...grpc.CallOption) (*MsgOperatorBurnNFTResponse, error) { + out := new(MsgOperatorBurnNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorBurnNFT", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -func (m *MsgOperatorAttach) GetFrom() string { - if m != nil { - return m.From +func (c *msgClient) Modify(ctx context.Context, in *MsgModify, opts ...grpc.CallOption) (*MsgModifyResponse, error) { + out := new(MsgModifyResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Modify", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -func (m *MsgOperatorAttach) GetTokenId() string { - if m != nil { - return m.TokenId +func (c *msgClient) GrantPermission(ctx context.Context, in *MsgGrantPermission, opts ...grpc.CallOption) (*MsgGrantPermissionResponse, error) { + out := new(MsgGrantPermissionResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/GrantPermission", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -func (m *MsgOperatorAttach) GetToTokenId() string { - if m != nil { - return m.ToTokenId +func (c *msgClient) RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error) { + out := new(MsgRevokePermissionResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/RevokePermission", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -// MsgOperatorAttachResponse is the Msg/OperatorAttach response type. -// -// Deprecated: Do not use. -type MsgOperatorAttachResponse struct { +// MsgServer is the server API for Msg service. +type MsgServer interface { + // SendFT defines a method to send fungible tokens from one account to another account. + // Fires: + // - EventSent + SendFT(context.Context, *MsgSendFT) (*MsgSendFTResponse, error) + // OperatorSendFT defines a method to send fungible tokens from one account to another account by the operator. + // Fires: + // - EventSent + OperatorSendFT(context.Context, *MsgOperatorSendFT) (*MsgOperatorSendFTResponse, error) + // SendNFT defines a method to send non-fungible tokens from one account to another account. + // Fires: + // - EventSent + SendNFT(context.Context, *MsgSendNFT) (*MsgSendNFTResponse, error) + // OperatorSendNFT defines a method to send non-fungible tokens from one account to another account by the operator. + // Fires: + // - EventSent + OperatorSendNFT(context.Context, *MsgOperatorSendNFT) (*MsgOperatorSendNFTResponse, error) + // AuthorizeOperator allows one to send tokens on behalf of the holder. + // Fires: + // - EventAuthorizedOperator + AuthorizeOperator(context.Context, *MsgAuthorizeOperator) (*MsgAuthorizeOperatorResponse, error) + // RevokeOperator revokes the authorization of the operator to send the holder's token. + // Fires: + // - EventRevokedOperator + RevokeOperator(context.Context, *MsgRevokeOperator) (*MsgRevokeOperatorResponse, error) + // CreateContract defines a method to create a contract for collection. + // it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator. + // Fires: + // - EventCreatedContract + CreateContract(context.Context, *MsgCreateContract) (*MsgCreateContractResponse, error) + // IssueFT defines a method to create a class of fungible token. + // Fires: + // - EventCreatedFTClass + // - EventMintedFT + // Note: it does not grant any permissions to its issuer. + IssueFT(context.Context, *MsgIssueFT) (*MsgIssueFTResponse, error) + // IssueNFT defines a method to create a class of non-fungible token. + // Fires: + // - EventCreatedNFTClass + // Note: it DOES grant `mint` and `burn` permissions to its issuer. + IssueNFT(context.Context, *MsgIssueNFT) (*MsgIssueNFTResponse, error) + // MintFT defines a method to mint fungible tokens. + // Fires: + // - EventMintedFT + MintFT(context.Context, *MsgMintFT) (*MsgMintFTResponse, error) + // MintNFT defines a method to mint non-fungible tokens. + // Fires: + // - EventMintedNFT + MintNFT(context.Context, *MsgMintNFT) (*MsgMintNFTResponse, error) + // BurnFT defines a method to burn fungible tokens. + // Fires: + // - EventBurned + BurnFT(context.Context, *MsgBurnFT) (*MsgBurnFTResponse, error) + // OperatorBurnFT defines a method to burn fungible tokens of the holder by the operator. + // Fires: + // - EventBurned + OperatorBurnFT(context.Context, *MsgOperatorBurnFT) (*MsgOperatorBurnFTResponse, error) + // BurnNFT defines a method to burn non-fungible tokens. + // Fires: + // - EventBurned + BurnNFT(context.Context, *MsgBurnNFT) (*MsgBurnNFTResponse, error) + // OperatorBurnNFT defines a method to burn non-fungible tokens of the holder by the operator. + // Fires: + // - EventBurned + OperatorBurnNFT(context.Context, *MsgOperatorBurnNFT) (*MsgOperatorBurnNFTResponse, error) + // Modify defines a method to modify metadata. + // Fires: + // - EventModifiedContract + // - EventModifiedTokenClass + // - EventModifiedNFT + Modify(context.Context, *MsgModify) (*MsgModifyResponse, error) + // GrantPermission allows one to mint or burn tokens or modify metadata. + // Fires: + // - EventGranted + GrantPermission(context.Context, *MsgGrantPermission) (*MsgGrantPermissionResponse, error) + // RevokePermission abandons a permission. + // Fires: + // - EventRenounced + RevokePermission(context.Context, *MsgRevokePermission) (*MsgRevokePermissionResponse, error) } -func (m *MsgOperatorAttachResponse) Reset() { *m = MsgOperatorAttachResponse{} } -func (m *MsgOperatorAttachResponse) String() string { return proto.CompactTextString(m) } -func (*MsgOperatorAttachResponse) ProtoMessage() {} -func (*MsgOperatorAttachResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{42} +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { } -func (m *MsgOperatorAttachResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (*UnimplementedMsgServer) SendFT(ctx context.Context, req *MsgSendFT) (*MsgSendFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendFT not implemented") } -func (m *MsgOperatorAttachResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgOperatorAttachResponse.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 (*UnimplementedMsgServer) OperatorSendFT(ctx context.Context, req *MsgOperatorSendFT) (*MsgOperatorSendFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperatorSendFT not implemented") } -func (m *MsgOperatorAttachResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgOperatorAttachResponse.Merge(m, src) +func (*UnimplementedMsgServer) SendNFT(ctx context.Context, req *MsgSendNFT) (*MsgSendNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendNFT not implemented") } -func (m *MsgOperatorAttachResponse) XXX_Size() int { - return m.Size() +func (*UnimplementedMsgServer) OperatorSendNFT(ctx context.Context, req *MsgOperatorSendNFT) (*MsgOperatorSendNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperatorSendNFT not implemented") } -func (m *MsgOperatorAttachResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgOperatorAttachResponse.DiscardUnknown(m) +func (*UnimplementedMsgServer) AuthorizeOperator(ctx context.Context, req *MsgAuthorizeOperator) (*MsgAuthorizeOperatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AuthorizeOperator not implemented") } - -var xxx_messageInfo_MsgOperatorAttachResponse proto.InternalMessageInfo - -// MsgOperatorDetach is the Msg/OperatorDetach request type. -// -// Deprecated: Do not use. -type MsgOperatorDetach struct { - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to detach. - TokenId string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +func (*UnimplementedMsgServer) RevokeOperator(ctx context.Context, req *MsgRevokeOperator) (*MsgRevokeOperatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RevokeOperator not implemented") } - -func (m *MsgOperatorDetach) Reset() { *m = MsgOperatorDetach{} } -func (m *MsgOperatorDetach) String() string { return proto.CompactTextString(m) } -func (*MsgOperatorDetach) ProtoMessage() {} -func (*MsgOperatorDetach) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{43} +func (*UnimplementedMsgServer) CreateContract(ctx context.Context, req *MsgCreateContract) (*MsgCreateContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateContract not implemented") } -func (m *MsgOperatorDetach) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +func (*UnimplementedMsgServer) IssueFT(ctx context.Context, req *MsgIssueFT) (*MsgIssueFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IssueFT not implemented") } -func (m *MsgOperatorDetach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgOperatorDetach.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 (*UnimplementedMsgServer) IssueNFT(ctx context.Context, req *MsgIssueNFT) (*MsgIssueNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IssueNFT not implemented") } -func (m *MsgOperatorDetach) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgOperatorDetach.Merge(m, src) +func (*UnimplementedMsgServer) MintFT(ctx context.Context, req *MsgMintFT) (*MsgMintFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MintFT not implemented") } -func (m *MsgOperatorDetach) XXX_Size() int { - return m.Size() +func (*UnimplementedMsgServer) MintNFT(ctx context.Context, req *MsgMintNFT) (*MsgMintNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MintNFT not implemented") +} +func (*UnimplementedMsgServer) BurnFT(ctx context.Context, req *MsgBurnFT) (*MsgBurnFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BurnFT not implemented") +} +func (*UnimplementedMsgServer) OperatorBurnFT(ctx context.Context, req *MsgOperatorBurnFT) (*MsgOperatorBurnFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperatorBurnFT not implemented") +} +func (*UnimplementedMsgServer) BurnNFT(ctx context.Context, req *MsgBurnNFT) (*MsgBurnNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BurnNFT not implemented") +} +func (*UnimplementedMsgServer) OperatorBurnNFT(ctx context.Context, req *MsgOperatorBurnNFT) (*MsgOperatorBurnNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperatorBurnNFT not implemented") +} +func (*UnimplementedMsgServer) Modify(ctx context.Context, req *MsgModify) (*MsgModifyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Modify not implemented") +} +func (*UnimplementedMsgServer) GrantPermission(ctx context.Context, req *MsgGrantPermission) (*MsgGrantPermissionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GrantPermission not implemented") } -func (m *MsgOperatorDetach) XXX_DiscardUnknown() { - xxx_messageInfo_MsgOperatorDetach.DiscardUnknown(m) +func (*UnimplementedMsgServer) RevokePermission(ctx context.Context, req *MsgRevokePermission) (*MsgRevokePermissionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RevokePermission not implemented") } -var xxx_messageInfo_MsgOperatorDetach proto.InternalMessageInfo +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} -func (m *MsgOperatorDetach) GetContractId() string { - if m != nil { - return m.ContractId +func _Msg_SendFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSendFT) + if err := dec(in); err != nil { + return nil, err } - return "" + if interceptor == nil { + return srv.(MsgServer).SendFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/SendFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SendFT(ctx, req.(*MsgSendFT)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgOperatorDetach) GetOperator() string { - if m != nil { - return m.Operator +func _Msg_OperatorSendFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOperatorSendFT) + if err := dec(in); err != nil { + return nil, err } - return "" + if interceptor == nil { + return srv.(MsgServer).OperatorSendFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/OperatorSendFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OperatorSendFT(ctx, req.(*MsgOperatorSendFT)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgOperatorDetach) GetFrom() string { - if m != nil { - return m.From +func _Msg_SendNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSendNFT) + if err := dec(in); err != nil { + return nil, err } - return "" + if interceptor == nil { + return srv.(MsgServer).SendNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/SendNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SendNFT(ctx, req.(*MsgSendNFT)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgOperatorDetach) GetTokenId() string { - if m != nil { - return m.TokenId +func _Msg_OperatorSendNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOperatorSendNFT) + if err := dec(in); err != nil { + return nil, err } - return "" + if interceptor == nil { + return srv.(MsgServer).OperatorSendNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/OperatorSendNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OperatorSendNFT(ctx, req.(*MsgOperatorSendNFT)) + } + return interceptor(ctx, in, info, handler) } -// MsgOperatorDetachResponse is the Msg/OperatorDetach response type. -// -// Deprecated: Do not use. -type MsgOperatorDetachResponse struct { +func _Msg_AuthorizeOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAuthorizeOperator) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AuthorizeOperator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/AuthorizeOperator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AuthorizeOperator(ctx, req.(*MsgAuthorizeOperator)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgOperatorDetachResponse) Reset() { *m = MsgOperatorDetachResponse{} } -func (m *MsgOperatorDetachResponse) String() string { return proto.CompactTextString(m) } -func (*MsgOperatorDetachResponse) ProtoMessage() {} -func (*MsgOperatorDetachResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{44} -} -func (m *MsgOperatorDetachResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgOperatorDetachResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgOperatorDetachResponse.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 _Msg_RevokeOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRevokeOperator) + if err := dec(in); err != nil { + return nil, err } + if interceptor == nil { + return srv.(MsgServer).RevokeOperator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/RevokeOperator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RevokeOperator(ctx, req.(*MsgRevokeOperator)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgOperatorDetachResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgOperatorDetachResponse.Merge(m, src) -} -func (m *MsgOperatorDetachResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgOperatorDetachResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgOperatorDetachResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgOperatorDetachResponse proto.InternalMessageInfo -func init() { - proto.RegisterType((*MsgSendFT)(nil), "lbm.collection.v1.MsgSendFT") - proto.RegisterType((*MsgSendFTResponse)(nil), "lbm.collection.v1.MsgSendFTResponse") - proto.RegisterType((*MsgOperatorSendFT)(nil), "lbm.collection.v1.MsgOperatorSendFT") - proto.RegisterType((*MsgOperatorSendFTResponse)(nil), "lbm.collection.v1.MsgOperatorSendFTResponse") - proto.RegisterType((*MsgSendNFT)(nil), "lbm.collection.v1.MsgSendNFT") - proto.RegisterType((*MsgSendNFTResponse)(nil), "lbm.collection.v1.MsgSendNFTResponse") - proto.RegisterType((*MsgOperatorSendNFT)(nil), "lbm.collection.v1.MsgOperatorSendNFT") - proto.RegisterType((*MsgOperatorSendNFTResponse)(nil), "lbm.collection.v1.MsgOperatorSendNFTResponse") - proto.RegisterType((*MsgAuthorizeOperator)(nil), "lbm.collection.v1.MsgAuthorizeOperator") - proto.RegisterType((*MsgAuthorizeOperatorResponse)(nil), "lbm.collection.v1.MsgAuthorizeOperatorResponse") - proto.RegisterType((*MsgRevokeOperator)(nil), "lbm.collection.v1.MsgRevokeOperator") - proto.RegisterType((*MsgRevokeOperatorResponse)(nil), "lbm.collection.v1.MsgRevokeOperatorResponse") - proto.RegisterType((*MsgCreateContract)(nil), "lbm.collection.v1.MsgCreateContract") - proto.RegisterType((*MsgCreateContractResponse)(nil), "lbm.collection.v1.MsgCreateContractResponse") - proto.RegisterType((*MsgIssueFT)(nil), "lbm.collection.v1.MsgIssueFT") - proto.RegisterType((*MsgIssueFTResponse)(nil), "lbm.collection.v1.MsgIssueFTResponse") - proto.RegisterType((*MsgIssueNFT)(nil), "lbm.collection.v1.MsgIssueNFT") - proto.RegisterType((*MsgIssueNFTResponse)(nil), "lbm.collection.v1.MsgIssueNFTResponse") - proto.RegisterType((*MsgMintFT)(nil), "lbm.collection.v1.MsgMintFT") - proto.RegisterType((*MsgMintFTResponse)(nil), "lbm.collection.v1.MsgMintFTResponse") - proto.RegisterType((*MsgMintNFT)(nil), "lbm.collection.v1.MsgMintNFT") - proto.RegisterType((*MsgMintNFTResponse)(nil), "lbm.collection.v1.MsgMintNFTResponse") - proto.RegisterType((*MintNFTParam)(nil), "lbm.collection.v1.MintNFTParam") - proto.RegisterType((*MsgBurnFT)(nil), "lbm.collection.v1.MsgBurnFT") - proto.RegisterType((*MsgBurnFTResponse)(nil), "lbm.collection.v1.MsgBurnFTResponse") - proto.RegisterType((*MsgOperatorBurnFT)(nil), "lbm.collection.v1.MsgOperatorBurnFT") - proto.RegisterType((*MsgOperatorBurnFTResponse)(nil), "lbm.collection.v1.MsgOperatorBurnFTResponse") - proto.RegisterType((*MsgBurnNFT)(nil), "lbm.collection.v1.MsgBurnNFT") - proto.RegisterType((*MsgBurnNFTResponse)(nil), "lbm.collection.v1.MsgBurnNFTResponse") - proto.RegisterType((*MsgOperatorBurnNFT)(nil), "lbm.collection.v1.MsgOperatorBurnNFT") - proto.RegisterType((*MsgOperatorBurnNFTResponse)(nil), "lbm.collection.v1.MsgOperatorBurnNFTResponse") - proto.RegisterType((*MsgModify)(nil), "lbm.collection.v1.MsgModify") - proto.RegisterType((*MsgModifyResponse)(nil), "lbm.collection.v1.MsgModifyResponse") - proto.RegisterType((*MsgGrantPermission)(nil), "lbm.collection.v1.MsgGrantPermission") - proto.RegisterType((*MsgGrantPermissionResponse)(nil), "lbm.collection.v1.MsgGrantPermissionResponse") - proto.RegisterType((*MsgRevokePermission)(nil), "lbm.collection.v1.MsgRevokePermission") - proto.RegisterType((*MsgRevokePermissionResponse)(nil), "lbm.collection.v1.MsgRevokePermissionResponse") - proto.RegisterType((*MsgAttach)(nil), "lbm.collection.v1.MsgAttach") - proto.RegisterType((*MsgAttachResponse)(nil), "lbm.collection.v1.MsgAttachResponse") - proto.RegisterType((*MsgDetach)(nil), "lbm.collection.v1.MsgDetach") - proto.RegisterType((*MsgDetachResponse)(nil), "lbm.collection.v1.MsgDetachResponse") - proto.RegisterType((*MsgOperatorAttach)(nil), "lbm.collection.v1.MsgOperatorAttach") - proto.RegisterType((*MsgOperatorAttachResponse)(nil), "lbm.collection.v1.MsgOperatorAttachResponse") - proto.RegisterType((*MsgOperatorDetach)(nil), "lbm.collection.v1.MsgOperatorDetach") - proto.RegisterType((*MsgOperatorDetachResponse)(nil), "lbm.collection.v1.MsgOperatorDetachResponse") +func _Msg_CreateContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateContract) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/CreateContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateContract(ctx, req.(*MsgCreateContract)) + } + return interceptor(ctx, in, info, handler) } -func init() { proto.RegisterFile("lbm/collection/v1/tx.proto", fileDescriptor_eaee77977a3cfe12) } +func _Msg_IssueFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgIssueFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).IssueFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/IssueFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).IssueFT(ctx, req.(*MsgIssueFT)) + } + return interceptor(ctx, in, info, handler) +} -var fileDescriptor_eaee77977a3cfe12 = []byte{ - // 1623 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xcd, 0x6f, 0x1b, 0x45, - 0x1b, 0xcf, 0xfa, 0x2b, 0xc9, 0xe4, 0x7d, 0xdb, 0x66, 0x1b, 0xa8, 0xe3, 0x26, 0x76, 0x58, 0x35, - 0x6d, 0xd4, 0x3a, 0xb6, 0xda, 0x06, 0x21, 0x59, 0x05, 0x29, 0x09, 0x0a, 0x8a, 0x68, 0xd2, 0xca, - 0x0d, 0x17, 0x2e, 0xd1, 0xc6, 0xbb, 0xb5, 0x97, 0x78, 0x77, 0xac, 0xdd, 0x71, 0x69, 0x39, 0x55, - 0x3d, 0x22, 0x21, 0xf5, 0x88, 0x84, 0x84, 0x38, 0x70, 0xa8, 0x38, 0xa0, 0x80, 0x7a, 0xe0, 0xc8, - 0xb1, 0xc7, 0xaa, 0xa7, 0x8a, 0x43, 0x41, 0xe9, 0xa1, 0x27, 0x2e, 0xfc, 0x05, 0x68, 0x76, 0x9e, - 0x1d, 0xef, 0xac, 0x77, 0xd6, 0x9b, 0x12, 0xca, 0x25, 0xf2, 0xcc, 0x3c, 0x33, 0xf3, 0xfb, 0x3d, - 0xdf, 0x3b, 0x41, 0xa5, 0xee, 0x9e, 0x5d, 0x6f, 0xe1, 0x6e, 0xd7, 0x6c, 0x11, 0x0b, 0x3b, 0xf5, - 0x3b, 0x97, 0xeb, 0xe4, 0x6e, 0xad, 0xe7, 0x62, 0x82, 0xd5, 0xe9, 0xee, 0x9e, 0x5d, 0x1b, 0xac, - 0xd5, 0xee, 0x5c, 0x2e, 0xcd, 0xb4, 0x71, 0x1b, 0xfb, 0xab, 0x75, 0xfa, 0x8b, 0x09, 0x96, 0xce, - 0xb4, 0xb0, 0x67, 0x63, 0xaf, 0x6e, 0x7b, 0x6d, 0x7a, 0x80, 0xed, 0xb5, 0x61, 0x61, 0x96, 0x2d, - 0xec, 0xb2, 0x1d, 0x6c, 0x00, 0x4b, 0xd3, 0xba, 0x6d, 0x39, 0xb8, 0xee, 0xff, 0x85, 0x29, 0x6d, - 0x18, 0x4b, 0xe8, 0x76, 0x5f, 0x46, 0x7b, 0xa4, 0xa0, 0xc9, 0x2d, 0xaf, 0x7d, 0xcb, 0x74, 0x8c, - 0x8d, 0x1d, 0xb5, 0x82, 0xa6, 0x5a, 0xd8, 0x21, 0xae, 0xde, 0x22, 0xbb, 0x96, 0x51, 0x54, 0x16, - 0x94, 0xa5, 0xc9, 0x26, 0x0a, 0xa6, 0x36, 0x0d, 0x55, 0x45, 0xb9, 0xdb, 0x2e, 0xb6, 0x8b, 0x19, - 0x7f, 0xc5, 0xff, 0xad, 0x9e, 0x40, 0x19, 0x82, 0x8b, 0x59, 0x7f, 0x26, 0x43, 0xb0, 0xfa, 0x2e, - 0x2a, 0xe8, 0x36, 0xee, 0x3b, 0xa4, 0x98, 0x5b, 0xc8, 0x2e, 0x4d, 0x5d, 0x39, 0x53, 0x1b, 0xe2, - 0x5d, 0x5b, 0xc7, 0x96, 0xb3, 0x96, 0x7b, 0xf2, 0xa2, 0x32, 0xd6, 0x04, 0xe1, 0x46, 0xe5, 0xc1, - 0xab, 0x83, 0x8b, 0xfe, 0x89, 0x5f, 0xbe, 0x3a, 0xb8, 0x48, 0x75, 0xb5, 0xec, 0x19, 0xfb, 0x75, - 0x0e, 0x4e, 0x3b, 0x8d, 0xa6, 0xf9, 0xa0, 0x69, 0x7a, 0x3d, 0xec, 0x78, 0xa6, 0xf6, 0x5c, 0xf1, - 0x67, 0x6f, 0xf4, 0x4c, 0x57, 0x27, 0xd8, 0x4d, 0xcb, 0xa3, 0x84, 0x26, 0x30, 0x6c, 0x01, 0x2e, - 0x7c, 0xcc, 0x39, 0x66, 0x87, 0x38, 0xe6, 0x62, 0x38, 0xe6, 0x8f, 0xc2, 0xf1, 0x12, 0xe5, 0xc8, - 0x6f, 0xa2, 0x3c, 0x67, 0x43, 0x3c, 0x45, 0x12, 0xda, 0x59, 0x34, 0x3b, 0x34, 0xc9, 0x79, 0x3f, - 0x54, 0x10, 0x02, 0x6d, 0x6c, 0x1f, 0x97, 0xe1, 0xce, 0xa2, 0x49, 0x82, 0xf7, 0x4d, 0x67, 0xd7, - 0x32, 0x3c, 0xdf, 0x76, 0x93, 0xcd, 0x09, 0x7f, 0x62, 0xd3, 0xf0, 0x1a, 0x0b, 0x82, 0x79, 0xd4, - 0x88, 0x79, 0xb6, 0x37, 0x76, 0xb4, 0x19, 0xa4, 0x0e, 0x46, 0x1c, 0xe8, 0xaf, 0x8a, 0x3f, 0x1d, - 0xa6, 0xb1, 0xfd, 0x26, 0x2c, 0x24, 0x90, 0xc9, 0x47, 0xc8, 0x54, 0x87, 0xec, 0x50, 0x92, 0xd8, - 0x81, 0x12, 0x9b, 0x43, 0xa5, 0xe1, 0x59, 0x4e, 0xf0, 0x7b, 0x05, 0xcd, 0x6c, 0x79, 0xed, 0xd5, - 0x3e, 0xe9, 0x60, 0xd7, 0xfa, 0xc2, 0x0c, 0xe4, 0x46, 0x53, 0x7c, 0x1b, 0x15, 0x3a, 0xb8, 0x6b, - 0x98, 0x01, 0x41, 0x18, 0x09, 0xd4, 0xb3, 0x22, 0xf5, 0xc6, 0x7b, 0x14, 0x39, 0x08, 0x52, 0xdc, - 0x17, 0x02, 0xdc, 0xa1, 0x38, 0x8f, 0x43, 0xa3, 0x95, 0xd1, 0x5c, 0xdc, 0x3c, 0xa7, 0xf1, 0x2d, - 0x0b, 0xa4, 0xa6, 0x79, 0x07, 0xef, 0xff, 0xcb, 0x1c, 0x56, 0x22, 0x1c, 0xce, 0xc5, 0x73, 0x10, - 0xa1, 0x40, 0x38, 0x88, 0x93, 0x1c, 0xfd, 0x57, 0x0c, 0xfd, 0xba, 0x6b, 0xea, 0xc4, 0x5c, 0x07, - 0x78, 0xea, 0x0c, 0xca, 0xe3, 0xcf, 0x1d, 0xd3, 0x05, 0xdc, 0x6c, 0x40, 0xbd, 0xc7, 0xd1, 0x6d, - 0x33, 0x08, 0x05, 0xfa, 0x5b, 0x3d, 0x85, 0xb2, 0x7d, 0xd7, 0x02, 0xa4, 0xf4, 0x27, 0x95, 0xb2, - 0x4d, 0xa2, 0x83, 0x47, 0xf9, 0xbf, 0x1b, 0x4b, 0x14, 0x38, 0x3b, 0x25, 0x1a, 0xbb, 0xe2, 0xcd, - 0xda, 0x35, 0x1f, 0xac, 0x38, 0x19, 0x80, 0x1d, 0xa9, 0x54, 0xed, 0x9b, 0x8c, 0x1f, 0xdc, 0x9b, - 0x9e, 0xd7, 0x37, 0x53, 0x06, 0xf7, 0x10, 0xa3, 0x00, 0x7f, 0x76, 0x80, 0x9f, 0x1a, 0xc5, 0x30, - 0x5b, 0x96, 0xad, 0x77, 0x3d, 0x9f, 0x57, 0xbe, 0xc9, 0xc7, 0x74, 0xcd, 0xb6, 0x1c, 0xa2, 0xef, - 0x75, 0xcd, 0x62, 0x7e, 0x41, 0x59, 0x9a, 0x68, 0xf2, 0xf1, 0x40, 0x8f, 0x85, 0xb0, 0x1e, 0x59, - 0xc4, 0x8d, 0xf3, 0x88, 0x5b, 0xe7, 0x39, 0x71, 0x82, 0xce, 0xad, 0x5d, 0xa2, 0xa9, 0xef, 0xb7, - 0x17, 0x95, 0xb7, 0x58, 0x9d, 0xf2, 0x8c, 0xfd, 0x9a, 0x85, 0xeb, 0xb6, 0x4e, 0x3a, 0xb5, 0x4d, - 0x87, 0x3c, 0x7b, 0xbc, 0x8c, 0xa0, 0x80, 0x6d, 0x3a, 0x84, 0x67, 0xc8, 0x77, 0x44, 0x15, 0x87, - 0xf3, 0x0c, 0xa8, 0x43, 0xab, 0xfb, 0x09, 0x05, 0x46, 0x5c, 0xa9, 0xb3, 0x68, 0x22, 0x88, 0x77, - 0xd0, 0xd0, 0x38, 0x84, 0x3b, 0xcd, 0x95, 0x53, 0xc1, 0x8e, 0xed, 0xe3, 0xd4, 0x27, 0xd7, 0x4b, - 0x2e, 0xa4, 0x97, 0x86, 0x26, 0x52, 0x38, 0x1d, 0xa5, 0x40, 0x53, 0xca, 0x0a, 0x3a, 0x1d, 0x1a, - 0x72, 0x12, 0xf3, 0x08, 0x31, 0x12, 0xe4, 0x5e, 0xcf, 0x04, 0x60, 0x2c, 0x8d, 0xed, 0xdc, 0xeb, - 0x99, 0xda, 0x4f, 0xac, 0x58, 0x6f, 0x59, 0x0e, 0x39, 0xae, 0x9c, 0xff, 0x41, 0xda, 0x62, 0xfd, - 0x7f, 0x6a, 0xcd, 0x1f, 0x7e, 0xaf, 0xe4, 0xe9, 0xc8, 0x4b, 0x51, 0xb5, 0x19, 0x4a, 0xa8, 0xda, - 0x6c, 0xc0, 0xc3, 0xf5, 0x67, 0x56, 0xbd, 0xe8, 0xec, 0xb1, 0x55, 0xaf, 0xf7, 0x51, 0xa1, 0xa7, - 0xbb, 0xba, 0xed, 0x01, 0x93, 0x4a, 0x0c, 0x13, 0xb8, 0xf0, 0x26, 0x95, 0x0b, 0x4a, 0x33, 0xdb, - 0x94, 0x50, 0xdf, 0x60, 0x93, 0x76, 0xd9, 0xf7, 0x3b, 0x18, 0x71, 0x93, 0x09, 0x75, 0x46, 0x11, - 0xeb, 0x8c, 0xf6, 0x09, 0xfa, 0x5f, 0xf8, 0xca, 0x11, 0xf6, 0x4d, 0xeb, 0x77, 0xda, 0xd7, 0xcc, - 0x0f, 0xd6, 0xfa, 0xae, 0xf3, 0xba, 0xda, 0x1b, 0x34, 0x30, 0xd9, 0xe3, 0x69, 0xd2, 0x18, 0x18, - 0x30, 0x37, 0x1b, 0x70, 0x73, 0x3f, 0x11, 0x9b, 0xb4, 0xb4, 0xb8, 0x8f, 0xda, 0x02, 0xbc, 0x66, - 0xe3, 0x99, 0xae, 0x29, 0x03, 0x7e, 0x62, 0x53, 0x16, 0xe1, 0x79, 0x9f, 0xb9, 0x35, 0x9d, 0x7d, - 0x6d, 0xb7, 0x16, 0xfc, 0x29, 0x9b, 0xba, 0x09, 0x83, 0x3b, 0xa1, 0x09, 0x83, 0x11, 0x07, 0x76, - 0x20, 0x36, 0x61, 0xa9, 0x01, 0x1e, 0xd5, 0x02, 0x89, 0x1d, 0x64, 0xba, 0xa6, 0x2b, 0x20, 0x22, - 0x36, 0x5d, 0x51, 0x42, 0x7f, 0x42, 0x26, 0xc4, 0x86, 0x75, 0xfb, 0xde, 0x68, 0x1e, 0x3c, 0x51, - 0x67, 0xc2, 0x05, 0x4c, 0x8c, 0xc6, 0x6c, 0x34, 0x1a, 0x2b, 0x68, 0x0a, 0xc8, 0x38, 0x86, 0x79, - 0x17, 0x72, 0x3c, 0xdb, 0xb1, 0x49, 0x67, 0xd4, 0x6b, 0x68, 0xbc, 0xd5, 0xd1, 0x9d, 0xb6, 0xe9, - 0xc1, 0x57, 0xc0, 0x5c, 0x8c, 0xc3, 0xad, 0x12, 0xe2, 0x5a, 0x7b, 0x7d, 0x62, 0x82, 0xd7, 0x05, - 0x5b, 0x98, 0xdb, 0x0d, 0xca, 0xc4, 0x5c, 0x7c, 0x13, 0xc4, 0x18, 0x06, 0x59, 0xd4, 0x1f, 0x70, - 0x25, 0xfc, 0xc8, 0xac, 0xfa, 0x91, 0xab, 0x3b, 0xe4, 0xa6, 0xe9, 0xda, 0x96, 0xe7, 0x59, 0xd8, - 0x39, 0x9e, 0x6c, 0x5a, 0x46, 0xa8, 0xc7, 0x8f, 0x0c, 0xb8, 0x0f, 0x66, 0x1a, 0x57, 0x05, 0x4f, - 0x5c, 0x8c, 0x07, 0x1f, 0x41, 0x06, 0x36, 0x8d, 0xcc, 0x72, 0x3a, 0xdf, 0x29, 0x7e, 0x51, 0x64, - 0x1d, 0xde, 0x3f, 0xe5, 0x23, 0xe2, 0xcf, 0x0e, 0xe1, 0x5f, 0x11, 0xf0, 0x9f, 0x4f, 0xea, 0x40, - 0x43, 0x04, 0xe6, 0xd1, 0xd9, 0x98, 0x69, 0xce, 0xe0, 0x17, 0xe6, 0x95, 0xab, 0x84, 0xe8, 0xad, - 0xce, 0x68, 0xdc, 0xd5, 0x30, 0xee, 0xb5, 0xe2, 0xb3, 0xc7, 0xcb, 0x33, 0xd0, 0x11, 0xad, 0x1a, - 0x86, 0x6b, 0x7a, 0xde, 0x2d, 0xe2, 0x5a, 0x4e, 0x1b, 0x18, 0x85, 0x1b, 0x9c, 0xac, 0xd0, 0xe0, - 0xa8, 0x65, 0xea, 0xa9, 0xbb, 0x7c, 0x35, 0x17, 0x78, 0xf2, 0x0e, 0x5b, 0x67, 0x4d, 0x55, 0x6c, - 0xd6, 0x66, 0x50, 0x8b, 0x8a, 0x76, 0xc6, 0x77, 0x30, 0x36, 0x0c, 0xf8, 0x34, 0x32, 0x45, 0x25, - 0xa8, 0x35, 0x1f, 0x9a, 0x6f, 0x96, 0x53, 0x02, 0x66, 0x06, 0x85, 0x63, 0x66, 0x43, 0x01, 0xf3, - 0x83, 0x8c, 0x50, 0x6f, 0xd2, 0xda, 0x63, 0x25, 0x9a, 0xed, 0x12, 0xf0, 0x0f, 0xf2, 0x60, 0x35, - 0x9c, 0x07, 0x8f, 0xc4, 0x38, 0x97, 0x68, 0xc5, 0x7c, 0xd4, 0x8a, 0xcb, 0xa9, 0xea, 0x14, 0xb7, - 0x68, 0x45, 0xa8, 0x54, 0x31, 0x96, 0x3d, 0x14, 0xab, 0x72, 0x5a, 0x0b, 0xff, 0xb7, 0x5a, 0x4a, - 0xa9, 0x05, 0xee, 0x23, 0xa2, 0x16, 0x86, 0x7d, 0xe5, 0xca, 0x5f, 0x27, 0x51, 0x76, 0xcb, 0x6b, - 0xab, 0xd7, 0x51, 0x01, 0x1e, 0x8f, 0xe2, 0xb2, 0x38, 0x7f, 0x78, 0x2a, 0x9d, 0x4b, 0x5a, 0xe5, - 0x5d, 0xa1, 0x81, 0x4e, 0x44, 0x9e, 0xa4, 0x24, 0xfb, 0x44, 0xa9, 0x52, 0x35, 0x8d, 0x14, 0xbf, - 0xe5, 0x06, 0x1a, 0x0f, 0xde, 0x53, 0xe6, 0xe5, 0xb0, 0xb6, 0x37, 0x76, 0x4a, 0x8b, 0x89, 0xcb, - 0xfc, 0xc0, 0x36, 0x3a, 0x19, 0x7d, 0xa8, 0x59, 0x1c, 0x8d, 0x88, 0x5e, 0xb0, 0x9c, 0x4a, 0x8c, - 0x5f, 0x64, 0xa3, 0xe9, 0xe1, 0x07, 0x93, 0x0b, 0xf1, 0x67, 0x0c, 0x09, 0x96, 0xea, 0x29, 0x05, - 0xc3, 0xe6, 0x88, 0x3c, 0x6c, 0x48, 0xcc, 0x21, 0x4a, 0xc9, 0xcc, 0x11, 0xff, 0x08, 0x41, 0x6f, - 0x89, 0x3c, 0x40, 0x48, 0x6e, 0x11, 0xa5, 0x64, 0xb7, 0x48, 0x5e, 0x0f, 0x6e, 0xa0, 0xf1, 0xe0, - 0x61, 0x40, 0x62, 0x74, 0x58, 0x96, 0x19, 0x3d, 0xfa, 0xe5, 0xdc, 0x44, 0x13, 0xfc, 0xd3, 0xb8, - 0x9c, 0xb0, 0x85, 0x9a, 0xf9, 0x7c, 0xf2, 0x3a, 0x3f, 0xf3, 0x3a, 0x2a, 0xc0, 0x57, 0xaa, 0x24, - 0x9a, 0xd8, 0xaa, 0x2c, 0x9a, 0xc4, 0xcf, 0x45, 0x4a, 0x39, 0xf8, 0x54, 0x9c, 0x97, 0x6f, 0x48, - 0xf0, 0xf3, 0xe8, 0x47, 0xdb, 0x75, 0x54, 0x80, 0x8f, 0x10, 0x09, 0x3c, 0xb6, 0x2a, 0x83, 0x27, - 0xb6, 0xfd, 0xe1, 0x60, 0x87, 0x53, 0x47, 0x04, 0x3b, 0x9c, 0x5e, 0x4d, 0x23, 0x15, 0x56, 0x42, - 0xd0, 0xb7, 0xcf, 0xcb, 0x61, 0x25, 0x28, 0x21, 0xd2, 0x43, 0x87, 0x83, 0x3d, 0x38, 0x78, 0x71, - 0x34, 0xa2, 0x14, 0xc1, 0x1e, 0xbd, 0x88, 0x3a, 0x03, 0x6b, 0xd4, 0x65, 0xce, 0xe0, 0xaf, 0x4a, - 0x9d, 0x41, 0xe8, 0x7a, 0x29, 0xec, 0x68, 0xc7, 0x2b, 0x81, 0x1d, 0x11, 0x93, 0xc1, 0x96, 0xf4, - 0xa3, 0xea, 0x67, 0xe8, 0xd4, 0x50, 0x2f, 0x7a, 0x3e, 0x29, 0x21, 0x84, 0xae, 0xaa, 0xa5, 0x93, - 0x0b, 0xab, 0x08, 0xba, 0x14, 0x89, 0x8a, 0xd8, 0xaa, 0x4c, 0x45, 0x62, 0x75, 0xa7, 0xa7, 0x41, - 0x35, 0x97, 0x9c, 0xc6, 0x56, 0x65, 0xa7, 0x89, 0x55, 0x32, 0xec, 0xde, 0x80, 0x71, 0x84, 0x7b, - 0x03, 0xd6, 0x6a, 0x1a, 0xa9, 0xb8, 0x5b, 0x00, 0xfb, 0x88, 0x5b, 0x80, 0x43, 0x35, 0x8d, 0x54, - 0x70, 0x4b, 0x29, 0x7f, 0xff, 0xd5, 0xc1, 0x45, 0x65, 0xed, 0xe3, 0x47, 0x87, 0xe5, 0xb1, 0x27, - 0x87, 0x65, 0xe5, 0xe9, 0x61, 0x59, 0xf9, 0xe3, 0xb0, 0xac, 0x3c, 0x7c, 0x59, 0x1e, 0x7b, 0xfa, - 0xb2, 0x3c, 0xf6, 0xfc, 0x65, 0x79, 0xec, 0xd3, 0xe5, 0xb6, 0x45, 0x3a, 0xfd, 0xbd, 0x5a, 0x0b, - 0xdb, 0xf5, 0x0d, 0xcb, 0xf1, 0x5a, 0x1d, 0x4b, 0xaf, 0xdf, 0x86, 0x1f, 0x7e, 0xa7, 0x71, 0x37, - 0xf4, 0xa1, 0xb0, 0x57, 0xf0, 0xff, 0x93, 0x76, 0xf5, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x99, - 0x06, 0x11, 0x9d, 0xfb, 0x1b, 0x00, 0x00, +func _Msg_IssueNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgIssueNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).IssueNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/IssueNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).IssueNFT(ctx, req.(*MsgIssueNFT)) + } + return interceptor(ctx, in, info, handler) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +func _Msg_MintFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgMintFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).MintFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/MintFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).MintFT(ctx, req.(*MsgMintFT)) + } + return interceptor(ctx, in, info, handler) +} -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MsgClient interface { - // SendFT defines a method to send fungible tokens from one account to another account. - // Fires: - // - EventSent - SendFT(ctx context.Context, in *MsgSendFT, opts ...grpc.CallOption) (*MsgSendFTResponse, error) - // OperatorSendFT defines a method to send fungible tokens from one account to another account by the operator. - // Fires: - // - EventSent - OperatorSendFT(ctx context.Context, in *MsgOperatorSendFT, opts ...grpc.CallOption) (*MsgOperatorSendFTResponse, error) - // SendNFT defines a method to send non-fungible tokens from one account to another account. - // Fires: - // - EventSent - SendNFT(ctx context.Context, in *MsgSendNFT, opts ...grpc.CallOption) (*MsgSendNFTResponse, error) - // OperatorSendNFT defines a method to send non-fungible tokens from one account to another account by the operator. - // Fires: - // - EventSent - OperatorSendNFT(ctx context.Context, in *MsgOperatorSendNFT, opts ...grpc.CallOption) (*MsgOperatorSendNFTResponse, error) - // AuthorizeOperator allows one to send tokens on behalf of the holder. - // Fires: - // - EventAuthorizedOperator - AuthorizeOperator(ctx context.Context, in *MsgAuthorizeOperator, opts ...grpc.CallOption) (*MsgAuthorizeOperatorResponse, error) - // RevokeOperator revokes the authorization of the operator to send the holder's token. - // Fires: - // - EventRevokedOperator - RevokeOperator(ctx context.Context, in *MsgRevokeOperator, opts ...grpc.CallOption) (*MsgRevokeOperatorResponse, error) - // CreateContract defines a method to create a contract for collection. - // it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator. - // Fires: - // - EventCreatedContract - CreateContract(ctx context.Context, in *MsgCreateContract, opts ...grpc.CallOption) (*MsgCreateContractResponse, error) - // IssueFT defines a method to create a class of fungible token. - // Fires: - // - EventCreatedFTClass - // - EventMintedFT - // Note: it does not grant any permissions to its issuer. - IssueFT(ctx context.Context, in *MsgIssueFT, opts ...grpc.CallOption) (*MsgIssueFTResponse, error) - // IssueNFT defines a method to create a class of non-fungible token. - // Fires: - // - EventCreatedNFTClass - // Note: it DOES grant `mint` and `burn` permissions to its issuer. - IssueNFT(ctx context.Context, in *MsgIssueNFT, opts ...grpc.CallOption) (*MsgIssueNFTResponse, error) - // MintFT defines a method to mint fungible tokens. - // Fires: - // - EventMintedFT - MintFT(ctx context.Context, in *MsgMintFT, opts ...grpc.CallOption) (*MsgMintFTResponse, error) - // MintNFT defines a method to mint non-fungible tokens. - // Fires: - // - EventMintedNFT - MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MsgMintNFTResponse, error) - // BurnFT defines a method to burn fungible tokens. - // Fires: - // - EventBurned - BurnFT(ctx context.Context, in *MsgBurnFT, opts ...grpc.CallOption) (*MsgBurnFTResponse, error) - // OperatorBurnFT defines a method to burn fungible tokens of the holder by the operator. - // Fires: - // - EventBurned - OperatorBurnFT(ctx context.Context, in *MsgOperatorBurnFT, opts ...grpc.CallOption) (*MsgOperatorBurnFTResponse, error) - // BurnNFT defines a method to burn non-fungible tokens. - // Fires: - // - EventBurned - BurnNFT(ctx context.Context, in *MsgBurnNFT, opts ...grpc.CallOption) (*MsgBurnNFTResponse, error) - // OperatorBurnNFT defines a method to burn non-fungible tokens of the holder by the operator. - // Fires: - // - EventBurned - OperatorBurnNFT(ctx context.Context, in *MsgOperatorBurnNFT, opts ...grpc.CallOption) (*MsgOperatorBurnNFTResponse, error) - // Modify defines a method to modify metadata. - // Fires: - // - EventModifiedContract - // - EventModifiedTokenClass - // - EventModifiedNFT - Modify(ctx context.Context, in *MsgModify, opts ...grpc.CallOption) (*MsgModifyResponse, error) - // GrantPermission allows one to mint or burn tokens or modify metadata. - // Fires: - // - EventGranted - GrantPermission(ctx context.Context, in *MsgGrantPermission, opts ...grpc.CallOption) (*MsgGrantPermissionResponse, error) - // RevokePermission abandons a permission. - // Fires: - // - EventRenounced - RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error) - // Attach defines a method to attach a token to another token. - // Fires: - // - EventAttach - // - attach (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - Attach(ctx context.Context, in *MsgAttach, opts ...grpc.CallOption) (*MsgAttachResponse, error) - // Detach defines a method to detach a token from another token. - // Fires: - // - EventDetach - // - detach (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - Detach(ctx context.Context, in *MsgDetach, opts ...grpc.CallOption) (*MsgDetachResponse, error) - // OperatorAttach defines a method to attach a token to another token by operator. - // Fires: - // - EventAttach - // - attach_from (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - OperatorAttach(ctx context.Context, in *MsgOperatorAttach, opts ...grpc.CallOption) (*MsgOperatorAttachResponse, error) - // OperatorDetach defines a method to detach a token from another token by operator. - // Fires: - // - EventDetach - // - detach_from (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - OperatorDetach(ctx context.Context, in *MsgOperatorDetach, opts ...grpc.CallOption) (*MsgOperatorDetachResponse, error) -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) SendFT(ctx context.Context, in *MsgSendFT, opts ...grpc.CallOption) (*MsgSendFTResponse, error) { - out := new(MsgSendFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/SendFT", in, out, opts...) - if err != nil { +func _Msg_MintNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgMintNFT) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *msgClient) OperatorSendFT(ctx context.Context, in *MsgOperatorSendFT, opts ...grpc.CallOption) (*MsgOperatorSendFTResponse, error) { - out := new(MsgOperatorSendFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorSendFT", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(MsgServer).MintNFT(ctx, in) } - return out, nil -} - -func (c *msgClient) SendNFT(ctx context.Context, in *MsgSendNFT, opts ...grpc.CallOption) (*MsgSendNFTResponse, error) { - out := new(MsgSendNFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/SendNFT", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/MintNFT", } - return out, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).MintNFT(ctx, req.(*MsgMintNFT)) + } + return interceptor(ctx, in, info, handler) } -func (c *msgClient) OperatorSendNFT(ctx context.Context, in *MsgOperatorSendNFT, opts ...grpc.CallOption) (*MsgOperatorSendNFTResponse, error) { - out := new(MsgOperatorSendNFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorSendNFT", in, out, opts...) - if err != nil { +func _Msg_BurnFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBurnFT) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(MsgServer).BurnFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/BurnFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BurnFT(ctx, req.(*MsgBurnFT)) + } + return interceptor(ctx, in, info, handler) } -func (c *msgClient) AuthorizeOperator(ctx context.Context, in *MsgAuthorizeOperator, opts ...grpc.CallOption) (*MsgAuthorizeOperatorResponse, error) { - out := new(MsgAuthorizeOperatorResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/AuthorizeOperator", in, out, opts...) - if err != nil { +func _Msg_OperatorBurnFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOperatorBurnFT) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(MsgServer).OperatorBurnFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/OperatorBurnFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OperatorBurnFT(ctx, req.(*MsgOperatorBurnFT)) + } + return interceptor(ctx, in, info, handler) } -func (c *msgClient) RevokeOperator(ctx context.Context, in *MsgRevokeOperator, opts ...grpc.CallOption) (*MsgRevokeOperatorResponse, error) { - out := new(MsgRevokeOperatorResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/RevokeOperator", in, out, opts...) - if err != nil { +func _Msg_BurnNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBurnNFT) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(MsgServer).BurnNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/BurnNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BurnNFT(ctx, req.(*MsgBurnNFT)) + } + return interceptor(ctx, in, info, handler) } -func (c *msgClient) CreateContract(ctx context.Context, in *MsgCreateContract, opts ...grpc.CallOption) (*MsgCreateContractResponse, error) { - out := new(MsgCreateContractResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/CreateContract", in, out, opts...) - if err != nil { +func _Msg_OperatorBurnNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOperatorBurnNFT) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(MsgServer).OperatorBurnNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/OperatorBurnNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OperatorBurnNFT(ctx, req.(*MsgOperatorBurnNFT)) + } + return interceptor(ctx, in, info, handler) } -func (c *msgClient) IssueFT(ctx context.Context, in *MsgIssueFT, opts ...grpc.CallOption) (*MsgIssueFTResponse, error) { - out := new(MsgIssueFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/IssueFT", in, out, opts...) - if err != nil { +func _Msg_Modify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgModify) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(MsgServer).Modify(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/Modify", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Modify(ctx, req.(*MsgModify)) + } + return interceptor(ctx, in, info, handler) } -func (c *msgClient) IssueNFT(ctx context.Context, in *MsgIssueNFT, opts ...grpc.CallOption) (*MsgIssueNFTResponse, error) { - out := new(MsgIssueNFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/IssueNFT", in, out, opts...) - if err != nil { +func _Msg_GrantPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgGrantPermission) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(MsgServer).GrantPermission(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/GrantPermission", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).GrantPermission(ctx, req.(*MsgGrantPermission)) + } + return interceptor(ctx, in, info, handler) } -func (c *msgClient) MintFT(ctx context.Context, in *MsgMintFT, opts ...grpc.CallOption) (*MsgMintFTResponse, error) { - out := new(MsgMintFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/MintFT", in, out, opts...) - if err != nil { +func _Msg_RevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRevokePermission) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *msgClient) MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MsgMintNFTResponse, error) { - out := new(MsgMintNFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/MintNFT", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(MsgServer).RevokePermission(ctx, in) } - return out, nil -} - -func (c *msgClient) BurnFT(ctx context.Context, in *MsgBurnFT, opts ...grpc.CallOption) (*MsgBurnFTResponse, error) { - out := new(MsgBurnFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/BurnFT", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/RevokePermission", } - return out, nil -} - -func (c *msgClient) OperatorBurnFT(ctx context.Context, in *MsgOperatorBurnFT, opts ...grpc.CallOption) (*MsgOperatorBurnFTResponse, error) { - out := new(MsgOperatorBurnFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorBurnFT", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RevokePermission(ctx, req.(*MsgRevokePermission)) } - return out, nil + return interceptor(ctx, in, info, handler) } -func (c *msgClient) BurnNFT(ctx context.Context, in *MsgBurnNFT, opts ...grpc.CallOption) (*MsgBurnNFTResponse, error) { - out := new(MsgBurnNFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/BurnNFT", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "lbm.collection.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SendFT", + Handler: _Msg_SendFT_Handler, + }, + { + MethodName: "OperatorSendFT", + Handler: _Msg_OperatorSendFT_Handler, + }, + { + MethodName: "SendNFT", + Handler: _Msg_SendNFT_Handler, + }, + { + MethodName: "OperatorSendNFT", + Handler: _Msg_OperatorSendNFT_Handler, + }, + { + MethodName: "AuthorizeOperator", + Handler: _Msg_AuthorizeOperator_Handler, + }, + { + MethodName: "RevokeOperator", + Handler: _Msg_RevokeOperator_Handler, + }, + { + MethodName: "CreateContract", + Handler: _Msg_CreateContract_Handler, + }, + { + MethodName: "IssueFT", + Handler: _Msg_IssueFT_Handler, + }, + { + MethodName: "IssueNFT", + Handler: _Msg_IssueNFT_Handler, + }, + { + MethodName: "MintFT", + Handler: _Msg_MintFT_Handler, + }, + { + MethodName: "MintNFT", + Handler: _Msg_MintNFT_Handler, + }, + { + MethodName: "BurnFT", + Handler: _Msg_BurnFT_Handler, + }, + { + MethodName: "OperatorBurnFT", + Handler: _Msg_OperatorBurnFT_Handler, + }, + { + MethodName: "BurnNFT", + Handler: _Msg_BurnNFT_Handler, + }, + { + MethodName: "OperatorBurnNFT", + Handler: _Msg_OperatorBurnNFT_Handler, + }, + { + MethodName: "Modify", + Handler: _Msg_Modify_Handler, + }, + { + MethodName: "GrantPermission", + Handler: _Msg_GrantPermission_Handler, + }, + { + MethodName: "RevokePermission", + Handler: _Msg_RevokePermission_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "lbm/collection/v1/tx.proto", } -func (c *msgClient) OperatorBurnNFT(ctx context.Context, in *MsgOperatorBurnNFT, opts ...grpc.CallOption) (*MsgOperatorBurnNFTResponse, error) { - out := new(MsgOperatorBurnNFTResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorBurnNFT", in, out, opts...) +func (m *MsgSendFT) 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 out, nil + return dAtA[:n], nil } -func (c *msgClient) Modify(ctx context.Context, in *MsgModify, opts ...grpc.CallOption) (*MsgModifyResponse, error) { - out := new(MsgModifyResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Modify", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgSendFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (c *msgClient) GrantPermission(ctx context.Context, in *MsgGrantPermission, opts ...grpc.CallOption) (*MsgGrantPermissionResponse, error) { - out := new(MsgGrantPermissionResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/GrantPermission", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgSendFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } - return out, nil + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x1a + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (c *msgClient) RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error) { - out := new(MsgRevokePermissionResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/RevokePermission", in, out, opts...) +func (m *MsgSendFTResponse) 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 out, nil + return dAtA[:n], nil } -func (c *msgClient) Attach(ctx context.Context, in *MsgAttach, opts ...grpc.CallOption) (*MsgAttachResponse, error) { - out := new(MsgAttachResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Attach", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgSendFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (c *msgClient) Detach(ctx context.Context, in *MsgDetach, opts ...grpc.CallOption) (*MsgDetachResponse, error) { - out := new(MsgDetachResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Detach", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgSendFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil } -func (c *msgClient) OperatorAttach(ctx context.Context, in *MsgOperatorAttach, opts ...grpc.CallOption) (*MsgOperatorAttachResponse, error) { - out := new(MsgOperatorAttachResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorAttach", in, out, opts...) +func (m *MsgOperatorSendFT) 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 out, nil + return dAtA[:n], nil } -func (c *msgClient) OperatorDetach(ctx context.Context, in *MsgOperatorDetach, opts ...grpc.CallOption) (*MsgOperatorDetachResponse, error) { - out := new(MsgOperatorDetachResponse) - err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorDetach", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgOperatorSendFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -// MsgServer is the server API for Msg service. -type MsgServer interface { - // SendFT defines a method to send fungible tokens from one account to another account. - // Fires: - // - EventSent - SendFT(context.Context, *MsgSendFT) (*MsgSendFTResponse, error) - // OperatorSendFT defines a method to send fungible tokens from one account to another account by the operator. - // Fires: - // - EventSent - OperatorSendFT(context.Context, *MsgOperatorSendFT) (*MsgOperatorSendFTResponse, error) - // SendNFT defines a method to send non-fungible tokens from one account to another account. - // Fires: - // - EventSent - SendNFT(context.Context, *MsgSendNFT) (*MsgSendNFTResponse, error) - // OperatorSendNFT defines a method to send non-fungible tokens from one account to another account by the operator. - // Fires: - // - EventSent - OperatorSendNFT(context.Context, *MsgOperatorSendNFT) (*MsgOperatorSendNFTResponse, error) - // AuthorizeOperator allows one to send tokens on behalf of the holder. - // Fires: - // - EventAuthorizedOperator - AuthorizeOperator(context.Context, *MsgAuthorizeOperator) (*MsgAuthorizeOperatorResponse, error) - // RevokeOperator revokes the authorization of the operator to send the holder's token. - // Fires: - // - EventRevokedOperator - RevokeOperator(context.Context, *MsgRevokeOperator) (*MsgRevokeOperatorResponse, error) - // CreateContract defines a method to create a contract for collection. - // it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator. - // Fires: - // - EventCreatedContract - CreateContract(context.Context, *MsgCreateContract) (*MsgCreateContractResponse, error) - // IssueFT defines a method to create a class of fungible token. - // Fires: - // - EventCreatedFTClass - // - EventMintedFT - // Note: it does not grant any permissions to its issuer. - IssueFT(context.Context, *MsgIssueFT) (*MsgIssueFTResponse, error) - // IssueNFT defines a method to create a class of non-fungible token. - // Fires: - // - EventCreatedNFTClass - // Note: it DOES grant `mint` and `burn` permissions to its issuer. - IssueNFT(context.Context, *MsgIssueNFT) (*MsgIssueNFTResponse, error) - // MintFT defines a method to mint fungible tokens. - // Fires: - // - EventMintedFT - MintFT(context.Context, *MsgMintFT) (*MsgMintFTResponse, error) - // MintNFT defines a method to mint non-fungible tokens. - // Fires: - // - EventMintedNFT - MintNFT(context.Context, *MsgMintNFT) (*MsgMintNFTResponse, error) - // BurnFT defines a method to burn fungible tokens. - // Fires: - // - EventBurned - BurnFT(context.Context, *MsgBurnFT) (*MsgBurnFTResponse, error) - // OperatorBurnFT defines a method to burn fungible tokens of the holder by the operator. - // Fires: - // - EventBurned - OperatorBurnFT(context.Context, *MsgOperatorBurnFT) (*MsgOperatorBurnFTResponse, error) - // BurnNFT defines a method to burn non-fungible tokens. - // Fires: - // - EventBurned - BurnNFT(context.Context, *MsgBurnNFT) (*MsgBurnNFTResponse, error) - // OperatorBurnNFT defines a method to burn non-fungible tokens of the holder by the operator. - // Fires: - // - EventBurned - OperatorBurnNFT(context.Context, *MsgOperatorBurnNFT) (*MsgOperatorBurnNFTResponse, error) - // Modify defines a method to modify metadata. - // Fires: - // - EventModifiedContract - // - EventModifiedTokenClass - // - EventModifiedNFT - Modify(context.Context, *MsgModify) (*MsgModifyResponse, error) - // GrantPermission allows one to mint or burn tokens or modify metadata. - // Fires: - // - EventGranted - GrantPermission(context.Context, *MsgGrantPermission) (*MsgGrantPermissionResponse, error) - // RevokePermission abandons a permission. - // Fires: - // - EventRenounced - RevokePermission(context.Context, *MsgRevokePermission) (*MsgRevokePermissionResponse, error) - // Attach defines a method to attach a token to another token. - // Fires: - // - EventAttach - // - attach (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - Attach(context.Context, *MsgAttach) (*MsgAttachResponse, error) - // Detach defines a method to detach a token from another token. - // Fires: - // - EventDetach - // - detach (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - Detach(context.Context, *MsgDetach) (*MsgDetachResponse, error) - // OperatorAttach defines a method to attach a token to another token by operator. - // Fires: - // - EventAttach - // - attach_from (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - OperatorAttach(context.Context, *MsgOperatorAttach) (*MsgOperatorAttachResponse, error) - // OperatorDetach defines a method to detach a token from another token by operator. - // Fires: - // - EventDetach - // - detach_from (deprecated, not typed) - // - operation_root_changed (deprecated, not typed) - OperatorDetach(context.Context, *MsgOperatorDetach) (*MsgOperatorDetachResponse, error) +func (m *MsgOperatorSendFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x22 + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { +func (m *MsgOperatorSendFTResponse) 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 (*UnimplementedMsgServer) SendFT(ctx context.Context, req *MsgSendFT) (*MsgSendFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendFT not implemented") -} -func (*UnimplementedMsgServer) OperatorSendFT(ctx context.Context, req *MsgOperatorSendFT) (*MsgOperatorSendFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperatorSendFT not implemented") -} -func (*UnimplementedMsgServer) SendNFT(ctx context.Context, req *MsgSendNFT) (*MsgSendNFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendNFT not implemented") -} -func (*UnimplementedMsgServer) OperatorSendNFT(ctx context.Context, req *MsgOperatorSendNFT) (*MsgOperatorSendNFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperatorSendNFT not implemented") -} -func (*UnimplementedMsgServer) AuthorizeOperator(ctx context.Context, req *MsgAuthorizeOperator) (*MsgAuthorizeOperatorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AuthorizeOperator not implemented") -} -func (*UnimplementedMsgServer) RevokeOperator(ctx context.Context, req *MsgRevokeOperator) (*MsgRevokeOperatorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RevokeOperator not implemented") -} -func (*UnimplementedMsgServer) CreateContract(ctx context.Context, req *MsgCreateContract) (*MsgCreateContractResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateContract not implemented") -} -func (*UnimplementedMsgServer) IssueFT(ctx context.Context, req *MsgIssueFT) (*MsgIssueFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IssueFT not implemented") -} -func (*UnimplementedMsgServer) IssueNFT(ctx context.Context, req *MsgIssueNFT) (*MsgIssueNFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IssueNFT not implemented") -} -func (*UnimplementedMsgServer) MintFT(ctx context.Context, req *MsgMintFT) (*MsgMintFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MintFT not implemented") -} -func (*UnimplementedMsgServer) MintNFT(ctx context.Context, req *MsgMintNFT) (*MsgMintNFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MintNFT not implemented") -} -func (*UnimplementedMsgServer) BurnFT(ctx context.Context, req *MsgBurnFT) (*MsgBurnFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BurnFT not implemented") -} -func (*UnimplementedMsgServer) OperatorBurnFT(ctx context.Context, req *MsgOperatorBurnFT) (*MsgOperatorBurnFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperatorBurnFT not implemented") -} -func (*UnimplementedMsgServer) BurnNFT(ctx context.Context, req *MsgBurnNFT) (*MsgBurnNFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BurnNFT not implemented") -} -func (*UnimplementedMsgServer) OperatorBurnNFT(ctx context.Context, req *MsgOperatorBurnNFT) (*MsgOperatorBurnNFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperatorBurnNFT not implemented") -} -func (*UnimplementedMsgServer) Modify(ctx context.Context, req *MsgModify) (*MsgModifyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Modify not implemented") -} -func (*UnimplementedMsgServer) GrantPermission(ctx context.Context, req *MsgGrantPermission) (*MsgGrantPermissionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GrantPermission not implemented") -} -func (*UnimplementedMsgServer) RevokePermission(ctx context.Context, req *MsgRevokePermission) (*MsgRevokePermissionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RevokePermission not implemented") -} -func (*UnimplementedMsgServer) Attach(ctx context.Context, req *MsgAttach) (*MsgAttachResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Attach not implemented") -} -func (*UnimplementedMsgServer) Detach(ctx context.Context, req *MsgDetach) (*MsgDetachResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Detach not implemented") -} -func (*UnimplementedMsgServer) OperatorAttach(ctx context.Context, req *MsgOperatorAttach) (*MsgOperatorAttachResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperatorAttach not implemented") -} -func (*UnimplementedMsgServer) OperatorDetach(ctx context.Context, req *MsgOperatorDetach) (*MsgOperatorDetachResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperatorDetach not implemented") +func (m *MsgOperatorSendFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) +func (m *MsgOperatorSendFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil } -func _Msg_SendFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSendFT) - if err := dec(in); err != nil { +func (m *MsgSendNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).SendFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/SendFT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SendFT(ctx, req.(*MsgSendFT)) - } - return interceptor(ctx, in, info, handler) + return dAtA[:n], nil } -func _Msg_OperatorSendFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgOperatorSendFT) - if err := dec(in); err != nil { - return nil, err +func (m *MsgSendNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSendNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0x22 + } } - if interceptor == nil { - return srv.(MsgServer).OperatorSendFT(ctx, in) + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x1a } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/OperatorSendFT", + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OperatorSendFT(ctx, req.(*MsgOperatorSendFT)) + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa } - return interceptor(ctx, in, info, handler) + return len(dAtA) - i, nil } -func _Msg_SendNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSendNFT) - if err := dec(in); err != nil { +func (m *MsgSendNFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).SendNFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/SendNFT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SendNFT(ctx, req.(*MsgSendNFT)) - } - return interceptor(ctx, in, info, handler) + return dAtA[:n], nil } -func _Msg_OperatorSendNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgOperatorSendNFT) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).OperatorSendNFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/OperatorSendNFT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OperatorSendNFT(ctx, req.(*MsgOperatorSendNFT)) - } - return interceptor(ctx, in, info, handler) +func (m *MsgSendNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func _Msg_AuthorizeOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAuthorizeOperator) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).AuthorizeOperator(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/AuthorizeOperator", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AuthorizeOperator(ctx, req.(*MsgAuthorizeOperator)) - } - return interceptor(ctx, in, info, handler) +func (m *MsgSendNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil } -func _Msg_RevokeOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRevokeOperator) - if err := dec(in); err != nil { +func (m *MsgOperatorSendNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).RevokeOperator(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/RevokeOperator", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RevokeOperator(ctx, req.(*MsgRevokeOperator)) - } - return interceptor(ctx, in, info, handler) + return dAtA[:n], nil } -func _Msg_CreateContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateContract) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CreateContract(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/CreateContract", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateContract(ctx, req.(*MsgCreateContract)) - } - return interceptor(ctx, in, info, handler) +func (m *MsgOperatorSendNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func _Msg_IssueFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgIssueFT) - if err := dec(in); err != nil { - return nil, err +func (m *MsgOperatorSendNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0x2a + } } - if interceptor == nil { - return srv.(MsgServer).IssueFT(ctx, in) + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x22 } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/IssueFT", + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).IssueFT(ctx, req.(*MsgIssueFT)) + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 } - return interceptor(ctx, in, info, handler) + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func _Msg_IssueNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgIssueNFT) - if err := dec(in); err != nil { +func (m *MsgOperatorSendNFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).IssueNFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/IssueNFT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).IssueNFT(ctx, req.(*MsgIssueNFT)) - } - return interceptor(ctx, in, info, handler) + return dAtA[:n], nil } -func _Msg_MintFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgMintFT) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).MintFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/MintFT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).MintFT(ctx, req.(*MsgMintFT)) - } - return interceptor(ctx, in, info, handler) +func (m *MsgOperatorSendNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func _Msg_MintNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgMintNFT) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).MintNFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/MintNFT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).MintNFT(ctx, req.(*MsgMintNFT)) - } - return interceptor(ctx, in, info, handler) +func (m *MsgOperatorSendNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil } -func _Msg_BurnFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBurnFT) - if err := dec(in); err != nil { +func (m *MsgAuthorizeOperator) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).BurnFT(ctx, in) + return dAtA[:n], nil +} + +func (m *MsgAuthorizeOperator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAuthorizeOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x1a } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/BurnFT", + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x12 } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).BurnFT(ctx, req.(*MsgBurnFT)) + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa } - return interceptor(ctx, in, info, handler) + return len(dAtA) - i, nil } -func _Msg_OperatorBurnFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgOperatorBurnFT) - if err := dec(in); err != nil { +func (m *MsgAuthorizeOperatorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).OperatorBurnFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/OperatorBurnFT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OperatorBurnFT(ctx, req.(*MsgOperatorBurnFT)) - } - return interceptor(ctx, in, info, handler) + return dAtA[:n], nil } -func _Msg_BurnNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBurnNFT) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).BurnNFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/BurnNFT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).BurnNFT(ctx, req.(*MsgBurnNFT)) - } - return interceptor(ctx, in, info, handler) +func (m *MsgAuthorizeOperatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func _Msg_OperatorBurnNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgOperatorBurnNFT) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).OperatorBurnNFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/OperatorBurnNFT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OperatorBurnNFT(ctx, req.(*MsgOperatorBurnNFT)) - } - return interceptor(ctx, in, info, handler) +func (m *MsgAuthorizeOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil } -func _Msg_Modify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgModify) - if err := dec(in); err != nil { +func (m *MsgRevokeOperator) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).Modify(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/Modify", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Modify(ctx, req.(*MsgModify)) - } - return interceptor(ctx, in, info, handler) + return dAtA[:n], nil } -func _Msg_GrantPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgGrantPermission) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).GrantPermission(ctx, in) +func (m *MsgRevokeOperator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRevokeOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x1a } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/GrantPermission", + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x12 } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).GrantPermission(ctx, req.(*MsgGrantPermission)) + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa } - return interceptor(ctx, in, info, handler) + return len(dAtA) - i, nil } -func _Msg_RevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRevokePermission) - if err := dec(in); err != nil { +func (m *MsgRevokeOperatorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).RevokePermission(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/RevokePermission", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RevokePermission(ctx, req.(*MsgRevokePermission)) - } - return interceptor(ctx, in, info, handler) + return dAtA[:n], nil } -func _Msg_Attach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAttach) - if err := dec(in); err != nil { +func (m *MsgRevokeOperatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRevokeOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCreateContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).Attach(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/Attach", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Attach(ctx, req.(*MsgAttach)) - } - return interceptor(ctx, in, info, handler) + return dAtA[:n], nil } -func _Msg_Detach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgDetach) - if err := dec(in); err != nil { - return nil, err +func (m *MsgCreateContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x22 } - if interceptor == nil { - return srv.(MsgServer).Detach(ctx, in) + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintTx(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x1a } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/Detach", + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Detach(ctx, req.(*MsgDetach)) + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa } - return interceptor(ctx, in, info, handler) + return len(dAtA) - i, nil } -func _Msg_OperatorAttach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgOperatorAttach) - if err := dec(in); err != nil { +func (m *MsgCreateContractResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).OperatorAttach(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/OperatorAttach", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OperatorAttach(ctx, req.(*MsgOperatorAttach)) + return dAtA[:n], nil +} + +func (m *MsgCreateContractResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa } - return interceptor(ctx, in, info, handler) + return len(dAtA) - i, nil } -func _Msg_OperatorDetach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgOperatorDetach) - if err := dec(in); err != nil { +func (m *MsgIssueFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(MsgServer).OperatorDetach(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/lbm.collection.v1.Msg/OperatorDetach", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OperatorDetach(ctx, req.(*MsgOperatorDetach)) - } - return interceptor(ctx, in, info, handler) + return dAtA[:n], nil } -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "lbm.collection.v1.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SendFT", - Handler: _Msg_SendFT_Handler, - }, - { - MethodName: "OperatorSendFT", - Handler: _Msg_OperatorSendFT_Handler, - }, - { - MethodName: "SendNFT", - Handler: _Msg_SendNFT_Handler, - }, - { - MethodName: "OperatorSendNFT", - Handler: _Msg_OperatorSendNFT_Handler, - }, - { - MethodName: "AuthorizeOperator", - Handler: _Msg_AuthorizeOperator_Handler, - }, - { - MethodName: "RevokeOperator", - Handler: _Msg_RevokeOperator_Handler, - }, - { - MethodName: "CreateContract", - Handler: _Msg_CreateContract_Handler, - }, - { - MethodName: "IssueFT", - Handler: _Msg_IssueFT_Handler, - }, - { - MethodName: "IssueNFT", - Handler: _Msg_IssueNFT_Handler, - }, - { - MethodName: "MintFT", - Handler: _Msg_MintFT_Handler, - }, - { - MethodName: "MintNFT", - Handler: _Msg_MintNFT_Handler, - }, - { - MethodName: "BurnFT", - Handler: _Msg_BurnFT_Handler, - }, - { - MethodName: "OperatorBurnFT", - Handler: _Msg_OperatorBurnFT_Handler, - }, - { - MethodName: "BurnNFT", - Handler: _Msg_BurnNFT_Handler, - }, - { - MethodName: "OperatorBurnNFT", - Handler: _Msg_OperatorBurnNFT_Handler, - }, - { - MethodName: "Modify", - Handler: _Msg_Modify_Handler, - }, - { - MethodName: "GrantPermission", - Handler: _Msg_GrantPermission_Handler, - }, - { - MethodName: "RevokePermission", - Handler: _Msg_RevokePermission_Handler, - }, - { - MethodName: "Attach", - Handler: _Msg_Attach_Handler, - }, - { - MethodName: "Detach", - Handler: _Msg_Detach_Handler, - }, - { - MethodName: "OperatorAttach", - Handler: _Msg_OperatorAttach_Handler, - }, - { - MethodName: "OperatorDetach", - Handler: _Msg_OperatorDetach_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "lbm/collection/v1/tx.proto", -} - -func (m *MsgSendFT) 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 *MsgSendFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgIssueFT) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSendFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgIssueFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Amount) > 0 { - for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err } + i = encodeVarintTx(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x42 if len(m.To) > 0 { i -= len(m.To) copy(dAtA[i:], m.To) i = encodeVarintTx(dAtA, i, uint64(len(m.To))) i-- + dAtA[i] = 0x3a + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x32 + } + if m.Mintable { + i-- + if m.Mintable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.Decimals != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Decimals)) + i-- + dAtA[i] = 0x20 + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + i-- dAtA[i] = 0x1a } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x12 } @@ -3815,7 +3722,7 @@ func (m *MsgSendFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgSendFTResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgIssueFTResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3825,20 +3732,27 @@ func (m *MsgSendFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgSendFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgIssueFTResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSendFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgIssueFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *MsgOperatorSendFT) Marshal() (dAtA []byte, err error) { +func (m *MsgIssueNFT) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3848,48 +3762,34 @@ func (m *MsgOperatorSendFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgOperatorSendFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgIssueNFT) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgOperatorSendFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgIssueNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Amount) > 0 { - for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.To) > 0 { - i -= len(m.To) - copy(dAtA[i:], m.To) - i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) i-- dAtA[i] = 0x22 } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) i-- dAtA[i] = 0x1a } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x12 } @@ -3903,7 +3803,7 @@ func (m *MsgOperatorSendFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgOperatorSendFTResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgIssueNFTResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3913,20 +3813,27 @@ func (m *MsgOperatorSendFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgOperatorSendFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgIssueNFTResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgOperatorSendFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgIssueNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenType))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *MsgSendNFT) Marshal() (dAtA []byte, err error) { +func (m *MsgMintFT) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3936,21 +3843,26 @@ func (m *MsgSendNFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgSendNFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgMintFT) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSendNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgMintFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.TokenIds) > 0 { - for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TokenIds[iNdEx]) - copy(dAtA[i:], m.TokenIds[iNdEx]) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x22 } @@ -3979,7 +3891,7 @@ func (m *MsgSendNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgSendNFTResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgMintFTResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3989,12 +3901,12 @@ func (m *MsgSendNFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgSendNFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgMintFTResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSendNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgMintFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4002,7 +3914,7 @@ func (m *MsgSendNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgOperatorSendNFT) Marshal() (dAtA []byte, err error) { +func (m *MsgMintNFT) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4012,23 +3924,28 @@ func (m *MsgOperatorSendNFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgOperatorSendNFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgMintNFT) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgOperatorSendNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgMintNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.TokenIds) > 0 { - for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TokenIds[iNdEx]) - copy(dAtA[i:], m.TokenIds[iNdEx]) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + if len(m.Params) > 0 { + for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(m.To) > 0 { @@ -4036,20 +3953,13 @@ func (m *MsgOperatorSendNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.To) i = encodeVarintTx(dAtA, i, uint64(len(m.To))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if len(m.From) > 0 { i -= len(m.From) copy(dAtA[i:], m.From) i = encodeVarintTx(dAtA, i, uint64(len(m.From))) i-- - dAtA[i] = 0x1a - } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) - i-- dAtA[i] = 0x12 } if len(m.ContractId) > 0 { @@ -4062,7 +3972,7 @@ func (m *MsgOperatorSendNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgOperatorSendNFTResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgMintNFTResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4072,20 +3982,29 @@ func (m *MsgOperatorSendNFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgOperatorSendNFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgMintNFTResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgOperatorSendNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgMintNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } return len(dAtA) - i, nil } -func (m *MsgAuthorizeOperator) Marshal() (dAtA []byte, err error) { +func (m *MintNFTParam) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4095,27 +4014,78 @@ func (m *MsgAuthorizeOperator) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgAuthorizeOperator) MarshalTo(dAtA []byte) (int, error) { +func (m *MintNFTParam) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgAuthorizeOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MintNFTParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) i-- dAtA[i] = 0x1a } - if len(m.Holder) > 0 { - i -= len(m.Holder) - copy(dAtA[i:], m.Holder) - i = encodeVarintTx(dAtA, i, uint64(len(m.Holder))) + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgBurnFT) 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 *MsgBurnFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) i-- dAtA[i] = 0x12 } @@ -4129,7 +4099,7 @@ func (m *MsgAuthorizeOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgAuthorizeOperatorResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgBurnFTResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4139,12 +4109,12 @@ func (m *MsgAuthorizeOperatorResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgAuthorizeOperatorResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgBurnFTResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgAuthorizeOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgBurnFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4152,7 +4122,7 @@ func (m *MsgAuthorizeOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *MsgRevokeOperator) Marshal() (dAtA []byte, err error) { +func (m *MsgOperatorBurnFT) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4162,28 +4132,42 @@ func (m *MsgRevokeOperator) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgRevokeOperator) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnFT) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgRevokeOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } if len(m.Operator) > 0 { i -= len(m.Operator) copy(dAtA[i:], m.Operator) i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) i-- - dAtA[i] = 0x1a - } - if len(m.Holder) > 0 { - i -= len(m.Holder) - copy(dAtA[i:], m.Holder) - i = encodeVarintTx(dAtA, i, uint64(len(m.Holder))) - i-- dAtA[i] = 0x12 } if len(m.ContractId) > 0 { @@ -4196,7 +4180,7 @@ func (m *MsgRevokeOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgRevokeOperatorResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgOperatorBurnFTResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4206,12 +4190,12 @@ func (m *MsgRevokeOperatorResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgRevokeOperatorResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnFTResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgRevokeOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4219,7 +4203,7 @@ func (m *MsgRevokeOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *MsgCreateContract) Marshal() (dAtA []byte, err error) { +func (m *MsgBurnNFT) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4229,48 +4213,43 @@ func (m *MsgCreateContract) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgCreateContract) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgBurnNFT) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgBurnNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Meta) > 0 { - i -= len(m.Meta) - copy(dAtA[i:], m.Meta) - i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) - i-- - dAtA[i] = 0x22 - } - if len(m.Uri) > 0 { - i -= len(m.Uri) - copy(dAtA[i:], m.Uri) - i = encodeVarintTx(dAtA, i, uint64(len(m.Uri))) - i-- - dAtA[i] = 0x1a + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0x1a + } } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) i-- dAtA[i] = 0x12 } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *MsgCreateContractResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgBurnNFTResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4280,27 +4259,20 @@ func (m *MsgCreateContractResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgCreateContractResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgBurnNFTResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgBurnNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *MsgIssueFT) Marshal() (dAtA []byte, err error) { +func (m *MsgOperatorBurnNFT) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4310,66 +4282,36 @@ func (m *MsgIssueFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgIssueFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnNFT) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgIssueFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0x22 } - i = encodeVarintTx(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x42 - if len(m.To) > 0 { - i -= len(m.To) - copy(dAtA[i:], m.To) - i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) i-- - dAtA[i] = 0x3a + dAtA[i] = 0x1a } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0x32 - } - if m.Mintable { - i-- - if m.Mintable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.Decimals != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Decimals)) - i-- - dAtA[i] = 0x20 - } - if len(m.Meta) > 0 { - i -= len(m.Meta) - copy(dAtA[i:], m.Meta) - i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) i-- dAtA[i] = 0x12 } @@ -4383,7 +4325,7 @@ func (m *MsgIssueFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgIssueFTResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgOperatorBurnNFTResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4393,27 +4335,20 @@ func (m *MsgIssueFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgIssueFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnNFTResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgIssueFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *MsgIssueNFT) Marshal() (dAtA []byte, err error) { +func (m *MsgModify) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4423,34 +4358,48 @@ func (m *MsgIssueNFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgIssueNFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgModify) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgIssueNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgModify) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenIndex) > 0 { + i -= len(m.TokenIndex) + copy(dAtA[i:], m.TokenIndex) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIndex))) i-- dAtA[i] = 0x22 } - if len(m.Meta) > 0 { - i -= len(m.Meta) - copy(dAtA[i:], m.Meta) - i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenType))) i-- dAtA[i] = 0x1a } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) i-- dAtA[i] = 0x12 } @@ -4464,7 +4413,7 @@ func (m *MsgIssueNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgIssueNFTResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgModifyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4474,27 +4423,20 @@ func (m *MsgIssueNFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgIssueNFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgModifyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgIssueNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgModifyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.TokenType) > 0 { - i -= len(m.TokenType) - copy(dAtA[i:], m.TokenType) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenType))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *MsgMintFT) Marshal() (dAtA []byte, err error) { +func (m *MsgGrantPermission) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4504,29 +4446,22 @@ func (m *MsgMintFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgMintFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgGrantPermission) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgMintFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgGrantPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Amount) > 0 { - for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + if len(m.Permission) > 0 { + i -= len(m.Permission) + copy(dAtA[i:], m.Permission) + i = encodeVarintTx(dAtA, i, uint64(len(m.Permission))) + i-- + dAtA[i] = 0x22 } if len(m.To) > 0 { i -= len(m.To) @@ -4552,7 +4487,7 @@ func (m *MsgMintFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgMintFTResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgGrantPermissionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4562,12 +4497,12 @@ func (m *MsgMintFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgMintFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgMintFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgGrantPermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4575,7 +4510,7 @@ func (m *MsgMintFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgMintNFT) Marshal() (dAtA []byte, err error) { +func (m *MsgRevokePermission) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4585,34 +4520,20 @@ func (m *MsgMintNFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgMintNFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRevokePermission) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgMintNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRevokePermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Params) > 0 { - for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.To) > 0 { - i -= len(m.To) - copy(dAtA[i:], m.To) - i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + if len(m.Permission) > 0 { + i -= len(m.Permission) + copy(dAtA[i:], m.Permission) + i = encodeVarintTx(dAtA, i, uint64(len(m.Permission))) i-- dAtA[i] = 0x1a } @@ -4633,7 +4554,7 @@ func (m *MsgMintNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgMintNFTResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgRevokePermissionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4643,909 +4564,468 @@ func (m *MsgMintNFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgMintNFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgMintNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRevokePermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.TokenIds) > 0 { - for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TokenIds[iNdEx]) - copy(dAtA[i:], m.TokenIds[iNdEx]) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } return len(dAtA) - i, nil } -func (m *MintNFTParam) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - return dAtA[:n], nil -} - -func (m *MintNFTParam) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + dAtA[offset] = uint8(v) + return base } - -func (m *MintNFTParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *MsgSendFT) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if len(m.Meta) > 0 { - i -= len(m.Meta) - copy(dAtA[i:], m.Meta) - i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) - i-- - dAtA[i] = 0x1a + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.TokenType) > 0 { - i -= len(m.TokenType) - copy(dAtA[i:], m.TokenType) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenType))) - i-- - dAtA[i] = 0xa + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return len(dAtA) - i, nil + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n } -func (m *MsgBurnFT) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSendFTResponse) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil + var l int + _ = l + return n } -func (m *MsgBurnFT) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgBurnFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *MsgOperatorSendFT) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if len(m.Amount) > 0 { - for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x12 + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return len(dAtA) - i, nil -} - -func (m *MsgBurnFTResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return dAtA[:n], nil -} - -func (m *MsgBurnFTResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n } -func (m *MsgBurnFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *MsgOperatorSendFTResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - return len(dAtA) - i, nil + return n } -func (m *MsgOperatorBurnFT) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSendNFT) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgOperatorBurnFT) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgOperatorBurnFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - if len(m.Amount) > 0 { - for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x1a + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + if len(m.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } } - return len(dAtA) - i, nil + return n } -func (m *MsgOperatorBurnFTResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSendNFTResponse) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgOperatorBurnFTResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgOperatorBurnFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - return len(dAtA) - i, nil + return n } -func (m *MsgBurnNFT) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgOperatorSendNFT) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgBurnNFT) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgBurnNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - if len(m.TokenIds) > 0 { - for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TokenIds[iNdEx]) - copy(dAtA[i:], m.TokenIds[iNdEx]) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) - i-- - dAtA[i] = 0x1a - } + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x12 + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return len(dAtA) - i, nil -} - -func (m *MsgBurnNFTResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return dAtA[:n], nil -} - -func (m *MsgBurnNFTResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if len(m.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n } -func (m *MsgBurnNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *MsgOperatorSendNFTResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - return len(dAtA) - i, nil + return n } -func (m *MsgOperatorBurnNFT) 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 *MsgOperatorBurnNFT) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgOperatorBurnNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *MsgAuthorizeOperator) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if len(m.TokenIds) > 0 { - for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TokenIds[iNdEx]) - copy(dAtA[i:], m.TokenIds[iNdEx]) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x1a + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return len(dAtA) - i, nil + return n } -func (m *MsgOperatorBurnNFTResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgAuthorizeOperatorResponse) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgOperatorBurnNFTResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgOperatorBurnNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - return len(dAtA) - i, nil + return n } -func (m *MsgModify) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgRevokeOperator) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgModify) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgModify) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - if len(m.Changes) > 0 { - for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.TokenIndex) > 0 { - i -= len(m.TokenIndex) - copy(dAtA[i:], m.TokenIndex) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIndex))) - i-- - dAtA[i] = 0x22 - } - if len(m.TokenType) > 0 { - i -= len(m.TokenType) - copy(dAtA[i:], m.TokenType) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenType))) - i-- - dAtA[i] = 0x1a + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0x12 + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return len(dAtA) - i, nil + return n } -func (m *MsgModifyResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgRevokeOperatorResponse) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgModifyResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgModifyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - return len(dAtA) - i, nil + return n } -func (m *MsgGrantPermission) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgCreateContract) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgGrantPermission) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgGrantPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - if len(m.Permission) > 0 { - i -= len(m.Permission) - copy(dAtA[i:], m.Permission) - i = encodeVarintTx(dAtA, i, uint64(len(m.Permission))) - i-- - dAtA[i] = 0x22 + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.To) > 0 { - i -= len(m.To) - copy(dAtA[i:], m.To) - i = encodeVarintTx(dAtA, i, uint64(len(m.To))) - i-- - dAtA[i] = 0x1a + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x12 + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return len(dAtA) - i, nil + return n } -func (m *MsgGrantPermissionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgCreateContractResponse) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgGrantPermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - return len(dAtA) - i, nil + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n } -func (m *MsgRevokePermission) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgIssueFT) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgRevokePermission) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRevokePermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - if len(m.Permission) > 0 { - i -= len(m.Permission) - copy(dAtA[i:], m.Permission) - i = encodeVarintTx(dAtA, i, uint64(len(m.Permission))) - i-- - dAtA[i] = 0x1a + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x12 + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return len(dAtA) - i, nil -} - -func (m *MsgRevokePermissionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if m.Decimals != 0 { + n += 1 + sovTx(uint64(m.Decimals)) } - return dAtA[:n], nil -} - -func (m *MsgRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if m.Mintable { + n += 2 + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + return n } -func (m *MsgRevokePermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *MsgIssueFTResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - return len(dAtA) - i, nil -} - -func (m *MsgAttach) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return dAtA[:n], nil -} - -func (m *MsgAttach) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return n } -func (m *MsgAttach) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *MsgIssueNFT) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if len(m.ToTokenId) > 0 { - i -= len(m.ToTokenId) - copy(dAtA[i:], m.ToTokenId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ToTokenId))) - i-- - dAtA[i] = 0x22 + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) - i-- - dAtA[i] = 0x1a + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x12 + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return len(dAtA) - i, nil + return n } -func (m *MsgAttachResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgIssueNFTResponse) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgAttachResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAttachResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - return len(dAtA) - i, nil -} - -func (m *MsgDetach) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return dAtA[:n], nil -} - -func (m *MsgDetach) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return n } -func (m *MsgDetach) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *MsgMintFT) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) - i-- - dAtA[i] = 0x1a + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x12 + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return len(dAtA) - i, nil -} - -func (m *MsgDetachResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } } - return dAtA[:n], nil -} - -func (m *MsgDetachResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return n } -func (m *MsgDetachResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *MsgMintFTResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - return len(dAtA) - i, nil + return n } -func (m *MsgOperatorAttach) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgMintNFT) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgOperatorAttach) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgOperatorAttach) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - if len(m.ToTokenId) > 0 { - i -= len(m.ToTokenId) - copy(dAtA[i:], m.ToTokenId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ToTokenId))) - i-- - dAtA[i] = 0x2a + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) - i-- - dAtA[i] = 0x22 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x1a + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } } - return len(dAtA) - i, nil + return n } -func (m *MsgOperatorAttachResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgMintNFTResponse) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *MsgOperatorAttachResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgOperatorAttachResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - return len(dAtA) - i, nil -} - -func (m *MsgOperatorDetach) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if len(m.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } } - return dAtA[:n], nil -} - -func (m *MsgOperatorDetach) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return n } -func (m *MsgOperatorDetach) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *MintNFTParam) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) - i-- - dAtA[i] = 0x22 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x1a - } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return len(dAtA) - i, nil -} - -func (m *MsgOperatorDetachResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } - return dAtA[:n], nil -} - -func (m *MsgOperatorDetachResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgOperatorDetachResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil + return n } -func encodeVarintTx(dAtA []byte, offset int, v uint64) int { - offset -= sovTx(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MsgSendFT) Size() (n int) { +func (m *MsgBurnFT) Size() (n int) { if m == nil { return 0 } @@ -5559,10 +5039,6 @@ func (m *MsgSendFT) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.To) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() @@ -5572,7 +5048,7 @@ func (m *MsgSendFT) Size() (n int) { return n } -func (m *MsgSendFTResponse) Size() (n int) { +func (m *MsgBurnFTResponse) Size() (n int) { if m == nil { return 0 } @@ -5581,7 +5057,7 @@ func (m *MsgSendFTResponse) Size() (n int) { return n } -func (m *MsgOperatorSendFT) Size() (n int) { +func (m *MsgOperatorBurnFT) Size() (n int) { if m == nil { return 0 } @@ -5599,10 +5075,6 @@ func (m *MsgOperatorSendFT) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.To) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } if len(m.Amount) > 0 { for _, e := range m.Amount { l = e.Size() @@ -5612,7 +5084,7 @@ func (m *MsgOperatorSendFT) Size() (n int) { return n } -func (m *MsgOperatorSendFTResponse) Size() (n int) { +func (m *MsgOperatorBurnFTResponse) Size() (n int) { if m == nil { return 0 } @@ -5621,7 +5093,7 @@ func (m *MsgOperatorSendFTResponse) Size() (n int) { return n } -func (m *MsgSendNFT) Size() (n int) { +func (m *MsgBurnNFT) Size() (n int) { if m == nil { return 0 } @@ -5635,10 +5107,6 @@ func (m *MsgSendNFT) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.To) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } if len(m.TokenIds) > 0 { for _, s := range m.TokenIds { l = len(s) @@ -5648,7 +5116,7 @@ func (m *MsgSendNFT) Size() (n int) { return n } -func (m *MsgSendNFTResponse) Size() (n int) { +func (m *MsgBurnNFTResponse) Size() (n int) { if m == nil { return 0 } @@ -5657,7 +5125,7 @@ func (m *MsgSendNFTResponse) Size() (n int) { return n } -func (m *MsgOperatorSendNFT) Size() (n int) { +func (m *MsgOperatorBurnNFT) Size() (n int) { if m == nil { return 0 } @@ -5675,10 +5143,6 @@ func (m *MsgOperatorSendNFT) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.To) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } if len(m.TokenIds) > 0 { for _, s := range m.TokenIds { l = len(s) @@ -5688,37 +5152,7 @@ func (m *MsgOperatorSendNFT) Size() (n int) { return n } -func (m *MsgOperatorSendNFTResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgAuthorizeOperator) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Holder) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgAuthorizeOperatorResponse) Size() (n int) { +func (m *MsgOperatorBurnNFTResponse) Size() (n int) { if m == nil { return 0 } @@ -5727,7 +5161,7 @@ func (m *MsgAuthorizeOperatorResponse) Size() (n int) { return n } -func (m *MsgRevokeOperator) Size() (n int) { +func (m *MsgModify) Size() (n int) { if m == nil { return 0 } @@ -5737,65 +5171,37 @@ func (m *MsgRevokeOperator) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Holder) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgRevokeOperatorResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgCreateContract) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l l = len(m.Owner) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Name) + l = len(m.TokenType) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Uri) + l = len(m.TokenIndex) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Meta) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } } return n } -func (m *MsgCreateContractResponse) Size() (n int) { +func (m *MsgModifyResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } return n } -func (m *MsgIssueFT) Size() (n int) { +func (m *MsgGrantPermission) Size() (n int) { if m == nil { return 0 } @@ -5805,1546 +5211,67 @@ func (m *MsgIssueFT) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Meta) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Decimals != 0 { - n += 1 + sovTx(uint64(m.Decimals)) - } - if m.Mintable { - n += 2 - } - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.To) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.Amount.Size() - n += 1 + l + sovTx(uint64(l)) - return n -} - -func (m *MsgIssueFTResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TokenId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgIssueNFT) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Meta) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgIssueNFTResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TokenType) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgMintFT) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.To) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Amount) > 0 { - for _, e := range m.Amount { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgMintFTResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgMintNFT) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) + l = len(m.From) if l > 0 { n += 1 + l + sovTx(uint64(l)) } l = len(m.To) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Params) > 0 { - for _, e := range m.Params { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgMintNFTResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.TokenIds) > 0 { - for _, s := range m.TokenIds { - l = len(s) - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MintNFTParam) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TokenType) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Meta) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgBurnFT) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Amount) > 0 { - for _, e := range m.Amount { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgBurnFTResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgOperatorBurnFT) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Amount) > 0 { - for _, e := range m.Amount { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgOperatorBurnFTResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgBurnNFT) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.TokenIds) > 0 { - for _, s := range m.TokenIds { - l = len(s) - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgBurnNFTResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgOperatorBurnNFT) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.TokenIds) > 0 { - for _, s := range m.TokenIds { - l = len(s) - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgOperatorBurnNFTResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgModify) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.TokenType) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.TokenIndex) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Changes) > 0 { - for _, e := range m.Changes { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgModifyResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgGrantPermission) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.To) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Permission) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgGrantPermissionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgRevokePermission) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Permission) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgRevokePermissionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgAttach) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.TokenId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ToTokenId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgAttachResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgDetach) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.TokenId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgDetachResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgOperatorAttach) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.TokenId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ToTokenId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgOperatorAttachResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgOperatorDetach) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.TokenId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgOperatorDetachResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovTx(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTx(x uint64) (n int) { - return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *MsgSendFT) 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: MsgSendFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSendFT: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", 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.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", 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.To = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 - } - m.Amount = append(m.Amount, Coin{}) - if err := m.Amount[len(m.Amount)-1].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 *MsgSendFTResponse) 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: MsgSendFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSendFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgOperatorSendFT) 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: MsgOperatorSendFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorSendFT: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", 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.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", 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.To = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 - } - m.Amount = append(m.Amount, Coin{}) - if err := m.Amount[len(m.Amount)-1].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 *MsgOperatorSendFTResponse) 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: MsgOperatorSendFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorSendFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgSendNFT) 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: MsgSendNFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSendNFT: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", 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.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", 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.To = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", 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.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgSendNFTResponse) 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: MsgSendNFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSendNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgOperatorSendNFT) 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: MsgOperatorSendNFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorSendNFT: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", 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.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", 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.To = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", 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.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgOperatorSendNFTResponse) 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: MsgOperatorSendNFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorSendNFTResponse: 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 l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Permission) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) } + return n +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (m *MsgGrantPermissionResponse) Size() (n int) { + if m == nil { + return 0 } - return nil + var l int + _ = l + return n } -func (m *MsgAuthorizeOperator) Unmarshal(dAtA []byte) error { + +func (m *MsgRevokePermission) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Permission) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRevokePermissionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgSendFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7367,10 +5294,10 @@ func (m *MsgAuthorizeOperator) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAuthorizeOperator: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSendFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAuthorizeOperator: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSendFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7407,7 +5334,7 @@ func (m *MsgAuthorizeOperator) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7435,11 +5362,11 @@ func (m *MsgAuthorizeOperator) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Holder = string(dAtA[iNdEx:postIndex]) + m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7467,7 +5394,41 @@ func (m *MsgAuthorizeOperator) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Operator = string(dAtA[iNdEx:postIndex]) + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -7490,7 +5451,7 @@ func (m *MsgAuthorizeOperator) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAuthorizeOperatorResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSendFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7513,10 +5474,10 @@ func (m *MsgAuthorizeOperatorResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAuthorizeOperatorResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSendFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAuthorizeOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSendFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -7540,7 +5501,7 @@ func (m *MsgAuthorizeOperatorResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRevokeOperator) Unmarshal(dAtA []byte) error { +func (m *MsgOperatorSendFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7563,10 +5524,10 @@ func (m *MsgRevokeOperator) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRevokeOperator: wiretype end group for non-group") + return fmt.Errorf("proto: MsgOperatorSendFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRevokeOperator: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgOperatorSendFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7603,7 +5564,7 @@ func (m *MsgRevokeOperator) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7631,11 +5592,11 @@ func (m *MsgRevokeOperator) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Holder = string(dAtA[iNdEx:postIndex]) + m.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7663,7 +5624,73 @@ func (m *MsgRevokeOperator) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Operator = string(dAtA[iNdEx:postIndex]) + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", 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.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -7686,7 +5713,7 @@ func (m *MsgRevokeOperator) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRevokeOperatorResponse) Unmarshal(dAtA []byte) error { +func (m *MsgOperatorSendFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7709,10 +5736,10 @@ func (m *MsgRevokeOperatorResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRevokeOperatorResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgOperatorSendFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRevokeOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgOperatorSendFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -7736,7 +5763,7 @@ func (m *MsgRevokeOperatorResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateContract) Unmarshal(dAtA []byte) error { +func (m *MsgSendNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7759,15 +5786,15 @@ func (m *MsgCreateContract) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateContract: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSendNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateContract: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSendNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7795,11 +5822,11 @@ func (m *MsgCreateContract) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Owner = string(dAtA[iNdEx:postIndex]) + m.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7827,11 +5854,11 @@ func (m *MsgCreateContract) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7859,11 +5886,11 @@ func (m *MsgCreateContract) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Uri = string(dAtA[iNdEx:postIndex]) + m.To = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7891,7 +5918,7 @@ func (m *MsgCreateContract) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Meta = string(dAtA[iNdEx:postIndex]) + m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -7914,7 +5941,7 @@ func (m *MsgCreateContract) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateContractResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSendNFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7937,44 +5964,12 @@ func (m *MsgCreateContractResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateContractResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSendNFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSendNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", 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.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -7996,7 +5991,7 @@ func (m *MsgCreateContractResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { +func (m *MsgOperatorSendNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8019,10 +6014,10 @@ func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgIssueFT: wiretype end group for non-group") + return fmt.Errorf("proto: MsgOperatorSendNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgIssueFT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgOperatorSendNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8059,7 +6054,7 @@ func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8087,11 +6082,11 @@ func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8119,80 +6114,9 @@ func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Meta = string(dAtA[iNdEx:postIndex]) + m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) - } - m.Decimals = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Decimals |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Mintable = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } @@ -8224,9 +6148,9 @@ func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { } m.To = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8254,9 +6178,7 @@ func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -8279,7 +6201,7 @@ func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgIssueFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgOperatorSendNFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8302,44 +6224,12 @@ func (m *MsgIssueFTResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgIssueFTResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgOperatorSendNFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgIssueFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgOperatorSendNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", 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.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -8361,7 +6251,7 @@ func (m *MsgIssueFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgIssueNFT) Unmarshal(dAtA []byte) error { +func (m *MsgAuthorizeOperator) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8384,10 +6274,10 @@ func (m *MsgIssueNFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgIssueNFT: wiretype end group for non-group") + return fmt.Errorf("proto: MsgAuthorizeOperator: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgIssueNFT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgAuthorizeOperator: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8424,7 +6314,7 @@ func (m *MsgIssueNFT) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8452,43 +6342,11 @@ func (m *MsgIssueNFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Holder = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Meta", 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.Meta = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8516,7 +6374,7 @@ func (m *MsgIssueNFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Owner = string(dAtA[iNdEx:postIndex]) + m.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8539,7 +6397,7 @@ func (m *MsgIssueNFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgIssueNFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgAuthorizeOperatorResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8562,44 +6420,12 @@ func (m *MsgIssueNFTResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgIssueNFTResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgAuthorizeOperatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgIssueNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgAuthorizeOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenType", 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.TokenType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -8621,7 +6447,7 @@ func (m *MsgIssueNFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMintFT) Unmarshal(dAtA []byte) error { +func (m *MsgRevokeOperator) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8644,10 +6470,10 @@ func (m *MsgMintFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMintFT: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRevokeOperator: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMintFT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRevokeOperator: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8684,39 +6510,7 @@ func (m *MsgMintFT) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8744,13 +6538,13 @@ func (m *MsgMintFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.To = string(dAtA[iNdEx:postIndex]) + m.Holder = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -8760,25 +6554,23 @@ func (m *MsgMintFT) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.Amount = append(m.Amount, Coin{}) - if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8801,7 +6593,7 @@ func (m *MsgMintFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMintFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgRevokeOperatorResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8824,10 +6616,10 @@ func (m *MsgMintFTResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMintFTResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRevokeOperatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMintFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRevokeOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -8851,7 +6643,7 @@ func (m *MsgMintFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { +func (m *MsgCreateContract) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8874,15 +6666,15 @@ func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMintNFT: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateContract: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMintNFT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateContract: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8910,11 +6702,11 @@ func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContractId = string(dAtA[iNdEx:postIndex]) + m.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8942,11 +6734,11 @@ func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.From = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8974,13 +6766,13 @@ func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.To = string(dAtA[iNdEx:postIndex]) + m.Uri = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -8990,25 +6782,23 @@ func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.Params = append(m.Params, MintNFTParam{}) - if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Meta = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -9031,7 +6821,7 @@ func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMintNFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCreateContractResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9054,15 +6844,15 @@ func (m *MsgMintNFTResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMintNFTResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateContractResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMintNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9090,7 +6880,7 @@ func (m *MsgMintNFTResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) + m.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -9113,7 +6903,7 @@ func (m *MsgMintNFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MintNFTParam) Unmarshal(dAtA []byte) error { +func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9136,15 +6926,15 @@ func (m *MintNFTParam) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MintNFTParam: wiretype end group for non-group") + return fmt.Errorf("proto: MsgIssueFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MintNFTParam: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgIssueFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9172,7 +6962,7 @@ func (m *MintNFTParam) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenType = string(dAtA[iNdEx:postIndex]) + m.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -9238,59 +7028,48 @@ func (m *MintNFTParam) Unmarshal(dAtA []byte) error { } m.Meta = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgBurnFT) 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 + m.Decimals = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimals |= int32(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgBurnFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBurnFT: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Mintable = bool(v != 0) + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9318,11 +7097,11 @@ func (m *MsgBurnFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContractId = string(dAtA[iNdEx:postIndex]) + m.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9350,13 +7129,13 @@ func (m *MsgBurnFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.From = string(dAtA[iNdEx:postIndex]) + m.To = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -9366,23 +7145,23 @@ func (m *MsgBurnFT) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.Amount = append(m.Amount, Coin{}) - if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9407,7 +7186,7 @@ func (m *MsgBurnFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgBurnFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgIssueFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9430,12 +7209,44 @@ func (m *MsgBurnFTResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgBurnFTResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgIssueFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBurnFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgIssueFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", 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.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -9457,7 +7268,7 @@ func (m *MsgBurnFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOperatorBurnFT) Unmarshal(dAtA []byte) error { +func (m *MsgIssueNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9480,10 +7291,10 @@ func (m *MsgOperatorBurnFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgOperatorBurnFT: wiretype end group for non-group") + return fmt.Errorf("proto: MsgIssueNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorBurnFT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgIssueNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9520,7 +7331,7 @@ func (m *MsgOperatorBurnFT) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9548,11 +7359,11 @@ func (m *MsgOperatorBurnFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Operator = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9580,13 +7391,13 @@ func (m *MsgOperatorBurnFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.From = string(dAtA[iNdEx:postIndex]) + m.Meta = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -9596,25 +7407,23 @@ func (m *MsgOperatorBurnFT) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.Amount = append(m.Amount, Coin{}) - if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -9637,7 +7446,7 @@ func (m *MsgOperatorBurnFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOperatorBurnFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgIssueNFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9660,12 +7469,44 @@ func (m *MsgOperatorBurnFTResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgOperatorBurnFTResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgIssueNFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorBurnFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgIssueNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", 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.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -9687,7 +7528,7 @@ func (m *MsgOperatorBurnFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgBurnNFT) Unmarshal(dAtA []byte) error { +func (m *MsgMintFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9710,10 +7551,10 @@ func (m *MsgBurnNFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgBurnNFT: wiretype end group for non-group") + return fmt.Errorf("proto: MsgMintFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBurnNFT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgMintFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9782,7 +7623,7 @@ func (m *MsgBurnNFT) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9810,7 +7651,41 @@ func (m *MsgBurnNFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -9833,7 +7708,7 @@ func (m *MsgBurnNFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgBurnNFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgMintFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9856,10 +7731,10 @@ func (m *MsgBurnNFTResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgBurnNFTResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgMintFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBurnNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgMintFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -9883,7 +7758,7 @@ func (m *MsgBurnNFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOperatorBurnNFT) Unmarshal(dAtA []byte) error { +func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9906,10 +7781,10 @@ func (m *MsgOperatorBurnNFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgOperatorBurnNFT: wiretype end group for non-group") + return fmt.Errorf("proto: MsgMintNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorBurnNFT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgMintNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9946,7 +7821,7 @@ func (m *MsgOperatorBurnNFT) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9974,11 +7849,11 @@ func (m *MsgOperatorBurnNFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Operator = string(dAtA[iNdEx:postIndex]) + m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10006,13 +7881,13 @@ func (m *MsgOperatorBurnNFT) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.From = string(dAtA[iNdEx:postIndex]) + m.To = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -10022,23 +7897,25 @@ func (m *MsgOperatorBurnNFT) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) + m.Params = append(m.Params, MintNFTParam{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -10061,7 +7938,7 @@ func (m *MsgOperatorBurnNFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOperatorBurnNFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgMintNFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10084,12 +7961,44 @@ func (m *MsgOperatorBurnNFTResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgOperatorBurnNFTResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgMintNFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorBurnNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgMintNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", 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.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -10111,7 +8020,7 @@ func (m *MsgOperatorBurnNFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgModify) Unmarshal(dAtA []byte) error { +func (m *MintNFTParam) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10134,15 +8043,15 @@ func (m *MsgModify) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgModify: wiretype end group for non-group") + return fmt.Errorf("proto: MintNFTParam: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgModify: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MintNFTParam: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10170,11 +8079,11 @@ func (m *MsgModify) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContractId = string(dAtA[iNdEx:postIndex]) + m.TokenType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10202,11 +8111,11 @@ func (m *MsgModify) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Owner = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10234,11 +8143,93 @@ func (m *MsgModify) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenType = string(dAtA[iNdEx:postIndex]) + m.Meta = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + 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 *MsgBurnFT) 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: MsgBurnFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnFT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", 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.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10266,11 +8257,11 @@ func (m *MsgModify) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenIndex = string(dAtA[iNdEx:postIndex]) + m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10297,8 +8288,8 @@ func (m *MsgModify) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Changes = append(m.Changes, Attribute{}) - if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10323,7 +8314,7 @@ func (m *MsgModify) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgModifyResponse) Unmarshal(dAtA []byte) error { +func (m *MsgBurnFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10346,10 +8337,10 @@ func (m *MsgModifyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgModifyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgBurnFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgModifyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgBurnFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -10373,7 +8364,7 @@ func (m *MsgModifyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgGrantPermission) Unmarshal(dAtA []byte) error { +func (m *MsgOperatorBurnFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10396,10 +8387,10 @@ func (m *MsgGrantPermission) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgGrantPermission: wiretype end group for non-group") + return fmt.Errorf("proto: MsgOperatorBurnFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgGrantPermission: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgOperatorBurnFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -10436,7 +8427,7 @@ func (m *MsgGrantPermission) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10464,11 +8455,11 @@ func (m *MsgGrantPermission) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.From = string(dAtA[iNdEx:postIndex]) + m.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10496,13 +8487,13 @@ func (m *MsgGrantPermission) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.To = string(dAtA[iNdEx:postIndex]) + m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -10512,23 +8503,25 @@ func (m *MsgGrantPermission) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.Permission = string(dAtA[iNdEx:postIndex]) + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -10551,7 +8544,7 @@ func (m *MsgGrantPermission) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgGrantPermissionResponse) Unmarshal(dAtA []byte) error { +func (m *MsgOperatorBurnFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10574,10 +8567,10 @@ func (m *MsgGrantPermissionResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgGrantPermissionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgOperatorBurnFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgGrantPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgOperatorBurnFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -10601,7 +8594,7 @@ func (m *MsgGrantPermissionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRevokePermission) Unmarshal(dAtA []byte) error { +func (m *MsgBurnNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10624,10 +8617,10 @@ func (m *MsgRevokePermission) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRevokePermission: wiretype end group for non-group") + return fmt.Errorf("proto: MsgBurnNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRevokePermission: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgBurnNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -10696,7 +8689,7 @@ func (m *MsgRevokePermission) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10724,7 +8717,7 @@ func (m *MsgRevokePermission) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Permission = string(dAtA[iNdEx:postIndex]) + m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -10747,7 +8740,7 @@ func (m *MsgRevokePermission) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRevokePermissionResponse) Unmarshal(dAtA []byte) error { +func (m *MsgBurnNFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10770,10 +8763,10 @@ func (m *MsgRevokePermissionResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRevokePermissionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgBurnNFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgBurnNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -10797,7 +8790,7 @@ func (m *MsgRevokePermissionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAttach) Unmarshal(dAtA []byte) error { +func (m *MsgOperatorBurnNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10820,10 +8813,10 @@ func (m *MsgAttach) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAttach: wiretype end group for non-group") + return fmt.Errorf("proto: MsgOperatorBurnNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAttach: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgOperatorBurnNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -10860,7 +8853,7 @@ func (m *MsgAttach) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10888,11 +8881,11 @@ func (m *MsgAttach) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.From = string(dAtA[iNdEx:postIndex]) + m.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10920,11 +8913,11 @@ func (m *MsgAttach) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenId = string(dAtA[iNdEx:postIndex]) + m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ToTokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10952,7 +8945,7 @@ func (m *MsgAttach) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ToTokenId = string(dAtA[iNdEx:postIndex]) + m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -10975,7 +8968,7 @@ func (m *MsgAttach) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAttachResponse) Unmarshal(dAtA []byte) error { +func (m *MsgOperatorBurnNFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10998,10 +8991,10 @@ func (m *MsgAttachResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAttachResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgOperatorBurnNFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAttachResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgOperatorBurnNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -11025,7 +9018,7 @@ func (m *MsgAttachResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgDetach) Unmarshal(dAtA []byte) error { +func (m *MsgModify) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11048,10 +9041,10 @@ func (m *MsgDetach) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgDetach: wiretype end group for non-group") + return fmt.Errorf("proto: MsgModify: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDetach: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgModify: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -11088,7 +9081,7 @@ func (m *MsgDetach) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11116,11 +9109,11 @@ func (m *MsgDetach) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.From = string(dAtA[iNdEx:postIndex]) + m.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11148,7 +9141,73 @@ func (m *MsgDetach) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenId = string(dAtA[iNdEx:postIndex]) + m.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIndex", 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.TokenIndex = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", 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 + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -11171,7 +9230,7 @@ func (m *MsgDetach) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgDetachResponse) Unmarshal(dAtA []byte) error { +func (m *MsgModifyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11194,10 +9253,10 @@ func (m *MsgDetachResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgDetachResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgModifyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDetachResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgModifyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -11221,7 +9280,7 @@ func (m *MsgDetachResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOperatorAttach) Unmarshal(dAtA []byte) error { +func (m *MsgGrantPermission) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11244,10 +9303,10 @@ func (m *MsgOperatorAttach) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgOperatorAttach: wiretype end group for non-group") + return fmt.Errorf("proto: MsgGrantPermission: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorAttach: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgGrantPermission: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -11283,38 +9342,6 @@ func (m *MsgOperatorAttach) Unmarshal(dAtA []byte) error { m.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } @@ -11346,9 +9373,9 @@ func (m *MsgOperatorAttach) Unmarshal(dAtA []byte) error { } m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11376,11 +9403,11 @@ func (m *MsgOperatorAttach) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenId = string(dAtA[iNdEx:postIndex]) + m.To = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ToTokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11408,7 +9435,7 @@ func (m *MsgOperatorAttach) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ToTokenId = string(dAtA[iNdEx:postIndex]) + m.Permission = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -11431,7 +9458,7 @@ func (m *MsgOperatorAttach) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOperatorAttachResponse) Unmarshal(dAtA []byte) error { +func (m *MsgGrantPermissionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11454,10 +9481,10 @@ func (m *MsgOperatorAttachResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgOperatorAttachResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgGrantPermissionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorAttachResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgGrantPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -11481,7 +9508,7 @@ func (m *MsgOperatorAttachResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOperatorDetach) Unmarshal(dAtA []byte) error { +func (m *MsgRevokePermission) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11504,10 +9531,10 @@ func (m *MsgOperatorDetach) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgOperatorDetach: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRevokePermission: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorDetach: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRevokePermission: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -11543,38 +9570,6 @@ func (m *MsgOperatorDetach) Unmarshal(dAtA []byte) error { m.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } @@ -11606,9 +9601,9 @@ func (m *MsgOperatorDetach) Unmarshal(dAtA []byte) error { } m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11636,7 +9631,7 @@ func (m *MsgOperatorDetach) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenId = string(dAtA[iNdEx:postIndex]) + m.Permission = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -11659,7 +9654,7 @@ func (m *MsgOperatorDetach) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOperatorDetachResponse) Unmarshal(dAtA []byte) error { +func (m *MsgRevokePermissionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11682,10 +9677,10 @@ func (m *MsgOperatorDetachResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgOperatorDetachResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRevokePermissionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorDetachResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: