From 810553bf9516679afd31543d2f3a006df5fb7df3 Mon Sep 17 00:00:00 2001 From: Jayden Lee <41176085+tkxkd0159@users.noreply.github.com> Date: Tue, 20 Feb 2024 20:31:36 +0900 Subject: [PATCH] remove FT feature & data --- api/lbm/collection/v1/collection.pulsar.go | 1078 +- api/lbm/collection/v1/event.pulsar.go | 2769 +--- api/lbm/collection/v1/genesis.pulsar.go | 157 +- api/lbm/collection/v1/query.pulsar.go | 3965 +---- api/lbm/collection/v1/query_grpc.pb.go | 117 - api/lbm/collection/v1/tx.pulsar.go | 12322 ++++------------ api/lbm/collection/v1/tx_grpc.pb.go | 262 - proto/lbm/collection/v1/collection.proto | 21 +- proto/lbm/collection/v1/event.proto | 34 - proto/lbm/collection/v1/genesis.proto | 9 +- proto/lbm/collection/v1/query.proto | 69 - proto/lbm/collection/v1/tx.proto | 168 - x/collection/client/cli/query.go | 120 - x/collection/client/cli/tx.go | 301 - x/collection/codec.go | 13 - x/collection/collection.go | 36 +- x/collection/collection.pb.go | 491 +- x/collection/collection_test.go | 62 +- x/collection/errors.go | 6 +- x/collection/event.pb.go | 933 +- x/collection/genesis.pb.go | 166 +- x/collection/genesis_test.go | 5 +- x/collection/keeper/genesis_test.go | 9 +- x/collection/keeper/grpc_query.go | 113 +- x/collection/keeper/grpc_query_test.go | 281 +- x/collection/keeper/keeper_test.go | 30 +- x/collection/keeper/migrations.go | 4 +- x/collection/keeper/migrations/v2/keys.go | 115 - x/collection/keeper/migrations/v2/store.go | 138 - .../keeper/migrations/v2/store_test.go | 155 - x/collection/keeper/migrations/v3/helper.go | 25 + x/collection/keeper/migrations/v3/keys.go | 104 +- x/collection/keeper/migrations/v3/store.go | 59 +- x/collection/keeper/msg_server.go | 242 +- x/collection/keeper/msg_server_test.go | 774 - x/collection/keeper/nft.go | 3 - x/collection/keeper/nft_test.go | 8 - x/collection/keeper/send_test.go | 7 +- x/collection/keeper/supply.go | 56 +- x/collection/keeper/supply_test.go | 108 +- x/collection/msgs.go | 348 +- x/collection/msgs_test.go | 641 - x/collection/query.pb.go | 1536 +- x/collection/query.pb.gw.go | 369 - x/collection/tx.pb.go | 4499 +----- 45 files changed, 4791 insertions(+), 27937 deletions(-) delete mode 100644 x/collection/keeper/migrations/v2/keys.go delete mode 100644 x/collection/keeper/migrations/v2/store.go delete mode 100644 x/collection/keeper/migrations/v2/store_test.go diff --git a/api/lbm/collection/v1/collection.pulsar.go b/api/lbm/collection/v1/collection.pulsar.go index cd96d710ea..d12a1bf299 100644 --- a/api/lbm/collection/v1/collection.pulsar.go +++ b/api/lbm/collection/v1/collection.pulsar.go @@ -3404,720 +3404,6 @@ func (x *fastReflection_OwnerNFT) ProtoMethods() *protoiface.Methods { } } -var ( - md_FT protoreflect.MessageDescriptor - fd_FT_contract_id protoreflect.FieldDescriptor - fd_FT_token_id protoreflect.FieldDescriptor - fd_FT_name protoreflect.FieldDescriptor - fd_FT_meta protoreflect.FieldDescriptor - fd_FT_decimals protoreflect.FieldDescriptor - fd_FT_mintable protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_collection_proto_init() - md_FT = File_lbm_collection_v1_collection_proto.Messages().ByName("FT") - fd_FT_contract_id = md_FT.Fields().ByName("contract_id") - fd_FT_token_id = md_FT.Fields().ByName("token_id") - fd_FT_name = md_FT.Fields().ByName("name") - fd_FT_meta = md_FT.Fields().ByName("meta") - fd_FT_decimals = md_FT.Fields().ByName("decimals") - fd_FT_mintable = md_FT.Fields().ByName("mintable") -} - -var _ protoreflect.Message = (*fastReflection_FT)(nil) - -type fastReflection_FT FT - -func (x *FT) ProtoReflect() protoreflect.Message { - return (*fastReflection_FT)(x) -} - -func (x *FT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_FT_messageType fastReflection_FT_messageType -var _ protoreflect.MessageType = fastReflection_FT_messageType{} - -type fastReflection_FT_messageType struct{} - -func (x fastReflection_FT_messageType) Zero() protoreflect.Message { - return (*fastReflection_FT)(nil) -} -func (x fastReflection_FT_messageType) New() protoreflect.Message { - return new(fastReflection_FT) -} -func (x fastReflection_FT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_FT -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_FT) Descriptor() protoreflect.MessageDescriptor { - return md_FT -} - -// 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_FT) Type() protoreflect.MessageType { - return _fastReflection_FT_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_FT) New() protoreflect.Message { - return new(fastReflection_FT) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_FT) Interface() protoreflect.ProtoMessage { - return (*FT)(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_FT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_FT_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_FT_token_id, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_FT_name, value) { - return - } - } - if x.Meta != "" { - value := protoreflect.ValueOfString(x.Meta) - if !f(fd_FT_meta, value) { - return - } - } - if x.Decimals != int32(0) { - value := protoreflect.ValueOfInt32(x.Decimals) - if !f(fd_FT_decimals, value) { - return - } - } - if x.Mintable != false { - value := protoreflect.ValueOfBool(x.Mintable) - if !f(fd_FT_mintable, 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_FT) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.FT.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.FT.token_id": - return x.TokenId != "" - case "lbm.collection.v1.FT.name": - return x.Name != "" - case "lbm.collection.v1.FT.meta": - return x.Meta != "" - case "lbm.collection.v1.FT.decimals": - return x.Decimals != int32(0) - case "lbm.collection.v1.FT.mintable": - return x.Mintable != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.FT")) - } - panic(fmt.Errorf("message lbm.collection.v1.FT 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_FT) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.FT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.FT.token_id": - x.TokenId = "" - case "lbm.collection.v1.FT.name": - x.Name = "" - case "lbm.collection.v1.FT.meta": - x.Meta = "" - case "lbm.collection.v1.FT.decimals": - x.Decimals = int32(0) - case "lbm.collection.v1.FT.mintable": - x.Mintable = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.FT")) - } - panic(fmt.Errorf("message lbm.collection.v1.FT 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_FT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.FT.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.FT.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.FT.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.FT.meta": - value := x.Meta - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.FT.decimals": - value := x.Decimals - return protoreflect.ValueOfInt32(value) - case "lbm.collection.v1.FT.mintable": - value := x.Mintable - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.FT")) - } - panic(fmt.Errorf("message lbm.collection.v1.FT 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_FT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.FT.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.FT.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.FT.name": - x.Name = value.Interface().(string) - case "lbm.collection.v1.FT.meta": - x.Meta = value.Interface().(string) - case "lbm.collection.v1.FT.decimals": - x.Decimals = int32(value.Int()) - case "lbm.collection.v1.FT.mintable": - x.Mintable = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.FT")) - } - panic(fmt.Errorf("message lbm.collection.v1.FT 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_FT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.FT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.FT is not mutable")) - case "lbm.collection.v1.FT.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.FT is not mutable")) - case "lbm.collection.v1.FT.name": - panic(fmt.Errorf("field name of message lbm.collection.v1.FT is not mutable")) - case "lbm.collection.v1.FT.meta": - panic(fmt.Errorf("field meta of message lbm.collection.v1.FT is not mutable")) - case "lbm.collection.v1.FT.decimals": - panic(fmt.Errorf("field decimals of message lbm.collection.v1.FT is not mutable")) - case "lbm.collection.v1.FT.mintable": - panic(fmt.Errorf("field mintable of message lbm.collection.v1.FT is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.FT")) - } - panic(fmt.Errorf("message lbm.collection.v1.FT 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_FT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.FT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.FT.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.FT.name": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.FT.meta": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.FT.decimals": - return protoreflect.ValueOfInt32(int32(0)) - case "lbm.collection.v1.FT.mintable": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.FT")) - } - panic(fmt.Errorf("message lbm.collection.v1.FT 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_FT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.FT", 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_FT) 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_FT) 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_FT) 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_FT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*FT) - 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.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Meta) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Decimals != 0 { - n += 1 + runtime.Sov(uint64(x.Decimals)) - } - if x.Mintable { - 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().(*FT) - 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.Mintable { - i-- - if x.Mintable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if x.Decimals != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Decimals)) - i-- - dAtA[i] = 0x28 - } - if len(x.Meta) > 0 { - i -= len(x.Meta) - copy(dAtA[i:], x.Meta) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Meta))) - i-- - dAtA[i] = 0x22 - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - 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().(*FT) - 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: FT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FT: 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 Name", 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.Name = 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 Meta", 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.Meta = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) - } - x.Decimals = 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.Decimals |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Mintable", 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.Mintable = 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_TokenType protoreflect.MessageDescriptor fd_TokenType_contract_id protoreflect.FieldDescriptor @@ -4144,7 +3430,7 @@ func (x *TokenType) ProtoReflect() protoreflect.Message { } func (x *TokenType) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[7] + mi := &file_lbm_collection_v1_collection_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4752,7 +4038,7 @@ func (x *Coin) ProtoReflect() protoreflect.Message { } func (x *Coin) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[8] + mi := &file_lbm_collection_v1_collection_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5236,7 +4522,7 @@ func (x *Grant) ProtoReflect() protoreflect.Message { } func (x *Grant) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[9] + mi := &file_lbm_collection_v1_collection_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5704,7 +4990,7 @@ func (x *Authorization) ProtoReflect() protoreflect.Message { } func (x *Authorization) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[10] + mi := &file_lbm_collection_v1_collection_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6188,7 +5474,7 @@ func (x *Attribute) ProtoReflect() protoreflect.Message { } func (x *Attribute) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[11] + mi := &file_lbm_collection_v1_collection_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6881,6 +6167,8 @@ func (x *Contract) GetUri() string { // FTClass defines the class of fungible token. // // Since: 0.46.0 (finschia) +// +// Deprecated: Do not use. type FTClass struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -7145,90 +6433,6 @@ func (x *OwnerNFT) GetOwner() string { return "" } -// Deprecated: use FTClass -// -// FT defines the information of fungible token. -type FT 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 defines the unique identifier of the fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // name defines the human-readable name of the fungible token. - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // meta is a brief description of the fungible token. - Meta string `protobuf:"bytes,4,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,5,opt,name=decimals,proto3" json:"decimals,omitempty"` - // mintable represents whether the fungible token is allowed to be minted or burnt. - Mintable bool `protobuf:"varint,6,opt,name=mintable,proto3" json:"mintable,omitempty"` -} - -func (x *FT) Reset() { - *x = FT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FT) ProtoMessage() {} - -// Deprecated: Use FT.ProtoReflect.Descriptor instead. -func (*FT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{6} -} - -func (x *FT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *FT) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -func (x *FT) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *FT) GetMeta() string { - if x != nil { - return x.Meta - } - return "" -} - -func (x *FT) GetDecimals() int32 { - if x != nil { - return x.Decimals - } - return 0 -} - -func (x *FT) GetMintable() bool { - if x != nil { - return x.Mintable - } - return false -} - // Deprecated: use TokenClass // // TokenType defines the information of token type. @@ -7254,7 +6458,7 @@ type TokenType struct { func (x *TokenType) Reset() { *x = TokenType{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[7] + mi := &file_lbm_collection_v1_collection_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7268,7 +6472,7 @@ func (*TokenType) ProtoMessage() {} // Deprecated: Use TokenType.ProtoReflect.Descriptor instead. func (*TokenType) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{7} + return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{6} } func (x *TokenType) GetContractId() string { @@ -7314,7 +6518,7 @@ type Coin struct { func (x *Coin) Reset() { *x = Coin{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[8] + mi := &file_lbm_collection_v1_collection_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7328,7 +6532,7 @@ func (*Coin) ProtoMessage() {} // Deprecated: Use Coin.ProtoReflect.Descriptor instead. func (*Coin) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{8} + return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{7} } func (x *Coin) GetTokenId() string { @@ -7362,7 +6566,7 @@ type Grant struct { func (x *Grant) Reset() { *x = Grant{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[9] + mi := &file_lbm_collection_v1_collection_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7376,7 +6580,7 @@ func (*Grant) ProtoMessage() {} // Deprecated: Use Grant.ProtoReflect.Descriptor instead. func (*Grant) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{9} + return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{8} } func (x *Grant) GetGrantee() string { @@ -7410,7 +6614,7 @@ type Authorization struct { func (x *Authorization) Reset() { *x = Authorization{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[10] + mi := &file_lbm_collection_v1_collection_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7424,7 +6628,7 @@ func (*Authorization) ProtoMessage() {} // Deprecated: Use Authorization.ProtoReflect.Descriptor instead. func (*Authorization) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{10} + return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{9} } func (x *Authorization) GetHolder() string { @@ -7456,7 +6660,7 @@ type Attribute struct { func (x *Attribute) Reset() { *x = Attribute{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_collection_proto_msgTypes[11] + mi := &file_lbm_collection_v1_collection_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7470,7 +6674,7 @@ func (*Attribute) ProtoMessage() {} // Deprecated: Use Attribute.ProtoReflect.Descriptor instead. func (*Attribute) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{11} + return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{10} } func (x *Attribute) GetKey() string { @@ -7502,7 +6706,7 @@ var file_lbm_collection_v1_collection_proto_rawDesc = []byte{ 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, + 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x22, 0x8f, 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, @@ -7510,121 +6714,110 @@ var file_lbm_collection_v1_collection_proto_rawDesc = []byte{ 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, + 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3a, 0x14, 0x18, 0x01, 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, 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, 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, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, - 0x12, 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, + 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, 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, + 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, 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, - 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, 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, + 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, 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 ( @@ -7640,7 +6833,7 @@ func file_lbm_collection_v1_collection_proto_rawDescGZIP() []byte { } var file_lbm_collection_v1_collection_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_lbm_collection_v1_collection_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_lbm_collection_v1_collection_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_lbm_collection_v1_collection_proto_goTypes = []interface{}{ (Permission)(0), // 0: lbm.collection.v1.Permission (LegacyPermission)(0), // 1: lbm.collection.v1.LegacyPermission @@ -7650,12 +6843,11 @@ var file_lbm_collection_v1_collection_proto_goTypes = []interface{}{ (*NFTClass)(nil), // 5: lbm.collection.v1.NFTClass (*NFT)(nil), // 6: lbm.collection.v1.NFT (*OwnerNFT)(nil), // 7: lbm.collection.v1.OwnerNFT - (*FT)(nil), // 8: lbm.collection.v1.FT - (*TokenType)(nil), // 9: lbm.collection.v1.TokenType - (*Coin)(nil), // 10: lbm.collection.v1.Coin - (*Grant)(nil), // 11: lbm.collection.v1.Grant - (*Authorization)(nil), // 12: lbm.collection.v1.Authorization - (*Attribute)(nil), // 13: lbm.collection.v1.Attribute + (*TokenType)(nil), // 8: lbm.collection.v1.TokenType + (*Coin)(nil), // 9: lbm.collection.v1.Coin + (*Grant)(nil), // 10: lbm.collection.v1.Grant + (*Authorization)(nil), // 11: lbm.collection.v1.Authorization + (*Attribute)(nil), // 12: lbm.collection.v1.Attribute } var file_lbm_collection_v1_collection_proto_depIdxs = []int32{ 0, // 0: lbm.collection.v1.Grant.permission:type_name -> lbm.collection.v1.Permission @@ -7745,18 +6937,6 @@ func file_lbm_collection_v1_collection_proto_init() { } } file_lbm_collection_v1_collection_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FT); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_collection_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TokenType); i { case 0: return &v.state @@ -7768,7 +6948,7 @@ func file_lbm_collection_v1_collection_proto_init() { return nil } } - file_lbm_collection_v1_collection_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_collection_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Coin); i { case 0: return &v.state @@ -7780,7 +6960,7 @@ func file_lbm_collection_v1_collection_proto_init() { return nil } } - file_lbm_collection_v1_collection_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_collection_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Grant); i { case 0: return &v.state @@ -7792,7 +6972,7 @@ func file_lbm_collection_v1_collection_proto_init() { return nil } } - file_lbm_collection_v1_collection_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_collection_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Authorization); i { case 0: return &v.state @@ -7804,7 +6984,7 @@ func file_lbm_collection_v1_collection_proto_init() { return nil } } - file_lbm_collection_v1_collection_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_collection_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Attribute); i { case 0: return &v.state @@ -7823,7 +7003,7 @@ func file_lbm_collection_v1_collection_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_lbm_collection_v1_collection_proto_rawDesc, NumEnums: 2, - NumMessages: 12, + NumMessages: 11, NumExtensions: 0, NumServices: 0, }, diff --git a/api/lbm/collection/v1/event.pulsar.go b/api/lbm/collection/v1/event.pulsar.go index f7dab26132..e8cc69b099 100644 --- a/api/lbm/collection/v1/event.pulsar.go +++ b/api/lbm/collection/v1/event.pulsar.go @@ -2537,37 +2537,33 @@ func (x *fastReflection_EventCreatedContract) ProtoMethods() *protoiface.Methods } var ( - md_EventCreatedFTClass protoreflect.MessageDescriptor - fd_EventCreatedFTClass_contract_id protoreflect.FieldDescriptor - fd_EventCreatedFTClass_operator protoreflect.FieldDescriptor - fd_EventCreatedFTClass_token_id protoreflect.FieldDescriptor - fd_EventCreatedFTClass_name protoreflect.FieldDescriptor - fd_EventCreatedFTClass_meta protoreflect.FieldDescriptor - fd_EventCreatedFTClass_decimals protoreflect.FieldDescriptor - fd_EventCreatedFTClass_mintable protoreflect.FieldDescriptor + md_EventCreatedNFTClass protoreflect.MessageDescriptor + fd_EventCreatedNFTClass_contract_id protoreflect.FieldDescriptor + fd_EventCreatedNFTClass_operator protoreflect.FieldDescriptor + fd_EventCreatedNFTClass_token_type protoreflect.FieldDescriptor + fd_EventCreatedNFTClass_name protoreflect.FieldDescriptor + fd_EventCreatedNFTClass_meta protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_event_proto_init() - md_EventCreatedFTClass = File_lbm_collection_v1_event_proto.Messages().ByName("EventCreatedFTClass") - fd_EventCreatedFTClass_contract_id = md_EventCreatedFTClass.Fields().ByName("contract_id") - fd_EventCreatedFTClass_operator = md_EventCreatedFTClass.Fields().ByName("operator") - fd_EventCreatedFTClass_token_id = md_EventCreatedFTClass.Fields().ByName("token_id") - fd_EventCreatedFTClass_name = md_EventCreatedFTClass.Fields().ByName("name") - fd_EventCreatedFTClass_meta = md_EventCreatedFTClass.Fields().ByName("meta") - fd_EventCreatedFTClass_decimals = md_EventCreatedFTClass.Fields().ByName("decimals") - fd_EventCreatedFTClass_mintable = md_EventCreatedFTClass.Fields().ByName("mintable") + md_EventCreatedNFTClass = File_lbm_collection_v1_event_proto.Messages().ByName("EventCreatedNFTClass") + fd_EventCreatedNFTClass_contract_id = md_EventCreatedNFTClass.Fields().ByName("contract_id") + fd_EventCreatedNFTClass_operator = md_EventCreatedNFTClass.Fields().ByName("operator") + fd_EventCreatedNFTClass_token_type = md_EventCreatedNFTClass.Fields().ByName("token_type") + fd_EventCreatedNFTClass_name = md_EventCreatedNFTClass.Fields().ByName("name") + fd_EventCreatedNFTClass_meta = md_EventCreatedNFTClass.Fields().ByName("meta") } -var _ protoreflect.Message = (*fastReflection_EventCreatedFTClass)(nil) +var _ protoreflect.Message = (*fastReflection_EventCreatedNFTClass)(nil) -type fastReflection_EventCreatedFTClass EventCreatedFTClass +type fastReflection_EventCreatedNFTClass EventCreatedNFTClass -func (x *EventCreatedFTClass) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventCreatedFTClass)(x) +func (x *EventCreatedNFTClass) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventCreatedNFTClass)(x) } -func (x *EventCreatedFTClass) slowProtoReflect() protoreflect.Message { +func (x *EventCreatedNFTClass) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_event_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2579,43 +2575,43 @@ func (x *EventCreatedFTClass) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EventCreatedFTClass_messageType fastReflection_EventCreatedFTClass_messageType -var _ protoreflect.MessageType = fastReflection_EventCreatedFTClass_messageType{} +var _fastReflection_EventCreatedNFTClass_messageType fastReflection_EventCreatedNFTClass_messageType +var _ protoreflect.MessageType = fastReflection_EventCreatedNFTClass_messageType{} -type fastReflection_EventCreatedFTClass_messageType struct{} +type fastReflection_EventCreatedNFTClass_messageType struct{} -func (x fastReflection_EventCreatedFTClass_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventCreatedFTClass)(nil) +func (x fastReflection_EventCreatedNFTClass_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventCreatedNFTClass)(nil) } -func (x fastReflection_EventCreatedFTClass_messageType) New() protoreflect.Message { - return new(fastReflection_EventCreatedFTClass) +func (x fastReflection_EventCreatedNFTClass_messageType) New() protoreflect.Message { + return new(fastReflection_EventCreatedNFTClass) } -func (x fastReflection_EventCreatedFTClass_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventCreatedFTClass +func (x fastReflection_EventCreatedNFTClass_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventCreatedNFTClass } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EventCreatedFTClass) Descriptor() protoreflect.MessageDescriptor { - return md_EventCreatedFTClass +func (x *fastReflection_EventCreatedNFTClass) Descriptor() protoreflect.MessageDescriptor { + return md_EventCreatedNFTClass } // 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_EventCreatedFTClass) Type() protoreflect.MessageType { - return _fastReflection_EventCreatedFTClass_messageType +func (x *fastReflection_EventCreatedNFTClass) Type() protoreflect.MessageType { + return _fastReflection_EventCreatedNFTClass_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventCreatedFTClass) New() protoreflect.Message { - return new(fastReflection_EventCreatedFTClass) +func (x *fastReflection_EventCreatedNFTClass) New() protoreflect.Message { + return new(fastReflection_EventCreatedNFTClass) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EventCreatedFTClass) Interface() protoreflect.ProtoMessage { - return (*EventCreatedFTClass)(x) +func (x *fastReflection_EventCreatedNFTClass) Interface() protoreflect.ProtoMessage { + return (*EventCreatedNFTClass)(x) } // Range iterates over every populated field in an undefined order, @@ -2623,46 +2619,34 @@ func (x *fastReflection_EventCreatedFTClass) 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_EventCreatedFTClass) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_EventCreatedNFTClass) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventCreatedFTClass_contract_id, value) { + if !f(fd_EventCreatedNFTClass_contract_id, value) { return } } if x.Operator != "" { value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventCreatedFTClass_operator, value) { + if !f(fd_EventCreatedNFTClass_operator, value) { return } } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_EventCreatedFTClass_token_id, value) { + if x.TokenType != "" { + value := protoreflect.ValueOfString(x.TokenType) + if !f(fd_EventCreatedNFTClass_token_type, value) { return } } if x.Name != "" { value := protoreflect.ValueOfString(x.Name) - if !f(fd_EventCreatedFTClass_name, value) { + if !f(fd_EventCreatedNFTClass_name, value) { return } } if x.Meta != "" { value := protoreflect.ValueOfString(x.Meta) - if !f(fd_EventCreatedFTClass_meta, value) { - return - } - } - if x.Decimals != int32(0) { - value := protoreflect.ValueOfInt32(x.Decimals) - if !f(fd_EventCreatedFTClass_decimals, value) { - return - } - } - if x.Mintable != false { - value := protoreflect.ValueOfBool(x.Mintable) - if !f(fd_EventCreatedFTClass_mintable, value) { + if !f(fd_EventCreatedNFTClass_meta, value) { return } } @@ -2679,27 +2663,23 @@ func (x *fastReflection_EventCreatedFTClass) 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_EventCreatedFTClass) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_EventCreatedNFTClass) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.EventCreatedFTClass.contract_id": + case "lbm.collection.v1.EventCreatedNFTClass.contract_id": return x.ContractId != "" - case "lbm.collection.v1.EventCreatedFTClass.operator": + case "lbm.collection.v1.EventCreatedNFTClass.operator": return x.Operator != "" - case "lbm.collection.v1.EventCreatedFTClass.token_id": - return x.TokenId != "" - case "lbm.collection.v1.EventCreatedFTClass.name": + case "lbm.collection.v1.EventCreatedNFTClass.token_type": + return x.TokenType != "" + case "lbm.collection.v1.EventCreatedNFTClass.name": return x.Name != "" - case "lbm.collection.v1.EventCreatedFTClass.meta": + case "lbm.collection.v1.EventCreatedNFTClass.meta": return x.Meta != "" - case "lbm.collection.v1.EventCreatedFTClass.decimals": - return x.Decimals != int32(0) - case "lbm.collection.v1.EventCreatedFTClass.mintable": - return x.Mintable != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedFTClass does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass does not contain field %s", fd.FullName())) } } @@ -2709,27 +2689,23 @@ func (x *fastReflection_EventCreatedFTClass) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreatedFTClass) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_EventCreatedNFTClass) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.EventCreatedFTClass.contract_id": + case "lbm.collection.v1.EventCreatedNFTClass.contract_id": x.ContractId = "" - case "lbm.collection.v1.EventCreatedFTClass.operator": + case "lbm.collection.v1.EventCreatedNFTClass.operator": x.Operator = "" - case "lbm.collection.v1.EventCreatedFTClass.token_id": - x.TokenId = "" - case "lbm.collection.v1.EventCreatedFTClass.name": + case "lbm.collection.v1.EventCreatedNFTClass.token_type": + x.TokenType = "" + case "lbm.collection.v1.EventCreatedNFTClass.name": x.Name = "" - case "lbm.collection.v1.EventCreatedFTClass.meta": + case "lbm.collection.v1.EventCreatedNFTClass.meta": x.Meta = "" - case "lbm.collection.v1.EventCreatedFTClass.decimals": - x.Decimals = int32(0) - case "lbm.collection.v1.EventCreatedFTClass.mintable": - x.Mintable = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedFTClass does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass does not contain field %s", fd.FullName())) } } @@ -2739,34 +2715,28 @@ func (x *fastReflection_EventCreatedFTClass) 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_EventCreatedFTClass) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventCreatedNFTClass) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.EventCreatedFTClass.contract_id": + case "lbm.collection.v1.EventCreatedNFTClass.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventCreatedFTClass.operator": + case "lbm.collection.v1.EventCreatedNFTClass.operator": value := x.Operator return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventCreatedFTClass.token_id": - value := x.TokenId + case "lbm.collection.v1.EventCreatedNFTClass.token_type": + value := x.TokenType return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventCreatedFTClass.name": + case "lbm.collection.v1.EventCreatedNFTClass.name": value := x.Name return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventCreatedFTClass.meta": + case "lbm.collection.v1.EventCreatedNFTClass.meta": value := x.Meta return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventCreatedFTClass.decimals": - value := x.Decimals - return protoreflect.ValueOfInt32(value) - case "lbm.collection.v1.EventCreatedFTClass.mintable": - value := x.Mintable - return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedFTClass does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass does not contain field %s", descriptor.FullName())) } } @@ -2780,27 +2750,23 @@ func (x *fastReflection_EventCreatedFTClass) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreatedFTClass) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_EventCreatedNFTClass) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.EventCreatedFTClass.contract_id": + case "lbm.collection.v1.EventCreatedNFTClass.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventCreatedFTClass.operator": + case "lbm.collection.v1.EventCreatedNFTClass.operator": x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventCreatedFTClass.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.EventCreatedFTClass.name": + case "lbm.collection.v1.EventCreatedNFTClass.token_type": + x.TokenType = value.Interface().(string) + case "lbm.collection.v1.EventCreatedNFTClass.name": x.Name = value.Interface().(string) - case "lbm.collection.v1.EventCreatedFTClass.meta": + case "lbm.collection.v1.EventCreatedNFTClass.meta": x.Meta = value.Interface().(string) - case "lbm.collection.v1.EventCreatedFTClass.decimals": - x.Decimals = int32(value.Int()) - case "lbm.collection.v1.EventCreatedFTClass.mintable": - x.Mintable = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedFTClass does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass does not contain field %s", fd.FullName())) } } @@ -2814,64 +2780,56 @@ func (x *fastReflection_EventCreatedFTClass) 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_EventCreatedFTClass) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventCreatedNFTClass) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventCreatedFTClass.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventCreatedFTClass is not mutable")) - case "lbm.collection.v1.EventCreatedFTClass.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventCreatedFTClass is not mutable")) - case "lbm.collection.v1.EventCreatedFTClass.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.EventCreatedFTClass is not mutable")) - case "lbm.collection.v1.EventCreatedFTClass.name": - panic(fmt.Errorf("field name of message lbm.collection.v1.EventCreatedFTClass is not mutable")) - case "lbm.collection.v1.EventCreatedFTClass.meta": - panic(fmt.Errorf("field meta of message lbm.collection.v1.EventCreatedFTClass is not mutable")) - case "lbm.collection.v1.EventCreatedFTClass.decimals": - panic(fmt.Errorf("field decimals of message lbm.collection.v1.EventCreatedFTClass is not mutable")) - case "lbm.collection.v1.EventCreatedFTClass.mintable": - panic(fmt.Errorf("field mintable of message lbm.collection.v1.EventCreatedFTClass is not mutable")) + case "lbm.collection.v1.EventCreatedNFTClass.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventCreatedNFTClass is not mutable")) + case "lbm.collection.v1.EventCreatedNFTClass.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.EventCreatedNFTClass is not mutable")) + case "lbm.collection.v1.EventCreatedNFTClass.token_type": + panic(fmt.Errorf("field token_type of message lbm.collection.v1.EventCreatedNFTClass is not mutable")) + case "lbm.collection.v1.EventCreatedNFTClass.name": + panic(fmt.Errorf("field name of message lbm.collection.v1.EventCreatedNFTClass is not mutable")) + case "lbm.collection.v1.EventCreatedNFTClass.meta": + panic(fmt.Errorf("field meta of message lbm.collection.v1.EventCreatedNFTClass is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedFTClass does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass 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_EventCreatedFTClass) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventCreatedNFTClass) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventCreatedFTClass.contract_id": + case "lbm.collection.v1.EventCreatedNFTClass.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventCreatedFTClass.operator": + case "lbm.collection.v1.EventCreatedNFTClass.operator": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventCreatedFTClass.token_id": + case "lbm.collection.v1.EventCreatedNFTClass.token_type": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventCreatedFTClass.name": + case "lbm.collection.v1.EventCreatedNFTClass.name": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventCreatedFTClass.meta": + case "lbm.collection.v1.EventCreatedNFTClass.meta": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventCreatedFTClass.decimals": - return protoreflect.ValueOfInt32(int32(0)) - case "lbm.collection.v1.EventCreatedFTClass.mintable": - return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedFTClass does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass 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_EventCreatedFTClass) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_EventCreatedNFTClass) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventCreatedFTClass", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventCreatedNFTClass", d.FullName())) } panic("unreachable") } @@ -2879,7 +2837,7 @@ func (x *fastReflection_EventCreatedFTClass) 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_EventCreatedFTClass) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_EventCreatedNFTClass) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2890,7 +2848,7 @@ func (x *fastReflection_EventCreatedFTClass) 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_EventCreatedFTClass) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_EventCreatedNFTClass) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2902,7 +2860,7 @@ func (x *fastReflection_EventCreatedFTClass) 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_EventCreatedFTClass) IsValid() bool { +func (x *fastReflection_EventCreatedNFTClass) IsValid() bool { return x != nil } @@ -2912,9 +2870,9 @@ func (x *fastReflection_EventCreatedFTClass) 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_EventCreatedFTClass) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_EventCreatedNFTClass) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventCreatedFTClass) + x := input.Message.Interface().(*EventCreatedNFTClass) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2934,7 +2892,7 @@ func (x *fastReflection_EventCreatedFTClass) ProtoMethods() *protoiface.Methods if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.TokenId) + l = len(x.TokenType) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -2946,12 +2904,6 @@ func (x *fastReflection_EventCreatedFTClass) ProtoMethods() *protoiface.Methods if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.Decimals != 0 { - n += 1 + runtime.Sov(uint64(x.Decimals)) - } - if x.Mintable { - n += 2 - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2962,7 +2914,7 @@ func (x *fastReflection_EventCreatedFTClass) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventCreatedFTClass) + x := input.Message.Interface().(*EventCreatedNFTClass) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2981,21 +2933,6 @@ func (x *fastReflection_EventCreatedFTClass) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Mintable { - i-- - if x.Mintable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if x.Decimals != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Decimals)) - i-- - dAtA[i] = 0x30 - } if len(x.Meta) > 0 { i -= len(x.Meta) copy(dAtA[i:], x.Meta) @@ -3010,10 +2947,10 @@ func (x *fastReflection_EventCreatedFTClass) ProtoMethods() *protoiface.Methods 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))) + if len(x.TokenType) > 0 { + i -= len(x.TokenType) + copy(dAtA[i:], x.TokenType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenType))) i-- dAtA[i] = 0x1a } @@ -3042,7 +2979,7 @@ func (x *fastReflection_EventCreatedFTClass) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventCreatedFTClass) + x := input.Message.Interface().(*EventCreatedNFTClass) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3074,10 +3011,10 @@ func (x *fastReflection_EventCreatedFTClass) 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: EventCreatedFTClass: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreatedNFTClass: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreatedFTClass: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreatedNFTClass: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3146,7 +3083,7 @@ func (x *fastReflection_EventCreatedFTClass) ProtoMethods() *protoiface.Methods 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3174,7 +3111,7 @@ func (x *fastReflection_EventCreatedFTClass) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TokenId = string(dAtA[iNdEx:postIndex]) + x.TokenType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -3240,45 +3177,6 @@ func (x *fastReflection_EventCreatedFTClass) ProtoMethods() *protoiface.Methods } x.Meta = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) - } - x.Decimals = 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.Decimals |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Mintable", 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.Mintable = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -3315,33 +3213,31 @@ func (x *fastReflection_EventCreatedFTClass) ProtoMethods() *protoiface.Methods } var ( - md_EventCreatedNFTClass protoreflect.MessageDescriptor - fd_EventCreatedNFTClass_contract_id protoreflect.FieldDescriptor - fd_EventCreatedNFTClass_operator protoreflect.FieldDescriptor - fd_EventCreatedNFTClass_token_type protoreflect.FieldDescriptor - fd_EventCreatedNFTClass_name protoreflect.FieldDescriptor - fd_EventCreatedNFTClass_meta protoreflect.FieldDescriptor + md_EventGranted protoreflect.MessageDescriptor + fd_EventGranted_contract_id protoreflect.FieldDescriptor + fd_EventGranted_granter protoreflect.FieldDescriptor + fd_EventGranted_grantee protoreflect.FieldDescriptor + fd_EventGranted_permission protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_event_proto_init() - md_EventCreatedNFTClass = File_lbm_collection_v1_event_proto.Messages().ByName("EventCreatedNFTClass") - fd_EventCreatedNFTClass_contract_id = md_EventCreatedNFTClass.Fields().ByName("contract_id") - fd_EventCreatedNFTClass_operator = md_EventCreatedNFTClass.Fields().ByName("operator") - fd_EventCreatedNFTClass_token_type = md_EventCreatedNFTClass.Fields().ByName("token_type") - fd_EventCreatedNFTClass_name = md_EventCreatedNFTClass.Fields().ByName("name") - fd_EventCreatedNFTClass_meta = md_EventCreatedNFTClass.Fields().ByName("meta") + md_EventGranted = File_lbm_collection_v1_event_proto.Messages().ByName("EventGranted") + fd_EventGranted_contract_id = md_EventGranted.Fields().ByName("contract_id") + fd_EventGranted_granter = md_EventGranted.Fields().ByName("granter") + fd_EventGranted_grantee = md_EventGranted.Fields().ByName("grantee") + fd_EventGranted_permission = md_EventGranted.Fields().ByName("permission") } -var _ protoreflect.Message = (*fastReflection_EventCreatedNFTClass)(nil) +var _ protoreflect.Message = (*fastReflection_EventGranted)(nil) -type fastReflection_EventCreatedNFTClass EventCreatedNFTClass +type fastReflection_EventGranted EventGranted -func (x *EventCreatedNFTClass) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventCreatedNFTClass)(x) +func (x *EventGranted) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventGranted)(x) } -func (x *EventCreatedNFTClass) slowProtoReflect() protoreflect.Message { +func (x *EventGranted) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_event_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3353,43 +3249,43 @@ func (x *EventCreatedNFTClass) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EventCreatedNFTClass_messageType fastReflection_EventCreatedNFTClass_messageType -var _ protoreflect.MessageType = fastReflection_EventCreatedNFTClass_messageType{} +var _fastReflection_EventGranted_messageType fastReflection_EventGranted_messageType +var _ protoreflect.MessageType = fastReflection_EventGranted_messageType{} -type fastReflection_EventCreatedNFTClass_messageType struct{} +type fastReflection_EventGranted_messageType struct{} -func (x fastReflection_EventCreatedNFTClass_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventCreatedNFTClass)(nil) +func (x fastReflection_EventGranted_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventGranted)(nil) } -func (x fastReflection_EventCreatedNFTClass_messageType) New() protoreflect.Message { - return new(fastReflection_EventCreatedNFTClass) +func (x fastReflection_EventGranted_messageType) New() protoreflect.Message { + return new(fastReflection_EventGranted) } -func (x fastReflection_EventCreatedNFTClass_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventCreatedNFTClass +func (x fastReflection_EventGranted_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventGranted } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EventCreatedNFTClass) Descriptor() protoreflect.MessageDescriptor { - return md_EventCreatedNFTClass +func (x *fastReflection_EventGranted) Descriptor() protoreflect.MessageDescriptor { + return md_EventGranted } // 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_EventCreatedNFTClass) Type() protoreflect.MessageType { - return _fastReflection_EventCreatedNFTClass_messageType +func (x *fastReflection_EventGranted) Type() protoreflect.MessageType { + return _fastReflection_EventGranted_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventCreatedNFTClass) New() protoreflect.Message { - return new(fastReflection_EventCreatedNFTClass) +func (x *fastReflection_EventGranted) New() protoreflect.Message { + return new(fastReflection_EventGranted) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EventCreatedNFTClass) Interface() protoreflect.ProtoMessage { - return (*EventCreatedNFTClass)(x) +func (x *fastReflection_EventGranted) Interface() protoreflect.ProtoMessage { + return (*EventGranted)(x) } // Range iterates over every populated field in an undefined order, @@ -3397,34 +3293,28 @@ func (x *fastReflection_EventCreatedNFTClass) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_EventCreatedNFTClass) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_EventGranted) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventCreatedNFTClass_contract_id, value) { + if !f(fd_EventGranted_contract_id, value) { return } } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventCreatedNFTClass_operator, value) { + if x.Granter != "" { + value := protoreflect.ValueOfString(x.Granter) + if !f(fd_EventGranted_granter, value) { return } } - if x.TokenType != "" { - value := protoreflect.ValueOfString(x.TokenType) - if !f(fd_EventCreatedNFTClass_token_type, value) { + if x.Grantee != "" { + value := protoreflect.ValueOfString(x.Grantee) + if !f(fd_EventGranted_grantee, value) { return } } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_EventCreatedNFTClass_name, value) { - return - } - } - if x.Meta != "" { - value := protoreflect.ValueOfString(x.Meta) - if !f(fd_EventCreatedNFTClass_meta, value) { + if x.Permission != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Permission)) + if !f(fd_EventGranted_permission, value) { return } } @@ -3441,23 +3331,21 @@ func (x *fastReflection_EventCreatedNFTClass) Range(f func(protoreflect.FieldDes // 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_EventCreatedNFTClass) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_EventGranted) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.EventCreatedNFTClass.contract_id": + case "lbm.collection.v1.EventGranted.contract_id": return x.ContractId != "" - case "lbm.collection.v1.EventCreatedNFTClass.operator": - return x.Operator != "" - case "lbm.collection.v1.EventCreatedNFTClass.token_type": - return x.TokenType != "" - case "lbm.collection.v1.EventCreatedNFTClass.name": - return x.Name != "" - case "lbm.collection.v1.EventCreatedNFTClass.meta": - return x.Meta != "" + case "lbm.collection.v1.EventGranted.granter": + return x.Granter != "" + case "lbm.collection.v1.EventGranted.grantee": + return x.Grantee != "" + case "lbm.collection.v1.EventGranted.permission": + return x.Permission != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventGranted does not contain field %s", fd.FullName())) } } @@ -3467,23 +3355,21 @@ func (x *fastReflection_EventCreatedNFTClass) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreatedNFTClass) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_EventGranted) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.EventCreatedNFTClass.contract_id": + case "lbm.collection.v1.EventGranted.contract_id": x.ContractId = "" - case "lbm.collection.v1.EventCreatedNFTClass.operator": - x.Operator = "" - case "lbm.collection.v1.EventCreatedNFTClass.token_type": - x.TokenType = "" - case "lbm.collection.v1.EventCreatedNFTClass.name": - x.Name = "" - case "lbm.collection.v1.EventCreatedNFTClass.meta": - x.Meta = "" + case "lbm.collection.v1.EventGranted.granter": + x.Granter = "" + case "lbm.collection.v1.EventGranted.grantee": + x.Grantee = "" + case "lbm.collection.v1.EventGranted.permission": + x.Permission = 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventGranted does not contain field %s", fd.FullName())) } } @@ -3493,28 +3379,25 @@ func (x *fastReflection_EventCreatedNFTClass) Clear(fd protoreflect.FieldDescrip // 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_EventCreatedNFTClass) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventGranted) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.EventCreatedNFTClass.contract_id": + case "lbm.collection.v1.EventGranted.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventCreatedNFTClass.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventCreatedNFTClass.token_type": - value := x.TokenType - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventCreatedNFTClass.name": - value := x.Name + case "lbm.collection.v1.EventGranted.granter": + value := x.Granter return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventCreatedNFTClass.meta": - value := x.Meta + case "lbm.collection.v1.EventGranted.grantee": + value := x.Grantee return protoreflect.ValueOfString(value) + case "lbm.collection.v1.EventGranted.permission": + value := x.Permission + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventGranted does not contain field %s", descriptor.FullName())) } } @@ -3528,23 +3411,21 @@ func (x *fastReflection_EventCreatedNFTClass) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreatedNFTClass) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_EventGranted) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.EventCreatedNFTClass.contract_id": + case "lbm.collection.v1.EventGranted.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventCreatedNFTClass.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventCreatedNFTClass.token_type": - x.TokenType = value.Interface().(string) - case "lbm.collection.v1.EventCreatedNFTClass.name": - x.Name = value.Interface().(string) - case "lbm.collection.v1.EventCreatedNFTClass.meta": - x.Meta = value.Interface().(string) + case "lbm.collection.v1.EventGranted.granter": + x.Granter = value.Interface().(string) + case "lbm.collection.v1.EventGranted.grantee": + x.Grantee = value.Interface().(string) + case "lbm.collection.v1.EventGranted.permission": + x.Permission = (Permission)(value.Enum()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventGranted does not contain field %s", fd.FullName())) } } @@ -3558,56 +3439,52 @@ func (x *fastReflection_EventCreatedNFTClass) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreatedNFTClass) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventGranted) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventCreatedNFTClass.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventCreatedNFTClass is not mutable")) - case "lbm.collection.v1.EventCreatedNFTClass.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventCreatedNFTClass is not mutable")) - case "lbm.collection.v1.EventCreatedNFTClass.token_type": - panic(fmt.Errorf("field token_type of message lbm.collection.v1.EventCreatedNFTClass is not mutable")) - case "lbm.collection.v1.EventCreatedNFTClass.name": - panic(fmt.Errorf("field name of message lbm.collection.v1.EventCreatedNFTClass is not mutable")) - case "lbm.collection.v1.EventCreatedNFTClass.meta": - panic(fmt.Errorf("field meta of message lbm.collection.v1.EventCreatedNFTClass is not mutable")) + case "lbm.collection.v1.EventGranted.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventGranted is not mutable")) + case "lbm.collection.v1.EventGranted.granter": + panic(fmt.Errorf("field granter of message lbm.collection.v1.EventGranted is not mutable")) + case "lbm.collection.v1.EventGranted.grantee": + panic(fmt.Errorf("field grantee of message lbm.collection.v1.EventGranted is not mutable")) + case "lbm.collection.v1.EventGranted.permission": + panic(fmt.Errorf("field permission of message lbm.collection.v1.EventGranted is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventGranted 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_EventCreatedNFTClass) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventGranted) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventCreatedNFTClass.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventCreatedNFTClass.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventCreatedNFTClass.token_type": + case "lbm.collection.v1.EventGranted.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventCreatedNFTClass.name": + case "lbm.collection.v1.EventGranted.granter": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventCreatedNFTClass.meta": + case "lbm.collection.v1.EventGranted.grantee": return protoreflect.ValueOfString("") + case "lbm.collection.v1.EventGranted.permission": + return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventCreatedNFTClass")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) } - panic(fmt.Errorf("message lbm.collection.v1.EventCreatedNFTClass does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventGranted 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_EventCreatedNFTClass) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_EventGranted) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventCreatedNFTClass", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventGranted", d.FullName())) } panic("unreachable") } @@ -3615,7 +3492,7 @@ func (x *fastReflection_EventCreatedNFTClass) WhichOneof(d protoreflect.OneofDes // 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_EventCreatedNFTClass) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_EventGranted) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3626,7 +3503,7 @@ func (x *fastReflection_EventCreatedNFTClass) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventCreatedNFTClass) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_EventGranted) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3638,7 +3515,7 @@ func (x *fastReflection_EventCreatedNFTClass) SetUnknown(fields protoreflect.Raw // 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_EventCreatedNFTClass) IsValid() bool { +func (x *fastReflection_EventGranted) IsValid() bool { return x != nil } @@ -3648,9 +3525,9 @@ func (x *fastReflection_EventCreatedNFTClass) 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_EventCreatedNFTClass) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_EventGranted) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventCreatedNFTClass) + x := input.Message.Interface().(*EventGranted) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3666,21 +3543,16 @@ func (x *fastReflection_EventCreatedNFTClass) ProtoMethods() *protoiface.Methods 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.TokenType) + l = len(x.Granter) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Name) + l = len(x.Grantee) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Meta) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.Permission != 0 { + n += 1 + runtime.Sov(uint64(x.Permission)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -3692,7 +3564,7 @@ func (x *fastReflection_EventCreatedNFTClass) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventCreatedNFTClass) + x := input.Message.Interface().(*EventGranted) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3711,31 +3583,22 @@ func (x *fastReflection_EventCreatedNFTClass) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Meta) > 0 { - i -= len(x.Meta) - copy(dAtA[i:], x.Meta) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Meta))) - i-- - dAtA[i] = 0x2a - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) + if x.Permission != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Permission)) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x20 } - if len(x.TokenType) > 0 { - i -= len(x.TokenType) - copy(dAtA[i:], x.TokenType) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenType))) + 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] = 0x1a } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) + if len(x.Granter) > 0 { + i -= len(x.Granter) + copy(dAtA[i:], x.Granter) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Granter))) i-- dAtA[i] = 0x12 } @@ -3757,7 +3620,7 @@ func (x *fastReflection_EventCreatedNFTClass) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventCreatedNFTClass) + x := input.Message.Interface().(*EventGranted) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3789,10 +3652,10 @@ func (x *fastReflection_EventCreatedNFTClass) 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: EventCreatedNFTClass: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventGranted: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreatedNFTClass: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventGranted: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3829,1180 +3692,7 @@ func (x *fastReflection_EventCreatedNFTClass) 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 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 TokenType", 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.TokenType = 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 Name", 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.Name = 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 Meta", 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.Meta = 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_EventGranted protoreflect.MessageDescriptor - fd_EventGranted_contract_id protoreflect.FieldDescriptor - fd_EventGranted_granter protoreflect.FieldDescriptor - fd_EventGranted_grantee protoreflect.FieldDescriptor - fd_EventGranted_permission protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventGranted = File_lbm_collection_v1_event_proto.Messages().ByName("EventGranted") - fd_EventGranted_contract_id = md_EventGranted.Fields().ByName("contract_id") - fd_EventGranted_granter = md_EventGranted.Fields().ByName("granter") - fd_EventGranted_grantee = md_EventGranted.Fields().ByName("grantee") - fd_EventGranted_permission = md_EventGranted.Fields().ByName("permission") -} - -var _ protoreflect.Message = (*fastReflection_EventGranted)(nil) - -type fastReflection_EventGranted EventGranted - -func (x *EventGranted) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventGranted)(x) -} - -func (x *EventGranted) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventGranted_messageType fastReflection_EventGranted_messageType -var _ protoreflect.MessageType = fastReflection_EventGranted_messageType{} - -type fastReflection_EventGranted_messageType struct{} - -func (x fastReflection_EventGranted_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventGranted)(nil) -} -func (x fastReflection_EventGranted_messageType) New() protoreflect.Message { - return new(fastReflection_EventGranted) -} -func (x fastReflection_EventGranted_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventGranted -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventGranted) Descriptor() protoreflect.MessageDescriptor { - return md_EventGranted -} - -// 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_EventGranted) Type() protoreflect.MessageType { - return _fastReflection_EventGranted_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventGranted) New() protoreflect.Message { - return new(fastReflection_EventGranted) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventGranted) Interface() protoreflect.ProtoMessage { - return (*EventGranted)(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_EventGranted) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventGranted_contract_id, value) { - return - } - } - if x.Granter != "" { - value := protoreflect.ValueOfString(x.Granter) - if !f(fd_EventGranted_granter, value) { - return - } - } - if x.Grantee != "" { - value := protoreflect.ValueOfString(x.Grantee) - if !f(fd_EventGranted_grantee, value) { - return - } - } - if x.Permission != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Permission)) - if !f(fd_EventGranted_permission, 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_EventGranted) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventGranted.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventGranted.granter": - return x.Granter != "" - case "lbm.collection.v1.EventGranted.grantee": - return x.Grantee != "" - case "lbm.collection.v1.EventGranted.permission": - return x.Permission != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted 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_EventGranted) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventGranted.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventGranted.granter": - x.Granter = "" - case "lbm.collection.v1.EventGranted.grantee": - x.Grantee = "" - case "lbm.collection.v1.EventGranted.permission": - x.Permission = 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted 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_EventGranted) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventGranted.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventGranted.granter": - value := x.Granter - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventGranted.grantee": - value := x.Grantee - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventGranted.permission": - value := x.Permission - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted 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_EventGranted) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventGranted.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventGranted.granter": - x.Granter = value.Interface().(string) - case "lbm.collection.v1.EventGranted.grantee": - x.Grantee = value.Interface().(string) - case "lbm.collection.v1.EventGranted.permission": - x.Permission = (Permission)(value.Enum()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted 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_EventGranted) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventGranted.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventGranted is not mutable")) - case "lbm.collection.v1.EventGranted.granter": - panic(fmt.Errorf("field granter of message lbm.collection.v1.EventGranted is not mutable")) - case "lbm.collection.v1.EventGranted.grantee": - panic(fmt.Errorf("field grantee of message lbm.collection.v1.EventGranted is not mutable")) - case "lbm.collection.v1.EventGranted.permission": - panic(fmt.Errorf("field permission of message lbm.collection.v1.EventGranted is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted 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_EventGranted) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventGranted.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventGranted.granter": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventGranted.grantee": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventGranted.permission": - return protoreflect.ValueOfEnum(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventGranted")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted 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_EventGranted) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventGranted", 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_EventGranted) 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_EventGranted) 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_EventGranted) 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_EventGranted) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventGranted) - 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.Granter) - 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.Permission != 0 { - n += 1 + runtime.Sov(uint64(x.Permission)) - } - 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().(*EventGranted) - 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.Permission != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Permission)) - i-- - dAtA[i] = 0x20 - } - 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] = 0x1a - } - if len(x.Granter) > 0 { - i -= len(x.Granter) - copy(dAtA[i:], x.Granter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Granter))) - 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().(*EventGranted) - 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: EventGranted: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventGranted: 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 Granter", 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.Granter = 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 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 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) - } - x.Permission = 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.Permission |= Permission(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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_EventRenounced protoreflect.MessageDescriptor - fd_EventRenounced_contract_id protoreflect.FieldDescriptor - fd_EventRenounced_grantee protoreflect.FieldDescriptor - fd_EventRenounced_permission protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventRenounced = File_lbm_collection_v1_event_proto.Messages().ByName("EventRenounced") - fd_EventRenounced_contract_id = md_EventRenounced.Fields().ByName("contract_id") - fd_EventRenounced_grantee = md_EventRenounced.Fields().ByName("grantee") - fd_EventRenounced_permission = md_EventRenounced.Fields().ByName("permission") -} - -var _ protoreflect.Message = (*fastReflection_EventRenounced)(nil) - -type fastReflection_EventRenounced EventRenounced - -func (x *EventRenounced) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventRenounced)(x) -} - -func (x *EventRenounced) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventRenounced_messageType fastReflection_EventRenounced_messageType -var _ protoreflect.MessageType = fastReflection_EventRenounced_messageType{} - -type fastReflection_EventRenounced_messageType struct{} - -func (x fastReflection_EventRenounced_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventRenounced)(nil) -} -func (x fastReflection_EventRenounced_messageType) New() protoreflect.Message { - return new(fastReflection_EventRenounced) -} -func (x fastReflection_EventRenounced_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventRenounced -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventRenounced) Descriptor() protoreflect.MessageDescriptor { - return md_EventRenounced -} - -// 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_EventRenounced) Type() protoreflect.MessageType { - return _fastReflection_EventRenounced_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventRenounced) New() protoreflect.Message { - return new(fastReflection_EventRenounced) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventRenounced) Interface() protoreflect.ProtoMessage { - return (*EventRenounced)(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_EventRenounced) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventRenounced_contract_id, value) { - return - } - } - if x.Grantee != "" { - value := protoreflect.ValueOfString(x.Grantee) - if !f(fd_EventRenounced_grantee, value) { - return - } - } - if x.Permission != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Permission)) - if !f(fd_EventRenounced_permission, 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_EventRenounced) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventRenounced.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventRenounced.grantee": - return x.Grantee != "" - case "lbm.collection.v1.EventRenounced.permission": - return x.Permission != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced 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_EventRenounced) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventRenounced.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventRenounced.grantee": - x.Grantee = "" - case "lbm.collection.v1.EventRenounced.permission": - x.Permission = 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced 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_EventRenounced) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventRenounced.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventRenounced.grantee": - value := x.Grantee - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventRenounced.permission": - value := x.Permission - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced 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_EventRenounced) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventRenounced.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventRenounced.grantee": - x.Grantee = value.Interface().(string) - case "lbm.collection.v1.EventRenounced.permission": - x.Permission = (Permission)(value.Enum()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced 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_EventRenounced) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventRenounced.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventRenounced is not mutable")) - case "lbm.collection.v1.EventRenounced.grantee": - panic(fmt.Errorf("field grantee of message lbm.collection.v1.EventRenounced is not mutable")) - case "lbm.collection.v1.EventRenounced.permission": - panic(fmt.Errorf("field permission of message lbm.collection.v1.EventRenounced is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced 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_EventRenounced) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventRenounced.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventRenounced.grantee": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventRenounced.permission": - return protoreflect.ValueOfEnum(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced 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_EventRenounced) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventRenounced", 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_EventRenounced) 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_EventRenounced) 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_EventRenounced) 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_EventRenounced) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventRenounced) - 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.Permission != 0 { - n += 1 + runtime.Sov(uint64(x.Permission)) - } - 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().(*EventRenounced) - 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.Permission != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Permission)) - i-- - dAtA[i] = 0x18 - } - 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().(*EventRenounced) - 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: EventRenounced: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventRenounced: 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 Granter", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5030,9 +3720,9 @@ func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ContractId = string(dAtA[iNdEx:postIndex]) + x.Granter = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) } @@ -5064,7 +3754,7 @@ func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { } x.Grantee = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) } @@ -5118,84 +3808,31 @@ func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_EventMintedFT_4_list)(nil) - -type _EventMintedFT_4_list struct { - list *[]*Coin -} - -func (x *_EventMintedFT_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_EventMintedFT_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_EventMintedFT_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) - (*x.list)[i] = concreteValue -} - -func (x *_EventMintedFT_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_EventMintedFT_4_list) AppendMutable() protoreflect.Value { - v := new(Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_EventMintedFT_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_EventMintedFT_4_list) NewElement() protoreflect.Value { - v := new(Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_EventMintedFT_4_list) IsValid() bool { - return x.list != nil -} - var ( - md_EventMintedFT protoreflect.MessageDescriptor - fd_EventMintedFT_contract_id protoreflect.FieldDescriptor - fd_EventMintedFT_operator protoreflect.FieldDescriptor - fd_EventMintedFT_to protoreflect.FieldDescriptor - fd_EventMintedFT_amount protoreflect.FieldDescriptor + md_EventRenounced protoreflect.MessageDescriptor + fd_EventRenounced_contract_id protoreflect.FieldDescriptor + fd_EventRenounced_grantee protoreflect.FieldDescriptor + fd_EventRenounced_permission protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_event_proto_init() - md_EventMintedFT = File_lbm_collection_v1_event_proto.Messages().ByName("EventMintedFT") - fd_EventMintedFT_contract_id = md_EventMintedFT.Fields().ByName("contract_id") - fd_EventMintedFT_operator = md_EventMintedFT.Fields().ByName("operator") - fd_EventMintedFT_to = md_EventMintedFT.Fields().ByName("to") - fd_EventMintedFT_amount = md_EventMintedFT.Fields().ByName("amount") + md_EventRenounced = File_lbm_collection_v1_event_proto.Messages().ByName("EventRenounced") + fd_EventRenounced_contract_id = md_EventRenounced.Fields().ByName("contract_id") + fd_EventRenounced_grantee = md_EventRenounced.Fields().ByName("grantee") + fd_EventRenounced_permission = md_EventRenounced.Fields().ByName("permission") } -var _ protoreflect.Message = (*fastReflection_EventMintedFT)(nil) +var _ protoreflect.Message = (*fastReflection_EventRenounced)(nil) -type fastReflection_EventMintedFT EventMintedFT +type fastReflection_EventRenounced EventRenounced -func (x *EventMintedFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventMintedFT)(x) +func (x *EventRenounced) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventRenounced)(x) } -func (x *EventMintedFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[8] +func (x *EventRenounced) slowProtoReflect() protoreflect.Message { + mi := &file_lbm_collection_v1_event_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5206,43 +3843,43 @@ func (x *EventMintedFT) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EventMintedFT_messageType fastReflection_EventMintedFT_messageType -var _ protoreflect.MessageType = fastReflection_EventMintedFT_messageType{} +var _fastReflection_EventRenounced_messageType fastReflection_EventRenounced_messageType +var _ protoreflect.MessageType = fastReflection_EventRenounced_messageType{} -type fastReflection_EventMintedFT_messageType struct{} +type fastReflection_EventRenounced_messageType struct{} -func (x fastReflection_EventMintedFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventMintedFT)(nil) +func (x fastReflection_EventRenounced_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventRenounced)(nil) } -func (x fastReflection_EventMintedFT_messageType) New() protoreflect.Message { - return new(fastReflection_EventMintedFT) +func (x fastReflection_EventRenounced_messageType) New() protoreflect.Message { + return new(fastReflection_EventRenounced) } -func (x fastReflection_EventMintedFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventMintedFT +func (x fastReflection_EventRenounced_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventRenounced } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EventMintedFT) Descriptor() protoreflect.MessageDescriptor { - return md_EventMintedFT +func (x *fastReflection_EventRenounced) Descriptor() protoreflect.MessageDescriptor { + return md_EventRenounced } // 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_EventMintedFT) Type() protoreflect.MessageType { - return _fastReflection_EventMintedFT_messageType +func (x *fastReflection_EventRenounced) Type() protoreflect.MessageType { + return _fastReflection_EventRenounced_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventMintedFT) New() protoreflect.Message { - return new(fastReflection_EventMintedFT) +func (x *fastReflection_EventRenounced) New() protoreflect.Message { + return new(fastReflection_EventRenounced) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EventMintedFT) Interface() protoreflect.ProtoMessage { - return (*EventMintedFT)(x) +func (x *fastReflection_EventRenounced) Interface() protoreflect.ProtoMessage { + return (*EventRenounced)(x) } // Range iterates over every populated field in an undefined order, @@ -5250,28 +3887,22 @@ func (x *fastReflection_EventMintedFT) 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_EventMintedFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_EventRenounced) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventMintedFT_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventMintedFT_operator, value) { + if !f(fd_EventRenounced_contract_id, value) { return } } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_EventMintedFT_to, value) { + if x.Grantee != "" { + value := protoreflect.ValueOfString(x.Grantee) + if !f(fd_EventRenounced_grantee, value) { return } } - if len(x.Amount) != 0 { - value := protoreflect.ValueOfList(&_EventMintedFT_4_list{list: &x.Amount}) - if !f(fd_EventMintedFT_amount, value) { + if x.Permission != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Permission)) + if !f(fd_EventRenounced_permission, value) { return } } @@ -5288,21 +3919,19 @@ func (x *fastReflection_EventMintedFT) Range(f func(protoreflect.FieldDescriptor // 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_EventMintedFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_EventRenounced) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.EventMintedFT.contract_id": + case "lbm.collection.v1.EventRenounced.contract_id": return x.ContractId != "" - case "lbm.collection.v1.EventMintedFT.operator": - return x.Operator != "" - case "lbm.collection.v1.EventMintedFT.to": - return x.To != "" - case "lbm.collection.v1.EventMintedFT.amount": - return len(x.Amount) != 0 + case "lbm.collection.v1.EventRenounced.grantee": + return x.Grantee != "" + case "lbm.collection.v1.EventRenounced.permission": + return x.Permission != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", fd.FullName())) } } @@ -5312,21 +3941,19 @@ func (x *fastReflection_EventMintedFT) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventMintedFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_EventRenounced) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.EventMintedFT.contract_id": + case "lbm.collection.v1.EventRenounced.contract_id": x.ContractId = "" - case "lbm.collection.v1.EventMintedFT.operator": - x.Operator = "" - case "lbm.collection.v1.EventMintedFT.to": - x.To = "" - case "lbm.collection.v1.EventMintedFT.amount": - x.Amount = nil + case "lbm.collection.v1.EventRenounced.grantee": + x.Grantee = "" + case "lbm.collection.v1.EventRenounced.permission": + x.Permission = 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", fd.FullName())) } } @@ -5336,28 +3963,22 @@ func (x *fastReflection_EventMintedFT) 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_EventMintedFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventRenounced) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.EventMintedFT.contract_id": + case "lbm.collection.v1.EventRenounced.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventMintedFT.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventMintedFT.to": - value := x.To + case "lbm.collection.v1.EventRenounced.grantee": + value := x.Grantee return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventMintedFT.amount": - if len(x.Amount) == 0 { - return protoreflect.ValueOfList(&_EventMintedFT_4_list{}) - } - listValue := &_EventMintedFT_4_list{list: &x.Amount} - return protoreflect.ValueOfList(listValue) + case "lbm.collection.v1.EventRenounced.permission": + value := x.Permission + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", descriptor.FullName())) } } @@ -5371,23 +3992,19 @@ func (x *fastReflection_EventMintedFT) Get(descriptor protoreflect.FieldDescript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventMintedFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_EventRenounced) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.EventMintedFT.contract_id": + case "lbm.collection.v1.EventRenounced.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventMintedFT.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventMintedFT.to": - x.To = value.Interface().(string) - case "lbm.collection.v1.EventMintedFT.amount": - lv := value.List() - clv := lv.(*_EventMintedFT_4_list) - x.Amount = *clv.list + case "lbm.collection.v1.EventRenounced.grantee": + x.Grantee = value.Interface().(string) + case "lbm.collection.v1.EventRenounced.permission": + x.Permission = (Permission)(value.Enum()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", fd.FullName())) } } @@ -5401,57 +4018,48 @@ func (x *fastReflection_EventMintedFT) Set(fd protoreflect.FieldDescriptor, valu // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventMintedFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventRenounced) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventMintedFT.amount": - if x.Amount == nil { - x.Amount = []*Coin{} - } - value := &_EventMintedFT_4_list{list: &x.Amount} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.EventMintedFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventMintedFT is not mutable")) - case "lbm.collection.v1.EventMintedFT.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventMintedFT is not mutable")) - case "lbm.collection.v1.EventMintedFT.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.EventMintedFT is not mutable")) + case "lbm.collection.v1.EventRenounced.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventRenounced is not mutable")) + case "lbm.collection.v1.EventRenounced.grantee": + panic(fmt.Errorf("field grantee of message lbm.collection.v1.EventRenounced is not mutable")) + case "lbm.collection.v1.EventRenounced.permission": + panic(fmt.Errorf("field permission of message lbm.collection.v1.EventRenounced is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventRenounced 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_EventMintedFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventRenounced) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventMintedFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventMintedFT.operator": + case "lbm.collection.v1.EventRenounced.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventMintedFT.to": + case "lbm.collection.v1.EventRenounced.grantee": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventMintedFT.amount": - list := []*Coin{} - return protoreflect.ValueOfList(&_EventMintedFT_4_list{list: &list}) + case "lbm.collection.v1.EventRenounced.permission": + return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventRenounced 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_EventMintedFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_EventRenounced) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventMintedFT", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventRenounced", d.FullName())) } panic("unreachable") } @@ -5459,7 +4067,7 @@ func (x *fastReflection_EventMintedFT) WhichOneof(d protoreflect.OneofDescriptor // 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_EventMintedFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_EventRenounced) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5470,7 +4078,7 @@ func (x *fastReflection_EventMintedFT) 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_EventMintedFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_EventRenounced) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5482,7 +4090,7 @@ func (x *fastReflection_EventMintedFT) SetUnknown(fields protoreflect.RawFields) // 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_EventMintedFT) IsValid() bool { +func (x *fastReflection_EventRenounced) IsValid() bool { return x != nil } @@ -5492,9 +4100,9 @@ func (x *fastReflection_EventMintedFT) 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_EventMintedFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventMintedFT) + x := input.Message.Interface().(*EventRenounced) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5510,19 +4118,12 @@ func (x *fastReflection_EventMintedFT) ProtoMethods() *protoiface.Methods { 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.To) + l = len(x.Grantee) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Amount) > 0 { - for _, e := range x.Amount { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + if x.Permission != 0 { + n += 1 + runtime.Sov(uint64(x.Permission)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -5534,7 +4135,7 @@ func (x *fastReflection_EventMintedFT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventMintedFT) + x := input.Message.Interface().(*EventRenounced) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5553,33 +4154,15 @@ func (x *fastReflection_EventMintedFT) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Amount[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.To) > 0 { - i -= len(x.To) - copy(dAtA[i:], x.To) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.To))) + if x.Permission != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Permission)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) + 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 } @@ -5601,7 +4184,7 @@ func (x *fastReflection_EventMintedFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventMintedFT) + x := input.Message.Interface().(*EventRenounced) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5633,47 +4216,15 @@ func (x *fastReflection_EventMintedFT) 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: EventMintedFT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventRenounced: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventMintedFT: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventRenounced: 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: + switch fieldNum { + case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + 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 { @@ -5701,11 +4252,11 @@ func (x *fastReflection_EventMintedFT) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Operator = string(dAtA[iNdEx:postIndex]) + x.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field To", 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 { @@ -5733,13 +4284,13 @@ func (x *fastReflection_EventMintedFT) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.To = string(dAtA[iNdEx:postIndex]) + x.Grantee = 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 Amount", wireType) + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) } - var msglen int + x.Permission = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -5749,26 +4300,11 @@ func (x *fastReflection_EventMintedFT) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.Permission |= Permission(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.Amount = append(x.Amount, &Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5881,7 +4417,7 @@ func (x *EventMintedNFT) ProtoReflect() protoreflect.Message { } func (x *EventMintedNFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[9] + mi := &file_lbm_collection_v1_event_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6567,7 +5103,7 @@ func (x *EventBurned) ProtoReflect() protoreflect.Message { } func (x *EventBurned) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[10] + mi := &file_lbm_collection_v1_event_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7251,7 +5787,7 @@ func (x *EventModifiedContract) ProtoReflect() protoreflect.Message { } func (x *EventModifiedContract) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[11] + mi := &file_lbm_collection_v1_event_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7877,7 +6413,7 @@ func (x *EventModifiedTokenClass) ProtoReflect() protoreflect.Message { } func (x *EventModifiedTokenClass) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[12] + mi := &file_lbm_collection_v1_event_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8625,7 +7161,7 @@ func (x *EventModifiedNFT) ProtoReflect() protoreflect.Message { } func (x *EventModifiedNFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[13] + mi := &file_lbm_collection_v1_event_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9572,99 +8108,6 @@ func (x *EventCreatedContract) GetUri() string { return "" } -// EventCreatedFTClass is emitted when a new fungible token class is created. -// -// Since: 0.46.0 (finschia) -type EventCreatedFTClass 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 create. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // token id associated with the token class. - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // name of the token class. - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - // metadata of the token class. - Meta string `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"` - // decimals of the token class. - Decimals int32 `protobuf:"varint,6,opt,name=decimals,proto3" json:"decimals,omitempty"` - // mintable represents whether the token class is allowed to mint or burn its tokens. - Mintable bool `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"` -} - -func (x *EventCreatedFTClass) Reset() { - *x = EventCreatedFTClass{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventCreatedFTClass) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventCreatedFTClass) ProtoMessage() {} - -// Deprecated: Use EventCreatedFTClass.ProtoReflect.Descriptor instead. -func (*EventCreatedFTClass) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{4} -} - -func (x *EventCreatedFTClass) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *EventCreatedFTClass) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *EventCreatedFTClass) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -func (x *EventCreatedFTClass) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *EventCreatedFTClass) GetMeta() string { - if x != nil { - return x.Meta - } - return "" -} - -func (x *EventCreatedFTClass) GetDecimals() int32 { - if x != nil { - return x.Decimals - } - return 0 -} - -func (x *EventCreatedFTClass) GetMintable() bool { - if x != nil { - return x.Mintable - } - return false -} - // EventCreatedNFTClass is emitted when a new non-fungible token class is created. // // Since: 0.46.0 (finschia) @@ -9689,7 +8132,7 @@ type EventCreatedNFTClass struct { func (x *EventCreatedNFTClass) Reset() { *x = EventCreatedNFTClass{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[5] + mi := &file_lbm_collection_v1_event_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9703,7 +8146,7 @@ func (*EventCreatedNFTClass) ProtoMessage() {} // Deprecated: Use EventCreatedNFTClass.ProtoReflect.Descriptor instead. func (*EventCreatedNFTClass) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{5} + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{4} } func (x *EventCreatedNFTClass) GetContractId() string { @@ -9764,7 +8207,7 @@ type EventGranted struct { func (x *EventGranted) Reset() { *x = EventGranted{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[6] + mi := &file_lbm_collection_v1_event_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9778,7 +8221,7 @@ func (*EventGranted) ProtoMessage() {} // Deprecated: Use EventGranted.ProtoReflect.Descriptor instead. func (*EventGranted) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{6} + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{5} } func (x *EventGranted) GetContractId() string { @@ -9828,7 +8271,7 @@ type EventRenounced struct { func (x *EventRenounced) Reset() { *x = EventRenounced{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[7] + mi := &file_lbm_collection_v1_event_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9842,7 +8285,7 @@ func (*EventRenounced) ProtoMessage() {} // Deprecated: Use EventRenounced.ProtoReflect.Descriptor instead. func (*EventRenounced) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{7} + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{6} } func (x *EventRenounced) GetContractId() string { @@ -9866,72 +8309,6 @@ func (x *EventRenounced) GetPermission() Permission { return Permission_PERMISSION_UNSPECIFIED } -// EventMintedFT is emitted when fungible tokens are minted. -// -// Since: 0.46.0 (finschia) -type EventMintedFT 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 mint. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // recipient of the tokens. - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - // amount of tokens minted. - Amount []*Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *EventMintedFT) Reset() { - *x = EventMintedFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventMintedFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventMintedFT) ProtoMessage() {} - -// Deprecated: Use EventMintedFT.ProtoReflect.Descriptor instead. -func (*EventMintedFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{8} -} - -func (x *EventMintedFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *EventMintedFT) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *EventMintedFT) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *EventMintedFT) GetAmount() []*Coin { - if x != nil { - return x.Amount - } - return nil -} - // EventMintedNFT is emitted when non-fungible tokens are minted. // // Since: 0.46.0 (finschia) @@ -9953,7 +8330,7 @@ type EventMintedNFT struct { func (x *EventMintedNFT) Reset() { *x = EventMintedNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[9] + mi := &file_lbm_collection_v1_event_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9967,7 +8344,7 @@ func (*EventMintedNFT) ProtoMessage() {} // Deprecated: Use EventMintedNFT.ProtoReflect.Descriptor instead. func (*EventMintedNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{9} + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{7} } func (x *EventMintedNFT) GetContractId() string { @@ -10019,7 +8396,7 @@ type EventBurned struct { func (x *EventBurned) Reset() { *x = EventBurned{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[10] + mi := &file_lbm_collection_v1_event_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10033,7 +8410,7 @@ func (*EventBurned) ProtoMessage() {} // Deprecated: Use EventBurned.ProtoReflect.Descriptor instead. func (*EventBurned) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{10} + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{8} } func (x *EventBurned) GetContractId() string { @@ -10085,7 +8462,7 @@ type EventModifiedContract struct { func (x *EventModifiedContract) Reset() { *x = EventModifiedContract{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[11] + mi := &file_lbm_collection_v1_event_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10099,7 +8476,7 @@ func (*EventModifiedContract) ProtoMessage() {} // Deprecated: Use EventModifiedContract.ProtoReflect.Descriptor instead. func (*EventModifiedContract) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{11} + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{9} } func (x *EventModifiedContract) GetContractId() string { @@ -10148,7 +8525,7 @@ type EventModifiedTokenClass struct { func (x *EventModifiedTokenClass) Reset() { *x = EventModifiedTokenClass{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[12] + mi := &file_lbm_collection_v1_event_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10162,7 +8539,7 @@ func (*EventModifiedTokenClass) ProtoMessage() {} // Deprecated: Use EventModifiedTokenClass.ProtoReflect.Descriptor instead. func (*EventModifiedTokenClass) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{12} + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{10} } func (x *EventModifiedTokenClass) GetContractId() string { @@ -10222,7 +8599,7 @@ type EventModifiedNFT struct { func (x *EventModifiedNFT) Reset() { *x = EventModifiedNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[13] + mi := &file_lbm_collection_v1_event_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10236,7 +8613,7 @@ func (*EventModifiedNFT) ProtoMessage() {} // Deprecated: Use EventModifiedNFT.ProtoReflect.Descriptor instead. func (*EventModifiedNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{13} + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{11} } func (x *EventModifiedNFT) GetContractId() string { @@ -10324,163 +8701,136 @@ var file_lbm_collection_v1_event_proto_rawDesc = []byte{ 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, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x22, 0xe7, 0x01, 0x0a, 0x13, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x46, 0x54, 0x43, 0x6c, 0x61, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x22, 0xb4, 0x01, 0x0a, 0x14, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x46, 0x54, 0x43, 0x6c, + 0x61, 0x73, 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, 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, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, + 0x61, 0x22, 0xd6, 0x01, 0x0a, 0x0c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, + 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, 0x32, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, + 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, + 0x65, 0x65, 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, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x70, + 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 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, 0xa4, 0x01, 0x0a, 0x0e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 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, 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, 0x3d, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 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, 0xc7, 0x01, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x69, 0x6e, 0x74, 0x65, + 0x64, 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, 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, 0x28, 0x0a, 0x02, 0x74, + 0x6f, 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, 0x02, 0x74, 0x6f, 0x12, 0x34, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, + 0x04, 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, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x0b, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x75, 0x72, 0x6e, 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, 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, 0x35, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 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, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xac, 0x01, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 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, 0x3c, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x73, 0x18, 0x03, 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, 0xea, 0x01, 0x0a, 0x17, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x73, 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, 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, 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, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, - 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x06, 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, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x14, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x46, 0x54, 0x43, 0x6c, 0x61, 0x73, 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, 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, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x22, 0xd6, 0x01, 0x0a, 0x0c, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 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, 0x32, 0x0a, - 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x72, 0x12, 0x32, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 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, 0x07, 0x67, 0x72, - 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x04, 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, 0xa4, 0x01, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x6e, 0x6f, 0x75, 0x6e, 0x63, 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, 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, 0x3d, 0x0a, 0x0a, - 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 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, 0xc7, 0x01, 0x0a, 0x0d, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 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, 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, 0x28, 0x0a, 0x02, 0x74, 0x6f, 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, 0x02, 0x74, 0x6f, 0x12, 0x35, - 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 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, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xc7, 0x01, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, - 0x69, 0x6e, 0x74, 0x65, 0x64, 0x4e, 0x46, 0x54, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, + 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3c, 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, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x22, 0xc2, 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, + 0x69, 0x66, 0x69, 0x65, 0x64, 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, 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, - 0x28, 0x0a, 0x02, 0x74, 0x6f, 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, 0x02, 0x74, 0x6f, 0x12, 0x34, 0x0a, 0x06, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x73, 0x18, 0x04, 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, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x22, - 0xc9, 0x01, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x75, 0x72, 0x6e, 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, 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, 0x35, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, - 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, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xac, 0x01, 0x0a, 0x15, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 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, 0x3c, 0x0a, 0x07, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x03, 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, 0xea, 0x01, 0x0a, 0x17, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x43, 0x6c, 0x61, 0x73, 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, 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, 0x1d, 0x0a, - 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3c, 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, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, - 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, - 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xc2, 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 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, 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, 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, 0x3c, - 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, 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, 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, + 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, 0x3c, 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, 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, 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 ( @@ -10496,43 +8846,40 @@ 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, 14) +var file_lbm_collection_v1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_lbm_collection_v1_event_proto_goTypes = []interface{}{ (AttributeKey)(0), // 0: lbm.collection.v1.AttributeKey (*EventSent)(nil), // 1: lbm.collection.v1.EventSent (*EventAuthorizedOperator)(nil), // 2: lbm.collection.v1.EventAuthorizedOperator (*EventRevokedOperator)(nil), // 3: lbm.collection.v1.EventRevokedOperator (*EventCreatedContract)(nil), // 4: lbm.collection.v1.EventCreatedContract - (*EventCreatedFTClass)(nil), // 5: lbm.collection.v1.EventCreatedFTClass - (*EventCreatedNFTClass)(nil), // 6: lbm.collection.v1.EventCreatedNFTClass - (*EventGranted)(nil), // 7: lbm.collection.v1.EventGranted - (*EventRenounced)(nil), // 8: lbm.collection.v1.EventRenounced - (*EventMintedFT)(nil), // 9: lbm.collection.v1.EventMintedFT - (*EventMintedNFT)(nil), // 10: lbm.collection.v1.EventMintedNFT - (*EventBurned)(nil), // 11: lbm.collection.v1.EventBurned - (*EventModifiedContract)(nil), // 12: lbm.collection.v1.EventModifiedContract - (*EventModifiedTokenClass)(nil), // 13: lbm.collection.v1.EventModifiedTokenClass - (*EventModifiedNFT)(nil), // 14: lbm.collection.v1.EventModifiedNFT - (*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 + (*EventCreatedNFTClass)(nil), // 5: lbm.collection.v1.EventCreatedNFTClass + (*EventGranted)(nil), // 6: lbm.collection.v1.EventGranted + (*EventRenounced)(nil), // 7: lbm.collection.v1.EventRenounced + (*EventMintedNFT)(nil), // 8: lbm.collection.v1.EventMintedNFT + (*EventBurned)(nil), // 9: lbm.collection.v1.EventBurned + (*EventModifiedContract)(nil), // 10: lbm.collection.v1.EventModifiedContract + (*EventModifiedTokenClass)(nil), // 11: lbm.collection.v1.EventModifiedTokenClass + (*EventModifiedNFT)(nil), // 12: lbm.collection.v1.EventModifiedNFT + (*Coin)(nil), // 13: lbm.collection.v1.Coin + (Permission)(0), // 14: lbm.collection.v1.Permission + (*NFT)(nil), // 15: lbm.collection.v1.NFT + (*Attribute)(nil), // 16: lbm.collection.v1.Attribute } var file_lbm_collection_v1_event_proto_depIdxs = []int32{ - 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 - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 13, // 0: lbm.collection.v1.EventSent.amount:type_name -> lbm.collection.v1.Coin + 14, // 1: lbm.collection.v1.EventGranted.permission:type_name -> lbm.collection.v1.Permission + 14, // 2: lbm.collection.v1.EventRenounced.permission:type_name -> lbm.collection.v1.Permission + 15, // 3: lbm.collection.v1.EventMintedNFT.tokens:type_name -> lbm.collection.v1.NFT + 13, // 4: lbm.collection.v1.EventBurned.amount:type_name -> lbm.collection.v1.Coin + 16, // 5: lbm.collection.v1.EventModifiedContract.changes:type_name -> lbm.collection.v1.Attribute + 16, // 6: lbm.collection.v1.EventModifiedTokenClass.changes:type_name -> lbm.collection.v1.Attribute + 16, // 7: lbm.collection.v1.EventModifiedNFT.changes:type_name -> lbm.collection.v1.Attribute + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name } func init() { file_lbm_collection_v1_event_proto_init() } @@ -10591,18 +8938,6 @@ func file_lbm_collection_v1_event_proto_init() { } } file_lbm_collection_v1_event_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventCreatedFTClass); 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[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventCreatedNFTClass); i { case 0: return &v.state @@ -10614,7 +8949,7 @@ func file_lbm_collection_v1_event_proto_init() { return nil } } - file_lbm_collection_v1_event_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_event_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventGranted); i { case 0: return &v.state @@ -10626,7 +8961,7 @@ func file_lbm_collection_v1_event_proto_init() { return nil } } - file_lbm_collection_v1_event_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_event_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventRenounced); i { case 0: return &v.state @@ -10638,19 +8973,7 @@ func file_lbm_collection_v1_event_proto_init() { return nil } } - file_lbm_collection_v1_event_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventMintedFT); 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[9].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_event_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventMintedNFT); i { case 0: return &v.state @@ -10662,7 +8985,7 @@ func file_lbm_collection_v1_event_proto_init() { return nil } } - file_lbm_collection_v1_event_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_event_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventBurned); i { case 0: return &v.state @@ -10674,7 +8997,7 @@ func file_lbm_collection_v1_event_proto_init() { return nil } } - file_lbm_collection_v1_event_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_event_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventModifiedContract); i { case 0: return &v.state @@ -10686,7 +9009,7 @@ func file_lbm_collection_v1_event_proto_init() { return nil } } - file_lbm_collection_v1_event_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_event_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventModifiedTokenClass); i { case 0: return &v.state @@ -10698,7 +9021,7 @@ func file_lbm_collection_v1_event_proto_init() { return nil } } - file_lbm_collection_v1_event_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_event_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventModifiedNFT); i { case 0: return &v.state @@ -10717,7 +9040,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: 14, + NumMessages: 12, NumExtensions: 0, NumServices: 0, }, diff --git a/api/lbm/collection/v1/genesis.pulsar.go b/api/lbm/collection/v1/genesis.pulsar.go index bfcbd0cb9a..9355a56222 100644 --- a/api/lbm/collection/v1/genesis.pulsar.go +++ b/api/lbm/collection/v1/genesis.pulsar.go @@ -6302,7 +6302,6 @@ func (x *fastReflection_ContractGrants) ProtoMethods() *protoiface.Methods { var ( md_NextClassIDs protoreflect.MessageDescriptor fd_NextClassIDs_contract_id protoreflect.FieldDescriptor - fd_NextClassIDs_fungible protoreflect.FieldDescriptor fd_NextClassIDs_non_fungible protoreflect.FieldDescriptor ) @@ -6310,7 +6309,6 @@ func init() { file_lbm_collection_v1_genesis_proto_init() md_NextClassIDs = File_lbm_collection_v1_genesis_proto.Messages().ByName("NextClassIDs") fd_NextClassIDs_contract_id = md_NextClassIDs.Fields().ByName("contract_id") - fd_NextClassIDs_fungible = md_NextClassIDs.Fields().ByName("fungible") fd_NextClassIDs_non_fungible = md_NextClassIDs.Fields().ByName("non_fungible") } @@ -6385,12 +6383,6 @@ func (x *fastReflection_NextClassIDs) Range(f func(protoreflect.FieldDescriptor, return } } - if x.Fungible != "" { - value := protoreflect.ValueOfString(x.Fungible) - if !f(fd_NextClassIDs_fungible, value) { - return - } - } if x.NonFungible != "" { value := protoreflect.ValueOfString(x.NonFungible) if !f(fd_NextClassIDs_non_fungible, value) { @@ -6414,8 +6406,6 @@ func (x *fastReflection_NextClassIDs) Has(fd protoreflect.FieldDescriptor) bool switch fd.FullName() { case "lbm.collection.v1.NextClassIDs.contract_id": return x.ContractId != "" - case "lbm.collection.v1.NextClassIDs.fungible": - return x.Fungible != "" case "lbm.collection.v1.NextClassIDs.non_fungible": return x.NonFungible != "" default: @@ -6436,8 +6426,6 @@ func (x *fastReflection_NextClassIDs) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "lbm.collection.v1.NextClassIDs.contract_id": x.ContractId = "" - case "lbm.collection.v1.NextClassIDs.fungible": - x.Fungible = "" case "lbm.collection.v1.NextClassIDs.non_fungible": x.NonFungible = "" default: @@ -6459,9 +6447,6 @@ func (x *fastReflection_NextClassIDs) Get(descriptor protoreflect.FieldDescripto case "lbm.collection.v1.NextClassIDs.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.NextClassIDs.fungible": - value := x.Fungible - return protoreflect.ValueOfString(value) case "lbm.collection.v1.NextClassIDs.non_fungible": value := x.NonFungible return protoreflect.ValueOfString(value) @@ -6487,8 +6472,6 @@ func (x *fastReflection_NextClassIDs) Set(fd protoreflect.FieldDescriptor, value switch fd.FullName() { case "lbm.collection.v1.NextClassIDs.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.NextClassIDs.fungible": - x.Fungible = value.Interface().(string) case "lbm.collection.v1.NextClassIDs.non_fungible": x.NonFungible = value.Interface().(string) default: @@ -6513,8 +6496,6 @@ func (x *fastReflection_NextClassIDs) Mutable(fd protoreflect.FieldDescriptor) p switch fd.FullName() { case "lbm.collection.v1.NextClassIDs.contract_id": panic(fmt.Errorf("field contract_id of message lbm.collection.v1.NextClassIDs is not mutable")) - case "lbm.collection.v1.NextClassIDs.fungible": - panic(fmt.Errorf("field fungible of message lbm.collection.v1.NextClassIDs is not mutable")) case "lbm.collection.v1.NextClassIDs.non_fungible": panic(fmt.Errorf("field non_fungible of message lbm.collection.v1.NextClassIDs is not mutable")) default: @@ -6532,8 +6513,6 @@ func (x *fastReflection_NextClassIDs) NewField(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "lbm.collection.v1.NextClassIDs.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.NextClassIDs.fungible": - return protoreflect.ValueOfString("") case "lbm.collection.v1.NextClassIDs.non_fungible": return protoreflect.ValueOfString("") default: @@ -6609,10 +6588,6 @@ func (x *fastReflection_NextClassIDs) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Fungible) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } l = len(x.NonFungible) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -6653,13 +6628,6 @@ func (x *fastReflection_NextClassIDs) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x1a } - if len(x.Fungible) > 0 { - i -= len(x.Fungible) - copy(dAtA[i:], x.Fungible) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Fungible))) - i-- - dAtA[i] = 0x12 - } if len(x.ContractId) > 0 { i -= len(x.ContractId) copy(dAtA[i:], x.ContractId) @@ -6748,38 +6716,6 @@ func (x *fastReflection_NextClassIDs) ProtoMethods() *protoiface.Methods { } 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 Fungible", 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.Fungible = 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 NonFungible", wireType) @@ -8957,8 +8893,6 @@ type NextClassIDs struct { // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // id for the fungible tokens. - Fungible string `protobuf:"bytes,2,opt,name=fungible,proto3" json:"fungible,omitempty"` // id for the non-fungible tokens. NonFungible string `protobuf:"bytes,3,opt,name=non_fungible,json=nonFungible,proto3" json:"non_fungible,omitempty"` } @@ -8990,13 +8924,6 @@ func (x *NextClassIDs) GetContractId() string { return "" } -func (x *NextClassIDs) GetFungible() string { - if x != nil { - return x.Fungible - } - return "" -} - func (x *NextClassIDs) GetNonFungible() string { if x != nil { return x.NonFungible @@ -9265,52 +9192,48 @@ var file_lbm_collection_v1_genesis_proto_rawDesc = []byte{ 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, + 0x00, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0x87, 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, + 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 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, 0x4a, 0x04, 0x08, + 0x02, 0x10, 0x03, 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 ( diff --git a/api/lbm/collection/v1/query.pulsar.go b/api/lbm/collection/v1/query.pulsar.go index 85fe689443..bbe33e9981 100644 --- a/api/lbm/collection/v1/query.pulsar.go +++ b/api/lbm/collection/v1/query.pulsar.go @@ -2136,2718 +2136,6 @@ func (x *fastReflection_QueryAllBalancesResponse) ProtoMethods() *protoiface.Met } } -var ( - md_QueryFTSupplyRequest protoreflect.MessageDescriptor - fd_QueryFTSupplyRequest_contract_id protoreflect.FieldDescriptor - fd_QueryFTSupplyRequest_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryFTSupplyRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryFTSupplyRequest") - fd_QueryFTSupplyRequest_contract_id = md_QueryFTSupplyRequest.Fields().ByName("contract_id") - fd_QueryFTSupplyRequest_token_id = md_QueryFTSupplyRequest.Fields().ByName("token_id") -} - -var _ protoreflect.Message = (*fastReflection_QueryFTSupplyRequest)(nil) - -type fastReflection_QueryFTSupplyRequest QueryFTSupplyRequest - -func (x *QueryFTSupplyRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTSupplyRequest)(x) -} - -func (x *QueryFTSupplyRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryFTSupplyRequest_messageType fastReflection_QueryFTSupplyRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTSupplyRequest_messageType{} - -type fastReflection_QueryFTSupplyRequest_messageType struct{} - -func (x fastReflection_QueryFTSupplyRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTSupplyRequest)(nil) -} -func (x fastReflection_QueryFTSupplyRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTSupplyRequest) -} -func (x fastReflection_QueryFTSupplyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTSupplyRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryFTSupplyRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTSupplyRequest -} - -// 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_QueryFTSupplyRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryFTSupplyRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTSupplyRequest) New() protoreflect.Message { - return new(fastReflection_QueryFTSupplyRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTSupplyRequest) Interface() protoreflect.ProtoMessage { - return (*QueryFTSupplyRequest)(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_QueryFTSupplyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryFTSupplyRequest_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryFTSupplyRequest_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_QueryFTSupplyRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryFTSupplyRequest.token_id": - return x.TokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest 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_QueryFTSupplyRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryFTSupplyRequest.token_id": - x.TokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest 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_QueryFTSupplyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTSupplyRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryFTSupplyRequest.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.QueryFTSupplyRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest 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_QueryFTSupplyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryFTSupplyRequest.token_id": - x.TokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest 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_QueryFTSupplyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryFTSupplyRequest is not mutable")) - case "lbm.collection.v1.QueryFTSupplyRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryFTSupplyRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest 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_QueryFTSupplyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryFTSupplyRequest.token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest 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_QueryFTSupplyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryFTSupplyRequest", 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_QueryFTSupplyRequest) 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_QueryFTSupplyRequest) 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_QueryFTSupplyRequest) 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_QueryFTSupplyRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTSupplyRequest) - 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.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().(*QueryFTSupplyRequest) - 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] = 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().(*QueryFTSupplyRequest) - 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: QueryFTSupplyRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFTSupplyRequest: 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 - 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_QueryFTSupplyResponse protoreflect.MessageDescriptor - fd_QueryFTSupplyResponse_supply protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryFTSupplyResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryFTSupplyResponse") - fd_QueryFTSupplyResponse_supply = md_QueryFTSupplyResponse.Fields().ByName("supply") -} - -var _ protoreflect.Message = (*fastReflection_QueryFTSupplyResponse)(nil) - -type fastReflection_QueryFTSupplyResponse QueryFTSupplyResponse - -func (x *QueryFTSupplyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTSupplyResponse)(x) -} - -func (x *QueryFTSupplyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryFTSupplyResponse_messageType fastReflection_QueryFTSupplyResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTSupplyResponse_messageType{} - -type fastReflection_QueryFTSupplyResponse_messageType struct{} - -func (x fastReflection_QueryFTSupplyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTSupplyResponse)(nil) -} -func (x fastReflection_QueryFTSupplyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTSupplyResponse) -} -func (x fastReflection_QueryFTSupplyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTSupplyResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryFTSupplyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTSupplyResponse -} - -// 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_QueryFTSupplyResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryFTSupplyResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTSupplyResponse) New() protoreflect.Message { - return new(fastReflection_QueryFTSupplyResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTSupplyResponse) Interface() protoreflect.ProtoMessage { - return (*QueryFTSupplyResponse)(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_QueryFTSupplyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Supply != "" { - value := protoreflect.ValueOfString(x.Supply) - if !f(fd_QueryFTSupplyResponse_supply, 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_QueryFTSupplyResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyResponse.supply": - return x.Supply != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse 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_QueryFTSupplyResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyResponse.supply": - x.Supply = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse 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_QueryFTSupplyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTSupplyResponse.supply": - value := x.Supply - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse 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_QueryFTSupplyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyResponse.supply": - x.Supply = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse 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_QueryFTSupplyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyResponse.supply": - panic(fmt.Errorf("field supply of message lbm.collection.v1.QueryFTSupplyResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse 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_QueryFTSupplyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyResponse.supply": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse 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_QueryFTSupplyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryFTSupplyResponse", 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_QueryFTSupplyResponse) 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_QueryFTSupplyResponse) 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_QueryFTSupplyResponse) 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_QueryFTSupplyResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTSupplyResponse) - 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.Supply) - 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().(*QueryFTSupplyResponse) - 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.Supply) > 0 { - i -= len(x.Supply) - copy(dAtA[i:], x.Supply) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Supply))) - 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().(*QueryFTSupplyResponse) - 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: QueryFTSupplyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFTSupplyResponse: 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 Supply", 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.Supply = 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_QueryFTMintedRequest protoreflect.MessageDescriptor - fd_QueryFTMintedRequest_contract_id protoreflect.FieldDescriptor - fd_QueryFTMintedRequest_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryFTMintedRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryFTMintedRequest") - fd_QueryFTMintedRequest_contract_id = md_QueryFTMintedRequest.Fields().ByName("contract_id") - fd_QueryFTMintedRequest_token_id = md_QueryFTMintedRequest.Fields().ByName("token_id") -} - -var _ protoreflect.Message = (*fastReflection_QueryFTMintedRequest)(nil) - -type fastReflection_QueryFTMintedRequest QueryFTMintedRequest - -func (x *QueryFTMintedRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTMintedRequest)(x) -} - -func (x *QueryFTMintedRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryFTMintedRequest_messageType fastReflection_QueryFTMintedRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTMintedRequest_messageType{} - -type fastReflection_QueryFTMintedRequest_messageType struct{} - -func (x fastReflection_QueryFTMintedRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTMintedRequest)(nil) -} -func (x fastReflection_QueryFTMintedRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTMintedRequest) -} -func (x fastReflection_QueryFTMintedRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTMintedRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryFTMintedRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTMintedRequest -} - -// 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_QueryFTMintedRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryFTMintedRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTMintedRequest) New() protoreflect.Message { - return new(fastReflection_QueryFTMintedRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTMintedRequest) Interface() protoreflect.ProtoMessage { - return (*QueryFTMintedRequest)(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_QueryFTMintedRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryFTMintedRequest_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryFTMintedRequest_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_QueryFTMintedRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryFTMintedRequest.token_id": - return x.TokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest 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_QueryFTMintedRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryFTMintedRequest.token_id": - x.TokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest 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_QueryFTMintedRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTMintedRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryFTMintedRequest.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.QueryFTMintedRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest 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_QueryFTMintedRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryFTMintedRequest.token_id": - x.TokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest 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_QueryFTMintedRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryFTMintedRequest is not mutable")) - case "lbm.collection.v1.QueryFTMintedRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryFTMintedRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest 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_QueryFTMintedRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryFTMintedRequest.token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest 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_QueryFTMintedRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryFTMintedRequest", 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_QueryFTMintedRequest) 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_QueryFTMintedRequest) 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_QueryFTMintedRequest) 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_QueryFTMintedRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTMintedRequest) - 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.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().(*QueryFTMintedRequest) - 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] = 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().(*QueryFTMintedRequest) - 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: QueryFTMintedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFTMintedRequest: 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 - 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_QueryFTMintedResponse protoreflect.MessageDescriptor - fd_QueryFTMintedResponse_minted protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryFTMintedResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryFTMintedResponse") - fd_QueryFTMintedResponse_minted = md_QueryFTMintedResponse.Fields().ByName("minted") -} - -var _ protoreflect.Message = (*fastReflection_QueryFTMintedResponse)(nil) - -type fastReflection_QueryFTMintedResponse QueryFTMintedResponse - -func (x *QueryFTMintedResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTMintedResponse)(x) -} - -func (x *QueryFTMintedResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryFTMintedResponse_messageType fastReflection_QueryFTMintedResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTMintedResponse_messageType{} - -type fastReflection_QueryFTMintedResponse_messageType struct{} - -func (x fastReflection_QueryFTMintedResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTMintedResponse)(nil) -} -func (x fastReflection_QueryFTMintedResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTMintedResponse) -} -func (x fastReflection_QueryFTMintedResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTMintedResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryFTMintedResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTMintedResponse -} - -// 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_QueryFTMintedResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryFTMintedResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTMintedResponse) New() protoreflect.Message { - return new(fastReflection_QueryFTMintedResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTMintedResponse) Interface() protoreflect.ProtoMessage { - return (*QueryFTMintedResponse)(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_QueryFTMintedResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Minted != "" { - value := protoreflect.ValueOfString(x.Minted) - if !f(fd_QueryFTMintedResponse_minted, 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_QueryFTMintedResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedResponse.minted": - return x.Minted != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse 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_QueryFTMintedResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedResponse.minted": - x.Minted = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse 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_QueryFTMintedResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTMintedResponse.minted": - value := x.Minted - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse 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_QueryFTMintedResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedResponse.minted": - x.Minted = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse 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_QueryFTMintedResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedResponse.minted": - panic(fmt.Errorf("field minted of message lbm.collection.v1.QueryFTMintedResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse 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_QueryFTMintedResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedResponse.minted": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse 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_QueryFTMintedResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryFTMintedResponse", 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_QueryFTMintedResponse) 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_QueryFTMintedResponse) 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_QueryFTMintedResponse) 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_QueryFTMintedResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTMintedResponse) - 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.Minted) - 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().(*QueryFTMintedResponse) - 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.Minted) > 0 { - i -= len(x.Minted) - copy(dAtA[i:], x.Minted) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Minted))) - 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().(*QueryFTMintedResponse) - 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: QueryFTMintedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFTMintedResponse: 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 Minted", 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.Minted = 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_QueryFTBurntRequest protoreflect.MessageDescriptor - fd_QueryFTBurntRequest_contract_id protoreflect.FieldDescriptor - fd_QueryFTBurntRequest_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryFTBurntRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryFTBurntRequest") - fd_QueryFTBurntRequest_contract_id = md_QueryFTBurntRequest.Fields().ByName("contract_id") - fd_QueryFTBurntRequest_token_id = md_QueryFTBurntRequest.Fields().ByName("token_id") -} - -var _ protoreflect.Message = (*fastReflection_QueryFTBurntRequest)(nil) - -type fastReflection_QueryFTBurntRequest QueryFTBurntRequest - -func (x *QueryFTBurntRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTBurntRequest)(x) -} - -func (x *QueryFTBurntRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryFTBurntRequest_messageType fastReflection_QueryFTBurntRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTBurntRequest_messageType{} - -type fastReflection_QueryFTBurntRequest_messageType struct{} - -func (x fastReflection_QueryFTBurntRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTBurntRequest)(nil) -} -func (x fastReflection_QueryFTBurntRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTBurntRequest) -} -func (x fastReflection_QueryFTBurntRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTBurntRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryFTBurntRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTBurntRequest -} - -// 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_QueryFTBurntRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryFTBurntRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTBurntRequest) New() protoreflect.Message { - return new(fastReflection_QueryFTBurntRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTBurntRequest) Interface() protoreflect.ProtoMessage { - return (*QueryFTBurntRequest)(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_QueryFTBurntRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryFTBurntRequest_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryFTBurntRequest_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_QueryFTBurntRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryFTBurntRequest.token_id": - return x.TokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest 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_QueryFTBurntRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryFTBurntRequest.token_id": - x.TokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest 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_QueryFTBurntRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTBurntRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryFTBurntRequest.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.QueryFTBurntRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest 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_QueryFTBurntRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryFTBurntRequest.token_id": - x.TokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest 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_QueryFTBurntRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryFTBurntRequest is not mutable")) - case "lbm.collection.v1.QueryFTBurntRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryFTBurntRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest 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_QueryFTBurntRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryFTBurntRequest.token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest 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_QueryFTBurntRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryFTBurntRequest", 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_QueryFTBurntRequest) 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_QueryFTBurntRequest) 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_QueryFTBurntRequest) 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_QueryFTBurntRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTBurntRequest) - 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.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().(*QueryFTBurntRequest) - 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] = 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().(*QueryFTBurntRequest) - 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: QueryFTBurntRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFTBurntRequest: 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 - 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_QueryFTBurntResponse protoreflect.MessageDescriptor - fd_QueryFTBurntResponse_burnt protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryFTBurntResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryFTBurntResponse") - fd_QueryFTBurntResponse_burnt = md_QueryFTBurntResponse.Fields().ByName("burnt") -} - -var _ protoreflect.Message = (*fastReflection_QueryFTBurntResponse)(nil) - -type fastReflection_QueryFTBurntResponse QueryFTBurntResponse - -func (x *QueryFTBurntResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTBurntResponse)(x) -} - -func (x *QueryFTBurntResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryFTBurntResponse_messageType fastReflection_QueryFTBurntResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTBurntResponse_messageType{} - -type fastReflection_QueryFTBurntResponse_messageType struct{} - -func (x fastReflection_QueryFTBurntResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTBurntResponse)(nil) -} -func (x fastReflection_QueryFTBurntResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTBurntResponse) -} -func (x fastReflection_QueryFTBurntResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTBurntResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryFTBurntResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTBurntResponse -} - -// 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_QueryFTBurntResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryFTBurntResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTBurntResponse) New() protoreflect.Message { - return new(fastReflection_QueryFTBurntResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTBurntResponse) Interface() protoreflect.ProtoMessage { - return (*QueryFTBurntResponse)(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_QueryFTBurntResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Burnt != "" { - value := protoreflect.ValueOfString(x.Burnt) - if !f(fd_QueryFTBurntResponse_burnt, 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_QueryFTBurntResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntResponse.burnt": - return x.Burnt != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse 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_QueryFTBurntResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntResponse.burnt": - x.Burnt = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse 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_QueryFTBurntResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTBurntResponse.burnt": - value := x.Burnt - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse 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_QueryFTBurntResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntResponse.burnt": - x.Burnt = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse 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_QueryFTBurntResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntResponse.burnt": - panic(fmt.Errorf("field burnt of message lbm.collection.v1.QueryFTBurntResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse 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_QueryFTBurntResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntResponse.burnt": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse 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_QueryFTBurntResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryFTBurntResponse", 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_QueryFTBurntResponse) 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_QueryFTBurntResponse) 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_QueryFTBurntResponse) 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_QueryFTBurntResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTBurntResponse) - 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.Burnt) - 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().(*QueryFTBurntResponse) - 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.Burnt) > 0 { - i -= len(x.Burnt) - copy(dAtA[i:], x.Burnt) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Burnt))) - 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().(*QueryFTBurntResponse) - 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: QueryFTBurntResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFTBurntResponse: 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 Burnt", 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.Burnt = 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_QueryNFTSupplyRequest protoreflect.MessageDescriptor fd_QueryNFTSupplyRequest_contract_id protoreflect.FieldDescriptor @@ -4870,7 +2158,7 @@ func (x *QueryNFTSupplyRequest) ProtoReflect() protoreflect.Message { } func (x *QueryNFTSupplyRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[10] + mi := &file_lbm_collection_v1_query_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5352,7 +2640,7 @@ func (x *QueryNFTSupplyResponse) ProtoReflect() protoreflect.Message { } func (x *QueryNFTSupplyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[11] + mi := &file_lbm_collection_v1_query_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5774,7 +3062,7 @@ func (x *QueryNFTMintedRequest) ProtoReflect() protoreflect.Message { } func (x *QueryNFTMintedRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[12] + mi := &file_lbm_collection_v1_query_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6256,7 +3544,7 @@ func (x *QueryNFTMintedResponse) ProtoReflect() protoreflect.Message { } func (x *QueryNFTMintedResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[13] + mi := &file_lbm_collection_v1_query_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6678,7 +3966,7 @@ func (x *QueryNFTBurntRequest) ProtoReflect() protoreflect.Message { } func (x *QueryNFTBurntRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[14] + mi := &file_lbm_collection_v1_query_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7160,7 +4448,7 @@ func (x *QueryNFTBurntResponse) ProtoReflect() protoreflect.Message { } func (x *QueryNFTBurntResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[15] + mi := &file_lbm_collection_v1_query_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7580,7 +4868,7 @@ func (x *QueryContractRequest) ProtoReflect() protoreflect.Message { } func (x *QueryContractRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[16] + mi := &file_lbm_collection_v1_query_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8000,7 +5288,7 @@ func (x *QueryContractResponse) ProtoReflect() protoreflect.Message { } func (x *QueryContractResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[17] + mi := &file_lbm_collection_v1_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8437,7 +5725,7 @@ func (x *QueryTokenClassTypeNameRequest) ProtoReflect() protoreflect.Message { } func (x *QueryTokenClassTypeNameRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[18] + mi := &file_lbm_collection_v1_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8919,7 +6207,7 @@ func (x *QueryTokenClassTypeNameResponse) ProtoReflect() protoreflect.Message { } func (x *QueryTokenClassTypeNameResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[19] + mi := &file_lbm_collection_v1_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9341,7 +6629,7 @@ func (x *QueryTokenTypeRequest) ProtoReflect() protoreflect.Message { } func (x *QueryTokenTypeRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[20] + mi := &file_lbm_collection_v1_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9823,7 +7111,7 @@ func (x *QueryTokenTypeResponse) ProtoReflect() protoreflect.Message { } func (x *QueryTokenTypeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[21] + mi := &file_lbm_collection_v1_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10260,7 +7548,7 @@ func (x *QueryTokenRequest) ProtoReflect() protoreflect.Message { } func (x *QueryTokenRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[22] + mi := &file_lbm_collection_v1_query_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10742,7 +8030,7 @@ func (x *QueryTokenResponse) ProtoReflect() protoreflect.Message { } func (x *QueryTokenResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[23] + mi := &file_lbm_collection_v1_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11181,7 +8469,7 @@ func (x *QueryGranteeGrantsRequest) ProtoReflect() protoreflect.Message { } func (x *QueryGranteeGrantsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[24] + mi := &file_lbm_collection_v1_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11793,7 +9081,7 @@ func (x *QueryGranteeGrantsResponse) ProtoReflect() protoreflect.Message { } func (x *QueryGranteeGrantsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[25] + mi := &file_lbm_collection_v1_query_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12317,7 +9605,7 @@ func (x *QueryIsOperatorForRequest) ProtoReflect() protoreflect.Message { } func (x *QueryIsOperatorForRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[26] + mi := &file_lbm_collection_v1_query_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12861,7 +10149,7 @@ func (x *QueryIsOperatorForResponse) ProtoReflect() protoreflect.Message { } func (x *QueryIsOperatorForResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[27] + mi := &file_lbm_collection_v1_query_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13275,7 +10563,7 @@ func (x *QueryHoldersByOperatorRequest) ProtoReflect() protoreflect.Message { } func (x *QueryHoldersByOperatorRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[28] + mi := &file_lbm_collection_v1_query_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13882,7 +11170,7 @@ func (x *QueryHoldersByOperatorResponse) ProtoReflect() protoreflect.Message { } func (x *QueryHoldersByOperatorResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[29] + mi := &file_lbm_collection_v1_query_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14509,323 +11797,74 @@ 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} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{2} } -func (x *QueryFTBurntRequest) GetContractId() string { +func (x *QueryAllBalancesRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryFTBurntRequest) GetTokenId() string { +func (x *QueryAllBalancesRequest) GetAddress() string { if x != nil { - return x.TokenId + return x.Address } return "" } -// QueryFTBurntResponse is the response type for the Query/FTBurnt RPC method. -type QueryFTBurntResponse 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 - // burnt is the amount of the burnt tokens. - Burnt string `protobuf:"bytes,1,opt,name=burnt,proto3" json:"burnt,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 *QueryFTBurntResponse) Reset() { - *x = QueryFTBurntResponse{} +func (x *QueryAllBalancesResponse) Reset() { + *x = QueryAllBalancesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[9] + mi := &file_lbm_collection_v1_query_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryFTBurntResponse) String() string { +func (x *QueryAllBalancesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryFTBurntResponse) ProtoMessage() {} +func (*QueryAllBalancesResponse) ProtoMessage() {} -// Deprecated: Use QueryFTBurntResponse.ProtoReflect.Descriptor instead. -func (*QueryFTBurntResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{9} +// Deprecated: Use QueryAllBalancesResponse.ProtoReflect.Descriptor instead. +func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{3} } -func (x *QueryFTBurntResponse) GetBurnt() string { +func (x *QueryAllBalancesResponse) GetBalances() []*Coin { if x != nil { - return x.Burnt + return x.Balances } - return "" + return nil +} + +func (x *QueryAllBalancesResponse) GetPagination() *query.PageResponse { + if x != nil { + return x.Pagination + } + return nil } // QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. @@ -14844,7 +11883,7 @@ type QueryNFTSupplyRequest struct { func (x *QueryNFTSupplyRequest) Reset() { *x = QueryNFTSupplyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[10] + mi := &file_lbm_collection_v1_query_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14858,7 +11897,7 @@ func (*QueryNFTSupplyRequest) ProtoMessage() {} // Deprecated: Use QueryNFTSupplyRequest.ProtoReflect.Descriptor instead. func (*QueryNFTSupplyRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{10} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{4} } func (x *QueryNFTSupplyRequest) GetContractId() string { @@ -14888,7 +11927,7 @@ type QueryNFTSupplyResponse struct { func (x *QueryNFTSupplyResponse) Reset() { *x = QueryNFTSupplyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[11] + mi := &file_lbm_collection_v1_query_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14902,7 +11941,7 @@ func (*QueryNFTSupplyResponse) ProtoMessage() {} // Deprecated: Use QueryNFTSupplyResponse.ProtoReflect.Descriptor instead. func (*QueryNFTSupplyResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{11} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{5} } func (x *QueryNFTSupplyResponse) GetSupply() string { @@ -14928,7 +11967,7 @@ type QueryNFTMintedRequest struct { func (x *QueryNFTMintedRequest) Reset() { *x = QueryNFTMintedRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[12] + mi := &file_lbm_collection_v1_query_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14942,7 +11981,7 @@ func (*QueryNFTMintedRequest) ProtoMessage() {} // Deprecated: Use QueryNFTMintedRequest.ProtoReflect.Descriptor instead. func (*QueryNFTMintedRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{12} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{6} } func (x *QueryNFTMintedRequest) GetContractId() string { @@ -14972,7 +12011,7 @@ type QueryNFTMintedResponse struct { func (x *QueryNFTMintedResponse) Reset() { *x = QueryNFTMintedResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[13] + mi := &file_lbm_collection_v1_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14986,7 +12025,7 @@ func (*QueryNFTMintedResponse) ProtoMessage() {} // Deprecated: Use QueryNFTMintedResponse.ProtoReflect.Descriptor instead. func (*QueryNFTMintedResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{13} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{7} } func (x *QueryNFTMintedResponse) GetMinted() string { @@ -15012,7 +12051,7 @@ type QueryNFTBurntRequest struct { func (x *QueryNFTBurntRequest) Reset() { *x = QueryNFTBurntRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[14] + mi := &file_lbm_collection_v1_query_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15026,7 +12065,7 @@ func (*QueryNFTBurntRequest) ProtoMessage() {} // Deprecated: Use QueryNFTBurntRequest.ProtoReflect.Descriptor instead. func (*QueryNFTBurntRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{14} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{8} } func (x *QueryNFTBurntRequest) GetContractId() string { @@ -15056,7 +12095,7 @@ type QueryNFTBurntResponse struct { func (x *QueryNFTBurntResponse) Reset() { *x = QueryNFTBurntResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[15] + mi := &file_lbm_collection_v1_query_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15070,7 +12109,7 @@ func (*QueryNFTBurntResponse) ProtoMessage() {} // Deprecated: Use QueryNFTBurntResponse.ProtoReflect.Descriptor instead. func (*QueryNFTBurntResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{15} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{9} } func (x *QueryNFTBurntResponse) GetBurnt() string { @@ -15093,7 +12132,7 @@ type QueryContractRequest struct { func (x *QueryContractRequest) Reset() { *x = QueryContractRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[16] + mi := &file_lbm_collection_v1_query_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15107,7 +12146,7 @@ func (*QueryContractRequest) ProtoMessage() {} // Deprecated: Use QueryContractRequest.ProtoReflect.Descriptor instead. func (*QueryContractRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{16} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{10} } func (x *QueryContractRequest) GetContractId() string { @@ -15130,7 +12169,7 @@ type QueryContractResponse struct { func (x *QueryContractResponse) Reset() { *x = QueryContractResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[17] + mi := &file_lbm_collection_v1_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15144,7 +12183,7 @@ func (*QueryContractResponse) ProtoMessage() {} // Deprecated: Use QueryContractResponse.ProtoReflect.Descriptor instead. func (*QueryContractResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{17} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{11} } func (x *QueryContractResponse) GetContract() *Contract { @@ -15171,7 +12210,7 @@ type QueryTokenClassTypeNameRequest struct { func (x *QueryTokenClassTypeNameRequest) Reset() { *x = QueryTokenClassTypeNameRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[18] + mi := &file_lbm_collection_v1_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15185,7 +12224,7 @@ func (*QueryTokenClassTypeNameRequest) ProtoMessage() {} // Deprecated: Use QueryTokenClassTypeNameRequest.ProtoReflect.Descriptor instead. func (*QueryTokenClassTypeNameRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{18} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{12} } func (x *QueryTokenClassTypeNameRequest) GetContractId() string { @@ -15217,7 +12256,7 @@ type QueryTokenClassTypeNameResponse struct { func (x *QueryTokenClassTypeNameResponse) Reset() { *x = QueryTokenClassTypeNameResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[19] + mi := &file_lbm_collection_v1_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15231,7 +12270,7 @@ func (*QueryTokenClassTypeNameResponse) ProtoMessage() {} // Deprecated: Use QueryTokenClassTypeNameResponse.ProtoReflect.Descriptor instead. func (*QueryTokenClassTypeNameResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{19} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{13} } func (x *QueryTokenClassTypeNameResponse) GetName() string { @@ -15257,7 +12296,7 @@ type QueryTokenTypeRequest struct { func (x *QueryTokenTypeRequest) Reset() { *x = QueryTokenTypeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[20] + mi := &file_lbm_collection_v1_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15271,7 +12310,7 @@ func (*QueryTokenTypeRequest) ProtoMessage() {} // Deprecated: Use QueryTokenTypeRequest.ProtoReflect.Descriptor instead. func (*QueryTokenTypeRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{20} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{14} } func (x *QueryTokenTypeRequest) GetContractId() string { @@ -15301,7 +12340,7 @@ type QueryTokenTypeResponse struct { func (x *QueryTokenTypeResponse) Reset() { *x = QueryTokenTypeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[21] + mi := &file_lbm_collection_v1_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15315,7 +12354,7 @@ func (*QueryTokenTypeResponse) ProtoMessage() {} // Deprecated: Use QueryTokenTypeResponse.ProtoReflect.Descriptor instead. func (*QueryTokenTypeResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{21} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{15} } func (x *QueryTokenTypeResponse) GetTokenType() *TokenType { @@ -15340,7 +12379,7 @@ type QueryTokenRequest struct { func (x *QueryTokenRequest) Reset() { *x = QueryTokenRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[22] + mi := &file_lbm_collection_v1_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15354,7 +12393,7 @@ func (*QueryTokenRequest) ProtoMessage() {} // Deprecated: Use QueryTokenRequest.ProtoReflect.Descriptor instead. func (*QueryTokenRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{22} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{16} } func (x *QueryTokenRequest) GetContractId() string { @@ -15384,7 +12423,7 @@ type QueryTokenResponse struct { func (x *QueryTokenResponse) Reset() { *x = QueryTokenResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[23] + mi := &file_lbm_collection_v1_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15398,7 +12437,7 @@ func (*QueryTokenResponse) ProtoMessage() {} // Deprecated: Use QueryTokenResponse.ProtoReflect.Descriptor instead. func (*QueryTokenResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{23} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{17} } func (x *QueryTokenResponse) GetToken() *anypb.Any { @@ -15425,7 +12464,7 @@ type QueryGranteeGrantsRequest struct { func (x *QueryGranteeGrantsRequest) Reset() { *x = QueryGranteeGrantsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[24] + mi := &file_lbm_collection_v1_query_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15439,7 +12478,7 @@ func (*QueryGranteeGrantsRequest) ProtoMessage() {} // Deprecated: Use QueryGranteeGrantsRequest.ProtoReflect.Descriptor instead. func (*QueryGranteeGrantsRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{24} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{18} } func (x *QueryGranteeGrantsRequest) GetContractId() string { @@ -15477,7 +12516,7 @@ type QueryGranteeGrantsResponse struct { func (x *QueryGranteeGrantsResponse) Reset() { *x = QueryGranteeGrantsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[25] + mi := &file_lbm_collection_v1_query_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15491,7 +12530,7 @@ func (*QueryGranteeGrantsResponse) ProtoMessage() {} // Deprecated: Use QueryGranteeGrantsResponse.ProtoReflect.Descriptor instead. func (*QueryGranteeGrantsResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{25} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{19} } func (x *QueryGranteeGrantsResponse) GetGrants() []*Grant { @@ -15525,7 +12564,7 @@ type QueryIsOperatorForRequest struct { func (x *QueryIsOperatorForRequest) Reset() { *x = QueryIsOperatorForRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[26] + mi := &file_lbm_collection_v1_query_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15539,7 +12578,7 @@ func (*QueryIsOperatorForRequest) ProtoMessage() {} // Deprecated: Use QueryIsOperatorForRequest.ProtoReflect.Descriptor instead. func (*QueryIsOperatorForRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{26} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{20} } func (x *QueryIsOperatorForRequest) GetContractId() string { @@ -15575,7 +12614,7 @@ type QueryIsOperatorForResponse struct { func (x *QueryIsOperatorForResponse) Reset() { *x = QueryIsOperatorForResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[27] + mi := &file_lbm_collection_v1_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15589,7 +12628,7 @@ func (*QueryIsOperatorForResponse) ProtoMessage() {} // Deprecated: Use QueryIsOperatorForResponse.ProtoReflect.Descriptor instead. func (*QueryIsOperatorForResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{27} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{21} } func (x *QueryIsOperatorForResponse) GetAuthorized() bool { @@ -15616,7 +12655,7 @@ type QueryHoldersByOperatorRequest struct { func (x *QueryHoldersByOperatorRequest) Reset() { *x = QueryHoldersByOperatorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[28] + mi := &file_lbm_collection_v1_query_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15630,7 +12669,7 @@ func (*QueryHoldersByOperatorRequest) ProtoMessage() {} // Deprecated: Use QueryHoldersByOperatorRequest.ProtoReflect.Descriptor instead. func (*QueryHoldersByOperatorRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{28} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{22} } func (x *QueryHoldersByOperatorRequest) GetContractId() string { @@ -15668,7 +12707,7 @@ type QueryHoldersByOperatorResponse struct { func (x *QueryHoldersByOperatorResponse) Reset() { *x = QueryHoldersByOperatorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[29] + mi := &file_lbm_collection_v1_query_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15682,7 +12721,7 @@ func (*QueryHoldersByOperatorResponse) ProtoMessage() {} // Deprecated: Use QueryHoldersByOperatorResponse.ProtoReflect.Descriptor instead. func (*QueryHoldersByOperatorResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{29} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{23} } func (x *QueryHoldersByOperatorResponse) GetHolders() []string { @@ -15752,340 +12791,276 @@ var file_lbm_collection_v1_query_proto_rawDesc = []byte{ 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, - 0x52, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, + 0x57, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, + 0x79, 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, 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, 0x22, 0x5d, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x4e, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x18, 0x01, 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, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x22, 0x57, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4e, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 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, 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, + 0x22, 0x5d, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x6d, 0x69, + 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 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, 0x6d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x22, + 0x56, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 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, 0x5c, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x53, 0x75, - 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, - 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x18, 0x01, 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, 0x73, 0x75, 0x70, 0x70, 0x6c, - 0x79, 0x22, 0x52, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, - 0x65, 0x64, 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, 0x5c, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, - 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, - 0x0a, 0x06, 0x6d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 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, 0x6d, 0x69, 0x6e, - 0x74, 0x65, 0x64, 0x22, 0x51, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x42, 0x75, - 0x72, 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, 0x59, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, - 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, - 0x0a, 0x05, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x18, 0x01, 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, 0x05, 0x62, 0x75, 0x72, 0x6e, - 0x74, 0x22, 0x57, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x53, 0x75, 0x70, - 0x70, 0x6c, 0x79, 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, 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, 0x22, 0x5d, 0x0a, 0x16, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x18, 0x01, - 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, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x22, 0x57, 0x0a, 0x15, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4e, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 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, 0x22, 0x5a, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x41, 0x0a, 0x05, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x18, 0x01, 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, 0x05, 0x62, 0x75, + 0x72, 0x6e, 0x74, 0x22, 0x37, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 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, 0x22, 0x56, 0x0a, 0x15, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 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, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x22, 0x5c, 0x0a, 0x1e, 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, 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, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x49, 0x64, 0x22, 0x35, 0x0a, 0x1f, 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, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x57, 0x0a, 0x15, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 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, 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, 0x22, 0x5d, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x4d, 0x69, - 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, - 0x6d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 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, 0x6d, 0x69, 0x6e, 0x74, 0x65, - 0x64, 0x22, 0x56, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, - 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, 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, 0x22, 0x5a, 0x0a, 0x15, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x41, 0x0a, 0x05, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x18, 0x01, 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, 0x05, - 0x62, 0x75, 0x72, 0x6e, 0x74, 0x22, 0x37, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 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, 0x22, 0x56, - 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 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, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x22, 0x5c, 0x0a, 0x1e, 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, 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, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x49, 0x64, 0x22, 0x35, 0x0a, 0x1f, 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, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x57, 0x0a, 0x15, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, + 0x70, 0x65, 0x22, 0x5b, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0a, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, + 0x4f, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 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, 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, 0x22, 0x5b, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, - 0x0a, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, - 0x65, 0x22, 0x4f, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, + 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, 0x46, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 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, 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, 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, 0x46, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 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, 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, 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, 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, + 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, 0xdd, 0x0f, 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, 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, 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, + 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, 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, 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, + 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, 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, 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, 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, + 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, 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, + 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, - 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, + 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, 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, 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, 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, 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, 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, + 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, 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, 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, + 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 ( @@ -16100,91 +13075,79 @@ 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, 30) +var file_lbm_collection_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_lbm_collection_v1_query_proto_goTypes = []interface{}{ (*QueryBalanceRequest)(nil), // 0: lbm.collection.v1.QueryBalanceRequest (*QueryBalanceResponse)(nil), // 1: lbm.collection.v1.QueryBalanceResponse (*QueryAllBalancesRequest)(nil), // 2: lbm.collection.v1.QueryAllBalancesRequest (*QueryAllBalancesResponse)(nil), // 3: lbm.collection.v1.QueryAllBalancesResponse - (*QueryFTSupplyRequest)(nil), // 4: lbm.collection.v1.QueryFTSupplyRequest - (*QueryFTSupplyResponse)(nil), // 5: lbm.collection.v1.QueryFTSupplyResponse - (*QueryFTMintedRequest)(nil), // 6: lbm.collection.v1.QueryFTMintedRequest - (*QueryFTMintedResponse)(nil), // 7: lbm.collection.v1.QueryFTMintedResponse - (*QueryFTBurntRequest)(nil), // 8: lbm.collection.v1.QueryFTBurntRequest - (*QueryFTBurntResponse)(nil), // 9: lbm.collection.v1.QueryFTBurntResponse - (*QueryNFTSupplyRequest)(nil), // 10: lbm.collection.v1.QueryNFTSupplyRequest - (*QueryNFTSupplyResponse)(nil), // 11: lbm.collection.v1.QueryNFTSupplyResponse - (*QueryNFTMintedRequest)(nil), // 12: lbm.collection.v1.QueryNFTMintedRequest - (*QueryNFTMintedResponse)(nil), // 13: lbm.collection.v1.QueryNFTMintedResponse - (*QueryNFTBurntRequest)(nil), // 14: lbm.collection.v1.QueryNFTBurntRequest - (*QueryNFTBurntResponse)(nil), // 15: lbm.collection.v1.QueryNFTBurntResponse - (*QueryContractRequest)(nil), // 16: lbm.collection.v1.QueryContractRequest - (*QueryContractResponse)(nil), // 17: lbm.collection.v1.QueryContractResponse - (*QueryTokenClassTypeNameRequest)(nil), // 18: lbm.collection.v1.QueryTokenClassTypeNameRequest - (*QueryTokenClassTypeNameResponse)(nil), // 19: lbm.collection.v1.QueryTokenClassTypeNameResponse - (*QueryTokenTypeRequest)(nil), // 20: lbm.collection.v1.QueryTokenTypeRequest - (*QueryTokenTypeResponse)(nil), // 21: lbm.collection.v1.QueryTokenTypeResponse - (*QueryTokenRequest)(nil), // 22: lbm.collection.v1.QueryTokenRequest - (*QueryTokenResponse)(nil), // 23: lbm.collection.v1.QueryTokenResponse - (*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 + (*QueryNFTSupplyRequest)(nil), // 4: lbm.collection.v1.QueryNFTSupplyRequest + (*QueryNFTSupplyResponse)(nil), // 5: lbm.collection.v1.QueryNFTSupplyResponse + (*QueryNFTMintedRequest)(nil), // 6: lbm.collection.v1.QueryNFTMintedRequest + (*QueryNFTMintedResponse)(nil), // 7: lbm.collection.v1.QueryNFTMintedResponse + (*QueryNFTBurntRequest)(nil), // 8: lbm.collection.v1.QueryNFTBurntRequest + (*QueryNFTBurntResponse)(nil), // 9: lbm.collection.v1.QueryNFTBurntResponse + (*QueryContractRequest)(nil), // 10: lbm.collection.v1.QueryContractRequest + (*QueryContractResponse)(nil), // 11: lbm.collection.v1.QueryContractResponse + (*QueryTokenClassTypeNameRequest)(nil), // 12: lbm.collection.v1.QueryTokenClassTypeNameRequest + (*QueryTokenClassTypeNameResponse)(nil), // 13: lbm.collection.v1.QueryTokenClassTypeNameResponse + (*QueryTokenTypeRequest)(nil), // 14: lbm.collection.v1.QueryTokenTypeRequest + (*QueryTokenTypeResponse)(nil), // 15: lbm.collection.v1.QueryTokenTypeResponse + (*QueryTokenRequest)(nil), // 16: lbm.collection.v1.QueryTokenRequest + (*QueryTokenResponse)(nil), // 17: lbm.collection.v1.QueryTokenResponse + (*QueryGranteeGrantsRequest)(nil), // 18: lbm.collection.v1.QueryGranteeGrantsRequest + (*QueryGranteeGrantsResponse)(nil), // 19: lbm.collection.v1.QueryGranteeGrantsResponse + (*QueryIsOperatorForRequest)(nil), // 20: lbm.collection.v1.QueryIsOperatorForRequest + (*QueryIsOperatorForResponse)(nil), // 21: lbm.collection.v1.QueryIsOperatorForResponse + (*QueryHoldersByOperatorRequest)(nil), // 22: lbm.collection.v1.QueryHoldersByOperatorRequest + (*QueryHoldersByOperatorResponse)(nil), // 23: lbm.collection.v1.QueryHoldersByOperatorResponse + (*Coin)(nil), // 24: lbm.collection.v1.Coin + (*query.PageRequest)(nil), // 25: cosmos.base.query.v1beta1.PageRequest + (*query.PageResponse)(nil), // 26: cosmos.base.query.v1beta1.PageResponse + (*Contract)(nil), // 27: lbm.collection.v1.Contract + (*TokenType)(nil), // 28: lbm.collection.v1.TokenType + (*anypb.Any)(nil), // 29: google.protobuf.Any + (*Grant)(nil), // 30: lbm.collection.v1.Grant } var file_lbm_collection_v1_query_proto_depIdxs = []int32{ - 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 + 24, // 0: lbm.collection.v1.QueryBalanceResponse.balance:type_name -> lbm.collection.v1.Coin + 25, // 1: lbm.collection.v1.QueryAllBalancesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 24, // 2: lbm.collection.v1.QueryAllBalancesResponse.balances:type_name -> lbm.collection.v1.Coin + 26, // 3: lbm.collection.v1.QueryAllBalancesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 27, // 4: lbm.collection.v1.QueryContractResponse.contract:type_name -> lbm.collection.v1.Contract + 28, // 5: lbm.collection.v1.QueryTokenTypeResponse.token_type:type_name -> lbm.collection.v1.TokenType + 29, // 6: lbm.collection.v1.QueryTokenResponse.token:type_name -> google.protobuf.Any + 25, // 7: lbm.collection.v1.QueryGranteeGrantsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 30, // 8: lbm.collection.v1.QueryGranteeGrantsResponse.grants:type_name -> lbm.collection.v1.Grant + 26, // 9: lbm.collection.v1.QueryGranteeGrantsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 25, // 10: lbm.collection.v1.QueryHoldersByOperatorRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 26, // 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 + 4, // 14: lbm.collection.v1.Query.NFTSupply:input_type -> lbm.collection.v1.QueryNFTSupplyRequest + 6, // 15: lbm.collection.v1.Query.NFTMinted:input_type -> lbm.collection.v1.QueryNFTMintedRequest + 8, // 16: lbm.collection.v1.Query.NFTBurnt:input_type -> lbm.collection.v1.QueryNFTBurntRequest + 10, // 17: lbm.collection.v1.Query.Contract:input_type -> lbm.collection.v1.QueryContractRequest + 12, // 18: lbm.collection.v1.Query.TokenClassTypeName:input_type -> lbm.collection.v1.QueryTokenClassTypeNameRequest + 14, // 19: lbm.collection.v1.Query.TokenType:input_type -> lbm.collection.v1.QueryTokenTypeRequest + 16, // 20: lbm.collection.v1.Query.Token:input_type -> lbm.collection.v1.QueryTokenRequest + 18, // 21: lbm.collection.v1.Query.GranteeGrants:input_type -> lbm.collection.v1.QueryGranteeGrantsRequest + 20, // 22: lbm.collection.v1.Query.IsOperatorFor:input_type -> lbm.collection.v1.QueryIsOperatorForRequest + 22, // 23: lbm.collection.v1.Query.HoldersByOperator:input_type -> lbm.collection.v1.QueryHoldersByOperatorRequest + 1, // 24: lbm.collection.v1.Query.Balance:output_type -> lbm.collection.v1.QueryBalanceResponse + 3, // 25: lbm.collection.v1.Query.AllBalances:output_type -> lbm.collection.v1.QueryAllBalancesResponse + 5, // 26: lbm.collection.v1.Query.NFTSupply:output_type -> lbm.collection.v1.QueryNFTSupplyResponse + 7, // 27: lbm.collection.v1.Query.NFTMinted:output_type -> lbm.collection.v1.QueryNFTMintedResponse + 9, // 28: lbm.collection.v1.Query.NFTBurnt:output_type -> lbm.collection.v1.QueryNFTBurntResponse + 11, // 29: lbm.collection.v1.Query.Contract:output_type -> lbm.collection.v1.QueryContractResponse + 13, // 30: lbm.collection.v1.Query.TokenClassTypeName:output_type -> lbm.collection.v1.QueryTokenClassTypeNameResponse + 15, // 31: lbm.collection.v1.Query.TokenType:output_type -> lbm.collection.v1.QueryTokenTypeResponse + 17, // 32: lbm.collection.v1.Query.Token:output_type -> lbm.collection.v1.QueryTokenResponse + 19, // 33: lbm.collection.v1.Query.GranteeGrants:output_type -> lbm.collection.v1.QueryGranteeGrantsResponse + 21, // 34: lbm.collection.v1.Query.IsOperatorFor:output_type -> lbm.collection.v1.QueryIsOperatorForResponse + 23, // 35: lbm.collection.v1.Query.HoldersByOperator:output_type -> lbm.collection.v1.QueryHoldersByOperatorResponse + 24, // [24:36] is the sub-list for method output_type + 12, // [12:24] 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 @@ -16246,78 +13209,6 @@ func file_lbm_collection_v1_query_proto_init() { } } file_lbm_collection_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryFTSupplyRequest); 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[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryFTSupplyResponse); 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[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryFTMintedRequest); 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[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryFTMintedResponse); 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[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryFTBurntRequest); 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[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryFTBurntResponse); 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[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryNFTSupplyRequest); i { case 0: return &v.state @@ -16329,7 +13220,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryNFTSupplyResponse); i { case 0: return &v.state @@ -16341,7 +13232,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryNFTMintedRequest); i { case 0: return &v.state @@ -16353,7 +13244,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryNFTMintedResponse); i { case 0: return &v.state @@ -16365,7 +13256,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryNFTBurntRequest); i { case 0: return &v.state @@ -16377,7 +13268,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryNFTBurntResponse); i { case 0: return &v.state @@ -16389,7 +13280,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryContractRequest); i { case 0: return &v.state @@ -16401,7 +13292,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryContractResponse); i { case 0: return &v.state @@ -16413,7 +13304,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTokenClassTypeNameRequest); i { case 0: return &v.state @@ -16425,7 +13316,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTokenClassTypeNameResponse); i { case 0: return &v.state @@ -16437,7 +13328,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTokenTypeRequest); i { case 0: return &v.state @@ -16449,7 +13340,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTokenTypeResponse); i { case 0: return &v.state @@ -16461,7 +13352,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTokenRequest); i { case 0: return &v.state @@ -16473,7 +13364,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTokenResponse); i { case 0: return &v.state @@ -16485,7 +13376,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGranteeGrantsRequest); i { case 0: return &v.state @@ -16497,7 +13388,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGranteeGrantsResponse); i { case 0: return &v.state @@ -16509,7 +13400,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsOperatorForRequest); i { case 0: return &v.state @@ -16521,7 +13412,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsOperatorForResponse); i { case 0: return &v.state @@ -16533,7 +13424,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryHoldersByOperatorRequest); i { case 0: return &v.state @@ -16545,7 +13436,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryHoldersByOperatorResponse); i { case 0: return &v.state @@ -16564,7 +13455,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: 30, + NumMessages: 24, 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 c112237656..7042cf3630 100644 --- a/api/lbm/collection/v1/query_grpc.pb.go +++ b/api/lbm/collection/v1/query_grpc.pb.go @@ -21,9 +21,6 @@ const _ = grpc.SupportPackageIsVersion7 const ( Query_Balance_FullMethodName = "/lbm.collection.v1.Query/Balance" Query_AllBalances_FullMethodName = "/lbm.collection.v1.Query/AllBalances" - Query_FTSupply_FullMethodName = "/lbm.collection.v1.Query/FTSupply" - Query_FTMinted_FullMethodName = "/lbm.collection.v1.Query/FTMinted" - Query_FTBurnt_FullMethodName = "/lbm.collection.v1.Query/FTBurnt" Query_NFTSupply_FullMethodName = "/lbm.collection.v1.Query/NFTSupply" Query_NFTMinted_FullMethodName = "/lbm.collection.v1.Query/NFTMinted" Query_NFTBurnt_FullMethodName = "/lbm.collection.v1.Query/NFTBurnt" @@ -44,12 +41,6 @@ type QueryClient interface { 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. @@ -100,33 +91,6 @@ func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesReque return out, nil } -func (c *queryClient) FTSupply(ctx context.Context, in *QueryFTSupplyRequest, opts ...grpc.CallOption) (*QueryFTSupplyResponse, error) { - out := new(QueryFTSupplyResponse) - err := c.cc.Invoke(ctx, Query_FTSupply_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) FTMinted(ctx context.Context, in *QueryFTMintedRequest, opts ...grpc.CallOption) (*QueryFTMintedResponse, error) { - out := new(QueryFTMintedResponse) - err := c.cc.Invoke(ctx, Query_FTMinted_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) FTBurnt(ctx context.Context, in *QueryFTBurntRequest, opts ...grpc.CallOption) (*QueryFTBurntResponse, error) { - out := new(QueryFTBurntResponse) - err := c.cc.Invoke(ctx, Query_FTBurnt_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error) { out := new(QueryNFTSupplyResponse) err := c.cc.Invoke(ctx, Query_NFTSupply_FullMethodName, in, out, opts...) @@ -225,12 +189,6 @@ type QueryServer interface { 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. @@ -266,15 +224,6 @@ func (UnimplementedQueryServer) Balance(context.Context, *QueryBalanceRequest) ( func (UnimplementedQueryServer) AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AllBalances not implemented") } -func (UnimplementedQueryServer) FTSupply(context.Context, *QueryFTSupplyRequest) (*QueryFTSupplyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FTSupply not implemented") -} -func (UnimplementedQueryServer) FTMinted(context.Context, *QueryFTMintedRequest) (*QueryFTMintedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FTMinted not implemented") -} -func (UnimplementedQueryServer) FTBurnt(context.Context, *QueryFTBurntRequest) (*QueryFTBurntResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FTBurnt not implemented") -} func (UnimplementedQueryServer) NFTSupply(context.Context, *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NFTSupply not implemented") } @@ -354,60 +303,6 @@ func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(i 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: Query_FTSupply_FullMethodName, - } - 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 { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).FTMinted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_FTMinted_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).FTMinted(ctx, req.(*QueryFTMintedRequest)) - } - 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) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).FTBurnt(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_FTBurnt_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).FTBurnt(ctx, req.(*QueryFTBurntRequest)) - } - 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) if err := dec(in); err != nil { @@ -603,18 +498,6 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "AllBalances", Handler: _Query_AllBalances_Handler, }, - { - MethodName: "FTSupply", - Handler: _Query_FTSupply_Handler, - }, - { - MethodName: "FTMinted", - Handler: _Query_FTMinted_Handler, - }, - { - MethodName: "FTBurnt", - Handler: _Query_FTBurnt_Handler, - }, { MethodName: "NFTSupply", Handler: _Query_NFTSupply_Handler, diff --git a/api/lbm/collection/v1/tx.pulsar.go b/api/lbm/collection/v1/tx.pulsar.go index d3fd1c1a40..149680e56b 100644 --- a/api/lbm/collection/v1/tx.pulsar.go +++ b/api/lbm/collection/v1/tx.pulsar.go @@ -3,7 +3,6 @@ package collectionv1 import ( fmt "fmt" - _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" @@ -16,83 +15,78 @@ import ( sync "sync" ) -var _ protoreflect.List = (*_MsgSendFT_4_list)(nil) +var _ protoreflect.List = (*_MsgSendNFT_4_list)(nil) -type _MsgSendFT_4_list struct { - list *[]*Coin +type _MsgSendNFT_4_list struct { + list *[]string } -func (x *_MsgSendFT_4_list) Len() int { +func (x *_MsgSendNFT_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_MsgSendFT_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +func (x *_MsgSendNFT_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) } -func (x *_MsgSendFT_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) +func (x *_MsgSendNFT_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_MsgSendFT_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) +func (x *_MsgSendNFT_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_MsgSendFT_4_list) AppendMutable() protoreflect.Value { - v := new(Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_MsgSendNFT_4_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgSendNFT at list field TokenIds as it is not of Message kind")) } -func (x *_MsgSendFT_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } +func (x *_MsgSendNFT_4_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_MsgSendFT_4_list) NewElement() protoreflect.Value { - v := new(Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_MsgSendNFT_4_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) } -func (x *_MsgSendFT_4_list) IsValid() bool { +func (x *_MsgSendNFT_4_list) IsValid() bool { return x.list != nil } var ( - md_MsgSendFT protoreflect.MessageDescriptor - fd_MsgSendFT_contract_id protoreflect.FieldDescriptor - fd_MsgSendFT_from protoreflect.FieldDescriptor - fd_MsgSendFT_to protoreflect.FieldDescriptor - fd_MsgSendFT_amount protoreflect.FieldDescriptor + md_MsgSendNFT protoreflect.MessageDescriptor + fd_MsgSendNFT_contract_id protoreflect.FieldDescriptor + fd_MsgSendNFT_from protoreflect.FieldDescriptor + fd_MsgSendNFT_to protoreflect.FieldDescriptor + fd_MsgSendNFT_token_ids protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgSendFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgSendFT") - fd_MsgSendFT_contract_id = md_MsgSendFT.Fields().ByName("contract_id") - fd_MsgSendFT_from = md_MsgSendFT.Fields().ByName("from") - fd_MsgSendFT_to = md_MsgSendFT.Fields().ByName("to") - fd_MsgSendFT_amount = md_MsgSendFT.Fields().ByName("amount") + md_MsgSendNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgSendNFT") + fd_MsgSendNFT_contract_id = md_MsgSendNFT.Fields().ByName("contract_id") + fd_MsgSendNFT_from = md_MsgSendNFT.Fields().ByName("from") + fd_MsgSendNFT_to = md_MsgSendNFT.Fields().ByName("to") + fd_MsgSendNFT_token_ids = md_MsgSendNFT.Fields().ByName("token_ids") } -var _ protoreflect.Message = (*fastReflection_MsgSendFT)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSendNFT)(nil) -type fastReflection_MsgSendFT MsgSendFT +type fastReflection_MsgSendNFT MsgSendNFT -func (x *MsgSendFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSendFT)(x) +func (x *MsgSendNFT) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSendNFT)(x) } -func (x *MsgSendFT) slowProtoReflect() protoreflect.Message { +func (x *MsgSendNFT) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -104,43 +98,43 @@ func (x *MsgSendFT) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgSendFT_messageType fastReflection_MsgSendFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgSendFT_messageType{} +var _fastReflection_MsgSendNFT_messageType fastReflection_MsgSendNFT_messageType +var _ protoreflect.MessageType = fastReflection_MsgSendNFT_messageType{} -type fastReflection_MsgSendFT_messageType struct{} +type fastReflection_MsgSendNFT_messageType struct{} -func (x fastReflection_MsgSendFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSendFT)(nil) +func (x fastReflection_MsgSendNFT_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSendNFT)(nil) } -func (x fastReflection_MsgSendFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSendFT) +func (x fastReflection_MsgSendNFT_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSendNFT) } -func (x fastReflection_MsgSendFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendFT +func (x fastReflection_MsgSendNFT_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendNFT } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSendFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendFT +func (x *fastReflection_MsgSendNFT) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendNFT } // 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_MsgSendFT) Type() protoreflect.MessageType { - return _fastReflection_MsgSendFT_messageType +func (x *fastReflection_MsgSendNFT) Type() protoreflect.MessageType { + return _fastReflection_MsgSendNFT_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSendFT) New() protoreflect.Message { - return new(fastReflection_MsgSendFT) +func (x *fastReflection_MsgSendNFT) New() protoreflect.Message { + return new(fastReflection_MsgSendNFT) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSendFT) Interface() protoreflect.ProtoMessage { - return (*MsgSendFT)(x) +func (x *fastReflection_MsgSendNFT) Interface() protoreflect.ProtoMessage { + return (*MsgSendNFT)(x) } // Range iterates over every populated field in an undefined order, @@ -148,28 +142,28 @@ func (x *fastReflection_MsgSendFT) 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_MsgSendFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSendNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgSendFT_contract_id, value) { + if !f(fd_MsgSendNFT_contract_id, value) { return } } if x.From != "" { value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgSendFT_from, value) { + if !f(fd_MsgSendNFT_from, value) { return } } if x.To != "" { value := protoreflect.ValueOfString(x.To) - if !f(fd_MsgSendFT_to, value) { + if !f(fd_MsgSendNFT_to, value) { return } } - if len(x.Amount) != 0 { - value := protoreflect.ValueOfList(&_MsgSendFT_4_list{list: &x.Amount}) - if !f(fd_MsgSendFT_amount, value) { + if len(x.TokenIds) != 0 { + value := protoreflect.ValueOfList(&_MsgSendNFT_4_list{list: &x.TokenIds}) + if !f(fd_MsgSendNFT_token_ids, value) { return } } @@ -186,21 +180,21 @@ func (x *fastReflection_MsgSendFT) Range(f func(protoreflect.FieldDescriptor, pr // 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_MsgSendFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSendNFT) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgSendFT.contract_id": + case "lbm.collection.v1.MsgSendNFT.contract_id": return x.ContractId != "" - case "lbm.collection.v1.MsgSendFT.from": + case "lbm.collection.v1.MsgSendNFT.from": return x.From != "" - case "lbm.collection.v1.MsgSendFT.to": + case "lbm.collection.v1.MsgSendNFT.to": return x.To != "" - case "lbm.collection.v1.MsgSendFT.amount": - return len(x.Amount) != 0 + case "lbm.collection.v1.MsgSendNFT.token_ids": + return len(x.TokenIds) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT does not contain field %s", fd.FullName())) } } @@ -210,21 +204,21 @@ func (x *fastReflection_MsgSendFT) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSendNFT) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgSendFT.contract_id": + case "lbm.collection.v1.MsgSendNFT.contract_id": x.ContractId = "" - case "lbm.collection.v1.MsgSendFT.from": + case "lbm.collection.v1.MsgSendNFT.from": x.From = "" - case "lbm.collection.v1.MsgSendFT.to": + case "lbm.collection.v1.MsgSendNFT.to": x.To = "" - case "lbm.collection.v1.MsgSendFT.amount": - x.Amount = nil + case "lbm.collection.v1.MsgSendNFT.token_ids": + x.TokenIds = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT does not contain field %s", fd.FullName())) } } @@ -234,28 +228,28 @@ func (x *fastReflection_MsgSendFT) 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_MsgSendFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSendNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgSendFT.contract_id": + case "lbm.collection.v1.MsgSendNFT.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgSendFT.from": + case "lbm.collection.v1.MsgSendNFT.from": value := x.From return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgSendFT.to": + case "lbm.collection.v1.MsgSendNFT.to": value := x.To return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgSendFT.amount": - if len(x.Amount) == 0 { - return protoreflect.ValueOfList(&_MsgSendFT_4_list{}) + case "lbm.collection.v1.MsgSendNFT.token_ids": + if len(x.TokenIds) == 0 { + return protoreflect.ValueOfList(&_MsgSendNFT_4_list{}) } - listValue := &_MsgSendFT_4_list{list: &x.Amount} + listValue := &_MsgSendNFT_4_list{list: &x.TokenIds} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT does not contain field %s", descriptor.FullName())) } } @@ -269,23 +263,23 @@ func (x *fastReflection_MsgSendFT) Get(descriptor protoreflect.FieldDescriptor) // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSendNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgSendFT.contract_id": + case "lbm.collection.v1.MsgSendNFT.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgSendFT.from": + case "lbm.collection.v1.MsgSendNFT.from": x.From = value.Interface().(string) - case "lbm.collection.v1.MsgSendFT.to": + case "lbm.collection.v1.MsgSendNFT.to": x.To = value.Interface().(string) - case "lbm.collection.v1.MsgSendFT.amount": + case "lbm.collection.v1.MsgSendNFT.token_ids": lv := value.List() - clv := lv.(*_MsgSendFT_4_list) - x.Amount = *clv.list + clv := lv.(*_MsgSendNFT_4_list) + x.TokenIds = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT does not contain field %s", fd.FullName())) } } @@ -299,57 +293,57 @@ func (x *fastReflection_MsgSendFT) Set(fd protoreflect.FieldDescriptor, value pr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSendNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgSendFT.amount": - if x.Amount == nil { - x.Amount = []*Coin{} + case "lbm.collection.v1.MsgSendNFT.token_ids": + if x.TokenIds == nil { + x.TokenIds = []string{} } - value := &_MsgSendFT_4_list{list: &x.Amount} + value := &_MsgSendNFT_4_list{list: &x.TokenIds} return protoreflect.ValueOfList(value) - case "lbm.collection.v1.MsgSendFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgSendFT is not mutable")) - case "lbm.collection.v1.MsgSendFT.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgSendFT is not mutable")) - case "lbm.collection.v1.MsgSendFT.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.MsgSendFT is not mutable")) + case "lbm.collection.v1.MsgSendNFT.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgSendNFT is not mutable")) + case "lbm.collection.v1.MsgSendNFT.from": + panic(fmt.Errorf("field from of message lbm.collection.v1.MsgSendNFT is not mutable")) + case "lbm.collection.v1.MsgSendNFT.to": + panic(fmt.Errorf("field to of message lbm.collection.v1.MsgSendNFT is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT 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_MsgSendFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSendNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgSendFT.contract_id": + case "lbm.collection.v1.MsgSendNFT.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgSendFT.from": + case "lbm.collection.v1.MsgSendNFT.from": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgSendFT.to": + case "lbm.collection.v1.MsgSendNFT.to": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgSendFT.amount": - list := []*Coin{} - return protoreflect.ValueOfList(&_MsgSendFT_4_list{list: &list}) + case "lbm.collection.v1.MsgSendNFT.token_ids": + list := []string{} + return protoreflect.ValueOfList(&_MsgSendNFT_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT 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_MsgSendFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSendNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgSendFT", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgSendNFT", d.FullName())) } panic("unreachable") } @@ -357,7 +351,7 @@ func (x *fastReflection_MsgSendFT) WhichOneof(d protoreflect.OneofDescriptor) pr // 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_MsgSendFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSendNFT) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -368,7 +362,7 @@ func (x *fastReflection_MsgSendFT) 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_MsgSendFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSendNFT) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -380,7 +374,7 @@ func (x *fastReflection_MsgSendFT) SetUnknown(fields protoreflect.RawFields) { // 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_MsgSendFT) IsValid() bool { +func (x *fastReflection_MsgSendNFT) IsValid() bool { return x != nil } @@ -390,9 +384,9 @@ func (x *fastReflection_MsgSendFT) 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_MsgSendFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSendNFT) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSendFT) + x := input.Message.Interface().(*MsgSendNFT) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -416,9 +410,9 @@ func (x *fastReflection_MsgSendFT) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Amount) > 0 { - for _, e := range x.Amount { - l = options.Size(e) + if len(x.TokenIds) > 0 { + for _, s := range x.TokenIds { + l = len(s) n += 1 + l + runtime.Sov(uint64(l)) } } @@ -432,7 +426,7 @@ func (x *fastReflection_MsgSendFT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSendFT) + x := input.Message.Interface().(*MsgSendNFT) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -451,18 +445,11 @@ func (x *fastReflection_MsgSendFT) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Amount[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.TokenIds) > 0 { + for iNdEx := len(x.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.TokenIds[iNdEx]) + copy(dAtA[i:], x.TokenIds[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenIds[iNdEx]))) i-- dAtA[i] = 0x22 } @@ -499,7 +486,7 @@ func (x *fastReflection_MsgSendFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSendFT) + x := input.Message.Interface().(*MsgSendNFT) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -531,10 +518,10 @@ func (x *fastReflection_MsgSendFT) 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: MsgSendFT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendFT: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -635,9 +622,9 @@ func (x *fastReflection_MsgSendFT) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenIds", 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 @@ -647,25 +634,23 @@ func (x *fastReflection_MsgSendFT) ProtoMethods() *protoiface.Methods { } 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + 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.Amount = append(x.Amount, &Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.TokenIds = append(x.TokenIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -703,23 +688,23 @@ func (x *fastReflection_MsgSendFT) ProtoMethods() *protoiface.Methods { } var ( - md_MsgSendFTResponse protoreflect.MessageDescriptor + md_MsgSendNFTResponse protoreflect.MessageDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgSendFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgSendFTResponse") + md_MsgSendNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgSendNFTResponse") } -var _ protoreflect.Message = (*fastReflection_MsgSendFTResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSendNFTResponse)(nil) -type fastReflection_MsgSendFTResponse MsgSendFTResponse +type fastReflection_MsgSendNFTResponse MsgSendNFTResponse -func (x *MsgSendFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSendFTResponse)(x) +func (x *MsgSendNFTResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSendNFTResponse)(x) } -func (x *MsgSendFTResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgSendNFTResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -731,43 +716,43 @@ func (x *MsgSendFTResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgSendFTResponse_messageType fastReflection_MsgSendFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSendFTResponse_messageType{} +var _fastReflection_MsgSendNFTResponse_messageType fastReflection_MsgSendNFTResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSendNFTResponse_messageType{} -type fastReflection_MsgSendFTResponse_messageType struct{} +type fastReflection_MsgSendNFTResponse_messageType struct{} -func (x fastReflection_MsgSendFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSendFTResponse)(nil) +func (x fastReflection_MsgSendNFTResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSendNFTResponse)(nil) } -func (x fastReflection_MsgSendFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSendFTResponse) +func (x fastReflection_MsgSendNFTResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSendNFTResponse) } -func (x fastReflection_MsgSendFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendFTResponse +func (x fastReflection_MsgSendNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendNFTResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSendFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendFTResponse +func (x *fastReflection_MsgSendNFTResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendNFTResponse } // 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_MsgSendFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSendFTResponse_messageType +func (x *fastReflection_MsgSendNFTResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSendNFTResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSendFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgSendFTResponse) +func (x *fastReflection_MsgSendNFTResponse) New() protoreflect.Message { + return new(fastReflection_MsgSendNFTResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSendFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSendFTResponse)(x) +func (x *fastReflection_MsgSendNFTResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSendNFTResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -775,7 +760,7 @@ func (x *fastReflection_MsgSendFTResponse) 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_MsgSendFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSendNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -789,13 +774,13 @@ func (x *fastReflection_MsgSendFTResponse) 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_MsgSendFTResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSendNFTResponse) 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.MsgSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse does not contain field %s", fd.FullName())) } } @@ -805,13 +790,13 @@ func (x *fastReflection_MsgSendFTResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendFTResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSendNFTResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse does not contain field %s", fd.FullName())) } } @@ -821,13 +806,13 @@ func (x *fastReflection_MsgSendFTResponse) 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_MsgSendFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSendNFTResponse) 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.MsgSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFTResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse does not contain field %s", descriptor.FullName())) } } @@ -841,13 +826,13 @@ func (x *fastReflection_MsgSendFTResponse) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSendNFTResponse) 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.MsgSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse does not contain field %s", fd.FullName())) } } @@ -861,36 +846,36 @@ func (x *fastReflection_MsgSendFTResponse) 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_MsgSendFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSendNFTResponse) 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.MsgSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse 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_MsgSendFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSendNFTResponse) 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.MsgSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse 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_MsgSendFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSendNFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgSendFTResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgSendNFTResponse", d.FullName())) } panic("unreachable") } @@ -898,7 +883,7 @@ func (x *fastReflection_MsgSendFTResponse) 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_MsgSendFTResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSendNFTResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -909,7 +894,7 @@ func (x *fastReflection_MsgSendFTResponse) 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_MsgSendFTResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSendNFTResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -921,7 +906,7 @@ func (x *fastReflection_MsgSendFTResponse) 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_MsgSendFTResponse) IsValid() bool { +func (x *fastReflection_MsgSendNFTResponse) IsValid() bool { return x != nil } @@ -931,9 +916,9 @@ func (x *fastReflection_MsgSendFTResponse) 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_MsgSendFTResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSendNFTResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSendFTResponse) + x := input.Message.Interface().(*MsgSendNFTResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -955,7 +940,7 @@ func (x *fastReflection_MsgSendFTResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSendFTResponse) + x := input.Message.Interface().(*MsgSendNFTResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -985,7 +970,7 @@ func (x *fastReflection_MsgSendFTResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSendFTResponse) + x := input.Message.Interface().(*MsgSendNFTResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1017,10 +1002,10 @@ func (x *fastReflection_MsgSendFTResponse) 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: MsgSendFTResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendNFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -1058,85 +1043,80 @@ func (x *fastReflection_MsgSendFTResponse) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_MsgOperatorSendFT_5_list)(nil) +var _ protoreflect.List = (*_MsgOperatorSendNFT_5_list)(nil) -type _MsgOperatorSendFT_5_list struct { - list *[]*Coin +type _MsgOperatorSendNFT_5_list struct { + list *[]string } -func (x *_MsgOperatorSendFT_5_list) Len() int { +func (x *_MsgOperatorSendNFT_5_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_MsgOperatorSendFT_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +func (x *_MsgOperatorSendNFT_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) } -func (x *_MsgOperatorSendFT_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) +func (x *_MsgOperatorSendNFT_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_MsgOperatorSendFT_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) +func (x *_MsgOperatorSendNFT_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_MsgOperatorSendFT_5_list) AppendMutable() protoreflect.Value { - v := new(Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_MsgOperatorSendNFT_5_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgOperatorSendNFT at list field TokenIds as it is not of Message kind")) } -func (x *_MsgOperatorSendFT_5_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } +func (x *_MsgOperatorSendNFT_5_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_MsgOperatorSendFT_5_list) NewElement() protoreflect.Value { - v := new(Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_MsgOperatorSendNFT_5_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) } -func (x *_MsgOperatorSendFT_5_list) IsValid() bool { +func (x *_MsgOperatorSendNFT_5_list) IsValid() bool { return x.list != nil } var ( - md_MsgOperatorSendFT protoreflect.MessageDescriptor - fd_MsgOperatorSendFT_contract_id protoreflect.FieldDescriptor - fd_MsgOperatorSendFT_operator protoreflect.FieldDescriptor - fd_MsgOperatorSendFT_from protoreflect.FieldDescriptor - fd_MsgOperatorSendFT_to protoreflect.FieldDescriptor - fd_MsgOperatorSendFT_amount protoreflect.FieldDescriptor + md_MsgOperatorSendNFT protoreflect.MessageDescriptor + fd_MsgOperatorSendNFT_contract_id protoreflect.FieldDescriptor + fd_MsgOperatorSendNFT_operator protoreflect.FieldDescriptor + fd_MsgOperatorSendNFT_from protoreflect.FieldDescriptor + fd_MsgOperatorSendNFT_to protoreflect.FieldDescriptor + fd_MsgOperatorSendNFT_token_ids protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorSendFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorSendFT") - fd_MsgOperatorSendFT_contract_id = md_MsgOperatorSendFT.Fields().ByName("contract_id") - fd_MsgOperatorSendFT_operator = md_MsgOperatorSendFT.Fields().ByName("operator") - fd_MsgOperatorSendFT_from = md_MsgOperatorSendFT.Fields().ByName("from") - fd_MsgOperatorSendFT_to = md_MsgOperatorSendFT.Fields().ByName("to") - fd_MsgOperatorSendFT_amount = md_MsgOperatorSendFT.Fields().ByName("amount") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorSendFT)(nil) + md_MsgOperatorSendNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorSendNFT") + fd_MsgOperatorSendNFT_contract_id = md_MsgOperatorSendNFT.Fields().ByName("contract_id") + fd_MsgOperatorSendNFT_operator = md_MsgOperatorSendNFT.Fields().ByName("operator") + fd_MsgOperatorSendNFT_from = md_MsgOperatorSendNFT.Fields().ByName("from") + fd_MsgOperatorSendNFT_to = md_MsgOperatorSendNFT.Fields().ByName("to") + fd_MsgOperatorSendNFT_token_ids = md_MsgOperatorSendNFT.Fields().ByName("token_ids") +} + +var _ protoreflect.Message = (*fastReflection_MsgOperatorSendNFT)(nil) -type fastReflection_MsgOperatorSendFT MsgOperatorSendFT +type fastReflection_MsgOperatorSendNFT MsgOperatorSendNFT -func (x *MsgOperatorSendFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorSendFT)(x) +func (x *MsgOperatorSendNFT) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgOperatorSendNFT)(x) } -func (x *MsgOperatorSendFT) slowProtoReflect() protoreflect.Message { +func (x *MsgOperatorSendNFT) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1148,43 +1128,43 @@ func (x *MsgOperatorSendFT) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgOperatorSendFT_messageType fastReflection_MsgOperatorSendFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorSendFT_messageType{} +var _fastReflection_MsgOperatorSendNFT_messageType fastReflection_MsgOperatorSendNFT_messageType +var _ protoreflect.MessageType = fastReflection_MsgOperatorSendNFT_messageType{} -type fastReflection_MsgOperatorSendFT_messageType struct{} +type fastReflection_MsgOperatorSendNFT_messageType struct{} -func (x fastReflection_MsgOperatorSendFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorSendFT)(nil) +func (x fastReflection_MsgOperatorSendNFT_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgOperatorSendNFT)(nil) } -func (x fastReflection_MsgOperatorSendFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorSendFT) +func (x fastReflection_MsgOperatorSendNFT_messageType) New() protoreflect.Message { + return new(fastReflection_MsgOperatorSendNFT) } -func (x fastReflection_MsgOperatorSendFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorSendFT +func (x fastReflection_MsgOperatorSendNFT_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOperatorSendNFT } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgOperatorSendFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorSendFT +func (x *fastReflection_MsgOperatorSendNFT) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOperatorSendNFT } // 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_MsgOperatorSendFT) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorSendFT_messageType +func (x *fastReflection_MsgOperatorSendNFT) Type() protoreflect.MessageType { + return _fastReflection_MsgOperatorSendNFT_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorSendFT) New() protoreflect.Message { - return new(fastReflection_MsgOperatorSendFT) +func (x *fastReflection_MsgOperatorSendNFT) New() protoreflect.Message { + return new(fastReflection_MsgOperatorSendNFT) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorSendFT) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorSendFT)(x) +func (x *fastReflection_MsgOperatorSendNFT) Interface() protoreflect.ProtoMessage { + return (*MsgOperatorSendNFT)(x) } // Range iterates over every populated field in an undefined order, @@ -1192,34 +1172,34 @@ func (x *fastReflection_MsgOperatorSendFT) 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_MsgOperatorSendFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgOperatorSendNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgOperatorSendFT_contract_id, value) { + if !f(fd_MsgOperatorSendNFT_contract_id, value) { return } } if x.Operator != "" { value := protoreflect.ValueOfString(x.Operator) - if !f(fd_MsgOperatorSendFT_operator, value) { + if !f(fd_MsgOperatorSendNFT_operator, value) { return } } if x.From != "" { value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgOperatorSendFT_from, value) { + if !f(fd_MsgOperatorSendNFT_from, value) { return } } if x.To != "" { value := protoreflect.ValueOfString(x.To) - if !f(fd_MsgOperatorSendFT_to, value) { + if !f(fd_MsgOperatorSendNFT_to, value) { return } } - if len(x.Amount) != 0 { - value := protoreflect.ValueOfList(&_MsgOperatorSendFT_5_list{list: &x.Amount}) - if !f(fd_MsgOperatorSendFT_amount, value) { + if len(x.TokenIds) != 0 { + value := protoreflect.ValueOfList(&_MsgOperatorSendNFT_5_list{list: &x.TokenIds}) + if !f(fd_MsgOperatorSendNFT_token_ids, value) { return } } @@ -1236,23 +1216,23 @@ func (x *fastReflection_MsgOperatorSendFT) 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_MsgOperatorSendFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgOperatorSendNFT) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorSendFT.contract_id": + case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": return x.ContractId != "" - case "lbm.collection.v1.MsgOperatorSendFT.operator": + case "lbm.collection.v1.MsgOperatorSendNFT.operator": return x.Operator != "" - case "lbm.collection.v1.MsgOperatorSendFT.from": + case "lbm.collection.v1.MsgOperatorSendNFT.from": return x.From != "" - case "lbm.collection.v1.MsgOperatorSendFT.to": + case "lbm.collection.v1.MsgOperatorSendNFT.to": return x.To != "" - case "lbm.collection.v1.MsgOperatorSendFT.amount": - return len(x.Amount) != 0 + case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": + return len(x.TokenIds) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT does not contain field %s", fd.FullName())) } } @@ -1262,23 +1242,23 @@ func (x *fastReflection_MsgOperatorSendFT) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgOperatorSendNFT) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorSendFT.contract_id": + case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": x.ContractId = "" - case "lbm.collection.v1.MsgOperatorSendFT.operator": + case "lbm.collection.v1.MsgOperatorSendNFT.operator": x.Operator = "" - case "lbm.collection.v1.MsgOperatorSendFT.from": + case "lbm.collection.v1.MsgOperatorSendNFT.from": x.From = "" - case "lbm.collection.v1.MsgOperatorSendFT.to": + case "lbm.collection.v1.MsgOperatorSendNFT.to": x.To = "" - case "lbm.collection.v1.MsgOperatorSendFT.amount": - x.Amount = nil + case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": + x.TokenIds = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT does not contain field %s", fd.FullName())) } } @@ -1288,31 +1268,31 @@ func (x *fastReflection_MsgOperatorSendFT) 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_MsgOperatorSendFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOperatorSendNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgOperatorSendFT.contract_id": + case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorSendFT.operator": + case "lbm.collection.v1.MsgOperatorSendNFT.operator": value := x.Operator return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorSendFT.from": + case "lbm.collection.v1.MsgOperatorSendNFT.from": value := x.From return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorSendFT.to": + case "lbm.collection.v1.MsgOperatorSendNFT.to": value := x.To return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorSendFT.amount": - if len(x.Amount) == 0 { - return protoreflect.ValueOfList(&_MsgOperatorSendFT_5_list{}) + case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": + if len(x.TokenIds) == 0 { + return protoreflect.ValueOfList(&_MsgOperatorSendNFT_5_list{}) } - listValue := &_MsgOperatorSendFT_5_list{list: &x.Amount} + listValue := &_MsgOperatorSendNFT_5_list{list: &x.TokenIds} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT does not contain field %s", descriptor.FullName())) } } @@ -1326,25 +1306,25 @@ func (x *fastReflection_MsgOperatorSendFT) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgOperatorSendNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorSendFT.contract_id": + case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorSendFT.operator": + case "lbm.collection.v1.MsgOperatorSendNFT.operator": x.Operator = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorSendFT.from": + case "lbm.collection.v1.MsgOperatorSendNFT.from": x.From = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorSendFT.to": + case "lbm.collection.v1.MsgOperatorSendNFT.to": x.To = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorSendFT.amount": + case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": lv := value.List() - clv := lv.(*_MsgOperatorSendFT_5_list) - x.Amount = *clv.list + clv := lv.(*_MsgOperatorSendNFT_5_list) + x.TokenIds = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT does not contain field %s", fd.FullName())) } } @@ -1358,61 +1338,61 @@ func (x *fastReflection_MsgOperatorSendFT) 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_MsgOperatorSendFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOperatorSendNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorSendFT.amount": - if x.Amount == nil { - x.Amount = []*Coin{} + case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": + if x.TokenIds == nil { + x.TokenIds = []string{} } - value := &_MsgOperatorSendFT_5_list{list: &x.Amount} + value := &_MsgOperatorSendNFT_5_list{list: &x.TokenIds} return protoreflect.ValueOfList(value) - case "lbm.collection.v1.MsgOperatorSendFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgOperatorSendFT is not mutable")) - case "lbm.collection.v1.MsgOperatorSendFT.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgOperatorSendFT is not mutable")) - case "lbm.collection.v1.MsgOperatorSendFT.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgOperatorSendFT is not mutable")) - case "lbm.collection.v1.MsgOperatorSendFT.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.MsgOperatorSendFT is not mutable")) + case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgOperatorSendNFT is not mutable")) + case "lbm.collection.v1.MsgOperatorSendNFT.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgOperatorSendNFT is not mutable")) + case "lbm.collection.v1.MsgOperatorSendNFT.from": + panic(fmt.Errorf("field from of message lbm.collection.v1.MsgOperatorSendNFT is not mutable")) + case "lbm.collection.v1.MsgOperatorSendNFT.to": + panic(fmt.Errorf("field to of message lbm.collection.v1.MsgOperatorSendNFT is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT 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_MsgOperatorSendFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOperatorSendNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorSendFT.contract_id": + case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorSendFT.operator": + case "lbm.collection.v1.MsgOperatorSendNFT.operator": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorSendFT.from": + case "lbm.collection.v1.MsgOperatorSendNFT.from": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorSendFT.to": + case "lbm.collection.v1.MsgOperatorSendNFT.to": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorSendFT.amount": - list := []*Coin{} - return protoreflect.ValueOfList(&_MsgOperatorSendFT_5_list{list: &list}) + case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": + list := []string{} + return protoreflect.ValueOfList(&_MsgOperatorSendNFT_5_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT 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_MsgOperatorSendFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgOperatorSendNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorSendFT", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorSendNFT", d.FullName())) } panic("unreachable") } @@ -1420,7 +1400,7 @@ func (x *fastReflection_MsgOperatorSendFT) 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_MsgOperatorSendFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgOperatorSendNFT) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1431,7 +1411,7 @@ func (x *fastReflection_MsgOperatorSendFT) 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_MsgOperatorSendFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgOperatorSendNFT) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1443,7 +1423,7 @@ func (x *fastReflection_MsgOperatorSendFT) 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_MsgOperatorSendFT) IsValid() bool { +func (x *fastReflection_MsgOperatorSendNFT) IsValid() bool { return x != nil } @@ -1453,9 +1433,9 @@ func (x *fastReflection_MsgOperatorSendFT) 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_MsgOperatorSendFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgOperatorSendNFT) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorSendFT) + x := input.Message.Interface().(*MsgOperatorSendNFT) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1483,9 +1463,9 @@ func (x *fastReflection_MsgOperatorSendFT) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Amount) > 0 { - for _, e := range x.Amount { - l = options.Size(e) + if len(x.TokenIds) > 0 { + for _, s := range x.TokenIds { + l = len(s) n += 1 + l + runtime.Sov(uint64(l)) } } @@ -1499,7 +1479,7 @@ func (x *fastReflection_MsgOperatorSendFT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorSendFT) + x := input.Message.Interface().(*MsgOperatorSendNFT) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1518,18 +1498,11 @@ func (x *fastReflection_MsgOperatorSendFT) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Amount[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.TokenIds) > 0 { + for iNdEx := len(x.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.TokenIds[iNdEx]) + copy(dAtA[i:], x.TokenIds[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenIds[iNdEx]))) i-- dAtA[i] = 0x2a } @@ -1573,7 +1546,7 @@ func (x *fastReflection_MsgOperatorSendFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorSendFT) + x := input.Message.Interface().(*MsgOperatorSendNFT) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1605,10 +1578,10 @@ func (x *fastReflection_MsgOperatorSendFT) 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: MsgOperatorSendFT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorSendNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorSendFT: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorSendNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1741,9 +1714,9 @@ func (x *fastReflection_MsgOperatorSendFT) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenIds", 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 @@ -1753,25 +1726,23 @@ func (x *fastReflection_MsgOperatorSendFT) ProtoMethods() *protoiface.Methods { } 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + 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.Amount = append(x.Amount, &Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.TokenIds = append(x.TokenIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -1809,23 +1780,23 @@ func (x *fastReflection_MsgOperatorSendFT) ProtoMethods() *protoiface.Methods { } var ( - md_MsgOperatorSendFTResponse protoreflect.MessageDescriptor + md_MsgOperatorSendNFTResponse protoreflect.MessageDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorSendFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorSendFTResponse") + md_MsgOperatorSendNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorSendNFTResponse") } -var _ protoreflect.Message = (*fastReflection_MsgOperatorSendFTResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgOperatorSendNFTResponse)(nil) -type fastReflection_MsgOperatorSendFTResponse MsgOperatorSendFTResponse +type fastReflection_MsgOperatorSendNFTResponse MsgOperatorSendNFTResponse -func (x *MsgOperatorSendFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorSendFTResponse)(x) +func (x *MsgOperatorSendNFTResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgOperatorSendNFTResponse)(x) } -func (x *MsgOperatorSendFTResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgOperatorSendNFTResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1837,43 +1808,43 @@ func (x *MsgOperatorSendFTResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgOperatorSendFTResponse_messageType fastReflection_MsgOperatorSendFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorSendFTResponse_messageType{} +var _fastReflection_MsgOperatorSendNFTResponse_messageType fastReflection_MsgOperatorSendNFTResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgOperatorSendNFTResponse_messageType{} -type fastReflection_MsgOperatorSendFTResponse_messageType struct{} +type fastReflection_MsgOperatorSendNFTResponse_messageType struct{} -func (x fastReflection_MsgOperatorSendFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorSendFTResponse)(nil) +func (x fastReflection_MsgOperatorSendNFTResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgOperatorSendNFTResponse)(nil) } -func (x fastReflection_MsgOperatorSendFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorSendFTResponse) +func (x fastReflection_MsgOperatorSendNFTResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgOperatorSendNFTResponse) } -func (x fastReflection_MsgOperatorSendFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorSendFTResponse +func (x fastReflection_MsgOperatorSendNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOperatorSendNFTResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgOperatorSendFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorSendFTResponse +func (x *fastReflection_MsgOperatorSendNFTResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOperatorSendNFTResponse } // 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_MsgOperatorSendFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorSendFTResponse_messageType +func (x *fastReflection_MsgOperatorSendNFTResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgOperatorSendNFTResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorSendFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgOperatorSendFTResponse) +func (x *fastReflection_MsgOperatorSendNFTResponse) New() protoreflect.Message { + return new(fastReflection_MsgOperatorSendNFTResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorSendFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorSendFTResponse)(x) +func (x *fastReflection_MsgOperatorSendNFTResponse) Interface() protoreflect.ProtoMessage { + return (*MsgOperatorSendNFTResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -1881,7 +1852,7 @@ func (x *fastReflection_MsgOperatorSendFTResponse) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgOperatorSendFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgOperatorSendNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -1895,13 +1866,13 @@ func (x *fastReflection_MsgOperatorSendFTResponse) Range(f func(protoreflect.Fie // 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_MsgOperatorSendFTResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgOperatorSendNFTResponse) 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.MsgOperatorSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse does not contain field %s", fd.FullName())) } } @@ -1911,13 +1882,13 @@ func (x *fastReflection_MsgOperatorSendFTResponse) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendFTResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgOperatorSendNFTResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse does not contain field %s", fd.FullName())) } } @@ -1927,13 +1898,13 @@ func (x *fastReflection_MsgOperatorSendFTResponse) Clear(fd protoreflect.FieldDe // 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_MsgOperatorSendFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOperatorSendNFTResponse) 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.MsgOperatorSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFTResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse does not contain field %s", descriptor.FullName())) } } @@ -1947,13 +1918,13 @@ func (x *fastReflection_MsgOperatorSendFTResponse) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgOperatorSendNFTResponse) 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.MsgOperatorSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse does not contain field %s", fd.FullName())) } } @@ -1967,36 +1938,36 @@ func (x *fastReflection_MsgOperatorSendFTResponse) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOperatorSendNFTResponse) 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.MsgOperatorSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse 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_MsgOperatorSendFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOperatorSendNFTResponse) 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.MsgOperatorSendFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse 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_MsgOperatorSendFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgOperatorSendNFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorSendFTResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorSendNFTResponse", d.FullName())) } panic("unreachable") } @@ -2004,7 +1975,7 @@ func (x *fastReflection_MsgOperatorSendFTResponse) WhichOneof(d protoreflect.One // 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_MsgOperatorSendFTResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgOperatorSendNFTResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2015,7 +1986,7 @@ func (x *fastReflection_MsgOperatorSendFTResponse) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendFTResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgOperatorSendNFTResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2027,7 +1998,7 @@ func (x *fastReflection_MsgOperatorSendFTResponse) SetUnknown(fields protoreflec // 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_MsgOperatorSendFTResponse) IsValid() bool { +func (x *fastReflection_MsgOperatorSendNFTResponse) IsValid() bool { return x != nil } @@ -2037,9 +2008,9 @@ func (x *fastReflection_MsgOperatorSendFTResponse) 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_MsgOperatorSendFTResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgOperatorSendNFTResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorSendFTResponse) + x := input.Message.Interface().(*MsgOperatorSendNFTResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2061,7 +2032,7 @@ func (x *fastReflection_MsgOperatorSendFTResponse) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorSendFTResponse) + x := input.Message.Interface().(*MsgOperatorSendNFTResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2091,7 +2062,7 @@ func (x *fastReflection_MsgOperatorSendFTResponse) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorSendFTResponse) + x := input.Message.Interface().(*MsgOperatorSendNFTResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2123,10 +2094,10 @@ func (x *fastReflection_MsgOperatorSendFTResponse) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorSendFTResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorSendNFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorSendFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorSendNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -2164,126 +2135,78 @@ func (x *fastReflection_MsgOperatorSendFTResponse) ProtoMethods() *protoiface.Me } } -var _ protoreflect.List = (*_MsgSendNFT_4_list)(nil) +var ( + md_MsgAuthorizeOperator protoreflect.MessageDescriptor + fd_MsgAuthorizeOperator_contract_id protoreflect.FieldDescriptor + fd_MsgAuthorizeOperator_holder protoreflect.FieldDescriptor + fd_MsgAuthorizeOperator_operator protoreflect.FieldDescriptor +) -type _MsgSendNFT_4_list struct { - list *[]string +func init() { + file_lbm_collection_v1_tx_proto_init() + md_MsgAuthorizeOperator = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgAuthorizeOperator") + fd_MsgAuthorizeOperator_contract_id = md_MsgAuthorizeOperator.Fields().ByName("contract_id") + fd_MsgAuthorizeOperator_holder = md_MsgAuthorizeOperator.Fields().ByName("holder") + fd_MsgAuthorizeOperator_operator = md_MsgAuthorizeOperator.Fields().ByName("operator") } -func (x *_MsgSendNFT_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} +var _ protoreflect.Message = (*fastReflection_MsgAuthorizeOperator)(nil) -func (x *_MsgSendNFT_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} +type fastReflection_MsgAuthorizeOperator MsgAuthorizeOperator -func (x *_MsgSendNFT_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue +func (x *MsgAuthorizeOperator) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAuthorizeOperator)(x) } -func (x *_MsgSendNFT_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) +func (x *MsgAuthorizeOperator) slowProtoReflect() protoreflect.Message { + mi := &file_lbm_collection_v1_tx_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (x *_MsgSendNFT_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgSendNFT at list field TokenIds as it is not of Message kind")) -} +var _fastReflection_MsgAuthorizeOperator_messageType fastReflection_MsgAuthorizeOperator_messageType +var _ protoreflect.MessageType = fastReflection_MsgAuthorizeOperator_messageType{} -func (x *_MsgSendNFT_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} +type fastReflection_MsgAuthorizeOperator_messageType struct{} -func (x *_MsgSendNFT_4_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgSendNFT_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgSendNFT protoreflect.MessageDescriptor - fd_MsgSendNFT_contract_id protoreflect.FieldDescriptor - fd_MsgSendNFT_from protoreflect.FieldDescriptor - fd_MsgSendNFT_to protoreflect.FieldDescriptor - fd_MsgSendNFT_token_ids protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgSendNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgSendNFT") - fd_MsgSendNFT_contract_id = md_MsgSendNFT.Fields().ByName("contract_id") - fd_MsgSendNFT_from = md_MsgSendNFT.Fields().ByName("from") - fd_MsgSendNFT_to = md_MsgSendNFT.Fields().ByName("to") - fd_MsgSendNFT_token_ids = md_MsgSendNFT.Fields().ByName("token_ids") -} - -var _ protoreflect.Message = (*fastReflection_MsgSendNFT)(nil) - -type fastReflection_MsgSendNFT MsgSendNFT - -func (x *MsgSendNFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSendNFT)(x) -} - -func (x *MsgSendNFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgSendNFT_messageType fastReflection_MsgSendNFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgSendNFT_messageType{} - -type fastReflection_MsgSendNFT_messageType struct{} - -func (x fastReflection_MsgSendNFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSendNFT)(nil) +func (x fastReflection_MsgAuthorizeOperator_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAuthorizeOperator)(nil) } -func (x fastReflection_MsgSendNFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSendNFT) +func (x fastReflection_MsgAuthorizeOperator_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAuthorizeOperator) } -func (x fastReflection_MsgSendNFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendNFT +func (x fastReflection_MsgAuthorizeOperator_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAuthorizeOperator } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSendNFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendNFT +func (x *fastReflection_MsgAuthorizeOperator) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAuthorizeOperator } // 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_MsgSendNFT) Type() protoreflect.MessageType { - return _fastReflection_MsgSendNFT_messageType +func (x *fastReflection_MsgAuthorizeOperator) Type() protoreflect.MessageType { + return _fastReflection_MsgAuthorizeOperator_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSendNFT) New() protoreflect.Message { - return new(fastReflection_MsgSendNFT) +func (x *fastReflection_MsgAuthorizeOperator) New() protoreflect.Message { + return new(fastReflection_MsgAuthorizeOperator) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSendNFT) Interface() protoreflect.ProtoMessage { - return (*MsgSendNFT)(x) +func (x *fastReflection_MsgAuthorizeOperator) Interface() protoreflect.ProtoMessage { + return (*MsgAuthorizeOperator)(x) } // Range iterates over every populated field in an undefined order, @@ -2291,28 +2214,22 @@ func (x *fastReflection_MsgSendNFT) 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_MsgSendNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgAuthorizeOperator) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgSendNFT_contract_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgSendNFT_from, value) { + if !f(fd_MsgAuthorizeOperator_contract_id, value) { return } } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_MsgSendNFT_to, value) { + if x.Holder != "" { + value := protoreflect.ValueOfString(x.Holder) + if !f(fd_MsgAuthorizeOperator_holder, value) { return } } - if len(x.TokenIds) != 0 { - value := protoreflect.ValueOfList(&_MsgSendNFT_4_list{list: &x.TokenIds}) - if !f(fd_MsgSendNFT_token_ids, value) { + if x.Operator != "" { + value := protoreflect.ValueOfString(x.Operator) + if !f(fd_MsgAuthorizeOperator_operator, value) { return } } @@ -2329,21 +2246,19 @@ func (x *fastReflection_MsgSendNFT) Range(f func(protoreflect.FieldDescriptor, p // 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_MsgSendNFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgAuthorizeOperator) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgSendNFT.contract_id": + case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": return x.ContractId != "" - case "lbm.collection.v1.MsgSendNFT.from": - return x.From != "" - case "lbm.collection.v1.MsgSendNFT.to": - return x.To != "" - case "lbm.collection.v1.MsgSendNFT.token_ids": - return len(x.TokenIds) != 0 + case "lbm.collection.v1.MsgAuthorizeOperator.holder": + return x.Holder != "" + case "lbm.collection.v1.MsgAuthorizeOperator.operator": + return x.Operator != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator does not contain field %s", fd.FullName())) } } @@ -2353,21 +2268,19 @@ func (x *fastReflection_MsgSendNFT) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendNFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgAuthorizeOperator) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgSendNFT.contract_id": + case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": x.ContractId = "" - case "lbm.collection.v1.MsgSendNFT.from": - x.From = "" - case "lbm.collection.v1.MsgSendNFT.to": - x.To = "" - case "lbm.collection.v1.MsgSendNFT.token_ids": - x.TokenIds = nil + case "lbm.collection.v1.MsgAuthorizeOperator.holder": + x.Holder = "" + case "lbm.collection.v1.MsgAuthorizeOperator.operator": + x.Operator = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator does not contain field %s", fd.FullName())) } } @@ -2377,28 +2290,22 @@ func (x *fastReflection_MsgSendNFT) 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_MsgSendNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAuthorizeOperator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgSendNFT.contract_id": + case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgSendNFT.from": - value := x.From + case "lbm.collection.v1.MsgAuthorizeOperator.holder": + value := x.Holder return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgSendNFT.to": - value := x.To + case "lbm.collection.v1.MsgAuthorizeOperator.operator": + value := x.Operator return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgSendNFT.token_ids": - if len(x.TokenIds) == 0 { - return protoreflect.ValueOfList(&_MsgSendNFT_4_list{}) - } - listValue := &_MsgSendNFT_4_list{list: &x.TokenIds} - return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator does not contain field %s", descriptor.FullName())) } } @@ -2412,23 +2319,19 @@ func (x *fastReflection_MsgSendNFT) Get(descriptor protoreflect.FieldDescriptor) // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgAuthorizeOperator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgSendNFT.contract_id": + case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgSendNFT.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgSendNFT.to": - x.To = value.Interface().(string) - case "lbm.collection.v1.MsgSendNFT.token_ids": - lv := value.List() - clv := lv.(*_MsgSendNFT_4_list) - x.TokenIds = *clv.list + case "lbm.collection.v1.MsgAuthorizeOperator.holder": + x.Holder = value.Interface().(string) + case "lbm.collection.v1.MsgAuthorizeOperator.operator": + x.Operator = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator does not contain field %s", fd.FullName())) } } @@ -2442,57 +2345,48 @@ func (x *fastReflection_MsgSendNFT) Set(fd protoreflect.FieldDescriptor, value p // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAuthorizeOperator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgSendNFT.token_ids": - if x.TokenIds == nil { - x.TokenIds = []string{} - } - value := &_MsgSendNFT_4_list{list: &x.TokenIds} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.MsgSendNFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgSendNFT is not mutable")) - case "lbm.collection.v1.MsgSendNFT.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgSendNFT is not mutable")) - case "lbm.collection.v1.MsgSendNFT.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.MsgSendNFT is not mutable")) + case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgAuthorizeOperator is not mutable")) + case "lbm.collection.v1.MsgAuthorizeOperator.holder": + panic(fmt.Errorf("field holder of message lbm.collection.v1.MsgAuthorizeOperator is not mutable")) + case "lbm.collection.v1.MsgAuthorizeOperator.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgAuthorizeOperator is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator 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_MsgSendNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAuthorizeOperator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgSendNFT.contract_id": + case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgSendNFT.from": + case "lbm.collection.v1.MsgAuthorizeOperator.holder": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgSendNFT.to": + case "lbm.collection.v1.MsgAuthorizeOperator.operator": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgSendNFT.token_ids": - list := []string{} - return protoreflect.ValueOfList(&_MsgSendNFT_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator 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_MsgSendNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgAuthorizeOperator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgSendNFT", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgAuthorizeOperator", d.FullName())) } panic("unreachable") } @@ -2500,7 +2394,7 @@ func (x *fastReflection_MsgSendNFT) WhichOneof(d protoreflect.OneofDescriptor) p // 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_MsgSendNFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgAuthorizeOperator) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2511,7 +2405,7 @@ func (x *fastReflection_MsgSendNFT) 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_MsgSendNFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgAuthorizeOperator) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2523,7 +2417,7 @@ func (x *fastReflection_MsgSendNFT) SetUnknown(fields protoreflect.RawFields) { // 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_MsgSendNFT) IsValid() bool { +func (x *fastReflection_MsgAuthorizeOperator) IsValid() bool { return x != nil } @@ -2533,9 +2427,9 @@ func (x *fastReflection_MsgSendNFT) 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_MsgSendNFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgAuthorizeOperator) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSendNFT) + x := input.Message.Interface().(*MsgAuthorizeOperator) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2551,20 +2445,14 @@ func (x *fastReflection_MsgSendNFT) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.From) + l = len(x.Holder) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.To) + l = len(x.Operator) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.TokenIds) > 0 { - for _, s := range x.TokenIds { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2575,7 +2463,7 @@ func (x *fastReflection_MsgSendNFT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSendNFT) + x := input.Message.Interface().(*MsgAuthorizeOperator) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2594,26 +2482,17 @@ func (x *fastReflection_MsgSendNFT) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TokenIds) > 0 { - for iNdEx := len(x.TokenIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.TokenIds[iNdEx]) - copy(dAtA[i:], x.TokenIds[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenIds[iNdEx]))) - i-- - dAtA[i] = 0x22 - } + 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] = 0x1a } - 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] = 0x1a - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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] = 0x12 } @@ -2635,7 +2514,7 @@ func (x *fastReflection_MsgSendNFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSendNFT) + x := input.Message.Interface().(*MsgAuthorizeOperator) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2667,10 +2546,10 @@ func (x *fastReflection_MsgSendNFT) 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: MsgSendNFT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAuthorizeOperator: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendNFT: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAuthorizeOperator: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2707,7 +2586,7 @@ func (x *fastReflection_MsgSendNFT) 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 From", wireType) + 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 { @@ -2735,43 +2614,11 @@ func (x *fastReflection_MsgSendNFT) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.From = string(dAtA[iNdEx:postIndex]) + x.Holder = 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 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 - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenIds", 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 { @@ -2799,7 +2646,7 @@ func (x *fastReflection_MsgSendNFT) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TokenIds = append(x.TokenIds, string(dAtA[iNdEx:postIndex])) + x.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2837,23 +2684,23 @@ func (x *fastReflection_MsgSendNFT) ProtoMethods() *protoiface.Methods { } var ( - md_MsgSendNFTResponse protoreflect.MessageDescriptor + md_MsgAuthorizeOperatorResponse protoreflect.MessageDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgSendNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgSendNFTResponse") + md_MsgAuthorizeOperatorResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgAuthorizeOperatorResponse") } -var _ protoreflect.Message = (*fastReflection_MsgSendNFTResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgAuthorizeOperatorResponse)(nil) -type fastReflection_MsgSendNFTResponse MsgSendNFTResponse +type fastReflection_MsgAuthorizeOperatorResponse MsgAuthorizeOperatorResponse -func (x *MsgSendNFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSendNFTResponse)(x) +func (x *MsgAuthorizeOperatorResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAuthorizeOperatorResponse)(x) } -func (x *MsgSendNFTResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgAuthorizeOperatorResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2865,43 +2712,43 @@ func (x *MsgSendNFTResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgSendNFTResponse_messageType fastReflection_MsgSendNFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSendNFTResponse_messageType{} +var _fastReflection_MsgAuthorizeOperatorResponse_messageType fastReflection_MsgAuthorizeOperatorResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgAuthorizeOperatorResponse_messageType{} -type fastReflection_MsgSendNFTResponse_messageType struct{} +type fastReflection_MsgAuthorizeOperatorResponse_messageType struct{} -func (x fastReflection_MsgSendNFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSendNFTResponse)(nil) +func (x fastReflection_MsgAuthorizeOperatorResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAuthorizeOperatorResponse)(nil) } -func (x fastReflection_MsgSendNFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSendNFTResponse) +func (x fastReflection_MsgAuthorizeOperatorResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAuthorizeOperatorResponse) } -func (x fastReflection_MsgSendNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendNFTResponse +func (x fastReflection_MsgAuthorizeOperatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAuthorizeOperatorResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSendNFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSendNFTResponse +func (x *fastReflection_MsgAuthorizeOperatorResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAuthorizeOperatorResponse } // 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_MsgSendNFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSendNFTResponse_messageType +func (x *fastReflection_MsgAuthorizeOperatorResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgAuthorizeOperatorResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSendNFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgSendNFTResponse) +func (x *fastReflection_MsgAuthorizeOperatorResponse) New() protoreflect.Message { + return new(fastReflection_MsgAuthorizeOperatorResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSendNFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSendNFTResponse)(x) +func (x *fastReflection_MsgAuthorizeOperatorResponse) Interface() protoreflect.ProtoMessage { + return (*MsgAuthorizeOperatorResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2909,7 +2756,7 @@ func (x *fastReflection_MsgSendNFTResponse) 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_MsgSendNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgAuthorizeOperatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -2923,13 +2770,13 @@ func (x *fastReflection_MsgSendNFTResponse) 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_MsgSendNFTResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgAuthorizeOperatorResponse) 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.MsgSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse does not contain field %s", fd.FullName())) } } @@ -2939,13 +2786,13 @@ func (x *fastReflection_MsgSendNFTResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendNFTResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgAuthorizeOperatorResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse does not contain field %s", fd.FullName())) } } @@ -2955,13 +2802,13 @@ func (x *fastReflection_MsgSendNFTResponse) 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_MsgSendNFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAuthorizeOperatorResponse) 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.MsgSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse does not contain field %s", descriptor.FullName())) } } @@ -2975,13 +2822,13 @@ func (x *fastReflection_MsgSendNFTResponse) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSendNFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgAuthorizeOperatorResponse) 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.MsgSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse does not contain field %s", fd.FullName())) } } @@ -2995,36 +2842,36 @@ func (x *fastReflection_MsgSendNFTResponse) 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_MsgSendNFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAuthorizeOperatorResponse) 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.MsgSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse 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_MsgSendNFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgAuthorizeOperatorResponse) 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.MsgSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgSendNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse 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_MsgSendNFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgAuthorizeOperatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgSendNFTResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgAuthorizeOperatorResponse", d.FullName())) } panic("unreachable") } @@ -3032,7 +2879,7 @@ func (x *fastReflection_MsgSendNFTResponse) 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_MsgSendNFTResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgAuthorizeOperatorResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3043,7 +2890,7 @@ func (x *fastReflection_MsgSendNFTResponse) 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_MsgSendNFTResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgAuthorizeOperatorResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3055,7 +2902,7 @@ func (x *fastReflection_MsgSendNFTResponse) 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_MsgSendNFTResponse) IsValid() bool { +func (x *fastReflection_MsgAuthorizeOperatorResponse) IsValid() bool { return x != nil } @@ -3065,9 +2912,9 @@ func (x *fastReflection_MsgSendNFTResponse) 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_MsgSendNFTResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgAuthorizeOperatorResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSendNFTResponse) + x := input.Message.Interface().(*MsgAuthorizeOperatorResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3089,7 +2936,7 @@ func (x *fastReflection_MsgSendNFTResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSendNFTResponse) + x := input.Message.Interface().(*MsgAuthorizeOperatorResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3119,7 +2966,7 @@ func (x *fastReflection_MsgSendNFTResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSendNFTResponse) + x := input.Message.Interface().(*MsgAuthorizeOperatorResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3151,10 +2998,10 @@ func (x *fastReflection_MsgSendNFTResponse) 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: MsgSendNFTResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAuthorizeOperatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAuthorizeOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3192,80 +3039,30 @@ func (x *fastReflection_MsgSendNFTResponse) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_MsgOperatorSendNFT_5_list)(nil) - -type _MsgOperatorSendNFT_5_list struct { - list *[]string -} - -func (x *_MsgOperatorSendNFT_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgOperatorSendNFT_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_MsgOperatorSendNFT_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgOperatorSendNFT_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgOperatorSendNFT_5_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgOperatorSendNFT at list field TokenIds as it is not of Message kind")) -} - -func (x *_MsgOperatorSendNFT_5_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgOperatorSendNFT_5_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgOperatorSendNFT_5_list) IsValid() bool { - return x.list != nil -} - var ( - md_MsgOperatorSendNFT protoreflect.MessageDescriptor - fd_MsgOperatorSendNFT_contract_id protoreflect.FieldDescriptor - fd_MsgOperatorSendNFT_operator protoreflect.FieldDescriptor - fd_MsgOperatorSendNFT_from protoreflect.FieldDescriptor - fd_MsgOperatorSendNFT_to protoreflect.FieldDescriptor - fd_MsgOperatorSendNFT_token_ids protoreflect.FieldDescriptor + md_MsgRevokeOperator protoreflect.MessageDescriptor + fd_MsgRevokeOperator_contract_id protoreflect.FieldDescriptor + fd_MsgRevokeOperator_holder protoreflect.FieldDescriptor + fd_MsgRevokeOperator_operator protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorSendNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorSendNFT") - fd_MsgOperatorSendNFT_contract_id = md_MsgOperatorSendNFT.Fields().ByName("contract_id") - fd_MsgOperatorSendNFT_operator = md_MsgOperatorSendNFT.Fields().ByName("operator") - fd_MsgOperatorSendNFT_from = md_MsgOperatorSendNFT.Fields().ByName("from") - fd_MsgOperatorSendNFT_to = md_MsgOperatorSendNFT.Fields().ByName("to") - fd_MsgOperatorSendNFT_token_ids = md_MsgOperatorSendNFT.Fields().ByName("token_ids") + md_MsgRevokeOperator = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgRevokeOperator") + fd_MsgRevokeOperator_contract_id = md_MsgRevokeOperator.Fields().ByName("contract_id") + fd_MsgRevokeOperator_holder = md_MsgRevokeOperator.Fields().ByName("holder") + fd_MsgRevokeOperator_operator = md_MsgRevokeOperator.Fields().ByName("operator") } -var _ protoreflect.Message = (*fastReflection_MsgOperatorSendNFT)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRevokeOperator)(nil) -type fastReflection_MsgOperatorSendNFT MsgOperatorSendNFT +type fastReflection_MsgRevokeOperator MsgRevokeOperator -func (x *MsgOperatorSendNFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorSendNFT)(x) +func (x *MsgRevokeOperator) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRevokeOperator)(x) } -func (x *MsgOperatorSendNFT) slowProtoReflect() protoreflect.Message { +func (x *MsgRevokeOperator) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3277,43 +3074,43 @@ func (x *MsgOperatorSendNFT) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgOperatorSendNFT_messageType fastReflection_MsgOperatorSendNFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorSendNFT_messageType{} +var _fastReflection_MsgRevokeOperator_messageType fastReflection_MsgRevokeOperator_messageType +var _ protoreflect.MessageType = fastReflection_MsgRevokeOperator_messageType{} -type fastReflection_MsgOperatorSendNFT_messageType struct{} +type fastReflection_MsgRevokeOperator_messageType struct{} -func (x fastReflection_MsgOperatorSendNFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorSendNFT)(nil) +func (x fastReflection_MsgRevokeOperator_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRevokeOperator)(nil) } -func (x fastReflection_MsgOperatorSendNFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorSendNFT) +func (x fastReflection_MsgRevokeOperator_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRevokeOperator) } -func (x fastReflection_MsgOperatorSendNFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorSendNFT +func (x fastReflection_MsgRevokeOperator_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRevokeOperator } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgOperatorSendNFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorSendNFT +func (x *fastReflection_MsgRevokeOperator) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRevokeOperator } // 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_MsgOperatorSendNFT) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorSendNFT_messageType +func (x *fastReflection_MsgRevokeOperator) Type() protoreflect.MessageType { + return _fastReflection_MsgRevokeOperator_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorSendNFT) New() protoreflect.Message { - return new(fastReflection_MsgOperatorSendNFT) +func (x *fastReflection_MsgRevokeOperator) New() protoreflect.Message { + return new(fastReflection_MsgRevokeOperator) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorSendNFT) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorSendNFT)(x) +func (x *fastReflection_MsgRevokeOperator) Interface() protoreflect.ProtoMessage { + return (*MsgRevokeOperator)(x) } // Range iterates over every populated field in an undefined order, @@ -3321,34 +3118,22 @@ func (x *fastReflection_MsgOperatorSendNFT) 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_MsgOperatorSendNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRevokeOperator) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgOperatorSendNFT_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_MsgOperatorSendNFT_operator, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgOperatorSendNFT_from, value) { + if !f(fd_MsgRevokeOperator_contract_id, value) { return } } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_MsgOperatorSendNFT_to, value) { + if x.Holder != "" { + value := protoreflect.ValueOfString(x.Holder) + if !f(fd_MsgRevokeOperator_holder, value) { return } } - if len(x.TokenIds) != 0 { - value := protoreflect.ValueOfList(&_MsgOperatorSendNFT_5_list{list: &x.TokenIds}) - if !f(fd_MsgOperatorSendNFT_token_ids, value) { + if x.Operator != "" { + value := protoreflect.ValueOfString(x.Operator) + if !f(fd_MsgRevokeOperator_operator, value) { return } } @@ -3365,23 +3150,19 @@ func (x *fastReflection_MsgOperatorSendNFT) 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_MsgOperatorSendNFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRevokeOperator) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": + case "lbm.collection.v1.MsgRevokeOperator.contract_id": return x.ContractId != "" - case "lbm.collection.v1.MsgOperatorSendNFT.operator": + case "lbm.collection.v1.MsgRevokeOperator.holder": + return x.Holder != "" + case "lbm.collection.v1.MsgRevokeOperator.operator": return x.Operator != "" - case "lbm.collection.v1.MsgOperatorSendNFT.from": - return x.From != "" - case "lbm.collection.v1.MsgOperatorSendNFT.to": - return x.To != "" - case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": - return len(x.TokenIds) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator does not contain field %s", fd.FullName())) } } @@ -3391,23 +3172,19 @@ func (x *fastReflection_MsgOperatorSendNFT) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendNFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRevokeOperator) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": + case "lbm.collection.v1.MsgRevokeOperator.contract_id": x.ContractId = "" - case "lbm.collection.v1.MsgOperatorSendNFT.operator": + case "lbm.collection.v1.MsgRevokeOperator.holder": + x.Holder = "" + case "lbm.collection.v1.MsgRevokeOperator.operator": x.Operator = "" - case "lbm.collection.v1.MsgOperatorSendNFT.from": - x.From = "" - case "lbm.collection.v1.MsgOperatorSendNFT.to": - x.To = "" - case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": - x.TokenIds = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator does not contain field %s", fd.FullName())) } } @@ -3417,31 +3194,22 @@ func (x *fastReflection_MsgOperatorSendNFT) 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_MsgOperatorSendNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRevokeOperator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": + case "lbm.collection.v1.MsgRevokeOperator.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorSendNFT.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorSendNFT.from": - value := x.From + case "lbm.collection.v1.MsgRevokeOperator.holder": + value := x.Holder return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorSendNFT.to": - value := x.To + case "lbm.collection.v1.MsgRevokeOperator.operator": + value := x.Operator return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": - if len(x.TokenIds) == 0 { - return protoreflect.ValueOfList(&_MsgOperatorSendNFT_5_list{}) - } - listValue := &_MsgOperatorSendNFT_5_list{list: &x.TokenIds} - return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator does not contain field %s", descriptor.FullName())) } } @@ -3455,25 +3223,19 @@ func (x *fastReflection_MsgOperatorSendNFT) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRevokeOperator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": + case "lbm.collection.v1.MsgRevokeOperator.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorSendNFT.operator": + case "lbm.collection.v1.MsgRevokeOperator.holder": + x.Holder = value.Interface().(string) + case "lbm.collection.v1.MsgRevokeOperator.operator": x.Operator = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorSendNFT.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorSendNFT.to": - x.To = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": - lv := value.List() - clv := lv.(*_MsgOperatorSendNFT_5_list) - x.TokenIds = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator does not contain field %s", fd.FullName())) } } @@ -3487,61 +3249,48 @@ func (x *fastReflection_MsgOperatorSendNFT) 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_MsgOperatorSendNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRevokeOperator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": - if x.TokenIds == nil { - x.TokenIds = []string{} - } - value := &_MsgOperatorSendNFT_5_list{list: &x.TokenIds} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgOperatorSendNFT is not mutable")) - case "lbm.collection.v1.MsgOperatorSendNFT.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgOperatorSendNFT is not mutable")) - case "lbm.collection.v1.MsgOperatorSendNFT.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgOperatorSendNFT is not mutable")) - case "lbm.collection.v1.MsgOperatorSendNFT.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.MsgOperatorSendNFT is not mutable")) + case "lbm.collection.v1.MsgRevokeOperator.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgRevokeOperator is not mutable")) + case "lbm.collection.v1.MsgRevokeOperator.holder": + panic(fmt.Errorf("field holder of message lbm.collection.v1.MsgRevokeOperator is not mutable")) + case "lbm.collection.v1.MsgRevokeOperator.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgRevokeOperator is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator 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_MsgOperatorSendNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRevokeOperator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorSendNFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorSendNFT.operator": + case "lbm.collection.v1.MsgRevokeOperator.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorSendNFT.from": + case "lbm.collection.v1.MsgRevokeOperator.holder": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorSendNFT.to": + case "lbm.collection.v1.MsgRevokeOperator.operator": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorSendNFT.token_ids": - list := []string{} - return protoreflect.ValueOfList(&_MsgOperatorSendNFT_5_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator 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_MsgOperatorSendNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRevokeOperator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorSendNFT", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgRevokeOperator", d.FullName())) } panic("unreachable") } @@ -3549,7 +3298,7 @@ func (x *fastReflection_MsgOperatorSendNFT) 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_MsgOperatorSendNFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRevokeOperator) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3560,7 +3309,7 @@ func (x *fastReflection_MsgOperatorSendNFT) 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_MsgOperatorSendNFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRevokeOperator) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3572,7 +3321,7 @@ func (x *fastReflection_MsgOperatorSendNFT) 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_MsgOperatorSendNFT) IsValid() bool { +func (x *fastReflection_MsgRevokeOperator) IsValid() bool { return x != nil } @@ -3582,9 +3331,9 @@ func (x *fastReflection_MsgOperatorSendNFT) 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_MsgOperatorSendNFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRevokeOperator) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorSendNFT) + x := input.Message.Interface().(*MsgRevokeOperator) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3600,24 +3349,14 @@ func (x *fastReflection_MsgOperatorSendNFT) ProtoMethods() *protoiface.Methods { 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) + l = len(x.Holder) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.To) + l = len(x.Operator) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.TokenIds) > 0 { - for _, s := range x.TokenIds { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -3628,7 +3367,7 @@ func (x *fastReflection_MsgOperatorSendNFT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorSendNFT) + x := input.Message.Interface().(*MsgRevokeOperator) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3647,34 +3386,18 @@ func (x *fastReflection_MsgOperatorSendNFT) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TokenIds) > 0 { - for iNdEx := len(x.TokenIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.TokenIds[iNdEx]) - copy(dAtA[i:], x.TokenIds[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenIds[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - 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.Operator) > 0 { i -= len(x.Operator) copy(dAtA[i:], x.Operator) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) i-- + dAtA[i] = 0x1a + } + 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] = 0x12 } if len(x.ContractId) > 0 { @@ -3695,7 +3418,7 @@ func (x *fastReflection_MsgOperatorSendNFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorSendNFT) + x := input.Message.Interface().(*MsgRevokeOperator) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3727,10 +3450,10 @@ func (x *fastReflection_MsgOperatorSendNFT) 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: MsgOperatorSendNFT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokeOperator: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorSendNFT: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokeOperator: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3767,7 +3490,7 @@ func (x *fastReflection_MsgOperatorSendNFT) 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 Operator", wireType) + 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 { @@ -3795,11 +3518,11 @@ func (x *fastReflection_MsgOperatorSendNFT) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Operator = string(dAtA[iNdEx:postIndex]) + x.Holder = 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) + 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 { @@ -3827,77 +3550,13 @@ func (x *fastReflection_MsgOperatorSendNFT) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.From = string(dAtA[iNdEx:postIndex]) + x.Operator = 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 - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenIds", 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.TokenIds = append(x.TokenIds, 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 + 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 @@ -3929,23 +3588,23 @@ func (x *fastReflection_MsgOperatorSendNFT) ProtoMethods() *protoiface.Methods { } var ( - md_MsgOperatorSendNFTResponse protoreflect.MessageDescriptor + md_MsgRevokeOperatorResponse protoreflect.MessageDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorSendNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorSendNFTResponse") + md_MsgRevokeOperatorResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgRevokeOperatorResponse") } -var _ protoreflect.Message = (*fastReflection_MsgOperatorSendNFTResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRevokeOperatorResponse)(nil) -type fastReflection_MsgOperatorSendNFTResponse MsgOperatorSendNFTResponse +type fastReflection_MsgRevokeOperatorResponse MsgRevokeOperatorResponse -func (x *MsgOperatorSendNFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorSendNFTResponse)(x) +func (x *MsgRevokeOperatorResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRevokeOperatorResponse)(x) } -func (x *MsgOperatorSendNFTResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgRevokeOperatorResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3957,43 +3616,43 @@ func (x *MsgOperatorSendNFTResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgOperatorSendNFTResponse_messageType fastReflection_MsgOperatorSendNFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorSendNFTResponse_messageType{} +var _fastReflection_MsgRevokeOperatorResponse_messageType fastReflection_MsgRevokeOperatorResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRevokeOperatorResponse_messageType{} -type fastReflection_MsgOperatorSendNFTResponse_messageType struct{} +type fastReflection_MsgRevokeOperatorResponse_messageType struct{} -func (x fastReflection_MsgOperatorSendNFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorSendNFTResponse)(nil) +func (x fastReflection_MsgRevokeOperatorResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRevokeOperatorResponse)(nil) } -func (x fastReflection_MsgOperatorSendNFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorSendNFTResponse) +func (x fastReflection_MsgRevokeOperatorResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRevokeOperatorResponse) } -func (x fastReflection_MsgOperatorSendNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorSendNFTResponse +func (x fastReflection_MsgRevokeOperatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRevokeOperatorResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgOperatorSendNFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorSendNFTResponse +func (x *fastReflection_MsgRevokeOperatorResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRevokeOperatorResponse } // 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_MsgOperatorSendNFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorSendNFTResponse_messageType +func (x *fastReflection_MsgRevokeOperatorResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRevokeOperatorResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorSendNFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgOperatorSendNFTResponse) +func (x *fastReflection_MsgRevokeOperatorResponse) New() protoreflect.Message { + return new(fastReflection_MsgRevokeOperatorResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorSendNFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorSendNFTResponse)(x) +func (x *fastReflection_MsgRevokeOperatorResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRevokeOperatorResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4001,7 +3660,7 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgOperatorSendNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRevokeOperatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -4015,13 +3674,13 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) Range(f func(protoreflect.Fi // 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_MsgOperatorSendNFTResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRevokeOperatorResponse) 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.MsgOperatorSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse does not contain field %s", fd.FullName())) } } @@ -4031,13 +3690,13 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendNFTResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRevokeOperatorResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse does not contain field %s", fd.FullName())) } } @@ -4047,13 +3706,13 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) Clear(fd protoreflect.FieldD // 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_MsgOperatorSendNFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRevokeOperatorResponse) 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.MsgOperatorSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse does not contain field %s", descriptor.FullName())) } } @@ -4067,13 +3726,13 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendNFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRevokeOperatorResponse) 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.MsgOperatorSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse does not contain field %s", fd.FullName())) } } @@ -4087,36 +3746,36 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendNFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRevokeOperatorResponse) 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.MsgOperatorSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse 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_MsgOperatorSendNFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRevokeOperatorResponse) 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.MsgOperatorSendNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorSendNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse 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_MsgOperatorSendNFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRevokeOperatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorSendNFTResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgRevokeOperatorResponse", d.FullName())) } panic("unreachable") } @@ -4124,7 +3783,7 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) WhichOneof(d protoreflect.On // 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_MsgOperatorSendNFTResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRevokeOperatorResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4135,7 +3794,7 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorSendNFTResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRevokeOperatorResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4147,7 +3806,7 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) SetUnknown(fields protorefle // 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_MsgOperatorSendNFTResponse) IsValid() bool { +func (x *fastReflection_MsgRevokeOperatorResponse) IsValid() bool { return x != nil } @@ -4157,9 +3816,9 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) 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_MsgOperatorSendNFTResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRevokeOperatorResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorSendNFTResponse) + x := input.Message.Interface().(*MsgRevokeOperatorResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4181,7 +3840,7 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorSendNFTResponse) + x := input.Message.Interface().(*MsgRevokeOperatorResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4211,7 +3870,7 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorSendNFTResponse) + x := input.Message.Interface().(*MsgRevokeOperatorResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4243,10 +3902,10 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorSendNFTResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokeOperatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorSendNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokeOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -4285,29 +3944,31 @@ func (x *fastReflection_MsgOperatorSendNFTResponse) ProtoMethods() *protoiface.M } var ( - md_MsgAuthorizeOperator protoreflect.MessageDescriptor - fd_MsgAuthorizeOperator_contract_id protoreflect.FieldDescriptor - fd_MsgAuthorizeOperator_holder protoreflect.FieldDescriptor - fd_MsgAuthorizeOperator_operator protoreflect.FieldDescriptor + md_MsgCreateContract protoreflect.MessageDescriptor + fd_MsgCreateContract_owner protoreflect.FieldDescriptor + fd_MsgCreateContract_name protoreflect.FieldDescriptor + fd_MsgCreateContract_uri protoreflect.FieldDescriptor + fd_MsgCreateContract_meta protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgAuthorizeOperator = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgAuthorizeOperator") - fd_MsgAuthorizeOperator_contract_id = md_MsgAuthorizeOperator.Fields().ByName("contract_id") - fd_MsgAuthorizeOperator_holder = md_MsgAuthorizeOperator.Fields().ByName("holder") - fd_MsgAuthorizeOperator_operator = md_MsgAuthorizeOperator.Fields().ByName("operator") + md_MsgCreateContract = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgCreateContract") + fd_MsgCreateContract_owner = md_MsgCreateContract.Fields().ByName("owner") + fd_MsgCreateContract_name = md_MsgCreateContract.Fields().ByName("name") + fd_MsgCreateContract_uri = md_MsgCreateContract.Fields().ByName("uri") + fd_MsgCreateContract_meta = md_MsgCreateContract.Fields().ByName("meta") } -var _ protoreflect.Message = (*fastReflection_MsgAuthorizeOperator)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCreateContract)(nil) -type fastReflection_MsgAuthorizeOperator MsgAuthorizeOperator +type fastReflection_MsgCreateContract MsgCreateContract -func (x *MsgAuthorizeOperator) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAuthorizeOperator)(x) +func (x *MsgCreateContract) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateContract)(x) } -func (x *MsgAuthorizeOperator) slowProtoReflect() protoreflect.Message { +func (x *MsgCreateContract) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4319,43 +3980,43 @@ func (x *MsgAuthorizeOperator) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgAuthorizeOperator_messageType fastReflection_MsgAuthorizeOperator_messageType -var _ protoreflect.MessageType = fastReflection_MsgAuthorizeOperator_messageType{} +var _fastReflection_MsgCreateContract_messageType fastReflection_MsgCreateContract_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateContract_messageType{} -type fastReflection_MsgAuthorizeOperator_messageType struct{} +type fastReflection_MsgCreateContract_messageType struct{} -func (x fastReflection_MsgAuthorizeOperator_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAuthorizeOperator)(nil) +func (x fastReflection_MsgCreateContract_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateContract)(nil) } -func (x fastReflection_MsgAuthorizeOperator_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAuthorizeOperator) +func (x fastReflection_MsgCreateContract_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateContract) } -func (x fastReflection_MsgAuthorizeOperator_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAuthorizeOperator +func (x fastReflection_MsgCreateContract_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateContract } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgAuthorizeOperator) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAuthorizeOperator +func (x *fastReflection_MsgCreateContract) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateContract } // 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_MsgAuthorizeOperator) Type() protoreflect.MessageType { - return _fastReflection_MsgAuthorizeOperator_messageType +func (x *fastReflection_MsgCreateContract) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateContract_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAuthorizeOperator) New() protoreflect.Message { - return new(fastReflection_MsgAuthorizeOperator) +func (x *fastReflection_MsgCreateContract) New() protoreflect.Message { + return new(fastReflection_MsgCreateContract) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAuthorizeOperator) Interface() protoreflect.ProtoMessage { - return (*MsgAuthorizeOperator)(x) +func (x *fastReflection_MsgCreateContract) Interface() protoreflect.ProtoMessage { + return (*MsgCreateContract)(x) } // Range iterates over every populated field in an undefined order, @@ -4363,22 +4024,28 @@ func (x *fastReflection_MsgAuthorizeOperator) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgAuthorizeOperator) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgAuthorizeOperator_contract_id, value) { +func (x *fastReflection_MsgCreateContract) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_MsgCreateContract_owner, value) { return } } - if x.Holder != "" { - value := protoreflect.ValueOfString(x.Holder) - if !f(fd_MsgAuthorizeOperator_holder, value) { + if x.Name != "" { + value := protoreflect.ValueOfString(x.Name) + if !f(fd_MsgCreateContract_name, value) { return } } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_MsgAuthorizeOperator_operator, value) { + if x.Uri != "" { + value := protoreflect.ValueOfString(x.Uri) + if !f(fd_MsgCreateContract_uri, value) { + return + } + } + if x.Meta != "" { + value := protoreflect.ValueOfString(x.Meta) + if !f(fd_MsgCreateContract_meta, value) { return } } @@ -4395,19 +4062,21 @@ func (x *fastReflection_MsgAuthorizeOperator) Range(f func(protoreflect.FieldDes // 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_MsgAuthorizeOperator) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCreateContract) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgAuthorizeOperator.holder": - return x.Holder != "" - case "lbm.collection.v1.MsgAuthorizeOperator.operator": - return x.Operator != "" + case "lbm.collection.v1.MsgCreateContract.owner": + return x.Owner != "" + case "lbm.collection.v1.MsgCreateContract.name": + return x.Name != "" + case "lbm.collection.v1.MsgCreateContract.uri": + return x.Uri != "" + case "lbm.collection.v1.MsgCreateContract.meta": + return x.Meta != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract does not contain field %s", fd.FullName())) } } @@ -4417,19 +4086,21 @@ func (x *fastReflection_MsgAuthorizeOperator) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeOperator) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCreateContract) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgAuthorizeOperator.holder": - x.Holder = "" - case "lbm.collection.v1.MsgAuthorizeOperator.operator": - x.Operator = "" + case "lbm.collection.v1.MsgCreateContract.owner": + x.Owner = "" + case "lbm.collection.v1.MsgCreateContract.name": + x.Name = "" + case "lbm.collection.v1.MsgCreateContract.uri": + x.Uri = "" + case "lbm.collection.v1.MsgCreateContract.meta": + x.Meta = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract does not contain field %s", fd.FullName())) } } @@ -4439,22 +4110,25 @@ func (x *fastReflection_MsgAuthorizeOperator) Clear(fd protoreflect.FieldDescrip // 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_MsgAuthorizeOperator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateContract) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": - value := x.ContractId + case "lbm.collection.v1.MsgCreateContract.owner": + value := x.Owner return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgAuthorizeOperator.holder": - value := x.Holder + case "lbm.collection.v1.MsgCreateContract.name": + value := x.Name return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgAuthorizeOperator.operator": - value := x.Operator + case "lbm.collection.v1.MsgCreateContract.uri": + value := x.Uri + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgCreateContract.meta": + value := x.Meta return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract does not contain field %s", descriptor.FullName())) } } @@ -4468,19 +4142,21 @@ func (x *fastReflection_MsgAuthorizeOperator) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeOperator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCreateContract) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgAuthorizeOperator.holder": - x.Holder = value.Interface().(string) - case "lbm.collection.v1.MsgAuthorizeOperator.operator": - x.Operator = value.Interface().(string) + case "lbm.collection.v1.MsgCreateContract.owner": + x.Owner = value.Interface().(string) + case "lbm.collection.v1.MsgCreateContract.name": + x.Name = value.Interface().(string) + case "lbm.collection.v1.MsgCreateContract.uri": + x.Uri = value.Interface().(string) + case "lbm.collection.v1.MsgCreateContract.meta": + x.Meta = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract does not contain field %s", fd.FullName())) } } @@ -4494,48 +4170,52 @@ func (x *fastReflection_MsgAuthorizeOperator) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeOperator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateContract) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgAuthorizeOperator is not mutable")) - case "lbm.collection.v1.MsgAuthorizeOperator.holder": - panic(fmt.Errorf("field holder of message lbm.collection.v1.MsgAuthorizeOperator is not mutable")) - case "lbm.collection.v1.MsgAuthorizeOperator.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgAuthorizeOperator is not mutable")) + case "lbm.collection.v1.MsgCreateContract.owner": + panic(fmt.Errorf("field owner of message lbm.collection.v1.MsgCreateContract is not mutable")) + case "lbm.collection.v1.MsgCreateContract.name": + panic(fmt.Errorf("field name of message lbm.collection.v1.MsgCreateContract is not mutable")) + case "lbm.collection.v1.MsgCreateContract.uri": + panic(fmt.Errorf("field uri of message lbm.collection.v1.MsgCreateContract is not mutable")) + case "lbm.collection.v1.MsgCreateContract.meta": + panic(fmt.Errorf("field meta of message lbm.collection.v1.MsgCreateContract is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract 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_MsgAuthorizeOperator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateContract) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgAuthorizeOperator.contract_id": + case "lbm.collection.v1.MsgCreateContract.owner": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgAuthorizeOperator.holder": + case "lbm.collection.v1.MsgCreateContract.name": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgAuthorizeOperator.operator": + case "lbm.collection.v1.MsgCreateContract.uri": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgCreateContract.meta": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract 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_MsgAuthorizeOperator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCreateContract) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgAuthorizeOperator", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgCreateContract", d.FullName())) } panic("unreachable") } @@ -4543,7 +4223,7 @@ func (x *fastReflection_MsgAuthorizeOperator) WhichOneof(d protoreflect.OneofDes // 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_MsgAuthorizeOperator) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCreateContract) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4554,7 +4234,7 @@ func (x *fastReflection_MsgAuthorizeOperator) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeOperator) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCreateContract) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4566,7 +4246,7 @@ func (x *fastReflection_MsgAuthorizeOperator) SetUnknown(fields protoreflect.Raw // 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_MsgAuthorizeOperator) IsValid() bool { +func (x *fastReflection_MsgCreateContract) IsValid() bool { return x != nil } @@ -4576,9 +4256,9 @@ func (x *fastReflection_MsgAuthorizeOperator) 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_MsgAuthorizeOperator) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCreateContract) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAuthorizeOperator) + x := input.Message.Interface().(*MsgCreateContract) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4590,15 +4270,19 @@ func (x *fastReflection_MsgAuthorizeOperator) ProtoMethods() *protoiface.Methods var n int var l int _ = l - l = len(x.ContractId) + l = len(x.Owner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Holder) + l = len(x.Name) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Operator) + l = len(x.Uri) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Meta) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -4612,7 +4296,7 @@ func (x *fastReflection_MsgAuthorizeOperator) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAuthorizeOperator) + x := input.Message.Interface().(*MsgCreateContract) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4631,24 +4315,31 @@ func (x *fastReflection_MsgAuthorizeOperator) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) + if len(x.Meta) > 0 { + i -= len(x.Meta) + copy(dAtA[i:], x.Meta) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Meta))) + i-- + dAtA[i] = 0x22 + } + if len(x.Uri) > 0 { + i -= len(x.Uri) + copy(dAtA[i:], x.Uri) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Uri))) i-- dAtA[i] = 0x1a } - if len(x.Holder) > 0 { - i -= len(x.Holder) - copy(dAtA[i:], x.Holder) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holder))) + if len(x.Name) > 0 { + i -= len(x.Name) + copy(dAtA[i:], x.Name) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) 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.Owner) > 0 { + i -= len(x.Owner) + copy(dAtA[i:], x.Owner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) i-- dAtA[i] = 0xa } @@ -4663,7 +4354,7 @@ func (x *fastReflection_MsgAuthorizeOperator) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAuthorizeOperator) + x := input.Message.Interface().(*MsgCreateContract) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4695,15 +4386,15 @@ func (x *fastReflection_MsgAuthorizeOperator) 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: MsgAuthorizeOperator: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateContract: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAuthorizeOperator: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateContract: 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 Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4731,11 +4422,11 @@ func (x *fastReflection_MsgAuthorizeOperator) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ContractId = string(dAtA[iNdEx:postIndex]) + x.Owner = 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 Holder", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4763,11 +4454,11 @@ func (x *fastReflection_MsgAuthorizeOperator) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Holder = string(dAtA[iNdEx:postIndex]) + x.Name = 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 Operator", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4795,7 +4486,39 @@ func (x *fastReflection_MsgAuthorizeOperator) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Operator = string(dAtA[iNdEx:postIndex]) + x.Uri = 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 Meta", 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.Meta = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4833,23 +4556,25 @@ func (x *fastReflection_MsgAuthorizeOperator) ProtoMethods() *protoiface.Methods } var ( - md_MsgAuthorizeOperatorResponse protoreflect.MessageDescriptor + md_MsgCreateContractResponse protoreflect.MessageDescriptor + fd_MsgCreateContractResponse_contract_id protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgAuthorizeOperatorResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgAuthorizeOperatorResponse") + md_MsgCreateContractResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgCreateContractResponse") + fd_MsgCreateContractResponse_contract_id = md_MsgCreateContractResponse.Fields().ByName("contract_id") } -var _ protoreflect.Message = (*fastReflection_MsgAuthorizeOperatorResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCreateContractResponse)(nil) -type fastReflection_MsgAuthorizeOperatorResponse MsgAuthorizeOperatorResponse +type fastReflection_MsgCreateContractResponse MsgCreateContractResponse -func (x *MsgAuthorizeOperatorResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAuthorizeOperatorResponse)(x) +func (x *MsgCreateContractResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateContractResponse)(x) } -func (x *MsgAuthorizeOperatorResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgCreateContractResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4861,43 +4586,43 @@ func (x *MsgAuthorizeOperatorResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgAuthorizeOperatorResponse_messageType fastReflection_MsgAuthorizeOperatorResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgAuthorizeOperatorResponse_messageType{} +var _fastReflection_MsgCreateContractResponse_messageType fastReflection_MsgCreateContractResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateContractResponse_messageType{} -type fastReflection_MsgAuthorizeOperatorResponse_messageType struct{} +type fastReflection_MsgCreateContractResponse_messageType struct{} -func (x fastReflection_MsgAuthorizeOperatorResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAuthorizeOperatorResponse)(nil) +func (x fastReflection_MsgCreateContractResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateContractResponse)(nil) } -func (x fastReflection_MsgAuthorizeOperatorResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAuthorizeOperatorResponse) +func (x fastReflection_MsgCreateContractResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateContractResponse) } -func (x fastReflection_MsgAuthorizeOperatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAuthorizeOperatorResponse +func (x fastReflection_MsgCreateContractResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateContractResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgAuthorizeOperatorResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAuthorizeOperatorResponse +func (x *fastReflection_MsgCreateContractResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateContractResponse } // 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_MsgAuthorizeOperatorResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgAuthorizeOperatorResponse_messageType +func (x *fastReflection_MsgCreateContractResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateContractResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAuthorizeOperatorResponse) New() protoreflect.Message { - return new(fastReflection_MsgAuthorizeOperatorResponse) +func (x *fastReflection_MsgCreateContractResponse) New() protoreflect.Message { + return new(fastReflection_MsgCreateContractResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAuthorizeOperatorResponse) Interface() protoreflect.ProtoMessage { - return (*MsgAuthorizeOperatorResponse)(x) +func (x *fastReflection_MsgCreateContractResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCreateContractResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4905,7 +4630,13 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgAuthorizeOperatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgCreateContractResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ContractId != "" { + value := protoreflect.ValueOfString(x.ContractId) + if !f(fd_MsgCreateContractResponse_contract_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -4919,13 +4650,15 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) Range(f func(protoreflect. // 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_MsgAuthorizeOperatorResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCreateContractResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "lbm.collection.v1.MsgCreateContractResponse.contract_id": + return x.ContractId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse does not contain field %s", fd.FullName())) } } @@ -4935,13 +4668,15 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeOperatorResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCreateContractResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "lbm.collection.v1.MsgCreateContractResponse.contract_id": + x.ContractId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse does not contain field %s", fd.FullName())) } } @@ -4951,13 +4686,16 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) Clear(fd protoreflect.Fiel // 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_MsgAuthorizeOperatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateContractResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "lbm.collection.v1.MsgCreateContractResponse.contract_id": + value := x.ContractId + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse does not contain field %s", descriptor.FullName())) } } @@ -4971,13 +4709,15 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeOperatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCreateContractResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "lbm.collection.v1.MsgCreateContractResponse.contract_id": + x.ContractId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse does not contain field %s", fd.FullName())) } } @@ -4991,36 +4731,40 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeOperatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateContractResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "lbm.collection.v1.MsgCreateContractResponse.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgCreateContractResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse 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_MsgAuthorizeOperatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateContractResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "lbm.collection.v1.MsgCreateContractResponse.contract_id": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAuthorizeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgAuthorizeOperatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse 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_MsgAuthorizeOperatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCreateContractResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgAuthorizeOperatorResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgCreateContractResponse", d.FullName())) } panic("unreachable") } @@ -5028,7 +4772,7 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) WhichOneof(d protoreflect. // 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_MsgAuthorizeOperatorResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCreateContractResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5039,7 +4783,7 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAuthorizeOperatorResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCreateContractResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5051,7 +4795,7 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) SetUnknown(fields protoref // 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_MsgAuthorizeOperatorResponse) IsValid() bool { +func (x *fastReflection_MsgCreateContractResponse) IsValid() bool { return x != nil } @@ -5061,9 +4805,9 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) 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_MsgAuthorizeOperatorResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCreateContractResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAuthorizeOperatorResponse) + x := input.Message.Interface().(*MsgCreateContractResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5075,6 +4819,10 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) ProtoMethods() *protoiface var n int var l int _ = l + l = len(x.ContractId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -5085,7 +4833,7 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAuthorizeOperatorResponse) + x := input.Message.Interface().(*MsgCreateContractResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5104,6 +4852,13 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + 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 { @@ -5115,7 +4870,7 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAuthorizeOperatorResponse) + x := input.Message.Interface().(*MsgCreateContractResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5147,12 +4902,44 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAuthorizeOperatorResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateContractResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAuthorizeOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateContractResponse: 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 default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5189,29 +4976,31 @@ func (x *fastReflection_MsgAuthorizeOperatorResponse) ProtoMethods() *protoiface } var ( - md_MsgRevokeOperator protoreflect.MessageDescriptor - fd_MsgRevokeOperator_contract_id protoreflect.FieldDescriptor - fd_MsgRevokeOperator_holder protoreflect.FieldDescriptor - fd_MsgRevokeOperator_operator protoreflect.FieldDescriptor + md_MsgIssueNFT protoreflect.MessageDescriptor + fd_MsgIssueNFT_contract_id protoreflect.FieldDescriptor + fd_MsgIssueNFT_name protoreflect.FieldDescriptor + fd_MsgIssueNFT_meta protoreflect.FieldDescriptor + fd_MsgIssueNFT_owner protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgRevokeOperator = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgRevokeOperator") - fd_MsgRevokeOperator_contract_id = md_MsgRevokeOperator.Fields().ByName("contract_id") - fd_MsgRevokeOperator_holder = md_MsgRevokeOperator.Fields().ByName("holder") - fd_MsgRevokeOperator_operator = md_MsgRevokeOperator.Fields().ByName("operator") + md_MsgIssueNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgIssueNFT") + fd_MsgIssueNFT_contract_id = md_MsgIssueNFT.Fields().ByName("contract_id") + fd_MsgIssueNFT_name = md_MsgIssueNFT.Fields().ByName("name") + fd_MsgIssueNFT_meta = md_MsgIssueNFT.Fields().ByName("meta") + fd_MsgIssueNFT_owner = md_MsgIssueNFT.Fields().ByName("owner") } -var _ protoreflect.Message = (*fastReflection_MsgRevokeOperator)(nil) +var _ protoreflect.Message = (*fastReflection_MsgIssueNFT)(nil) -type fastReflection_MsgRevokeOperator MsgRevokeOperator +type fastReflection_MsgIssueNFT MsgIssueNFT -func (x *MsgRevokeOperator) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRevokeOperator)(x) +func (x *MsgIssueNFT) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgIssueNFT)(x) } -func (x *MsgRevokeOperator) slowProtoReflect() protoreflect.Message { +func (x *MsgIssueNFT) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5223,43 +5012,43 @@ func (x *MsgRevokeOperator) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgRevokeOperator_messageType fastReflection_MsgRevokeOperator_messageType -var _ protoreflect.MessageType = fastReflection_MsgRevokeOperator_messageType{} +var _fastReflection_MsgIssueNFT_messageType fastReflection_MsgIssueNFT_messageType +var _ protoreflect.MessageType = fastReflection_MsgIssueNFT_messageType{} -type fastReflection_MsgRevokeOperator_messageType struct{} +type fastReflection_MsgIssueNFT_messageType struct{} -func (x fastReflection_MsgRevokeOperator_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRevokeOperator)(nil) +func (x fastReflection_MsgIssueNFT_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgIssueNFT)(nil) } -func (x fastReflection_MsgRevokeOperator_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRevokeOperator) +func (x fastReflection_MsgIssueNFT_messageType) New() protoreflect.Message { + return new(fastReflection_MsgIssueNFT) } -func (x fastReflection_MsgRevokeOperator_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRevokeOperator +func (x fastReflection_MsgIssueNFT_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgIssueNFT } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgRevokeOperator) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRevokeOperator +func (x *fastReflection_MsgIssueNFT) Descriptor() protoreflect.MessageDescriptor { + return md_MsgIssueNFT } // 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_MsgRevokeOperator) Type() protoreflect.MessageType { - return _fastReflection_MsgRevokeOperator_messageType +func (x *fastReflection_MsgIssueNFT) Type() protoreflect.MessageType { + return _fastReflection_MsgIssueNFT_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRevokeOperator) New() protoreflect.Message { - return new(fastReflection_MsgRevokeOperator) +func (x *fastReflection_MsgIssueNFT) New() protoreflect.Message { + return new(fastReflection_MsgIssueNFT) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRevokeOperator) Interface() protoreflect.ProtoMessage { - return (*MsgRevokeOperator)(x) +func (x *fastReflection_MsgIssueNFT) Interface() protoreflect.ProtoMessage { + return (*MsgIssueNFT)(x) } // Range iterates over every populated field in an undefined order, @@ -5267,22 +5056,28 @@ func (x *fastReflection_MsgRevokeOperator) 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_MsgRevokeOperator) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgIssueNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgRevokeOperator_contract_id, value) { + if !f(fd_MsgIssueNFT_contract_id, value) { return } } - if x.Holder != "" { - value := protoreflect.ValueOfString(x.Holder) - if !f(fd_MsgRevokeOperator_holder, value) { + if x.Name != "" { + value := protoreflect.ValueOfString(x.Name) + if !f(fd_MsgIssueNFT_name, value) { return } } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_MsgRevokeOperator_operator, value) { + if x.Meta != "" { + value := protoreflect.ValueOfString(x.Meta) + if !f(fd_MsgIssueNFT_meta, value) { + return + } + } + if x.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_MsgIssueNFT_owner, value) { return } } @@ -5299,19 +5094,21 @@ func (x *fastReflection_MsgRevokeOperator) 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_MsgRevokeOperator) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgIssueNFT) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgRevokeOperator.contract_id": + case "lbm.collection.v1.MsgIssueNFT.contract_id": return x.ContractId != "" - case "lbm.collection.v1.MsgRevokeOperator.holder": - return x.Holder != "" - case "lbm.collection.v1.MsgRevokeOperator.operator": - return x.Operator != "" + case "lbm.collection.v1.MsgIssueNFT.name": + return x.Name != "" + case "lbm.collection.v1.MsgIssueNFT.meta": + return x.Meta != "" + case "lbm.collection.v1.MsgIssueNFT.owner": + return x.Owner != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT does not contain field %s", fd.FullName())) } } @@ -5321,19 +5118,21 @@ func (x *fastReflection_MsgRevokeOperator) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRevokeOperator) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgIssueNFT) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgRevokeOperator.contract_id": + case "lbm.collection.v1.MsgIssueNFT.contract_id": x.ContractId = "" - case "lbm.collection.v1.MsgRevokeOperator.holder": - x.Holder = "" - case "lbm.collection.v1.MsgRevokeOperator.operator": - x.Operator = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) + case "lbm.collection.v1.MsgIssueNFT.name": + x.Name = "" + case "lbm.collection.v1.MsgIssueNFT.meta": + x.Meta = "" + case "lbm.collection.v1.MsgIssueNFT.owner": + x.Owner = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT does not contain field %s", fd.FullName())) } } @@ -5343,22 +5142,25 @@ func (x *fastReflection_MsgRevokeOperator) 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_MsgRevokeOperator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgIssueNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgRevokeOperator.contract_id": + case "lbm.collection.v1.MsgIssueNFT.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgRevokeOperator.holder": - value := x.Holder + case "lbm.collection.v1.MsgIssueNFT.name": + value := x.Name return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgRevokeOperator.operator": - value := x.Operator + case "lbm.collection.v1.MsgIssueNFT.meta": + value := x.Meta + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgIssueNFT.owner": + value := x.Owner return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT does not contain field %s", descriptor.FullName())) } } @@ -5372,19 +5174,21 @@ func (x *fastReflection_MsgRevokeOperator) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRevokeOperator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgIssueNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgRevokeOperator.contract_id": + case "lbm.collection.v1.MsgIssueNFT.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgRevokeOperator.holder": - x.Holder = value.Interface().(string) - case "lbm.collection.v1.MsgRevokeOperator.operator": - x.Operator = value.Interface().(string) + case "lbm.collection.v1.MsgIssueNFT.name": + x.Name = value.Interface().(string) + case "lbm.collection.v1.MsgIssueNFT.meta": + x.Meta = value.Interface().(string) + case "lbm.collection.v1.MsgIssueNFT.owner": + x.Owner = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT does not contain field %s", fd.FullName())) } } @@ -5398,48 +5202,52 @@ func (x *fastReflection_MsgRevokeOperator) 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_MsgRevokeOperator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgIssueNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgRevokeOperator.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgRevokeOperator is not mutable")) - case "lbm.collection.v1.MsgRevokeOperator.holder": - panic(fmt.Errorf("field holder of message lbm.collection.v1.MsgRevokeOperator is not mutable")) - case "lbm.collection.v1.MsgRevokeOperator.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgRevokeOperator is not mutable")) + case "lbm.collection.v1.MsgIssueNFT.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgIssueNFT is not mutable")) + case "lbm.collection.v1.MsgIssueNFT.name": + panic(fmt.Errorf("field name of message lbm.collection.v1.MsgIssueNFT is not mutable")) + case "lbm.collection.v1.MsgIssueNFT.meta": + panic(fmt.Errorf("field meta of message lbm.collection.v1.MsgIssueNFT is not mutable")) + case "lbm.collection.v1.MsgIssueNFT.owner": + panic(fmt.Errorf("field owner of message lbm.collection.v1.MsgIssueNFT is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT 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_MsgRevokeOperator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgIssueNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgRevokeOperator.contract_id": + case "lbm.collection.v1.MsgIssueNFT.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgRevokeOperator.holder": + case "lbm.collection.v1.MsgIssueNFT.name": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgRevokeOperator.operator": + case "lbm.collection.v1.MsgIssueNFT.meta": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgIssueNFT.owner": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperator")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperator does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT 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_MsgRevokeOperator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgIssueNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgRevokeOperator", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgIssueNFT", d.FullName())) } panic("unreachable") } @@ -5447,7 +5255,7 @@ func (x *fastReflection_MsgRevokeOperator) 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_MsgRevokeOperator) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgIssueNFT) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5458,7 +5266,7 @@ func (x *fastReflection_MsgRevokeOperator) 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_MsgRevokeOperator) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgIssueNFT) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5470,7 +5278,7 @@ func (x *fastReflection_MsgRevokeOperator) 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_MsgRevokeOperator) IsValid() bool { +func (x *fastReflection_MsgIssueNFT) IsValid() bool { return x != nil } @@ -5480,9 +5288,9 @@ func (x *fastReflection_MsgRevokeOperator) 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_MsgRevokeOperator) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgIssueNFT) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRevokeOperator) + x := input.Message.Interface().(*MsgIssueNFT) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5498,11 +5306,15 @@ func (x *fastReflection_MsgRevokeOperator) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Holder) + l = len(x.Name) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Operator) + l = len(x.Meta) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Owner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -5516,7 +5328,7 @@ func (x *fastReflection_MsgRevokeOperator) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgRevokeOperator) + x := input.Message.Interface().(*MsgIssueNFT) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5535,17 +5347,24 @@ func (x *fastReflection_MsgRevokeOperator) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) + if len(x.Owner) > 0 { + i -= len(x.Owner) + copy(dAtA[i:], x.Owner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) + i-- + dAtA[i] = 0x22 + } + if len(x.Meta) > 0 { + i -= len(x.Meta) + copy(dAtA[i:], x.Meta) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Meta))) i-- dAtA[i] = 0x1a } - if len(x.Holder) > 0 { - i -= len(x.Holder) - copy(dAtA[i:], x.Holder) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holder))) + if len(x.Name) > 0 { + i -= len(x.Name) + copy(dAtA[i:], x.Name) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) i-- dAtA[i] = 0x12 } @@ -5567,7 +5386,7 @@ func (x *fastReflection_MsgRevokeOperator) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgRevokeOperator) + x := input.Message.Interface().(*MsgIssueNFT) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5599,10 +5418,10 @@ func (x *fastReflection_MsgRevokeOperator) 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: MsgRevokeOperator: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIssueNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokeOperator: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIssueNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5639,7 +5458,7 @@ func (x *fastReflection_MsgRevokeOperator) 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 Holder", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5667,11 +5486,11 @@ func (x *fastReflection_MsgRevokeOperator) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Holder = string(dAtA[iNdEx:postIndex]) + x.Name = 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 Operator", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5699,7 +5518,39 @@ func (x *fastReflection_MsgRevokeOperator) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Operator = string(dAtA[iNdEx:postIndex]) + x.Meta = 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 Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -5737,23 +5588,25 @@ func (x *fastReflection_MsgRevokeOperator) ProtoMethods() *protoiface.Methods { } var ( - md_MsgRevokeOperatorResponse protoreflect.MessageDescriptor + md_MsgIssueNFTResponse protoreflect.MessageDescriptor + fd_MsgIssueNFTResponse_token_type protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgRevokeOperatorResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgRevokeOperatorResponse") + md_MsgIssueNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgIssueNFTResponse") + fd_MsgIssueNFTResponse_token_type = md_MsgIssueNFTResponse.Fields().ByName("token_type") } -var _ protoreflect.Message = (*fastReflection_MsgRevokeOperatorResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgIssueNFTResponse)(nil) -type fastReflection_MsgRevokeOperatorResponse MsgRevokeOperatorResponse +type fastReflection_MsgIssueNFTResponse MsgIssueNFTResponse -func (x *MsgRevokeOperatorResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRevokeOperatorResponse)(x) +func (x *MsgIssueNFTResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgIssueNFTResponse)(x) } -func (x *MsgRevokeOperatorResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgIssueNFTResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5765,43 +5618,43 @@ func (x *MsgRevokeOperatorResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgRevokeOperatorResponse_messageType fastReflection_MsgRevokeOperatorResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgRevokeOperatorResponse_messageType{} +var _fastReflection_MsgIssueNFTResponse_messageType fastReflection_MsgIssueNFTResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgIssueNFTResponse_messageType{} -type fastReflection_MsgRevokeOperatorResponse_messageType struct{} +type fastReflection_MsgIssueNFTResponse_messageType struct{} -func (x fastReflection_MsgRevokeOperatorResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRevokeOperatorResponse)(nil) +func (x fastReflection_MsgIssueNFTResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgIssueNFTResponse)(nil) } -func (x fastReflection_MsgRevokeOperatorResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRevokeOperatorResponse) +func (x fastReflection_MsgIssueNFTResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgIssueNFTResponse) } -func (x fastReflection_MsgRevokeOperatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRevokeOperatorResponse +func (x fastReflection_MsgIssueNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgIssueNFTResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgRevokeOperatorResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRevokeOperatorResponse +func (x *fastReflection_MsgIssueNFTResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgIssueNFTResponse } // 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_MsgRevokeOperatorResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgRevokeOperatorResponse_messageType +func (x *fastReflection_MsgIssueNFTResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgIssueNFTResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRevokeOperatorResponse) New() protoreflect.Message { - return new(fastReflection_MsgRevokeOperatorResponse) +func (x *fastReflection_MsgIssueNFTResponse) New() protoreflect.Message { + return new(fastReflection_MsgIssueNFTResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRevokeOperatorResponse) Interface() protoreflect.ProtoMessage { - return (*MsgRevokeOperatorResponse)(x) +func (x *fastReflection_MsgIssueNFTResponse) Interface() protoreflect.ProtoMessage { + return (*MsgIssueNFTResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -5809,7 +5662,13 @@ func (x *fastReflection_MsgRevokeOperatorResponse) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgRevokeOperatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgIssueNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TokenType != "" { + value := protoreflect.ValueOfString(x.TokenType) + if !f(fd_MsgIssueNFTResponse_token_type, value) { + return + } + } } // Has reports whether a field is populated. @@ -5823,13 +5682,15 @@ func (x *fastReflection_MsgRevokeOperatorResponse) Range(f func(protoreflect.Fie // 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_MsgRevokeOperatorResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgIssueNFTResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "lbm.collection.v1.MsgIssueNFTResponse.token_type": + return x.TokenType != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse does not contain field %s", fd.FullName())) } } @@ -5839,13 +5700,15 @@ func (x *fastReflection_MsgRevokeOperatorResponse) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRevokeOperatorResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgIssueNFTResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "lbm.collection.v1.MsgIssueNFTResponse.token_type": + x.TokenType = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse does not contain field %s", fd.FullName())) } } @@ -5855,13 +5718,16 @@ func (x *fastReflection_MsgRevokeOperatorResponse) Clear(fd protoreflect.FieldDe // 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_MsgRevokeOperatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgIssueNFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "lbm.collection.v1.MsgIssueNFTResponse.token_type": + value := x.TokenType + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse does not contain field %s", descriptor.FullName())) } } @@ -5875,13 +5741,15 @@ func (x *fastReflection_MsgRevokeOperatorResponse) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRevokeOperatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgIssueNFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "lbm.collection.v1.MsgIssueNFTResponse.token_type": + x.TokenType = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse does not contain field %s", fd.FullName())) } } @@ -5895,36 +5763,40 @@ func (x *fastReflection_MsgRevokeOperatorResponse) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRevokeOperatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgIssueNFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "lbm.collection.v1.MsgIssueNFTResponse.token_type": + panic(fmt.Errorf("field token_type of message lbm.collection.v1.MsgIssueNFTResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse 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_MsgRevokeOperatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgIssueNFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "lbm.collection.v1.MsgIssueNFTResponse.token_type": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokeOperatorResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokeOperatorResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse 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_MsgRevokeOperatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgIssueNFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgRevokeOperatorResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgIssueNFTResponse", d.FullName())) } panic("unreachable") } @@ -5932,7 +5804,7 @@ func (x *fastReflection_MsgRevokeOperatorResponse) WhichOneof(d protoreflect.One // 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_MsgRevokeOperatorResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgIssueNFTResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5943,7 +5815,7 @@ func (x *fastReflection_MsgRevokeOperatorResponse) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRevokeOperatorResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgIssueNFTResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5955,7 +5827,7 @@ func (x *fastReflection_MsgRevokeOperatorResponse) SetUnknown(fields protoreflec // 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_MsgRevokeOperatorResponse) IsValid() bool { +func (x *fastReflection_MsgIssueNFTResponse) IsValid() bool { return x != nil } @@ -5965,9 +5837,9 @@ func (x *fastReflection_MsgRevokeOperatorResponse) 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_MsgRevokeOperatorResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgIssueNFTResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRevokeOperatorResponse) + x := input.Message.Interface().(*MsgIssueNFTResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5979,6 +5851,10 @@ func (x *fastReflection_MsgRevokeOperatorResponse) ProtoMethods() *protoiface.Me var n int var l int _ = l + l = len(x.TokenType) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -5989,7 +5865,7 @@ func (x *fastReflection_MsgRevokeOperatorResponse) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgRevokeOperatorResponse) + x := input.Message.Interface().(*MsgIssueNFTResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6008,6 +5884,13 @@ func (x *fastReflection_MsgRevokeOperatorResponse) ProtoMethods() *protoiface.Me i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.TokenType) > 0 { + i -= len(x.TokenType) + copy(dAtA[i:], x.TokenType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenType))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -6019,7 +5902,7 @@ func (x *fastReflection_MsgRevokeOperatorResponse) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgRevokeOperatorResponse) + x := input.Message.Interface().(*MsgIssueNFTResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6051,12 +5934,44 @@ func (x *fastReflection_MsgRevokeOperatorResponse) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokeOperatorResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIssueNFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokeOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIssueNFTResponse: 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 TokenType", 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.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -6092,32 +6007,83 @@ func (x *fastReflection_MsgRevokeOperatorResponse) ProtoMethods() *protoiface.Me } } +var _ protoreflect.List = (*_MsgMintNFT_4_list)(nil) + +type _MsgMintNFT_4_list struct { + list *[]*MintNFTParam +} + +func (x *_MsgMintNFT_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgMintNFT_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgMintNFT_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*MintNFTParam) + (*x.list)[i] = concreteValue +} + +func (x *_MsgMintNFT_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*MintNFTParam) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgMintNFT_4_list) AppendMutable() protoreflect.Value { + v := new(MintNFTParam) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgMintNFT_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgMintNFT_4_list) NewElement() protoreflect.Value { + v := new(MintNFTParam) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgMintNFT_4_list) IsValid() bool { + return x.list != nil +} + var ( - md_MsgCreateContract protoreflect.MessageDescriptor - fd_MsgCreateContract_owner protoreflect.FieldDescriptor - fd_MsgCreateContract_name protoreflect.FieldDescriptor - fd_MsgCreateContract_uri protoreflect.FieldDescriptor - fd_MsgCreateContract_meta protoreflect.FieldDescriptor + md_MsgMintNFT protoreflect.MessageDescriptor + fd_MsgMintNFT_contract_id protoreflect.FieldDescriptor + fd_MsgMintNFT_from protoreflect.FieldDescriptor + fd_MsgMintNFT_to protoreflect.FieldDescriptor + fd_MsgMintNFT_params protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgCreateContract = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgCreateContract") - fd_MsgCreateContract_owner = md_MsgCreateContract.Fields().ByName("owner") - fd_MsgCreateContract_name = md_MsgCreateContract.Fields().ByName("name") - fd_MsgCreateContract_uri = md_MsgCreateContract.Fields().ByName("uri") - fd_MsgCreateContract_meta = md_MsgCreateContract.Fields().ByName("meta") + md_MsgMintNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgMintNFT") + fd_MsgMintNFT_contract_id = md_MsgMintNFT.Fields().ByName("contract_id") + fd_MsgMintNFT_from = md_MsgMintNFT.Fields().ByName("from") + fd_MsgMintNFT_to = md_MsgMintNFT.Fields().ByName("to") + fd_MsgMintNFT_params = md_MsgMintNFT.Fields().ByName("params") } -var _ protoreflect.Message = (*fastReflection_MsgCreateContract)(nil) +var _ protoreflect.Message = (*fastReflection_MsgMintNFT)(nil) -type fastReflection_MsgCreateContract MsgCreateContract +type fastReflection_MsgMintNFT MsgMintNFT -func (x *MsgCreateContract) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateContract)(x) +func (x *MsgMintNFT) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgMintNFT)(x) } -func (x *MsgCreateContract) slowProtoReflect() protoreflect.Message { +func (x *MsgMintNFT) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6129,43 +6095,43 @@ func (x *MsgCreateContract) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgCreateContract_messageType fastReflection_MsgCreateContract_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateContract_messageType{} +var _fastReflection_MsgMintNFT_messageType fastReflection_MsgMintNFT_messageType +var _ protoreflect.MessageType = fastReflection_MsgMintNFT_messageType{} -type fastReflection_MsgCreateContract_messageType struct{} +type fastReflection_MsgMintNFT_messageType struct{} -func (x fastReflection_MsgCreateContract_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateContract)(nil) +func (x fastReflection_MsgMintNFT_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgMintNFT)(nil) } -func (x fastReflection_MsgCreateContract_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateContract) +func (x fastReflection_MsgMintNFT_messageType) New() protoreflect.Message { + return new(fastReflection_MsgMintNFT) } -func (x fastReflection_MsgCreateContract_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateContract +func (x fastReflection_MsgMintNFT_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMintNFT } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCreateContract) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateContract +func (x *fastReflection_MsgMintNFT) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMintNFT } // 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_MsgCreateContract) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateContract_messageType +func (x *fastReflection_MsgMintNFT) Type() protoreflect.MessageType { + return _fastReflection_MsgMintNFT_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateContract) New() protoreflect.Message { - return new(fastReflection_MsgCreateContract) +func (x *fastReflection_MsgMintNFT) New() protoreflect.Message { + return new(fastReflection_MsgMintNFT) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateContract) Interface() protoreflect.ProtoMessage { - return (*MsgCreateContract)(x) +func (x *fastReflection_MsgMintNFT) Interface() protoreflect.ProtoMessage { + return (*MsgMintNFT)(x) } // Range iterates over every populated field in an undefined order, @@ -6173,28 +6139,28 @@ func (x *fastReflection_MsgCreateContract) 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_MsgCreateContract) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_MsgCreateContract_owner, value) { +func (x *fastReflection_MsgMintNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ContractId != "" { + value := protoreflect.ValueOfString(x.ContractId) + if !f(fd_MsgMintNFT_contract_id, value) { return } } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_MsgCreateContract_name, value) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgMintNFT_from, value) { return } } - if x.Uri != "" { - value := protoreflect.ValueOfString(x.Uri) - if !f(fd_MsgCreateContract_uri, value) { + if x.To != "" { + value := protoreflect.ValueOfString(x.To) + if !f(fd_MsgMintNFT_to, value) { return } } - if x.Meta != "" { - value := protoreflect.ValueOfString(x.Meta) - if !f(fd_MsgCreateContract_meta, value) { + if len(x.Params) != 0 { + value := protoreflect.ValueOfList(&_MsgMintNFT_4_list{list: &x.Params}) + if !f(fd_MsgMintNFT_params, value) { return } } @@ -6211,21 +6177,21 @@ func (x *fastReflection_MsgCreateContract) 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_MsgCreateContract) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgMintNFT) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContract.owner": - return x.Owner != "" - case "lbm.collection.v1.MsgCreateContract.name": - return x.Name != "" - case "lbm.collection.v1.MsgCreateContract.uri": - return x.Uri != "" - case "lbm.collection.v1.MsgCreateContract.meta": - return x.Meta != "" + case "lbm.collection.v1.MsgMintNFT.contract_id": + return x.ContractId != "" + case "lbm.collection.v1.MsgMintNFT.from": + return x.From != "" + case "lbm.collection.v1.MsgMintNFT.to": + return x.To != "" + case "lbm.collection.v1.MsgMintNFT.params": + return len(x.Params) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT does not contain field %s", fd.FullName())) } } @@ -6235,21 +6201,21 @@ func (x *fastReflection_MsgCreateContract) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateContract) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgMintNFT) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContract.owner": - x.Owner = "" - case "lbm.collection.v1.MsgCreateContract.name": - x.Name = "" - case "lbm.collection.v1.MsgCreateContract.uri": - x.Uri = "" - case "lbm.collection.v1.MsgCreateContract.meta": - x.Meta = "" + case "lbm.collection.v1.MsgMintNFT.contract_id": + x.ContractId = "" + case "lbm.collection.v1.MsgMintNFT.from": + x.From = "" + case "lbm.collection.v1.MsgMintNFT.to": + x.To = "" + case "lbm.collection.v1.MsgMintNFT.params": + x.Params = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT does not contain field %s", fd.FullName())) } } @@ -6259,25 +6225,28 @@ func (x *fastReflection_MsgCreateContract) 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_MsgCreateContract) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgCreateContract.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgCreateContract.name": - value := x.Name + case "lbm.collection.v1.MsgMintNFT.contract_id": + value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgCreateContract.uri": - value := x.Uri + case "lbm.collection.v1.MsgMintNFT.from": + value := x.From return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgCreateContract.meta": - value := x.Meta + case "lbm.collection.v1.MsgMintNFT.to": + value := x.To return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgMintNFT.params": + if len(x.Params) == 0 { + return protoreflect.ValueOfList(&_MsgMintNFT_4_list{}) + } + listValue := &_MsgMintNFT_4_list{list: &x.Params} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT does not contain field %s", descriptor.FullName())) } } @@ -6291,21 +6260,23 @@ func (x *fastReflection_MsgCreateContract) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateContract) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgMintNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContract.owner": - x.Owner = value.Interface().(string) - case "lbm.collection.v1.MsgCreateContract.name": - x.Name = value.Interface().(string) - case "lbm.collection.v1.MsgCreateContract.uri": - x.Uri = value.Interface().(string) - case "lbm.collection.v1.MsgCreateContract.meta": - x.Meta = value.Interface().(string) + case "lbm.collection.v1.MsgMintNFT.contract_id": + x.ContractId = value.Interface().(string) + case "lbm.collection.v1.MsgMintNFT.from": + x.From = value.Interface().(string) + case "lbm.collection.v1.MsgMintNFT.to": + x.To = value.Interface().(string) + case "lbm.collection.v1.MsgMintNFT.params": + lv := value.List() + clv := lv.(*_MsgMintNFT_4_list) + x.Params = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT does not contain field %s", fd.FullName())) } } @@ -6319,52 +6290,57 @@ func (x *fastReflection_MsgCreateContract) 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_MsgCreateContract) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContract.owner": - panic(fmt.Errorf("field owner of message lbm.collection.v1.MsgCreateContract is not mutable")) - case "lbm.collection.v1.MsgCreateContract.name": - panic(fmt.Errorf("field name of message lbm.collection.v1.MsgCreateContract is not mutable")) - case "lbm.collection.v1.MsgCreateContract.uri": - panic(fmt.Errorf("field uri of message lbm.collection.v1.MsgCreateContract is not mutable")) - case "lbm.collection.v1.MsgCreateContract.meta": - panic(fmt.Errorf("field meta of message lbm.collection.v1.MsgCreateContract is not mutable")) + case "lbm.collection.v1.MsgMintNFT.params": + if x.Params == nil { + x.Params = []*MintNFTParam{} + } + value := &_MsgMintNFT_4_list{list: &x.Params} + return protoreflect.ValueOfList(value) + case "lbm.collection.v1.MsgMintNFT.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgMintNFT is not mutable")) + case "lbm.collection.v1.MsgMintNFT.from": + panic(fmt.Errorf("field from of message lbm.collection.v1.MsgMintNFT is not mutable")) + case "lbm.collection.v1.MsgMintNFT.to": + panic(fmt.Errorf("field to of message lbm.collection.v1.MsgMintNFT is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT 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_MsgCreateContract) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContract.owner": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgCreateContract.name": + case "lbm.collection.v1.MsgMintNFT.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgCreateContract.uri": + case "lbm.collection.v1.MsgMintNFT.from": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgCreateContract.meta": + case "lbm.collection.v1.MsgMintNFT.to": return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgMintNFT.params": + list := []*MintNFTParam{} + return protoreflect.ValueOfList(&_MsgMintNFT_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContract does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT 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_MsgCreateContract) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgMintNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgCreateContract", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgMintNFT", d.FullName())) } panic("unreachable") } @@ -6372,7 +6348,7 @@ func (x *fastReflection_MsgCreateContract) 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_MsgCreateContract) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgMintNFT) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6383,7 +6359,7 @@ func (x *fastReflection_MsgCreateContract) 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_MsgCreateContract) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgMintNFT) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6395,7 +6371,7 @@ func (x *fastReflection_MsgCreateContract) 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_MsgCreateContract) IsValid() bool { +func (x *fastReflection_MsgMintNFT) IsValid() bool { return x != nil } @@ -6405,9 +6381,9 @@ func (x *fastReflection_MsgCreateContract) 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_MsgCreateContract) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgMintNFT) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateContract) + x := input.Message.Interface().(*MsgMintNFT) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6419,21 +6395,23 @@ func (x *fastReflection_MsgCreateContract) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Owner) + l = len(x.ContractId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Name) + l = len(x.From) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Uri) + l = len(x.To) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Meta) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.Params) > 0 { + for _, e := range x.Params { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } if x.unknownFields != nil { n += len(x.unknownFields) @@ -6445,7 +6423,7 @@ func (x *fastReflection_MsgCreateContract) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateContract) + x := input.Message.Interface().(*MsgMintNFT) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6464,31 +6442,40 @@ func (x *fastReflection_MsgCreateContract) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Meta) > 0 { - i -= len(x.Meta) - copy(dAtA[i:], x.Meta) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Meta))) - i-- - dAtA[i] = 0x22 + if len(x.Params) > 0 { + for iNdEx := len(x.Params) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Params[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } } - if len(x.Uri) > 0 { - i -= len(x.Uri) - copy(dAtA[i:], x.Uri) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Uri))) + 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] = 0x1a } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) + 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.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) + 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 } @@ -6503,7 +6490,7 @@ func (x *fastReflection_MsgCreateContract) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateContract) + x := input.Message.Interface().(*MsgMintNFT) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6535,15 +6522,15 @@ func (x *fastReflection_MsgCreateContract) 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: MsgCreateContract: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateContract: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintNFT: 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 Owner", wireType) + 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 { @@ -6571,11 +6558,11 @@ func (x *fastReflection_MsgCreateContract) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Owner = string(dAtA[iNdEx:postIndex]) + 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 Name", wireType) + 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 { @@ -6603,11 +6590,11 @@ func (x *fastReflection_MsgCreateContract) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Name = string(dAtA[iNdEx:postIndex]) + 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 Uri", wireType) + 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 { @@ -6635,13 +6622,13 @@ func (x *fastReflection_MsgCreateContract) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Uri = string(dAtA[iNdEx:postIndex]) + x.To = 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 Meta", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6651,23 +6638,25 @@ func (x *fastReflection_MsgCreateContract) ProtoMethods() *protoiface.Methods { } 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + 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.Meta = string(dAtA[iNdEx:postIndex]) + x.Params = append(x.Params, &MintNFTParam{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params[len(x.Params)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -6704,6532 +6693,73 @@ func (x *fastReflection_MsgCreateContract) ProtoMethods() *protoiface.Methods { } } -var ( - md_MsgCreateContractResponse protoreflect.MessageDescriptor - fd_MsgCreateContractResponse_contract_id protoreflect.FieldDescriptor -) +var _ protoreflect.List = (*_MsgMintNFTResponse_1_list)(nil) -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgCreateContractResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgCreateContractResponse") - fd_MsgCreateContractResponse_contract_id = md_MsgCreateContractResponse.Fields().ByName("contract_id") +type _MsgMintNFTResponse_1_list struct { + list *[]string } -var _ protoreflect.Message = (*fastReflection_MsgCreateContractResponse)(nil) +func (x *_MsgMintNFTResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} -type fastReflection_MsgCreateContractResponse MsgCreateContractResponse +func (x *_MsgMintNFTResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} -func (x *MsgCreateContractResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateContractResponse)(x) +func (x *_MsgMintNFTResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue } -func (x *MsgCreateContractResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_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_MsgCreateContractResponse_messageType fastReflection_MsgCreateContractResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateContractResponse_messageType{} - -type fastReflection_MsgCreateContractResponse_messageType struct{} - -func (x fastReflection_MsgCreateContractResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateContractResponse)(nil) -} -func (x fastReflection_MsgCreateContractResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateContractResponse) -} -func (x fastReflection_MsgCreateContractResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateContractResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCreateContractResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateContractResponse -} - -// 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_MsgCreateContractResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateContractResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateContractResponse) New() protoreflect.Message { - return new(fastReflection_MsgCreateContractResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateContractResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCreateContractResponse)(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_MsgCreateContractResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgCreateContractResponse_contract_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_MsgCreateContractResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContractResponse.contract_id": - return x.ContractId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse 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_MsgCreateContractResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContractResponse.contract_id": - x.ContractId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse 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_MsgCreateContractResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgCreateContractResponse.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse 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_MsgCreateContractResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContractResponse.contract_id": - x.ContractId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse 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_MsgCreateContractResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContractResponse.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgCreateContractResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse 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_MsgCreateContractResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContractResponse.contract_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgCreateContractResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse 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_MsgCreateContractResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgCreateContractResponse", 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_MsgCreateContractResponse) 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_MsgCreateContractResponse) 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_MsgCreateContractResponse) 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_MsgCreateContractResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateContractResponse) - 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)) - } - 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().(*MsgCreateContractResponse) - 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.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().(*MsgCreateContractResponse) - 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: MsgCreateContractResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateContractResponse: 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 - 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_MsgIssueFT protoreflect.MessageDescriptor - fd_MsgIssueFT_contract_id protoreflect.FieldDescriptor - fd_MsgIssueFT_name protoreflect.FieldDescriptor - fd_MsgIssueFT_meta protoreflect.FieldDescriptor - fd_MsgIssueFT_decimals protoreflect.FieldDescriptor - fd_MsgIssueFT_mintable protoreflect.FieldDescriptor - fd_MsgIssueFT_owner protoreflect.FieldDescriptor - fd_MsgIssueFT_to protoreflect.FieldDescriptor - fd_MsgIssueFT_amount protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgIssueFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgIssueFT") - fd_MsgIssueFT_contract_id = md_MsgIssueFT.Fields().ByName("contract_id") - fd_MsgIssueFT_name = md_MsgIssueFT.Fields().ByName("name") - fd_MsgIssueFT_meta = md_MsgIssueFT.Fields().ByName("meta") - fd_MsgIssueFT_decimals = md_MsgIssueFT.Fields().ByName("decimals") - fd_MsgIssueFT_mintable = md_MsgIssueFT.Fields().ByName("mintable") - fd_MsgIssueFT_owner = md_MsgIssueFT.Fields().ByName("owner") - fd_MsgIssueFT_to = md_MsgIssueFT.Fields().ByName("to") - fd_MsgIssueFT_amount = md_MsgIssueFT.Fields().ByName("amount") -} - -var _ protoreflect.Message = (*fastReflection_MsgIssueFT)(nil) - -type fastReflection_MsgIssueFT MsgIssueFT - -func (x *MsgIssueFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgIssueFT)(x) -} - -func (x *MsgIssueFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_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_MsgIssueFT_messageType fastReflection_MsgIssueFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgIssueFT_messageType{} - -type fastReflection_MsgIssueFT_messageType struct{} - -func (x fastReflection_MsgIssueFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgIssueFT)(nil) -} -func (x fastReflection_MsgIssueFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgIssueFT) -} -func (x fastReflection_MsgIssueFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueFT -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgIssueFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueFT -} - -// 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_MsgIssueFT) Type() protoreflect.MessageType { - return _fastReflection_MsgIssueFT_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgIssueFT) New() protoreflect.Message { - return new(fastReflection_MsgIssueFT) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgIssueFT) Interface() protoreflect.ProtoMessage { - return (*MsgIssueFT)(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_MsgIssueFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgIssueFT_contract_id, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_MsgIssueFT_name, value) { - return - } - } - if x.Meta != "" { - value := protoreflect.ValueOfString(x.Meta) - if !f(fd_MsgIssueFT_meta, value) { - return - } - } - if x.Decimals != int32(0) { - value := protoreflect.ValueOfInt32(x.Decimals) - if !f(fd_MsgIssueFT_decimals, value) { - return - } - } - if x.Mintable != false { - value := protoreflect.ValueOfBool(x.Mintable) - if !f(fd_MsgIssueFT_mintable, value) { - return - } - } - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_MsgIssueFT_owner, value) { - return - } - } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_MsgIssueFT_to, value) { - return - } - } - if x.Amount != "" { - value := protoreflect.ValueOfString(x.Amount) - if !f(fd_MsgIssueFT_amount, 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_MsgIssueFT) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFT.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgIssueFT.name": - return x.Name != "" - case "lbm.collection.v1.MsgIssueFT.meta": - return x.Meta != "" - case "lbm.collection.v1.MsgIssueFT.decimals": - return x.Decimals != int32(0) - case "lbm.collection.v1.MsgIssueFT.mintable": - return x.Mintable != false - case "lbm.collection.v1.MsgIssueFT.owner": - return x.Owner != "" - case "lbm.collection.v1.MsgIssueFT.to": - return x.To != "" - case "lbm.collection.v1.MsgIssueFT.amount": - return x.Amount != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT 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_MsgIssueFT) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgIssueFT.name": - x.Name = "" - case "lbm.collection.v1.MsgIssueFT.meta": - x.Meta = "" - case "lbm.collection.v1.MsgIssueFT.decimals": - x.Decimals = int32(0) - case "lbm.collection.v1.MsgIssueFT.mintable": - x.Mintable = false - case "lbm.collection.v1.MsgIssueFT.owner": - x.Owner = "" - case "lbm.collection.v1.MsgIssueFT.to": - x.To = "" - case "lbm.collection.v1.MsgIssueFT.amount": - x.Amount = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT 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_MsgIssueFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgIssueFT.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgIssueFT.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgIssueFT.meta": - value := x.Meta - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgIssueFT.decimals": - value := x.Decimals - return protoreflect.ValueOfInt32(value) - case "lbm.collection.v1.MsgIssueFT.mintable": - value := x.Mintable - return protoreflect.ValueOfBool(value) - case "lbm.collection.v1.MsgIssueFT.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgIssueFT.to": - value := x.To - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgIssueFT.amount": - value := x.Amount - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT 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_MsgIssueFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFT.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgIssueFT.name": - x.Name = value.Interface().(string) - case "lbm.collection.v1.MsgIssueFT.meta": - x.Meta = value.Interface().(string) - case "lbm.collection.v1.MsgIssueFT.decimals": - x.Decimals = int32(value.Int()) - case "lbm.collection.v1.MsgIssueFT.mintable": - x.Mintable = value.Bool() - case "lbm.collection.v1.MsgIssueFT.owner": - x.Owner = value.Interface().(string) - case "lbm.collection.v1.MsgIssueFT.to": - x.To = value.Interface().(string) - case "lbm.collection.v1.MsgIssueFT.amount": - x.Amount = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT 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_MsgIssueFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgIssueFT is not mutable")) - case "lbm.collection.v1.MsgIssueFT.name": - panic(fmt.Errorf("field name of message lbm.collection.v1.MsgIssueFT is not mutable")) - case "lbm.collection.v1.MsgIssueFT.meta": - panic(fmt.Errorf("field meta of message lbm.collection.v1.MsgIssueFT is not mutable")) - case "lbm.collection.v1.MsgIssueFT.decimals": - panic(fmt.Errorf("field decimals of message lbm.collection.v1.MsgIssueFT is not mutable")) - case "lbm.collection.v1.MsgIssueFT.mintable": - panic(fmt.Errorf("field mintable of message lbm.collection.v1.MsgIssueFT is not mutable")) - case "lbm.collection.v1.MsgIssueFT.owner": - panic(fmt.Errorf("field owner of message lbm.collection.v1.MsgIssueFT is not mutable")) - case "lbm.collection.v1.MsgIssueFT.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.MsgIssueFT is not mutable")) - case "lbm.collection.v1.MsgIssueFT.amount": - panic(fmt.Errorf("field amount of message lbm.collection.v1.MsgIssueFT is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT 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_MsgIssueFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgIssueFT.name": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgIssueFT.meta": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgIssueFT.decimals": - return protoreflect.ValueOfInt32(int32(0)) - case "lbm.collection.v1.MsgIssueFT.mintable": - return protoreflect.ValueOfBool(false) - case "lbm.collection.v1.MsgIssueFT.owner": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgIssueFT.to": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgIssueFT.amount": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT 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_MsgIssueFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgIssueFT", 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_MsgIssueFT) 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_MsgIssueFT) 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_MsgIssueFT) 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_MsgIssueFT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgIssueFT) - 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.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Meta) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Decimals != 0 { - n += 1 + runtime.Sov(uint64(x.Decimals)) - } - if x.Mintable { - n += 2 - } - l = len(x.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.To) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Amount) - 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().(*MsgIssueFT) - 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.Amount) > 0 { - i -= len(x.Amount) - copy(dAtA[i:], x.Amount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) - i-- - dAtA[i] = 0x42 - } - 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] = 0x3a - } - if len(x.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) - i-- - dAtA[i] = 0x32 - } - if x.Mintable { - i-- - if x.Mintable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if x.Decimals != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Decimals)) - i-- - dAtA[i] = 0x20 - } - if len(x.Meta) > 0 { - i -= len(x.Meta) - copy(dAtA[i:], x.Meta) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Meta))) - i-- - dAtA[i] = 0x1a - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - 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().(*MsgIssueFT) - 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: MsgIssueFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIssueFT: 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 Name", 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.Name = 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 Meta", 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.Meta = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) - } - x.Decimals = 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.Decimals |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Mintable", 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.Mintable = bool(v != 0) - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - 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 - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount = 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_MsgIssueFTResponse protoreflect.MessageDescriptor - fd_MsgIssueFTResponse_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgIssueFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgIssueFTResponse") - fd_MsgIssueFTResponse_token_id = md_MsgIssueFTResponse.Fields().ByName("token_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgIssueFTResponse)(nil) - -type fastReflection_MsgIssueFTResponse MsgIssueFTResponse - -func (x *MsgIssueFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgIssueFTResponse)(x) -} - -func (x *MsgIssueFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_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_MsgIssueFTResponse_messageType fastReflection_MsgIssueFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgIssueFTResponse_messageType{} - -type fastReflection_MsgIssueFTResponse_messageType struct{} - -func (x fastReflection_MsgIssueFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgIssueFTResponse)(nil) -} -func (x fastReflection_MsgIssueFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgIssueFTResponse) -} -func (x fastReflection_MsgIssueFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueFTResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgIssueFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueFTResponse -} - -// 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_MsgIssueFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgIssueFTResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgIssueFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgIssueFTResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgIssueFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgIssueFTResponse)(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_MsgIssueFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_MsgIssueFTResponse_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_MsgIssueFTResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFTResponse.token_id": - return x.TokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse 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_MsgIssueFTResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFTResponse.token_id": - x.TokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse 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_MsgIssueFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgIssueFTResponse.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.MsgIssueFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse 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_MsgIssueFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFTResponse.token_id": - x.TokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse 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_MsgIssueFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFTResponse.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.MsgIssueFTResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse 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_MsgIssueFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFTResponse.token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse 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_MsgIssueFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgIssueFTResponse", 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_MsgIssueFTResponse) 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_MsgIssueFTResponse) 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_MsgIssueFTResponse) 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_MsgIssueFTResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgIssueFTResponse) - 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.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().(*MsgIssueFTResponse) - 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] = 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().(*MsgIssueFTResponse) - 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: MsgIssueFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIssueFTResponse: 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 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_MsgIssueNFT protoreflect.MessageDescriptor - fd_MsgIssueNFT_contract_id protoreflect.FieldDescriptor - fd_MsgIssueNFT_name protoreflect.FieldDescriptor - fd_MsgIssueNFT_meta protoreflect.FieldDescriptor - fd_MsgIssueNFT_owner protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgIssueNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgIssueNFT") - fd_MsgIssueNFT_contract_id = md_MsgIssueNFT.Fields().ByName("contract_id") - fd_MsgIssueNFT_name = md_MsgIssueNFT.Fields().ByName("name") - fd_MsgIssueNFT_meta = md_MsgIssueNFT.Fields().ByName("meta") - fd_MsgIssueNFT_owner = md_MsgIssueNFT.Fields().ByName("owner") -} - -var _ protoreflect.Message = (*fastReflection_MsgIssueNFT)(nil) - -type fastReflection_MsgIssueNFT MsgIssueNFT - -func (x *MsgIssueNFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgIssueNFT)(x) -} - -func (x *MsgIssueNFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_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_MsgIssueNFT_messageType fastReflection_MsgIssueNFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgIssueNFT_messageType{} - -type fastReflection_MsgIssueNFT_messageType struct{} - -func (x fastReflection_MsgIssueNFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgIssueNFT)(nil) -} -func (x fastReflection_MsgIssueNFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgIssueNFT) -} -func (x fastReflection_MsgIssueNFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueNFT -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgIssueNFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueNFT -} - -// 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_MsgIssueNFT) Type() protoreflect.MessageType { - return _fastReflection_MsgIssueNFT_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgIssueNFT) New() protoreflect.Message { - return new(fastReflection_MsgIssueNFT) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgIssueNFT) Interface() protoreflect.ProtoMessage { - return (*MsgIssueNFT)(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_MsgIssueNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgIssueNFT_contract_id, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_MsgIssueNFT_name, value) { - return - } - } - if x.Meta != "" { - value := protoreflect.ValueOfString(x.Meta) - if !f(fd_MsgIssueNFT_meta, value) { - return - } - } - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_MsgIssueNFT_owner, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgIssueNFT) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFT.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgIssueNFT.name": - return x.Name != "" - case "lbm.collection.v1.MsgIssueNFT.meta": - return x.Meta != "" - case "lbm.collection.v1.MsgIssueNFT.owner": - return x.Owner != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT 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_MsgIssueNFT) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgIssueNFT.name": - x.Name = "" - case "lbm.collection.v1.MsgIssueNFT.meta": - x.Meta = "" - case "lbm.collection.v1.MsgIssueNFT.owner": - x.Owner = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT 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_MsgIssueNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgIssueNFT.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgIssueNFT.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgIssueNFT.meta": - value := x.Meta - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgIssueNFT.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT 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_MsgIssueNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFT.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgIssueNFT.name": - x.Name = value.Interface().(string) - case "lbm.collection.v1.MsgIssueNFT.meta": - x.Meta = value.Interface().(string) - case "lbm.collection.v1.MsgIssueNFT.owner": - x.Owner = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT 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_MsgIssueNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgIssueNFT is not mutable")) - case "lbm.collection.v1.MsgIssueNFT.name": - panic(fmt.Errorf("field name of message lbm.collection.v1.MsgIssueNFT is not mutable")) - case "lbm.collection.v1.MsgIssueNFT.meta": - panic(fmt.Errorf("field meta of message lbm.collection.v1.MsgIssueNFT is not mutable")) - case "lbm.collection.v1.MsgIssueNFT.owner": - panic(fmt.Errorf("field owner of message lbm.collection.v1.MsgIssueNFT is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT 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_MsgIssueNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgIssueNFT.name": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgIssueNFT.meta": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgIssueNFT.owner": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT 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_MsgIssueNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgIssueNFT", 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_MsgIssueNFT) 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_MsgIssueNFT) 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_MsgIssueNFT) 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_MsgIssueNFT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgIssueNFT) - 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.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Meta) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Owner) - 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().(*MsgIssueNFT) - 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.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) - i-- - dAtA[i] = 0x22 - } - if len(x.Meta) > 0 { - i -= len(x.Meta) - copy(dAtA[i:], x.Meta) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Meta))) - i-- - dAtA[i] = 0x1a - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - 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().(*MsgIssueNFT) - 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: MsgIssueNFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIssueNFT: 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 Name", 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.Name = 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 Meta", 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.Meta = 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 Owner", 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.Owner = 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_MsgIssueNFTResponse protoreflect.MessageDescriptor - fd_MsgIssueNFTResponse_token_type protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgIssueNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgIssueNFTResponse") - fd_MsgIssueNFTResponse_token_type = md_MsgIssueNFTResponse.Fields().ByName("token_type") -} - -var _ protoreflect.Message = (*fastReflection_MsgIssueNFTResponse)(nil) - -type fastReflection_MsgIssueNFTResponse MsgIssueNFTResponse - -func (x *MsgIssueNFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgIssueNFTResponse)(x) -} - -func (x *MsgIssueNFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_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_MsgIssueNFTResponse_messageType fastReflection_MsgIssueNFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgIssueNFTResponse_messageType{} - -type fastReflection_MsgIssueNFTResponse_messageType struct{} - -func (x fastReflection_MsgIssueNFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgIssueNFTResponse)(nil) -} -func (x fastReflection_MsgIssueNFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgIssueNFTResponse) -} -func (x fastReflection_MsgIssueNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueNFTResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgIssueNFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueNFTResponse -} - -// 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_MsgIssueNFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgIssueNFTResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgIssueNFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgIssueNFTResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgIssueNFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgIssueNFTResponse)(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_MsgIssueNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TokenType != "" { - value := protoreflect.ValueOfString(x.TokenType) - if !f(fd_MsgIssueNFTResponse_token_type, 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_MsgIssueNFTResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFTResponse.token_type": - return x.TokenType != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse 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_MsgIssueNFTResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFTResponse.token_type": - x.TokenType = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse 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_MsgIssueNFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgIssueNFTResponse.token_type": - value := x.TokenType - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse 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_MsgIssueNFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFTResponse.token_type": - x.TokenType = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse 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_MsgIssueNFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFTResponse.token_type": - panic(fmt.Errorf("field token_type of message lbm.collection.v1.MsgIssueNFTResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse 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_MsgIssueNFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFTResponse.token_type": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse 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_MsgIssueNFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgIssueNFTResponse", 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_MsgIssueNFTResponse) 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_MsgIssueNFTResponse) 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_MsgIssueNFTResponse) 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_MsgIssueNFTResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgIssueNFTResponse) - 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.TokenType) - 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().(*MsgIssueNFTResponse) - 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.TokenType) > 0 { - i -= len(x.TokenType) - copy(dAtA[i:], x.TokenType) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenType))) - 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().(*MsgIssueNFTResponse) - 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: MsgIssueNFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIssueNFTResponse: 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 TokenType", 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.TokenType = 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 = (*_MsgMintFT_4_list)(nil) - -type _MsgMintFT_4_list struct { - list *[]*Coin -} - -func (x *_MsgMintFT_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgMintFT_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgMintFT_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) - (*x.list)[i] = concreteValue -} - -func (x *_MsgMintFT_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgMintFT_4_list) AppendMutable() protoreflect.Value { - v := new(Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgMintFT_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgMintFT_4_list) NewElement() protoreflect.Value { - v := new(Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgMintFT_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgMintFT protoreflect.MessageDescriptor - fd_MsgMintFT_contract_id protoreflect.FieldDescriptor - fd_MsgMintFT_from protoreflect.FieldDescriptor - fd_MsgMintFT_to protoreflect.FieldDescriptor - fd_MsgMintFT_amount protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgMintFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgMintFT") - fd_MsgMintFT_contract_id = md_MsgMintFT.Fields().ByName("contract_id") - fd_MsgMintFT_from = md_MsgMintFT.Fields().ByName("from") - fd_MsgMintFT_to = md_MsgMintFT.Fields().ByName("to") - fd_MsgMintFT_amount = md_MsgMintFT.Fields().ByName("amount") -} - -var _ protoreflect.Message = (*fastReflection_MsgMintFT)(nil) - -type fastReflection_MsgMintFT MsgMintFT - -func (x *MsgMintFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMintFT)(x) -} - -func (x *MsgMintFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[18] - 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_MsgMintFT_messageType fastReflection_MsgMintFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgMintFT_messageType{} - -type fastReflection_MsgMintFT_messageType struct{} - -func (x fastReflection_MsgMintFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMintFT)(nil) -} -func (x fastReflection_MsgMintFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMintFT) -} -func (x fastReflection_MsgMintFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintFT -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMintFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintFT -} - -// 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_MsgMintFT) Type() protoreflect.MessageType { - return _fastReflection_MsgMintFT_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMintFT) New() protoreflect.Message { - return new(fastReflection_MsgMintFT) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMintFT) Interface() protoreflect.ProtoMessage { - return (*MsgMintFT)(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_MsgMintFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgMintFT_contract_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgMintFT_from, value) { - return - } - } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_MsgMintFT_to, value) { - return - } - } - if len(x.Amount) != 0 { - value := protoreflect.ValueOfList(&_MsgMintFT_4_list{list: &x.Amount}) - if !f(fd_MsgMintFT_amount, 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_MsgMintFT) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintFT.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgMintFT.from": - return x.From != "" - case "lbm.collection.v1.MsgMintFT.to": - return x.To != "" - case "lbm.collection.v1.MsgMintFT.amount": - return len(x.Amount) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT 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_MsgMintFT) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintFT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgMintFT.from": - x.From = "" - case "lbm.collection.v1.MsgMintFT.to": - x.To = "" - case "lbm.collection.v1.MsgMintFT.amount": - x.Amount = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT 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_MsgMintFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgMintFT.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgMintFT.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgMintFT.to": - value := x.To - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgMintFT.amount": - if len(x.Amount) == 0 { - return protoreflect.ValueOfList(&_MsgMintFT_4_list{}) - } - listValue := &_MsgMintFT_4_list{list: &x.Amount} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT 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_MsgMintFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintFT.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgMintFT.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgMintFT.to": - x.To = value.Interface().(string) - case "lbm.collection.v1.MsgMintFT.amount": - lv := value.List() - clv := lv.(*_MsgMintFT_4_list) - x.Amount = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT 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_MsgMintFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintFT.amount": - if x.Amount == nil { - x.Amount = []*Coin{} - } - value := &_MsgMintFT_4_list{list: &x.Amount} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.MsgMintFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgMintFT is not mutable")) - case "lbm.collection.v1.MsgMintFT.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgMintFT is not mutable")) - case "lbm.collection.v1.MsgMintFT.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.MsgMintFT is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT 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_MsgMintFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgMintFT.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgMintFT.to": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgMintFT.amount": - list := []*Coin{} - return protoreflect.ValueOfList(&_MsgMintFT_4_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT 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_MsgMintFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgMintFT", 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_MsgMintFT) 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_MsgMintFT) 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_MsgMintFT) 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_MsgMintFT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMintFT) - 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.To) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Amount) > 0 { - for _, e := range x.Amount { - l = options.Size(e) - 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().(*MsgMintFT) - 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.Amount) > 0 { - for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Amount[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.To) > 0 { - i -= len(x.To) - copy(dAtA[i:], x.To) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.To))) - 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().(*MsgMintFT) - 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: MsgMintFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintFT: 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 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 - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount = append(x.Amount, &Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-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_MsgMintFTResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgMintFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgMintFTResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgMintFTResponse)(nil) - -type fastReflection_MsgMintFTResponse MsgMintFTResponse - -func (x *MsgMintFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMintFTResponse)(x) -} - -func (x *MsgMintFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[19] - 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_MsgMintFTResponse_messageType fastReflection_MsgMintFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgMintFTResponse_messageType{} - -type fastReflection_MsgMintFTResponse_messageType struct{} - -func (x fastReflection_MsgMintFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMintFTResponse)(nil) -} -func (x fastReflection_MsgMintFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMintFTResponse) -} -func (x fastReflection_MsgMintFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintFTResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMintFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintFTResponse -} - -// 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_MsgMintFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgMintFTResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMintFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgMintFTResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMintFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgMintFTResponse)(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_MsgMintFTResponse) 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_MsgMintFTResponse) 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.MsgMintFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFTResponse 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_MsgMintFTResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFTResponse 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_MsgMintFTResponse) 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.MsgMintFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFTResponse 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_MsgMintFTResponse) 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.MsgMintFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFTResponse 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_MsgMintFTResponse) 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.MsgMintFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFTResponse 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_MsgMintFTResponse) 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.MsgMintFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFTResponse 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_MsgMintFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgMintFTResponse", 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_MsgMintFTResponse) 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_MsgMintFTResponse) 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_MsgMintFTResponse) 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_MsgMintFTResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMintFTResponse) - 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().(*MsgMintFTResponse) - 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().(*MsgMintFTResponse) - 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: MsgMintFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_MsgMintNFT_4_list)(nil) - -type _MsgMintNFT_4_list struct { - list *[]*MintNFTParam -} - -func (x *_MsgMintNFT_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgMintNFT_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgMintNFT_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MintNFTParam) - (*x.list)[i] = concreteValue -} - -func (x *_MsgMintNFT_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MintNFTParam) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgMintNFT_4_list) AppendMutable() protoreflect.Value { - v := new(MintNFTParam) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgMintNFT_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgMintNFT_4_list) NewElement() protoreflect.Value { - v := new(MintNFTParam) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgMintNFT_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgMintNFT protoreflect.MessageDescriptor - fd_MsgMintNFT_contract_id protoreflect.FieldDescriptor - fd_MsgMintNFT_from protoreflect.FieldDescriptor - fd_MsgMintNFT_to protoreflect.FieldDescriptor - fd_MsgMintNFT_params protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgMintNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgMintNFT") - fd_MsgMintNFT_contract_id = md_MsgMintNFT.Fields().ByName("contract_id") - fd_MsgMintNFT_from = md_MsgMintNFT.Fields().ByName("from") - fd_MsgMintNFT_to = md_MsgMintNFT.Fields().ByName("to") - fd_MsgMintNFT_params = md_MsgMintNFT.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_MsgMintNFT)(nil) - -type fastReflection_MsgMintNFT MsgMintNFT - -func (x *MsgMintNFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMintNFT)(x) -} - -func (x *MsgMintNFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[20] - 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_MsgMintNFT_messageType fastReflection_MsgMintNFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgMintNFT_messageType{} - -type fastReflection_MsgMintNFT_messageType struct{} - -func (x fastReflection_MsgMintNFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMintNFT)(nil) -} -func (x fastReflection_MsgMintNFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMintNFT) -} -func (x fastReflection_MsgMintNFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintNFT -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMintNFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintNFT -} - -// 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_MsgMintNFT) Type() protoreflect.MessageType { - return _fastReflection_MsgMintNFT_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMintNFT) New() protoreflect.Message { - return new(fastReflection_MsgMintNFT) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMintNFT) Interface() protoreflect.ProtoMessage { - return (*MsgMintNFT)(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_MsgMintNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgMintNFT_contract_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgMintNFT_from, value) { - return - } - } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_MsgMintNFT_to, value) { - return - } - } - if len(x.Params) != 0 { - value := protoreflect.ValueOfList(&_MsgMintNFT_4_list{list: &x.Params}) - if !f(fd_MsgMintNFT_params, 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_MsgMintNFT) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFT.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgMintNFT.from": - return x.From != "" - case "lbm.collection.v1.MsgMintNFT.to": - return x.To != "" - case "lbm.collection.v1.MsgMintNFT.params": - return len(x.Params) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT 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_MsgMintNFT) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgMintNFT.from": - x.From = "" - case "lbm.collection.v1.MsgMintNFT.to": - x.To = "" - case "lbm.collection.v1.MsgMintNFT.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT 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_MsgMintNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgMintNFT.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgMintNFT.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgMintNFT.to": - value := x.To - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgMintNFT.params": - if len(x.Params) == 0 { - return protoreflect.ValueOfList(&_MsgMintNFT_4_list{}) - } - listValue := &_MsgMintNFT_4_list{list: &x.Params} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT 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_MsgMintNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFT.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgMintNFT.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgMintNFT.to": - x.To = value.Interface().(string) - case "lbm.collection.v1.MsgMintNFT.params": - lv := value.List() - clv := lv.(*_MsgMintNFT_4_list) - x.Params = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT 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_MsgMintNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFT.params": - if x.Params == nil { - x.Params = []*MintNFTParam{} - } - value := &_MsgMintNFT_4_list{list: &x.Params} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.MsgMintNFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgMintNFT is not mutable")) - case "lbm.collection.v1.MsgMintNFT.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgMintNFT is not mutable")) - case "lbm.collection.v1.MsgMintNFT.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.MsgMintNFT is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT 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_MsgMintNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgMintNFT.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgMintNFT.to": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgMintNFT.params": - list := []*MintNFTParam{} - return protoreflect.ValueOfList(&_MsgMintNFT_4_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT 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_MsgMintNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgMintNFT", 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_MsgMintNFT) 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_MsgMintNFT) 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_MsgMintNFT) 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_MsgMintNFT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMintNFT) - 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.To) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Params) > 0 { - for _, e := range x.Params { - l = options.Size(e) - 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().(*MsgMintNFT) - 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.Params) > 0 { - for iNdEx := len(x.Params) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Params[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.To) > 0 { - i -= len(x.To) - copy(dAtA[i:], x.To) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.To))) - 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().(*MsgMintNFT) - 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: MsgMintNFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintNFT: 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 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 - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", 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.Params = append(x.Params, &MintNFTParam{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params[len(x.Params)-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 _ protoreflect.List = (*_MsgMintNFTResponse_1_list)(nil) - -type _MsgMintNFTResponse_1_list struct { - list *[]string -} - -func (x *_MsgMintNFTResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgMintNFTResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_MsgMintNFTResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgMintNFTResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgMintNFTResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgMintNFTResponse at list field TokenIds as it is not of Message kind")) -} - -func (x *_MsgMintNFTResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgMintNFTResponse_1_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgMintNFTResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgMintNFTResponse protoreflect.MessageDescriptor - fd_MsgMintNFTResponse_token_ids protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgMintNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgMintNFTResponse") - fd_MsgMintNFTResponse_token_ids = md_MsgMintNFTResponse.Fields().ByName("token_ids") -} - -var _ protoreflect.Message = (*fastReflection_MsgMintNFTResponse)(nil) - -type fastReflection_MsgMintNFTResponse MsgMintNFTResponse - -func (x *MsgMintNFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMintNFTResponse)(x) -} - -func (x *MsgMintNFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[21] - 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_MsgMintNFTResponse_messageType fastReflection_MsgMintNFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgMintNFTResponse_messageType{} - -type fastReflection_MsgMintNFTResponse_messageType struct{} - -func (x fastReflection_MsgMintNFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMintNFTResponse)(nil) -} -func (x fastReflection_MsgMintNFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMintNFTResponse) -} -func (x fastReflection_MsgMintNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintNFTResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMintNFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintNFTResponse -} - -// 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_MsgMintNFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgMintNFTResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMintNFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgMintNFTResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMintNFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgMintNFTResponse)(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_MsgMintNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.TokenIds) != 0 { - value := protoreflect.ValueOfList(&_MsgMintNFTResponse_1_list{list: &x.TokenIds}) - if !f(fd_MsgMintNFTResponse_token_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_MsgMintNFTResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFTResponse.token_ids": - return len(x.TokenIds) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse 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_MsgMintNFTResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFTResponse.token_ids": - x.TokenIds = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse 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_MsgMintNFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgMintNFTResponse.token_ids": - if len(x.TokenIds) == 0 { - return protoreflect.ValueOfList(&_MsgMintNFTResponse_1_list{}) - } - listValue := &_MsgMintNFTResponse_1_list{list: &x.TokenIds} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse 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_MsgMintNFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFTResponse.token_ids": - lv := value.List() - clv := lv.(*_MsgMintNFTResponse_1_list) - x.TokenIds = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse 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_MsgMintNFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFTResponse.token_ids": - if x.TokenIds == nil { - x.TokenIds = []string{} - } - value := &_MsgMintNFTResponse_1_list{list: &x.TokenIds} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse 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_MsgMintNFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFTResponse.token_ids": - list := []string{} - return protoreflect.ValueOfList(&_MsgMintNFTResponse_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse 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_MsgMintNFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgMintNFTResponse", 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_MsgMintNFTResponse) 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_MsgMintNFTResponse) 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_MsgMintNFTResponse) 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_MsgMintNFTResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMintNFTResponse) - 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.TokenIds) > 0 { - for _, s := range x.TokenIds { - 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().(*MsgMintNFTResponse) - 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.TokenIds) > 0 { - for iNdEx := len(x.TokenIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.TokenIds[iNdEx]) - copy(dAtA[i:], x.TokenIds[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenIds[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().(*MsgMintNFTResponse) - 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: MsgMintNFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintNFTResponse: 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 TokenIds", 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.TokenIds = append(x.TokenIds, 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_MintNFTParam protoreflect.MessageDescriptor - fd_MintNFTParam_token_type protoreflect.FieldDescriptor - fd_MintNFTParam_name protoreflect.FieldDescriptor - fd_MintNFTParam_meta protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MintNFTParam = File_lbm_collection_v1_tx_proto.Messages().ByName("MintNFTParam") - fd_MintNFTParam_token_type = md_MintNFTParam.Fields().ByName("token_type") - fd_MintNFTParam_name = md_MintNFTParam.Fields().ByName("name") - fd_MintNFTParam_meta = md_MintNFTParam.Fields().ByName("meta") -} - -var _ protoreflect.Message = (*fastReflection_MintNFTParam)(nil) - -type fastReflection_MintNFTParam MintNFTParam - -func (x *MintNFTParam) ProtoReflect() protoreflect.Message { - return (*fastReflection_MintNFTParam)(x) -} - -func (x *MintNFTParam) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[22] - 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_MintNFTParam_messageType fastReflection_MintNFTParam_messageType -var _ protoreflect.MessageType = fastReflection_MintNFTParam_messageType{} - -type fastReflection_MintNFTParam_messageType struct{} - -func (x fastReflection_MintNFTParam_messageType) Zero() protoreflect.Message { - return (*fastReflection_MintNFTParam)(nil) -} -func (x fastReflection_MintNFTParam_messageType) New() protoreflect.Message { - return new(fastReflection_MintNFTParam) -} -func (x fastReflection_MintNFTParam_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MintNFTParam -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MintNFTParam) Descriptor() protoreflect.MessageDescriptor { - return md_MintNFTParam -} - -// 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_MintNFTParam) Type() protoreflect.MessageType { - return _fastReflection_MintNFTParam_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MintNFTParam) New() protoreflect.Message { - return new(fastReflection_MintNFTParam) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MintNFTParam) Interface() protoreflect.ProtoMessage { - return (*MintNFTParam)(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_MintNFTParam) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TokenType != "" { - value := protoreflect.ValueOfString(x.TokenType) - if !f(fd_MintNFTParam_token_type, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_MintNFTParam_name, value) { - return - } - } - if x.Meta != "" { - value := protoreflect.ValueOfString(x.Meta) - if !f(fd_MintNFTParam_meta, 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_MintNFTParam) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MintNFTParam.token_type": - return x.TokenType != "" - case "lbm.collection.v1.MintNFTParam.name": - return x.Name != "" - case "lbm.collection.v1.MintNFTParam.meta": - return x.Meta != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) - } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam 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_MintNFTParam) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MintNFTParam.token_type": - x.TokenType = "" - case "lbm.collection.v1.MintNFTParam.name": - x.Name = "" - case "lbm.collection.v1.MintNFTParam.meta": - x.Meta = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) - } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam 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_MintNFTParam) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MintNFTParam.token_type": - value := x.TokenType - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MintNFTParam.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MintNFTParam.meta": - value := x.Meta - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) - } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam 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_MintNFTParam) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MintNFTParam.token_type": - x.TokenType = value.Interface().(string) - case "lbm.collection.v1.MintNFTParam.name": - x.Name = value.Interface().(string) - case "lbm.collection.v1.MintNFTParam.meta": - x.Meta = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) - } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam 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_MintNFTParam) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MintNFTParam.token_type": - panic(fmt.Errorf("field token_type of message lbm.collection.v1.MintNFTParam is not mutable")) - case "lbm.collection.v1.MintNFTParam.name": - panic(fmt.Errorf("field name of message lbm.collection.v1.MintNFTParam is not mutable")) - case "lbm.collection.v1.MintNFTParam.meta": - panic(fmt.Errorf("field meta of message lbm.collection.v1.MintNFTParam is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) - } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam 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_MintNFTParam) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MintNFTParam.token_type": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MintNFTParam.name": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MintNFTParam.meta": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) - } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam 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_MintNFTParam) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MintNFTParam", 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_MintNFTParam) 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_MintNFTParam) 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_MintNFTParam) 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_MintNFTParam) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MintNFTParam) - 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.TokenType) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Meta) - 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().(*MintNFTParam) - 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.Meta) > 0 { - i -= len(x.Meta) - copy(dAtA[i:], x.Meta) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Meta))) - i-- - dAtA[i] = 0x1a - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - i-- - dAtA[i] = 0x12 - } - if len(x.TokenType) > 0 { - i -= len(x.TokenType) - copy(dAtA[i:], x.TokenType) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenType))) - 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().(*MintNFTParam) - 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: MintNFTParam: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MintNFTParam: 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 TokenType", 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.TokenType = 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 Name", 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.Name = 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 Meta", 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.Meta = 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 = (*_MsgBurnFT_3_list)(nil) - -type _MsgBurnFT_3_list struct { - list *[]*Coin -} - -func (x *_MsgBurnFT_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgBurnFT_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgBurnFT_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) - (*x.list)[i] = concreteValue -} - -func (x *_MsgBurnFT_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgBurnFT_3_list) AppendMutable() protoreflect.Value { - v := new(Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgBurnFT_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgBurnFT_3_list) NewElement() protoreflect.Value { - v := new(Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgBurnFT_3_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgBurnFT protoreflect.MessageDescriptor - fd_MsgBurnFT_contract_id protoreflect.FieldDescriptor - fd_MsgBurnFT_from protoreflect.FieldDescriptor - fd_MsgBurnFT_amount protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgBurnFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgBurnFT") - fd_MsgBurnFT_contract_id = md_MsgBurnFT.Fields().ByName("contract_id") - fd_MsgBurnFT_from = md_MsgBurnFT.Fields().ByName("from") - fd_MsgBurnFT_amount = md_MsgBurnFT.Fields().ByName("amount") -} - -var _ protoreflect.Message = (*fastReflection_MsgBurnFT)(nil) - -type fastReflection_MsgBurnFT MsgBurnFT - -func (x *MsgBurnFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBurnFT)(x) -} - -func (x *MsgBurnFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[23] - 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_MsgBurnFT_messageType fastReflection_MsgBurnFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgBurnFT_messageType{} - -type fastReflection_MsgBurnFT_messageType struct{} - -func (x fastReflection_MsgBurnFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBurnFT)(nil) -} -func (x fastReflection_MsgBurnFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBurnFT) -} -func (x fastReflection_MsgBurnFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnFT -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgBurnFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnFT -} - -// 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_MsgBurnFT) Type() protoreflect.MessageType { - return _fastReflection_MsgBurnFT_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBurnFT) New() protoreflect.Message { - return new(fastReflection_MsgBurnFT) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBurnFT) Interface() protoreflect.ProtoMessage { - return (*MsgBurnFT)(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_MsgBurnFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgBurnFT_contract_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgBurnFT_from, value) { - return - } - } - if len(x.Amount) != 0 { - value := protoreflect.ValueOfList(&_MsgBurnFT_3_list{list: &x.Amount}) - if !f(fd_MsgBurnFT_amount, 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_MsgBurnFT) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgBurnFT.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgBurnFT.from": - return x.From != "" - case "lbm.collection.v1.MsgBurnFT.amount": - return len(x.Amount) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT 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_MsgBurnFT) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgBurnFT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgBurnFT.from": - x.From = "" - case "lbm.collection.v1.MsgBurnFT.amount": - x.Amount = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT 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_MsgBurnFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgBurnFT.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgBurnFT.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgBurnFT.amount": - if len(x.Amount) == 0 { - return protoreflect.ValueOfList(&_MsgBurnFT_3_list{}) - } - listValue := &_MsgBurnFT_3_list{list: &x.Amount} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT 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_MsgBurnFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgBurnFT.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgBurnFT.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgBurnFT.amount": - lv := value.List() - clv := lv.(*_MsgBurnFT_3_list) - x.Amount = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT 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_MsgBurnFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgBurnFT.amount": - if x.Amount == nil { - x.Amount = []*Coin{} - } - value := &_MsgBurnFT_3_list{list: &x.Amount} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.MsgBurnFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgBurnFT is not mutable")) - case "lbm.collection.v1.MsgBurnFT.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgBurnFT is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT 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_MsgBurnFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgBurnFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgBurnFT.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgBurnFT.amount": - list := []*Coin{} - return protoreflect.ValueOfList(&_MsgBurnFT_3_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT 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_MsgBurnFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgBurnFT", 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_MsgBurnFT) 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_MsgBurnFT) 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_MsgBurnFT) 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_MsgBurnFT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBurnFT) - 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)) - } - if len(x.Amount) > 0 { - for _, e := range x.Amount { - l = options.Size(e) - 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().(*MsgBurnFT) - 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.Amount) > 0 { - for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Amount[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] = 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().(*MsgBurnFT) - 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: MsgBurnFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBurnFT: 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 Amount", 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.Amount = append(x.Amount, &Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-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_MsgBurnFTResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgBurnFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgBurnFTResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgBurnFTResponse)(nil) - -type fastReflection_MsgBurnFTResponse MsgBurnFTResponse - -func (x *MsgBurnFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBurnFTResponse)(x) -} - -func (x *MsgBurnFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[24] - 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_MsgBurnFTResponse_messageType fastReflection_MsgBurnFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgBurnFTResponse_messageType{} - -type fastReflection_MsgBurnFTResponse_messageType struct{} - -func (x fastReflection_MsgBurnFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBurnFTResponse)(nil) -} -func (x fastReflection_MsgBurnFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBurnFTResponse) -} -func (x fastReflection_MsgBurnFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnFTResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgBurnFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnFTResponse -} - -// 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_MsgBurnFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgBurnFTResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBurnFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgBurnFTResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBurnFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgBurnFTResponse)(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_MsgBurnFTResponse) 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_MsgBurnFTResponse) 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.MsgBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse 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_MsgBurnFTResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse 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_MsgBurnFTResponse) 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.MsgBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse 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_MsgBurnFTResponse) 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.MsgBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse 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_MsgBurnFTResponse) 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.MsgBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse 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_MsgBurnFTResponse) 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.MsgBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse 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_MsgBurnFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgBurnFTResponse", 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_MsgBurnFTResponse) 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_MsgBurnFTResponse) 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_MsgBurnFTResponse) 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_MsgBurnFTResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBurnFTResponse) - 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().(*MsgBurnFTResponse) - 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().(*MsgBurnFTResponse) - 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: MsgBurnFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBurnFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_MsgOperatorBurnFT_4_list)(nil) - -type _MsgOperatorBurnFT_4_list struct { - list *[]*Coin -} - -func (x *_MsgOperatorBurnFT_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgOperatorBurnFT_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgOperatorBurnFT_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) - (*x.list)[i] = concreteValue -} - -func (x *_MsgOperatorBurnFT_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) +func (x *_MsgMintNFTResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_MsgOperatorBurnFT_4_list) AppendMutable() protoreflect.Value { - v := new(Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_MsgMintNFTResponse_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgMintNFTResponse at list field TokenIds as it is not of Message kind")) } -func (x *_MsgOperatorBurnFT_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } +func (x *_MsgMintNFTResponse_1_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_MsgOperatorBurnFT_4_list) NewElement() protoreflect.Value { - v := new(Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_MsgMintNFTResponse_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) } -func (x *_MsgOperatorBurnFT_4_list) IsValid() bool { +func (x *_MsgMintNFTResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_MsgOperatorBurnFT protoreflect.MessageDescriptor - fd_MsgOperatorBurnFT_contract_id protoreflect.FieldDescriptor - fd_MsgOperatorBurnFT_operator protoreflect.FieldDescriptor - fd_MsgOperatorBurnFT_from protoreflect.FieldDescriptor - fd_MsgOperatorBurnFT_amount protoreflect.FieldDescriptor + md_MsgMintNFTResponse protoreflect.MessageDescriptor + fd_MsgMintNFTResponse_token_ids protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorBurnFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorBurnFT") - fd_MsgOperatorBurnFT_contract_id = md_MsgOperatorBurnFT.Fields().ByName("contract_id") - fd_MsgOperatorBurnFT_operator = md_MsgOperatorBurnFT.Fields().ByName("operator") - fd_MsgOperatorBurnFT_from = md_MsgOperatorBurnFT.Fields().ByName("from") - fd_MsgOperatorBurnFT_amount = md_MsgOperatorBurnFT.Fields().ByName("amount") + md_MsgMintNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgMintNFTResponse") + fd_MsgMintNFTResponse_token_ids = md_MsgMintNFTResponse.Fields().ByName("token_ids") } -var _ protoreflect.Message = (*fastReflection_MsgOperatorBurnFT)(nil) +var _ protoreflect.Message = (*fastReflection_MsgMintNFTResponse)(nil) -type fastReflection_MsgOperatorBurnFT MsgOperatorBurnFT +type fastReflection_MsgMintNFTResponse MsgMintNFTResponse -func (x *MsgOperatorBurnFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnFT)(x) +func (x *MsgMintNFTResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgMintNFTResponse)(x) } -func (x *MsgOperatorBurnFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[25] +func (x *MsgMintNFTResponse) slowProtoReflect() protoreflect.Message { + mi := &file_lbm_collection_v1_tx_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13240,43 +6770,43 @@ func (x *MsgOperatorBurnFT) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgOperatorBurnFT_messageType fastReflection_MsgOperatorBurnFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorBurnFT_messageType{} +var _fastReflection_MsgMintNFTResponse_messageType fastReflection_MsgMintNFTResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgMintNFTResponse_messageType{} -type fastReflection_MsgOperatorBurnFT_messageType struct{} +type fastReflection_MsgMintNFTResponse_messageType struct{} -func (x fastReflection_MsgOperatorBurnFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnFT)(nil) +func (x fastReflection_MsgMintNFTResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgMintNFTResponse)(nil) } -func (x fastReflection_MsgOperatorBurnFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnFT) +func (x fastReflection_MsgMintNFTResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgMintNFTResponse) } -func (x fastReflection_MsgOperatorBurnFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnFT +func (x fastReflection_MsgMintNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMintNFTResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgOperatorBurnFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnFT +func (x *fastReflection_MsgMintNFTResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMintNFTResponse } // 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_MsgOperatorBurnFT) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorBurnFT_messageType +func (x *fastReflection_MsgMintNFTResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgMintNFTResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorBurnFT) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnFT) +func (x *fastReflection_MsgMintNFTResponse) New() protoreflect.Message { + return new(fastReflection_MsgMintNFTResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorBurnFT) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorBurnFT)(x) +func (x *fastReflection_MsgMintNFTResponse) Interface() protoreflect.ProtoMessage { + return (*MsgMintNFTResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -13284,28 +6814,10 @@ func (x *fastReflection_MsgOperatorBurnFT) 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_MsgOperatorBurnFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgOperatorBurnFT_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_MsgOperatorBurnFT_operator, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgOperatorBurnFT_from, value) { - return - } - } - if len(x.Amount) != 0 { - value := protoreflect.ValueOfList(&_MsgOperatorBurnFT_4_list{list: &x.Amount}) - if !f(fd_MsgOperatorBurnFT_amount, value) { +func (x *fastReflection_MsgMintNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.TokenIds) != 0 { + value := protoreflect.ValueOfList(&_MsgMintNFTResponse_1_list{list: &x.TokenIds}) + if !f(fd_MsgMintNFTResponse_token_ids, value) { return } } @@ -13322,21 +6834,15 @@ func (x *fastReflection_MsgOperatorBurnFT) 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_MsgOperatorBurnFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgMintNFTResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorBurnFT.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgOperatorBurnFT.operator": - return x.Operator != "" - case "lbm.collection.v1.MsgOperatorBurnFT.from": - return x.From != "" - case "lbm.collection.v1.MsgOperatorBurnFT.amount": - return len(x.Amount) != 0 + case "lbm.collection.v1.MsgMintNFTResponse.token_ids": + return len(x.TokenIds) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", fd.FullName())) } } @@ -13346,21 +6852,15 @@ func (x *fastReflection_MsgOperatorBurnFT) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorBurnFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgMintNFTResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorBurnFT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgOperatorBurnFT.operator": - x.Operator = "" - case "lbm.collection.v1.MsgOperatorBurnFT.from": - x.From = "" - case "lbm.collection.v1.MsgOperatorBurnFT.amount": - x.Amount = nil + case "lbm.collection.v1.MsgMintNFTResponse.token_ids": + x.TokenIds = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", fd.FullName())) } } @@ -13370,28 +6870,19 @@ func (x *fastReflection_MsgOperatorBurnFT) 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_MsgOperatorBurnFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintNFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgOperatorBurnFT.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorBurnFT.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorBurnFT.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorBurnFT.amount": - if len(x.Amount) == 0 { - return protoreflect.ValueOfList(&_MsgOperatorBurnFT_4_list{}) + case "lbm.collection.v1.MsgMintNFTResponse.token_ids": + if len(x.TokenIds) == 0 { + return protoreflect.ValueOfList(&_MsgMintNFTResponse_1_list{}) } - listValue := &_MsgOperatorBurnFT_4_list{list: &x.Amount} + listValue := &_MsgMintNFTResponse_1_list{list: &x.TokenIds} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", descriptor.FullName())) } } @@ -13405,23 +6896,17 @@ func (x *fastReflection_MsgOperatorBurnFT) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorBurnFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgMintNFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorBurnFT.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorBurnFT.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorBurnFT.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorBurnFT.amount": + case "lbm.collection.v1.MsgMintNFTResponse.token_ids": lv := value.List() - clv := lv.(*_MsgOperatorBurnFT_4_list) - x.Amount = *clv.list + clv := lv.(*_MsgMintNFTResponse_1_list) + x.TokenIds = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", fd.FullName())) } } @@ -13435,57 +6920,45 @@ func (x *fastReflection_MsgOperatorBurnFT) 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_MsgOperatorBurnFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintNFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorBurnFT.amount": - if x.Amount == nil { - x.Amount = []*Coin{} + case "lbm.collection.v1.MsgMintNFTResponse.token_ids": + if x.TokenIds == nil { + x.TokenIds = []string{} } - value := &_MsgOperatorBurnFT_4_list{list: &x.Amount} + value := &_MsgMintNFTResponse_1_list{list: &x.TokenIds} return protoreflect.ValueOfList(value) - case "lbm.collection.v1.MsgOperatorBurnFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgOperatorBurnFT is not mutable")) - case "lbm.collection.v1.MsgOperatorBurnFT.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgOperatorBurnFT is not mutable")) - case "lbm.collection.v1.MsgOperatorBurnFT.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgOperatorBurnFT is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse 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_MsgOperatorBurnFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintNFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorBurnFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorBurnFT.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorBurnFT.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorBurnFT.amount": - list := []*Coin{} - return protoreflect.ValueOfList(&_MsgOperatorBurnFT_4_list{list: &list}) + case "lbm.collection.v1.MsgMintNFTResponse.token_ids": + list := []string{} + return protoreflect.ValueOfList(&_MsgMintNFTResponse_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse 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_MsgOperatorBurnFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgMintNFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorBurnFT", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgMintNFTResponse", d.FullName())) } panic("unreachable") } @@ -13493,7 +6966,7 @@ func (x *fastReflection_MsgOperatorBurnFT) 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_MsgOperatorBurnFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgMintNFTResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -13504,7 +6977,7 @@ func (x *fastReflection_MsgOperatorBurnFT) 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_MsgOperatorBurnFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgMintNFTResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -13516,7 +6989,7 @@ func (x *fastReflection_MsgOperatorBurnFT) 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_MsgOperatorBurnFT) IsValid() bool { +func (x *fastReflection_MsgMintNFTResponse) IsValid() bool { return x != nil } @@ -13526,9 +6999,9 @@ func (x *fastReflection_MsgOperatorBurnFT) 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_MsgOperatorBurnFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgMintNFTResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorBurnFT) + x := input.Message.Interface().(*MsgMintNFTResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13540,21 +7013,9 @@ func (x *fastReflection_MsgOperatorBurnFT) ProtoMethods() *protoiface.Methods { 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)) - } - if len(x.Amount) > 0 { - for _, e := range x.Amount { - l = options.Size(e) + if len(x.TokenIds) > 0 { + for _, s := range x.TokenIds { + l = len(s) n += 1 + l + runtime.Sov(uint64(l)) } } @@ -13568,7 +7029,7 @@ func (x *fastReflection_MsgOperatorBurnFT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorBurnFT) + x := input.Message.Interface().(*MsgMintNFTResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13587,43 +7048,15 @@ func (x *fastReflection_MsgOperatorBurnFT) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Amount[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.TokenIds) > 0 { + for iNdEx := len(x.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.TokenIds[iNdEx]) + copy(dAtA[i:], x.TokenIds[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenIds[iNdEx]))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0xa } } - 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 { @@ -13635,7 +7068,7 @@ func (x *fastReflection_MsgOperatorBurnFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorBurnFT) + x := input.Message.Interface().(*MsgMintNFTResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13667,113 +7100,17 @@ func (x *fastReflection_MsgOperatorBurnFT) 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: MsgOperatorBurnFT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintNFTResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorBurnFT: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMintNFTResponse: 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: + switch fieldNum { + case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenIds", 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 @@ -13783,25 +7120,23 @@ func (x *fastReflection_MsgOperatorBurnFT) ProtoMethods() *protoiface.Methods { } 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + 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.Amount = append(x.Amount, &Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.TokenIds = append(x.TokenIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -13839,24 +7174,30 @@ func (x *fastReflection_MsgOperatorBurnFT) ProtoMethods() *protoiface.Methods { } var ( - md_MsgOperatorBurnFTResponse protoreflect.MessageDescriptor + md_MintNFTParam protoreflect.MessageDescriptor + fd_MintNFTParam_token_type protoreflect.FieldDescriptor + fd_MintNFTParam_name protoreflect.FieldDescriptor + fd_MintNFTParam_meta protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorBurnFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorBurnFTResponse") + md_MintNFTParam = File_lbm_collection_v1_tx_proto.Messages().ByName("MintNFTParam") + fd_MintNFTParam_token_type = md_MintNFTParam.Fields().ByName("token_type") + fd_MintNFTParam_name = md_MintNFTParam.Fields().ByName("name") + fd_MintNFTParam_meta = md_MintNFTParam.Fields().ByName("meta") } -var _ protoreflect.Message = (*fastReflection_MsgOperatorBurnFTResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MintNFTParam)(nil) -type fastReflection_MsgOperatorBurnFTResponse MsgOperatorBurnFTResponse +type fastReflection_MintNFTParam MintNFTParam -func (x *MsgOperatorBurnFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnFTResponse)(x) +func (x *MintNFTParam) ProtoReflect() protoreflect.Message { + return (*fastReflection_MintNFTParam)(x) } -func (x *MsgOperatorBurnFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[26] +func (x *MintNFTParam) slowProtoReflect() protoreflect.Message { + mi := &file_lbm_collection_v1_tx_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13867,43 +7208,43 @@ func (x *MsgOperatorBurnFTResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgOperatorBurnFTResponse_messageType fastReflection_MsgOperatorBurnFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorBurnFTResponse_messageType{} +var _fastReflection_MintNFTParam_messageType fastReflection_MintNFTParam_messageType +var _ protoreflect.MessageType = fastReflection_MintNFTParam_messageType{} -type fastReflection_MsgOperatorBurnFTResponse_messageType struct{} +type fastReflection_MintNFTParam_messageType struct{} -func (x fastReflection_MsgOperatorBurnFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnFTResponse)(nil) +func (x fastReflection_MintNFTParam_messageType) Zero() protoreflect.Message { + return (*fastReflection_MintNFTParam)(nil) } -func (x fastReflection_MsgOperatorBurnFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnFTResponse) +func (x fastReflection_MintNFTParam_messageType) New() protoreflect.Message { + return new(fastReflection_MintNFTParam) } -func (x fastReflection_MsgOperatorBurnFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnFTResponse +func (x fastReflection_MintNFTParam_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MintNFTParam } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgOperatorBurnFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnFTResponse +func (x *fastReflection_MintNFTParam) Descriptor() protoreflect.MessageDescriptor { + return md_MintNFTParam } // 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_MsgOperatorBurnFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorBurnFTResponse_messageType +func (x *fastReflection_MintNFTParam) Type() protoreflect.MessageType { + return _fastReflection_MintNFTParam_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorBurnFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnFTResponse) +func (x *fastReflection_MintNFTParam) New() protoreflect.Message { + return new(fastReflection_MintNFTParam) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorBurnFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorBurnFTResponse)(x) +func (x *fastReflection_MintNFTParam) Interface() protoreflect.ProtoMessage { + return (*MintNFTParam)(x) } // Range iterates over every populated field in an undefined order, @@ -13911,7 +7252,25 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgOperatorBurnFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MintNFTParam) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TokenType != "" { + value := protoreflect.ValueOfString(x.TokenType) + if !f(fd_MintNFTParam_token_type, value) { + return + } + } + if x.Name != "" { + value := protoreflect.ValueOfString(x.Name) + if !f(fd_MintNFTParam_name, value) { + return + } + } + if x.Meta != "" { + value := protoreflect.ValueOfString(x.Meta) + if !f(fd_MintNFTParam_meta, value) { + return + } + } } // Has reports whether a field is populated. @@ -13925,13 +7284,19 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) Range(f func(protoreflect.Fie // 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_MsgOperatorBurnFTResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MintNFTParam) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "lbm.collection.v1.MintNFTParam.token_type": + return x.TokenType != "" + case "lbm.collection.v1.MintNFTParam.name": + return x.Name != "" + case "lbm.collection.v1.MintNFTParam.meta": + return x.Meta != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", fd.FullName())) } } @@ -13941,13 +7306,19 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorBurnFTResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MintNFTParam) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "lbm.collection.v1.MintNFTParam.token_type": + x.TokenType = "" + case "lbm.collection.v1.MintNFTParam.name": + x.Name = "" + case "lbm.collection.v1.MintNFTParam.meta": + x.Meta = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", fd.FullName())) } } @@ -13957,13 +7328,22 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) Clear(fd protoreflect.FieldDe // 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_MsgOperatorBurnFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MintNFTParam) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "lbm.collection.v1.MintNFTParam.token_type": + value := x.TokenType + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MintNFTParam.name": + value := x.Name + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MintNFTParam.meta": + value := x.Meta + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", descriptor.FullName())) } } @@ -13977,13 +7357,19 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorBurnFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MintNFTParam) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "lbm.collection.v1.MintNFTParam.token_type": + x.TokenType = value.Interface().(string) + case "lbm.collection.v1.MintNFTParam.name": + x.Name = value.Interface().(string) + case "lbm.collection.v1.MintNFTParam.meta": + x.Meta = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", fd.FullName())) } } @@ -13997,36 +7383,48 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorBurnFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MintNFTParam) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "lbm.collection.v1.MintNFTParam.token_type": + panic(fmt.Errorf("field token_type of message lbm.collection.v1.MintNFTParam is not mutable")) + case "lbm.collection.v1.MintNFTParam.name": + panic(fmt.Errorf("field name of message lbm.collection.v1.MintNFTParam is not mutable")) + case "lbm.collection.v1.MintNFTParam.meta": + panic(fmt.Errorf("field meta of message lbm.collection.v1.MintNFTParam is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam 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_MsgOperatorBurnFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MintNFTParam) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "lbm.collection.v1.MintNFTParam.token_type": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MintNFTParam.name": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MintNFTParam.meta": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam 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_MsgOperatorBurnFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MintNFTParam) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorBurnFTResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MintNFTParam", d.FullName())) } panic("unreachable") } @@ -14034,7 +7432,7 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) WhichOneof(d protoreflect.One // 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_MsgOperatorBurnFTResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MintNFTParam) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -14045,7 +7443,7 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorBurnFTResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MintNFTParam) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -14057,7 +7455,7 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) SetUnknown(fields protoreflec // 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_MsgOperatorBurnFTResponse) IsValid() bool { +func (x *fastReflection_MintNFTParam) IsValid() bool { return x != nil } @@ -14067,9 +7465,9 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) 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_MsgOperatorBurnFTResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MintNFTParam) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorBurnFTResponse) + x := input.Message.Interface().(*MintNFTParam) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14081,6 +7479,18 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) ProtoMethods() *protoiface.Me var n int var l int _ = l + l = len(x.TokenType) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Name) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Meta) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -14091,7 +7501,7 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorBurnFTResponse) + x := input.Message.Interface().(*MintNFTParam) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14110,6 +7520,27 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) ProtoMethods() *protoiface.Me i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Meta) > 0 { + i -= len(x.Meta) + copy(dAtA[i:], x.Meta) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Meta))) + i-- + dAtA[i] = 0x1a + } + if len(x.Name) > 0 { + i -= len(x.Name) + copy(dAtA[i:], x.Name) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) + i-- + dAtA[i] = 0x12 + } + if len(x.TokenType) > 0 { + i -= len(x.TokenType) + copy(dAtA[i:], x.TokenType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenType))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -14121,7 +7552,7 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorBurnFTResponse) + x := input.Message.Interface().(*MintNFTParam) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14140,25 +7571,121 @@ func (x *fastReflection_MsgOperatorBurnFTResponse) ProtoMethods() *protoiface.Me 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 + 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: MintNFTParam: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MintNFTParam: 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 TokenType", 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.TokenType = 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 Name", 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.Name = 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 Meta", 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 } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorBurnFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorBurnFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -14264,7 +7791,7 @@ func (x *MsgBurnNFT) ProtoReflect() protoreflect.Message { } func (x *MsgBurnNFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[27] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14820,7 +8347,7 @@ func (x *MsgBurnNFTResponse) ProtoReflect() protoreflect.Message { } func (x *MsgBurnNFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[28] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15230,7 +8757,7 @@ func (x *MsgOperatorBurnNFT) ProtoReflect() protoreflect.Message { } func (x *MsgOperatorBurnNFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[29] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15848,7 +9375,7 @@ func (x *MsgOperatorBurnNFTResponse) ProtoReflect() protoreflect.Message { } func (x *MsgOperatorBurnNFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[30] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16265,7 +9792,7 @@ func (x *MsgModify) ProtoReflect() protoreflect.Message { } func (x *MsgModify) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[31] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16954,7 +10481,7 @@ func (x *MsgModifyResponse) ProtoReflect() protoreflect.Message { } func (x *MsgModifyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[32] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17318,7 +10845,7 @@ func (x *MsgGrantPermission) ProtoReflect() protoreflect.Message { } func (x *MsgGrantPermission) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[33] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17922,7 +11449,7 @@ func (x *MsgGrantPermissionResponse) ProtoReflect() protoreflect.Message { } func (x *MsgGrantPermissionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[34] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18284,7 +11811,7 @@ func (x *MsgRevokePermission) ProtoReflect() protoreflect.Message { } func (x *MsgRevokePermission) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[35] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18826,7 +12353,7 @@ func (x *MsgRevokePermissionResponse) ProtoReflect() protoreflect.Message { } func (x *MsgRevokePermissionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[36] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19083,292 +12610,99 @@ func (x *fastReflection_MsgRevokePermissionResponse) ProtoMethods() *protoiface. 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().(*MsgRevokePermissionResponse) - 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: MsgRevokePermissionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokePermissionResponse: 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 + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil } - return "" -} + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgRevokePermissionResponse) + 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: MsgRevokePermissionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokePermissionResponse: 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 + } + } -func (x *MsgOperatorSendFT) GetAmount() []*Coin { - if x != nil { - return x.Amount + 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 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) + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, } } -func (x *MsgOperatorSendFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgOperatorSendFTResponse) 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 MsgOperatorSendFTResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorSendFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{3} -} +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) +) // MsgSendNFT is the Msg/SendNFT request type. type MsgSendNFT struct { @@ -19389,7 +12723,7 @@ type MsgSendNFT struct { func (x *MsgSendNFT) Reset() { *x = MsgSendNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[4] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19403,7 +12737,7 @@ func (*MsgSendNFT) ProtoMessage() {} // Deprecated: Use MsgSendNFT.ProtoReflect.Descriptor instead. func (*MsgSendNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{4} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{0} } func (x *MsgSendNFT) GetContractId() string { @@ -19444,7 +12778,7 @@ type MsgSendNFTResponse struct { func (x *MsgSendNFTResponse) Reset() { *x = MsgSendNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[5] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19458,7 +12792,7 @@ func (*MsgSendNFTResponse) ProtoMessage() {} // Deprecated: Use MsgSendNFTResponse.ProtoReflect.Descriptor instead. func (*MsgSendNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{5} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{1} } // MsgOperatorSendNFT is the Msg/OperatorSendNFT request type. @@ -19482,7 +12816,7 @@ type MsgOperatorSendNFT struct { func (x *MsgOperatorSendNFT) Reset() { *x = MsgOperatorSendNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[6] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19496,7 +12830,7 @@ func (*MsgOperatorSendNFT) ProtoMessage() {} // Deprecated: Use MsgOperatorSendNFT.ProtoReflect.Descriptor instead. func (*MsgOperatorSendNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{6} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{2} } func (x *MsgOperatorSendNFT) GetContractId() string { @@ -19544,7 +12878,7 @@ type MsgOperatorSendNFTResponse struct { func (x *MsgOperatorSendNFTResponse) Reset() { *x = MsgOperatorSendNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[7] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19558,7 +12892,7 @@ func (*MsgOperatorSendNFTResponse) ProtoMessage() {} // Deprecated: Use MsgOperatorSendNFTResponse.ProtoReflect.Descriptor instead. func (*MsgOperatorSendNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{7} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{3} } // MsgAuthorizeOperator is the Msg/AuthorizeOperator request type. @@ -19578,7 +12912,7 @@ type MsgAuthorizeOperator struct { func (x *MsgAuthorizeOperator) Reset() { *x = MsgAuthorizeOperator{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[8] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19592,7 +12926,7 @@ func (*MsgAuthorizeOperator) ProtoMessage() {} // Deprecated: Use MsgAuthorizeOperator.ProtoReflect.Descriptor instead. func (*MsgAuthorizeOperator) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{8} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{4} } func (x *MsgAuthorizeOperator) GetContractId() string { @@ -19626,7 +12960,7 @@ type MsgAuthorizeOperatorResponse struct { func (x *MsgAuthorizeOperatorResponse) Reset() { *x = MsgAuthorizeOperatorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[9] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19640,7 +12974,7 @@ func (*MsgAuthorizeOperatorResponse) ProtoMessage() {} // Deprecated: Use MsgAuthorizeOperatorResponse.ProtoReflect.Descriptor instead. func (*MsgAuthorizeOperatorResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{9} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{5} } // MsgRevokeOperator is the Msg/RevokeOperator request type. @@ -19660,7 +12994,7 @@ type MsgRevokeOperator struct { func (x *MsgRevokeOperator) Reset() { *x = MsgRevokeOperator{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[10] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19674,7 +13008,7 @@ func (*MsgRevokeOperator) ProtoMessage() {} // Deprecated: Use MsgRevokeOperator.ProtoReflect.Descriptor instead. func (*MsgRevokeOperator) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{10} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{6} } func (x *MsgRevokeOperator) GetContractId() string { @@ -19708,7 +13042,7 @@ type MsgRevokeOperatorResponse struct { func (x *MsgRevokeOperatorResponse) Reset() { *x = MsgRevokeOperatorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[11] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19722,7 +13056,7 @@ func (*MsgRevokeOperatorResponse) ProtoMessage() {} // Deprecated: Use MsgRevokeOperatorResponse.ProtoReflect.Descriptor instead. func (*MsgRevokeOperatorResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{11} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{7} } // MsgCreateContract is the Msg/CreateContract request type. @@ -19741,226 +13075,87 @@ type MsgCreateContract struct { Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` } -func (x *MsgCreateContract) Reset() { - *x = MsgCreateContract{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCreateContract) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCreateContract) ProtoMessage() {} - -// Deprecated: Use MsgCreateContract.ProtoReflect.Descriptor instead. -func (*MsgCreateContract) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{12} -} - -func (x *MsgCreateContract) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *MsgCreateContract) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *MsgCreateContract) GetUri() string { - if x != nil { - return x.Uri - } - return "" -} - -func (x *MsgCreateContract) GetMeta() string { - if x != nil { - return x.Meta - } - return "" -} - -// 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 *MsgCreateContractResponse) Reset() { - *x = MsgCreateContractResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCreateContractResponse) 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 (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"` - // 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 *MsgIssueFT) Reset() { - *x = MsgIssueFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgIssueFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgIssueFT) ProtoMessage() {} - -// Deprecated: Use MsgIssueFT.ProtoReflect.Descriptor instead. -func (*MsgIssueFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{14} -} - -func (x *MsgIssueFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgIssueFT) GetName() string { - if x != nil { - return x.Name +func (x *MsgCreateContract) Reset() { + *x = MsgCreateContract{} + if protoimpl.UnsafeEnabled { + mi := &file_lbm_collection_v1_tx_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (x *MsgIssueFT) GetMeta() string { - if x != nil { - return x.Meta - } - return "" +func (x *MsgCreateContract) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *MsgIssueFT) GetDecimals() int32 { - if x != nil { - return x.Decimals - } - return 0 +func (*MsgCreateContract) ProtoMessage() {} + +// Deprecated: Use MsgCreateContract.ProtoReflect.Descriptor instead. +func (*MsgCreateContract) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{8} } -func (x *MsgIssueFT) GetMintable() bool { +func (x *MsgCreateContract) GetOwner() string { if x != nil { - return x.Mintable + return x.Owner } - return false + return "" } -func (x *MsgIssueFT) GetOwner() string { +func (x *MsgCreateContract) GetName() string { if x != nil { - return x.Owner + return x.Name } return "" } -func (x *MsgIssueFT) GetTo() string { +func (x *MsgCreateContract) GetUri() string { if x != nil { - return x.To + return x.Uri } return "" } -func (x *MsgIssueFT) GetAmount() string { +func (x *MsgCreateContract) GetMeta() string { if x != nil { - return x.Amount + return x.Meta } return "" } -// MsgIssueFTResponse is the Msg/IssueFT response type. -type MsgIssueFTResponse struct { +// MsgCreateContractResponse is the Msg/CreateContract response type. +type MsgCreateContractResponse 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"` + // id of the new contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` } -func (x *MsgIssueFTResponse) Reset() { - *x = MsgIssueFTResponse{} +func (x *MsgCreateContractResponse) Reset() { + *x = MsgCreateContractResponse{} 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 *MsgCreateContractResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgIssueFTResponse) ProtoMessage() {} +func (*MsgCreateContractResponse) ProtoMessage() {} -// Deprecated: Use MsgIssueFTResponse.ProtoReflect.Descriptor instead. -func (*MsgIssueFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{15} +// Deprecated: Use MsgCreateContractResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateContractResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{9} } -func (x *MsgIssueFTResponse) GetTokenId() string { +func (x *MsgCreateContractResponse) GetContractId() string { if x != nil { - return x.TokenId + return x.ContractId } return "" } @@ -19984,7 +13179,7 @@ type MsgIssueNFT struct { func (x *MsgIssueNFT) Reset() { *x = MsgIssueNFT{} 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) } @@ -19998,7 +13193,7 @@ func (*MsgIssueNFT) ProtoMessage() {} // Deprecated: Use MsgIssueNFT.ProtoReflect.Descriptor instead. func (*MsgIssueNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{16} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{10} } func (x *MsgIssueNFT) GetContractId() string { @@ -20043,7 +13238,7 @@ type MsgIssueNFTResponse struct { func (x *MsgIssueNFTResponse) Reset() { *x = MsgIssueNFTResponse{} 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) } @@ -20057,7 +13252,7 @@ func (*MsgIssueNFTResponse) ProtoMessage() {} // Deprecated: Use MsgIssueNFTResponse.ProtoReflect.Descriptor instead. func (*MsgIssueNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{17} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{11} } func (x *MsgIssueNFTResponse) GetTokenType() string { @@ -20067,98 +13262,6 @@ func (x *MsgIssueNFTResponse) GetTokenType() string { 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 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 *MsgMintFT) Reset() { - *x = MsgMintFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgMintFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgMintFT) ProtoMessage() {} - -// Deprecated: Use MsgMintFT.ProtoReflect.Descriptor instead. -func (*MsgMintFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{18} -} - -func (x *MsgMintFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgMintFT) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *MsgMintFT) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *MsgMintFT) GetAmount() []*Coin { - if x != nil { - return x.Amount - } - return nil -} - -// MsgMintFTResponse is the Msg/MintFT response type. -type MsgMintFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgMintFTResponse) Reset() { - *x = MsgMintFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgMintFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgMintFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgMintFTResponse.ProtoReflect.Descriptor instead. -func (*MsgMintFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{19} -} - // MsgMintNFT is the Msg/MintNFT request type. type MsgMintNFT struct { state protoimpl.MessageState @@ -20178,7 +13281,7 @@ type MsgMintNFT struct { func (x *MsgMintNFT) Reset() { *x = MsgMintNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[20] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20192,7 +13295,7 @@ func (*MsgMintNFT) ProtoMessage() {} // Deprecated: Use MsgMintNFT.ProtoReflect.Descriptor instead. func (*MsgMintNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{20} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{12} } func (x *MsgMintNFT) GetContractId() string { @@ -20236,7 +13339,7 @@ type MsgMintNFTResponse struct { func (x *MsgMintNFTResponse) Reset() { *x = MsgMintNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[21] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20250,7 +13353,7 @@ func (*MsgMintNFTResponse) ProtoMessage() {} // Deprecated: Use MsgMintNFTResponse.ProtoReflect.Descriptor instead. func (*MsgMintNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{21} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{13} } func (x *MsgMintNFTResponse) GetTokenIds() []string { @@ -20268,235 +13371,57 @@ type MintNFTParam struct { // 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 *MintNFTParam) Reset() { - *x = MintNFTParam{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MintNFTParam) 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 (x *MintNFTParam) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *MintNFTParam) GetMeta() string { - if x != nil { - return x.Meta - } - return "" -} - -// 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"` - // 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 *MsgBurnFT) Reset() { - *x = MsgBurnFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgBurnFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgBurnFT) ProtoMessage() {} - -// Deprecated: Use MsgBurnFT.ProtoReflect.Descriptor instead. -func (*MsgBurnFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{23} -} - -func (x *MsgBurnFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgBurnFT) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *MsgBurnFT) GetAmount() []*Coin { - if x != nil { - return x.Amount - } - return nil -} - -// MsgBurnFTResponse is the Msg/BurnFT response type. -type MsgBurnFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgBurnFTResponse) Reset() { - *x = MsgBurnFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgBurnFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgBurnFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgBurnFTResponse.ProtoReflect.Descriptor instead. -func (*MsgBurnFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{24} -} - -// 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 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"` + // 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 *MsgOperatorBurnFT) Reset() { - *x = MsgOperatorBurnFT{} +func (x *MintNFTParam) Reset() { + *x = MintNFTParam{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[25] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorBurnFT) String() string { +func (x *MintNFTParam) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorBurnFT) ProtoMessage() {} +func (*MintNFTParam) ProtoMessage() {} -// Deprecated: Use MsgOperatorBurnFT.ProtoReflect.Descriptor instead. -func (*MsgOperatorBurnFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{25} +// Deprecated: Use MintNFTParam.ProtoReflect.Descriptor instead. +func (*MintNFTParam) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{14} } -func (x *MsgOperatorBurnFT) GetContractId() string { +func (x *MintNFTParam) GetTokenType() string { if x != nil { - return x.ContractId + return x.TokenType } return "" } -func (x *MsgOperatorBurnFT) GetOperator() string { +func (x *MintNFTParam) GetName() string { if x != nil { - return x.Operator + return x.Name } return "" } -func (x *MsgOperatorBurnFT) GetFrom() string { +func (x *MintNFTParam) GetMeta() string { if x != nil { - return x.From + return x.Meta } return "" } -func (x *MsgOperatorBurnFT) GetAmount() []*Coin { - if x != nil { - return x.Amount - } - return nil -} - -// MsgOperatorBurnFTResponse is the Msg/OperatorBurnFT response type. -type MsgOperatorBurnFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgOperatorBurnFTResponse) Reset() { - *x = MsgOperatorBurnFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgOperatorBurnFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgOperatorBurnFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgOperatorBurnFTResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorBurnFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{26} -} - // MsgBurnNFT is the Msg/BurnNFT request type. type MsgBurnNFT struct { state protoimpl.MessageState @@ -20516,7 +13441,7 @@ type MsgBurnNFT struct { func (x *MsgBurnNFT) Reset() { *x = MsgBurnNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[27] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20530,7 +13455,7 @@ func (*MsgBurnNFT) ProtoMessage() {} // Deprecated: Use MsgBurnNFT.ProtoReflect.Descriptor instead. func (*MsgBurnNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{27} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{15} } func (x *MsgBurnNFT) GetContractId() string { @@ -20564,7 +13489,7 @@ type MsgBurnNFTResponse struct { func (x *MsgBurnNFTResponse) Reset() { *x = MsgBurnNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[28] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20578,7 +13503,7 @@ func (*MsgBurnNFTResponse) ProtoMessage() {} // Deprecated: Use MsgBurnNFTResponse.ProtoReflect.Descriptor instead. func (*MsgBurnNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{28} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{16} } // MsgOperatorBurnNFT is the Msg/OperatorBurnNFT request type. @@ -20603,7 +13528,7 @@ type MsgOperatorBurnNFT struct { func (x *MsgOperatorBurnNFT) Reset() { *x = MsgOperatorBurnNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[29] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20617,7 +13542,7 @@ func (*MsgOperatorBurnNFT) ProtoMessage() {} // Deprecated: Use MsgOperatorBurnNFT.ProtoReflect.Descriptor instead. func (*MsgOperatorBurnNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{29} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{17} } func (x *MsgOperatorBurnNFT) GetContractId() string { @@ -20658,7 +13583,7 @@ type MsgOperatorBurnNFTResponse struct { func (x *MsgOperatorBurnNFTResponse) Reset() { *x = MsgOperatorBurnNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[30] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20672,7 +13597,7 @@ func (*MsgOperatorBurnNFTResponse) ProtoMessage() {} // Deprecated: Use MsgOperatorBurnNFTResponse.ProtoReflect.Descriptor instead. func (*MsgOperatorBurnNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{30} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{18} } // MsgModify is the Msg/Modify request type. @@ -20702,7 +13627,7 @@ type MsgModify struct { func (x *MsgModify) Reset() { *x = MsgModify{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[31] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20716,7 +13641,7 @@ func (*MsgModify) ProtoMessage() {} // Deprecated: Use MsgModify.ProtoReflect.Descriptor instead. func (*MsgModify) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{31} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{19} } func (x *MsgModify) GetContractId() string { @@ -20764,7 +13689,7 @@ type MsgModifyResponse struct { func (x *MsgModifyResponse) Reset() { *x = MsgModifyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[32] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20778,7 +13703,7 @@ func (*MsgModifyResponse) ProtoMessage() {} // Deprecated: Use MsgModifyResponse.ProtoReflect.Descriptor instead. func (*MsgModifyResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{32} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{20} } // MsgGrantPermission is the Msg/GrantPermission request type. @@ -20800,7 +13725,7 @@ type MsgGrantPermission struct { func (x *MsgGrantPermission) Reset() { *x = MsgGrantPermission{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[33] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20814,7 +13739,7 @@ func (*MsgGrantPermission) ProtoMessage() {} // Deprecated: Use MsgGrantPermission.ProtoReflect.Descriptor instead. func (*MsgGrantPermission) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{33} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{21} } func (x *MsgGrantPermission) GetContractId() string { @@ -20855,7 +13780,7 @@ type MsgGrantPermissionResponse struct { func (x *MsgGrantPermissionResponse) Reset() { *x = MsgGrantPermissionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[34] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20869,7 +13794,7 @@ func (*MsgGrantPermissionResponse) ProtoMessage() {} // Deprecated: Use MsgGrantPermissionResponse.ProtoReflect.Descriptor instead. func (*MsgGrantPermissionResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{34} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{22} } // MsgRevokePermission is the Msg/RevokePermission request type. @@ -20889,7 +13814,7 @@ type MsgRevokePermission struct { func (x *MsgRevokePermission) Reset() { *x = MsgRevokePermission{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[35] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20903,7 +13828,7 @@ func (*MsgRevokePermission) ProtoMessage() {} // Deprecated: Use MsgRevokePermission.ProtoReflect.Descriptor instead. func (*MsgRevokePermission) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{35} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{23} } func (x *MsgRevokePermission) GetContractId() string { @@ -20937,7 +13862,7 @@ type MsgRevokePermissionResponse struct { func (x *MsgRevokePermissionResponse) Reset() { *x = MsgRevokePermissionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[36] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -20951,7 +13876,7 @@ func (*MsgRevokePermissionResponse) ProtoMessage() {} // Deprecated: Use MsgRevokePermissionResponse.ProtoReflect.Descriptor instead. func (*MsgRevokePermissionResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{36} + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{24} } var File_lbm_collection_v1_tx_proto protoreflect.FileDescriptor @@ -20962,374 +13887,253 @@ var file_lbm_collection_v1_tx_proto_rawDesc = []byte{ 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 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, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, - 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, - 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 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, 0xa8, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 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, - 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, - 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x74, 0x6f, 0x12, 0x35, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 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, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x1f, 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, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x22, 0x13, 0x0a, 0x11, 0x4d, - 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0xd8, 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x53, 0x65, 0x6e, 0x64, 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, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x35, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x05, 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, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x2b, - 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, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x22, 0x1b, 0x0a, 0x19, 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, 0x22, 0x90, 0x01, 0x0a, 0x0a, 0x4d, 0x73, 0x67, - 0x53, 0x65, 0x6e, 0x64, 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, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, - 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x1b, 0x0a, 0x09, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x73, 0x3a, 0x20, 0x82, 0xe7, 0xb0, 0x2a, 0x04, - 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x12, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, - 0x2f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x22, 0x14, 0x0a, 0x12, 0x4d, - 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0xc0, 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x53, 0x65, 0x6e, 0x64, 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, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x73, 0x3a, 0x2c, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x6f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, - 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, - 0x64, 0x4e, 0x46, 0x54, 0x22, 0x1c, 0x0a, 0x1a, 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, 0x22, 0xa4, 0x01, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 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, 0x16, 0x0a, 0x06, - 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, - 0x6c, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x3a, 0x37, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x8a, 0xe7, 0xb0, - 0x2a, 0x27, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, - 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 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, 0x22, 0x9e, 0x01, 0x0a, 0x11, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 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, 0x16, 0x0a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, - 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x24, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, - 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1b, 0x0a, 0x19, 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, 0x22, 0x8d, 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, - 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x3a, 0x28, 0x82, - 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x6c, 0x62, - 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x22, 0x3c, 0x0a, 0x19, 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, 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, 0x22, 0x9b, 0x02, 0x0a, 0x0a, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, - 0x75, 0x65, 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, 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, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x74, - 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x43, 0x0a, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 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, 0x21, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, - 0x12, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, - 0x65, 0x46, 0x54, 0x22, 0x2f, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, 0x65, 0x46, - 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 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, 0x22, 0x90, 0x01, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, - 0x65, 0x4e, 0x46, 0x54, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 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, 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, 0x90, 0x01, 0x0a, 0x0a, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, + 0x64, 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, 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, 0x14, 0x0a, - 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x3a, 0x22, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x8a, - 0xe7, 0xb0, 0x2a, 0x13, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x49, - 0x73, 0x73, 0x75, 0x65, 0x4e, 0x46, 0x54, 0x22, 0x34, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x49, 0x73, - 0x73, 0x75, 0x65, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, - 0x0a, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0xb1, 0x01, - 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 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, 0x12, 0x0a, 0x04, - 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, - 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, - 0x12, 0x3e, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 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, 0x1f, 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, 0x4d, 0x69, 0x6e, 0x74, 0x46, - 0x54, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x46, 0x54, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x0a, 0x4d, 0x73, 0x67, 0x4d, 0x69, - 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x73, 0x3a, 0x20, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, + 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x12, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x22, 0x14, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x53, + 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc0, + 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, + 0x6e, 0x64, 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, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 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, 0x4d, - 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x20, 0x82, 0xe7, 0xb0, 0x2a, 0x04, - 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x12, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, - 0x2f, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x22, 0x31, 0x0a, 0x12, 0x4d, - 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x55, - 0x0a, 0x0c, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x1d, - 0x0a, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 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, 0x98, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, - 0x6e, 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, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x35, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x18, 0x03, 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, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, - 0x1f, 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, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, - 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc8, 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 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, 0x1a, 0x0a, 0x08, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x35, 0x0a, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 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, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x3a, 0x2b, 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, 0x42, 0x75, 0x72, 0x6e, 0x46, 0x54, - 0x22, 0x1b, 0x0a, 0x19, 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, 0x22, 0x80, 0x01, - 0x0a, 0x0a, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x12, 0x1f, 0x0a, 0x0b, + 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, + 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x49, 0x64, 0x73, 0x3a, 0x2c, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, + 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, + 0x54, 0x22, 0x1c, 0x0a, 0x1a, 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, 0x22, + 0xa4, 0x01, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 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, 0x16, 0x0a, 0x06, 0x68, 0x6f, 0x6c, + 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, + 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x37, 0x82, + 0xe7, 0xb0, 0x2a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x27, 0x6c, + 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 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, 0x22, 0x9e, 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x76, 0x6f, 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 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, 0x12, 0x0a, - 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, - 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x73, 0x3a, 0x20, + 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, + 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, + 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x8a, 0xe7, + 0xb0, 0x2a, 0x24, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1b, 0x0a, 0x19, 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, 0x22, 0x8d, 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x3a, 0x28, 0x82, 0xe7, 0xb0, 0x2a, + 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x6c, 0x62, 0x6d, 0x2d, 0x73, + 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x22, 0x3c, 0x0a, 0x19, 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, 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, 0x22, 0x90, 0x01, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, 0x65, 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, 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, 0x14, 0x0a, 0x05, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x3a, 0x22, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, + 0x2a, 0x13, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, + 0x75, 0x65, 0x4e, 0x46, 0x54, 0x22, 0x34, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, + 0x65, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x0a, + 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 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, 0x12, 0x0a, 0x04, 0x66, + 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, + 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, + 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 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, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x20, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x12, 0x6c, 0x62, - 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, - 0x22, 0x14, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 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, 0x1a, - 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, - 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x1b, - 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x73, 0x3a, 0x2c, 0x82, 0xe7, 0xb0, - 0x2a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x6c, - 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x22, 0x1c, 0x0a, 0x1a, 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, 0x22, 0xed, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x4d, - 0x6f, 0x64, 0x69, 0x66, 0x79, 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, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x3c, 0x0a, 0x07, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x05, 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, 0x3a, 0x2b, 0x82, 0xe7, 0xb0, 0x2a, - 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x1c, 0x6c, 0x62, 0x6d, 0x2d, 0x73, - 0x64, 0x6b, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, - 0x67, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x4d, 0x6f, - 0x64, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xae, 0x01, 0x0a, - 0x12, 0x4d, 0x73, 0x67, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 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, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, - 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x33, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, - 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x25, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x1c, 0x0a, - 0x1a, 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, 0x22, 0xa0, 0x01, 0x0a, 0x13, - 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 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, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, - 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, - 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x26, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, - 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, 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, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x1a, 0x24, 0x2e, + 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, + 0x22, 0x31, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, + 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x49, 0x64, 0x73, 0x22, 0x55, 0x0a, 0x0c, 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, + 0x70, 0x65, 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, 0x80, 0x01, 0x0a, 0x0a, 0x4d, + 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 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, 0x12, 0x0a, 0x04, 0x66, 0x72, + 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x1b, + 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x73, 0x3a, 0x20, 0x82, 0xe7, 0xb0, + 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x12, 0x6c, 0x62, 0x6d, 0x2d, 0x73, + 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x22, 0x14, 0x0a, + 0x12, 0x4d, 0x73, 0x67, 0x42, 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 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, 0x1a, 0x0a, 0x08, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x73, 0x3a, 0x2c, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x6c, 0x62, 0x6d, 0x2d, + 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, + 0x75, 0x72, 0x6e, 0x4e, 0x46, 0x54, 0x22, 0x1c, 0x0a, 0x1a, 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, 0x22, 0xed, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x4d, 0x6f, 0x64, 0x69, + 0x66, 0x79, 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, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x3c, 0x0a, 0x07, 0x63, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x73, 0x18, 0x05, 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, 0x3a, 0x2b, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x1c, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x4d, 0x6f, + 0x64, 0x69, 0x66, 0x79, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x4d, 0x6f, 0x64, 0x69, 0x66, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x12, 0x4d, 0x73, + 0x67, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 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, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x33, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, + 0x8a, 0xe7, 0xb0, 0x2a, 0x25, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x47, 0x72, 0x61, 0x6e, 0x74, + 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x1c, 0x0a, 0x1a, 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, 0x22, 0xa0, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 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, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, + 0x8a, 0xe7, 0xb0, 0x2a, 0x26, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 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, 0x32, 0x83, 0x09, 0x0a, 0x03, 0x4d, + 0x73, 0x67, 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, 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, + 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, 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, + 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, 0x1a, 0x2f, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 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, 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, + 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, 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, + 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, 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, + 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, 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, 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, + 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, 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, 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, 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, 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 ( @@ -21344,97 +14148,67 @@ 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, 37) +var file_lbm_collection_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 25) var file_lbm_collection_v1_tx_proto_goTypes = []interface{}{ - (*MsgSendFT)(nil), // 0: lbm.collection.v1.MsgSendFT - (*MsgSendFTResponse)(nil), // 1: lbm.collection.v1.MsgSendFTResponse - (*MsgOperatorSendFT)(nil), // 2: lbm.collection.v1.MsgOperatorSendFT - (*MsgOperatorSendFTResponse)(nil), // 3: lbm.collection.v1.MsgOperatorSendFTResponse - (*MsgSendNFT)(nil), // 4: lbm.collection.v1.MsgSendNFT - (*MsgSendNFTResponse)(nil), // 5: lbm.collection.v1.MsgSendNFTResponse - (*MsgOperatorSendNFT)(nil), // 6: lbm.collection.v1.MsgOperatorSendNFT - (*MsgOperatorSendNFTResponse)(nil), // 7: lbm.collection.v1.MsgOperatorSendNFTResponse - (*MsgAuthorizeOperator)(nil), // 8: lbm.collection.v1.MsgAuthorizeOperator - (*MsgAuthorizeOperatorResponse)(nil), // 9: lbm.collection.v1.MsgAuthorizeOperatorResponse - (*MsgRevokeOperator)(nil), // 10: lbm.collection.v1.MsgRevokeOperator - (*MsgRevokeOperatorResponse)(nil), // 11: lbm.collection.v1.MsgRevokeOperatorResponse - (*MsgCreateContract)(nil), // 12: lbm.collection.v1.MsgCreateContract - (*MsgCreateContractResponse)(nil), // 13: lbm.collection.v1.MsgCreateContractResponse - (*MsgIssueFT)(nil), // 14: lbm.collection.v1.MsgIssueFT - (*MsgIssueFTResponse)(nil), // 15: lbm.collection.v1.MsgIssueFTResponse - (*MsgIssueNFT)(nil), // 16: lbm.collection.v1.MsgIssueNFT - (*MsgIssueNFTResponse)(nil), // 17: lbm.collection.v1.MsgIssueNFTResponse - (*MsgMintFT)(nil), // 18: lbm.collection.v1.MsgMintFT - (*MsgMintFTResponse)(nil), // 19: lbm.collection.v1.MsgMintFTResponse - (*MsgMintNFT)(nil), // 20: lbm.collection.v1.MsgMintNFT - (*MsgMintNFTResponse)(nil), // 21: lbm.collection.v1.MsgMintNFTResponse - (*MintNFTParam)(nil), // 22: lbm.collection.v1.MintNFTParam - (*MsgBurnFT)(nil), // 23: lbm.collection.v1.MsgBurnFT - (*MsgBurnFTResponse)(nil), // 24: lbm.collection.v1.MsgBurnFTResponse - (*MsgOperatorBurnFT)(nil), // 25: lbm.collection.v1.MsgOperatorBurnFT - (*MsgOperatorBurnFTResponse)(nil), // 26: lbm.collection.v1.MsgOperatorBurnFTResponse - (*MsgBurnNFT)(nil), // 27: lbm.collection.v1.MsgBurnNFT - (*MsgBurnNFTResponse)(nil), // 28: lbm.collection.v1.MsgBurnNFTResponse - (*MsgOperatorBurnNFT)(nil), // 29: lbm.collection.v1.MsgOperatorBurnNFT - (*MsgOperatorBurnNFTResponse)(nil), // 30: lbm.collection.v1.MsgOperatorBurnNFTResponse - (*MsgModify)(nil), // 31: lbm.collection.v1.MsgModify - (*MsgModifyResponse)(nil), // 32: lbm.collection.v1.MsgModifyResponse - (*MsgGrantPermission)(nil), // 33: lbm.collection.v1.MsgGrantPermission - (*MsgGrantPermissionResponse)(nil), // 34: lbm.collection.v1.MsgGrantPermissionResponse - (*MsgRevokePermission)(nil), // 35: lbm.collection.v1.MsgRevokePermission - (*MsgRevokePermissionResponse)(nil), // 36: lbm.collection.v1.MsgRevokePermissionResponse - (*Coin)(nil), // 37: lbm.collection.v1.Coin - (*Attribute)(nil), // 38: lbm.collection.v1.Attribute + (*MsgSendNFT)(nil), // 0: lbm.collection.v1.MsgSendNFT + (*MsgSendNFTResponse)(nil), // 1: lbm.collection.v1.MsgSendNFTResponse + (*MsgOperatorSendNFT)(nil), // 2: lbm.collection.v1.MsgOperatorSendNFT + (*MsgOperatorSendNFTResponse)(nil), // 3: lbm.collection.v1.MsgOperatorSendNFTResponse + (*MsgAuthorizeOperator)(nil), // 4: lbm.collection.v1.MsgAuthorizeOperator + (*MsgAuthorizeOperatorResponse)(nil), // 5: lbm.collection.v1.MsgAuthorizeOperatorResponse + (*MsgRevokeOperator)(nil), // 6: lbm.collection.v1.MsgRevokeOperator + (*MsgRevokeOperatorResponse)(nil), // 7: lbm.collection.v1.MsgRevokeOperatorResponse + (*MsgCreateContract)(nil), // 8: lbm.collection.v1.MsgCreateContract + (*MsgCreateContractResponse)(nil), // 9: lbm.collection.v1.MsgCreateContractResponse + (*MsgIssueNFT)(nil), // 10: lbm.collection.v1.MsgIssueNFT + (*MsgIssueNFTResponse)(nil), // 11: lbm.collection.v1.MsgIssueNFTResponse + (*MsgMintNFT)(nil), // 12: lbm.collection.v1.MsgMintNFT + (*MsgMintNFTResponse)(nil), // 13: lbm.collection.v1.MsgMintNFTResponse + (*MintNFTParam)(nil), // 14: lbm.collection.v1.MintNFTParam + (*MsgBurnNFT)(nil), // 15: lbm.collection.v1.MsgBurnNFT + (*MsgBurnNFTResponse)(nil), // 16: lbm.collection.v1.MsgBurnNFTResponse + (*MsgOperatorBurnNFT)(nil), // 17: lbm.collection.v1.MsgOperatorBurnNFT + (*MsgOperatorBurnNFTResponse)(nil), // 18: lbm.collection.v1.MsgOperatorBurnNFTResponse + (*MsgModify)(nil), // 19: lbm.collection.v1.MsgModify + (*MsgModifyResponse)(nil), // 20: lbm.collection.v1.MsgModifyResponse + (*MsgGrantPermission)(nil), // 21: lbm.collection.v1.MsgGrantPermission + (*MsgGrantPermissionResponse)(nil), // 22: lbm.collection.v1.MsgGrantPermissionResponse + (*MsgRevokePermission)(nil), // 23: lbm.collection.v1.MsgRevokePermission + (*MsgRevokePermissionResponse)(nil), // 24: lbm.collection.v1.MsgRevokePermissionResponse + (*Attribute)(nil), // 25: lbm.collection.v1.Attribute } var file_lbm_collection_v1_tx_proto_depIdxs = []int32{ - 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 - 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 - 6, // 10: lbm.collection.v1.Msg.OperatorSendNFT:input_type -> lbm.collection.v1.MsgOperatorSendNFT - 8, // 11: lbm.collection.v1.Msg.AuthorizeOperator:input_type -> lbm.collection.v1.MsgAuthorizeOperator - 10, // 12: lbm.collection.v1.Msg.RevokeOperator:input_type -> lbm.collection.v1.MsgRevokeOperator - 12, // 13: lbm.collection.v1.Msg.CreateContract:input_type -> lbm.collection.v1.MsgCreateContract - 14, // 14: lbm.collection.v1.Msg.IssueFT:input_type -> lbm.collection.v1.MsgIssueFT - 16, // 15: lbm.collection.v1.Msg.IssueNFT:input_type -> lbm.collection.v1.MsgIssueNFT - 18, // 16: lbm.collection.v1.Msg.MintFT:input_type -> lbm.collection.v1.MsgMintFT - 20, // 17: lbm.collection.v1.Msg.MintNFT:input_type -> lbm.collection.v1.MsgMintNFT - 23, // 18: lbm.collection.v1.Msg.BurnFT:input_type -> lbm.collection.v1.MsgBurnFT - 25, // 19: lbm.collection.v1.Msg.OperatorBurnFT:input_type -> lbm.collection.v1.MsgOperatorBurnFT - 27, // 20: lbm.collection.v1.Msg.BurnNFT:input_type -> lbm.collection.v1.MsgBurnNFT - 29, // 21: lbm.collection.v1.Msg.OperatorBurnNFT:input_type -> lbm.collection.v1.MsgOperatorBurnNFT - 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 - 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 + 14, // 0: lbm.collection.v1.MsgMintNFT.params:type_name -> lbm.collection.v1.MintNFTParam + 25, // 1: lbm.collection.v1.MsgModify.changes:type_name -> lbm.collection.v1.Attribute + 0, // 2: lbm.collection.v1.Msg.SendNFT:input_type -> lbm.collection.v1.MsgSendNFT + 2, // 3: lbm.collection.v1.Msg.OperatorSendNFT:input_type -> lbm.collection.v1.MsgOperatorSendNFT + 4, // 4: lbm.collection.v1.Msg.AuthorizeOperator:input_type -> lbm.collection.v1.MsgAuthorizeOperator + 6, // 5: lbm.collection.v1.Msg.RevokeOperator:input_type -> lbm.collection.v1.MsgRevokeOperator + 8, // 6: lbm.collection.v1.Msg.CreateContract:input_type -> lbm.collection.v1.MsgCreateContract + 10, // 7: lbm.collection.v1.Msg.IssueNFT:input_type -> lbm.collection.v1.MsgIssueNFT + 12, // 8: lbm.collection.v1.Msg.MintNFT:input_type -> lbm.collection.v1.MsgMintNFT + 15, // 9: lbm.collection.v1.Msg.BurnNFT:input_type -> lbm.collection.v1.MsgBurnNFT + 17, // 10: lbm.collection.v1.Msg.OperatorBurnNFT:input_type -> lbm.collection.v1.MsgOperatorBurnNFT + 19, // 11: lbm.collection.v1.Msg.Modify:input_type -> lbm.collection.v1.MsgModify + 21, // 12: lbm.collection.v1.Msg.GrantPermission:input_type -> lbm.collection.v1.MsgGrantPermission + 23, // 13: lbm.collection.v1.Msg.RevokePermission:input_type -> lbm.collection.v1.MsgRevokePermission + 1, // 14: lbm.collection.v1.Msg.SendNFT:output_type -> lbm.collection.v1.MsgSendNFTResponse + 3, // 15: lbm.collection.v1.Msg.OperatorSendNFT:output_type -> lbm.collection.v1.MsgOperatorSendNFTResponse + 5, // 16: lbm.collection.v1.Msg.AuthorizeOperator:output_type -> lbm.collection.v1.MsgAuthorizeOperatorResponse + 7, // 17: lbm.collection.v1.Msg.RevokeOperator:output_type -> lbm.collection.v1.MsgRevokeOperatorResponse + 9, // 18: lbm.collection.v1.Msg.CreateContract:output_type -> lbm.collection.v1.MsgCreateContractResponse + 11, // 19: lbm.collection.v1.Msg.IssueNFT:output_type -> lbm.collection.v1.MsgIssueNFTResponse + 13, // 20: lbm.collection.v1.Msg.MintNFT:output_type -> lbm.collection.v1.MsgMintNFTResponse + 16, // 21: lbm.collection.v1.Msg.BurnNFT:output_type -> lbm.collection.v1.MsgBurnNFTResponse + 18, // 22: lbm.collection.v1.Msg.OperatorBurnNFT:output_type -> lbm.collection.v1.MsgOperatorBurnNFTResponse + 20, // 23: lbm.collection.v1.Msg.Modify:output_type -> lbm.collection.v1.MsgModifyResponse + 22, // 24: lbm.collection.v1.Msg.GrantPermission:output_type -> lbm.collection.v1.MsgGrantPermissionResponse + 24, // 25: lbm.collection.v1.Msg.RevokePermission:output_type -> lbm.collection.v1.MsgRevokePermissionResponse + 14, // [14:26] is the sub-list for method output_type + 2, // [2:14] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name } func init() { file_lbm_collection_v1_tx_proto_init() } @@ -21445,54 +14219,6 @@ func file_lbm_collection_v1_tx_proto_init() { file_lbm_collection_v1_collection_proto_init() if !protoimpl.UnsafeEnabled { file_lbm_collection_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSendFT); 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[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSendFTResponse); 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[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorSendFT); 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[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorSendFTResponse); 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[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgSendNFT); i { case 0: return &v.state @@ -21504,7 +14230,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgSendNFTResponse); i { case 0: return &v.state @@ -21516,7 +14242,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgOperatorSendNFT); i { case 0: return &v.state @@ -21528,7 +14254,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgOperatorSendNFTResponse); i { case 0: return &v.state @@ -21540,7 +14266,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgAuthorizeOperator); i { case 0: return &v.state @@ -21552,7 +14278,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgAuthorizeOperatorResponse); i { case 0: return &v.state @@ -21564,7 +14290,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRevokeOperator); i { case 0: return &v.state @@ -21576,7 +14302,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRevokeOperatorResponse); i { case 0: return &v.state @@ -21588,7 +14314,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCreateContract); i { case 0: return &v.state @@ -21600,7 +14326,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCreateContractResponse); i { case 0: return &v.state @@ -21612,31 +14338,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgIssueFT); 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[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgIssueFTResponse); 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[16].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgIssueNFT); i { case 0: return &v.state @@ -21648,7 +14350,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgIssueNFTResponse); i { case 0: return &v.state @@ -21660,31 +14362,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMintFT); 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[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMintFTResponse); 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[20].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgMintNFT); i { case 0: return &v.state @@ -21696,7 +14374,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgMintNFTResponse); i { case 0: return &v.state @@ -21708,7 +14386,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MintNFTParam); i { case 0: return &v.state @@ -21720,55 +14398,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBurnFT); 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[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBurnFTResponse); 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[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorBurnFT); 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[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorBurnFTResponse); 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[27].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgBurnNFT); i { case 0: return &v.state @@ -21780,7 +14410,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgBurnNFTResponse); i { case 0: return &v.state @@ -21792,7 +14422,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgOperatorBurnNFT); i { case 0: return &v.state @@ -21804,7 +14434,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgOperatorBurnNFTResponse); i { case 0: return &v.state @@ -21816,7 +14446,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgModify); i { case 0: return &v.state @@ -21828,7 +14458,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgModifyResponse); i { case 0: return &v.state @@ -21840,7 +14470,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgGrantPermission); i { case 0: return &v.state @@ -21852,7 +14482,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgGrantPermissionResponse); i { case 0: return &v.state @@ -21864,7 +14494,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRevokePermission); i { case 0: return &v.state @@ -21876,7 +14506,7 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_tx_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRevokePermissionResponse); i { case 0: return &v.state @@ -21895,7 +14525,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: 37, + NumMessages: 25, 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 3e6eb130c7..b29caf44b3 100644 --- a/api/lbm/collection/v1/tx_grpc.pb.go +++ b/api/lbm/collection/v1/tx_grpc.pb.go @@ -19,19 +19,13 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Msg_SendFT_FullMethodName = "/lbm.collection.v1.Msg/SendFT" - Msg_OperatorSendFT_FullMethodName = "/lbm.collection.v1.Msg/OperatorSendFT" Msg_SendNFT_FullMethodName = "/lbm.collection.v1.Msg/SendNFT" Msg_OperatorSendNFT_FullMethodName = "/lbm.collection.v1.Msg/OperatorSendNFT" Msg_AuthorizeOperator_FullMethodName = "/lbm.collection.v1.Msg/AuthorizeOperator" Msg_RevokeOperator_FullMethodName = "/lbm.collection.v1.Msg/RevokeOperator" Msg_CreateContract_FullMethodName = "/lbm.collection.v1.Msg/CreateContract" - Msg_IssueFT_FullMethodName = "/lbm.collection.v1.Msg/IssueFT" Msg_IssueNFT_FullMethodName = "/lbm.collection.v1.Msg/IssueNFT" - Msg_MintFT_FullMethodName = "/lbm.collection.v1.Msg/MintFT" Msg_MintNFT_FullMethodName = "/lbm.collection.v1.Msg/MintNFT" - Msg_BurnFT_FullMethodName = "/lbm.collection.v1.Msg/BurnFT" - Msg_OperatorBurnFT_FullMethodName = "/lbm.collection.v1.Msg/OperatorBurnFT" Msg_BurnNFT_FullMethodName = "/lbm.collection.v1.Msg/BurnNFT" Msg_OperatorBurnNFT_FullMethodName = "/lbm.collection.v1.Msg/OperatorBurnNFT" Msg_Modify_FullMethodName = "/lbm.collection.v1.Msg/Modify" @@ -43,14 +37,6 @@ const ( // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type MsgClient interface { - // 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 @@ -72,33 +58,15 @@ type MsgClient interface { // 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 @@ -131,24 +99,6 @@ func NewMsgClient(cc grpc.ClientConnInterface) 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, Msg_SendFT_FullMethodName, in, out, opts...) - if 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, Msg_OperatorSendFT_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - 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, Msg_SendNFT_FullMethodName, in, out, opts...) @@ -194,15 +144,6 @@ func (c *msgClient) CreateContract(ctx context.Context, in *MsgCreateContract, o return out, nil } -func (c *msgClient) IssueFT(ctx context.Context, in *MsgIssueFT, opts ...grpc.CallOption) (*MsgIssueFTResponse, error) { - out := new(MsgIssueFTResponse) - err := c.cc.Invoke(ctx, Msg_IssueFT_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) IssueNFT(ctx context.Context, in *MsgIssueNFT, opts ...grpc.CallOption) (*MsgIssueNFTResponse, error) { out := new(MsgIssueNFTResponse) err := c.cc.Invoke(ctx, Msg_IssueNFT_FullMethodName, in, out, opts...) @@ -212,15 +153,6 @@ func (c *msgClient) IssueNFT(ctx context.Context, in *MsgIssueNFT, opts ...grpc. return out, nil } -func (c *msgClient) MintFT(ctx context.Context, in *MsgMintFT, opts ...grpc.CallOption) (*MsgMintFTResponse, error) { - out := new(MsgMintFTResponse) - err := c.cc.Invoke(ctx, Msg_MintFT_FullMethodName, in, out, opts...) - if 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, Msg_MintNFT_FullMethodName, in, out, opts...) @@ -230,24 +162,6 @@ func (c *msgClient) MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.Ca 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, Msg_BurnFT_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - 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, Msg_OperatorBurnFT_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) BurnNFT(ctx context.Context, in *MsgBurnNFT, opts ...grpc.CallOption) (*MsgBurnNFTResponse, error) { out := new(MsgBurnNFTResponse) err := c.cc.Invoke(ctx, Msg_BurnNFT_FullMethodName, in, out, opts...) @@ -297,14 +211,6 @@ func (c *msgClient) RevokePermission(ctx context.Context, in *MsgRevokePermissio // All implementations must embed UnimplementedMsgServer // for forward compatibility 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 @@ -326,33 +232,15 @@ type MsgServer interface { // 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 @@ -382,12 +270,6 @@ type MsgServer interface { type UnimplementedMsgServer struct { } -func (UnimplementedMsgServer) SendFT(context.Context, *MsgSendFT) (*MsgSendFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendFT not implemented") -} -func (UnimplementedMsgServer) OperatorSendFT(context.Context, *MsgOperatorSendFT) (*MsgOperatorSendFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperatorSendFT not implemented") -} func (UnimplementedMsgServer) SendNFT(context.Context, *MsgSendNFT) (*MsgSendNFTResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SendNFT not implemented") } @@ -403,24 +285,12 @@ func (UnimplementedMsgServer) RevokeOperator(context.Context, *MsgRevokeOperator func (UnimplementedMsgServer) CreateContract(context.Context, *MsgCreateContract) (*MsgCreateContractResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateContract not implemented") } -func (UnimplementedMsgServer) IssueFT(context.Context, *MsgIssueFT) (*MsgIssueFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IssueFT not implemented") -} func (UnimplementedMsgServer) IssueNFT(context.Context, *MsgIssueNFT) (*MsgIssueNFTResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method IssueNFT not implemented") } -func (UnimplementedMsgServer) MintFT(context.Context, *MsgMintFT) (*MsgMintFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MintFT not implemented") -} func (UnimplementedMsgServer) MintNFT(context.Context, *MsgMintNFT) (*MsgMintNFTResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method MintNFT not implemented") } -func (UnimplementedMsgServer) BurnFT(context.Context, *MsgBurnFT) (*MsgBurnFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BurnFT not implemented") -} -func (UnimplementedMsgServer) OperatorBurnFT(context.Context, *MsgOperatorBurnFT) (*MsgOperatorBurnFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperatorBurnFT not implemented") -} func (UnimplementedMsgServer) BurnNFT(context.Context, *MsgBurnNFT) (*MsgBurnNFTResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method BurnNFT not implemented") } @@ -449,42 +319,6 @@ func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { s.RegisterService(&Msg_ServiceDesc, srv) } -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 - } - if interceptor == nil { - return srv.(MsgServer).SendFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SendFT_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SendFT(ctx, req.(*MsgSendFT)) - } - return interceptor(ctx, in, info, handler) -} - -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 - } - if interceptor == nil { - return srv.(MsgServer).OperatorSendFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_OperatorSendFT_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OperatorSendFT(ctx, req.(*MsgOperatorSendFT)) - } - return interceptor(ctx, in, info, handler) -} - 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 { @@ -575,24 +409,6 @@ func _Msg_CreateContract_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } -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: Msg_IssueFT_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).IssueFT(ctx, req.(*MsgIssueFT)) - } - return interceptor(ctx, in, info, handler) -} - 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 { @@ -611,24 +427,6 @@ func _Msg_IssueNFT_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } -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: Msg_MintFT_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).MintFT(ctx, req.(*MsgMintFT)) - } - return interceptor(ctx, in, info, handler) -} - 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 { @@ -647,42 +445,6 @@ func _Msg_MintNFT_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -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 - } - if interceptor == nil { - return srv.(MsgServer).BurnFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_BurnFT_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).BurnFT(ctx, req.(*MsgBurnFT)) - } - return interceptor(ctx, in, info, handler) -} - -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 - } - if interceptor == nil { - return srv.(MsgServer).OperatorBurnFT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_OperatorBurnFT_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OperatorBurnFT(ctx, req.(*MsgOperatorBurnFT)) - } - return interceptor(ctx, in, info, handler) -} - 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 { @@ -780,14 +542,6 @@ 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, @@ -808,30 +562,14 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ 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, diff --git a/proto/lbm/collection/v1/collection.proto b/proto/lbm/collection/v1/collection.proto index c36b52894c..96be2977cc 100644 --- a/proto/lbm/collection/v1/collection.proto +++ b/proto/lbm/collection/v1/collection.proto @@ -29,6 +29,7 @@ message Contract { // // Since: 0.46.0 (finschia) message FTClass { + option deprecated = true; option (gogoproto.goproto_getters) = true; option (cosmos_proto.implements_interface) = "TokenClass"; @@ -93,26 +94,6 @@ message OwnerNFT { string owner = 5 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } -// Deprecated: use FTClass -// -// FT defines the information of fungible token. -message FT { - option (cosmos_proto.implements_interface) = "Token"; - - // contract id associated with the contract. - string contract_id = 1; - // token id defines the unique identifier of the fungible token. - string token_id = 2; - // name defines the human-readable name of the fungible token. - string name = 3; - // meta is a brief description of the fungible token. - string meta = 4; - // decimals is the number of decimals which one must divide the amount by to get its user representation. - int32 decimals = 5; - // mintable represents whether the fungible token is allowed to be minted or burnt. - bool mintable = 6; -} - // Deprecated: use TokenClass // // TokenType defines the information of token type. diff --git a/proto/lbm/collection/v1/event.proto b/proto/lbm/collection/v1/event.proto index 08b47516a1..48fa27c665 100644 --- a/proto/lbm/collection/v1/event.proto +++ b/proto/lbm/collection/v1/event.proto @@ -83,26 +83,6 @@ message EventCreatedContract { string uri = 5; } -// EventCreatedFTClass is emitted when a new fungible token class is created. -// -// Since: 0.46.0 (finschia) -message EventCreatedFTClass { - // contract id associated with the contract. - string contract_id = 1; - // address which triggered the create. - string operator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token id associated with the token class. - string token_id = 3; - // name of the token class. - string name = 4; - // metadata of the token class. - string meta = 5; - // decimals of the token class. - int32 decimals = 6; - // mintable represents whether the token class is allowed to mint or burn its tokens. - bool mintable = 7; -} - // EventCreatedNFTClass is emitted when a new non-fungible token class is created. // // Since: 0.46.0 (finschia) @@ -148,20 +128,6 @@ message EventRenounced { Permission permission = 3; } -// EventMintedFT is emitted when fungible tokens are minted. -// -// Since: 0.46.0 (finschia) -message EventMintedFT { - // contract id associated with the contract. - string contract_id = 1; - // address which triggered the mint. - string operator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // recipient of the tokens. - string to = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // amount of tokens minted. - repeated Coin amount = 4 [(gogoproto.nullable) = false]; -} - // EventMintedNFT is emitted when non-fungible tokens are minted. // // Since: 0.46.0 (finschia) diff --git a/proto/lbm/collection/v1/genesis.proto b/proto/lbm/collection/v1/genesis.proto index f1f4ebe525..dab5eb6aa1 100644 --- a/proto/lbm/collection/v1/genesis.proto +++ b/proto/lbm/collection/v1/genesis.proto @@ -124,12 +124,9 @@ message ContractGrants { message NextClassIDs { // contract id associated with the contract. string contract_id = 1; - // id for the fungible tokens. - string fungible = 2 [ - (cosmos_proto.scalar) = "cosmos.Uint", - (gogoproto.customtype) = "cosmossdk.io/math.Uint", - (gogoproto.nullable) = false - ]; + + reserved 2; + // id for the non-fungible tokens. string non_fungible = 3 [ (cosmos_proto.scalar) = "cosmos.Uint", diff --git a/proto/lbm/collection/v1/query.proto b/proto/lbm/collection/v1/query.proto index 7c08d91881..bacb16086f 100644 --- a/proto/lbm/collection/v1/query.proto +++ b/proto/lbm/collection/v1/query.proto @@ -24,21 +24,6 @@ service Query { option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/balances/{address}"; } - // FTSupply queries the number of tokens from a given contract id and token id. - rpc FTSupply(QueryFTSupplyRequest) returns (QueryFTSupplyResponse) { - option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/supply"; - } - - // FTMinted queries the number of minted tokens from a given contract id and token id. - rpc FTMinted(QueryFTMintedRequest) returns (QueryFTMintedResponse) { - option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/minted"; - } - - // FTBurnt queries the number of burnt tokens from a given contract id and token id. - rpc FTBurnt(QueryFTBurntRequest) returns (QueryFTBurntResponse) { - option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/burnt"; - } - // NFTSupply queries the number of tokens from a given contract id and token type. rpc NFTSupply(QueryNFTSupplyRequest) returns (QueryNFTSupplyResponse) { option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/token_types/{token_type}/supply"; @@ -124,60 +109,6 @@ message QueryAllBalancesResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// QueryFTSupplyRequest is the request type for the Query/FTSupply RPC method. -message QueryFTSupplyRequest { - // contract id associated with the contract. - string contract_id = 1; - // token id associated with the fungible token. - string token_id = 2; -} - -// QueryFTSupplyResponse is the response type for the Query/FTSupply RPC method. -message QueryFTSupplyResponse { - // supply is the supply of the tokens. - string supply = 1 [ - (cosmos_proto.scalar) = "cosmos.Int", - (gogoproto.customtype) = "cosmossdk.io/math.Int", - (gogoproto.nullable) = false - ]; -} - -// QueryFTMintedRequest is the request type for the Query/FTMinted RPC method. -message QueryFTMintedRequest { - // contract id associated with the contract. - string contract_id = 1; - // token id associated with the fungible token. - string token_id = 2; -} - -// QueryFTMintedResponse is the response type for the Query/FTMinted RPC method. -message QueryFTMintedResponse { - // minted is the amount of the minted tokens. - string minted = 1 [ - (cosmos_proto.scalar) = "cosmos.Int", - (gogoproto.customtype) = "cosmossdk.io/math.Int", - (gogoproto.nullable) = false - ]; -} - -// QueryFTBurntRequest is the request type for the Query/FTBurnt RPC method. -message QueryFTBurntRequest { - // contract id associated with the contract. - string contract_id = 1; - // token id associated with the fungible token. - string token_id = 2; -} - -// QueryFTBurntResponse is the response type for the Query/FTBurnt RPC method. -message QueryFTBurntResponse { - // burnt is the amount of the burnt tokens. - string burnt = 1 [ - (cosmos_proto.scalar) = "cosmos.Int", - (gogoproto.customtype) = "cosmossdk.io/math.Int", - (gogoproto.nullable) = false - ]; -} - // QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. message QueryNFTSupplyRequest { // contract id associated with the contract. diff --git a/proto/lbm/collection/v1/tx.proto b/proto/lbm/collection/v1/tx.proto index d5d5c94079..d11795d573 100644 --- a/proto/lbm/collection/v1/tx.proto +++ b/proto/lbm/collection/v1/tx.proto @@ -3,7 +3,6 @@ package lbm.collection.v1; import "gogoproto/gogo.proto"; import "cosmos/msg/v1/msg.proto"; -import "cosmos_proto/cosmos.proto"; import "amino/amino.proto"; import "lbm/collection/v1/collection.proto"; @@ -16,16 +15,6 @@ option (gogoproto.equal_all) = false; service Msg { option (cosmos.msg.v1.service) = true; - // SendFT defines a method to send fungible tokens from one account to another account. - // Fires: - // - EventSent - rpc SendFT(MsgSendFT) returns (MsgSendFTResponse); - - // OperatorSendFT defines a method to send fungible tokens from one account to another account by the operator. - // Fires: - // - EventSent - rpc OperatorSendFT(MsgOperatorSendFT) returns (MsgOperatorSendFTResponse); - // SendNFT defines a method to send non-fungible tokens from one account to another account. // Fires: // - EventSent @@ -52,39 +41,17 @@ service Msg { // - EventCreatedContract rpc CreateContract(MsgCreateContract) returns (MsgCreateContractResponse); - // IssueFT defines a method to create a class of fungible token. - // Fires: - // - EventCreatedFTClass - // - EventMintedFT - // Note: it does not grant any permissions to its issuer. - rpc IssueFT(MsgIssueFT) returns (MsgIssueFTResponse); - // 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. rpc IssueNFT(MsgIssueNFT) returns (MsgIssueNFTResponse); - // MintFT defines a method to mint fungible tokens. - // Fires: - // - EventMintedFT - rpc MintFT(MsgMintFT) returns (MsgMintFTResponse); - // MintNFT defines a method to mint non-fungible tokens. // Fires: // - EventMintedNFT rpc MintNFT(MsgMintNFT) returns (MsgMintNFTResponse); - // BurnFT defines a method to burn fungible tokens. - // Fires: - // - EventBurned - rpc BurnFT(MsgBurnFT) returns (MsgBurnFTResponse); - - // OperatorBurnFT defines a method to burn fungible tokens of the holder by the operator. - // Fires: - // - EventBurned - rpc OperatorBurnFT(MsgOperatorBurnFT) returns (MsgOperatorBurnFTResponse); - // BurnNFT defines a method to burn non-fungible tokens. // Fires: // - EventBurned @@ -113,46 +80,6 @@ service Msg { rpc RevokePermission(MsgRevokePermission) returns (MsgRevokePermissionResponse); } -// MsgSendFT is the Msg/SendFT request type. -message MsgSendFT { - option (cosmos.msg.v1.signer) = "from"; - option (amino.name) = "lbm-sdk/MsgSendFT"; - - // contract id associated with the contract. - string contract_id = 1; - // the address which the transfer is from. - string from = 2; - // the address which the transfer is to. - string to = 3; - // the amount of the transfer. - // Note: amount may be empty. - repeated Coin amount = 4 [(gogoproto.nullable) = false]; -} - -// MsgSendFTResponse is the Msg/SendFT response type. -message MsgSendFTResponse {} - -// MsgOperatorSendFT is the Msg/OperatorSendFT request type. -message MsgOperatorSendFT { - option (cosmos.msg.v1.signer) = "operator"; - option (amino.name) = "lbm-sdk/MsgOperatorSendFT"; - - // contract id associated with the contract. - string contract_id = 1; - // the address of the operator. - string operator = 2; - // the address which the transfer is from. - string from = 3; - // the address which the transfer is to. - string to = 4; - // the amount of the transfer. - // Note: amount may be empty. - repeated Coin amount = 5 [(gogoproto.nullable) = false]; -} - -// MsgOperatorSendFTResponse is the Msg/OperatorSendFT response type. -message MsgOperatorSendFTResponse {} - // MsgSendNFT is the Msg/SendNFT request type. message MsgSendNFT { option (cosmos.msg.v1.signer) = "from"; @@ -245,43 +172,6 @@ message MsgCreateContractResponse { string contract_id = 1; } -// MsgIssueFT is the Msg/IssueFT request type. -message MsgIssueFT { - option (cosmos.msg.v1.signer) = "owner"; - option (amino.name) = "lbm-sdk/MsgIssueFT"; - - // contract id associated with the contract. - string contract_id = 1; - // name defines the human-readable name of the token type. - string name = 2; - // meta is a brief description of the token type. - string meta = 3; - // decimals is the number of decimals which one must divide the amount by to get its user representation. - int32 decimals = 4; - // mintable represents whether the token is allowed to be minted or burnt. - bool mintable = 5; - - // the address of the grantee which must have the permission to issue a token. - string owner = 6; - - // the address to send the minted tokens to. mandatory. - string to = 7; - // the amount of tokens to mint on the issuance. - // Note: if you provide negative amount, a panic may result. - // Note: amount may be zero. - string amount = 8 [ - (cosmos_proto.scalar) = "cosmos.Int", - (gogoproto.customtype) = "cosmossdk.io/math.Int", - (gogoproto.nullable) = false - ]; -} - -// MsgIssueFTResponse is the Msg/IssueFT response type. -message MsgIssueFTResponse { - // id of the token. - string token_id = 1; -} - // MsgIssueNFT is the Msg/IssueNFT request type. message MsgIssueNFT { option (cosmos.msg.v1.signer) = "owner"; @@ -305,25 +195,6 @@ message MsgIssueNFTResponse { string token_type = 1; } -// MsgMintFT is the Msg/MintFT request type. -message MsgMintFT { - option (cosmos.msg.v1.signer) = "from"; - option (amino.name) = "lbm-sdk/MsgMintFT"; - - // contract id associated with the contract. - string contract_id = 1; - // address of the grantee which has the permission for the mint. - string from = 2; - // address which the minted tokens will be sent to. - string to = 3; - // the amount of the mint. - // Note: amount may be empty. - repeated Coin amount = 4 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "Coins"]; -} - -// MsgMintFTResponse is the Msg/MintFT response type. -message MsgMintFTResponse {} - // MsgMintNFT is the Msg/MintNFT request type. message MsgMintNFT { option (cosmos.msg.v1.signer) = "from"; @@ -359,45 +230,6 @@ message MintNFTParam { string meta = 3; } -// MsgBurnFT is the Msg/BurnFT request type. -message MsgBurnFT { - option (cosmos.msg.v1.signer) = "from"; - option (amino.name) = "lbm-sdk/MsgBurnFT"; - - // contract id associated with the contract. - string contract_id = 1; - // address which the tokens will be burnt from. - // Note: it must have the permission for the burn. - string from = 2; - // the amount of the burn. - // Note: amount may be empty. - repeated Coin amount = 3 [(gogoproto.nullable) = false]; -} - -// MsgBurnFTResponse is the Msg/BurnFT response type. -message MsgBurnFTResponse {} - -// MsgOperatorBurnFT is the Msg/OperatorBurnFT request type. -message MsgOperatorBurnFT { - option (cosmos.msg.v1.signer) = "operator"; - option (amino.name) = "lbm-sdk/MsgOperatorBurnFT"; - - // contract id associated with the contract. - string contract_id = 1; - // address which triggers the burn. - // Note: it must have the permission for the burn. - // Note: it must have been authorized by from. - string operator = 2; - // address which the tokens will be burnt from. - string from = 3; - // the amount of the burn. - // Note: amount may be empty. - repeated Coin amount = 4 [(gogoproto.nullable) = false]; -} - -// MsgOperatorBurnFTResponse is the Msg/OperatorBurnFT response type. -message MsgOperatorBurnFTResponse {} - // MsgBurnNFT is the Msg/BurnNFT request type. message MsgBurnNFT { option (cosmos.msg.v1.signer) = "from"; diff --git a/x/collection/client/cli/query.go b/x/collection/client/cli/query.go index ad3c2ebaf7..b5a309c075 100644 --- a/x/collection/client/cli/query.go +++ b/x/collection/client/cli/query.go @@ -30,9 +30,6 @@ func NewQueryCmd() *cobra.Command { queryCmd.AddCommand( NewQueryCmdBalances(), - NewQueryCmdFTSupply(), - NewQueryCmdFTMinted(), - NewQueryCmdFTBurnt(), NewQueryCmdNFTSupply(), NewQueryCmdNFTMinted(), NewQueryCmdNFTBurnt(), @@ -117,123 +114,6 @@ func NewQueryCmdBalances() *cobra.Command { return cmd } -func NewQueryCmdFTSupply() *cobra.Command { - cmd := &cobra.Command{ - Use: "ft-supply [contract-id] [token-id]", - Args: cobra.ExactArgs(2), - Short: "query the supply of tokens", - Example: fmt.Sprintf(`$ %s ft-query %s supply [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.ValidateTokenID(tokenID); err != nil { - return err - } - - queryClient := collection.NewQueryClient(clientCtx) - req := &collection.QueryFTSupplyRequest{ - ContractId: contractID, - TokenId: tokenID, - } - res, err := queryClient.FTSupply(cmd.Context(), req) - if err != nil { - return err - } - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - return cmd -} - -func NewQueryCmdFTMinted() *cobra.Command { - cmd := &cobra.Command{ - Use: "ft-minted [contract-id] [token-id]", - Args: cobra.ExactArgs(2), - Short: "query the minted tokens", - Example: fmt.Sprintf(`$ %s query %s ft-minted [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.ValidateTokenID(tokenID); err != nil { - return err - } - - queryClient := collection.NewQueryClient(clientCtx) - req := &collection.QueryFTMintedRequest{ - ContractId: contractID, - TokenId: tokenID, - } - res, err := queryClient.FTMinted(cmd.Context(), req) - if err != nil { - return err - } - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - return cmd -} - -func NewQueryCmdFTBurnt() *cobra.Command { - cmd := &cobra.Command{ - Use: "ft-burnt [contract-id] [token-id]", - Args: cobra.ExactArgs(2), - Short: "query the burnt tokens", - Example: fmt.Sprintf(`$ %s query %s ft-burnt [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.ValidateTokenID(tokenID); err != nil { - return err - } - - queryClient := collection.NewQueryClient(clientCtx) - req := &collection.QueryFTBurntRequest{ - ContractId: contractID, - TokenId: tokenID, - } - res, err := queryClient.FTBurnt(cmd.Context(), req) - if err != nil { - return err - } - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - return cmd -} - func NewQueryCmdNFTSupply() *cobra.Command { cmd := &cobra.Command{ Use: "nft-supply [contract-id] [token-type]", diff --git a/x/collection/client/cli/tx.go b/x/collection/client/cli/tx.go index e089251fb3..484b3509d4 100644 --- a/x/collection/client/cli/tx.go +++ b/x/collection/client/cli/tx.go @@ -6,12 +6,9 @@ import ( "github.com/spf13/cobra" - "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/version" "github.com/Finschia/finschia-sdk/x/collection" @@ -46,14 +43,10 @@ func NewTxCmd() *cobra.Command { } txCmd.AddCommand( - NewTxCmdSendFT(), - NewTxCmdOperatorSendFT(), NewTxCmdSendNFT(), NewTxCmdOperatorSendNFT(), NewTxCmdCreateContract(), - NewTxCmdIssueFT(), NewTxCmdIssueNFT(), - NewTxCmdMintFT(), NewTxCmdMintNFT(), NewTxCmdGrantPermission(), NewTxCmdRevokePermission(), @@ -65,91 +58,6 @@ func NewTxCmd() *cobra.Command { return txCmd } -func NewTxCmdSendFT() *cobra.Command { - cmd := &cobra.Command{ - Use: "send-ft [contract-id] [from] [to] [amount]", - Args: cobra.ExactArgs(4), - Short: "send fungible tokens", - Long: strings.TrimSpace(fmt.Sprintf(` - $ %s tx %s send-ft [contract-id] [from] [to] [amount]`, version.AppName, collection.ModuleName), - ), - RunE: func(cmd *cobra.Command, args []string) error { - from := args[1] - if err := cmd.Flags().Set(flags.FlagFrom, from); err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - amountStr := args[3] - amount, err := collection.ParseCoins(amountStr) - if err != nil { - return err - } - - msg := &collection.MsgSendFT{ - ContractId: args[0], - From: from, - To: args[2], - Amount: amount, - } - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - return cmd -} - -func NewTxCmdOperatorSendFT() *cobra.Command { - cmd := &cobra.Command{ - Use: "operator-send-ft [contract-id] [operator] [from] [to] [amount]", - Args: cobra.ExactArgs(5), - Short: "send tokens by operator", - Long: strings.TrimSpace(fmt.Sprintf(` - $ %s tx %s operator-send-ft [contract-id] [operator] [from] [to] [amount]`, 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 - } - - amountStr := args[4] - amount, err := collection.ParseCoins(amountStr) - if err != nil { - return err - } - - msg := collection.MsgOperatorSendFT{ - ContractId: args[0], - Operator: operator, - From: args[2], - To: args[3], - Amount: amount, - } - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - return cmd -} - func NewTxCmdSendNFT() *cobra.Command { cmd := &cobra.Command{ Use: "send-nft [contract-id] [from] [to] [token-id]", @@ -278,89 +186,6 @@ func NewTxCmdCreateContract() *cobra.Command { return cmd } -func NewTxCmdIssueFT() *cobra.Command { - cmd := &cobra.Command{ - Use: "issue-ft [contract-id] [operator]", - Args: cobra.ExactArgs(2), - Short: "create a fungible token class", - Long: strings.TrimSpace(fmt.Sprintf(` - $ %s tx %s issue-ft [contract-id] [operator]`, 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 - } - - name, err := cmd.Flags().GetString(FlagName) - if err != nil { - return err - } - - meta, err := cmd.Flags().GetString(FlagMeta) - if err != nil { - return err - } - - decimals, err := cmd.Flags().GetInt32(FlagDecimals) - if err != nil { - return err - } - - mintable, err := cmd.Flags().GetBool(FlagMintable) - if err != nil { - return err - } - - supplyStr, err := cmd.Flags().GetString(FlagSupply) - if err != nil { - return err - } - supply, ok := math.NewIntFromString(supplyStr) - if !ok { - return sdkerrors.ErrInvalidType.Wrapf("failed to set supply: %s", supplyStr) - } - - to, err := cmd.Flags().GetString(FlagTo) - if err != nil { - return err - } - - msg := collection.MsgIssueFT{ - ContractId: args[0], - Owner: operator, - Name: name, - Meta: meta, - Decimals: decimals, - Mintable: mintable, - To: to, - Amount: supply, - } - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - cmd.Flags().String(FlagName, "", "set name") - cmd.MarkFlagRequired(FlagName) - cmd.Flags().String(FlagMeta, "", "set meta") - cmd.Flags().String(FlagTo, "", "address to send the initial supply") - cmd.MarkFlagRequired(FlagTo) - cmd.Flags().Bool(FlagMintable, false, "set mintable") - cmd.Flags().String(FlagSupply, DefaultSupply, "initial supply") - cmd.Flags().Int32(FlagDecimals, DefaultDecimals, "set decimals") - - return cmd -} - func NewTxCmdIssueNFT() *cobra.Command { cmd := &cobra.Command{ Use: "issue-nft [contract-id] [operator]", @@ -410,49 +235,6 @@ func NewTxCmdIssueNFT() *cobra.Command { return cmd } -func NewTxCmdMintFT() *cobra.Command { - cmd := &cobra.Command{ - Use: "mint-ft [contract-id] [operator] [to] [class-id] [amount]", - Args: cobra.ExactArgs(5), - Short: "mint fungible tokens", - Long: strings.TrimSpace(fmt.Sprintf(` - $ %s tx %s mint-ft [contract-id] [operator] [to] [class-id] [amount]`, 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 - } - - amountStr := args[4] - amount, ok := math.NewIntFromString(amountStr) - if !ok { - return sdkerrors.ErrInvalidType.Wrapf("failed to set amount: %s", amountStr) - } - - coins := collection.NewCoins(collection.NewFTCoin(args[3], amount)) - msg := collection.MsgMintFT{ - ContractId: args[0], - From: args[1], - To: args[2], - Amount: coins, - } - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - return cmd -} - func NewTxCmdMintNFT() *cobra.Command { cmd := &cobra.Command{ Use: "mint-nft [contract-id] [operator] [to] [class-id]", @@ -509,89 +291,6 @@ func NewTxCmdMintNFT() *cobra.Command { return cmd } -func NewTxCmdBurnFT() *cobra.Command { - cmd := &cobra.Command{ - Use: "burn-ft [contract-id] [from] [amount]", - Args: cobra.ExactArgs(3), - Short: "burn tokens", - Long: strings.TrimSpace(fmt.Sprintf(` - $ %s tx %s burn-ft [contract-id] [from] [amount]`, version.AppName, collection.ModuleName), - ), - RunE: func(cmd *cobra.Command, args []string) error { - from := args[1] - if err := cmd.Flags().Set(flags.FlagFrom, from); err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - amountStr := args[2] - amount, err := collection.ParseCoins(amountStr) - if err != nil { - return err - } - - msg := collection.MsgBurnFT{ - ContractId: args[0], - From: from, - Amount: amount, - } - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - return cmd -} - -func NewTxCmdOperatorBurnFT() *cobra.Command { - cmd := &cobra.Command{ - Use: "operator-burn-ft [contract-id] [operator] [from] [amount]", - Args: cobra.ExactArgs(4), - Short: "burn tokens by a given operator", - Long: strings.TrimSpace(fmt.Sprintf(` - $ %s tx %s operator-burn-ft [contract-id] [operator] [from] [amount]`, 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 - } - - amountStr := args[3] - amount, err := collection.ParseCoins(amountStr) - if err != nil { - return err - } - - msg := collection.MsgOperatorBurnFT{ - ContractId: args[0], - Operator: operator, - From: args[2], - Amount: amount, - } - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - return cmd -} - func NewTxCmdBurnNFT() *cobra.Command { cmd := &cobra.Command{ Use: "burn-nft [contract-id] [from] [token-id]", diff --git a/x/collection/codec.go b/x/collection/codec.go index 9f7ed86137..14136bc379 100644 --- a/x/collection/codec.go +++ b/x/collection/codec.go @@ -11,19 +11,13 @@ import ( // RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { - legacy.RegisterAminoMsg(cdc, &MsgSendFT{}, "lbm-sdk/MsgSendFT") - legacy.RegisterAminoMsg(cdc, &MsgOperatorSendFT{}, "lbm-sdk/MsgOperatorSendFT") legacy.RegisterAminoMsg(cdc, &MsgSendNFT{}, "lbm-sdk/MsgSendNFT") legacy.RegisterAminoMsg(cdc, &MsgOperatorSendNFT{}, "lbm-sdk/MsgOperatorSendNFT") legacy.RegisterAminoMsg(cdc, &MsgAuthorizeOperator{}, "lbm-sdk/collection/MsgAuthorizeOperator") // Changed msgName due to conflict with `x/token` legacy.RegisterAminoMsg(cdc, &MsgRevokeOperator{}, "lbm-sdk/collection/MsgRevokeOperator") // Changed msgName due to conflict with `x/token` legacy.RegisterAminoMsg(cdc, &MsgCreateContract{}, "lbm-sdk/MsgCreateContract") - legacy.RegisterAminoMsg(cdc, &MsgIssueFT{}, "lbm-sdk/MsgIssueFT") legacy.RegisterAminoMsg(cdc, &MsgIssueNFT{}, "lbm-sdk/MsgIssueNFT") - legacy.RegisterAminoMsg(cdc, &MsgMintFT{}, "lbm-sdk/MsgMintFT") legacy.RegisterAminoMsg(cdc, &MsgMintNFT{}, "lbm-sdk/MsgMintNFT") - legacy.RegisterAminoMsg(cdc, &MsgBurnFT{}, "lbm-sdk/MsgBurnFT") - legacy.RegisterAminoMsg(cdc, &MsgOperatorBurnFT{}, "lbm-sdk/MsgOperatorBurnFT") legacy.RegisterAminoMsg(cdc, &MsgBurnNFT{}, "lbm-sdk/MsgBurnNFT") legacy.RegisterAminoMsg(cdc, &MsgOperatorBurnNFT{}, "lbm-sdk/MsgOperatorBurnNFT") legacy.RegisterAminoMsg(cdc, &MsgModify{}, "lbm-sdk/collection/MsgModify") // Changed msgName due to conflict with `x/token` @@ -34,18 +28,12 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { func RegisterInterfaces(registry types.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgCreateContract{}, - &MsgIssueFT{}, &MsgIssueNFT{}, - &MsgMintFT{}, &MsgMintNFT{}, - &MsgSendFT{}, - &MsgOperatorSendFT{}, &MsgSendNFT{}, &MsgOperatorSendNFT{}, &MsgAuthorizeOperator{}, &MsgRevokeOperator{}, - &MsgBurnFT{}, - &MsgOperatorBurnFT{}, &MsgBurnNFT{}, &MsgOperatorBurnNFT{}, &MsgModify{}, @@ -63,7 +51,6 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { registry.RegisterInterface( "lbm.collection.v1.Token", (*Token)(nil), - &FT{}, &OwnerNFT{}, ) diff --git a/x/collection/collection.go b/x/collection/collection.go index 2bce50dfba..2f1323feba 100644 --- a/x/collection/collection.go +++ b/x/collection/collection.go @@ -30,7 +30,6 @@ func (x LegacyPermission) String() string { func DefaultNextClassIDs(contractID string) NextClassIDs { return NextClassIDs{ ContractId: contractID, - Fungible: math.NewUint(1), NonFungible: math.NewUint(1 << 28).Incr(), // "10000000 + 1" } } @@ -77,37 +76,13 @@ func TokenClassUnpackInterfaces(any *codectypes.Any, unpacker codectypes.AnyUnpa // FTClass var _ TokenClass = (*FTClass)(nil) -func (c *FTClass) SetID(ids *NextClassIDs) { - id := ids.Fungible - ids.Fungible = id.Incr() - c.Id = fmt.Sprintf("%08x", id.Uint64()) -} - -func (c *FTClass) SetName(name string) { - c.Name = name -} +func (c *FTClass) SetID(_ *NextClassIDs) {} -func (c *FTClass) SetMeta(meta string) { - c.Meta = meta -} - -func (c FTClass) ValidateBasic() error { - if err := ValidateClassID(c.Id); err != nil { - return err - } +func (c *FTClass) SetName(_ string) {} - if err := validateName(c.Name); err != nil { - return err - } - if err := validateMeta(c.Meta); err != nil { - return err - } - if err := validateDecimals(c.Decimals); err != nil { - return err - } +func (c *FTClass) SetMeta(_ string) {} - return nil -} +func (c FTClass) ValidateBasic() error { return nil } // ---------------------------------------------------------------------------- // NFTClass @@ -144,9 +119,6 @@ func (c NFTClass) ValidateBasic() error { // ---------------------------------------------------------------------------- // Coin -func NewFTCoin(classID string, amount math.Int) Coin { - return NewCoin(NewFTID(classID), amount) -} func NewNFTCoin(classID string, number int) Coin { return NewCoin(NewNFTID(classID, number), math.OneInt()) diff --git a/x/collection/collection.pb.go b/x/collection/collection.pb.go index 81c7cb1834..a39d5f83af 100644 --- a/x/collection/collection.pb.go +++ b/x/collection/collection.pb.go @@ -188,6 +188,8 @@ var xxx_messageInfo_Contract proto.InternalMessageInfo // FTClass defines the class of fungible token. // // Since: 0.46.0 (finschia) +// +// Deprecated: Do not use. type FTClass struct { // id defines the unique identifier of the token class. // Note: size of the class id is 8 in length. @@ -432,57 +434,6 @@ func (m *OwnerNFT) XXX_DiscardUnknown() { var xxx_messageInfo_OwnerNFT proto.InternalMessageInfo -// Deprecated: use FTClass -// -// FT defines the information of fungible token. -type FT 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 defines the unique identifier of the fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // name defines the human-readable name of the fungible token. - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // meta is a brief description of the fungible token. - Meta string `protobuf:"bytes,4,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,5,opt,name=decimals,proto3" json:"decimals,omitempty"` - // mintable represents whether the fungible token is allowed to be minted or burnt. - Mintable bool `protobuf:"varint,6,opt,name=mintable,proto3" json:"mintable,omitempty"` -} - -func (m *FT) Reset() { *m = FT{} } -func (m *FT) String() string { return proto.CompactTextString(m) } -func (*FT) ProtoMessage() {} -func (*FT) Descriptor() ([]byte, []int) { - return fileDescriptor_bb15fea9f4c37044, []int{6} -} -func (m *FT) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FT.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 *FT) XXX_Merge(src proto.Message) { - xxx_messageInfo_FT.Merge(m, src) -} -func (m *FT) XXX_Size() int { - return m.Size() -} -func (m *FT) XXX_DiscardUnknown() { - xxx_messageInfo_FT.DiscardUnknown(m) -} - -var xxx_messageInfo_FT proto.InternalMessageInfo - // Deprecated: use TokenClass // // TokenType defines the information of token type. @@ -505,7 +456,7 @@ func (m *TokenType) Reset() { *m = TokenType{} } func (m *TokenType) String() string { return proto.CompactTextString(m) } func (*TokenType) ProtoMessage() {} func (*TokenType) Descriptor() ([]byte, []int) { - return fileDescriptor_bb15fea9f4c37044, []int{7} + return fileDescriptor_bb15fea9f4c37044, []int{6} } func (m *TokenType) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -545,7 +496,7 @@ type Coin struct { func (m *Coin) Reset() { *m = Coin{} } func (*Coin) ProtoMessage() {} func (*Coin) Descriptor() ([]byte, []int) { - return fileDescriptor_bb15fea9f4c37044, []int{8} + return fileDescriptor_bb15fea9f4c37044, []int{7} } func (m *Coin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -588,7 +539,7 @@ func (m *Grant) Reset() { *m = Grant{} } func (m *Grant) String() string { return proto.CompactTextString(m) } func (*Grant) ProtoMessage() {} func (*Grant) Descriptor() ([]byte, []int) { - return fileDescriptor_bb15fea9f4c37044, []int{9} + return fileDescriptor_bb15fea9f4c37044, []int{8} } func (m *Grant) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -631,7 +582,7 @@ func (m *Authorization) Reset() { *m = Authorization{} } func (m *Authorization) String() string { return proto.CompactTextString(m) } func (*Authorization) ProtoMessage() {} func (*Authorization) Descriptor() ([]byte, []int) { - return fileDescriptor_bb15fea9f4c37044, []int{10} + return fileDescriptor_bb15fea9f4c37044, []int{9} } func (m *Authorization) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -672,7 +623,7 @@ func (m *Attribute) Reset() { *m = Attribute{} } func (m *Attribute) String() string { return proto.CompactTextString(m) } func (*Attribute) ProtoMessage() {} func (*Attribute) Descriptor() ([]byte, []int) { - return fileDescriptor_bb15fea9f4c37044, []int{11} + return fileDescriptor_bb15fea9f4c37044, []int{10} } func (m *Attribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -710,7 +661,6 @@ func init() { proto.RegisterType((*NFTClass)(nil), "lbm.collection.v1.NFTClass") proto.RegisterType((*NFT)(nil), "lbm.collection.v1.NFT") proto.RegisterType((*OwnerNFT)(nil), "lbm.collection.v1.OwnerNFT") - proto.RegisterType((*FT)(nil), "lbm.collection.v1.FT") proto.RegisterType((*TokenType)(nil), "lbm.collection.v1.TokenType") proto.RegisterType((*Coin)(nil), "lbm.collection.v1.Coin") proto.RegisterType((*Grant)(nil), "lbm.collection.v1.Grant") @@ -723,63 +673,62 @@ func init() { } var fileDescriptor_bb15fea9f4c37044 = []byte{ - // 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, + // 871 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0x3b, 0x6f, 0xdb, 0x56, + 0x14, 0xc7, 0x49, 0x3d, 0x6c, 0xea, 0x14, 0x75, 0x18, 0x56, 0x71, 0x69, 0x16, 0xa6, 0x08, 0x2e, + 0x4d, 0x13, 0x48, 0x6a, 0x1e, 0x2d, 0x0a, 0x03, 0x1d, 0x2c, 0x45, 0x4a, 0x59, 0xc4, 0xb2, 0x21, + 0xc9, 0x05, 0xd2, 0xc5, 0xa0, 0xc8, 0x6b, 0xe9, 0xc2, 0x24, 0xaf, 0xc0, 0x7b, 0xe5, 0x54, 0xf9, + 0x04, 0x81, 0x96, 0x76, 0xec, 0x22, 0xc0, 0x40, 0x3b, 0xa4, 0xbb, 0xe7, 0xce, 0x46, 0xa6, 0x20, + 0x53, 0xd1, 0x21, 0x68, 0xe5, 0xa5, 0x7b, 0xbf, 0x40, 0xc1, 0x87, 0x24, 0x56, 0x52, 0x12, 0xa3, + 0xdd, 0xce, 0x39, 0xf7, 0xff, 0x3f, 0xe7, 0xdc, 0x1f, 0x49, 0x10, 0x74, 0xa7, 0xe3, 0x96, 0x2d, + 0xe2, 0x38, 0xc8, 0x62, 0x98, 0x78, 0xe5, 0xd3, 0x3b, 0x89, 0xac, 0xd4, 0xf7, 0x09, 0x23, 0xd2, + 0x75, 0xa7, 0xe3, 0x96, 0x12, 0xd5, 0xd3, 0x3b, 0x4a, 0xbe, 0x4b, 0xba, 0x24, 0x3c, 0x2d, 0x07, + 0x51, 0x24, 0x54, 0xb6, 0x2c, 0x42, 0x5d, 0x42, 0x8f, 0xa2, 0x83, 0x28, 0x89, 0x8e, 0xf4, 0x0d, + 0x58, 0x3b, 0x30, 0x7d, 0xd3, 0xa5, 0x5f, 0x67, 0x04, 0x5e, 0x4c, 0xeb, 0x6d, 0x10, 0xaa, 0xc4, + 0x63, 0xbe, 0x69, 0x31, 0x69, 0x03, 0x52, 0xd8, 0x96, 0x79, 0x8d, 0xbf, 0x99, 0x6b, 0xa6, 0xb0, + 0x2d, 0x49, 0x90, 0xf1, 0x4c, 0x17, 0xc9, 0xa9, 0xb0, 0x12, 0xc6, 0x41, 0xcd, 0x45, 0xcc, 0x94, + 0xd3, 0x51, 0x2d, 0x88, 0x25, 0x11, 0xd2, 0x03, 0x1f, 0xcb, 0x99, 0xb0, 0x14, 0x84, 0xfa, 0xf7, + 0x3c, 0xac, 0xd7, 0xdb, 0x55, 0xc7, 0xa4, 0xf4, 0x3f, 0x77, 0x55, 0x40, 0xb0, 0x91, 0x85, 0x5d, + 0xd3, 0xa1, 0x61, 0xeb, 0x6c, 0x73, 0x96, 0x07, 0x67, 0x2e, 0xf6, 0x98, 0xd9, 0x71, 0x90, 0x9c, + 0xd5, 0xf8, 0x9b, 0x42, 0x73, 0x96, 0xef, 0xe4, 0x9f, 0x9d, 0x15, 0xf8, 0x17, 0xe7, 0x45, 0x68, + 0x93, 0x13, 0xe4, 0x85, 0x3b, 0xc8, 0xbc, 0xfe, 0x0d, 0x08, 0x8d, 0xff, 0xb9, 0xd1, 0x8e, 0xb4, + 0xdc, 0x59, 0xff, 0x0a, 0xd2, 0x8d, 0x7a, 0x5b, 0xda, 0x02, 0x81, 0x05, 0xc5, 0xa3, 0x59, 0xe3, + 0xf5, 0x30, 0x37, 0xae, 0xdc, 0x5d, 0xff, 0x85, 0x07, 0x61, 0xff, 0x89, 0x87, 0xfc, 0xa0, 0x5f, + 0x01, 0xde, 0xb3, 0xe2, 0xc7, 0x32, 0x6f, 0x09, 0xd3, 0x92, 0x61, 0xff, 0x6b, 0x60, 0x6a, 0xf5, + 0xc0, 0xf4, 0x8a, 0x81, 0x99, 0x04, 0xe0, 0x12, 0x64, 0x49, 0x30, 0x2f, 0x24, 0x98, 0xab, 0xc8, + 0xaf, 0xce, 0x8b, 0xf9, 0xf8, 0x5d, 0xd9, 0xb5, 0x6d, 0x1f, 0x51, 0xda, 0x62, 0x3e, 0xf6, 0xba, + 0xcd, 0x48, 0xb6, 0x93, 0x7b, 0x71, 0x5e, 0xcc, 0x86, 0x57, 0xd7, 0x29, 0xe4, 0xc2, 0xa0, 0x3d, + 0xec, 0xa3, 0x77, 0xef, 0xba, 0x0d, 0x10, 0xed, 0xca, 0x86, 0xfd, 0x29, 0x87, 0x1c, 0x9b, 0xf9, + 0xaf, 0xb8, 0xaf, 0xde, 0x87, 0x4c, 0x95, 0x60, 0xef, 0x6d, 0xac, 0xab, 0xb0, 0x66, 0xba, 0x64, + 0xe0, 0xb1, 0x68, 0x4a, 0xe5, 0xf6, 0xc5, 0xeb, 0x02, 0xf7, 0xfb, 0xeb, 0xc2, 0x8d, 0xe8, 0x5e, + 0xd4, 0x3e, 0x29, 0x61, 0x52, 0x76, 0x4d, 0xd6, 0x2b, 0x19, 0x1e, 0x7b, 0x75, 0x5e, 0x84, 0xf8, + 0xc2, 0x86, 0xc7, 0x9a, 0xb1, 0x75, 0x47, 0xf8, 0xf1, 0xac, 0xc0, 0xfd, 0x75, 0x56, 0xe0, 0xf5, + 0xa7, 0x90, 0x7d, 0xe8, 0x9b, 0x1e, 0x93, 0xee, 0xc2, 0x7a, 0x37, 0x08, 0x10, 0x8a, 0x26, 0xbe, + 0x05, 0xd6, 0x54, 0x28, 0x7d, 0x09, 0xd0, 0x47, 0xbe, 0x8b, 0x29, 0xc5, 0xc4, 0x0b, 0xf7, 0xd9, + 0xb8, 0xbb, 0x5d, 0x5a, 0xfa, 0x84, 0x4b, 0x07, 0x33, 0x51, 0x33, 0x61, 0xd0, 0x9f, 0xc0, 0xfb, + 0xbb, 0x03, 0xd6, 0x23, 0x3e, 0x7e, 0x6a, 0x06, 0x52, 0xe9, 0x53, 0x58, 0xeb, 0x11, 0xc7, 0x46, + 0xfe, 0x3b, 0x57, 0x88, 0x75, 0xd2, 0x7d, 0x10, 0x48, 0x1f, 0xf9, 0x26, 0x23, 0x7e, 0xcc, 0xe3, + 0xcd, 0x9e, 0x99, 0x52, 0xbf, 0x07, 0xb9, 0x5d, 0xc6, 0x7c, 0xdc, 0x19, 0x30, 0x14, 0x7c, 0xda, + 0x27, 0x68, 0x18, 0x63, 0x0e, 0x42, 0x29, 0x0f, 0xd9, 0x53, 0xd3, 0x19, 0x4c, 0x9f, 0x63, 0x94, + 0xdc, 0xfa, 0x9b, 0x07, 0x98, 0x5f, 0x44, 0xfa, 0x0c, 0x36, 0x0f, 0x6a, 0xcd, 0x3d, 0xa3, 0xd5, + 0x32, 0xf6, 0x1b, 0x47, 0x87, 0x8d, 0xd6, 0x41, 0xad, 0x6a, 0xd4, 0x8d, 0xda, 0x03, 0x91, 0x53, + 0xb6, 0x46, 0x63, 0xed, 0xc6, 0x5c, 0x7b, 0xe8, 0xd1, 0x3e, 0xb2, 0xf0, 0x31, 0x46, 0xb6, 0xf4, + 0x09, 0x88, 0x09, 0x9b, 0xd1, 0x6a, 0x1d, 0xd6, 0x44, 0x5e, 0xf9, 0x60, 0x34, 0xd6, 0xae, 0xcd, + 0x0d, 0x06, 0xa5, 0x03, 0x24, 0xdd, 0x86, 0xeb, 0x09, 0xe9, 0xde, 0xfe, 0x03, 0xa3, 0xfe, 0x58, + 0x4c, 0x29, 0xf9, 0xd1, 0x58, 0x13, 0xe7, 0xda, 0x3d, 0x62, 0xe3, 0xe3, 0xa1, 0xf4, 0x31, 0x5c, + 0x4b, 0x8a, 0x8d, 0x46, 0x5b, 0x4c, 0x2b, 0xd2, 0x68, 0xac, 0x6d, 0x24, 0xa4, 0xd8, 0x63, 0x0b, + 0xc2, 0xca, 0x61, 0xb3, 0x21, 0x66, 0x16, 0x85, 0x95, 0x81, 0xef, 0x29, 0x99, 0x67, 0x3f, 0xa9, + 0xdc, 0xad, 0x5f, 0x53, 0x20, 0x3e, 0x42, 0x5d, 0xd3, 0x1a, 0x26, 0xee, 0x5e, 0x81, 0xed, 0x47, + 0xb5, 0x87, 0xbb, 0xd5, 0xc7, 0x47, 0x6f, 0x44, 0x50, 0x18, 0x8d, 0xb5, 0x8f, 0x16, 0x8d, 0x49, + 0x10, 0x9f, 0xc3, 0x87, 0xcb, 0x3d, 0xa6, 0x3c, 0x42, 0x80, 0x8b, 0xee, 0x88, 0xca, 0x17, 0x20, + 0x2f, 0xfb, 0x66, 0x70, 0x94, 0xd1, 0x58, 0xdb, 0x5c, 0x34, 0xc6, 0x88, 0xee, 0xc3, 0xe6, 0x0a, + 0x67, 0x44, 0x4a, 0x1e, 0x8d, 0xb5, 0xfc, 0x92, 0x2f, 0xe0, 0xb5, 0xd2, 0x15, 0x63, 0x5b, 0xe9, + 0x0a, 0xe1, 0x09, 0x01, 0xbc, 0xe7, 0x3f, 0xab, 0x5c, 0x65, 0xff, 0xe2, 0x4f, 0x95, 0x7b, 0x3e, + 0x51, 0xb9, 0x8b, 0x89, 0xca, 0xbf, 0x9c, 0xa8, 0xfc, 0x1f, 0x13, 0x95, 0xff, 0xe1, 0x52, 0xe5, + 0x5e, 0x5e, 0xaa, 0xdc, 0x6f, 0x97, 0x2a, 0xf7, 0x6d, 0xb1, 0x8b, 0x59, 0x6f, 0xd0, 0x29, 0x59, + 0xc4, 0x2d, 0xd7, 0xb1, 0x47, 0xad, 0x1e, 0x36, 0xcb, 0xc7, 0x71, 0x50, 0xa4, 0xf6, 0x49, 0xf9, + 0xbb, 0xc4, 0x8f, 0xb2, 0xb3, 0x16, 0xfe, 0xe5, 0xee, 0xfd, 0x13, 0x00, 0x00, 0xff, 0xff, 0x79, + 0x69, 0xfd, 0x07, 0x4f, 0x07, 0x00, 0x00, } func (this *Coin) Equal(that interface{}) bool { @@ -1088,72 +1037,6 @@ func (m *OwnerNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *FT) 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 *FT) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FT) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Mintable { - i-- - if m.Mintable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.Decimals != 0 { - i = encodeVarintCollection(dAtA, i, uint64(m.Decimals)) - i-- - dAtA[i] = 0x28 - } - if len(m.Meta) > 0 { - i -= len(m.Meta) - copy(dAtA[i:], m.Meta) - i = encodeVarintCollection(dAtA, i, uint64(len(m.Meta))) - i-- - dAtA[i] = 0x22 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintCollection(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - } - if len(m.TokenId) > 0 { - i -= len(m.TokenId) - copy(dAtA[i:], m.TokenId) - i = encodeVarintCollection(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 = encodeVarintCollection(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *TokenType) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1497,37 +1380,6 @@ func (m *OwnerNFT) Size() (n int) { return n } -func (m *FT) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovCollection(uint64(l)) - } - l = len(m.TokenId) - if l > 0 { - n += 1 + l + sovCollection(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovCollection(uint64(l)) - } - l = len(m.Meta) - if l > 0 { - n += 1 + l + sovCollection(uint64(l)) - } - if m.Decimals != 0 { - n += 1 + sovCollection(uint64(m.Decimals)) - } - if m.Mintable { - n += 2 - } - return n -} - func (m *TokenType) Size() (n int) { if m == nil { return 0 @@ -2539,223 +2391,6 @@ func (m *OwnerNFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *FT) 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 ErrIntOverflowCollection - } - 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: FT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FT: 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 ErrIntOverflowCollection - } - 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 ErrInvalidLengthCollection - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCollection - } - 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 ErrIntOverflowCollection - } - 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 ErrInvalidLengthCollection - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCollection - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TokenId = 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 ErrIntOverflowCollection - } - 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 ErrInvalidLengthCollection - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCollection - } - 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 ErrIntOverflowCollection - } - 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 ErrInvalidLengthCollection - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCollection - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Meta = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - 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 ErrIntOverflowCollection - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Decimals |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - 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 ErrIntOverflowCollection - } - 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 := skipCollection(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCollection - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *TokenType) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/collection/collection_test.go b/x/collection/collection_test.go index 4ced059d4d..e7776c27df 100644 --- a/x/collection/collection_test.go +++ b/x/collection/collection_test.go @@ -13,55 +13,6 @@ import ( const contractID = "deadbeef" -func TestFTClass(t *testing.T) { - nextIDs := collection.DefaultNextClassIDs(contractID) - testCases := map[string]struct { - id string - name string - meta string - decimals int32 - valid bool - }{ - "valid class": { - valid: true, - }, - "invalid id": { - id: "invalid", - }, - "invalid name": { - name: string(make([]rune, 21)), - }, - "invalid meta": { - meta: string(make([]rune, 1001)), - }, - "invalid decimals": { - decimals: 19, - }, - } - - for name, tc := range testCases { - t.Run(name, func(t *testing.T) { - var class collection.TokenClass = &collection.FTClass{ - Id: tc.id, - Decimals: tc.decimals, - } - - if len(tc.id) == 0 { - class.SetID(&nextIDs) - } - class.SetName(tc.name) - class.SetMeta(tc.meta) - - err := class.ValidateBasic() - if !tc.valid { - require.Error(t, err) - return - } - require.NoError(t, err) - }) - } -} - func TestNFTClass(t *testing.T) { nextIDs := collection.DefaultNextClassIDs(contractID) testCases := map[string]struct { @@ -104,9 +55,9 @@ func TestParseCoin(t *testing.T) { expected collection.Coin }{ "valid coin": { - input: "00bab10c00000000:10", + input: "00bab10c00000001:1", valid: true, - expected: collection.NewFTCoin("00bab10c", math.NewInt(10)), + expected: collection.NewNFTCoin("00bab10c", 1), }, "invalid expression": { input: "oobabloc00000000:10", @@ -138,18 +89,18 @@ func TestParseCoins(t *testing.T) { expected collection.Coins }{ "valid single coins": { - input: "00bab10c00000000:10", + input: "00bab10c00000001:1", valid: true, expected: collection.NewCoins( - collection.NewFTCoin("00bab10c", math.NewInt(10)), + collection.NewNFTCoin("00bab10c", 1), ), }, "valid multiple coins": { - input: "deadbeef00000001:1,00bab10c00000000:10", + input: "deadbeef00000001:1,deadbeef0000000a:1", valid: true, expected: collection.NewCoins( collection.NewNFTCoin(contractID, 1), - collection.NewFTCoin("00bab10c", math.NewInt(10)), + collection.NewNFTCoin(contractID, 10), ), }, "empty string": {}, @@ -176,7 +127,6 @@ func TestParseCoins(t *testing.T) { func TestDefaultNextClassIDs(t *testing.T) { require.Equal(t, collection.NextClassIDs{ ContractId: contractID, - Fungible: math.NewUint(1), NonFungible: math.NewUint(1 << 28).Incr(), // "10000000 + 1" }, collection.DefaultNextClassIDs(contractID), diff --git a/x/collection/errors.go b/x/collection/errors.go index de7bf23b84..e1700fccb5 100644 --- a/x/collection/errors.go +++ b/x/collection/errors.go @@ -8,11 +8,9 @@ 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") @@ -30,7 +28,6 @@ var ( 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") @@ -46,6 +43,8 @@ var ( // Deprecated: do not use from v0.50.x var ( + ErrTokenNotMintable = errorsmod.Register(collectionCodespace, 3, "token symbol, token-id is not mintable") + ErrInvalidIssueFT = errorsmod.Register(collectionCodespace, 7, "Issuing token with amount[1], decimals[0], mintable[false] prohibited. Issue nft token instead.") 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") @@ -60,6 +59,7 @@ var ( ErrAccountNotExist = errorsmod.Register(collectionCodespace, 32, "account does not exists") ErrInsufficientSupply = errorsmod.Register(collectionCodespace, 33, "insufficient supply") ErrInvalidCoin = errorsmod.Register(collectionCodespace, 34, "invalid coin") + ErrTokenTypeFTWithoutIndex = errorsmod.Register(collectionCodespace, 39, "There is a token type of ft but no token index") 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)") diff --git a/x/collection/event.pb.go b/x/collection/event.pb.go index 5d5775c629..e21f57186f 100644 --- a/x/collection/event.pb.go +++ b/x/collection/event.pb.go @@ -360,108 +360,6 @@ func (m *EventCreatedContract) GetUri() string { return "" } -// EventCreatedFTClass is emitted when a new fungible token class is created. -// -// Since: 0.46.0 (finschia) -type EventCreatedFTClass 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 create. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // token id associated with the token class. - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // name of the token class. - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - // metadata of the token class. - Meta string `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"` - // decimals of the token class. - Decimals int32 `protobuf:"varint,6,opt,name=decimals,proto3" json:"decimals,omitempty"` - // mintable represents whether the token class is allowed to mint or burn its tokens. - Mintable bool `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"` -} - -func (m *EventCreatedFTClass) Reset() { *m = EventCreatedFTClass{} } -func (m *EventCreatedFTClass) String() string { return proto.CompactTextString(m) } -func (*EventCreatedFTClass) ProtoMessage() {} -func (*EventCreatedFTClass) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{4} -} -func (m *EventCreatedFTClass) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventCreatedFTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventCreatedFTClass.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 *EventCreatedFTClass) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventCreatedFTClass.Merge(m, src) -} -func (m *EventCreatedFTClass) XXX_Size() int { - return m.Size() -} -func (m *EventCreatedFTClass) XXX_DiscardUnknown() { - xxx_messageInfo_EventCreatedFTClass.DiscardUnknown(m) -} - -var xxx_messageInfo_EventCreatedFTClass proto.InternalMessageInfo - -func (m *EventCreatedFTClass) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *EventCreatedFTClass) GetOperator() string { - if m != nil { - return m.Operator - } - return "" -} - -func (m *EventCreatedFTClass) GetTokenId() string { - if m != nil { - return m.TokenId - } - return "" -} - -func (m *EventCreatedFTClass) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *EventCreatedFTClass) GetMeta() string { - if m != nil { - return m.Meta - } - return "" -} - -func (m *EventCreatedFTClass) GetDecimals() int32 { - if m != nil { - return m.Decimals - } - return 0 -} - -func (m *EventCreatedFTClass) GetMintable() bool { - if m != nil { - return m.Mintable - } - return false -} - // EventCreatedNFTClass is emitted when a new non-fungible token class is created. // // Since: 0.46.0 (finschia) @@ -483,7 +381,7 @@ func (m *EventCreatedNFTClass) Reset() { *m = EventCreatedNFTClass{} } func (m *EventCreatedNFTClass) String() string { return proto.CompactTextString(m) } func (*EventCreatedNFTClass) ProtoMessage() {} func (*EventCreatedNFTClass) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{5} + return fileDescriptor_478cfab12ea1b00e, []int{4} } func (m *EventCreatedNFTClass) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -567,7 +465,7 @@ func (m *EventGranted) Reset() { *m = EventGranted{} } func (m *EventGranted) String() string { return proto.CompactTextString(m) } func (*EventGranted) ProtoMessage() {} func (*EventGranted) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{6} + return fileDescriptor_478cfab12ea1b00e, []int{5} } func (m *EventGranted) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -640,7 +538,7 @@ func (m *EventRenounced) Reset() { *m = EventRenounced{} } func (m *EventRenounced) String() string { return proto.CompactTextString(m) } func (*EventRenounced) ProtoMessage() {} func (*EventRenounced) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{7} + return fileDescriptor_478cfab12ea1b00e, []int{6} } func (m *EventRenounced) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -690,81 +588,6 @@ func (m *EventRenounced) GetPermission() Permission { return PermissionUnspecified } -// EventMintedFT is emitted when fungible tokens are minted. -// -// Since: 0.46.0 (finschia) -type EventMintedFT 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 mint. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // recipient of the tokens. - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - // amount of tokens minted. - Amount []Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount"` -} - -func (m *EventMintedFT) Reset() { *m = EventMintedFT{} } -func (m *EventMintedFT) String() string { return proto.CompactTextString(m) } -func (*EventMintedFT) ProtoMessage() {} -func (*EventMintedFT) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{8} -} -func (m *EventMintedFT) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventMintedFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventMintedFT.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 *EventMintedFT) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventMintedFT.Merge(m, src) -} -func (m *EventMintedFT) XXX_Size() int { - return m.Size() -} -func (m *EventMintedFT) XXX_DiscardUnknown() { - xxx_messageInfo_EventMintedFT.DiscardUnknown(m) -} - -var xxx_messageInfo_EventMintedFT proto.InternalMessageInfo - -func (m *EventMintedFT) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *EventMintedFT) GetOperator() string { - if m != nil { - return m.Operator - } - return "" -} - -func (m *EventMintedFT) GetTo() string { - if m != nil { - return m.To - } - return "" -} - -func (m *EventMintedFT) GetAmount() []Coin { - if m != nil { - return m.Amount - } - return nil -} - // EventMintedNFT is emitted when non-fungible tokens are minted. // // Since: 0.46.0 (finschia) @@ -783,7 +606,7 @@ func (m *EventMintedNFT) Reset() { *m = EventMintedNFT{} } func (m *EventMintedNFT) String() string { return proto.CompactTextString(m) } func (*EventMintedNFT) ProtoMessage() {} func (*EventMintedNFT) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{9} + return fileDescriptor_478cfab12ea1b00e, []int{7} } func (m *EventMintedNFT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -858,7 +681,7 @@ func (m *EventBurned) Reset() { *m = EventBurned{} } func (m *EventBurned) String() string { return proto.CompactTextString(m) } func (*EventBurned) ProtoMessage() {} func (*EventBurned) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{10} + return fileDescriptor_478cfab12ea1b00e, []int{8} } func (m *EventBurned) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -933,7 +756,7 @@ func (m *EventModifiedContract) Reset() { *m = EventModifiedContract{} } func (m *EventModifiedContract) String() string { return proto.CompactTextString(m) } func (*EventModifiedContract) ProtoMessage() {} func (*EventModifiedContract) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{11} + return fileDescriptor_478cfab12ea1b00e, []int{9} } func (m *EventModifiedContract) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1005,7 +828,7 @@ func (m *EventModifiedTokenClass) Reset() { *m = EventModifiedTokenClass func (m *EventModifiedTokenClass) String() string { return proto.CompactTextString(m) } func (*EventModifiedTokenClass) ProtoMessage() {} func (*EventModifiedTokenClass) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{12} + return fileDescriptor_478cfab12ea1b00e, []int{10} } func (m *EventModifiedTokenClass) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1088,7 +911,7 @@ func (m *EventModifiedNFT) Reset() { *m = EventModifiedNFT{} } func (m *EventModifiedNFT) String() string { return proto.CompactTextString(m) } func (*EventModifiedNFT) ProtoMessage() {} func (*EventModifiedNFT) Descriptor() ([]byte, []int) { - return fileDescriptor_478cfab12ea1b00e, []int{13} + return fileDescriptor_478cfab12ea1b00e, []int{11} } func (m *EventModifiedNFT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1151,11 +974,9 @@ func init() { proto.RegisterType((*EventAuthorizedOperator)(nil), "lbm.collection.v1.EventAuthorizedOperator") proto.RegisterType((*EventRevokedOperator)(nil), "lbm.collection.v1.EventRevokedOperator") proto.RegisterType((*EventCreatedContract)(nil), "lbm.collection.v1.EventCreatedContract") - proto.RegisterType((*EventCreatedFTClass)(nil), "lbm.collection.v1.EventCreatedFTClass") proto.RegisterType((*EventCreatedNFTClass)(nil), "lbm.collection.v1.EventCreatedNFTClass") proto.RegisterType((*EventGranted)(nil), "lbm.collection.v1.EventGranted") proto.RegisterType((*EventRenounced)(nil), "lbm.collection.v1.EventRenounced") - proto.RegisterType((*EventMintedFT)(nil), "lbm.collection.v1.EventMintedFT") proto.RegisterType((*EventMintedNFT)(nil), "lbm.collection.v1.EventMintedNFT") proto.RegisterType((*EventBurned)(nil), "lbm.collection.v1.EventBurned") proto.RegisterType((*EventModifiedContract)(nil), "lbm.collection.v1.EventModifiedContract") @@ -1166,66 +987,62 @@ func init() { func init() { proto.RegisterFile("lbm/collection/v1/event.proto", fileDescriptor_478cfab12ea1b00e) } var fileDescriptor_478cfab12ea1b00e = []byte{ - // 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, + // 879 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x41, 0x6f, 0xe3, 0x44, + 0x14, 0x8e, 0x13, 0xb7, 0x49, 0x5e, 0x57, 0x8b, 0xd7, 0x1b, 0xb6, 0xae, 0x97, 0x7a, 0x23, 0x9f, + 0xaa, 0xd5, 0x36, 0x61, 0xcb, 0x72, 0x59, 0xc1, 0x21, 0x09, 0x6e, 0x65, 0xad, 0x12, 0x56, 0xae, + 0x73, 0x80, 0x8b, 0xe5, 0xd8, 0xd3, 0x64, 0xd4, 0x78, 0x26, 0xb2, 0x27, 0x15, 0xe5, 0x17, 0xa0, + 0x9e, 0xf8, 0x03, 0x15, 0x12, 0x14, 0x89, 0x03, 0xc7, 0xfd, 0x05, 0x5c, 0x58, 0x6e, 0x2b, 0x0e, + 0x88, 0x13, 0x42, 0xed, 0x8d, 0x1b, 0xff, 0x00, 0x79, 0x6c, 0xb7, 0x4e, 0x53, 0x91, 0x56, 0xa8, + 0xc0, 0x6d, 0xfc, 0xde, 0xf7, 0x66, 0xbe, 0xef, 0xcd, 0xf3, 0x67, 0xc3, 0xfa, 0x78, 0x10, 0x34, + 0x3d, 0x3a, 0x1e, 0x23, 0x8f, 0x61, 0x4a, 0x9a, 0x07, 0x4f, 0x9b, 0xe8, 0x00, 0x11, 0xd6, 0x98, + 0x84, 0x94, 0x51, 0xf9, 0xde, 0x78, 0x10, 0x34, 0x2e, 0xd2, 0x8d, 0x83, 0xa7, 0x6a, 0x6d, 0x48, + 0x87, 0x94, 0x67, 0x9b, 0xf1, 0x2a, 0x01, 0xaa, 0x6b, 0x1e, 0x8d, 0x02, 0x1a, 0x39, 0x49, 0x22, + 0x79, 0x48, 0x53, 0xfa, 0xfc, 0x11, 0xb9, 0x1d, 0x39, 0x46, 0xff, 0x53, 0x80, 0xaa, 0x11, 0x9f, + 0xbb, 0x8b, 0x08, 0x93, 0x1f, 0xc1, 0x8a, 0x47, 0x09, 0x0b, 0x5d, 0x8f, 0x39, 0xd8, 0x57, 0x84, + 0xba, 0xb0, 0x51, 0xb5, 0x20, 0x0b, 0x99, 0xbe, 0xfc, 0x0c, 0x2a, 0x74, 0x82, 0x42, 0x97, 0xd1, + 0x50, 0x29, 0xc6, 0xd9, 0xb6, 0xf2, 0xf3, 0xab, 0xcd, 0x5a, 0x7a, 0x6c, 0xcb, 0xf7, 0x43, 0x14, + 0x45, 0xbb, 0x2c, 0xc4, 0x64, 0x68, 0x9d, 0x23, 0xe5, 0x27, 0x20, 0xee, 0x85, 0x34, 0x50, 0x4a, + 0x0b, 0x2a, 0x38, 0x4a, 0xde, 0x80, 0x22, 0xa3, 0x8a, 0xb8, 0x00, 0x5b, 0x64, 0x54, 0x7e, 0x1f, + 0x96, 0xdd, 0x80, 0x4e, 0x09, 0x53, 0x96, 0xea, 0xa5, 0x8d, 0x95, 0xad, 0xd5, 0xc6, 0x5c, 0xd7, + 0x1a, 0x1d, 0x8a, 0x49, 0x5b, 0x7c, 0xfd, 0xdb, 0xa3, 0x82, 0x95, 0x82, 0xf5, 0xaf, 0x05, 0x58, + 0xe5, 0x9a, 0x5b, 0x53, 0x36, 0xa2, 0x21, 0xfe, 0x1c, 0xf9, 0x1f, 0x67, 0x54, 0x17, 0x76, 0xe0, + 0x5d, 0x58, 0x1e, 0xd1, 0xb1, 0x8f, 0x16, 0xeb, 0x4f, 0x71, 0x33, 0x3d, 0x2b, 0x5d, 0xb7, 0x67, + 0xfa, 0x57, 0x02, 0xd4, 0x38, 0x49, 0x0b, 0x1d, 0xd0, 0xfd, 0xff, 0x23, 0xc3, 0x6f, 0x33, 0x86, + 0x9d, 0x10, 0xb9, 0x0c, 0xf9, 0x9d, 0x94, 0x82, 0xbc, 0x05, 0x65, 0x2f, 0x0e, 0xd1, 0x30, 0x61, + 0xf7, 0x37, 0xbb, 0x65, 0xc0, 0xcb, 0xaa, 0x8a, 0x73, 0xaa, 0x64, 0x10, 0x89, 0x1b, 0xa0, 0x84, + 0x9f, 0xc5, 0xd7, 0x71, 0x2c, 0x40, 0xcc, 0x4d, 0x66, 0xc5, 0xe2, 0x6b, 0x59, 0x82, 0xd2, 0x34, + 0xc4, 0xca, 0x12, 0x0f, 0xc5, 0x4b, 0xfd, 0xd5, 0x25, 0x9e, 0xbd, 0x6d, 0xbb, 0x33, 0x76, 0xa3, + 0xe8, 0xb6, 0xa6, 0x7d, 0x1d, 0x80, 0xd1, 0x7d, 0x44, 0x1c, 0x76, 0x38, 0xc9, 0xf8, 0x56, 0x79, + 0xc4, 0x3e, 0x9c, 0xa0, 0x73, 0x21, 0xe2, 0x15, 0x42, 0x96, 0x2e, 0x84, 0xe8, 0xbf, 0x08, 0x70, + 0x87, 0xd3, 0xde, 0x09, 0x5d, 0xc2, 0x90, 0xbf, 0x98, 0xee, 0x16, 0x94, 0x87, 0x1c, 0xbb, 0x98, + 0x6d, 0x06, 0xbc, 0xa8, 0x41, 0x0b, 0x6f, 0x3e, 0x03, 0xca, 0x1f, 0x02, 0x4c, 0x50, 0x18, 0xe0, + 0x28, 0xc2, 0x94, 0x70, 0x1d, 0x77, 0xb7, 0xd6, 0xaf, 0x78, 0xf5, 0x5e, 0x9e, 0x83, 0xac, 0x5c, + 0x81, 0x7e, 0x22, 0xc0, 0xdd, 0x74, 0xb2, 0x09, 0x9d, 0x12, 0xef, 0x46, 0xd2, 0xd0, 0x75, 0xa5, + 0x5d, 0xa6, 0x59, 0xba, 0x29, 0xcd, 0x1f, 0x33, 0x9a, 0x5d, 0x4c, 0x92, 0xa9, 0xb9, 0xad, 0x81, + 0x49, 0x0c, 0xaf, 0x74, 0x0d, 0xc3, 0x7b, 0x06, 0xcb, 0x7c, 0x90, 0x22, 0x45, 0xe4, 0x86, 0xf7, + 0xe0, 0x0a, 0x39, 0xbd, 0x6d, 0x3b, 0xf3, 0xbb, 0x04, 0xab, 0xff, 0x24, 0xc0, 0x0a, 0x57, 0xd2, + 0x9e, 0x86, 0xe4, 0x3a, 0xdd, 0xfe, 0x37, 0x5c, 0xfe, 0xc2, 0xbb, 0xc5, 0x9b, 0x78, 0xf7, 0xf7, + 0x02, 0xbc, 0x9d, 0xdc, 0x0a, 0xf5, 0xf1, 0x1e, 0xce, 0xb9, 0xce, 0x2d, 0xa9, 0xfa, 0x00, 0xca, + 0xde, 0xc8, 0x25, 0x43, 0x14, 0x29, 0x25, 0x4e, 0xf4, 0x9d, 0x2b, 0x88, 0xb6, 0x18, 0x0b, 0xf1, + 0x60, 0xca, 0x50, 0xca, 0x36, 0x2b, 0xd1, 0xff, 0xc8, 0x3e, 0x35, 0x19, 0x5d, 0x3b, 0xbe, 0x92, + 0xff, 0xd2, 0x7e, 0x72, 0x7a, 0xc4, 0x1b, 0xeb, 0x91, 0x1f, 0x42, 0x35, 0xde, 0xd6, 0xe1, 0x0e, + 0x96, 0xb8, 0x55, 0x25, 0x0e, 0xf4, 0xdc, 0x00, 0xe9, 0x3f, 0x08, 0x20, 0xcd, 0x88, 0xbd, 0xc5, + 0x77, 0x66, 0x0d, 0x2a, 0x89, 0x4a, 0xec, 0xa7, 0x1a, 0xcb, 0xfc, 0xd9, 0xf4, 0xff, 0x99, 0xc2, + 0xc7, 0x27, 0x45, 0xb8, 0x73, 0x9e, 0x7c, 0x81, 0x0e, 0xe5, 0xe7, 0xb0, 0xd6, 0xb2, 0x6d, 0xcb, + 0x6c, 0xf7, 0x6d, 0xc3, 0x79, 0x61, 0x7c, 0xe2, 0xf4, 0x7b, 0xbb, 0x2f, 0x8d, 0x8e, 0xb9, 0x6d, + 0x1a, 0x1f, 0x49, 0x05, 0xf5, 0xe1, 0xd1, 0x71, 0x7d, 0x35, 0x5f, 0xd0, 0x27, 0xd1, 0x04, 0x79, + 0x5c, 0xbf, 0xfc, 0x04, 0xe4, 0xd9, 0xda, 0x5e, 0xab, 0x6b, 0x48, 0x82, 0x5a, 0x3b, 0x3a, 0xae, + 0x4b, 0xf9, 0xa2, 0xb8, 0x7f, 0xf3, 0xe8, 0xae, 0x61, 0xb7, 0xa4, 0xe2, 0x3c, 0xba, 0x1b, 0x7f, + 0xe8, 0x9e, 0x83, 0x3a, 0x8b, 0x6e, 0xb7, 0x76, 0x0d, 0xc7, 0xec, 0xee, 0x38, 0x7d, 0xcb, 0x94, + 0x2a, 0xaa, 0x7a, 0x74, 0x5c, 0x7f, 0x90, 0xaf, 0x6a, 0xbb, 0x11, 0x32, 0x83, 0x61, 0xdf, 0x32, + 0xe5, 0xc7, 0x70, 0xef, 0x92, 0x26, 0xcb, 0x94, 0x6a, 0xea, 0xfd, 0xa3, 0xe3, 0xfa, 0x5b, 0x33, + 0x5a, 0x2c, 0x53, 0xad, 0x7c, 0xf1, 0x8d, 0x56, 0xf8, 0xee, 0x44, 0x2b, 0xe8, 0x62, 0xa5, 0x24, + 0x95, 0x75, 0xb1, 0x52, 0x95, 0xee, 0xb7, 0x77, 0x5e, 0x9f, 0x6a, 0xc2, 0x9b, 0x53, 0x4d, 0xf8, + 0xfd, 0x54, 0x13, 0xbe, 0x3c, 0xd3, 0x0a, 0x6f, 0xce, 0xb4, 0xc2, 0xaf, 0x67, 0x5a, 0xe1, 0xd3, + 0xcd, 0x21, 0x66, 0xa3, 0xe9, 0xa0, 0xe1, 0xd1, 0xa0, 0xb9, 0x8d, 0x49, 0xe4, 0x8d, 0xb0, 0xdb, + 0xdc, 0x4b, 0x17, 0x9b, 0x91, 0xbf, 0xdf, 0xfc, 0x2c, 0xf7, 0x1b, 0x3a, 0x58, 0xe6, 0xff, 0xa1, + 0xef, 0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0xbf, 0x27, 0xcb, 0x05, 0x10, 0x0b, 0x00, 0x00, } func (m *EventSent) Marshal() (dAtA []byte, err error) { @@ -1439,79 +1256,6 @@ func (m *EventCreatedContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *EventCreatedFTClass) 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 *EventCreatedFTClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventCreatedFTClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Mintable { - i-- - if m.Mintable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.Decimals != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.Decimals)) - i-- - dAtA[i] = 0x30 - } - if len(m.Meta) > 0 { - i -= len(m.Meta) - copy(dAtA[i:], m.Meta) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Meta))) - i-- - dAtA[i] = 0x2a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x22 - } - 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] = 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 *EventCreatedNFTClass) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1661,64 +1405,6 @@ func (m *EventRenounced) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *EventMintedFT) 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 *EventMintedFT) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMintedFT) 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 = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - 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] = 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 *EventMintedNFT) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2122,41 +1808,6 @@ func (m *EventCreatedContract) Size() (n int) { return n } -func (m *EventCreatedFTClass) 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.TokenId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Meta) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Decimals != 0 { - n += 1 + sovEvent(uint64(m.Decimals)) - } - if m.Mintable { - n += 2 - } - return n -} - func (m *EventCreatedNFTClass) Size() (n int) { if m == nil { return 0 @@ -2230,33 +1881,6 @@ func (m *EventRenounced) Size() (n int) { return n } -func (m *EventMintedFT) 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.To) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if len(m.Amount) > 0 { - for _, e := range m.Amount { - l = e.Size() - n += 1 + l + sovEvent(uint64(l)) - } - } - return n -} - func (m *EventMintedNFT) Size() (n int) { if m == nil { return 0 @@ -3112,255 +2736,6 @@ func (m *EventCreatedContract) Unmarshal(dAtA []byte) error { } 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]) - 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:]) - 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 *EventCreatedNFTClass) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3869,186 +3244,6 @@ func (m *EventRenounced) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventMintedFT) 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: EventMintedFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventMintedFT: 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 To", 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.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 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 *EventMintedNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/collection/genesis.pb.go b/x/collection/genesis.pb.go index d2e9a09dd6..5693f73e28 100644 --- a/x/collection/genesis.pb.go +++ b/x/collection/genesis.pb.go @@ -607,8 +607,6 @@ func (m *ContractGrants) GetGrants() []Grant { type NextClassIDs struct { // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // id for the fungible tokens. - Fungible cosmossdk_io_math.Uint `protobuf:"bytes,2,opt,name=fungible,proto3,customtype=cosmossdk.io/math.Uint" json:"fungible"` // id for the non-fungible tokens. NonFungible cosmossdk_io_math.Uint `protobuf:"bytes,3,opt,name=non_fungible,json=nonFungible,proto3,customtype=cosmossdk.io/math.Uint" json:"non_fungible"` } @@ -821,65 +819,65 @@ func init() { func init() { proto.RegisterFile("lbm/collection/v1/genesis.proto", fileDescriptor_2b8b3f666cffb1ec) } var fileDescriptor_2b8b3f666cffb1ec = []byte{ - // 921 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcf, 0x6f, 0x1b, 0x45, - 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, + // 919 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0x8e, 0x3f, 0xe2, 0xd8, 0xaf, 0xdd, 0x34, 0x8c, 0x42, 0xd8, 0x04, 0x61, 0x87, 0x41, 0x88, + 0x22, 0xe4, 0x5d, 0x5a, 0x24, 0x10, 0x08, 0x5a, 0xc5, 0x86, 0x04, 0x17, 0xa9, 0xaa, 0xdc, 0x20, + 0x24, 0x2e, 0xd6, 0x78, 0x77, 0xb3, 0x19, 0x65, 0x3d, 0x93, 0x7a, 0xc6, 0x51, 0xda, 0x0b, 0x47, + 0xc4, 0x8d, 0x9f, 0xc0, 0x99, 0x73, 0x7f, 0x44, 0xc5, 0xa9, 0xe2, 0x84, 0x38, 0x04, 0x94, 0x5c, + 0xf8, 0x19, 0x68, 0x3e, 0xd6, 0x59, 0xdb, 0xdb, 0xb5, 0x72, 0x9b, 0x8f, 0xf7, 0x79, 0x9e, 0x77, + 0x66, 0xdf, 0xf7, 0x99, 0x85, 0x56, 0x3c, 0x1c, 0x79, 0x3e, 0x8f, 0xe3, 0xd0, 0x97, 0x94, 0x33, + 0xef, 0xec, 0xae, 0x17, 0x85, 0x2c, 0x14, 0x54, 0xb8, 0xa7, 0x63, 0x2e, 0x39, 0x7a, 0x23, 0x1e, + 0x8e, 0xdc, 0xeb, 0x00, 0xf7, 0xec, 0xee, 0xce, 0x76, 0xc4, 0x79, 0x14, 0x87, 0x9e, 0x0e, 0x18, + 0x4e, 0x8e, 0x3c, 0xc2, 0x9e, 0x99, 0xe8, 0x9d, 0xcd, 0x88, 0x47, 0x5c, 0x0f, 0x3d, 0x35, 0xb2, + 0xab, 0xdb, 0x3e, 0x17, 0x23, 0x2e, 0x06, 0x66, 0xc3, 0x4c, 0xec, 0x16, 0x5e, 0xd4, 0x4f, 0x89, + 0xe9, 0x18, 0x7c, 0x51, 0x81, 0xc6, 0x81, 0x49, 0xea, 0x89, 0x24, 0x32, 0x44, 0x9f, 0x41, 0xe5, + 0x94, 0x8c, 0xc9, 0x48, 0x38, 0x85, 0xdd, 0xc2, 0x9d, 0xfa, 0xbd, 0x6d, 0x77, 0x21, 0x49, 0xf7, + 0xb1, 0x0e, 0xe8, 0x94, 0x5f, 0x5e, 0xb4, 0x56, 0xfa, 0x36, 0x1c, 0x3d, 0x80, 0x9a, 0xcf, 0x99, + 0x1c, 0x13, 0x5f, 0x0a, 0xa7, 0xb8, 0x5b, 0xba, 0x53, 0xbf, 0xf7, 0x76, 0x06, 0xb6, 0x6b, 0x63, + 0x2c, 0xfa, 0x1a, 0x83, 0xbe, 0x83, 0x75, 0x16, 0x9e, 0xcb, 0x81, 0x1f, 0x13, 0x21, 0x06, 0x34, + 0x10, 0x4e, 0x49, 0xb3, 0xb4, 0x32, 0x58, 0x1e, 0x85, 0xe7, 0xb2, 0xab, 0xe2, 0x7a, 0x5f, 0x27, + 0x79, 0x34, 0xd8, 0x74, 0x2d, 0x10, 0xa8, 0x03, 0x6b, 0x9a, 0x27, 0x14, 0x4e, 0x59, 0xb3, 0xe0, + 0x9c, 0x5c, 0xba, 0x26, 0xd2, 0x12, 0x25, 0x40, 0xf4, 0xc4, 0x26, 0x24, 0xf9, 0x49, 0xc8, 0x74, + 0x42, 0xab, 0x9a, 0xea, 0x83, 0x1c, 0x2a, 0x95, 0xd8, 0xa1, 0x8a, 0x9f, 0x4b, 0xcc, 0xac, 0x05, + 0x02, 0x7d, 0x03, 0xd5, 0x21, 0x89, 0x09, 0xf3, 0x43, 0xe1, 0x54, 0x34, 0xdd, 0x7b, 0x79, 0xb7, + 0x64, 0x43, 0x2d, 0xd5, 0x14, 0x8a, 0x3e, 0x87, 0x32, 0x3b, 0x92, 0xc2, 0x59, 0x7b, 0xed, 0x15, + 0x4d, 0x33, 0xda, 0x3f, 0x4c, 0xe0, 0x1a, 0x82, 0x1e, 0x40, 0x25, 0x1a, 0x13, 0x26, 0x85, 0x53, + 0xd3, 0xe0, 0x77, 0x73, 0xc0, 0x07, 0x3a, 0x30, 0xf9, 0xd2, 0x06, 0x86, 0x7e, 0x80, 0x75, 0x32, + 0x91, 0xc7, 0x7c, 0x4c, 0x9f, 0x13, 0x05, 0x10, 0x0e, 0x68, 0xa2, 0x0f, 0x73, 0x88, 0xf6, 0x66, + 0x00, 0x96, 0x70, 0x8e, 0x06, 0x1d, 0x40, 0x55, 0x4c, 0x4e, 0x4f, 0x63, 0x1a, 0x0a, 0xa7, 0xae, + 0x29, 0xdf, 0xcf, 0xa1, 0x54, 0xf5, 0x4a, 0x85, 0xa4, 0xfe, 0xf4, 0x76, 0x12, 0x30, 0xea, 0x42, + 0x65, 0x38, 0x19, 0xab, 0x23, 0x36, 0x6e, 0x4e, 0x63, 0xa1, 0xe8, 0x3e, 0xd4, 0x4d, 0x29, 0x0a, + 0xd5, 0x18, 0xce, 0x2d, 0xdd, 0x0e, 0xef, 0x64, 0x31, 0xa9, 0x28, 0xdd, 0x3d, 0x7d, 0xf0, 0xa7, + 0xe3, 0x87, 0xe5, 0x6a, 0x75, 0xa3, 0x86, 0x9f, 0xc2, 0xc6, 0xfc, 0xc7, 0x44, 0x2d, 0xa8, 0x27, + 0x65, 0x3f, 0xa0, 0x81, 0x6e, 0xb4, 0x5a, 0x1f, 0x92, 0xa5, 0x5e, 0x80, 0xbe, 0x4c, 0x15, 0x89, + 0x69, 0xa5, 0x9d, 0x0c, 0x5d, 0xcb, 0x37, 0x5f, 0x1b, 0xf8, 0x27, 0x40, 0x8b, 0x87, 0x5b, 0x2e, + 0xfa, 0x2d, 0x80, 0x98, 0x86, 0x5b, 0x59, 0x9c, 0x77, 0xdc, 0x99, 0x5b, 0x4b, 0x61, 0xf1, 0x53, + 0xb8, 0x3d, 0x17, 0x84, 0xb6, 0xa1, 0x9a, 0xf4, 0xb5, 0x95, 0x36, 0x6d, 0xd6, 0x0b, 0xd4, 0xc7, + 0x22, 0x23, 0x3e, 0x61, 0xd2, 0x29, 0xaa, 0x8d, 0xce, 0x47, 0x8a, 0xef, 0xef, 0x8b, 0xd6, 0x9b, + 0xc6, 0xcc, 0x44, 0x70, 0xe2, 0x52, 0xee, 0x8d, 0x88, 0x3c, 0x76, 0x7b, 0x4c, 0xfe, 0xf9, 0xa2, + 0x0d, 0xd6, 0xe5, 0x7a, 0x4c, 0xf6, 0x2d, 0x14, 0x53, 0x58, 0xb3, 0xd7, 0x81, 0x1c, 0x58, 0x23, + 0x41, 0x30, 0x0e, 0x85, 0x48, 0x94, 0xec, 0x14, 0xdd, 0x4f, 0x29, 0xa9, 0xd3, 0xbd, 0x95, 0x59, + 0x16, 0x94, 0x75, 0x6e, 0xa9, 0x14, 0x7e, 0xff, 0xa7, 0xb5, 0xaa, 0x66, 0x22, 0x11, 0xf9, 0xa2, + 0xfc, 0xdf, 0x6f, 0xad, 0x02, 0x3e, 0x83, 0xdb, 0x73, 0xc6, 0xb1, 0xfc, 0x6e, 0x53, 0x76, 0x64, + 0xa4, 0x37, 0x5d, 0x63, 0xf4, 0x6e, 0x62, 0xf4, 0xee, 0x1e, 0x7b, 0xd6, 0x41, 0x4a, 0xf7, 0x8f, + 0x17, 0x6d, 0xd0, 0x76, 0xa1, 0xd9, 0xa7, 0x76, 0x84, 0x09, 0x34, 0xd2, 0x3d, 0xbd, 0x5c, 0xf4, + 0x63, 0xeb, 0x11, 0x46, 0x71, 0x2b, 0xcb, 0x46, 0xf7, 0x0f, 0xd3, 0xd6, 0x80, 0x7f, 0x29, 0xc0, + 0x56, 0x76, 0xc7, 0x2e, 0x57, 0x7b, 0xb4, 0xe0, 0x0a, 0x46, 0x77, 0x37, 0x43, 0x77, 0x86, 0x3b, + 0xdb, 0x0c, 0x30, 0x85, 0xf5, 0x59, 0x17, 0x5a, 0x9e, 0xc2, 0xa7, 0x53, 0x67, 0x33, 0xd2, 0x4e, + 0x86, 0xb4, 0xe6, 0x9a, 0x35, 0x34, 0xfc, 0x73, 0x01, 0x1a, 0xe9, 0x17, 0x65, 0xb9, 0xd2, 0x63, + 0x68, 0x30, 0xce, 0x06, 0x47, 0x13, 0x16, 0xd1, 0x61, 0x1c, 0x3a, 0x25, 0x5d, 0xb9, 0x6d, 0x5b, + 0xb9, 0x5b, 0x8b, 0x95, 0xfb, 0x3d, 0xd5, 0xa5, 0x5b, 0xb7, 0xa5, 0xab, 0xa6, 0xfd, 0x3a, 0xe3, + 0x6c, 0xdf, 0x32, 0x3c, 0x2c, 0x57, 0x8b, 0x1b, 0x25, 0xfc, 0x1c, 0x36, 0xb3, 0x5e, 0x92, 0xe5, + 0x09, 0xed, 0x41, 0xed, 0xfa, 0x99, 0x32, 0xa7, 0x6f, 0xbe, 0xe6, 0xdd, 0xb4, 0xa4, 0x89, 0x6d, + 0x48, 0xfb, 0x32, 0xe1, 0x08, 0xea, 0xa9, 0xed, 0xbc, 0x8e, 0xfd, 0x0a, 0x8a, 0x34, 0xb0, 0xdd, + 0x7a, 0xc3, 0x33, 0x17, 0x69, 0x80, 0x7d, 0x80, 0x6b, 0xcb, 0x44, 0x5d, 0x58, 0x65, 0x9c, 0xf9, + 0xa1, 0x11, 0xb9, 0x29, 0x9f, 0xc1, 0xa2, 0x0d, 0x28, 0x25, 0x07, 0xaf, 0xf5, 0xd5, 0xb0, 0x73, + 0xf0, 0xf2, 0xb2, 0x59, 0x78, 0x75, 0xd9, 0x2c, 0xfc, 0x7b, 0xd9, 0x2c, 0xfc, 0x7a, 0xd5, 0x5c, + 0x79, 0x75, 0xd5, 0x5c, 0xf9, 0xeb, 0xaa, 0xb9, 0xf2, 0x63, 0x3b, 0xa2, 0xf2, 0x78, 0x32, 0x74, + 0x7d, 0x3e, 0xf2, 0xf6, 0x29, 0x13, 0xfe, 0x31, 0x25, 0xde, 0x91, 0x1d, 0xb4, 0x45, 0x70, 0xe2, + 0x9d, 0xa7, 0xfe, 0x93, 0x86, 0x15, 0xdd, 0xa1, 0x9f, 0xfc, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xbb, + 0x1e, 0x76, 0x46, 0xce, 0x09, 0x00, 0x00, } func (this *Balance) Equal(that interface{}) bool { @@ -1477,16 +1475,6 @@ func (m *NextClassIDs) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x1a - { - size := m.Fungible.Size() - i -= size - if _, err := m.Fungible.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 if len(m.ContractId) > 0 { i -= len(m.ContractId) copy(dAtA[i:], m.ContractId) @@ -1867,8 +1855,6 @@ func (m *NextClassIDs) Size() (n int) { if l > 0 { n += 1 + l + sovGenesis(uint64(l)) } - l = m.Fungible.Size() - n += 1 + l + sovGenesis(uint64(l)) l = m.NonFungible.Size() n += 1 + l + sovGenesis(uint64(l)) return n @@ -3379,40 +3365,6 @@ func (m *NextClassIDs) 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 Fungible", 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 - } - if err := m.Fungible.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NonFungible", wireType) diff --git a/x/collection/genesis_test.go b/x/collection/genesis_test.go index e6148eac91..cf35f7fb9a 100644 --- a/x/collection/genesis_test.go +++ b/x/collection/genesis_test.go @@ -70,7 +70,6 @@ func TestValidateGenesis(t *testing.T) { "next class ids of invalid contract id": { &collection.GenesisState{ NextClassIds: []collection.NextClassIDs{{ - Fungible: math.ZeroUint(), NonFungible: math.OneUint(), }}, }, @@ -147,7 +146,7 @@ func TestValidateGenesis(t *testing.T) { Balances: []collection.ContractBalances{{ Balances: []collection.Balance{{ Address: addr.String(), - Amount: collection.NewCoins(collection.NewFTCoin("00bab10c", math.OneInt())), + Amount: collection.NewCoins(collection.NewNFTCoin("00bab10c", 1)), }}, }}, }, @@ -166,7 +165,7 @@ func TestValidateGenesis(t *testing.T) { Balances: []collection.ContractBalances{{ ContractId: "deadbeef", Balances: []collection.Balance{{ - Amount: collection.NewCoins(collection.NewFTCoin("00bab10c", math.OneInt())), + Amount: collection.NewCoins(collection.NewNFTCoin("00bab10c", 111)), }}, }}, }, diff --git a/x/collection/keeper/genesis_test.go b/x/collection/keeper/genesis_test.go index 569441ad0e..048c5ef9e1 100644 --- a/x/collection/keeper/genesis_test.go +++ b/x/collection/keeper/genesis_test.go @@ -11,14 +11,7 @@ func (s *KeeperTestSuite) TestImportExportGenesis() { // forge & import ctx, _ := s.ctx.CacheContext() - amount := collection.NewCoins(collection.NewFTCoin(s.ftClassID, s.balance)) - err := s.keeper.SendCoins(ctx, s.contractID, s.vendor, s.customer, amount) - s.Require().NoError(err) - - err = s.keeper.SendCoins(ctx, s.contractID, s.customer, s.operator, amount) - s.Require().NoError(err) - - _, err = s.keeper.BurnCoins(ctx, s.contractID, s.operator, amount) + _, err := s.keeper.MintNFT(ctx, s.contractID, s.customer, []collection.MintNFTParam{{TokenType: s.nftClassID}}) s.Require().NoError(err) s.keeper.Abandon(ctx, s.contractID, s.vendor, collection.PermissionMint) diff --git a/x/collection/keeper/grpc_query.go b/x/collection/keeper/grpc_query.go index 4e93ff4509..48903c083b 100644 --- a/x/collection/keeper/grpc_query.go +++ b/x/collection/keeper/grpc_query.go @@ -41,19 +41,6 @@ func (s queryServer) addressFromBech32GRPC(bech32, context string) (sdk.AccAddre return addr, nil } -func (s queryServer) assertTokenIsFungible(ctx sdk.Context, contractID, classID string) error { - class, err := s.keeper.GetTokenClass(ctx, contractID, classID) - if err != nil { - return err - } - - if _, ok := class.(*collection.FTClass); !ok { - return collection.ErrTokenNotExist.Wrap(collection.NewFTID(classID)) - } - - return nil -} - func (s queryServer) assertTokenTypeIsNonFungible(ctx sdk.Context, contractID, classID string) error { class, err := s.keeper.GetTokenClass(ctx, contractID, classID) if err != nil { @@ -137,84 +124,6 @@ func (s queryServer) AllBalances(c context.Context, req *collection.QueryAllBala return &collection.QueryAllBalancesResponse{Balances: balances, Pagination: pageRes}, nil } -func (s queryServer) FTSupply(c context.Context, req *collection.QueryFTSupplyRequest) (*collection.QueryFTSupplyResponse, 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.ValidateTokenID(req.TokenId); err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - classID := collection.SplitTokenID(req.TokenId) - - ctx := sdk.UnwrapSDKContext(c) - - if err := s.assertTokenIsFungible(ctx, req.ContractId, classID); err != nil { - return &collection.QueryFTSupplyResponse{Supply: math.ZeroInt()}, nil - } - - supply := s.keeper.GetSupply(ctx, req.ContractId, classID) - - return &collection.QueryFTSupplyResponse{Supply: supply}, nil -} - -func (s queryServer) FTMinted(c context.Context, req *collection.QueryFTMintedRequest) (*collection.QueryFTMintedResponse, 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.ValidateTokenID(req.TokenId); err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - classID := collection.SplitTokenID(req.TokenId) - - ctx := sdk.UnwrapSDKContext(c) - - if err := s.assertTokenIsFungible(ctx, req.ContractId, classID); err != nil { - return &collection.QueryFTMintedResponse{Minted: math.ZeroInt()}, nil - } - - minted := s.keeper.GetMinted(ctx, req.ContractId, classID) - - return &collection.QueryFTMintedResponse{Minted: minted}, nil -} - -func (s queryServer) FTBurnt(c context.Context, req *collection.QueryFTBurntRequest) (*collection.QueryFTBurntResponse, 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.ValidateTokenID(req.TokenId); err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - classID := collection.SplitTokenID(req.TokenId) - - ctx := sdk.UnwrapSDKContext(c) - - if err := s.assertTokenIsFungible(ctx, req.ContractId, classID); err != nil { - return &collection.QueryFTBurntResponse{Burnt: math.ZeroInt()}, nil - } - - burnt := s.keeper.GetBurnt(ctx, req.ContractId, classID) - - return &collection.QueryFTBurntResponse{Burnt: burnt}, nil -} - func (s queryServer) NFTSupply(c context.Context, req *collection.QueryNFTSupplyRequest) (*collection.QueryNFTSupplyResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "empty request") @@ -383,28 +292,8 @@ func (s queryServer) getToken(ctx sdk.Context, contractID, tokenID string) (coll Meta: token.Meta, Owner: owner.String(), }, nil - case collection.ValidateFTID(tokenID) == nil: - classID := collection.SplitTokenID(tokenID) - class, err := s.keeper.GetTokenClass(ctx, contractID, classID) - if err != nil { - return nil, err - } - - ftClass, ok := class.(*collection.FTClass) - if !ok { - panic(sdkerrors.ErrInvalidType.Wrapf("not a class of fungible token: %s", classID)) - } - - return &collection.FT{ - ContractId: contractID, - TokenId: collection.NewFTID(ftClass.Id), - Name: ftClass.Name, - Meta: ftClass.Meta, - Decimals: ftClass.Decimals, - Mintable: ftClass.Mintable, - }, nil default: - panic("cannot reach here: token must be ft or nft") + panic("cannot reach here: token must be nft") } } diff --git a/x/collection/keeper/grpc_query_test.go b/x/collection/keeper/grpc_query_test.go index 127cffeea6..7f952ce3a4 100644 --- a/x/collection/keeper/grpc_query_test.go +++ b/x/collection/keeper/grpc_query_test.go @@ -1,6 +1,8 @@ package keeper_test import ( + "fmt" + "github.com/cosmos/gogoproto/proto" "cosmossdk.io/math" @@ -16,7 +18,7 @@ func (s *KeeperTestSuite) TestQueryBalance() { _, err := s.queryServer.Balance(s.ctx, nil) s.Require().Error(err) - tokenID := collection.NewFTID(s.ftClassID) + tokenID := s.issuedNFTs[s.customer.String()][0].TokenId testCases := map[string]struct { contractID string address sdk.AccAddress @@ -26,14 +28,15 @@ func (s *KeeperTestSuite) TestQueryBalance() { }{ "valid request": { contractID: s.contractID, - address: s.vendor, + address: s.customer, tokenID: tokenID, valid: true, postTest: func(res *collection.QueryBalanceResponse) { expected := collection.Coin{ TokenId: tokenID, - Amount: s.balance, + Amount: math.OneInt(), } + fmt.Println(res.Balance.Amount) s.Require().Equal(expected, res.Balance) }, }, @@ -58,7 +61,7 @@ func (s *KeeperTestSuite) TestQueryBalance() { contractID: s.contractID, tokenID: tokenID, }, - "valid token id": { + "invalid token id": { contractID: s.contractID, address: s.vendor, }, @@ -100,7 +103,7 @@ func (s *KeeperTestSuite) TestQueryAllBalances() { address: s.customer, valid: true, postTest: func(res *collection.QueryAllBalancesResponse) { - s.Require().Equal(s.numNFTs+1, len(res.Balances)) + s.Require().Equal(s.numNFTs, len(res.Balances)) }, }, "valid request with limit": { @@ -143,216 +146,6 @@ func (s *KeeperTestSuite) TestQueryAllBalances() { } } -func (s *KeeperTestSuite) TestQueryFTSupply() { - // empty request - _, err := s.queryServer.FTSupply(s.ctx, nil) - s.Require().Error(err) - - tokenID := collection.NewFTID(s.ftClassID) - testCases := map[string]struct { - contractID string - tokenID string - valid bool - postTest func(res *collection.QueryFTSupplyResponse) - }{ - "valid request": { - contractID: s.contractID, - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryFTSupplyResponse) { - s.Require().Equal(s.balance.Mul(math.NewInt(3)), res.Supply) - }, - }, - "collection not found": { - contractID: "deadbeef", - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryFTSupplyResponse) { - s.Require().Equal(math.ZeroInt(), res.Supply) - }, - }, - "token not found": { - contractID: s.contractID, - tokenID: collection.NewFTID("00bab10c"), - valid: true, - postTest: func(res *collection.QueryFTSupplyResponse) { - s.Require().Equal(math.ZeroInt(), res.Supply) - }, - }, - "not a class of ft": { - contractID: s.contractID, - tokenID: collection.NewFTID(s.nftClassID), - valid: true, - postTest: func(res *collection.QueryFTSupplyResponse) { - s.Require().Equal(math.ZeroInt(), res.Supply) - }, - }, - "invalid contract id": { - tokenID: tokenID, - }, - "invalid token id": { - contractID: s.contractID, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - req := &collection.QueryFTSupplyRequest{ - ContractId: tc.contractID, - TokenId: tc.tokenID, - } - res, err := s.queryServer.FTSupply(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) TestQueryFTMinted() { - // empty request - _, err := s.queryServer.FTMinted(s.ctx, nil) - s.Require().Error(err) - - tokenID := collection.NewFTID(s.ftClassID) - testCases := map[string]struct { - contractID string - tokenID string - valid bool - postTest func(res *collection.QueryFTMintedResponse) - }{ - "valid request": { - contractID: s.contractID, - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryFTMintedResponse) { - s.Require().Equal(s.balance.Mul(math.NewInt(6)), res.Minted) - }, - }, - "collection not found": { - contractID: "deadbeef", - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryFTMintedResponse) { - s.Require().Equal(math.ZeroInt(), res.Minted) - }, - }, - "token not found": { - contractID: s.contractID, - tokenID: collection.NewFTID("00bab10c"), - valid: true, - postTest: func(res *collection.QueryFTMintedResponse) { - s.Require().Equal(math.ZeroInt(), res.Minted) - }, - }, - "not a class of ft": { - contractID: s.contractID, - tokenID: collection.NewFTID(s.nftClassID), - valid: true, - postTest: func(res *collection.QueryFTMintedResponse) { - s.Require().Equal(math.ZeroInt(), res.Minted) - }, - }, - "invalid contract id": { - tokenID: tokenID, - }, - "invalid token id": { - contractID: s.contractID, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - req := &collection.QueryFTMintedRequest{ - ContractId: tc.contractID, - TokenId: tc.tokenID, - } - res, err := s.queryServer.FTMinted(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) TestQueryFTBurnt() { - // empty request - _, err := s.queryServer.FTBurnt(s.ctx, nil) - s.Require().Error(err) - - tokenID := collection.NewFTID(s.ftClassID) - testCases := map[string]struct { - contractID string - tokenID string - valid bool - postTest func(res *collection.QueryFTBurntResponse) - }{ - "valid request": { - contractID: s.contractID, - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryFTBurntResponse) { - s.Require().Equal(s.balance.Mul(math.NewInt(3)), res.Burnt) - }, - }, - "collection not found": { - contractID: "deadbeef", - tokenID: tokenID, - valid: true, - postTest: func(res *collection.QueryFTBurntResponse) { - s.Require().Equal(math.ZeroInt(), res.Burnt) - }, - }, - "token not found": { - contractID: s.contractID, - tokenID: collection.NewFTID("00bab10c"), - valid: true, - postTest: func(res *collection.QueryFTBurntResponse) { - s.Require().Equal(math.ZeroInt(), res.Burnt) - }, - }, - "not a class of ft": { - contractID: s.contractID, - tokenID: collection.NewFTID(s.nftClassID), - valid: true, - postTest: func(res *collection.QueryFTBurntResponse) { - s.Require().Equal(math.ZeroInt(), res.Burnt) - }, - }, - "invalid contract id": { - tokenID: tokenID, - }, - "invalid token id": { - contractID: s.contractID, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - req := &collection.QueryFTBurntRequest{ - ContractId: tc.contractID, - TokenId: tc.tokenID, - } - res, err := s.queryServer.FTBurnt(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) TestQueryNFTSupply() { // empty request _, err := s.queryServer.NFTSupply(s.ctx, nil) @@ -388,14 +181,6 @@ func (s *KeeperTestSuite) TestQueryNFTSupply() { s.Require().Equal(math.ZeroInt(), res.Supply) }, }, - "not a class of nft": { - contractID: s.contractID, - tokenType: s.ftClassID, - valid: true, - postTest: func(res *collection.QueryNFTSupplyResponse) { - s.Require().Equal(math.ZeroInt(), res.Supply) - }, - }, "invalid contract id": { tokenType: s.nftClassID, }, @@ -457,14 +242,6 @@ func (s *KeeperTestSuite) TestQueryNFTMinted() { s.Require().Equal(math.ZeroInt(), res.Minted) }, }, - "not a class of nft": { - contractID: s.contractID, - tokenType: s.ftClassID, - valid: true, - postTest: func(res *collection.QueryNFTMintedResponse) { - s.Require().Equal(math.ZeroInt(), res.Minted) - }, - }, "invalid contract id": { tokenType: s.nftClassID, }, @@ -526,14 +303,6 @@ func (s *KeeperTestSuite) TestQueryNFTBurnt() { s.Require().Equal(math.ZeroInt(), res.Burnt) }, }, - "not a class of nft": { - contractID: s.contractID, - tokenType: s.ftClassID, - valid: true, - postTest: func(res *collection.QueryNFTBurntResponse) { - s.Require().Equal(math.ZeroInt(), res.Burnt) - }, - }, "invalid contract id": { tokenType: s.nftClassID, }, @@ -613,21 +382,21 @@ func (s *KeeperTestSuite) TestQueryTokenClassTypeName() { }{ "valid request": { contractID: s.contractID, - classID: s.ftClassID, + classID: s.nftClassID, valid: true, postTest: func(res *collection.QueryTokenClassTypeNameResponse) { - s.Require().Equal(proto.MessageName(&collection.FTClass{}), res.Name) + s.Require().Equal(proto.MessageName(&collection.NFTClass{}), res.Name) }, }, "invalid contract id": { - classID: s.ftClassID, + classID: s.nftClassID, }, "invalid class id": { contractID: s.contractID, }, "collection not found": { contractID: "deadbeef", - classID: s.ftClassID, + classID: s.nftClassID, }, "class not found": { contractID: s.contractID, @@ -687,10 +456,6 @@ func (s *KeeperTestSuite) TestQueryTokenType() { contractID: s.contractID, tokenType: "deadbeef", }, - "not a class of nft": { - contractID: s.contractID, - tokenType: s.ftClassID, - }, } for name, tc := range testCases { @@ -716,7 +481,6 @@ func (s *KeeperTestSuite) TestQueryToken() { _, err := s.queryServer.Token(s.ctx, nil) s.Require().Error(err) - ftTokenID := collection.NewFTID(s.ftClassID) nftTokenID := collection.NewNFTID(s.nftClassID, 1) testCases := map[string]struct { contractID string @@ -724,19 +488,6 @@ func (s *KeeperTestSuite) TestQueryToken() { valid bool postTest func(res *collection.QueryTokenResponse) }{ - "valid ft request": { - contractID: s.contractID, - tokenID: ftTokenID, - valid: true, - postTest: func(res *collection.QueryTokenResponse) { - s.Require().Equal("/lbm.collection.v1.FT", res.Token.TypeUrl) - token := collection.TokenFromAny(&res.Token) - ft, ok := token.(*collection.FT) - s.Require().True(ok) - s.Require().Equal(s.contractID, ft.ContractId) - s.Require().Equal(ftTokenID, ft.TokenId) - }, - }, "valid nft request": { contractID: s.contractID, tokenID: nftTokenID, @@ -751,18 +502,14 @@ func (s *KeeperTestSuite) TestQueryToken() { }, }, "invalid contract id": { - tokenID: ftTokenID, + tokenID: nftTokenID, }, "invalid token id": { contractID: s.contractID, }, "collection not found": { contractID: "deadbeef", - tokenID: ftTokenID, - }, - "no such a fungible token": { - contractID: s.contractID, - tokenID: collection.NewFTID("00bab10c"), + tokenID: nftTokenID, }, "no such a non-fungible token": { contractID: s.contractID, diff --git a/x/collection/keeper/keeper_test.go b/x/collection/keeper/keeper_test.go index 25e1ae52f5..29cc58b76a 100644 --- a/x/collection/keeper/keeper_test.go +++ b/x/collection/keeper/keeper_test.go @@ -38,12 +38,12 @@ type KeeperTestSuite struct { stranger sdk.AccAddress contractID string - ftClassID string nftClassID string balance math.Int - numNFTs int + numNFTs int + issuedNFTs map[string][]collection.NFT } func (s *KeeperTestSuite) createRandomAccounts(accNum int) []sdk.AccAddress { @@ -79,14 +79,6 @@ func (s *KeeperTestSuite) SetupTest() { s.keeper.Grant(s.ctx, s.contractID, s.vendor, s.operator, permission) } - // create a fungible token class - ftClassID, err := s.keeper.CreateTokenClass(s.ctx, s.contractID, &collection.FTClass{ - Name: "tibetian fox", - Mintable: true, - }) - s.Require().NoError(err) - s.ftClassID = *ftClassID - // create a non-fungible token class nftClassID, err := s.keeper.CreateTokenClass(s.ctx, s.contractID, &collection.NFTClass{ Name: "fennec fox", @@ -94,20 +86,6 @@ func (s *KeeperTestSuite) SetupTest() { s.Require().NoError(err) s.nftClassID = *nftClassID - // mint & burn fts - for _, to := range []sdk.AccAddress{s.customer, s.operator, s.vendor} { - tokenID := collection.NewFTID(s.ftClassID) - amount := collection.NewCoins(collection.NewCoin(tokenID, s.balance)) - - err := s.keeper.MintFT(s.ctx, s.contractID, to, amount) - s.Require().NoError(err) - - _, err = s.keeper.BurnCoins(s.ctx, s.contractID, to, amount) - s.Require().NoError(err) - err = s.keeper.MintFT(s.ctx, s.contractID, to, amount) - s.Require().NoError(err) - } - // mint nfts newParams := func(classID string, size int) []collection.MintNFTParam { res := make([]collection.MintNFTParam, size) @@ -119,8 +97,10 @@ func (s *KeeperTestSuite) SetupTest() { return res } s.numNFTs = 4 + s.issuedNFTs = make(map[string][]collection.NFT) for _, to := range []sdk.AccAddress{s.customer, s.operator, s.vendor} { - _, err := s.keeper.MintNFT(s.ctx, s.contractID, to, newParams(s.nftClassID, s.numNFTs)) + nfts, err := s.keeper.MintNFT(s.ctx, s.contractID, to, newParams(s.nftClassID, s.numNFTs)) + s.issuedNFTs[to.String()] = nfts s.Require().NoError(err) } diff --git a/x/collection/keeper/migrations.go b/x/collection/keeper/migrations.go index 4883c92c88..0cadb8b099 100644 --- a/x/collection/keeper/migrations.go +++ b/x/collection/keeper/migrations.go @@ -6,7 +6,6 @@ import ( "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Finschia/finschia-sdk/x/collection/keeper/migrations/v2" "github.com/Finschia/finschia-sdk/x/collection/keeper/migrations/v3" ) @@ -21,8 +20,7 @@ func NewMigrator(keeper Keeper) Migrator { } func (m Migrator) Migrate1to2(ctx sdk.Context) error { - store := runtime.KVStoreAdapter(m.keeper.storeService.OpenKVStore(ctx)) - return v2.MigrateStore(store, m.keeper.cdc) + return nil } func (m Migrator) Migrate2to3(ctx sdk.Context) error { diff --git a/x/collection/keeper/migrations/v2/keys.go b/x/collection/keeper/migrations/v2/keys.go deleted file mode 100644 index d5d3c43242..0000000000 --- a/x/collection/keeper/migrations/v2/keys.go +++ /dev/null @@ -1,115 +0,0 @@ -package v2 - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" -) - -var ( - contractKeyPrefix = []byte{0x10} - nextClassIDKeyPrefix = []byte{0x12} - - balanceKeyPrefix = []byte{0x20} - - SupplyKeyPrefix = []byte{0x40} - MintedKeyPrefix = []byte{0x41} - BurntKeyPrefix = []byte{0x42} -) - -func ContractKey(contractID string) []byte { - key := make([]byte, len(contractKeyPrefix)+len(contractID)) - - copy(key, contractKeyPrefix) - copy(key[len(contractKeyPrefix):], contractID) - - return key -} - -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 -} - -func splitBalanceKey(key []byte) (contractID string, address sdk.AccAddress, tokenID string) { - begin := len(balanceKeyPrefix) + 1 - end := begin + int(key[begin-1]) - contractID = string(key[begin:end]) - - begin = end + 1 - end = begin + int(key[begin-1]) - address = sdk.AccAddress(key[begin:end]) - - begin = end - tokenID = string(key[begin:]) - - return -} - -func StatisticKey(keyPrefix []byte, contractID, classID string) []byte { - prefix := statisticKeyPrefixByContractID(keyPrefix, contractID) - key := make([]byte, len(prefix)+len(classID)) - - copy(key, prefix) - copy(key[len(prefix):], classID) - - return key -} - -func statisticKeyPrefixByContractID(keyPrefix []byte, contractID string) []byte { - key := make([]byte, len(keyPrefix)+1+len(contractID)) - - begin := 0 - copy(key, keyPrefix) - - begin += len(keyPrefix) - key[begin] = byte(len(contractID)) - - begin++ - copy(key[begin:], contractID) - - return key -} - -func NextClassIDKey(contractID string) []byte { - key := make([]byte, len(nextClassIDKeyPrefix)+len(contractID)) - - copy(key, nextClassIDKeyPrefix) - copy(key[len(nextClassIDKeyPrefix):], contractID) - - return key -} diff --git a/x/collection/keeper/migrations/v2/store.go b/x/collection/keeper/migrations/v2/store.go deleted file mode 100644 index de8a9ae523..0000000000 --- a/x/collection/keeper/migrations/v2/store.go +++ /dev/null @@ -1,138 +0,0 @@ -package v2 - -import ( - "fmt" - - "cosmossdk.io/math" - storetypes "cosmossdk.io/store/types" - - "github.com/cosmos/cosmos-sdk/codec" - - "github.com/Finschia/finschia-sdk/x/collection" -) - -// MigrateStore performs in-place store migrations from v1 to v2. -func MigrateStore(store storetypes.KVStore, cdc codec.BinaryCodec) error { - // fix ft statistics - if err := fixFTStatistics(store, cdc); err != nil { - return err - } - - return nil -} - -func fixFTStatistics(store storetypes.KVStore, cdc codec.BinaryCodec) error { - iterator := storetypes.KVStorePrefixIterator(store, contractKeyPrefix) - defer iterator.Close() - - for ; iterator.Valid(); iterator.Next() { - var contract collection.Contract - if err := cdc.Unmarshal(iterator.Value(), &contract); err != nil { - return err - } - - if err := fixContractFTStatistics(store, contract.Id); err != nil { - return err - } - } - - return nil -} - -func fixContractFTStatistics(store storetypes.KVStore, contractID string) error { - supplies, err := evalContractFTSupplies(store, contractID) - if err != nil { - return err - } - - if err := updateContractFTStatistics(store, contractID, supplies); err != nil { - return err - } - - return nil -} - -func evalContractFTSupplies(store storetypes.KVStore, contractID string) (map[string]math.Int, error) { - prefix := balanceKeyPrefixByContractID(contractID) - iterator := storetypes.KVStorePrefixIterator(store, prefix) - defer iterator.Close() - - supplies := map[string]math.Int{} - for ; iterator.Valid(); iterator.Next() { - _, _, tokenID := splitBalanceKey(iterator.Key()) - if err := collection.ValidateFTID(tokenID); err != nil { - continue - } - - var amount math.Int - if err := amount.Unmarshal(iterator.Value()); err != nil { - return nil, err - } - - classID := collection.SplitTokenID(tokenID) - if supply, ok := supplies[classID]; ok { - supplies[classID] = supply.Add(amount) - } else { - supplies[classID] = amount - } - } - - return supplies, nil -} - -func updateContractFTStatistics(store storetypes.KVStore, contractID string, supplies map[string]math.Int) error { - bz := store.Get(NextClassIDKey(contractID)) - if bz == nil { - return fmt.Errorf("no next class ids of contract %s", contractID) - } - - var nextClassIDs collection.NextClassIDs - if err := nextClassIDs.Unmarshal(bz); err != nil { - return err - } - - // In the old chains, classID of fungible tokens starts from zero - // In the new chains, it starts from one, but it does not hurt because amount of zero is not set to the store. - for intClassID := uint64(0); intClassID < nextClassIDs.Fungible.Uint64(); intClassID++ { - classID := fmt.Sprintf("%08x", intClassID) - - // update supply - supplyKey := StatisticKey(SupplyKeyPrefix, contractID, classID) - supply, ok := supplies[classID] - if ok { - bz, err := supply.Marshal() - if err != nil { - return err - } - store.Set(supplyKey, bz) - } else { - supply = math.ZeroInt() - store.Delete(supplyKey) - } - - // get burnt - burntKey := StatisticKey(BurntKeyPrefix, contractID, classID) - burnt := math.ZeroInt() - bz := store.Get(burntKey) - if bz != nil { - if err := burnt.Unmarshal(bz); err != nil { - return err - } - } - - // update minted - minted := supply.Add(burnt) - mintedKey := StatisticKey(MintedKeyPrefix, contractID, classID) - if !minted.IsZero() { - bz, err := minted.Marshal() - if err != nil { - return err - } - store.Set(mintedKey, bz) - } else { - store.Delete(mintedKey) - } - } - - return nil -} diff --git a/x/collection/keeper/migrations/v2/store_test.go b/x/collection/keeper/migrations/v2/store_test.go deleted file mode 100644 index 315c51c458..0000000000 --- a/x/collection/keeper/migrations/v2/store_test.go +++ /dev/null @@ -1,155 +0,0 @@ -package v2_test - -import ( - "fmt" - "testing" - - "github.com/stretchr/testify/require" - - "cosmossdk.io/math" - storetypes "cosmossdk.io/store/types" - - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" - moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" - - "github.com/Finschia/finschia-sdk/x/collection" - "github.com/Finschia/finschia-sdk/x/collection/keeper/migrations/v2" - collectionmod "github.com/Finschia/finschia-sdk/x/collection/module" -) - -func TestMigrateStore(t *testing.T) { - collectionKey := storetypes.NewKVStoreKey(collection.StoreKey) - newKey := storetypes.NewTransientStoreKey("transient_test") - encCfg := moduletestutil.MakeTestEncodingConfig(collectionmod.AppModuleBasic{}).Codec - ctx := testutil.DefaultContext(collectionKey, newKey) - - // set state - store := ctx.KVStore(collectionKey) - - contractID := "deadbeef" - store.Set(v2.ContractKey(contractID), encCfg.MustMarshal(&collection.Contract{Id: contractID})) - nextClassIDs := collection.DefaultNextClassIDs(contractID) - classID := fmt.Sprintf("%08x", nextClassIDs.Fungible.Uint64()) - nextClassIDs.Fungible = nextClassIDs.Fungible.Incr() - store.Set(v2.NextClassIDKey(contractID), encCfg.MustMarshal(&nextClassIDs)) - - tokenID := collection.NewFTID(classID) - oneIntBz, err := math.OneInt().Marshal() - require.NoError(t, err) - addresses := []sdk.AccAddress{ - sdk.AccAddress("fennec"), - sdk.AccAddress("penguin"), - sdk.AccAddress("cheetah"), - } - for _, addr := range addresses { - store.Set(v2.BalanceKey(contractID, addr, tokenID), oneIntBz) - } - store.Set(v2.StatisticKey(v2.SupplyKeyPrefix, contractID, classID), oneIntBz) - store.Set(v2.StatisticKey(v2.BurntKeyPrefix, contractID, classID), oneIntBz) - store.Set(v2.StatisticKey(v2.MintedKeyPrefix, contractID, classID), oneIntBz) // supplied + burnt - - for name, tc := range map[string]struct { - malleate func(ctx sdk.Context) - valid bool - supply int - minted int - }{ - "valid": { - valid: true, - supply: len(addresses), - minted: len(addresses) + 1, - }, - "valid (nil supply)": { - malleate: func(ctx sdk.Context) { - store := ctx.KVStore(collectionKey) - store.Delete(v2.StatisticKey(v2.SupplyKeyPrefix, contractID, classID)) - }, - valid: true, - supply: len(addresses), - minted: len(addresses) + 1, - }, - "valid (nil minted)": { - malleate: func(ctx sdk.Context) { - store := ctx.KVStore(collectionKey) - store.Delete(v2.StatisticKey(v2.MintedKeyPrefix, contractID, classID)) - }, - valid: true, - supply: len(addresses), - minted: len(addresses) + 1, - }, - "valid (nil burnt)": { - malleate: func(ctx sdk.Context) { - store := ctx.KVStore(collectionKey) - store.Delete(v2.StatisticKey(v2.BurntKeyPrefix, contractID, classID)) - }, - valid: true, - supply: len(addresses), - minted: len(addresses), - }, - "contract unmarshal failed": { - malleate: func(ctx sdk.Context) { - store := ctx.KVStore(collectionKey) - store.Set(v2.ContractKey(contractID), encCfg.MustMarshal(&collection.GenesisState{})) - }, - }, - "balance unmarshal failed": { - malleate: func(ctx sdk.Context) { - store := ctx.KVStore(collectionKey) - store.Set(v2.BalanceKey(contractID, sdk.AccAddress("hyena"), tokenID), encCfg.MustMarshal(&collection.GenesisState{})) - }, - }, - "no next class id": { - malleate: func(ctx sdk.Context) { - store := ctx.KVStore(collectionKey) - store.Delete(v2.NextClassIDKey(contractID)) - }, - }, - "next class id unmarshal failed": { - malleate: func(ctx sdk.Context) { - store := ctx.KVStore(collectionKey) - store.Set(v2.NextClassIDKey(contractID), []byte("invalid")) - }, - }, - "burnt unmarshal failed": { - malleate: func(ctx sdk.Context) { - store := ctx.KVStore(collectionKey) - store.Set(v2.StatisticKey(v2.BurntKeyPrefix, contractID, classID), encCfg.MustMarshal(&collection.GenesisState{})) - }, - }, - } { - t.Run(name, func(t *testing.T) { - ctx, _ := ctx.CacheContext() - if tc.malleate != nil { - tc.malleate(ctx) - } - store := ctx.KVStore(collectionKey) - - // migrate - err := v2.MigrateStore(store, encCfg) - if !tc.valid { - require.Error(t, err) - return - } - require.NoError(t, err) - - // supply - supplyKey := v2.StatisticKey(v2.SupplyKeyPrefix, contractID, classID) - supply := math.ZeroInt() - if bz := store.Get(supplyKey); bz != nil { - err := supply.Unmarshal(bz) - require.NoError(t, err) - } - require.Equal(t, int64(tc.supply), supply.Int64()) - - // minted - mintedKey := v2.StatisticKey(v2.MintedKeyPrefix, contractID, classID) - minted := math.ZeroInt() - if bz := store.Get(mintedKey); bz != nil { - err := minted.Unmarshal(bz) - require.NoError(t, err) - } - require.Equal(t, int64(tc.minted), minted.Int64()) - }) - } -} diff --git a/x/collection/keeper/migrations/v3/helper.go b/x/collection/keeper/migrations/v3/helper.go index daa54d3d26..5b77fc2afb 100644 --- a/x/collection/keeper/migrations/v3/helper.go +++ b/x/collection/keeper/migrations/v3/helper.go @@ -2,6 +2,8 @@ package v3 import ( "errors" + "fmt" + "regexp" gogotypes "github.com/cosmos/gogoproto/types" @@ -14,6 +16,12 @@ import ( "github.com/Finschia/finschia-sdk/x/collection" ) +var ( + patternClassID = fmt.Sprintf(`[0-9a-f]{%d}`, lengthClassID) + patternZero = fmt.Sprintf(`0{%d}`, lengthClassID) + reFTID = regexp.MustCompile(fmt.Sprintf(`^%s%s$`, patternClassID, patternZero)) +) + 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 { @@ -82,3 +90,20 @@ func addCoin(store storetypes.KVStore, contractID string, address sdk.AccAddress } store.Set(key, bz) } + +func removeCoin(store storetypes.KVStore, contractID string, address sdk.AccAddress, ftID string) { + key := balanceKey(contractID, address, ftID) + store.Delete(key) +} + +//------------------------------ +// FT + +func newFTID(classID string) string { + numberFormat := "%0" + fmt.Sprintf("%d", lengthClassID) + "x" + return classID + fmt.Sprintf(numberFormat, math.ZeroUint().Uint64()) +} + +func validateFTID(id string) bool { + return reFTID.MatchString(id) +} diff --git a/x/collection/keeper/migrations/v3/keys.go b/x/collection/keeper/migrations/v3/keys.go index 184bec6aa2..3538fbc518 100644 --- a/x/collection/keeper/migrations/v3/keys.go +++ b/x/collection/keeper/migrations/v3/keys.go @@ -1,17 +1,31 @@ package v3 -import sdk "github.com/cosmos/cosmos-sdk/types" +import ( + sdk "github.com/cosmos/cosmos-sdk/types" +) -const ClassStoreKey = "class" +const ( + ClassStoreKey = "class" + lengthClassID = 8 +) var ( classStorePrefix = []byte{0x50} - paramsKey = []byte{0x00} - nonceKey = []byte{0x01} - idKeyPrefix = []byte{0x02} + paramsKey = []byte{0x00} + nonceKey = []byte{0x01} + idKeyPrefix = []byte{0x02} + + classKeyPrefix = []byte{0x11} + balanceKeyPrefix = []byte{0x20} ownerKeyPrefix = []byte{0x21} + + supplyKeyPrefix = []byte{0x40} + mintedKeyPrefix = []byte{0x41} + burntKeyPrefix = []byte{0x42} + + legacyTokenKeyPrefix = []byte{0xf0} ) // Deprecated @@ -72,6 +86,46 @@ func balanceKeyPrefixByContractID(contractID string) []byte { return key } +func splitBalanceKey(key []byte) (contractID string, address sdk.AccAddress, tokenID string) { + begin := len(balanceKeyPrefix) + 1 + end := begin + int(key[begin-1]) + contractID = string(key[begin:end]) + + begin = end + 1 + end = begin + int(key[begin-1]) + address = sdk.AccAddress(key[begin:end]) + + begin = end + tokenID = string(key[begin:]) + + return +} + +func statisticKey(keyPrefix []byte, contractID, classID string) []byte { + prefix := statisticKeyPrefixByContractID(keyPrefix, contractID) + key := make([]byte, len(prefix)+len(classID)) + + copy(key, prefix) + copy(key[len(prefix):], classID) + + return key +} + +func statisticKeyPrefixByContractID(keyPrefix []byte, contractID string) []byte { + key := make([]byte, len(keyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, keyPrefix) + + begin += len(keyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + // ---------------------------------------------------------------------------- // parent func parentKey(contractID, tokenID string) []byte { @@ -177,3 +231,43 @@ func ownerKeyPrefixByContractID(contractID string) []byte { return key } + +func classKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(classKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, classKeyPrefix) + + begin += len(classKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +func legacyTokenKey(contractID, tokenID string) []byte { + prefix := legacyTokenKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+len(tokenID)) + + copy(key, prefix) + copy(key[len(prefix):], tokenID) + + return key +} + +func legacyTokenKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(legacyTokenKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, legacyTokenKeyPrefix) + + begin += len(legacyTokenKeyPrefix) + 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 e5dd3b90c8..67f60d6c3b 100644 --- a/x/collection/keeper/migrations/v3/store.go +++ b/x/collection/keeper/migrations/v3/store.go @@ -1,6 +1,8 @@ package v3 import ( + "fmt" + gogotypes "github.com/cosmos/gogoproto/types" cmath "cosmossdk.io/math" @@ -33,11 +35,12 @@ func migrateClassStateAndRemoveLegacyState(collectionStore, oldStore storetypes. defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - id := splitIDKey(iterator.Key()) + id := splitIDKey(iterator.Key()) // contract ID newClassStore.Set(idKey(id), []byte{}) oldStore.Delete(idKey(id)) detachNFT(collectionStore, cdc, id) + removeFTs(collectionStore, cdc, id) } bz := oldStore.Get(nonceKey) @@ -70,7 +73,6 @@ func detachNFT(store storetypes.KVStore, cdc codec.BinaryCodec, id string) { store.Delete(parentKey(contractID, tokenID)) store.Delete(childKey(contractID, parentID.Value, tokenID)) - store.Delete(key) } } @@ -83,3 +85,56 @@ func initParams(store storetypes.KVStore) error { store.Set(paramsKey, bz) return nil } + +func removeFTs(store storetypes.KVStore, cdc codec.BinaryCodec, contractID string) { + iterator := storetypes.KVStorePrefixIterator(store, classKeyPrefixByContractID(contractID)) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + bz := store.Get(iterator.Key()) + var class collection.TokenClass + err := cdc.UnmarshalInterface(bz, &class) + if err != nil { + panic(err) + } + + if ftClass, ok := class.(*collection.FTClass); ok { + ftID := newFTID(ftClass.Id) + if !validateFTID(ftID) { + panic(fmt.Sprintf("v3 migration: invalid FT ID from TokenClass <%s>", ftID)) + } + + removeFTBalances(store, contractID, ftID) + + store.Delete(legacyTokenKey(contractID, ftID)) // remove LegacyToken + store.Delete(iterator.Key()) // remove TokenClass + } + } +} + +func removeFTBalances(store storetypes.KVStore, contractID, ftID string) { + iterator := storetypes.KVStorePrefixIterator(store, balanceKeyPrefixByContractID(contractID)) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + id, address, tokenID := splitBalanceKey(iterator.Key()) + if id != contractID { + panic(fmt.Sprintf("v3 migration: inconsistent ContractID, got: %s, expeted: %s", id, contractID)) + } + + if tokenID == ftID { + classID := ftID[:lengthClassID] + var amount cmath.Int + if err := amount.Unmarshal(iterator.Value()); err != nil { + panic(err) + } + + // remove FT statistics + store.Delete(statisticKey(supplyKeyPrefix, contractID, classID)) + store.Delete(statisticKey(mintedKeyPrefix, contractID, classID)) + store.Delete(statisticKey(burntKeyPrefix, contractID, classID)) + + removeCoin(store, contractID, address, ftID) + } + } +} diff --git a/x/collection/keeper/msg_server.go b/x/collection/keeper/msg_server.go index c60da7a647..b432bdd1a1 100644 --- a/x/collection/keeper/msg_server.go +++ b/x/collection/keeper/msg_server.go @@ -27,68 +27,6 @@ func NewMsgServer(keeper Keeper) collection.MsgServer { var _ collection.MsgServer = (*msgServer)(nil) -func (s msgServer) SendFT(c context.Context, req *collection.MsgSendFT) (*collection.MsgSendFTResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - - if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { - return nil, err - } - - fromAddr := sdk.MustAccAddressFromBech32(req.From) - toAddr := sdk.MustAccAddressFromBech32(req.To) - - if err := s.keeper.SendCoins(ctx, req.ContractId, fromAddr, toAddr, req.Amount); err != nil { - return nil, err - } - - event := collection.EventSent{ - ContractId: req.ContractId, - Operator: req.From, - From: req.From, - To: req.To, - Amount: req.Amount, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - - return &collection.MsgSendFTResponse{}, nil -} - -func (s msgServer) OperatorSendFT(c context.Context, req *collection.MsgOperatorSendFT) (*collection.MsgOperatorSendFTResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - - if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { - return nil, err - } - - operatorAddr := sdk.MustAccAddressFromBech32(req.Operator) - fromAddr := sdk.MustAccAddressFromBech32(req.From) - - if _, err := s.keeper.GetAuthorization(ctx, req.ContractId, fromAddr, operatorAddr); err != nil { - return nil, collection.ErrCollectionNotApproved.Wrap(err.Error()) - } - - toAddr := sdk.MustAccAddressFromBech32(req.To) - - if err := s.keeper.SendCoins(ctx, req.ContractId, fromAddr, toAddr, req.Amount); err != nil { - return nil, err - } - - event := collection.EventSent{ - ContractId: req.ContractId, - Operator: req.Operator, - From: req.From, - To: req.To, - Amount: req.Amount, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - - return &collection.MsgOperatorSendFTResponse{}, nil -} - func (s msgServer) SendNFT(c context.Context, req *collection.MsgSendNFT) (*collection.MsgSendNFTResponse, error) { ctx := sdk.UnwrapSDKContext(c) @@ -245,64 +183,6 @@ func (s msgServer) CreateContract(c context.Context, req *collection.MsgCreateCo return &collection.MsgCreateContractResponse{ContractId: id}, nil } -func (s msgServer) IssueFT(c context.Context, req *collection.MsgIssueFT) (*collection.MsgIssueFTResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - - if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { - return nil, err - } - - ownerAddr := sdk.MustAccAddressFromBech32(req.Owner) - - if _, err := s.keeper.GetGrant(ctx, req.ContractId, ownerAddr, collection.PermissionIssue); err != nil { - return nil, collection.ErrTokenNoPermission.Wrap(err.Error()) - } - - class := &collection.FTClass{ - Name: req.Name, - Meta: req.Meta, - Decimals: req.Decimals, - Mintable: req.Mintable, - } - id, err := s.keeper.CreateTokenClass(ctx, req.ContractId, class) - if err != nil { - return nil, err - } - - event := collection.EventCreatedFTClass{ - ContractId: req.ContractId, - Operator: req.Owner, - TokenId: collection.NewFTID(*id), - Name: class.Name, - Meta: class.Meta, - Decimals: class.Decimals, - Mintable: class.Mintable, - } - - toAddr := sdk.MustAccAddressFromBech32(req.To) - - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - - // supply tokens - if req.Amount.IsPositive() { - s.keeper.mintFT(ctx, req.ContractId, toAddr, *id, req.Amount) - - event := collection.EventMintedFT{ - ContractId: req.ContractId, - Operator: req.Owner, - To: req.To, - Amount: collection.NewCoins(collection.NewFTCoin(*id, req.Amount)), - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - } - - return &collection.MsgIssueFTResponse{TokenId: *id}, nil -} - func (s msgServer) IssueNFT(c context.Context, req *collection.MsgIssueNFT) (*collection.MsgIssueNFTResponse, error) { ctx := sdk.UnwrapSDKContext(c) @@ -346,38 +226,6 @@ func (s msgServer) IssueNFT(c context.Context, req *collection.MsgIssueNFT) (*co return &collection.MsgIssueNFTResponse{TokenType: *id}, nil } -func (s msgServer) MintFT(c context.Context, req *collection.MsgMintFT) (*collection.MsgMintFTResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - - if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { - return nil, err - } - - fromAddr := sdk.MustAccAddressFromBech32(req.From) - - if _, err := s.keeper.GetGrant(ctx, req.ContractId, fromAddr, collection.PermissionMint); err != nil { - return nil, collection.ErrTokenNoPermission.Wrap(err.Error()) - } - - toAddr := sdk.MustAccAddressFromBech32(req.To) - - if err := s.keeper.MintFT(ctx, req.ContractId, toAddr, req.Amount); err != nil { - return nil, err - } - - event := collection.EventMintedFT{ - ContractId: req.ContractId, - Operator: req.From, - To: req.To, - Amount: req.Amount, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - - return &collection.MsgMintFTResponse{}, nil -} - func (s msgServer) MintNFT(c context.Context, req *collection.MsgMintNFT) (*collection.MsgMintNFTResponse, error) { ctx := sdk.UnwrapSDKContext(c) @@ -415,73 +263,6 @@ func (s msgServer) MintNFT(c context.Context, req *collection.MsgMintNFT) (*coll return &collection.MsgMintNFTResponse{TokenIds: tokenIDs}, nil } -func (s msgServer) BurnFT(c context.Context, req *collection.MsgBurnFT) (*collection.MsgBurnFTResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - - if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { - return nil, err - } - - fromAddr := sdk.MustAccAddressFromBech32(req.From) - - if _, err := s.keeper.GetGrant(ctx, req.ContractId, fromAddr, collection.PermissionBurn); err != nil { - return nil, collection.ErrTokenNoPermission.Wrap(err.Error()) - } - - burnt, err := s.keeper.BurnCoins(ctx, req.ContractId, fromAddr, req.Amount) - if err != nil { - return nil, err - } - - event := collection.EventBurned{ - ContractId: req.ContractId, - Operator: req.From, - From: req.From, - Amount: burnt, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - - return &collection.MsgBurnFTResponse{}, nil -} - -func (s msgServer) OperatorBurnFT(c context.Context, req *collection.MsgOperatorBurnFT) (*collection.MsgOperatorBurnFTResponse, 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()) - } - - if _, err := s.keeper.GetGrant(ctx, req.ContractId, operatorAddr, collection.PermissionBurn); err != nil { - return nil, collection.ErrTokenNoPermission.Wrap(err.Error()) - } - - burnt, err := s.keeper.BurnCoins(ctx, req.ContractId, fromAddr, req.Amount) - if err != nil { - return nil, err - } - - event := collection.EventBurned{ - ContractId: req.ContractId, - Operator: req.Operator, - From: req.From, - Amount: burnt, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - - return &collection.MsgOperatorBurnFTResponse{}, nil -} - func (s msgServer) BurnNFT(c context.Context, req *collection.MsgBurnNFT) (*collection.MsgBurnNFTResponse, error) { ctx := sdk.UnwrapSDKContext(c) @@ -605,33 +386,18 @@ func (s msgServer) Modify(c context.Context, req *collection.MsgModify) (*collec classID := tokenType tokenID := classID + tokenIndex if tokenType != "" { - if tokenIndex != "" { - if collection.ValidateNFTID(tokenID) == nil { - event := collection.EventModifiedNFT{ - ContractId: req.ContractId, - Operator: operator.String(), - TokenId: tokenID, - Changes: changes, - } - if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { - panic(err) - } - - return s.keeper.ModifyNFT(ctx, req.ContractId, tokenID, changes) - } - - event := collection.EventModifiedTokenClass{ + if tokenIndex != "" && collection.ValidateNFTID(tokenID) == nil { + event := collection.EventModifiedNFT{ ContractId: req.ContractId, Operator: operator.String(), - TokenType: classID, + TokenId: tokenID, Changes: changes, - TypeName: proto.MessageName(&collection.FTClass{}), } if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { panic(err) } - return s.keeper.ModifyTokenClass(ctx, req.ContractId, classID, changes) + return s.keeper.ModifyNFT(ctx, req.ContractId, tokenID, changes) } event := collection.EventModifiedTokenClass{ diff --git a/x/collection/keeper/msg_server_test.go b/x/collection/keeper/msg_server_test.go index 87bee53a99..9d838f93c4 100644 --- a/x/collection/keeper/msg_server_test.go +++ b/x/collection/keeper/msg_server_test.go @@ -32,193 +32,6 @@ func w(input any) string { } } -func (s *KeeperTestSuite) TestMsgSendFT() { - testCases := map[string]struct { - isNegativeCase bool - req *collection.MsgSendFT - ftID string - expectedEvents sdk.Events - expectedError error - }{ - "valid request": { - req: &collection.MsgSendFT{ - ContractId: s.contractID, - From: s.vendor.String(), - To: s.customer.String(), - Amount: collection.NewCoins(collection.NewFTCoin(s.ftClassID, s.balance)), - }, - ftID: collection.NewFTID(s.ftClassID), - expectedEvents: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventSent", - Attributes: []abci.EventAttribute{ - {Key: "amount", Value: mustJSONMarshal(collection.NewCoins(collection.NewFTCoin(s.ftClassID, s.balance))), Index: false}, - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(s.vendor.String()), Index: false}, - {Key: "operator", Value: w(s.vendor.String()), Index: false}, - {Key: "to", Value: w(s.customer.String()), Index: false}, - }, - }, - }, - }, - "contract not found": { - isNegativeCase: true, - req: &collection.MsgSendFT{ - ContractId: "deadbeef", - From: s.vendor.String(), - To: s.customer.String(), - Amount: collection.NewCoins(collection.NewFTCoin(s.ftClassID, s.balance)), - }, - ftID: collection.NewFTID(s.ftClassID), - expectedError: collection.ErrContractNotExist, - }, - "insufficient funds": { - isNegativeCase: true, - req: &collection.MsgSendFT{ - ContractId: s.contractID, - From: s.vendor.String(), - To: s.customer.String(), - Amount: collection.NewCoins(collection.NewFTCoin(s.ftClassID, s.balance.Add(math.OneInt()))), - }, - ftID: collection.NewFTID(s.ftClassID), - expectedError: collection.ErrInsufficientToken, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - // Arrange - s.Require().NoError(tc.req.ValidateBasic()) - from, err := sdk.AccAddressFromBech32(tc.req.From) - s.Require().NoError(err) - to, err := sdk.AccAddressFromBech32(tc.req.To) - s.Require().NoError(err) - ctx, _ := s.ctx.CacheContext() - prevFromBalance := s.keeper.GetBalance(ctx, tc.req.ContractId, from, tc.ftID) - prevToBalance := s.keeper.GetBalance(ctx, tc.req.ContractId, to, tc.ftID) - - // Act - res, err := s.msgServer.SendFT(ctx, tc.req) - if tc.isNegativeCase { - s.Require().ErrorIs(err, tc.expectedError) - return - } - s.Require().NoError(err) - s.Require().NotNil(res) - - // Assert - events := ctx.EventManager().Events() - s.Require().Equal(tc.expectedEvents, events) - curFromBalance := s.keeper.GetBalance(ctx, tc.req.ContractId, from, tc.ftID) - curToBalance := s.keeper.GetBalance(ctx, tc.req.ContractId, to, tc.ftID) - s.Require().Equal(prevFromBalance.Sub(tc.req.Amount[0].Amount).Abs(), curFromBalance.Abs()) - s.Require().Equal(prevToBalance.Add(tc.req.Amount[0].Amount), curToBalance) - }) - } -} - -func (s *KeeperTestSuite) TestMsgOperatorSendFT() { - testCases := map[string]struct { - isNegativeCase bool - req *collection.MsgOperatorSendFT - ftID string - expectedEvents sdk.Events - expectedError error - }{ - "valid request": { - req: &collection.MsgOperatorSendFT{ - ContractId: s.contractID, - Operator: s.operator.String(), - From: s.customer.String(), - To: s.vendor.String(), - Amount: collection.NewCoins(collection.NewFTCoin(s.ftClassID, s.balance)), - }, - ftID: collection.NewFTID(s.ftClassID), - expectedEvents: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventSent", - Attributes: []abci.EventAttribute{ - {Key: "amount", Value: mustJSONMarshal(collection.NewCoins(collection.NewFTCoin(s.ftClassID, s.balance))), 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}, - {Key: "to", Value: w(s.vendor.String()), Index: false}, - }, - }, - }, - }, - "contract not found": { - isNegativeCase: true, - req: &collection.MsgOperatorSendFT{ - ContractId: "deadbeef", - Operator: s.operator.String(), - From: s.customer.String(), - To: s.vendor.String(), - Amount: collection.NewCoins(collection.NewFTCoin(s.ftClassID, s.balance)), - }, - expectedError: collection.ErrContractNotExist, - }, - "not approved": { - isNegativeCase: true, - req: &collection.MsgOperatorSendFT{ - ContractId: s.contractID, - Operator: s.vendor.String(), - From: s.customer.String(), - To: s.vendor.String(), - Amount: collection.NewCoins(collection.NewFTCoin(s.ftClassID, s.balance)), - }, - expectedError: collection.ErrCollectionNotApproved, - }, - "insufficient funds": { - isNegativeCase: true, - req: &collection.MsgOperatorSendFT{ - ContractId: s.contractID, - Operator: s.operator.String(), - From: s.customer.String(), - To: s.vendor.String(), - Amount: collection.NewCoins(collection.NewFTCoin(s.ftClassID, s.balance.Add(math.OneInt()))), - }, - expectedError: collection.ErrInsufficientToken, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - // Arrange - s.Require().NoError(tc.req.ValidateBasic()) - from, err := sdk.AccAddressFromBech32(tc.req.From) - s.Require().NoError(err) - to, err := sdk.AccAddressFromBech32(tc.req.To) - s.Require().NoError(err) - operator, err := sdk.AccAddressFromBech32(tc.req.Operator) - s.Require().NoError(err) - ctx, _ := s.ctx.CacheContext() - prevFromBalance := s.keeper.GetBalance(ctx, tc.req.ContractId, from, tc.ftID) - prevToBalance := s.keeper.GetBalance(ctx, tc.req.ContractId, to, tc.ftID) - prevOperatorBalance := s.keeper.GetBalance(ctx, tc.req.ContractId, operator, tc.ftID) - - // Act - res, err := s.msgServer.OperatorSendFT(ctx, tc.req) - if tc.isNegativeCase { - s.Require().ErrorIs(err, tc.expectedError) - return - } - s.Require().NoError(err) - s.Require().NotNil(res) - - // Assert - events := ctx.EventManager().Events() - s.Require().Equal(tc.expectedEvents, events) - curFromBalance := s.keeper.GetBalance(ctx, tc.req.ContractId, from, tc.ftID) - curToBalance := s.keeper.GetBalance(ctx, tc.req.ContractId, to, tc.ftID) - curOperatorBalance := s.keeper.GetBalance(ctx, tc.req.ContractId, operator, tc.ftID) - s.Require().Equal(prevFromBalance.Sub(tc.req.Amount[0].Amount).Abs(), curFromBalance.Abs()) - s.Require().Equal(prevToBalance.Add(tc.req.Amount[0].Amount), curToBalance) - s.Require().Equal(prevOperatorBalance, curOperatorBalance) - }) - } -} - func (s *KeeperTestSuite) TestMsgSendNFT() { rootNFTID := collection.NewNFTID(s.nftClassID, 1) @@ -589,114 +402,6 @@ func (s *KeeperTestSuite) TestMsgCreateContract() { } } -func (s *KeeperTestSuite) TestMsgIssueFT() { - expectedClassID := "00000002" - expectedTokenID := collection.NewFTID(expectedClassID) - - testCases := map[string]struct { - contractID string - owner sdk.AccAddress - amount math.Int - err error - events sdk.Events - }{ - "valid request": { - contractID: s.contractID, - owner: s.vendor, - amount: math.ZeroInt(), - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventCreatedFTClass", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "decimals", Value: "0", Index: false}, - {Key: "meta", Value: w(""), Index: false}, - {Key: "mintable", Value: "false", Index: false}, - {Key: "name", Value: w(""), Index: false}, - {Key: "operator", Value: w(s.vendor.String()), Index: false}, - {Key: "token_id", Value: w(expectedTokenID), Index: false}, - }, - }, - }, - }, - "valid request with supply": { - contractID: s.contractID, - owner: s.vendor, - amount: math.OneInt(), - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventCreatedFTClass", - Attributes: []abci.EventAttribute{ - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "decimals", Value: "0", Index: false}, - {Key: "meta", Value: w(""), Index: false}, - {Key: "mintable", Value: "false", Index: false}, - {Key: "name", Value: w(""), Index: false}, - {Key: "operator", Value: w(s.vendor.String()), Index: false}, - {Key: "token_id", Value: w(expectedTokenID), Index: false}, - }, - }, - sdk.Event{ - Type: "lbm.collection.v1.EventMintedFT", - Attributes: []abci.EventAttribute{ - {Key: "amount", Value: mustJSONMarshal(collection.NewCoins(collection.Coin{TokenId: expectedTokenID, Amount: math.OneInt()})), Index: false}, - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "operator", Value: w(s.vendor.String()), Index: false}, - {Key: "to", Value: w(s.customer.String()), Index: false}, - }, - }, - }, - }, - "contract not found": { - contractID: "deadbeef", - owner: s.vendor, - amount: math.ZeroInt(), - err: collection.ErrContractNotExist, - }, - "no permission": { - contractID: s.contractID, - owner: s.customer, - amount: math.ZeroInt(), - err: collection.ErrTokenNoPermission, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - ctx, _ := s.ctx.CacheContext() - - req := &collection.MsgIssueFT{ - ContractId: tc.contractID, - Owner: tc.owner.String(), - To: s.customer.String(), - Amount: tc.amount, - } - res, err := s.msgServer.IssueFT(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()) - - // check balance and tokenID - tokenID := collection.NewFTID(res.TokenId) - bal, err := s.queryServer.Balance(ctx, &collection.QueryBalanceRequest{ - ContractId: s.contractID, - Address: s.customer.String(), - TokenId: tokenID, - }) - s.Require().NoError(err) - expectedCoin := collection.Coin{ - TokenId: tokenID, - Amount: tc.amount, - } - s.Require().Equal(expectedCoin, bal.Balance) - }) - } -} - func (s *KeeperTestSuite) TestMsgIssueNFT() { expectedTokenType := "10000002" @@ -772,205 +477,6 @@ func (s *KeeperTestSuite) TestMsgIssueNFT() { } } -func (s *KeeperTestSuite) TestMsgMintFT() { - // prepare multi tokens for test - // create a fungible token class (mintable true) - mintableFTClassID, err := s.keeper.CreateTokenClass(s.ctx, s.contractID, &collection.FTClass{ - Name: "tibetian fox2", - Mintable: true, - }) - s.Require().NoError(err) - - // create a fungible token class (mintable false) - nonmintableFTClassID, err := s.keeper.CreateTokenClass(s.ctx, s.contractID, &collection.FTClass{ - Name: "tibetian fox3", - Mintable: false, - }) - s.Require().NoError(err) - - amount := collection.NewCoins( - collection.NewFTCoin(s.ftClassID, math.NewInt(100000)), - ) - amounts := collection.NewCoins( - collection.NewFTCoin(s.ftClassID, math.NewInt(100000)), - collection.NewFTCoin(*mintableFTClassID, math.NewInt(200000)), - ) - - testCases := map[string]struct { - contractID string - from sdk.AccAddress - amount []collection.Coin - err error - events sdk.Events - }{ - "valid request - single token": { - contractID: s.contractID, - from: s.vendor, - amount: amount, - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventMintedFT", - Attributes: []abci.EventAttribute{ - {Key: "amount", Value: mustJSONMarshal(amount), Index: false}, - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "operator", Value: w(s.vendor.String()), Index: false}, - {Key: "to", Value: w(s.customer.String()), Index: false}, - }, - }, - }, - }, - "valid request - multi tokens": { - contractID: s.contractID, - from: s.vendor, - amount: amounts, - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventMintedFT", - Attributes: []abci.EventAttribute{ - {Key: "amount", Value: mustJSONMarshal(amounts), Index: false}, - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "operator", Value: w(s.vendor.String()), Index: false}, - {Key: "to", Value: w(s.customer.String()), Index: false}, - }, - }, - }, - }, - "valid request - empty amount": { - contractID: s.contractID, - from: s.vendor, - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventMintedFT", - Attributes: []abci.EventAttribute{ - {Key: "amount", Value: "[]", Index: false}, - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "operator", Value: w(s.vendor.String()), Index: false}, - {Key: "to", Value: w(s.customer.String()), Index: false}, - }, - }, - }, - }, - "contract not found": { - contractID: "deadbeef", - from: s.vendor, - amount: amount, - err: collection.ErrContractNotExist, - }, - "no permission": { - contractID: s.contractID, - from: s.customer, - amount: amount, - err: collection.ErrTokenNoPermission, - }, - "no class of the token": { - contractID: s.contractID, - from: s.vendor, - amount: collection.NewCoins( - collection.NewFTCoin("00bab10c", math.OneInt()), - ), - err: collection.ErrTokenNotExist, - }, - "include invalid tokenId among 2 tokens": { - contractID: s.contractID, - from: s.vendor, - amount: collection.NewCoins( - collection.NewFTCoin(s.ftClassID, math.OneInt()), - collection.NewFTCoin("00bab10b", math.OneInt()), // no exist tokenId - ), - err: collection.ErrTokenNotExist, - }, - "mintable false tokenId": { - contractID: s.contractID, - from: s.vendor, - amount: collection.NewCoins(collection.NewFTCoin(*nonmintableFTClassID, math.OneInt())), - err: collection.ErrTokenNotMintable, - }, - "include mintable false among 2 tokens": { - contractID: s.contractID, - from: s.vendor, - amount: collection.NewCoins( - collection.NewFTCoin(*mintableFTClassID, math.OneInt()), - collection.NewFTCoin(*nonmintableFTClassID, math.OneInt()), - ), - err: collection.ErrTokenNotMintable, - }, - } - - // query the values to be effected by MintFT - queryValuesEffectedByMintFT := func(ctx sdk.Context, coins collection.Coins, contractID string) (balances collection.Coins, supply, minted []math.Int) { - for _, am := range coins { - // save balance - bal, err := s.queryServer.Balance(ctx, &collection.QueryBalanceRequest{ - ContractId: contractID, - Address: s.customer.String(), - TokenId: am.TokenId, - }) - s.Require().NoError(err) - balances = append(balances, bal.Balance) - - // save supply - res, err := s.queryServer.FTSupply(ctx, &collection.QueryFTSupplyRequest{ - ContractId: contractID, - TokenId: am.TokenId, - }) - s.Require().NoError(err) - supply = append(supply, res.Supply) - - // save minted - m, err := s.queryServer.FTMinted(ctx, &collection.QueryFTMintedRequest{ - ContractId: contractID, - TokenId: am.TokenId, - }) - s.Require().NoError(err) - minted = append(minted, m.Minted) - } - return - } - - for name, tc := range testCases { - s.Run(name, func() { - // test multiple times - ctx := s.ctx - for t := 0; t < 3; t++ { - ctx, _ = ctx.CacheContext() - - prevAmount, prevSupply, prevMinted := queryValuesEffectedByMintFT(ctx, tc.amount, tc.contractID) - - req := &collection.MsgMintFT{ - ContractId: tc.contractID, - From: tc.from.String(), - To: s.customer.String(), - Amount: tc.amount, - } - res, err := s.msgServer.MintFT(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()) - - // check results - afterAmount, afterSupply, afterMinted := queryValuesEffectedByMintFT(ctx, tc.amount, tc.contractID) - for i, am := range tc.amount { - expectedBalance := collection.Coin{ - TokenId: am.TokenId, - Amount: prevAmount[i].Amount.Add(am.Amount), - } - s.Require().Equal(expectedBalance, afterAmount[i]) - - expectedSupply := prevSupply[i].Add(am.Amount) - s.Require().True(expectedSupply.Equal(afterSupply[i])) - - expectedMinted := prevMinted[i].Add(am.Amount) - s.Require().True(expectedMinted.Equal(afterMinted[i])) - } - } - }) - } -} - func (s *KeeperTestSuite) TestMsgMintNFT() { params := []collection.MintNFTParam{{ TokenType: s.nftClassID, @@ -1052,279 +558,6 @@ func (s *KeeperTestSuite) TestMsgMintNFT() { } } -func (s *KeeperTestSuite) TestMsgBurnFT() { - // prepare mutli token burn test - singleAmount := collection.NewCoins( - collection.NewFTCoin(s.ftClassID, math.NewInt(50000)), - ) - - // create a fungible token class - mintableFTClassID, err := s.keeper.CreateTokenClass(s.ctx, s.contractID, &collection.FTClass{ - Name: "tibetian fox2", - Mintable: true, - }) - s.Require().NoError(err) - multiAmounts := collection.NewCoins( - collection.NewFTCoin(s.ftClassID, math.NewInt(50000)), - collection.NewFTCoin(*mintableFTClassID, math.NewInt(60000)), - ) - - // mintft - mintedCoin := collection.NewFTCoin(*mintableFTClassID, math.NewInt(1000000)) - err = s.keeper.MintFT(s.ctx, s.contractID, s.vendor, []collection.Coin{mintedCoin}) - s.Require().NoError(err) - - testCases := map[string]struct { - contractID string - from sdk.AccAddress - amount []collection.Coin - err error - events sdk.Events - }{ - "valid request": { - contractID: s.contractID, - from: s.vendor, - amount: singleAmount, - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventBurned", - Attributes: []abci.EventAttribute{ - {Key: "amount", Value: mustJSONMarshal(collection.NewCoins( - collection.NewFTCoin(s.ftClassID, math.NewInt(50000)), - )), Index: false}, - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(s.vendor.String()), Index: false}, - {Key: "operator", Value: w(s.vendor.String()), Index: false}, - }, - }, - }, - }, - "valid multi amount burn": { - contractID: s.contractID, - from: s.vendor, - amount: multiAmounts, - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventBurned", - Attributes: []abci.EventAttribute{ - {Key: "amount", Value: mustJSONMarshal(multiAmounts), Index: false}, - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(s.vendor.String()), Index: false}, - {Key: "operator", Value: w(s.vendor.String()), Index: false}, - }, - }, - }, - }, - "no amount - valid": { - contractID: s.contractID, - from: s.vendor, - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventBurned", - Attributes: []abci.EventAttribute{ - {Key: "amount", Value: "[]", Index: false}, - {Key: "contract_id", Value: w(s.contractID), Index: false}, - {Key: "from", Value: w(s.vendor.String()), Index: false}, - {Key: "operator", Value: w(s.vendor.String()), Index: false}, - }, - }, - }, - }, - "contract not found": { - contractID: "deadbeef", - from: s.vendor, - amount: singleAmount, - err: collection.ErrContractNotExist, - }, - "no permission": { - contractID: s.contractID, - from: s.customer, - amount: singleAmount, - err: collection.ErrTokenNoPermission, - }, - "insufficient funds": { - contractID: s.contractID, - from: s.vendor, - amount: collection.NewCoins( - collection.NewFTCoin("00bab10c", math.OneInt()), - ), - err: collection.ErrInsufficientToken, - }, - "include insufficient funds amount 2 amounts": { - contractID: s.contractID, - from: s.vendor, - amount: collection.NewCoins( - collection.NewFTCoin(s.ftClassID, s.balance), - collection.NewFTCoin("00bab10c", math.OneInt()), - ), - err: collection.ErrInsufficientToken, - }, - } - - // query the values to be effected by BurnFT - queryValuesAffectedByBurnFT := func(ctx sdk.Context, coins collection.Coins, contractID, from string) (balances collection.Coins, supply, burnt []math.Int) { - for _, am := range coins { - // save balance - bal, err := s.queryServer.Balance(ctx, &collection.QueryBalanceRequest{ - ContractId: contractID, - Address: from, - TokenId: am.TokenId, - }) - s.Require().NoError(err) - balances = append(balances, bal.Balance) - - // save supply - res, err := s.queryServer.FTSupply(ctx, &collection.QueryFTSupplyRequest{ - ContractId: contractID, - TokenId: am.TokenId, - }) - s.Require().NoError(err) - supply = append(supply, res.Supply) - - // save minted - b, err := s.queryServer.FTBurnt(ctx, &collection.QueryFTBurntRequest{ - ContractId: contractID, - TokenId: am.TokenId, - }) - s.Require().NoError(err) - burnt = append(burnt, b.Burnt) - } - return - } - - for name, tc := range testCases { - s.Run(name, func() { - // test multiple times - ctx := s.ctx - for t := 0; t < 3; t++ { - ctx, _ = ctx.CacheContext() - prevAmount, prevSupply, prevBurnt := queryValuesAffectedByBurnFT(ctx, tc.amount, tc.contractID, tc.from.String()) - - req := &collection.MsgBurnFT{ - ContractId: tc.contractID, - From: tc.from.String(), - Amount: tc.amount, - } - res, err := s.msgServer.BurnFT(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()) - - // check changed amount - afterAmount, afterSupply, afterBurnt := queryValuesAffectedByBurnFT(ctx, tc.amount, tc.contractID, tc.from.String()) - for i, am := range tc.amount { - expectedBalance := prevAmount[i].Amount.Sub(am.Amount) - s.Require().Equal(am.TokenId, afterAmount[i].TokenId) - s.Require().True(expectedBalance.Equal(afterAmount[i].Amount)) - - expectedSupply := prevSupply[i].Sub(am.Amount) - s.Require().True(expectedSupply.Equal(afterSupply[i])) - - expectedBurnt := prevBurnt[i].Add(am.Amount) - s.Require().True(expectedBurnt.Equal(afterBurnt[i])) - } - } - }) - } -} - -func (s *KeeperTestSuite) TestMsgOperatorBurnFT() { - singleAmount := collection.NewCoins( - collection.NewFTCoin(s.ftClassID, s.balance), - ) - - testCases := map[string]struct { - contractID string - operator sdk.AccAddress - from sdk.AccAddress - amount []collection.Coin - err error - events sdk.Events - }{ - "valid request": { - contractID: s.contractID, - operator: s.operator, - from: s.customer, - amount: singleAmount, - events: sdk.Events{ - sdk.Event{ - Type: "lbm.collection.v1.EventBurned", - Attributes: []abci.EventAttribute{ - {Key: "amount", Value: mustJSONMarshal(singleAmount), 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}, - }, - }, - }, - }, - "contract not found": { - contractID: "deadbeef", - operator: s.operator, - from: s.customer, - amount: singleAmount, - err: collection.ErrContractNotExist, - }, - "no authorization": { - contractID: s.contractID, - operator: s.vendor, - from: s.customer, - amount: singleAmount, - err: collection.ErrCollectionNotApproved, - }, - "no permission": { - contractID: s.contractID, - operator: s.stranger, - from: s.customer, - amount: singleAmount, - err: collection.ErrTokenNoPermission, - }, - "insufficient funds - exist token": { - contractID: s.contractID, - operator: s.operator, - from: s.customer, - amount: collection.NewCoins( - collection.NewFTCoin(s.ftClassID, s.balance.Add(math.OneInt())), - ), - err: collection.ErrInsufficientToken, - }, - "insufficient funds - non-exist token": { - contractID: s.contractID, - operator: s.operator, - from: s.customer, - amount: collection.NewCoins( - collection.NewFTCoin("00bab10c", math.OneInt()), - ), - err: collection.ErrInsufficientToken, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - ctx, _ := s.ctx.CacheContext() - - req := &collection.MsgOperatorBurnFT{ - ContractId: tc.contractID, - Operator: tc.operator.String(), - From: tc.from.String(), - Amount: tc.amount, - } - res, err := s.msgServer.OperatorBurnFT(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) TestMsgBurnNFT() { rootNFTID := collection.NewNFTID(s.nftClassID, s.numNFTs*2+1) coins := []collection.Coin{collection.NewCoin(rootNFTID, math.NewInt(1))} @@ -1543,13 +776,6 @@ func (s *KeeperTestSuite) TestMsgModify() { tokenIndex: collection.NewNFTID(s.nftClassID, s.numNFTs*3+1)[8:], err: collection.ErrTokenNotExist, }, - "ft class not found": { - contractID: s.contractID, - operator: s.vendor, - tokenType: "00bab10c", - tokenIndex: collection.NewFTID("00bab10c")[8:], - err: collection.ErrTokenNotExist, - }, "nft class not found": { contractID: s.contractID, operator: s.vendor, diff --git a/x/collection/keeper/nft.go b/x/collection/keeper/nft.go index e87b5b5861..d57e06608f 100644 --- a/x/collection/keeper/nft.go +++ b/x/collection/keeper/nft.go @@ -11,9 +11,6 @@ func legacyNFTNotFoundError(k Keeper, ctx sdk.Context, contractID, tokenID strin return collection.ErrTokenNotExist.Wrap(tokenID) } - if err2 := collection.ValidateFTID(tokenID); err2 != nil { - return collection.ErrTokenNotExist.Wrap(tokenID) - } classID := collection.SplitTokenID(tokenID) if _, err2 := k.GetTokenClass(ctx, contractID, classID); err2 != nil { return collection.ErrTokenNotExist.Wrap(tokenID) diff --git a/x/collection/keeper/nft_test.go b/x/collection/keeper/nft_test.go index b8cceb8ccf..d2f68528ac 100644 --- a/x/collection/keeper/nft_test.go +++ b/x/collection/keeper/nft_test.go @@ -16,18 +16,10 @@ func (s *KeeperTestSuite) TestGetNFT() { tokenID: collection.NewNFTID("deadbeef", 1), err: collection.ErrTokenNotExist, }, - "not found (not existing ft id)": { - tokenID: collection.NewFTID("00bab10c"), - err: collection.ErrTokenNotExist, - }, "not found (existing nft class id)": { tokenID: collection.NewNFTID(s.nftClassID, 0), err: collection.ErrTokenNotExist, }, - "not found (existing ft class id)": { - tokenID: collection.NewNFTID(s.ftClassID, 0), - err: collection.ErrTokenNotNFT, - }, } for name, tc := range testCases { diff --git a/x/collection/keeper/send_test.go b/x/collection/keeper/send_test.go index a67516f1ec..8a7c34aeb4 100644 --- a/x/collection/keeper/send_test.go +++ b/x/collection/keeper/send_test.go @@ -3,8 +3,6 @@ package keeper_test import ( "fmt" - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/Finschia/finschia-sdk/x/collection" @@ -15,14 +13,11 @@ func (s *KeeperTestSuite) TestSendCoins() { amount collection.Coin err error }{ - "valid send (fungible token)": { - amount: collection.NewFTCoin(s.ftClassID, s.balance), - }, "valid send (non-fungible token)": { amount: collection.NewNFTCoin(s.nftClassID, 1), }, "insufficient tokens": { - amount: collection.NewFTCoin(s.ftClassID, s.balance.Add(math.OneInt())), + amount: collection.NewNFTCoin(s.nftClassID, s.numNFTs*3+1), err: collection.ErrInsufficientToken, }, } diff --git a/x/collection/keeper/supply.go b/x/collection/keeper/supply.go index 3da891c19d..5a137ab32b 100644 --- a/x/collection/keeper/supply.go +++ b/x/collection/keeper/supply.go @@ -93,11 +93,8 @@ func (k Keeper) CreateTokenClass(ctx sdk.Context, contractID string, class colle // legacy k.setLegacyTokenType(ctx, contractID, nftClass.Id) - } - - if ftClass, ok := class.(*collection.FTClass); ok { - // legacy - k.setLegacyToken(ctx, contractID, collection.NewFTID(ftClass.Id)) + } else { + panic("TokenClass only supports NFTClass") } id := class.GetId() @@ -162,50 +159,6 @@ func (k Keeper) setNextClassIDs(ctx sdk.Context, ids collection.NextClassIDs) { } } -func (k Keeper) MintFT(ctx sdk.Context, contractID string, to sdk.AccAddress, amount []collection.Coin) error { - for _, coin := range amount { - if err := collection.ValidateFTID(coin.TokenId); err != nil { - // legacy - if err := k.hasNFT(ctx, contractID, coin.TokenId); err != nil { - return err - } - - return collection.ErrTokenNotMintable.Wrap(err.Error()) - } - - classID := collection.SplitTokenID(coin.TokenId) - class, err := k.GetTokenClass(ctx, contractID, classID) - if err != nil { - return collection.ErrTokenNotExist.Wrap(err.Error()) - } - - ftClass, ok := class.(*collection.FTClass) - if !ok { - return collection.ErrTokenNotMintable.Wrapf("not a class of fungible token: %s", classID) - } - - if !ftClass.Mintable { - return collection.ErrTokenNotMintable.Wrapf("class is not mintable") - } - - k.mintFT(ctx, contractID, to, classID, coin.Amount) - } - - return nil -} - -func (k Keeper) mintFT(ctx sdk.Context, contractID string, to sdk.AccAddress, classID string, amount math.Int) { - coins := collection.NewCoins(collection.NewFTCoin(classID, amount)) - k.addCoins(ctx, contractID, to, coins) - - // update statistics - supply := k.GetSupply(ctx, contractID, classID) - k.setSupply(ctx, contractID, classID, supply.Add(amount)) - - minted := k.GetMinted(ctx, contractID, classID) - k.setMinted(ctx, contractID, classID, minted.Add(amount)) -} - func (k Keeper) MintNFT(ctx sdk.Context, contractID string, to sdk.AccAddress, params []collection.MintNFTParam) ([]collection.NFT, error) { tokens := make([]collection.NFT, 0, len(params)) for _, param := range params { @@ -337,11 +290,6 @@ func (k Keeper) ModifyContract(ctx sdk.Context, contractID string, changes []col func (k Keeper) ModifyTokenClass(ctx sdk.Context, contractID, classID string, changes []collection.Attribute) error { class, err := k.GetTokenClass(ctx, contractID, classID) if err != nil { - // legacy error split - if err := collection.ValidateLegacyFTClassID(classID); err == nil { - return collection.ErrTokenNotExist.Wrap(collection.NewFTID(classID)) - } - if err := collection.ValidateLegacyNFTClassID(classID); err == nil { return collection.ErrTokenTypeNotExist.Wrap(classID) } diff --git a/x/collection/keeper/supply_test.go b/x/collection/keeper/supply_test.go index c86a1b4f75..ad7dcb0249 100644 --- a/x/collection/keeper/supply_test.go +++ b/x/collection/keeper/supply_test.go @@ -2,7 +2,6 @@ package keeper_test import ( "fmt" - "math/rand" "cosmossdk.io/math" @@ -36,10 +35,6 @@ func (s *KeeperTestSuite) TestCreateTokenClass() { class collection.TokenClass err error }{ - "valid fungible token class": { - contractID: s.contractID, - class: &collection.FTClass{}, - }, "valid non-fungible token class": { contractID: s.contractID, class: &collection.NFTClass{}, @@ -65,91 +60,6 @@ func (s *KeeperTestSuite) TestCreateTokenClass() { } } -func (s *KeeperTestSuite) TestMintFT() { - testCases := map[string]struct { - contractID string - amount collection.Coin - err error - }{ - "valid request": { - contractID: s.contractID, - amount: collection.NewFTCoin(s.ftClassID, math.OneInt()), - }, - "invalid token id": { - contractID: s.contractID, - amount: collection.NewNFTCoin(s.ftClassID, 1), - err: collection.ErrTokenNotExist, - }, - "class not found": { - contractID: s.contractID, - amount: collection.NewFTCoin("00bab10c", math.OneInt()), - err: collection.ErrTokenNotExist, - }, - "not a class id of ft": { - contractID: s.contractID, - amount: collection.NewFTCoin(s.nftClassID, math.OneInt()), - err: collection.ErrTokenNotMintable, - }, - } - - for name, tc := range testCases { - s.Run(name, func() { - ctx, _ := s.ctx.CacheContext() - - // gather state - classID := collection.SplitTokenID(tc.amount.TokenId) - balanceBefore := s.keeper.GetBalance(ctx, tc.contractID, s.stranger, collection.NewFTID(classID)) - supplyBefore := s.keeper.GetSupply(ctx, tc.contractID, classID) - mintedBefore := s.keeper.GetMinted(ctx, tc.contractID, classID) - burntBefore := s.keeper.GetBurnt(ctx, tc.contractID, classID) - - err := s.keeper.MintFT(ctx, tc.contractID, s.stranger, collection.NewCoins(tc.amount)) - s.Require().ErrorIs(err, tc.err) - if tc.err != nil { - return - } - - amount := tc.amount.Amount - balanceAfter := s.keeper.GetBalance(ctx, tc.contractID, s.stranger, collection.NewFTID(classID)) - s.Require().Equal(balanceBefore.Add(amount), balanceAfter) - supplyAfter := s.keeper.GetSupply(ctx, tc.contractID, classID) - s.Require().Equal(supplyBefore.Add(amount), supplyAfter) - mintedAfter := s.keeper.GetMinted(ctx, tc.contractID, classID) - s.Require().Equal(mintedBefore.Add(amount), mintedAfter) - burntAfter := s.keeper.GetBurnt(ctx, tc.contractID, classID) - s.Require().Equal(burntBefore, burntAfter) - }) - } - - // accumulation test - s.Run("accumulation test", func() { - ctx, _ := s.ctx.CacheContext() - numMints := int64(100) - contractID := s.contractID - classID := s.ftClassID - for i := int64(1); i <= numMints; i++ { - amount := math.NewInt(rand.Int63()) - - // gather state - balanceBefore := s.keeper.GetBalance(ctx, s.contractID, s.stranger, collection.NewFTID(s.ftClassID)) - supplyBefore := s.keeper.GetSupply(ctx, contractID, classID) - mintedBefore := s.keeper.GetMinted(ctx, contractID, classID) - burntBefore := s.keeper.GetBurnt(ctx, contractID, classID) - - s.keeper.MintFT(ctx, s.contractID, s.stranger, collection.NewCoins(collection.NewFTCoin(s.ftClassID, amount))) - - balanceAfter := s.keeper.GetBalance(ctx, s.contractID, s.stranger, collection.NewFTID(s.ftClassID)) - s.Require().Equal(balanceBefore.Add(amount), balanceAfter) - supplyAfter := s.keeper.GetSupply(ctx, contractID, classID) - s.Require().Equal(supplyBefore.Add(amount), supplyAfter) - mintedAfter := s.keeper.GetMinted(ctx, contractID, classID) - s.Require().Equal(mintedBefore.Add(amount), mintedAfter) - burntAfter := s.keeper.GetBurnt(ctx, contractID, classID) - s.Require().Equal(burntBefore, burntAfter) - } - }) -} - func (s *KeeperTestSuite) TestMintNFT() { testCases := map[string]struct { contractID string @@ -165,11 +75,6 @@ func (s *KeeperTestSuite) TestMintNFT() { param: collection.MintNFTParam{TokenType: "deadbeef"}, err: collection.ErrTokenTypeNotExist, }, - "not a class id of nft": { - contractID: s.contractID, - param: collection.MintNFTParam{TokenType: s.ftClassID}, - err: collection.ErrTokenTypeNotExist, - }, } for name, tc := range testCases { @@ -204,6 +109,7 @@ func (s *KeeperTestSuite) TestMintNFT() { } func (s *KeeperTestSuite) TestBurnCoins() { + targetTokenID := s.issuedNFTs[s.customer.String()][0].TokenId testCases := map[string]struct { contractID string amount collection.Coin @@ -211,11 +117,11 @@ func (s *KeeperTestSuite) TestBurnCoins() { }{ "valid request": { contractID: s.contractID, - amount: collection.NewFTCoin(s.ftClassID, math.OneInt()), + amount: collection.NewCoin(targetTokenID, math.OneInt()), }, "insufficient tokens": { contractID: s.contractID, - amount: collection.NewFTCoin("00bab10c", math.OneInt()), + amount: collection.NewCoin("00ffb10c00000001", math.OneInt()), err: collection.ErrInsufficientToken, }, } @@ -226,20 +132,20 @@ func (s *KeeperTestSuite) TestBurnCoins() { // gather state classID := collection.SplitTokenID(tc.amount.TokenId) - balanceBefore := s.keeper.GetBalance(ctx, tc.contractID, s.vendor, collection.NewFTID(classID)) + balanceBefore := s.keeper.GetBalance(ctx, tc.contractID, s.customer, targetTokenID) supplyBefore := s.keeper.GetSupply(ctx, tc.contractID, classID) mintedBefore := s.keeper.GetMinted(ctx, tc.contractID, classID) burntBefore := s.keeper.GetBurnt(ctx, tc.contractID, classID) - _, err := s.keeper.BurnCoins(ctx, tc.contractID, s.vendor, collection.NewCoins(tc.amount)) + _, err := s.keeper.BurnCoins(ctx, tc.contractID, s.customer, collection.NewCoins(tc.amount)) s.Require().ErrorIs(err, tc.err) if tc.err != nil { return } amount := tc.amount.Amount - balanceAfter := s.keeper.GetBalance(ctx, tc.contractID, s.vendor, collection.NewFTID(classID)) - s.Require().Equal(balanceBefore.Sub(amount), balanceAfter) + balanceAfter := s.keeper.GetBalance(ctx, tc.contractID, s.customer, targetTokenID) + s.Require().True(balanceBefore.Sub(amount).Equal(balanceAfter)) supplyAfter := s.keeper.GetSupply(ctx, tc.contractID, classID) s.Require().Equal(supplyBefore.Sub(amount), supplyAfter) mintedAfter := s.keeper.GetMinted(ctx, tc.contractID, classID) diff --git a/x/collection/msgs.go b/x/collection/msgs.go index 2c9a0dfb05..0c1fcbaabd 100644 --- a/x/collection/msgs.go +++ b/x/collection/msgs.go @@ -25,53 +25,22 @@ var ( patternZero = fmt.Sprintf(`0{%d}`, lengthClassID) patternClassID = patternAll - patternLegacyFTClassID = fmt.Sprintf(`0[0-9a-f]{%d}`, lengthClassID-1) patternLegacyNFTClassID = fmt.Sprintf(`[1-9a-f][0-9a-f]{%d}`, lengthClassID-1) // regexps for class ids reClassID = regexp.MustCompile(fmt.Sprintf(`^%s$`, patternClassID)) - reLegacyFTClassID = regexp.MustCompile(fmt.Sprintf(`^%s$`, patternLegacyFTClassID)) reLegacyNFTClassID = regexp.MustCompile(fmt.Sprintf(`^%s$`, patternLegacyNFTClassID)) // regexps for token ids - reTokenID = regexp.MustCompile(fmt.Sprintf(`^%s%s$`, patternClassID, patternAll)) - reFTID = regexp.MustCompile(fmt.Sprintf(`^%s%s$`, patternClassID, patternZero)) - reLegacyNFTID = regexp.MustCompile(fmt.Sprintf(`^%s%s$`, patternLegacyNFTClassID, patternAll)) + reTokenID = regexp.MustCompile(fmt.Sprintf(`^%s%s$`, patternClassID, patternAll)) + reLegacyNFTID = regexp.MustCompile(fmt.Sprintf(`^%s%s$`, patternLegacyNFTClassID, patternAll)) + reLegacyIdxNFTID = regexp.MustCompile(fmt.Sprintf(`^%s%s$`, patternLegacyNFTClassID, patternZero)) // regexps for contract ids reContractIDString = `[0-9a-f]{8,8}` reContractID = regexp.MustCompile(fmt.Sprintf(`^%s$`, reContractIDString)) ) -func validateAmount(amount math.Int) error { - if !amount.IsPositive() { - return ErrInvalidAmount.Wrapf("amount must be positive: %s", amount) - } - return nil -} - -// deprecated -func validateCoins(amount []Coin) error { - return validateCoinsWithIDValidator(amount, ValidateTokenID) -} - -// deprecated -func validateCoinsWithIDValidator(amount []Coin, validator func(string) error) error { - for _, amt := range amount { - if err := validator(amt.TokenId); err != nil { - return err - } - if err := validateAmount(amt.Amount); err != nil { - return err - } - } - return nil -} - -func NewFTID(classID string) string { - return newTokenID(classID, math.ZeroUint()) -} - func NewNFTID(classID string, number int) string { return newTokenID(classID, math.NewUint(uint64(number))) } @@ -96,11 +65,6 @@ func ValidateClassID(id string) error { return validateID(id, reClassID) } -// Deprecated: do not use (no successor). -func ValidateLegacyFTClassID(id string) error { - return validateID(id, reLegacyFTClassID) -} - // Deprecated: do not use (no successor). func ValidateLegacyNFTClassID(id string) error { // daphne emits ErrInvalidTokenID here, but it's against to the spec. @@ -119,21 +83,10 @@ func ValidateTokenID(id string) error { return nil } -func ValidateFTID(id string) error { - if err := validateID(id, reFTID); err != nil { - return ErrInvalidTokenID.Wrapf("%s not ft", id) - } - - return nil -} - func ValidateNFTID(id string) error { if err := ValidateTokenID(id); err != nil { return err } - if err := ValidateFTID(id); err == nil { - return sdkerrors.ErrInvalidRequest.Wrapf("invalid id: %s", id) - } return nil } @@ -146,6 +99,14 @@ func ValidateLegacyNFTID(id string) error { return nil } +func ValidateLegacyIdxNFT(id string) error { + if err := validateID(id, reLegacyIdxNFTID); err != nil { + return ErrInvalidTokenID.Wrap(err.Error()) + } + + return nil +} + func validateID(id string, reg *regexp.Regexp) error { if !reg.MatchString(id) { return sdkerrors.ErrInvalidRequest.Wrapf("invalid id: %s", id) @@ -184,13 +145,6 @@ func validateStringSize(str string, limit int, name string) error { return nil } -func validateDecimals(decimals int32) error { - if decimals < 0 || decimals > 18 { - return ErrInvalidTokenDecimals.Wrapf("got; %d", decimals) - } - return nil -} - func validateLegacyPermission(permission string) error { return ValidatePermission(Permission(LegacyPermissionFromString(permission))) } @@ -240,95 +194,6 @@ func canonicalKey(key string) string { return key } -var _ sdk.Msg = (*MsgSendFT)(nil) - -// ValidateBasic implements Msg. -func (m MsgSendFT) 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 := sdk.AccAddressFromBech32(m.To); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid to address: %s", m.To) - } - - if err := validateCoins(m.Amount); err != nil { - return err - } - - return nil -} - -// GetSigners implements Msg -func (m MsgSendFT) GetSigners() []sdk.AccAddress { - signer, _ := sdk.AccAddressFromBech32(m.From) - return []sdk.AccAddress{signer} -} - -// Type implements the LegacyMsg.Type method. -func (m MsgSendFT) Type() string { - return sdk.MsgTypeURL(&m) -} - -// Route implements the LegacyMsg.Route method. -func (m MsgSendFT) Route() string { - return RouterKey -} - -// GetSignBytes implements the LegacyMsg.GetSignBytes method. -func (m MsgSendFT) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - -var _ sdk.Msg = (*MsgOperatorSendFT)(nil) - -// ValidateBasic implements Msg. -func (m MsgOperatorSendFT) 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 := sdk.AccAddressFromBech32(m.To); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid to address: %s", m.To) - } - - if err := validateCoins(m.Amount); err != nil { - return err - } - - return nil -} - -// GetSigners implements Msg -func (m MsgOperatorSendFT) GetSigners() []sdk.AccAddress { - signer, _ := sdk.AccAddressFromBech32(m.Operator) - return []sdk.AccAddress{signer} -} - -// Type implements the LegacyMsg.Type method. -func (m MsgOperatorSendFT) Type() string { - return sdk.MsgTypeURL(&m) -} - -// Route implements the LegacyMsg.Route method. -func (m MsgOperatorSendFT) Route() string { - return RouterKey -} - -// GetSignBytes implements the LegacyMsg.GetSignBytes method. -func (m MsgOperatorSendFT) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - var _ sdk.Msg = (*MsgSendNFT)(nil) // ValidateBasic implements Msg. @@ -558,66 +423,6 @@ func (m MsgCreateContract) GetSignBytes() []byte { return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) } -var _ sdk.Msg = (*MsgIssueFT)(nil) - -// ValidateBasic implements Msg. -func (m MsgIssueFT) ValidateBasic() error { - if err := ValidateContractID(m.ContractId); err != nil { - return err - } - - if _, err := sdk.AccAddressFromBech32(m.Owner); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid owner address: %s", m.Owner) - } - - if len(m.Name) == 0 { - return ErrInvalidTokenName.Wrapf("empty name") - } - if err := validateName(m.Name); err != nil { - return err - } - - if err := validateMeta(m.Meta); err != nil { - return err - } - - if err := validateDecimals(m.Decimals); err != nil { - return err - } - - if _, err := sdk.AccAddressFromBech32(m.To); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid to address: %s", m.To) - } - - // daphne compat. - if m.Amount.Equal(math.OneInt()) && m.Decimals == 0 && !m.Mintable { - return ErrInvalidIssueFT.Wrap("invalid issue of ft") - } - - return nil -} - -// GetSigners implements Msg -func (m MsgIssueFT) GetSigners() []sdk.AccAddress { - signer, _ := sdk.AccAddressFromBech32(m.Owner) - return []sdk.AccAddress{signer} -} - -// Type implements the LegacyMsg.Type method. -func (m MsgIssueFT) Type() string { - return sdk.MsgTypeURL(&m) -} - -// Route implements the LegacyMsg.Route method. -func (m MsgIssueFT) Route() string { - return RouterKey -} - -// GetSignBytes implements the LegacyMsg.GetSignBytes method. -func (m MsgIssueFT) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - var _ sdk.Msg = (*MsgIssueNFT)(nil) // ValidateBasic implements Msg. @@ -662,49 +467,6 @@ func (m MsgIssueNFT) GetSignBytes() []byte { return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) } -var _ sdk.Msg = (*MsgMintFT)(nil) - -// ValidateBasic implements Msg. -func (m MsgMintFT) 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 := sdk.AccAddressFromBech32(m.To); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid to address: %s", m.To) - } - - if err := validateCoins(m.Amount); err != nil { - return err - } - - return nil -} - -// GetSigners implements Msg -func (m MsgMintFT) GetSigners() []sdk.AccAddress { - signer, _ := sdk.AccAddressFromBech32(m.From) - return []sdk.AccAddress{signer} -} - -// Type implements the LegacyMsg.Type method. -func (m MsgMintFT) Type() string { - return sdk.MsgTypeURL(&m) -} - -// Route implements the LegacyMsg.Route method. -func (m MsgMintFT) Route() string { - return RouterKey -} - -// GetSignBytes implements the LegacyMsg.GetSignBytes method. -func (m MsgMintFT) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - var _ sdk.Msg = (*MsgMintNFT)(nil) // ValidateBasic implements Msg. @@ -765,89 +527,6 @@ func (m MsgMintNFT) GetSignBytes() []byte { return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) } -var _ sdk.Msg = (*MsgBurnFT)(nil) - -// ValidateBasic implements Msg. -func (m MsgBurnFT) 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 := validateCoins(m.Amount); err != nil { - return err - } - - return nil -} - -// GetSigners implements Msg -func (m MsgBurnFT) GetSigners() []sdk.AccAddress { - signer, _ := sdk.AccAddressFromBech32(m.From) - return []sdk.AccAddress{signer} -} - -// Type implements the LegacyMsg.Type method. -func (m MsgBurnFT) Type() string { - return sdk.MsgTypeURL(&m) -} - -// Route implements the LegacyMsg.Route method. -func (m MsgBurnFT) Route() string { - return RouterKey -} - -// GetSignBytes implements the LegacyMsg.GetSignBytes method. -func (m MsgBurnFT) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - -var _ sdk.Msg = (*MsgOperatorBurnFT)(nil) - -// ValidateBasic implements Msg. -func (m MsgOperatorBurnFT) 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 := validateCoins(m.Amount); err != nil { - return err - } - - return nil -} - -// GetSigners implements Msg -func (m MsgOperatorBurnFT) GetSigners() []sdk.AccAddress { - signer, _ := sdk.AccAddressFromBech32(m.Operator) - return []sdk.AccAddress{signer} -} - -// Type implements the LegacyMsg.Type method. -func (m MsgOperatorBurnFT) Type() string { - return sdk.MsgTypeURL(&m) -} - -// Route implements the LegacyMsg.Route method. -func (m MsgOperatorBurnFT) Route() string { - return RouterKey -} - -// GetSignBytes implements the LegacyMsg.GetSignBytes method. -func (m MsgOperatorBurnFT) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - var _ sdk.Msg = (*MsgBurnNFT)(nil) // ValidateBasic implements Msg. @@ -960,9 +639,6 @@ func (m MsgModify) ValidateBasic() error { if err := ValidateClassID(classID); err != nil { return ErrInvalidTokenType.Wrap(err.Error()) } - if err := ValidateLegacyFTClassID(classID); err == nil && len(m.TokenIndex) == 0 { - return ErrTokenTypeFTWithoutIndex.Wrap("fungible token type without index") - } } if len(m.TokenIndex) != 0 { @@ -971,7 +647,7 @@ func (m MsgModify) ValidateBasic() error { return ErrInvalidTokenIndex.Wrap(err.Error()) } // reject modifying nft class with token index filled (daphne compat.) - if ValidateLegacyNFTID(tokenID) == nil && ValidateFTID(tokenID) == nil { + if ValidateLegacyIdxNFT(tokenID) == nil { return ErrInvalidTokenIndex.Wrap("cannot modify nft class with index filled") } } diff --git a/x/collection/msgs_test.go b/x/collection/msgs_test.go index c5d595d080..00f3d4a996 100644 --- a/x/collection/msgs_test.go +++ b/x/collection/msgs_test.go @@ -7,8 +7,6 @@ import ( "github.com/stretchr/testify/require" - "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" sdk "github.com/cosmos/cosmos-sdk/types" @@ -18,198 +16,6 @@ import ( "github.com/Finschia/finschia-sdk/x/collection" ) -func TestMsgSendFT(t *testing.T) { - addrs := make([]sdk.AccAddress, 2) - for i := range addrs { - addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) - } - - amount := collection.NewCoins( - collection.NewFTCoin("00bab10c", math.OneInt()), - ) - - testCases := map[string]struct { - contractID string - from sdk.AccAddress - to sdk.AccAddress - amount []collection.Coin - err error - panic bool - }{ - "valid msg": { - contractID: contractID, - from: addrs[0], - to: addrs[1], - amount: amount, - }, - "invalid from": { - contractID: contractID, - to: addrs[1], - amount: amount, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid contract id": { - from: addrs[0], - to: addrs[1], - amount: amount, - err: collection.ErrInvalidContractID, - }, - "invalid to": { - contractID: contractID, - from: addrs[0], - amount: amount, - err: sdkerrors.ErrInvalidAddress, - }, - "nil amount": { - contractID: contractID, - from: addrs[0], - to: addrs[1], - amount: []collection.Coin{{ - TokenId: collection.NewFTID("00bab10c"), - }}, - panic: true, - }, - "zero amount": { - contractID: contractID, - from: addrs[0], - to: addrs[1], - amount: []collection.Coin{{ - TokenId: collection.NewFTID("00bab10c"), - Amount: math.ZeroInt(), - }}, - err: collection.ErrInvalidAmount, - }, - "invalid token id": { - contractID: contractID, - from: addrs[0], - to: addrs[1], - amount: []collection.Coin{{ - Amount: math.OneInt(), - }}, - err: collection.ErrInvalidTokenID, - }, - } - - for name, tc := range testCases { - t.Run(name, func(t *testing.T) { - msg := collection.MsgSendFT{ - ContractId: tc.contractID, - From: tc.from.String(), - To: tc.to.String(), - Amount: tc.amount, - } - - if tc.panic { - require.Panics(t, func() { msg.ValidateBasic() }) - return - } - - require.ErrorIs(t, msg.ValidateBasic(), tc.err) - if tc.err != nil { - return - } - - require.Equal(t, []sdk.AccAddress{tc.from}, msg.GetSigners()) - }) - } -} - -func TestMsgOperatorSendFT(t *testing.T) { - addrs := make([]sdk.AccAddress, 3) - for i := range addrs { - addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) - } - - amount := collection.NewCoins( - collection.NewFTCoin("00bab10c", math.OneInt()), - ) - - testCases := map[string]struct { - contractID string - operator sdk.AccAddress - from sdk.AccAddress - to sdk.AccAddress - amount []collection.Coin - err error - }{ - "valid msg": { - contractID: contractID, - operator: addrs[0], - from: addrs[1], - to: addrs[2], - amount: amount, - }, - "invalid operator": { - contractID: contractID, - from: addrs[1], - to: addrs[2], - amount: amount, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid contract id": { - operator: addrs[0], - from: addrs[1], - to: addrs[2], - amount: amount, - err: collection.ErrInvalidContractID, - }, - "invalid from": { - contractID: contractID, - operator: addrs[0], - to: addrs[1], - amount: amount, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid to": { - contractID: contractID, - operator: addrs[0], - from: addrs[1], - amount: amount, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid amount": { - contractID: contractID, - operator: addrs[0], - from: addrs[1], - to: addrs[2], - amount: []collection.Coin{{ - TokenId: collection.NewFTID("00bab10c"), - Amount: math.ZeroInt(), - }}, - err: collection.ErrInvalidAmount, - }, - "invalid denom": { - contractID: contractID, - operator: addrs[0], - from: addrs[1], - to: addrs[2], - amount: []collection.Coin{{ - Amount: math.OneInt(), - }}, - err: collection.ErrInvalidTokenID, - }, - } - - for name, tc := range testCases { - t.Run(name, func(t *testing.T) { - msg := collection.MsgOperatorSendFT{ - ContractId: tc.contractID, - Operator: tc.operator.String(), - From: tc.from.String(), - To: tc.to.String(), - Amount: tc.amount, - } - - require.ErrorIs(t, msg.ValidateBasic(), tc.err) - if tc.err != nil { - return - } - - require.Equal(t, []sdk.AccAddress{tc.operator}, msg.GetSigners()) - }) - } -} - func TestMsgSendNFT(t *testing.T) { addrs := make([]sdk.AccAddress, 2) for i := range addrs { @@ -545,145 +351,6 @@ func TestMsgCreateContract(t *testing.T) { } } -func TestMsgIssueFT(t *testing.T) { - addrs := make([]sdk.AccAddress, 2) - for i := range addrs { - addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) - } - - contractID := contractID - name := "tibetian fox" - meta := "Tibetian Fox" - decimals := int32(8) - testCases := map[string]struct { - contractID string - owner sdk.AccAddress - to sdk.AccAddress - name string - meta string - decimals int32 - mintable bool - amount math.Int - err error - }{ - "valid msg": { - contractID: contractID, - owner: addrs[0], - to: addrs[1], - name: name, - meta: meta, - decimals: decimals, - amount: math.OneInt(), - }, - "invalid contract id": { - owner: addrs[0], - to: addrs[1], - name: name, - meta: meta, - decimals: decimals, - amount: math.OneInt(), - err: collection.ErrInvalidContractID, - }, - "invalid owner": { - contractID: contractID, - to: addrs[1], - name: name, - meta: meta, - decimals: decimals, - amount: math.OneInt(), - err: sdkerrors.ErrInvalidAddress, - }, - "invalid to": { - contractID: contractID, - owner: addrs[0], - name: name, - meta: meta, - decimals: decimals, - amount: math.OneInt(), - err: sdkerrors.ErrInvalidAddress, - }, - "empty name": { - contractID: contractID, - owner: addrs[0], - to: addrs[1], - meta: meta, - decimals: decimals, - amount: math.OneInt(), - err: collection.ErrInvalidTokenName, - }, - "long name": { - contractID: contractID, - owner: addrs[0], - to: addrs[1], - name: string(make([]rune, 21)), - meta: meta, - decimals: decimals, - amount: math.OneInt(), - err: collection.ErrInvalidNameLength, - }, - "invalid meta": { - contractID: contractID, - owner: addrs[0], - to: addrs[1], - name: name, - meta: string(make([]rune, 1001)), - decimals: decimals, - amount: math.OneInt(), - err: collection.ErrInvalidMetaLength, - }, - "invalid decimals": { - contractID: contractID, - owner: addrs[0], - to: addrs[1], - name: name, - meta: meta, - decimals: 19, - amount: math.OneInt(), - err: collection.ErrInvalidTokenDecimals, - }, - "invalid decimals - negative": { - contractID: contractID, - owner: addrs[0], - to: addrs[1], - name: name, - meta: meta, - decimals: -1, - amount: math.OneInt(), - err: collection.ErrInvalidTokenDecimals, - }, - "daphne compat": { - contractID: contractID, - owner: addrs[0], - to: addrs[1], - name: name, - meta: meta, - amount: math.OneInt(), - err: collection.ErrInvalidIssueFT, - }, - } - - for name, tc := range testCases { - t.Run(name, func(t *testing.T) { - msg := collection.MsgIssueFT{ - ContractId: tc.contractID, - Owner: tc.owner.String(), - To: tc.to.String(), - Name: tc.name, - Meta: tc.meta, - Decimals: tc.decimals, - Amount: tc.amount, - } - - require.ErrorIs(t, msg.ValidateBasic(), tc.err) - if tc.err != nil { - return - } - - require.Equal(t, []sdk.AccAddress{tc.owner}, msg.GetSigners()) - }) - } -} - func TestMsgIssueNFT(t *testing.T) { addrs := make([]sdk.AccAddress, 1) for i := range addrs { @@ -753,94 +420,6 @@ func TestMsgIssueNFT(t *testing.T) { } } -func TestMsgMintFT(t *testing.T) { - addrs := make([]sdk.AccAddress, 2) - for i := range addrs { - addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) - } - - amount := collection.NewCoins( - collection.NewFTCoin("00bab10c", math.OneInt()), - ) - - contractID := contractID - testCases := map[string]struct { - contractID string - operator sdk.AccAddress - to sdk.AccAddress - amount []collection.Coin - err error - }{ - "valid msg": { - contractID: contractID, - operator: addrs[0], - to: addrs[1], - amount: amount, - }, - // for daphne compatible - "valid msg - zero amount": { - contractID: contractID, - operator: addrs[0], - to: addrs[1], - }, - "invalid contract id": { - operator: addrs[0], - to: addrs[1], - amount: amount, - err: collection.ErrInvalidContractID, - }, - "invalid operator": { - contractID: contractID, - to: addrs[1], - amount: amount, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid to": { - contractID: contractID, - operator: addrs[0], - amount: amount, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid amount": { - contractID: contractID, - operator: addrs[0], - to: addrs[1], - amount: []collection.Coin{{ - TokenId: collection.NewFTID("00bab10c"), - Amount: math.ZeroInt(), - }}, - err: collection.ErrInvalidAmount, - }, - "invalid token id": { - contractID: contractID, - operator: addrs[0], - to: addrs[1], - amount: []collection.Coin{{ - Amount: math.OneInt(), - }}, - err: collection.ErrInvalidTokenID, - }, - } - - for name, tc := range testCases { - t.Run(name, func(t *testing.T) { - msg := collection.MsgMintFT{ - ContractId: tc.contractID, - From: tc.operator.String(), - To: tc.to.String(), - Amount: tc.amount, - } - - require.ErrorIs(t, msg.ValidateBasic(), tc.err) - if tc.err != nil { - return - } - - require.Equal(t, []sdk.AccAddress{tc.operator}, msg.GetSigners()) - }) - } -} - func TestMsgMintNFT(t *testing.T) { addrs := make([]sdk.AccAddress, 2) for i := range addrs { @@ -949,160 +528,6 @@ func TestMsgMintNFT(t *testing.T) { } } -func TestMsgBurnFT(t *testing.T) { - addrs := make([]sdk.AccAddress, 1) - for i := range addrs { - addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) - } - - amount := collection.NewCoins( - collection.NewFTCoin("00bab10c", math.OneInt()), - ) - - testCases := map[string]struct { - contractID string - from sdk.AccAddress - amount []collection.Coin - err error - }{ - "valid msg": { - contractID: contractID, - from: addrs[0], - amount: amount, - }, - // for daphne compatible - "valid msg - zero amount": { - contractID: contractID, - from: addrs[0], - }, - "invalid contract id": { - from: addrs[0], - amount: amount, - err: collection.ErrInvalidContractID, - }, - "invalid from": { - contractID: contractID, - amount: amount, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid token id": { - contractID: contractID, - from: addrs[0], - amount: []collection.Coin{{ - Amount: math.OneInt(), - }}, - err: collection.ErrInvalidTokenID, - }, - "invalid amount": { - contractID: contractID, - from: addrs[0], - amount: []collection.Coin{{ - TokenId: collection.NewFTID("00bab10c"), - Amount: math.ZeroInt(), - }}, - err: collection.ErrInvalidAmount, - }, - } - - for name, tc := range testCases { - t.Run(name, func(t *testing.T) { - msg := collection.MsgBurnFT{ - ContractId: tc.contractID, - From: tc.from.String(), - Amount: tc.amount, - } - - require.ErrorIs(t, msg.ValidateBasic(), tc.err) - if tc.err != nil { - return - } - - require.Equal(t, []sdk.AccAddress{tc.from}, msg.GetSigners()) - }) - } -} - -func TestMsgOperatorBurnFT(t *testing.T) { - addrs := make([]sdk.AccAddress, 2) - for i := range addrs { - addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) - } - - amount := collection.NewCoins( - collection.NewFTCoin("00bab10c", math.OneInt()), - ) - - testCases := map[string]struct { - contractID string - grantee sdk.AccAddress - from sdk.AccAddress - amount []collection.Coin - err error - }{ - "valid msg": { - contractID: contractID, - grantee: addrs[0], - from: addrs[1], - amount: amount, - }, - "invalid contract id": { - grantee: addrs[0], - from: addrs[1], - amount: amount, - err: collection.ErrInvalidContractID, - }, - "invalid grantee": { - contractID: contractID, - from: addrs[1], - amount: amount, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid from": { - contractID: contractID, - grantee: addrs[0], - amount: amount, - err: sdkerrors.ErrInvalidAddress, - }, - "invalid token id": { - contractID: contractID, - grantee: addrs[0], - from: addrs[1], - amount: []collection.Coin{{ - Amount: math.OneInt(), - }}, - err: collection.ErrInvalidTokenID, - }, - "invalid amount": { - contractID: contractID, - grantee: addrs[0], - from: addrs[1], - amount: []collection.Coin{{ - TokenId: collection.NewFTID("00bab10c"), - Amount: math.ZeroInt(), - }}, - err: collection.ErrInvalidAmount, - }, - } - - for name, tc := range testCases { - t.Run(name, func(t *testing.T) { - msg := collection.MsgOperatorBurnFT{ - ContractId: tc.contractID, - Operator: tc.grantee.String(), - From: tc.from.String(), - Amount: tc.amount, - } - - require.ErrorIs(t, msg.ValidateBasic(), tc.err) - if tc.err != nil { - return - } - - require.Equal(t, []sdk.AccAddress{tc.grantee}, msg.GetSigners()) - }) - } -} - func TestMsgBurnNFT(t *testing.T) { addrs := make([]sdk.AccAddress, 1) for i := range addrs { @@ -1459,7 +884,6 @@ func TestMsgRevokePermission(t *testing.T) { func TestAminoJSON(t *testing.T) { tx := legacytx.StdTx{} - ftClassID := "00bab10c" legacyAmino := codec.NewLegacyAmino() collection.RegisterLegacyAminoCodec(legacyAmino) legacytx.RegressionTestingAminoCodec = legacyAmino @@ -1469,7 +893,6 @@ func TestAminoJSON(t *testing.T) { addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) } - ftAmount := collection.NewCoins(collection.NewFTCoin(ftClassID, math.NewInt(1000000))) tokenIds := []string{collection.NewNFTID(contractID, 1)} const name = "tibetian fox" nftParams := []collection.MintNFTParam{{ @@ -1483,27 +906,6 @@ func TestAminoJSON(t *testing.T) { expectedType string expected string }{ - "MsgSendFT": { - &collection.MsgSendFT{ - ContractId: contractID, - From: addrs[0].String(), - To: addrs[1].String(), - Amount: ftAmount, - }, - "/lbm.collection.v1.MsgSendFT", - fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgSendFT\",\"value\":{\"amount\":[{\"amount\":\"1000000\",\"token_id\":\"00bab10c00000000\"}],\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"to\":\"%s\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0].String(), addrs[1].String()), - }, - "MsgOperatorSendFT": { - &collection.MsgOperatorSendFT{ - ContractId: contractID, - Operator: addrs[0].String(), - From: addrs[1].String(), - To: addrs[2].String(), - Amount: ftAmount, - }, - "/lbm.collection.v1.MsgOperatorSendFT", - fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgOperatorSendFT\",\"value\":{\"amount\":[{\"amount\":\"1000000\",\"token_id\":\"00bab10c00000000\"}],\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"operator\":\"%s\",\"to\":\"%s\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[1].String(), addrs[0].String(), addrs[2].String()), - }, "MsgSendNFT": { &collection.MsgSendNFT{ ContractId: contractID, @@ -1553,20 +955,6 @@ func TestAminoJSON(t *testing.T) { "/lbm.collection.v1.MsgCreateContract", fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgCreateContract\",\"value\":{\"meta\":\"This is test\",\"name\":\"Test Contract\",\"owner\":\"%s\",\"uri\":\"http://image.url\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0].String()), }, - "MsgIssueFT": { - &collection.MsgIssueFT{ - ContractId: contractID, - Name: "Test FT", - Meta: "This is FT Meta", - Decimals: 6, - Mintable: false, - Owner: addrs[0].String(), - To: addrs[1].String(), - Amount: math.NewInt(1000000), - }, - "/lbm.collection.v1.MsgIssueFT", - fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgIssueFT\",\"value\":{\"amount\":\"1000000\",\"contract_id\":\"deadbeef\",\"decimals\":6,\"meta\":\"This is FT Meta\",\"name\":\"Test FT\",\"owner\":\"%s\",\"to\":\"%s\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0].String(), addrs[1].String()), - }, "MsgIssueNFT": { &collection.MsgIssueNFT{ ContractId: contractID, @@ -1577,16 +965,6 @@ func TestAminoJSON(t *testing.T) { "/lbm.collection.v1.MsgIssueNFT", fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgIssueNFT\",\"value\":{\"contract_id\":\"deadbeef\",\"meta\":\"This is NFT Meta\",\"name\":\"Test NFT\",\"owner\":\"%s\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0].String()), }, - "MsgMintFT": { - &collection.MsgMintFT{ - ContractId: contractID, - From: addrs[0].String(), - To: addrs[1].String(), - Amount: ftAmount, - }, - "/lbm.collection.v1.MsgMintFT", - fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgMintFT\",\"value\":{\"amount\":[{\"amount\":\"1000000\",\"token_id\":\"00bab10c00000000\"}],\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"to\":\"%s\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0].String(), addrs[1].String()), - }, "MsgMintNFT": { &collection.MsgMintNFT{ ContractId: contractID, @@ -1597,25 +975,6 @@ func TestAminoJSON(t *testing.T) { "/lbm.collection.v1.MsgMintNFT", fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgMintNFT\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"params\":[{\"meta\":\"Tibetian Fox\",\"name\":\"tibetian fox\",\"token_type\":\"deadbeef\"}],\"to\":\"%s\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0].String(), addrs[1].String()), }, - "MsgBurnFT": { - &collection.MsgBurnFT{ - ContractId: contractID, - From: addrs[0].String(), - Amount: ftAmount, - }, - "/lbm.collection.v1.MsgBurnFT", - fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgBurnFT\",\"value\":{\"amount\":[{\"amount\":\"1000000\",\"token_id\":\"00bab10c00000000\"}],\"contract_id\":\"deadbeef\",\"from\":\"%s\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0].String()), - }, - "MsgOperatorBurnFT": { - &collection.MsgOperatorBurnFT{ - ContractId: contractID, - Operator: addrs[0].String(), - From: addrs[1].String(), - Amount: ftAmount, - }, - "/lbm.collection.v1.MsgOperatorBurnFT", - fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgOperatorBurnFT\",\"value\":{\"amount\":[{\"amount\":\"1000000\",\"token_id\":\"00bab10c00000000\"}],\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"operator\":\"%s\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[1].String(), addrs[0].String()), - }, "MsgBurnNFT": { &collection.MsgBurnNFT{ ContractId: contractID, diff --git a/x/collection/query.pb.go b/x/collection/query.pb.go index 3ec33fbbf2..3b90b7fddb 100644 --- a/x/collection/query.pb.go +++ b/x/collection/query.pb.go @@ -262,288 +262,6 @@ func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse { return nil } -// QueryFTSupplyRequest is the request type for the Query/FTSupply RPC method. -type QueryFTSupplyRequest 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 fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (m *QueryFTSupplyRequest) Reset() { *m = QueryFTSupplyRequest{} } -func (m *QueryFTSupplyRequest) String() string { return proto.CompactTextString(m) } -func (*QueryFTSupplyRequest) ProtoMessage() {} -func (*QueryFTSupplyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{4} -} -func (m *QueryFTSupplyRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryFTSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryFTSupplyRequest.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 *QueryFTSupplyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryFTSupplyRequest.Merge(m, src) -} -func (m *QueryFTSupplyRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryFTSupplyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryFTSupplyRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryFTSupplyRequest proto.InternalMessageInfo - -func (m *QueryFTSupplyRequest) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *QueryFTSupplyRequest) GetTokenId() string { - if m != nil { - return m.TokenId - } - return "" -} - -// QueryFTSupplyResponse is the response type for the Query/FTSupply RPC method. -type QueryFTSupplyResponse struct { - // supply is the supply of the tokens. - Supply cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=supply,proto3,customtype=cosmossdk.io/math.Int" json:"supply"` -} - -func (m *QueryFTSupplyResponse) Reset() { *m = QueryFTSupplyResponse{} } -func (m *QueryFTSupplyResponse) String() string { return proto.CompactTextString(m) } -func (*QueryFTSupplyResponse) ProtoMessage() {} -func (*QueryFTSupplyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{5} -} -func (m *QueryFTSupplyResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryFTSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryFTSupplyResponse.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 *QueryFTSupplyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryFTSupplyResponse.Merge(m, src) -} -func (m *QueryFTSupplyResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryFTSupplyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryFTSupplyResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryFTSupplyResponse proto.InternalMessageInfo - -// QueryFTMintedRequest is the request type for the Query/FTMinted RPC method. -type QueryFTMintedRequest 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 fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (m *QueryFTMintedRequest) Reset() { *m = QueryFTMintedRequest{} } -func (m *QueryFTMintedRequest) String() string { return proto.CompactTextString(m) } -func (*QueryFTMintedRequest) ProtoMessage() {} -func (*QueryFTMintedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{6} -} -func (m *QueryFTMintedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryFTMintedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryFTMintedRequest.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 *QueryFTMintedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryFTMintedRequest.Merge(m, src) -} -func (m *QueryFTMintedRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryFTMintedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryFTMintedRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryFTMintedRequest proto.InternalMessageInfo - -func (m *QueryFTMintedRequest) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *QueryFTMintedRequest) GetTokenId() string { - if m != nil { - return m.TokenId - } - return "" -} - -// QueryFTMintedResponse is the response type for the Query/FTMinted RPC method. -type QueryFTMintedResponse struct { - // minted is the amount of the minted tokens. - Minted cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=minted,proto3,customtype=cosmossdk.io/math.Int" json:"minted"` -} - -func (m *QueryFTMintedResponse) Reset() { *m = QueryFTMintedResponse{} } -func (m *QueryFTMintedResponse) String() string { return proto.CompactTextString(m) } -func (*QueryFTMintedResponse) ProtoMessage() {} -func (*QueryFTMintedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{7} -} -func (m *QueryFTMintedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryFTMintedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryFTMintedResponse.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 *QueryFTMintedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryFTMintedResponse.Merge(m, src) -} -func (m *QueryFTMintedResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryFTMintedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryFTMintedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryFTMintedResponse proto.InternalMessageInfo - -// QueryFTBurntRequest is the request type for the Query/FTBurnt RPC method. -type QueryFTBurntRequest 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 fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (m *QueryFTBurntRequest) Reset() { *m = QueryFTBurntRequest{} } -func (m *QueryFTBurntRequest) String() string { return proto.CompactTextString(m) } -func (*QueryFTBurntRequest) ProtoMessage() {} -func (*QueryFTBurntRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{8} -} -func (m *QueryFTBurntRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryFTBurntRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryFTBurntRequest.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 *QueryFTBurntRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryFTBurntRequest.Merge(m, src) -} -func (m *QueryFTBurntRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryFTBurntRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryFTBurntRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryFTBurntRequest proto.InternalMessageInfo - -func (m *QueryFTBurntRequest) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *QueryFTBurntRequest) GetTokenId() string { - if m != nil { - return m.TokenId - } - return "" -} - -// QueryFTBurntResponse is the response type for the Query/FTBurnt RPC method. -type QueryFTBurntResponse struct { - // burnt is the amount of the burnt tokens. - Burnt cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=burnt,proto3,customtype=cosmossdk.io/math.Int" json:"burnt"` -} - -func (m *QueryFTBurntResponse) Reset() { *m = QueryFTBurntResponse{} } -func (m *QueryFTBurntResponse) String() string { return proto.CompactTextString(m) } -func (*QueryFTBurntResponse) ProtoMessage() {} -func (*QueryFTBurntResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{9} -} -func (m *QueryFTBurntResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryFTBurntResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryFTBurntResponse.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 *QueryFTBurntResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryFTBurntResponse.Merge(m, src) -} -func (m *QueryFTBurntResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryFTBurntResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryFTBurntResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryFTBurntResponse proto.InternalMessageInfo - // QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. type QueryNFTSupplyRequest struct { // contract id associated with the contract. @@ -557,7 +275,7 @@ func (m *QueryNFTSupplyRequest) Reset() { *m = QueryNFTSupplyRequest{} } func (m *QueryNFTSupplyRequest) String() string { return proto.CompactTextString(m) } func (*QueryNFTSupplyRequest) ProtoMessage() {} func (*QueryNFTSupplyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{10} + return fileDescriptor_a09de688aac2ee73, []int{4} } func (m *QueryNFTSupplyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -610,7 +328,7 @@ func (m *QueryNFTSupplyResponse) Reset() { *m = QueryNFTSupplyResponse{} func (m *QueryNFTSupplyResponse) String() string { return proto.CompactTextString(m) } func (*QueryNFTSupplyResponse) ProtoMessage() {} func (*QueryNFTSupplyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{11} + return fileDescriptor_a09de688aac2ee73, []int{5} } func (m *QueryNFTSupplyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -652,7 +370,7 @@ func (m *QueryNFTMintedRequest) Reset() { *m = QueryNFTMintedRequest{} } func (m *QueryNFTMintedRequest) String() string { return proto.CompactTextString(m) } func (*QueryNFTMintedRequest) ProtoMessage() {} func (*QueryNFTMintedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{12} + return fileDescriptor_a09de688aac2ee73, []int{6} } func (m *QueryNFTMintedRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -705,7 +423,7 @@ func (m *QueryNFTMintedResponse) Reset() { *m = QueryNFTMintedResponse{} func (m *QueryNFTMintedResponse) String() string { return proto.CompactTextString(m) } func (*QueryNFTMintedResponse) ProtoMessage() {} func (*QueryNFTMintedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{13} + return fileDescriptor_a09de688aac2ee73, []int{7} } func (m *QueryNFTMintedResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -747,7 +465,7 @@ func (m *QueryNFTBurntRequest) Reset() { *m = QueryNFTBurntRequest{} } func (m *QueryNFTBurntRequest) String() string { return proto.CompactTextString(m) } func (*QueryNFTBurntRequest) ProtoMessage() {} func (*QueryNFTBurntRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{14} + return fileDescriptor_a09de688aac2ee73, []int{8} } func (m *QueryNFTBurntRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -800,7 +518,7 @@ func (m *QueryNFTBurntResponse) Reset() { *m = QueryNFTBurntResponse{} } func (m *QueryNFTBurntResponse) String() string { return proto.CompactTextString(m) } func (*QueryNFTBurntResponse) ProtoMessage() {} func (*QueryNFTBurntResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{15} + return fileDescriptor_a09de688aac2ee73, []int{9} } func (m *QueryNFTBurntResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -839,7 +557,7 @@ func (m *QueryContractRequest) Reset() { *m = QueryContractRequest{} } func (m *QueryContractRequest) String() string { return proto.CompactTextString(m) } func (*QueryContractRequest) ProtoMessage() {} func (*QueryContractRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{16} + return fileDescriptor_a09de688aac2ee73, []int{10} } func (m *QueryContractRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -885,7 +603,7 @@ func (m *QueryContractResponse) Reset() { *m = QueryContractResponse{} } func (m *QueryContractResponse) String() string { return proto.CompactTextString(m) } func (*QueryContractResponse) ProtoMessage() {} func (*QueryContractResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{17} + return fileDescriptor_a09de688aac2ee73, []int{11} } func (m *QueryContractResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -935,7 +653,7 @@ func (m *QueryTokenClassTypeNameRequest) Reset() { *m = QueryTokenClassT func (m *QueryTokenClassTypeNameRequest) String() string { return proto.CompactTextString(m) } func (*QueryTokenClassTypeNameRequest) ProtoMessage() {} func (*QueryTokenClassTypeNameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{18} + return fileDescriptor_a09de688aac2ee73, []int{12} } func (m *QueryTokenClassTypeNameRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -990,7 +708,7 @@ func (m *QueryTokenClassTypeNameResponse) Reset() { *m = QueryTokenClass func (m *QueryTokenClassTypeNameResponse) String() string { return proto.CompactTextString(m) } func (*QueryTokenClassTypeNameResponse) ProtoMessage() {} func (*QueryTokenClassTypeNameResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{19} + return fileDescriptor_a09de688aac2ee73, []int{13} } func (m *QueryTokenClassTypeNameResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1039,7 +757,7 @@ func (m *QueryTokenTypeRequest) Reset() { *m = QueryTokenTypeRequest{} } func (m *QueryTokenTypeRequest) String() string { return proto.CompactTextString(m) } func (*QueryTokenTypeRequest) ProtoMessage() {} func (*QueryTokenTypeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{20} + return fileDescriptor_a09de688aac2ee73, []int{14} } func (m *QueryTokenTypeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1092,7 +810,7 @@ func (m *QueryTokenTypeResponse) Reset() { *m = QueryTokenTypeResponse{} func (m *QueryTokenTypeResponse) String() string { return proto.CompactTextString(m) } func (*QueryTokenTypeResponse) ProtoMessage() {} func (*QueryTokenTypeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{21} + return fileDescriptor_a09de688aac2ee73, []int{15} } func (m *QueryTokenTypeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1140,7 +858,7 @@ func (m *QueryTokenRequest) Reset() { *m = QueryTokenRequest{} } func (m *QueryTokenRequest) String() string { return proto.CompactTextString(m) } func (*QueryTokenRequest) ProtoMessage() {} func (*QueryTokenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{22} + return fileDescriptor_a09de688aac2ee73, []int{16} } func (m *QueryTokenRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1193,7 +911,7 @@ func (m *QueryTokenResponse) Reset() { *m = QueryTokenResponse{} } func (m *QueryTokenResponse) String() string { return proto.CompactTextString(m) } func (*QueryTokenResponse) ProtoMessage() {} func (*QueryTokenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{23} + return fileDescriptor_a09de688aac2ee73, []int{17} } func (m *QueryTokenResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1243,7 +961,7 @@ func (m *QueryGranteeGrantsRequest) Reset() { *m = QueryGranteeGrantsReq func (m *QueryGranteeGrantsRequest) String() string { return proto.CompactTextString(m) } func (*QueryGranteeGrantsRequest) ProtoMessage() {} func (*QueryGranteeGrantsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{24} + return fileDescriptor_a09de688aac2ee73, []int{18} } func (m *QueryGranteeGrantsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1304,7 +1022,7 @@ func (m *QueryGranteeGrantsResponse) Reset() { *m = QueryGranteeGrantsRe func (m *QueryGranteeGrantsResponse) String() string { return proto.CompactTextString(m) } func (*QueryGranteeGrantsResponse) ProtoMessage() {} func (*QueryGranteeGrantsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{25} + return fileDescriptor_a09de688aac2ee73, []int{19} } func (m *QueryGranteeGrantsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1361,7 +1079,7 @@ func (m *QueryIsOperatorForRequest) Reset() { *m = QueryIsOperatorForReq func (m *QueryIsOperatorForRequest) String() string { return proto.CompactTextString(m) } func (*QueryIsOperatorForRequest) ProtoMessage() {} func (*QueryIsOperatorForRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{26} + return fileDescriptor_a09de688aac2ee73, []int{20} } func (m *QueryIsOperatorForRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1420,7 +1138,7 @@ func (m *QueryIsOperatorForResponse) Reset() { *m = QueryIsOperatorForRe func (m *QueryIsOperatorForResponse) String() string { return proto.CompactTextString(m) } func (*QueryIsOperatorForResponse) ProtoMessage() {} func (*QueryIsOperatorForResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{27} + return fileDescriptor_a09de688aac2ee73, []int{21} } func (m *QueryIsOperatorForResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1470,7 +1188,7 @@ func (m *QueryHoldersByOperatorRequest) Reset() { *m = QueryHoldersByOpe func (m *QueryHoldersByOperatorRequest) String() string { return proto.CompactTextString(m) } func (*QueryHoldersByOperatorRequest) ProtoMessage() {} func (*QueryHoldersByOperatorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{28} + return fileDescriptor_a09de688aac2ee73, []int{22} } func (m *QueryHoldersByOperatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1531,7 +1249,7 @@ func (m *QueryHoldersByOperatorResponse) Reset() { *m = QueryHoldersByOp func (m *QueryHoldersByOperatorResponse) String() string { return proto.CompactTextString(m) } func (*QueryHoldersByOperatorResponse) ProtoMessage() {} func (*QueryHoldersByOperatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a09de688aac2ee73, []int{29} + return fileDescriptor_a09de688aac2ee73, []int{23} } func (m *QueryHoldersByOperatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1579,12 +1297,6 @@ func init() { 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") @@ -1610,93 +1322,87 @@ func init() { 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, + // 1272 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x96, 0xcd, 0x6f, 0x1b, 0x55, + 0x17, 0xc6, 0x33, 0x69, 0x13, 0x3b, 0x27, 0xaa, 0x5e, 0xe5, 0xbe, 0x29, 0x75, 0x4c, 0xe3, 0x54, + 0x23, 0x68, 0x42, 0xda, 0xcc, 0xc4, 0xe6, 0xa3, 0x42, 0x34, 0xa0, 0xd8, 0xd4, 0xa9, 0x5b, 0x9a, + 0xb4, 0x6e, 0x28, 0x52, 0x01, 0x45, 0x63, 0x7b, 0xea, 0x8c, 0x62, 0xcf, 0x75, 0xe7, 0x8e, 0x23, + 0xdc, 0xc8, 0x1b, 0x24, 0xf6, 0x20, 0x76, 0x48, 0xb0, 0x62, 0x09, 0x12, 0x48, 0x11, 0x62, 0xc5, + 0xba, 0xcb, 0x2a, 0x6c, 0x10, 0x12, 0x15, 0x4a, 0xf8, 0x43, 0xd0, 0xdc, 0x7b, 0xae, 0x3d, 0xfe, + 0x18, 0x7f, 0x14, 0x67, 0x15, 0xcf, 0x9d, 0x73, 0xce, 0xfd, 0xdd, 0xe7, 0x9e, 0x9c, 0x79, 0x60, + 0xbe, 0x94, 0x2b, 0xeb, 0x79, 0x5a, 0x2a, 0x99, 0x79, 0xd7, 0xa2, 0xb6, 0xbe, 0x1f, 0xd7, 0x1f, + 0x57, 0x4d, 0xa7, 0xa6, 0x55, 0x1c, 0xea, 0x52, 0x32, 0x53, 0xca, 0x95, 0xb5, 0xe6, 0x6b, 0x6d, + 0x3f, 0x1e, 0x5d, 0xce, 0x53, 0x56, 0xa6, 0x4c, 0xcf, 0x19, 0xcc, 0x14, 0xb1, 0xfa, 0x7e, 0x3c, + 0x67, 0xba, 0x46, 0x5c, 0xaf, 0x18, 0x45, 0xcb, 0x36, 0x78, 0x20, 0x4f, 0x8f, 0x5e, 0x2c, 0x52, + 0x5a, 0x2c, 0x99, 0xba, 0x51, 0xb1, 0x74, 0xc3, 0xb6, 0xa9, 0xcb, 0x5f, 0x32, 0x7c, 0x3b, 0x27, + 0x2a, 0xed, 0xf0, 0x27, 0x5d, 0x3c, 0xe0, 0x2b, 0xb5, 0x13, 0xcb, 0x47, 0x81, 0xe9, 0x58, 0x9c, + 0x3f, 0xe5, 0xaa, 0x8f, 0x74, 0xc3, 0x46, 0xec, 0xe8, 0x6c, 0x91, 0x16, 0xa9, 0x28, 0xeb, 0xfd, + 0x12, 0xab, 0xea, 0x17, 0x0a, 0xfc, 0xff, 0x9e, 0x07, 0x9c, 0x34, 0x4a, 0x86, 0x9d, 0x37, 0xb3, + 0xe6, 0xe3, 0xaa, 0xc9, 0x5c, 0xb2, 0x00, 0xd3, 0x79, 0x6a, 0xbb, 0x8e, 0x91, 0x77, 0x77, 0xac, + 0x42, 0x44, 0xb9, 0xa4, 0x2c, 0x4d, 0x65, 0x41, 0x2e, 0x65, 0x0a, 0x24, 0x01, 0x21, 0xa3, 0x50, + 0x70, 0x4c, 0xc6, 0x22, 0xe3, 0xde, 0xcb, 0x64, 0xe4, 0xe8, 0x70, 0x65, 0x16, 0x81, 0xd7, 0xc5, + 0x9b, 0xfb, 0xae, 0x63, 0xd9, 0xc5, 0xac, 0x0c, 0x24, 0x73, 0x10, 0x76, 0xe9, 0x9e, 0x69, 0x7b, + 0x15, 0xcf, 0xf0, 0x8a, 0x21, 0xfe, 0x9c, 0x29, 0xa8, 0x5b, 0x30, 0xdb, 0x8a, 0xc1, 0x2a, 0xd4, + 0x66, 0x26, 0xb9, 0x06, 0xa1, 0x9c, 0x58, 0xe2, 0x0c, 0xd3, 0x89, 0x0b, 0x5a, 0x87, 0xfc, 0x5a, + 0x8a, 0x5a, 0x76, 0xf2, 0xec, 0xd3, 0xe7, 0x0b, 0x63, 0x59, 0x19, 0xad, 0xfe, 0xa2, 0xc0, 0x05, + 0x5e, 0x71, 0xbd, 0x54, 0xc2, 0xa2, 0xec, 0x54, 0x0f, 0x97, 0x06, 0x68, 0xde, 0x35, 0x3f, 0xde, + 0x74, 0xe2, 0xb2, 0x86, 0x39, 0x5e, 0x63, 0x68, 0xa2, 0x89, 0xb0, 0x31, 0xb4, 0xbb, 0x46, 0x51, + 0xaa, 0x9d, 0xf5, 0x65, 0xaa, 0xdf, 0x29, 0x10, 0xe9, 0x04, 0x47, 0x39, 0xde, 0x86, 0x30, 0x1e, + 0x90, 0x45, 0x94, 0x4b, 0x67, 0xfa, 0xeb, 0xd1, 0x08, 0x27, 0x1b, 0x2d, 0x7c, 0xe3, 0x9c, 0x6f, + 0xb1, 0x2f, 0x9f, 0xd8, 0xb7, 0x05, 0xf0, 0x23, 0x38, 0xcf, 0xf9, 0x36, 0xd3, 0xdb, 0xf7, 0xab, + 0x95, 0x4a, 0xa9, 0x36, 0xb0, 0xac, 0xf3, 0x00, 0xe2, 0xfe, 0xdd, 0x5a, 0xc5, 0x14, 0xca, 0x66, + 0xa7, 0xf8, 0xca, 0x76, 0xad, 0x62, 0xaa, 0x9f, 0xc2, 0x4b, 0xed, 0x85, 0xf1, 0xd8, 0x29, 0x98, + 0x64, 0x7c, 0x45, 0x14, 0x4d, 0x5e, 0xf1, 0xce, 0xf6, 0xe7, 0xf3, 0x85, 0xf3, 0x02, 0x9f, 0x15, + 0xf6, 0x34, 0x8b, 0xea, 0x65, 0xc3, 0xdd, 0xd5, 0x32, 0xb6, 0x7b, 0x74, 0xb8, 0x02, 0x78, 0xae, + 0x8c, 0xed, 0x66, 0x31, 0xd5, 0xcf, 0x7d, 0xc7, 0xb2, 0x5d, 0xb3, 0x70, 0x0a, 0xdc, 0xb2, 0x70, + 0x93, 0xbb, 0xcc, 0x57, 0x5e, 0x88, 0x5b, 0xa4, 0xaa, 0x0f, 0xf0, 0x5f, 0x63, 0x33, 0xbd, 0x9d, + 0xac, 0x3a, 0xb6, 0x3b, 0x2a, 0xec, 0x87, 0x4d, 0x3d, 0xb0, 0x2e, 0x52, 0xaf, 0xc3, 0x44, 0xce, + 0x5b, 0x78, 0x11, 0x68, 0x91, 0xa9, 0x5e, 0x43, 0xe6, 0x14, 0xd2, 0x0c, 0xca, 0xac, 0x3e, 0x40, + 0xa8, 0x66, 0x22, 0x42, 0xad, 0x41, 0x58, 0x86, 0xe1, 0x24, 0x78, 0xb9, 0x6b, 0xe7, 0x8b, 0x10, + 0xd9, 0xfd, 0x32, 0x45, 0xfd, 0x04, 0x62, 0xbc, 0xee, 0xb6, 0x77, 0xfc, 0x54, 0xc9, 0x60, 0xcc, + 0xd3, 0x60, 0xd3, 0x28, 0x0f, 0x3e, 0xf1, 0xe6, 0x20, 0x9c, 0xf7, 0x12, 0xbd, 0xb7, 0x42, 0xcc, + 0x10, 0x7f, 0xce, 0x14, 0xd4, 0x37, 0x61, 0x21, 0xb0, 0x3a, 0xf2, 0x13, 0x38, 0x6b, 0x1b, 0x65, + 0x13, 0xeb, 0xf2, 0xdf, 0x8d, 0x8e, 0xdc, 0x96, 0x77, 0x32, 0xaa, 0xab, 0xfd, 0x18, 0x3b, 0xd2, + 0x57, 0xb8, 0x71, 0xb7, 0xfe, 0x44, 0x21, 0xe4, 0xc5, 0x2e, 0x42, 0x36, 0x32, 0x51, 0x49, 0x5f, + 0xf1, 0x2d, 0x98, 0x69, 0x16, 0x1f, 0x46, 0xbd, 0xc6, 0xec, 0x1f, 0x6f, 0x9d, 0xfd, 0x69, 0x20, + 0xfe, 0x82, 0x48, 0xba, 0x0a, 0x13, 0x3c, 0x00, 0x21, 0x67, 0x35, 0xf1, 0x69, 0xd3, 0xe4, 0xa7, + 0x4d, 0x5b, 0xb7, 0x6b, 0x08, 0x27, 0x02, 0xd5, 0x5f, 0x15, 0x98, 0xe3, 0x85, 0x36, 0x1c, 0xc3, + 0x76, 0x4d, 0x93, 0xff, 0x19, 0x6a, 0xe8, 0x17, 0x45, 0x62, 0xff, 0xa1, 0x8f, 0x81, 0x23, 0x1b, + 0xfa, 0xdf, 0x2a, 0x10, 0xed, 0x86, 0x8e, 0x5a, 0xbc, 0x05, 0x93, 0x7c, 0x47, 0x39, 0xf4, 0x23, + 0x5d, 0x6e, 0x8c, 0xa7, 0xa0, 0x20, 0x18, 0x3d, 0xba, 0x99, 0xff, 0xbd, 0x94, 0x36, 0xc3, 0xb6, + 0x2a, 0xa6, 0x63, 0xb8, 0xd4, 0x49, 0x53, 0x67, 0x60, 0x69, 0xdf, 0x80, 0x30, 0xc5, 0xb4, 0xbe, + 0xda, 0x36, 0x22, 0xc9, 0x2a, 0x4c, 0xee, 0xd2, 0x52, 0xc1, 0x74, 0x84, 0x59, 0xe8, 0x91, 0x83, + 0x71, 0xea, 0x75, 0x54, 0xb1, 0x8d, 0x12, 0x55, 0x8c, 0x01, 0x18, 0x55, 0x77, 0x97, 0x3a, 0xd6, + 0x13, 0x9c, 0xc8, 0xe1, 0xac, 0x6f, 0x45, 0xfd, 0x4d, 0x81, 0x79, 0x9e, 0x7e, 0x93, 0x57, 0x63, + 0xc9, 0x9a, 0xac, 0x72, 0xca, 0x07, 0x1d, 0x61, 0x17, 0xc5, 0x82, 0x0e, 0x80, 0x1a, 0x24, 0x20, + 0x24, 0xb4, 0x12, 0xad, 0xd4, 0xb3, 0xc9, 0x31, 0x70, 0x64, 0x5d, 0x94, 0xf8, 0xeb, 0x7f, 0x30, + 0xc1, 0xf9, 0xc8, 0x0f, 0x0a, 0x84, 0xd0, 0xdc, 0x90, 0xcb, 0x5d, 0x9a, 0xb9, 0x8b, 0x25, 0x8d, + 0x2e, 0xf6, 0x8d, 0x13, 0x5b, 0xaa, 0x77, 0x3f, 0xff, 0xfd, 0x9f, 0xaf, 0xc7, 0x6f, 0x91, 0x9b, + 0x7a, 0x37, 0xc7, 0x2c, 0xee, 0x8a, 0xe9, 0x07, 0xbe, 0x9b, 0xac, 0xeb, 0xd2, 0x26, 0xe9, 0x07, + 0xe8, 0xe7, 0xea, 0xfa, 0x81, 0x9c, 0x57, 0x75, 0xf2, 0xa3, 0x02, 0xd3, 0x3e, 0x3b, 0x46, 0x96, + 0x83, 0x50, 0x3a, 0xcd, 0x66, 0xf4, 0xca, 0x40, 0xb1, 0x88, 0x7e, 0x83, 0xa3, 0xbf, 0x47, 0xd6, + 0xfe, 0x13, 0x3a, 0x39, 0x54, 0x60, 0xaa, 0xe1, 0xa2, 0xc8, 0x52, 0x10, 0x41, 0xbb, 0x83, 0x8b, + 0xbe, 0x36, 0x40, 0x24, 0x92, 0x66, 0x39, 0xe9, 0x07, 0xe4, 0xd6, 0x10, 0xa4, 0xcd, 0x2f, 0x0f, + 0x93, 0xea, 0x7a, 0x0f, 0x75, 0x5d, 0x38, 0x34, 0x89, 0x2d, 0x4c, 0x54, 0x4f, 0xec, 0x16, 0x03, + 0xd7, 0x13, 0xbb, 0xd5, 0x91, 0x8d, 0x16, 0x5b, 0x18, 0x34, 0xf2, 0x93, 0x02, 0x61, 0x69, 0xa2, + 0xc8, 0x62, 0x0f, 0x16, 0xbf, 0x7d, 0x8b, 0x2e, 0xf5, 0x0f, 0x44, 0xe6, 0x7b, 0x9c, 0xf9, 0x36, + 0xc9, 0x8c, 0x82, 0x99, 0xfb, 0x33, 0xf2, 0x95, 0x02, 0x61, 0xe9, 0x95, 0x82, 0x91, 0xdb, 0xdc, + 0x5b, 0x30, 0x72, 0xbb, 0x5b, 0x53, 0x13, 0x1c, 0xf9, 0x2a, 0x59, 0x1e, 0x1c, 0x99, 0x1c, 0x29, + 0x40, 0x3a, 0x0d, 0x14, 0x89, 0x07, 0x6d, 0x1a, 0x68, 0xe5, 0xa2, 0x89, 0x61, 0x52, 0x90, 0xf8, + 0x43, 0x4e, 0xbc, 0x45, 0xee, 0x0c, 0x2d, 0x32, 0x37, 0x81, 0x9e, 0xcc, 0xd2, 0x1d, 0xd6, 0x75, + 0x4f, 0xea, 0x1d, 0xcf, 0xe2, 0x79, 0x93, 0x63, 0xaa, 0xe1, 0xa5, 0x82, 0x5b, 0xba, 0xdd, 0x01, + 0x06, 0xb7, 0x74, 0x87, 0xa5, 0x53, 0x6f, 0x73, 0xf2, 0x1b, 0x24, 0x35, 0x82, 0xf6, 0x20, 0xdf, + 0x28, 0x30, 0xc1, 0xb7, 0x20, 0xaf, 0xf4, 0x24, 0x90, 0x9c, 0xaf, 0xf6, 0x89, 0x42, 0xc6, 0xf7, + 0x39, 0xe3, 0xbb, 0xe4, 0xfa, 0xb0, 0x8c, 0xcc, 0x3f, 0x86, 0x7f, 0x56, 0xe0, 0x5c, 0x8b, 0x41, + 0x22, 0x57, 0x83, 0xb6, 0xef, 0x66, 0x01, 0xa3, 0x2b, 0x03, 0x46, 0x23, 0x74, 0x8a, 0x43, 0xaf, + 0x91, 0x77, 0x86, 0x80, 0x16, 0xc6, 0x4b, 0x3f, 0x40, 0x83, 0x58, 0x27, 0x36, 0x9c, 0x6b, 0x71, + 0x23, 0xc1, 0xc8, 0xdd, 0xac, 0x55, 0x30, 0x72, 0x57, 0x8b, 0xa3, 0x8e, 0x91, 0x27, 0x30, 0xd3, + 0xf1, 0xf5, 0x27, 0xab, 0x41, 0x55, 0x82, 0x9c, 0x4e, 0x34, 0x3e, 0x44, 0x86, 0xdc, 0x3b, 0xb9, + 0xf1, 0xf4, 0x38, 0xa6, 0x3c, 0x3b, 0x8e, 0x29, 0x7f, 0x1f, 0xc7, 0x94, 0x2f, 0x4f, 0x62, 0x63, + 0xcf, 0x4e, 0x62, 0x63, 0x7f, 0x9c, 0xc4, 0xc6, 0x1e, 0xae, 0x14, 0x2d, 0x77, 0xb7, 0x9a, 0xd3, + 0xf2, 0xb4, 0xac, 0xa7, 0x2d, 0x9b, 0xe5, 0x77, 0x2d, 0x43, 0x7f, 0x84, 0x3f, 0x56, 0x58, 0x61, + 0x4f, 0xff, 0xcc, 0x27, 0x70, 0x6e, 0x92, 0x9b, 0xfc, 0xd7, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, + 0xfd, 0xcc, 0x9b, 0x7d, 0x8a, 0x13, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1715,12 +1421,6 @@ type QueryClient interface { 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. @@ -1771,33 +1471,6 @@ func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesReque return out, nil } -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 out, nil -} - -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 (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 - } - return out, nil -} - 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...) @@ -1894,12 +1567,6 @@ type QueryServer interface { 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. @@ -1934,15 +1601,6 @@ func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceR 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") } @@ -2014,110 +1672,56 @@ func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(i 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) +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 } if interceptor == nil { - return srv.(QueryServer).FTSupply(ctx, in) + return srv.(QueryServer).NFTSupply(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/lbm.collection.v1.Query/FTSupply", + FullMethod: "/lbm.collection.v1.Query/NFTSupply", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).FTSupply(ctx, req.(*QueryFTSupplyRequest)) + return srv.(QueryServer).NFTSupply(ctx, req.(*QueryNFTSupplyRequest)) } 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) +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 } if interceptor == nil { - return srv.(QueryServer).FTMinted(ctx, in) + return srv.(QueryServer).NFTMinted(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/lbm.collection.v1.Query/FTMinted", + FullMethod: "/lbm.collection.v1.Query/NFTMinted", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).FTMinted(ctx, req.(*QueryFTMintedRequest)) + return srv.(QueryServer).NFTMinted(ctx, req.(*QueryNFTMintedRequest)) } 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_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).FTBurnt(ctx, in) + return srv.(QueryServer).NFTBurnt(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/lbm.collection.v1.Query/FTBurnt", + FullMethod: "/lbm.collection.v1.Query/NFTBurnt", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).FTBurnt(ctx, req.(*QueryFTBurntRequest)) - } - 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) - if err := dec(in); err != nil { - return nil, err - } - 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 _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 - } - 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 _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 srv.(QueryServer).NFTBurnt(ctx, req.(*QueryNFTBurntRequest)) } return interceptor(ctx, in, info, handler) } @@ -2260,18 +1864,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "AllBalances", Handler: _Query_AllBalances_Handler, }, - { - MethodName: "FTSupply", - Handler: _Query_FTSupply_Handler, - }, - { - MethodName: "FTMinted", - Handler: _Query_FTMinted_Handler, - }, - { - MethodName: "FTBurnt", - Handler: _Query_FTBurnt_Handler, - }, { MethodName: "NFTSupply", Handler: _Query_NFTSupply_Handler, @@ -2492,216 +2084,6 @@ func (m *QueryAllBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryFTSupplyRequest) 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 *QueryFTSupplyRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryFTSupplyRequest) 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 - } - return len(dAtA) - i, nil -} - -func (m *QueryFTSupplyResponse) 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 *QueryFTSupplyResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryFTSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.Supply.Size() - i -= size - if _, err := m.Supply.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryFTMintedRequest) 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 *QueryFTMintedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryFTMintedRequest) 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 - } - return len(dAtA) - i, nil -} - -func (m *QueryFTMintedResponse) 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 *QueryFTMintedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryFTMintedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.Minted.Size() - i -= size - if _, err := m.Minted.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryFTBurntRequest) 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 *QueryFTBurntRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryFTBurntRequest) 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 - } - return len(dAtA) - i, nil -} - -func (m *QueryFTBurntResponse) 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 *QueryFTBurntResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryFTBurntResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.Burnt.Size() - i -= size - if _, err := m.Burnt.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - func (m *QueryNFTSupplyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3533,7 +2915,7 @@ func (m *QueryAllBalancesResponse) Size() (n int) { return n } -func (m *QueryFTSupplyRequest) Size() (n int) { +func (m *QueryNFTSupplyRequest) Size() (n int) { if m == nil { return 0 } @@ -3543,14 +2925,14 @@ func (m *QueryFTSupplyRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.TokenId) + l = len(m.TokenType) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } -func (m *QueryFTSupplyResponse) Size() (n int) { +func (m *QueryNFTSupplyResponse) Size() (n int) { if m == nil { return 0 } @@ -3561,91 +2943,7 @@ func (m *QueryFTSupplyResponse) Size() (n int) { return n } -func (m *QueryFTMintedRequest) 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)) - } - return n -} - -func (m *QueryFTMintedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Minted.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryFTBurntRequest) 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)) - } - return n -} - -func (m *QueryFTBurntResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Burnt.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryNFTSupplyRequest) 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.TokenType) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryNFTSupplyResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Supply.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryNFTMintedRequest) Size() (n int) { +func (m *QueryNFTMintedRequest) Size() (n int) { if m == nil { return 0 } @@ -4429,600 +3727,6 @@ func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error { } 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 - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryFTBurntRequest) 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: QueryFTBurntRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryFTBurntRequest: 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 *QueryFTBurntResponse) 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: QueryFTBurntResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 Burnt", 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.Burnt.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 *QueryNFTSupplyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/collection/query.pb.gw.go b/x/collection/query.pb.gw.go index b3168e4f21..d58e57f062 100644 --- a/x/collection/query.pb.gw.go +++ b/x/collection/query.pb.gw.go @@ -225,234 +225,6 @@ func local_request_Query_AllBalances_0(ctx context.Context, marshaler runtime.Ma } -func request_Query_FTSupply_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryFTSupplyRequest - 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.FTSupply(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_FTSupply_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryFTSupplyRequest - 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.FTSupply(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_FTMinted_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryFTMintedRequest - 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.FTMinted(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_FTMinted_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryFTMintedRequest - 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.FTMinted(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_FTBurnt_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryFTBurntRequest - 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.FTBurnt(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_FTBurnt_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryFTBurntRequest - 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.FTBurnt(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_NFTSupply_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryNFTSupplyRequest var metadata runtime.ServerMetadata @@ -1109,75 +881,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_FTSupply_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_FTSupply_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_FTSupply_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_FTMinted_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_FTMinted_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_FTMinted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_FTBurnt_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_FTBurnt_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_FTBurnt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_NFTSupply_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1443,66 +1146,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_FTSupply_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_FTSupply_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_FTSupply_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_FTMinted_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_FTMinted_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_FTMinted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_FTBurnt_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_FTBurnt_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_FTBurnt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_NFTSupply_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1671,12 +1314,6 @@ var ( pattern_Query_AllBalances_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", "balances", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_FTSupply_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", "fts", "token_id", "supply"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_FTMinted_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", "fts", "token_id", "minted"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_FTBurnt_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", "fts", "token_id", "burnt"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_NFTSupply_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", "token_types", "token_type", "supply"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_NFTMinted_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", "token_types", "token_type", "minted"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1699,12 +1336,6 @@ var ( forward_Query_AllBalances_0 = runtime.ForwardResponseMessage - forward_Query_FTSupply_0 = runtime.ForwardResponseMessage - - forward_Query_FTMinted_0 = runtime.ForwardResponseMessage - - forward_Query_FTBurnt_0 = runtime.ForwardResponseMessage - forward_Query_NFTSupply_0 = runtime.ForwardResponseMessage forward_Query_NFTMinted_0 = runtime.ForwardResponseMessage diff --git a/x/collection/tx.pb.go b/x/collection/tx.pb.go index 5f4a0774f6..7ada52d7b6 100644 --- a/x/collection/tx.pb.go +++ b/x/collection/tx.pb.go @@ -5,9 +5,7 @@ package collection import ( context "context" - cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" @@ -32,237 +30,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// MsgSendFT is the Msg/SendFT request type. -type MsgSendFT 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 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"` -} - -func (m *MsgSendFT) Reset() { *m = MsgSendFT{} } -func (m *MsgSendFT) String() string { return proto.CompactTextString(m) } -func (*MsgSendFT) ProtoMessage() {} -func (*MsgSendFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{0} -} -func (m *MsgSendFT) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgSendFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgSendFT.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 *MsgSendFT) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSendFT.Merge(m, src) -} -func (m *MsgSendFT) XXX_Size() int { - return m.Size() -} -func (m *MsgSendFT) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSendFT.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSendFT proto.InternalMessageInfo - -func (m *MsgSendFT) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *MsgSendFT) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgSendFT) GetTo() string { - if m != nil { - return m.To - } - return "" -} - -func (m *MsgSendFT) GetAmount() []Coin { - if m != nil { - return m.Amount - } - return nil -} - -// MsgSendFTResponse is the Msg/SendFT response type. -type MsgSendFTResponse struct { -} - -func (m *MsgSendFTResponse) Reset() { *m = MsgSendFTResponse{} } -func (m *MsgSendFTResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSendFTResponse) ProtoMessage() {} -func (*MsgSendFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{1} -} -func (m *MsgSendFTResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgSendFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgSendFTResponse.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 *MsgSendFTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSendFTResponse.Merge(m, src) -} -func (m *MsgSendFTResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgSendFTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSendFTResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSendFTResponse proto.InternalMessageInfo - -// MsgOperatorSendFT is the Msg/OperatorSendFT request type. -type MsgOperatorSendFT 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 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"` -} - -func (m *MsgOperatorSendFT) Reset() { *m = MsgOperatorSendFT{} } -func (m *MsgOperatorSendFT) String() string { return proto.CompactTextString(m) } -func (*MsgOperatorSendFT) ProtoMessage() {} -func (*MsgOperatorSendFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{2} -} -func (m *MsgOperatorSendFT) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgOperatorSendFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgOperatorSendFT.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 *MsgOperatorSendFT) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgOperatorSendFT.Merge(m, src) -} -func (m *MsgOperatorSendFT) XXX_Size() int { - return m.Size() -} -func (m *MsgOperatorSendFT) XXX_DiscardUnknown() { - xxx_messageInfo_MsgOperatorSendFT.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgOperatorSendFT proto.InternalMessageInfo - -func (m *MsgOperatorSendFT) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *MsgOperatorSendFT) GetOperator() string { - if m != nil { - return m.Operator - } - return "" -} - -func (m *MsgOperatorSendFT) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgOperatorSendFT) GetTo() string { - if m != nil { - return m.To - } - return "" -} - -func (m *MsgOperatorSendFT) GetAmount() []Coin { - if m != nil { - return m.Amount - } - return nil -} - -// MsgOperatorSendFTResponse is the Msg/OperatorSendFT response type. -type MsgOperatorSendFTResponse struct { -} - -func (m *MsgOperatorSendFTResponse) Reset() { *m = MsgOperatorSendFTResponse{} } -func (m *MsgOperatorSendFTResponse) String() string { return proto.CompactTextString(m) } -func (*MsgOperatorSendFTResponse) ProtoMessage() {} -func (*MsgOperatorSendFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{3} -} -func (m *MsgOperatorSendFTResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgOperatorSendFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgOperatorSendFTResponse.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 *MsgOperatorSendFTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgOperatorSendFTResponse.Merge(m, src) -} -func (m *MsgOperatorSendFTResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgOperatorSendFTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgOperatorSendFTResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgOperatorSendFTResponse proto.InternalMessageInfo - // MsgSendNFT is the Msg/SendNFT request type. type MsgSendNFT struct { // contract id associated with the contract. @@ -279,7 +46,7 @@ func (m *MsgSendNFT) Reset() { *m = MsgSendNFT{} } func (m *MsgSendNFT) String() string { return proto.CompactTextString(m) } func (*MsgSendNFT) ProtoMessage() {} func (*MsgSendNFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{4} + return fileDescriptor_eaee77977a3cfe12, []int{0} } func (m *MsgSendNFT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -344,7 +111,7 @@ func (m *MsgSendNFTResponse) Reset() { *m = MsgSendNFTResponse{} } func (m *MsgSendNFTResponse) String() string { return proto.CompactTextString(m) } func (*MsgSendNFTResponse) ProtoMessage() {} func (*MsgSendNFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{5} + return fileDescriptor_eaee77977a3cfe12, []int{1} } func (m *MsgSendNFTResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -391,7 +158,7 @@ func (m *MsgOperatorSendNFT) Reset() { *m = MsgOperatorSendNFT{} } func (m *MsgOperatorSendNFT) String() string { return proto.CompactTextString(m) } func (*MsgOperatorSendNFT) ProtoMessage() {} func (*MsgOperatorSendNFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{6} + return fileDescriptor_eaee77977a3cfe12, []int{2} } func (m *MsgOperatorSendNFT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -463,7 +230,7 @@ func (m *MsgOperatorSendNFTResponse) Reset() { *m = MsgOperatorSendNFTRe func (m *MsgOperatorSendNFTResponse) String() string { return proto.CompactTextString(m) } func (*MsgOperatorSendNFTResponse) ProtoMessage() {} func (*MsgOperatorSendNFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{7} + return fileDescriptor_eaee77977a3cfe12, []int{3} } func (m *MsgOperatorSendNFTResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -506,7 +273,7 @@ func (m *MsgAuthorizeOperator) Reset() { *m = MsgAuthorizeOperator{} } func (m *MsgAuthorizeOperator) String() string { return proto.CompactTextString(m) } func (*MsgAuthorizeOperator) ProtoMessage() {} func (*MsgAuthorizeOperator) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{8} + return fileDescriptor_eaee77977a3cfe12, []int{4} } func (m *MsgAuthorizeOperator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -564,7 +331,7 @@ func (m *MsgAuthorizeOperatorResponse) Reset() { *m = MsgAuthorizeOperat func (m *MsgAuthorizeOperatorResponse) String() string { return proto.CompactTextString(m) } func (*MsgAuthorizeOperatorResponse) ProtoMessage() {} func (*MsgAuthorizeOperatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{9} + return fileDescriptor_eaee77977a3cfe12, []int{5} } func (m *MsgAuthorizeOperatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -607,7 +374,7 @@ func (m *MsgRevokeOperator) Reset() { *m = MsgRevokeOperator{} } func (m *MsgRevokeOperator) String() string { return proto.CompactTextString(m) } func (*MsgRevokeOperator) ProtoMessage() {} func (*MsgRevokeOperator) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{10} + return fileDescriptor_eaee77977a3cfe12, []int{6} } func (m *MsgRevokeOperator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -665,7 +432,7 @@ func (m *MsgRevokeOperatorResponse) Reset() { *m = MsgRevokeOperatorResp func (m *MsgRevokeOperatorResponse) String() string { return proto.CompactTextString(m) } func (*MsgRevokeOperatorResponse) ProtoMessage() {} func (*MsgRevokeOperatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{11} + return fileDescriptor_eaee77977a3cfe12, []int{7} } func (m *MsgRevokeOperatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -710,7 +477,7 @@ func (m *MsgCreateContract) Reset() { *m = MsgCreateContract{} } func (m *MsgCreateContract) String() string { return proto.CompactTextString(m) } func (*MsgCreateContract) ProtoMessage() {} func (*MsgCreateContract) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{12} + return fileDescriptor_eaee77977a3cfe12, []int{8} } func (m *MsgCreateContract) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -777,7 +544,7 @@ func (m *MsgCreateContractResponse) Reset() { *m = MsgCreateContractResp func (m *MsgCreateContractResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateContractResponse) ProtoMessage() {} func (*MsgCreateContractResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{13} + return fileDescriptor_eaee77977a3cfe12, []int{9} } func (m *MsgCreateContractResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -813,40 +580,30 @@ func (m *MsgCreateContractResponse) GetContractId() string { return "" } -// MsgIssueFT is the Msg/IssueFT request type. -type MsgIssueFT struct { +// MsgIssueNFT is the Msg/IssueNFT request type. +type MsgIssueNFT struct { // 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 cosmossdk_io_math.Int `protobuf:"bytes,8,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` -} - -func (m *MsgIssueFT) Reset() { *m = MsgIssueFT{} } -func (m *MsgIssueFT) String() string { return proto.CompactTextString(m) } -func (*MsgIssueFT) ProtoMessage() {} -func (*MsgIssueFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{14} + Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *MsgIssueNFT) Reset() { *m = MsgIssueNFT{} } +func (m *MsgIssueNFT) String() string { return proto.CompactTextString(m) } +func (*MsgIssueNFT) ProtoMessage() {} +func (*MsgIssueNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{10} } -func (m *MsgIssueFT) XXX_Unmarshal(b []byte) error { +func (m *MsgIssueNFT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgIssueFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgIssueNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgIssueFT.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgIssueNFT.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -856,85 +613,65 @@ func (m *MsgIssueFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *MsgIssueFT) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgIssueFT.Merge(m, src) +func (m *MsgIssueNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgIssueNFT.Merge(m, src) } -func (m *MsgIssueFT) XXX_Size() int { +func (m *MsgIssueNFT) XXX_Size() int { return m.Size() } -func (m *MsgIssueFT) XXX_DiscardUnknown() { - xxx_messageInfo_MsgIssueFT.DiscardUnknown(m) +func (m *MsgIssueNFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgIssueNFT.DiscardUnknown(m) } -var xxx_messageInfo_MsgIssueFT proto.InternalMessageInfo +var xxx_messageInfo_MsgIssueNFT proto.InternalMessageInfo -func (m *MsgIssueFT) GetContractId() string { +func (m *MsgIssueNFT) GetContractId() string { if m != nil { return m.ContractId } return "" } -func (m *MsgIssueFT) GetName() string { +func (m *MsgIssueNFT) GetName() string { if m != nil { return m.Name } return "" } -func (m *MsgIssueFT) GetMeta() string { +func (m *MsgIssueNFT) GetMeta() string { if m != nil { return m.Meta } return "" } -func (m *MsgIssueFT) GetDecimals() int32 { - if m != nil { - return m.Decimals - } - return 0 -} - -func (m *MsgIssueFT) GetMintable() bool { - if m != nil { - return m.Mintable - } - return false -} - -func (m *MsgIssueFT) GetOwner() string { +func (m *MsgIssueNFT) GetOwner() string { if m != nil { return m.Owner } return "" } -func (m *MsgIssueFT) GetTo() string { - if m != nil { - return m.To - } - return "" -} - -// MsgIssueFTResponse is the Msg/IssueFT response type. -type MsgIssueFTResponse struct { - // id of the token. - TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +// MsgIssueNFTResponse is the Msg/IssueNFT response type. +type MsgIssueNFTResponse struct { + // 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 (m *MsgIssueFTResponse) Reset() { *m = MsgIssueFTResponse{} } -func (m *MsgIssueFTResponse) String() string { return proto.CompactTextString(m) } -func (*MsgIssueFTResponse) ProtoMessage() {} -func (*MsgIssueFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{15} +func (m *MsgIssueNFTResponse) Reset() { *m = MsgIssueNFTResponse{} } +func (m *MsgIssueNFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgIssueNFTResponse) ProtoMessage() {} +func (*MsgIssueNFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{11} } -func (m *MsgIssueFTResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgIssueNFTResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgIssueFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgIssueNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgIssueFTResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgIssueNFTResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -944,273 +681,42 @@ func (m *MsgIssueFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *MsgIssueFTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgIssueFTResponse.Merge(m, src) +func (m *MsgIssueNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgIssueNFTResponse.Merge(m, src) } -func (m *MsgIssueFTResponse) XXX_Size() int { +func (m *MsgIssueNFTResponse) XXX_Size() int { return m.Size() } -func (m *MsgIssueFTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgIssueFTResponse.DiscardUnknown(m) +func (m *MsgIssueNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgIssueNFTResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgIssueFTResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgIssueNFTResponse proto.InternalMessageInfo -func (m *MsgIssueFTResponse) GetTokenId() string { +func (m *MsgIssueNFTResponse) GetTokenType() string { if m != nil { - return m.TokenId + return m.TokenType } return "" } -// MsgIssueNFT is the Msg/IssueNFT request type. -type MsgIssueNFT struct { +// MsgMintNFT is the Msg/MintNFT request type. +type MsgMintNFT struct { // 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"` -} - -func (m *MsgIssueNFT) Reset() { *m = MsgIssueNFT{} } -func (m *MsgIssueNFT) String() string { return proto.CompactTextString(m) } -func (*MsgIssueNFT) ProtoMessage() {} -func (*MsgIssueNFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{16} -} -func (m *MsgIssueNFT) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgIssueNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgIssueNFT.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 *MsgIssueNFT) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgIssueNFT.Merge(m, src) -} -func (m *MsgIssueNFT) XXX_Size() int { - return m.Size() -} -func (m *MsgIssueNFT) XXX_DiscardUnknown() { - xxx_messageInfo_MsgIssueNFT.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgIssueNFT proto.InternalMessageInfo - -func (m *MsgIssueNFT) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *MsgIssueNFT) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *MsgIssueNFT) GetMeta() string { - if m != nil { - return m.Meta - } - return "" -} - -func (m *MsgIssueNFT) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - -// MsgIssueNFTResponse is the Msg/IssueNFT response type. -type MsgIssueNFTResponse struct { - // 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 (m *MsgIssueNFTResponse) Reset() { *m = MsgIssueNFTResponse{} } -func (m *MsgIssueNFTResponse) String() string { return proto.CompactTextString(m) } -func (*MsgIssueNFTResponse) ProtoMessage() {} -func (*MsgIssueNFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{17} -} -func (m *MsgIssueNFTResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgIssueNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgIssueNFTResponse.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 *MsgIssueNFTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgIssueNFTResponse.Merge(m, src) -} -func (m *MsgIssueNFTResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgIssueNFTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgIssueNFTResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgIssueNFTResponse proto.InternalMessageInfo - -func (m *MsgIssueNFTResponse) GetTokenType() string { - if m != nil { - return m.TokenType - } - return "" -} - -// MsgMintFT is the Msg/MintFT request type. -type MsgMintFT 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 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 Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=Coins" json:"amount"` -} - -func (m *MsgMintFT) Reset() { *m = MsgMintFT{} } -func (m *MsgMintFT) String() string { return proto.CompactTextString(m) } -func (*MsgMintFT) ProtoMessage() {} -func (*MsgMintFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{18} -} -func (m *MsgMintFT) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgMintFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgMintFT.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 *MsgMintFT) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgMintFT.Merge(m, src) -} -func (m *MsgMintFT) XXX_Size() int { - return m.Size() -} -func (m *MsgMintFT) XXX_DiscardUnknown() { - xxx_messageInfo_MsgMintFT.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgMintFT proto.InternalMessageInfo - -func (m *MsgMintFT) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *MsgMintFT) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgMintFT) GetTo() string { - if m != nil { - return m.To - } - return "" -} - -func (m *MsgMintFT) GetAmount() Coins { - if m != nil { - return m.Amount - } - return nil -} - -// MsgMintFTResponse is the Msg/MintFT response type. -type MsgMintFTResponse struct { -} - -func (m *MsgMintFTResponse) Reset() { *m = MsgMintFTResponse{} } -func (m *MsgMintFTResponse) String() string { return proto.CompactTextString(m) } -func (*MsgMintFTResponse) ProtoMessage() {} -func (*MsgMintFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{19} -} -func (m *MsgMintFTResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgMintFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgMintFTResponse.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 *MsgMintFTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgMintFTResponse.Merge(m, src) -} -func (m *MsgMintFTResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgMintFTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgMintFTResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgMintFTResponse proto.InternalMessageInfo - -// MsgMintNFT is the Msg/MintNFT request type. -type MsgMintNFT 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 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"` + // 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"` } func (m *MsgMintNFT) Reset() { *m = MsgMintNFT{} } func (m *MsgMintNFT) String() string { return proto.CompactTextString(m) } func (*MsgMintNFT) ProtoMessage() {} func (*MsgMintNFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{20} + return fileDescriptor_eaee77977a3cfe12, []int{12} } func (m *MsgMintNFT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1277,7 +783,7 @@ func (m *MsgMintNFTResponse) Reset() { *m = MsgMintNFTResponse{} } func (m *MsgMintNFTResponse) String() string { return proto.CompactTextString(m) } func (*MsgMintNFTResponse) ProtoMessage() {} func (*MsgMintNFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{21} + return fileDescriptor_eaee77977a3cfe12, []int{13} } func (m *MsgMintNFTResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1331,7 +837,7 @@ func (m *MintNFTParam) Reset() { *m = MintNFTParam{} } func (m *MintNFTParam) String() string { return proto.CompactTextString(m) } func (*MintNFTParam) ProtoMessage() {} func (*MintNFTParam) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{22} + return fileDescriptor_eaee77977a3cfe12, []int{14} } func (m *MintNFTParam) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1381,30 +887,30 @@ func (m *MintNFTParam) GetMeta() string { return "" } -// MsgBurnFT is the Msg/BurnFT request type. -type MsgBurnFT struct { +// MsgBurnNFT is the Msg/BurnNFT request type. +type MsgBurnNFT 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 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"` + // 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 (m *MsgBurnFT) Reset() { *m = MsgBurnFT{} } -func (m *MsgBurnFT) String() string { return proto.CompactTextString(m) } -func (*MsgBurnFT) ProtoMessage() {} -func (*MsgBurnFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{23} +func (m *MsgBurnNFT) Reset() { *m = MsgBurnNFT{} } +func (m *MsgBurnNFT) String() string { return proto.CompactTextString(m) } +func (*MsgBurnNFT) ProtoMessage() {} +func (*MsgBurnNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{15} } -func (m *MsgBurnFT) XXX_Unmarshal(b []byte) error { +func (m *MsgBurnNFT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBurnFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgBurnNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBurnFT.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgBurnNFT.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1414,55 +920,55 @@ func (m *MsgBurnFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *MsgBurnFT) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBurnFT.Merge(m, src) +func (m *MsgBurnNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnNFT.Merge(m, src) } -func (m *MsgBurnFT) XXX_Size() int { +func (m *MsgBurnNFT) XXX_Size() int { return m.Size() } -func (m *MsgBurnFT) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBurnFT.DiscardUnknown(m) +func (m *MsgBurnNFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnNFT.DiscardUnknown(m) } -var xxx_messageInfo_MsgBurnFT proto.InternalMessageInfo +var xxx_messageInfo_MsgBurnNFT proto.InternalMessageInfo -func (m *MsgBurnFT) GetContractId() string { +func (m *MsgBurnNFT) GetContractId() string { if m != nil { return m.ContractId } return "" } -func (m *MsgBurnFT) GetFrom() string { +func (m *MsgBurnNFT) GetFrom() string { if m != nil { return m.From } return "" } -func (m *MsgBurnFT) GetAmount() []Coin { +func (m *MsgBurnNFT) GetTokenIds() []string { if m != nil { - return m.Amount + return m.TokenIds } return nil } -// MsgBurnFTResponse is the Msg/BurnFT response type. -type MsgBurnFTResponse struct { +// MsgBurnNFTResponse is the Msg/BurnNFT response type. +type MsgBurnNFTResponse struct { } -func (m *MsgBurnFTResponse) Reset() { *m = MsgBurnFTResponse{} } -func (m *MsgBurnFTResponse) String() string { return proto.CompactTextString(m) } -func (*MsgBurnFTResponse) ProtoMessage() {} -func (*MsgBurnFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{24} +func (m *MsgBurnNFTResponse) Reset() { *m = MsgBurnNFTResponse{} } +func (m *MsgBurnNFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBurnNFTResponse) ProtoMessage() {} +func (*MsgBurnNFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{16} } -func (m *MsgBurnFTResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgBurnNFTResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBurnFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgBurnNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBurnFTResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgBurnNFTResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1472,20 +978,20 @@ func (m *MsgBurnFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *MsgBurnFTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBurnFTResponse.Merge(m, src) +func (m *MsgBurnNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBurnNFTResponse.Merge(m, src) } -func (m *MsgBurnFTResponse) XXX_Size() int { +func (m *MsgBurnNFTResponse) XXX_Size() int { return m.Size() } -func (m *MsgBurnFTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBurnFTResponse.DiscardUnknown(m) +func (m *MsgBurnNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBurnNFTResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgBurnFTResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgBurnNFTResponse proto.InternalMessageInfo -// MsgOperatorBurnFT is the Msg/OperatorBurnFT request type. -type MsgOperatorBurnFT struct { +// MsgOperatorBurnNFT is the Msg/OperatorBurnNFT request type. +type MsgOperatorBurnNFT 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 triggers the burn. @@ -1494,23 +1000,23 @@ type MsgOperatorBurnFT struct { 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"` + // 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 (m *MsgOperatorBurnFT) Reset() { *m = MsgOperatorBurnFT{} } -func (m *MsgOperatorBurnFT) String() string { return proto.CompactTextString(m) } -func (*MsgOperatorBurnFT) ProtoMessage() {} -func (*MsgOperatorBurnFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{25} +func (m *MsgOperatorBurnNFT) Reset() { *m = MsgOperatorBurnNFT{} } +func (m *MsgOperatorBurnNFT) String() string { return proto.CompactTextString(m) } +func (*MsgOperatorBurnNFT) ProtoMessage() {} +func (*MsgOperatorBurnNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{17} } -func (m *MsgOperatorBurnFT) XXX_Unmarshal(b []byte) error { +func (m *MsgOperatorBurnNFT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgOperatorBurnFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgOperatorBurnNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgOperatorBurnFT.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgOperatorBurnNFT.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1520,256 +1026,40 @@ func (m *MsgOperatorBurnFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *MsgOperatorBurnFT) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgOperatorBurnFT.Merge(m, src) +func (m *MsgOperatorBurnNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorBurnNFT.Merge(m, src) } -func (m *MsgOperatorBurnFT) XXX_Size() int { +func (m *MsgOperatorBurnNFT) XXX_Size() int { return m.Size() } -func (m *MsgOperatorBurnFT) XXX_DiscardUnknown() { - xxx_messageInfo_MsgOperatorBurnFT.DiscardUnknown(m) +func (m *MsgOperatorBurnNFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorBurnNFT.DiscardUnknown(m) } -var xxx_messageInfo_MsgOperatorBurnFT proto.InternalMessageInfo +var xxx_messageInfo_MsgOperatorBurnNFT proto.InternalMessageInfo -func (m *MsgOperatorBurnFT) GetContractId() string { +func (m *MsgOperatorBurnNFT) GetContractId() string { if m != nil { return m.ContractId } return "" } -func (m *MsgOperatorBurnFT) GetOperator() string { +func (m *MsgOperatorBurnNFT) GetOperator() string { if m != nil { return m.Operator } return "" } -func (m *MsgOperatorBurnFT) GetFrom() string { +func (m *MsgOperatorBurnNFT) GetFrom() string { if m != nil { return m.From } return "" } -func (m *MsgOperatorBurnFT) GetAmount() []Coin { - if m != nil { - return m.Amount - } - return nil -} - -// MsgOperatorBurnFTResponse is the Msg/OperatorBurnFT response type. -type MsgOperatorBurnFTResponse struct { -} - -func (m *MsgOperatorBurnFTResponse) Reset() { *m = MsgOperatorBurnFTResponse{} } -func (m *MsgOperatorBurnFTResponse) String() string { return proto.CompactTextString(m) } -func (*MsgOperatorBurnFTResponse) ProtoMessage() {} -func (*MsgOperatorBurnFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{26} -} -func (m *MsgOperatorBurnFTResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgOperatorBurnFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgOperatorBurnFTResponse.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 *MsgOperatorBurnFTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgOperatorBurnFTResponse.Merge(m, src) -} -func (m *MsgOperatorBurnFTResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgOperatorBurnFTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgOperatorBurnFTResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgOperatorBurnFTResponse proto.InternalMessageInfo - -// MsgBurnNFT is the Msg/BurnNFT request type. -type MsgBurnNFT 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 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 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 (m *MsgBurnNFT) Reset() { *m = MsgBurnNFT{} } -func (m *MsgBurnNFT) String() string { return proto.CompactTextString(m) } -func (*MsgBurnNFT) ProtoMessage() {} -func (*MsgBurnNFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{27} -} -func (m *MsgBurnNFT) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgBurnNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgBurnNFT.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 *MsgBurnNFT) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBurnNFT.Merge(m, src) -} -func (m *MsgBurnNFT) XXX_Size() int { - return m.Size() -} -func (m *MsgBurnNFT) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBurnNFT.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgBurnNFT proto.InternalMessageInfo - -func (m *MsgBurnNFT) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *MsgBurnNFT) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgBurnNFT) GetTokenIds() []string { - if m != nil { - return m.TokenIds - } - return nil -} - -// MsgBurnNFTResponse is the Msg/BurnNFT response type. -type MsgBurnNFTResponse struct { -} - -func (m *MsgBurnNFTResponse) Reset() { *m = MsgBurnNFTResponse{} } -func (m *MsgBurnNFTResponse) String() string { return proto.CompactTextString(m) } -func (*MsgBurnNFTResponse) ProtoMessage() {} -func (*MsgBurnNFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{28} -} -func (m *MsgBurnNFTResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgBurnNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgBurnNFTResponse.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 *MsgBurnNFTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBurnNFTResponse.Merge(m, src) -} -func (m *MsgBurnNFTResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgBurnNFTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBurnNFTResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgBurnNFTResponse proto.InternalMessageInfo - -// MsgOperatorBurnNFT is the Msg/OperatorBurnNFT request type. -type MsgOperatorBurnNFT 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 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 (m *MsgOperatorBurnNFT) Reset() { *m = MsgOperatorBurnNFT{} } -func (m *MsgOperatorBurnNFT) String() string { return proto.CompactTextString(m) } -func (*MsgOperatorBurnNFT) ProtoMessage() {} -func (*MsgOperatorBurnNFT) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{29} -} -func (m *MsgOperatorBurnNFT) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgOperatorBurnNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgOperatorBurnNFT.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 *MsgOperatorBurnNFT) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgOperatorBurnNFT.Merge(m, src) -} -func (m *MsgOperatorBurnNFT) XXX_Size() int { - return m.Size() -} -func (m *MsgOperatorBurnNFT) XXX_DiscardUnknown() { - xxx_messageInfo_MsgOperatorBurnNFT.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgOperatorBurnNFT proto.InternalMessageInfo - -func (m *MsgOperatorBurnNFT) GetContractId() string { - if m != nil { - return m.ContractId - } - return "" -} - -func (m *MsgOperatorBurnNFT) GetOperator() string { - if m != nil { - return m.Operator - } - return "" -} - -func (m *MsgOperatorBurnNFT) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgOperatorBurnNFT) GetTokenIds() []string { +func (m *MsgOperatorBurnNFT) GetTokenIds() []string { if m != nil { return m.TokenIds } @@ -1784,7 +1074,7 @@ func (m *MsgOperatorBurnNFTResponse) Reset() { *m = MsgOperatorBurnNFTRe func (m *MsgOperatorBurnNFTResponse) String() string { return proto.CompactTextString(m) } func (*MsgOperatorBurnNFTResponse) ProtoMessage() {} func (*MsgOperatorBurnNFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{30} + return fileDescriptor_eaee77977a3cfe12, []int{18} } func (m *MsgOperatorBurnNFTResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1837,7 +1127,7 @@ func (m *MsgModify) Reset() { *m = MsgModify{} } func (m *MsgModify) String() string { return proto.CompactTextString(m) } func (*MsgModify) ProtoMessage() {} func (*MsgModify) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{31} + return fileDescriptor_eaee77977a3cfe12, []int{19} } func (m *MsgModify) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1909,7 +1199,7 @@ func (m *MsgModifyResponse) Reset() { *m = MsgModifyResponse{} } func (m *MsgModifyResponse) String() string { return proto.CompactTextString(m) } func (*MsgModifyResponse) ProtoMessage() {} func (*MsgModifyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{32} + return fileDescriptor_eaee77977a3cfe12, []int{20} } func (m *MsgModifyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1954,7 +1244,7 @@ func (m *MsgGrantPermission) Reset() { *m = MsgGrantPermission{} } func (m *MsgGrantPermission) String() string { return proto.CompactTextString(m) } func (*MsgGrantPermission) ProtoMessage() {} func (*MsgGrantPermission) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{33} + return fileDescriptor_eaee77977a3cfe12, []int{21} } func (m *MsgGrantPermission) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2019,7 +1309,7 @@ func (m *MsgGrantPermissionResponse) Reset() { *m = MsgGrantPermissionRe func (m *MsgGrantPermissionResponse) String() string { return proto.CompactTextString(m) } func (*MsgGrantPermissionResponse) ProtoMessage() {} func (*MsgGrantPermissionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{34} + return fileDescriptor_eaee77977a3cfe12, []int{22} } func (m *MsgGrantPermissionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2062,7 +1352,7 @@ func (m *MsgRevokePermission) Reset() { *m = MsgRevokePermission{} } func (m *MsgRevokePermission) String() string { return proto.CompactTextString(m) } func (*MsgRevokePermission) ProtoMessage() {} func (*MsgRevokePermission) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{35} + return fileDescriptor_eaee77977a3cfe12, []int{23} } func (m *MsgRevokePermission) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2120,7 +1410,7 @@ func (m *MsgRevokePermissionResponse) Reset() { *m = MsgRevokePermission func (m *MsgRevokePermissionResponse) String() string { return proto.CompactTextString(m) } func (*MsgRevokePermissionResponse) ProtoMessage() {} func (*MsgRevokePermissionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eaee77977a3cfe12, []int{36} + return fileDescriptor_eaee77977a3cfe12, []int{24} } func (m *MsgRevokePermissionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2150,10 +1440,6 @@ func (m *MsgRevokePermissionResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRevokePermissionResponse 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") @@ -2164,19 +1450,11 @@ func init() { 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") @@ -2192,96 +1470,74 @@ func init() { 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, + // 1068 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xf7, 0x66, 0x9d, 0x3f, 0x7e, 0x46, 0xa5, 0xd9, 0x44, 0x90, 0x6e, 0x9c, 0x4d, 0xb4, 0x4a, + 0xd3, 0x28, 0x34, 0x5e, 0x25, 0x8d, 0x84, 0x64, 0x95, 0x43, 0x53, 0xa9, 0x28, 0x02, 0x93, 0xca, + 0x94, 0x0b, 0x97, 0x6a, 0xed, 0x9d, 0xac, 0x97, 0x78, 0x77, 0xac, 0x9d, 0x71, 0x48, 0x38, 0x55, + 0x70, 0x43, 0x42, 0xea, 0x27, 0x40, 0x1c, 0x38, 0x70, 0x42, 0x11, 0x9f, 0x80, 0x63, 0x8f, 0x3d, + 0x72, 0x42, 0x28, 0x39, 0xe4, 0xc4, 0x77, 0x40, 0xbb, 0x3b, 0x33, 0xde, 0xbf, 0xf6, 0x02, 0xed, + 0xc5, 0xda, 0x79, 0xef, 0xcd, 0xbc, 0xdf, 0x6f, 0xe6, 0xbd, 0xdf, 0x8c, 0x41, 0x1d, 0x74, 0x5d, + 0xa3, 0x87, 0x07, 0x03, 0xd4, 0xa3, 0x0e, 0xf6, 0x8c, 0xb3, 0x3d, 0x83, 0x9e, 0x37, 0x87, 0x3e, + 0xa6, 0x58, 0x59, 0x1c, 0x74, 0xdd, 0xe6, 0xd8, 0xd7, 0x3c, 0xdb, 0x53, 0x97, 0x6d, 0x6c, 0xe3, + 0xd0, 0x6b, 0x04, 0x5f, 0x51, 0xa0, 0xfa, 0x7e, 0x0f, 0x13, 0x17, 0x13, 0xc3, 0x25, 0x76, 0xb0, + 0x80, 0x4b, 0x6c, 0xe6, 0x58, 0x34, 0x5d, 0xc7, 0xc3, 0x46, 0xf8, 0xcb, 0x4c, 0x7a, 0x36, 0x61, + 0x2c, 0x45, 0x18, 0xa3, 0xbf, 0x94, 0x00, 0xda, 0xc4, 0xfe, 0x1c, 0x79, 0xd6, 0x67, 0x4f, 0x9e, + 0x29, 0xeb, 0x50, 0xef, 0x61, 0x8f, 0xfa, 0x66, 0x8f, 0x3e, 0x77, 0xac, 0x15, 0x69, 0x43, 0xda, + 0xae, 0x75, 0x80, 0x9b, 0x8e, 0x2c, 0x45, 0x81, 0xea, 0x89, 0x8f, 0xdd, 0x95, 0x99, 0xd0, 0x13, + 0x7e, 0x2b, 0xb7, 0x60, 0x86, 0xe2, 0x15, 0x39, 0xb4, 0xcc, 0x50, 0xac, 0xac, 0x42, 0x8d, 0xe2, + 0x53, 0xe4, 0x3d, 0x77, 0x2c, 0xb2, 0x52, 0xdd, 0x90, 0xb7, 0x6b, 0x9d, 0x85, 0xd0, 0x70, 0x64, + 0x91, 0xd6, 0xc6, 0xb7, 0x37, 0x97, 0x3b, 0xe1, 0xbc, 0xef, 0x6f, 0x2e, 0x77, 0x94, 0x41, 0xd7, + 0xdd, 0x25, 0xd6, 0xa9, 0x31, 0xc6, 0xa0, 0x2f, 0x83, 0x32, 0x1e, 0x75, 0x10, 0x19, 0x62, 0x8f, + 0x20, 0xfd, 0x77, 0x29, 0x34, 0x1f, 0x0f, 0x91, 0x6f, 0x52, 0xec, 0x97, 0x06, 0xac, 0xc2, 0x02, + 0x66, 0x73, 0x18, 0x68, 0x31, 0x16, 0x64, 0xe4, 0x0c, 0x99, 0x6a, 0x3e, 0x99, 0xd9, 0x14, 0x99, + 0xfb, 0x01, 0x19, 0xb1, 0x5e, 0x40, 0x48, 0x8d, 0x11, 0x4a, 0x61, 0xd5, 0x1b, 0xa0, 0x66, 0xad, + 0x82, 0xe0, 0xcf, 0x12, 0x2c, 0xb7, 0x89, 0xfd, 0x68, 0x44, 0xfb, 0xd8, 0x77, 0xbe, 0x41, 0x3c, + 0x6e, 0x3a, 0xc5, 0xf7, 0x60, 0xae, 0x8f, 0x07, 0x16, 0xe2, 0x04, 0xd9, 0x28, 0x41, 0x5d, 0x4e, + 0x52, 0x6f, 0x7d, 0x18, 0x20, 0x67, 0x81, 0x01, 0xee, 0x7b, 0x1c, 0x77, 0xac, 0x5e, 0xf2, 0xd0, + 0xe8, 0x1a, 0x34, 0xf2, 0xec, 0x82, 0xc6, 0x8f, 0x12, 0x2c, 0xb6, 0x89, 0xdd, 0x41, 0x67, 0xf8, + 0xf4, 0x2d, 0x73, 0x38, 0x48, 0x71, 0xd8, 0xcc, 0xe7, 0x90, 0x84, 0xa2, 0xaf, 0xc2, 0x9d, 0x8c, + 0x51, 0xa0, 0xff, 0x21, 0x42, 0xff, 0xd8, 0x47, 0x26, 0x45, 0x8f, 0x19, 0x3c, 0x65, 0x19, 0x66, + 0xf1, 0xd7, 0x1e, 0xf2, 0x19, 0xee, 0x68, 0x10, 0x54, 0x8f, 0x67, 0xba, 0x88, 0xb7, 0x42, 0xf0, + 0xad, 0xdc, 0x06, 0x79, 0xe4, 0x3b, 0x0c, 0x69, 0xf0, 0x19, 0x44, 0xb9, 0x88, 0x9a, 0xac, 0xa2, + 0xc2, 0xef, 0xd6, 0x76, 0x00, 0x3c, 0x5a, 0x25, 0xc0, 0x7d, 0x27, 0x56, 0x33, 0xc9, 0xcc, 0xfa, + 0xc3, 0x10, 0x6c, 0xd2, 0xc8, 0xc1, 0x4e, 0xdd, 0xd4, 0xa0, 0xb9, 0xeb, 0x6d, 0x62, 0x1f, 0x11, + 0x32, 0x42, 0x65, 0xbb, 0x3b, 0x43, 0x89, 0x13, 0x90, 0xc7, 0x04, 0xc6, 0x1b, 0x52, 0x8d, 0x6d, + 0x48, 0x4b, 0x4f, 0xd2, 0x5a, 0x8a, 0xd1, 0xe2, 0x10, 0xf4, 0x03, 0x58, 0x8a, 0x0d, 0x05, 0x95, + 0x35, 0x80, 0xa8, 0xcb, 0xe8, 0xc5, 0x10, 0x31, 0x60, 0x51, 0xdf, 0x3d, 0xbb, 0x18, 0x22, 0xfd, + 0xb7, 0x48, 0xa5, 0xda, 0x8e, 0x47, 0xdf, 0x98, 0x4a, 0x7d, 0x04, 0x73, 0x43, 0xd3, 0x37, 0xdd, + 0x48, 0xa2, 0xea, 0xfb, 0xeb, 0xcd, 0x8c, 0x06, 0x37, 0x59, 0xc2, 0xa7, 0x41, 0xdc, 0x61, 0xf5, + 0xd5, 0x9f, 0xeb, 0x95, 0x0e, 0x9b, 0x34, 0x41, 0xc7, 0xd8, 0x24, 0x7d, 0x2f, 0x14, 0x2c, 0x36, + 0x12, 0x4c, 0x13, 0x7a, 0x22, 0x25, 0xf5, 0x44, 0xff, 0x02, 0xde, 0x89, 0xa7, 0x9c, 0xb2, 0x2d, + 0x65, 0x8f, 0x4b, 0x7f, 0x11, 0x6d, 0xdf, 0xe1, 0xc8, 0xf7, 0xfe, 0xf3, 0xf6, 0x25, 0x70, 0xcb, + 0xa5, 0x45, 0x9d, 0xe5, 0x64, 0xa2, 0xce, 0x46, 0xa2, 0xdd, 0x2e, 0x93, 0xa2, 0x5e, 0x1a, 0xe0, + 0xbf, 0x15, 0xf5, 0x89, 0x37, 0x52, 0x39, 0x11, 0xe7, 0x44, 0x92, 0x22, 0x9e, 0x26, 0xf4, 0xb7, + 0x04, 0xb5, 0xe0, 0xd0, 0xb1, 0xe5, 0x9c, 0x5c, 0x4c, 0xe7, 0x21, 0xfa, 0x68, 0x26, 0x2e, 0x2c, + 0xc9, 0x53, 0x97, 0xd3, 0xa7, 0xbe, 0x0e, 0x75, 0x46, 0xc6, 0xb3, 0xd0, 0x39, 0x6b, 0xc1, 0x68, + 0xc6, 0x51, 0x60, 0x51, 0x1e, 0xc2, 0x7c, 0xaf, 0x6f, 0x7a, 0x36, 0x8a, 0x2e, 0xac, 0xfa, 0x7e, + 0x23, 0xa7, 0xb4, 0x1f, 0x51, 0xea, 0x3b, 0xdd, 0x11, 0x45, 0xac, 0xae, 0xf9, 0x94, 0xd6, 0x07, + 0xc9, 0x2e, 0x6e, 0xe4, 0x8b, 0x6a, 0xc4, 0x50, 0x5f, 0x0a, 0xe5, 0x32, 0x1a, 0x88, 0x4d, 0xf8, + 0x35, 0x3a, 0xd5, 0x8f, 0x7d, 0xd3, 0xa3, 0x4f, 0x91, 0xef, 0x3a, 0x84, 0x38, 0xd8, 0x7b, 0x33, + 0x5d, 0xab, 0x01, 0x0c, 0xc5, 0x92, 0x9c, 0xfb, 0xd8, 0xd2, 0x7a, 0x90, 0xa8, 0xc4, 0xbb, 0xf9, + 0xe0, 0x53, 0xc8, 0xd8, 0x99, 0xa6, 0xac, 0x82, 0xce, 0x4f, 0x52, 0xa8, 0x59, 0xd1, 0x8d, 0xf1, + 0x7f, 0xf9, 0x24, 0xf1, 0xcb, 0x19, 0xfc, 0x07, 0x09, 0xfc, 0x5b, 0x93, 0x6e, 0xb4, 0x18, 0x81, + 0x35, 0x58, 0xcd, 0x31, 0x73, 0x06, 0xfb, 0xdf, 0xd5, 0x40, 0x6e, 0x13, 0x5b, 0x39, 0x86, 0x79, + 0xfe, 0x6e, 0x5a, 0xcb, 0x53, 0x3b, 0xf1, 0xea, 0x52, 0xef, 0x4e, 0x74, 0x0b, 0x31, 0xb3, 0xe1, + 0xdd, 0xf4, 0x83, 0xac, 0x60, 0x66, 0x2a, 0x4c, 0xdd, 0x2d, 0x15, 0x26, 0x12, 0xb9, 0xb0, 0x98, + 0x7d, 0x18, 0xdd, 0xcb, 0x5f, 0x23, 0x13, 0xa8, 0x1a, 0x25, 0x03, 0x45, 0x3a, 0x0b, 0x6e, 0xa5, + 0x1e, 0x30, 0x9b, 0xf9, 0x4b, 0x24, 0xa3, 0xd4, 0xfb, 0x65, 0xa2, 0xe2, 0x59, 0x52, 0x0f, 0x8d, + 0x82, 0x2c, 0xc9, 0xa8, 0xa2, 0x2c, 0x05, 0xaf, 0x84, 0x0e, 0x2c, 0x88, 0x07, 0x80, 0x96, 0x3f, + 0x93, 0xfb, 0xd5, 0xad, 0xc9, 0x7e, 0xb1, 0xe6, 0x31, 0xcc, 0xf3, 0xbb, 0xb8, 0xa0, 0x90, 0x98, + 0xbb, 0xa8, 0x90, 0xd2, 0xb7, 0xe2, 0x31, 0xcc, 0x73, 0xf1, 0x2f, 0x58, 0x90, 0xb9, 0x8b, 0x16, + 0x4c, 0x09, 0x71, 0xbc, 0x32, 0xf9, 0xc2, 0x53, 0x2a, 0x93, 0x27, 0xd8, 0x2d, 0x15, 0x26, 0x12, + 0x7d, 0x0a, 0x73, 0x4c, 0xed, 0x1b, 0x05, 0x54, 0x43, 0xaf, 0xba, 0x39, 0xc9, 0x1b, 0x87, 0x9d, + 0x96, 0xcd, 0x02, 0xd8, 0xa9, 0xb0, 0x22, 0xd8, 0x05, 0xa2, 0xa6, 0x7c, 0x05, 0xb7, 0x33, 0x82, + 0xb6, 0x35, 0xa9, 0x7a, 0x63, 0xa9, 0x9a, 0xe5, 0xe2, 0x78, 0x2e, 0x75, 0xf6, 0xc5, 0xcd, 0xe5, + 0x8e, 0x74, 0xf8, 0xc9, 0x2f, 0x57, 0x5a, 0xe5, 0xd5, 0x95, 0x26, 0xbd, 0xbe, 0xd2, 0xa4, 0xbf, + 0xae, 0x34, 0xe9, 0xe5, 0xb5, 0x56, 0x79, 0x7d, 0xad, 0x55, 0xfe, 0xb8, 0xd6, 0x2a, 0x5f, 0xee, + 0xda, 0x0e, 0xed, 0x8f, 0xba, 0xcd, 0x1e, 0x76, 0x8d, 0x27, 0x8e, 0x47, 0x7a, 0x7d, 0xc7, 0x34, + 0x4e, 0xd8, 0x47, 0xa8, 0x81, 0xe7, 0x31, 0x15, 0xec, 0xce, 0x85, 0x7f, 0x5f, 0x1f, 0xfc, 0x13, + 0x00, 0x00, 0xff, 0xff, 0x70, 0x4b, 0xff, 0x27, 0x55, 0x0f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2296,14 +1552,6 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { - // 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 @@ -2325,33 +1573,15 @@ type MsgClient interface { // 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 @@ -2384,24 +1614,6 @@ 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 { - 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 - } - 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...) @@ -2447,15 +1659,6 @@ func (c *msgClient) CreateContract(ctx context.Context, in *MsgCreateContract, o return out, nil } -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 out, nil -} - 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...) @@ -2465,15 +1668,6 @@ func (c *msgClient) IssueNFT(ctx context.Context, in *MsgIssueNFT, opts ...grpc. return out, 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 (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...) @@ -2483,24 +1677,6 @@ func (c *msgClient) MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.Ca 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 - } - 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 - } - return out, nil -} - 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...) @@ -2548,14 +1724,6 @@ func (c *msgClient) RevokePermission(ctx context.Context, in *MsgRevokePermissio // 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 @@ -2577,34 +1745,16 @@ type MsgServer interface { // 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. + // BurnNFT defines a method to burn non-fungible tokens. // Fires: // - EventBurned BurnNFT(context.Context, *MsgBurnNFT) (*MsgBurnNFTResponse, error) @@ -2632,12 +1782,6 @@ type MsgServer interface { type UnimplementedMsgServer struct { } -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") } @@ -2653,24 +1797,12 @@ func (*UnimplementedMsgServer) RevokeOperator(ctx context.Context, req *MsgRevok 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") } @@ -2691,42 +1823,6 @@ func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } -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 - } - 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 _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 - } - 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 _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 { @@ -2817,24 +1913,6 @@ func _Msg_CreateContract_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } -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) -} - 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 { @@ -2853,24 +1931,6 @@ func _Msg_IssueNFT_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } -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 _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 { @@ -2889,42 +1949,6 @@ func _Msg_MintNFT_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -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 - } - 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 _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 - } - 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 _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 { @@ -3019,14 +2043,6 @@ 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, @@ -3047,30 +2063,14 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ 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, @@ -3096,175 +2096,6 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ 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) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -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 - } - } - 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 (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 dAtA[:n], nil -} - -func (m *MsgSendFTResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSendFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -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 dAtA[:n], nil -} - -func (m *MsgOperatorSendFT) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -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 -} - -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 (m *MsgOperatorSendFTResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgOperatorSendFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - func (m *MsgSendNFT) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3639,7 +2470,7 @@ func (m *MsgCreateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *MsgIssueFT) 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]) @@ -3649,125 +2480,12 @@ func (m *MsgIssueFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgIssueFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgIssueNFT) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgIssueFT) 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 - } - 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.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.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 *MsgIssueFTResponse) 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 *MsgIssueFTResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -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 *MsgIssueNFT) 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 *MsgIssueNFT) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgIssueNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgIssueNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3833,87 +2551,6 @@ func (m *MsgIssueNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgMintFT) 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 *MsgMintFT) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgMintFT) 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.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 (m *MsgMintFTResponse) 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 *MsgMintFTResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgMintFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - func (m *MsgMintNFT) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4048,7 +2685,7 @@ func (m *MintNFTParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgBurnFT) 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]) @@ -4058,26 +2695,21 @@ func (m *MsgBurnFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBurnFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgBurnNFT) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBurnFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgBurnNFT) 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)) - } + 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 } @@ -4099,7 +2731,7 @@ func (m *MsgBurnFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgBurnFTResponse) 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]) @@ -4109,12 +2741,12 @@ func (m *MsgBurnFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBurnFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgBurnNFTResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBurnFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgBurnNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4122,7 +2754,7 @@ func (m *MsgBurnFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgOperatorBurnFT) 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]) @@ -4132,26 +2764,21 @@ func (m *MsgOperatorBurnFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgOperatorBurnFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnNFT) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgOperatorBurnFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnNFT) 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)) - } + 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 } @@ -4180,7 +2807,7 @@ func (m *MsgOperatorBurnFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgOperatorBurnFTResponse) 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]) @@ -4190,12 +2817,12 @@ func (m *MsgOperatorBurnFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgOperatorBurnFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnNFTResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgOperatorBurnFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgOperatorBurnNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4203,7 +2830,7 @@ func (m *MsgOperatorBurnFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *MsgBurnNFT) 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]) @@ -4213,29 +2840,48 @@ func (m *MsgBurnNFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBurnNFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgModify) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBurnNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgModify) 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.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] = 0x1a + dAtA[i] = 0x2a } } - 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.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 + } + 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 } @@ -4249,7 +2895,7 @@ func (m *MsgBurnNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgBurnNFTResponse) 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]) @@ -4259,12 +2905,12 @@ func (m *MsgBurnNFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBurnNFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgModifyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBurnNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgModifyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4272,7 +2918,7 @@ func (m *MsgBurnNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgOperatorBurnNFT) 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]) @@ -4282,176 +2928,12 @@ func (m *MsgOperatorBurnNFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgOperatorBurnNFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgGrantPermission) 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 - 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 - } - 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 -} - -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 - } - 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 -} - -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 - } - 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 - } - 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 - } - 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 *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 - } - 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 -} - -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 - } - 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) { +func (m *MsgGrantPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4588,82 +3070,6 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *MsgSendFT) 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 *MsgSendFTResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgOperatorSendFT) 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.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 *MsgOperatorSendFTResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - func (m *MsgSendNFT) Size() (n int) { if m == nil { return 0 @@ -4838,7 +3244,7 @@ func (m *MsgCreateContractResponse) Size() (n int) { return n } -func (m *MsgIssueFT) Size() (n int) { +func (m *MsgIssueNFT) Size() (n int) { if m == nil { return 0 } @@ -4856,39 +3262,27 @@ func (m *MsgIssueFT) Size() (n int) { 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) { +func (m *MsgIssueNFTResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.TokenId) + l = len(m.TokenType) if l > 0 { n += 1 + l + sovTx(uint64(l)) } return n } -func (m *MsgIssueNFT) Size() (n int) { +func (m *MsgMintNFT) Size() (n int) { if m == nil { return 0 } @@ -4898,98 +3292,24 @@ func (m *MsgIssueNFT) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Name) + l = len(m.From) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Meta) + l = len(m.To) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Owner) - 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 *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) - 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) { +func (m *MsgMintNFTResponse) Size() (n int) { if m == nil { return 0 } @@ -5025,74 +3345,6 @@ func (m *MintNFTParam) Size() (n int) { 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 @@ -5271,7 +3523,7 @@ func sovTx(x uint64) (n int) { func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *MsgSendFT) Unmarshal(dAtA []byte) error { +func (m *MsgSendNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5294,10 +3546,10 @@ func (m *MsgSendFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgSendFT: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSendNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSendFT: 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: @@ -5330,1383 +3582,11 @@ func (m *MsgSendFT) Unmarshal(dAtA []byte) error { 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 iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgAuthorizeOperator) 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: MsgAuthorizeOperator: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAuthorizeOperator: 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 Holder", 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.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 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 - 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 *MsgAuthorizeOperatorResponse) 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: MsgAuthorizeOperatorResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAuthorizeOperatorResponse: 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 *MsgRevokeOperator) 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: MsgRevokeOperator: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRevokeOperator: 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 Holder", 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.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 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 - 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 *MsgRevokeOperatorResponse) 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: MsgRevokeOperatorResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRevokeOperatorResponse: 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 *MsgCreateContract) 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: MsgCreateContract: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 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]) + 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 { @@ -6734,11 +3614,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 { @@ -6766,11 +3646,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 { @@ -6798,7 +3678,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 @@ -6821,7 +3701,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 { @@ -6844,44 +3724,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:]) @@ -6903,7 +3751,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 { @@ -6926,10 +3774,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: @@ -6966,7 +3814,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 { @@ -6994,11 +3842,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 { @@ -7026,13 +3874,13 @@ 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) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } - m.Decimals = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -7042,16 +3890,29 @@ func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Decimals |= int32(b&0x7F) << shift + 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 != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -7061,15 +3922,127 @@ func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.Mintable = bool(v != 0) - case 6: + 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 iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAuthorizeOperator) 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: MsgAuthorizeOperator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAuthorizeOperator: 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 { @@ -7097,11 +4070,11 @@ func (m *MsgIssueFT) 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 7: + case 2: 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 { @@ -7129,11 +4102,11 @@ func (m *MsgIssueFT) 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 8: + 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 stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7161,9 +4134,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.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7186,7 +4157,7 @@ func (m *MsgIssueFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgIssueFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgAuthorizeOperatorResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7196,57 +4167,25 @@ func (m *MsgIssueFTResponse) Unmarshal(dAtA []byte) error { 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: MsgIssueFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 { + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + 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: MsgAuthorizeOperatorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAuthorizeOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -7268,7 +4207,7 @@ func (m *MsgIssueFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgIssueNFT) Unmarshal(dAtA []byte) error { +func (m *MsgRevokeOperator) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7291,10 +4230,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: MsgRevokeOperator: 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: MsgRevokeOperator: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7331,7 +4270,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 { @@ -7359,43 +4298,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 { @@ -7423,7 +4330,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 @@ -7446,7 +4353,7 @@ func (m *MsgIssueNFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgIssueNFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgRevokeOperatorResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7469,44 +4376,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: MsgRevokeOperatorResponse: 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: MsgRevokeOperatorResponse: 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:]) @@ -7528,7 +4403,7 @@ func (m *MsgIssueNFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMintFT) Unmarshal(dAtA []byte) error { +func (m *MsgCreateContract) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7551,15 +4426,15 @@ 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: MsgCreateContract: 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: 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 { @@ -7587,11 +4462,11 @@ func (m *MsgMintFT) 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 { @@ -7619,11 +4494,11 @@ func (m *MsgMintFT) 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 { @@ -7651,13 +4526,13 @@ func (m *MsgMintFT) 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 Amount", 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 @@ -7667,25 +4542,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.Meta = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7708,7 +4581,7 @@ func (m *MsgMintFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMintFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCreateContractResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7731,12 +4604,44 @@ 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: MsgCreateContractResponse: 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: 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 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:]) @@ -7758,7 +4663,7 @@ func (m *MsgMintFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { +func (m *MsgIssueNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7781,10 +4686,10 @@ 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: MsgIssueNFT: 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: MsgIssueNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7821,7 +4726,7 @@ func (m *MsgMintNFT) 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 Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7849,11 +4754,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 Meta", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7878,98 +4783,14 @@ func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { 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 Params", 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.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 - 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 *MsgMintNFTResponse) 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 + if postIndex > l { + return io.ErrUnexpectedEOF } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgMintNFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMintNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Meta = 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 Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7997,7 +4818,7 @@ func (m *MsgMintNFTResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenIds = append(m.TokenIds, string(dAtA[iNdEx:postIndex])) + m.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8020,7 +4841,7 @@ func (m *MsgMintNFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MintNFTParam) Unmarshal(dAtA []byte) error { +func (m *MsgIssueNFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8043,10 +4864,10 @@ 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: MsgIssueNFTResponse: 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: MsgIssueNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8081,70 +4902,6 @@ func (m *MintNFTParam) Unmarshal(dAtA []byte) error { } m.TokenType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - 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 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.Name = 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 default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -8166,7 +4923,7 @@ func (m *MintNFTParam) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgBurnFT) Unmarshal(dAtA []byte) error { +func (m *MsgMintNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8189,10 +4946,10 @@ func (m *MsgBurnFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgBurnFT: wiretype end group for non-group") + return fmt.Errorf("proto: MsgMintNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBurnFT: 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: @@ -8261,7 +5018,39 @@ func (m *MsgBurnFT) Unmarshal(dAtA []byte) error { iNdEx = postIndex 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 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 Params", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8288,8 +5077,8 @@ func (m *MsgBurnFT) Unmarshal(dAtA []byte) error { 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 { + m.Params = append(m.Params, MintNFTParam{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8314,7 +5103,7 @@ func (m *MsgBurnFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgBurnFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgMintNFTResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8337,12 +5126,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: MsgMintNFTResponse: 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: 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:]) @@ -8364,7 +5185,7 @@ func (m *MsgBurnFTResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOperatorBurnFT) Unmarshal(dAtA []byte) error { +func (m *MintNFTParam) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8387,15 +5208,15 @@ 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: MintNFTParam: 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: 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 { @@ -8423,11 +5244,11 @@ func (m *MsgOperatorBurnFT) 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 Operator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8455,11 +5276,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 { @@ -8487,41 +5308,7 @@ func (m *MsgOperatorBurnFT) Unmarshal(dAtA []byte) error { 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 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 - } + m.Meta = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8544,56 +5331,6 @@ func (m *MsgOperatorBurnFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOperatorBurnFTResponse) 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: MsgOperatorBurnFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOperatorBurnFTResponse: 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 *MsgBurnNFT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0