diff --git a/.github/pr_labeler.yml b/.github/pr_labeler.yml index 8bca4caee3..899fac6272 100644 --- a/.github/pr_labeler.yml +++ b/.github/pr_labeler.yml @@ -11,8 +11,8 @@ # "C:CLI": # - client/**/* # - x/*/client/**/* -# "Type: ADR": -# - docs/architecture/**/* +"C:x/collection": + - x/collection/**/* "C:x/foundation": - x/foundation/**/* "C:x/stakingplus": diff --git a/.golangci.yml b/.golangci.yml index 8ea09b0436..31e5084d09 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,22 +1,23 @@ run: tests: true timeout: 15m - sort-results: true allow-parallel-runners: true skip-files: - ".*\\.pb\\.go$" - ".*\\.pb\\.gw\\.go$" - ".*\\.pulsar\\.go$" +output: + sort-results: true + linters: disable-all: true enable: - - depguard - dogsled - exportloopref + - gci - goconst - gocritic - - gci - gofumpt - gosec - gosimple @@ -25,8 +26,8 @@ linters: - misspell - nakedret - nolintlint - - staticcheck - revive + - staticcheck - stylecheck - typecheck - unconvert @@ -58,6 +59,9 @@ issues: - text: "leading space" linters: - nolintlint + - text: "SA1019: collection." # TODO: remove deprecated collection features later + linters: + - staticcheck max-issues-per-linter: 10000 max-same-issues: 10000 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ef03d29d8..c8ed8751c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Features * (x/staking) [\#1214](https://github.com/Finschia/finschia-sdk/pull/1214) update x/stakingplus to use Finschia/cosmos-sdk +* (x/collection,token) [\#1208](https://github.com/Finschia/finschia-sdk/pull/1208) update x/collection to use Finschia/cosmos-sdk * (x/foundation) [\#1198](https://github.com/Finschia/finschia-sdk/pull/1198) update x/foundation to use Finschia/cosmos-sdk * (all) [\#1205](https://github.com/Finschia/finschia-sdk/pull/1205) delegate native logics to Finschia/cosmos-sdk * (consensus) [\#1178](https://github.com/Finschia/finschia-sdk/pull/1178) change the consensus from Ostracon to Tendermint v0.34.24 diff --git a/api/lbm/collection/module/v1/module.pulsar.go b/api/lbm/collection/module/v1/module.pulsar.go new file mode 100644 index 0000000000..9606c908f8 --- /dev/null +++ b/api/lbm/collection/module/v1/module.pulsar.go @@ -0,0 +1,503 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package modulev1 + +import ( + _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Module protoreflect.MessageDescriptor +) + +func init() { + file_lbm_collection_module_v1_module_proto_init() + md_Module = File_lbm_collection_module_v1_module_proto.Messages().ByName("Module") +} + +var _ protoreflect.Message = (*fastReflection_Module)(nil) + +type fastReflection_Module Module + +func (x *Module) ProtoReflect() protoreflect.Message { + return (*fastReflection_Module)(x) +} + +func (x *Module) slowProtoReflect() protoreflect.Message { + mi := &file_lbm_collection_module_v1_module_proto_msgTypes[0] + 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_Module_messageType fastReflection_Module_messageType +var _ protoreflect.MessageType = fastReflection_Module_messageType{} + +type fastReflection_Module_messageType struct{} + +func (x fastReflection_Module_messageType) Zero() protoreflect.Message { + return (*fastReflection_Module)(nil) +} +func (x fastReflection_Module_messageType) New() protoreflect.Message { + return new(fastReflection_Module) +} +func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// 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_Module) Type() protoreflect.MessageType { + return _fastReflection_Module_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Module) New() protoreflect.Message { + return new(fastReflection_Module) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { + return (*Module)(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_Module) 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_Module) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.module.v1.Module")) + } + panic(fmt.Errorf("message lbm.collection.module.v1.Module 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_Module) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.module.v1.Module")) + } + panic(fmt.Errorf("message lbm.collection.module.v1.Module 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_Module) 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.module.v1.Module")) + } + panic(fmt.Errorf("message lbm.collection.module.v1.Module 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_Module) 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.module.v1.Module")) + } + panic(fmt.Errorf("message lbm.collection.module.v1.Module 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_Module) 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.module.v1.Module")) + } + panic(fmt.Errorf("message lbm.collection.module.v1.Module 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_Module) 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.module.v1.Module")) + } + panic(fmt.Errorf("message lbm.collection.module.v1.Module 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_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.module.v1.Module", 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_Module) 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_Module) 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_Module) 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_Module) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Module) + 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().(*Module) + 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().(*Module) + 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: Module: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: 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/module/v1/module.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) +) + +// Module is the config object of the collection module. +type Module struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Module) Reset() { + *x = Module{} + if protoimpl.UnsafeEnabled { + mi := &file_lbm_collection_module_v1_module_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Module) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Module) ProtoMessage() {} + +// Deprecated: Use Module.ProtoReflect.Descriptor instead. +func (*Module) Descriptor() ([]byte, []int) { + return file_lbm_collection_module_v1_module_proto_rawDescGZIP(), []int{0} +} + +var File_lbm_collection_module_v1_module_proto protoreflect.FileDescriptor + +var file_lbm_collection_module_v1_module_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, + 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x3f, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x35, 0xba, + 0xc0, 0x96, 0xda, 0x01, 0x2f, 0x0a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, + 0x68, 0x69, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x78, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xd5, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, 0x6d, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, + 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x43, + 0x4d, 0xaa, 0x02, 0x18, 0x4c, 0x62, 0x6d, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x18, 0x4c, + 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x24, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, + 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x1b, 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_lbm_collection_module_v1_module_proto_rawDescOnce sync.Once + file_lbm_collection_module_v1_module_proto_rawDescData = file_lbm_collection_module_v1_module_proto_rawDesc +) + +func file_lbm_collection_module_v1_module_proto_rawDescGZIP() []byte { + file_lbm_collection_module_v1_module_proto_rawDescOnce.Do(func() { + file_lbm_collection_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_lbm_collection_module_v1_module_proto_rawDescData) + }) + return file_lbm_collection_module_v1_module_proto_rawDescData +} + +var file_lbm_collection_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_lbm_collection_module_v1_module_proto_goTypes = []interface{}{ + (*Module)(nil), // 0: lbm.collection.module.v1.Module +} +var file_lbm_collection_module_v1_module_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_lbm_collection_module_v1_module_proto_init() } +func file_lbm_collection_module_v1_module_proto_init() { + if File_lbm_collection_module_v1_module_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_lbm_collection_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Module); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_lbm_collection_module_v1_module_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_lbm_collection_module_v1_module_proto_goTypes, + DependencyIndexes: file_lbm_collection_module_v1_module_proto_depIdxs, + MessageInfos: file_lbm_collection_module_v1_module_proto_msgTypes, + }.Build() + File_lbm_collection_module_v1_module_proto = out.File + file_lbm_collection_module_v1_module_proto_rawDesc = nil + file_lbm_collection_module_v1_module_proto_goTypes = nil + file_lbm_collection_module_v1_module_proto_depIdxs = nil +} diff --git a/api/lbm/collection/v1/collection.pulsar.go b/api/lbm/collection/v1/collection.pulsar.go index 14f5ff2d2b..d12a1bf299 100644 --- a/api/lbm/collection/v1/collection.pulsar.go +++ b/api/lbm/collection/v1/collection.pulsar.go @@ -15,16 +15,12 @@ import ( ) var ( - md_Params protoreflect.MessageDescriptor - fd_Params_depth_limit protoreflect.FieldDescriptor - fd_Params_width_limit protoreflect.FieldDescriptor + md_Params protoreflect.MessageDescriptor ) func init() { file_lbm_collection_v1_collection_proto_init() md_Params = File_lbm_collection_v1_collection_proto.Messages().ByName("Params") - fd_Params_depth_limit = md_Params.Fields().ByName("depth_limit") - fd_Params_width_limit = md_Params.Fields().ByName("width_limit") } var _ protoreflect.Message = (*fastReflection_Params)(nil) @@ -92,18 +88,6 @@ func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.DepthLimit != uint32(0) { - value := protoreflect.ValueOfUint32(x.DepthLimit) - if !f(fd_Params_depth_limit, value) { - return - } - } - if x.WidthLimit != uint32(0) { - value := protoreflect.ValueOfUint32(x.WidthLimit) - if !f(fd_Params_width_limit, value) { - return - } - } } // Has reports whether a field is populated. @@ -119,10 +103,6 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.Params.depth_limit": - return x.DepthLimit != uint32(0) - case "lbm.collection.v1.Params.width_limit": - return x.WidthLimit != uint32(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -139,10 +119,6 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.Params.depth_limit": - x.DepthLimit = uint32(0) - case "lbm.collection.v1.Params.width_limit": - x.WidthLimit = uint32(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -159,12 +135,6 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.Params.depth_limit": - value := x.DepthLimit - return protoreflect.ValueOfUint32(value) - case "lbm.collection.v1.Params.width_limit": - value := x.WidthLimit - return protoreflect.ValueOfUint32(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -185,10 +155,6 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.Params.depth_limit": - x.DepthLimit = uint32(value.Uint()) - case "lbm.collection.v1.Params.width_limit": - x.WidthLimit = uint32(value.Uint()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -209,10 +175,6 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.Params.depth_limit": - panic(fmt.Errorf("field depth_limit of message lbm.collection.v1.Params is not mutable")) - case "lbm.collection.v1.Params.width_limit": - panic(fmt.Errorf("field width_limit of message lbm.collection.v1.Params is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -226,10 +188,6 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.Params.depth_limit": - return protoreflect.ValueOfUint32(uint32(0)) - case "lbm.collection.v1.Params.width_limit": - return protoreflect.ValueOfUint32(uint32(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.Params")) @@ -299,12 +257,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.DepthLimit != 0 { - n += 1 + runtime.Sov(uint64(x.DepthLimit)) - } - if x.WidthLimit != 0 { - n += 1 + runtime.Sov(uint64(x.WidthLimit)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -334,16 +286,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.WidthLimit != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.WidthLimit)) - i-- - dAtA[i] = 0x10 - } - if x.DepthLimit != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.DepthLimit)) - i-- - dAtA[i] = 0x8 - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -393,44 +335,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DepthLimit", wireType) - } - x.DepthLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.DepthLimit |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WidthLimit", wireType) - } - x.WidthLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.WidthLimit |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2965,695 +2869,9 @@ func (x *fastReflection_OwnerNFT) Has(fd protoreflect.FieldDescriptor) bool { return x.Owner != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.OwnerNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT 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_OwnerNFT) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.OwnerNFT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.OwnerNFT.token_id": - x.TokenId = "" - case "lbm.collection.v1.OwnerNFT.name": - x.Name = "" - case "lbm.collection.v1.OwnerNFT.meta": - x.Meta = "" - case "lbm.collection.v1.OwnerNFT.owner": - x.Owner = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.OwnerNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT 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_OwnerNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.OwnerNFT.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.OwnerNFT.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.OwnerNFT.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.OwnerNFT.meta": - value := x.Meta - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.OwnerNFT.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.OwnerNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT 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_OwnerNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.OwnerNFT.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.OwnerNFT.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.OwnerNFT.name": - x.Name = value.Interface().(string) - case "lbm.collection.v1.OwnerNFT.meta": - x.Meta = value.Interface().(string) - case "lbm.collection.v1.OwnerNFT.owner": - x.Owner = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.OwnerNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT 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_OwnerNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.OwnerNFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.OwnerNFT is not mutable")) - case "lbm.collection.v1.OwnerNFT.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.OwnerNFT is not mutable")) - case "lbm.collection.v1.OwnerNFT.name": - panic(fmt.Errorf("field name of message lbm.collection.v1.OwnerNFT is not mutable")) - case "lbm.collection.v1.OwnerNFT.meta": - panic(fmt.Errorf("field meta of message lbm.collection.v1.OwnerNFT is not mutable")) - case "lbm.collection.v1.OwnerNFT.owner": - panic(fmt.Errorf("field owner of message lbm.collection.v1.OwnerNFT is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.OwnerNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT 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_OwnerNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.OwnerNFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.OwnerNFT.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.OwnerNFT.name": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.OwnerNFT.meta": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.OwnerNFT.owner": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.OwnerNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT 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_OwnerNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.OwnerNFT", 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_OwnerNFT) 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_OwnerNFT) 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_OwnerNFT) 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_OwnerNFT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*OwnerNFT) - 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)) - } - 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().(*OwnerNFT) - 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] = 0x2a - } - 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().(*OwnerNFT) - 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: OwnerNFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnerNFT: 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 != 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_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("proto3 declared messages do not support extensions: lbm.collection.v1.OwnerNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.FT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT does not contain field %s", fd.FullName())) } } @@ -3663,25 +2881,23 @@ func (x *fastReflection_FT) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_FT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_OwnerNFT) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.FT.contract_id": + case "lbm.collection.v1.OwnerNFT.contract_id": x.ContractId = "" - case "lbm.collection.v1.FT.token_id": + case "lbm.collection.v1.OwnerNFT.token_id": x.TokenId = "" - case "lbm.collection.v1.FT.name": + case "lbm.collection.v1.OwnerNFT.name": x.Name = "" - case "lbm.collection.v1.FT.meta": + case "lbm.collection.v1.OwnerNFT.meta": x.Meta = "" - case "lbm.collection.v1.FT.decimals": - x.Decimals = int32(0) - case "lbm.collection.v1.FT.mintable": - x.Mintable = false + case "lbm.collection.v1.OwnerNFT.owner": + x.Owner = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.FT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.OwnerNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.FT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT does not contain field %s", fd.FullName())) } } @@ -3691,31 +2907,28 @@ func (x *fastReflection_FT) 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_FT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_OwnerNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.FT.contract_id": + case "lbm.collection.v1.OwnerNFT.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.FT.token_id": + case "lbm.collection.v1.OwnerNFT.token_id": value := x.TokenId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.FT.name": + case "lbm.collection.v1.OwnerNFT.name": value := x.Name return protoreflect.ValueOfString(value) - case "lbm.collection.v1.FT.meta": + case "lbm.collection.v1.OwnerNFT.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) + case "lbm.collection.v1.OwnerNFT.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.FT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.OwnerNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.FT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT does not contain field %s", descriptor.FullName())) } } @@ -3729,25 +2942,23 @@ func (x *fastReflection_FT) Get(descriptor protoreflect.FieldDescriptor) protore // 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) { +func (x *fastReflection_OwnerNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.FT.contract_id": + case "lbm.collection.v1.OwnerNFT.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.FT.token_id": + case "lbm.collection.v1.OwnerNFT.token_id": x.TokenId = value.Interface().(string) - case "lbm.collection.v1.FT.name": + case "lbm.collection.v1.OwnerNFT.name": x.Name = value.Interface().(string) - case "lbm.collection.v1.FT.meta": + case "lbm.collection.v1.OwnerNFT.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() + case "lbm.collection.v1.OwnerNFT.owner": + x.Owner = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.FT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.OwnerNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.FT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT does not contain field %s", fd.FullName())) } } @@ -3761,60 +2972,56 @@ func (x *fastReflection_FT) Set(fd protoreflect.FieldDescriptor, value protorefl // 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 { +func (x *fastReflection_OwnerNFT) 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")) + case "lbm.collection.v1.OwnerNFT.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.OwnerNFT is not mutable")) + case "lbm.collection.v1.OwnerNFT.token_id": + panic(fmt.Errorf("field token_id of message lbm.collection.v1.OwnerNFT is not mutable")) + case "lbm.collection.v1.OwnerNFT.name": + panic(fmt.Errorf("field name of message lbm.collection.v1.OwnerNFT is not mutable")) + case "lbm.collection.v1.OwnerNFT.meta": + panic(fmt.Errorf("field meta of message lbm.collection.v1.OwnerNFT is not mutable")) + case "lbm.collection.v1.OwnerNFT.owner": + panic(fmt.Errorf("field owner of message lbm.collection.v1.OwnerNFT is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.FT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.OwnerNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.FT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT 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 { +func (x *fastReflection_OwnerNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.FT.contract_id": + case "lbm.collection.v1.OwnerNFT.contract_id": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.OwnerNFT.token_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.FT.token_id": + case "lbm.collection.v1.OwnerNFT.name": return protoreflect.ValueOfString("") - case "lbm.collection.v1.FT.name": + case "lbm.collection.v1.OwnerNFT.meta": return protoreflect.ValueOfString("") - case "lbm.collection.v1.FT.meta": + case "lbm.collection.v1.OwnerNFT.owner": 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("proto3 declared messages do not support extensions: lbm.collection.v1.OwnerNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.FT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.OwnerNFT 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 { +func (x *fastReflection_OwnerNFT) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.OwnerNFT", d.FullName())) } panic("unreachable") } @@ -3822,7 +3029,7 @@ func (x *fastReflection_FT) WhichOneof(d protoreflect.OneofDescriptor) protorefl // 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 { +func (x *fastReflection_OwnerNFT) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3833,7 +3040,7 @@ func (x *fastReflection_FT) 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_FT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_OwnerNFT) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3845,7 +3052,7 @@ func (x *fastReflection_FT) 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_FT) IsValid() bool { +func (x *fastReflection_OwnerNFT) IsValid() bool { return x != nil } @@ -3855,9 +3062,9 @@ func (x *fastReflection_FT) 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_FT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_OwnerNFT) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*FT) + x := input.Message.Interface().(*OwnerNFT) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3885,11 +3092,9 @@ func (x *fastReflection_FT) 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 + l = len(x.Owner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -3901,7 +3106,7 @@ func (x *fastReflection_FT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*FT) + x := input.Message.Interface().(*OwnerNFT) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3920,20 +3125,12 @@ func (x *fastReflection_FT) 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] = 0x30 - } - if x.Decimals != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Decimals)) + 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] = 0x28 + dAtA[i] = 0x2a } if len(x.Meta) > 0 { i -= len(x.Meta) @@ -3974,7 +3171,7 @@ func (x *fastReflection_FT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*FT) + x := input.Message.Interface().(*OwnerNFT) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4006,10 +3203,10 @@ func (x *fastReflection_FT) 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: FT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnerNFT: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnerNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4141,10 +3338,10 @@ func (x *fastReflection_FT) ProtoMethods() *protoiface.Methods { 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) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } - x.Decimals = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4154,31 +3351,24 @@ func (x *fastReflection_FT) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.Decimals |= int32(b&0x7F) << shift + stringLen |= uint64(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) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - 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 - } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - x.Mintable = bool(v != 0) + 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:]) @@ -4240,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 { @@ -4848,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 { @@ -5332,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 { @@ -5800,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 { @@ -6284,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 { @@ -6888,9 +6078,6 @@ type Params struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - DepthLimit uint32 `protobuf:"varint,1,opt,name=depth_limit,json=depthLimit,proto3" json:"depth_limit,omitempty"` - WidthLimit uint32 `protobuf:"varint,2,opt,name=width_limit,json=widthLimit,proto3" json:"width_limit,omitempty"` } func (x *Params) Reset() { @@ -6913,20 +6100,6 @@ func (*Params) Descriptor() ([]byte, []int) { return file_lbm_collection_v1_collection_proto_rawDescGZIP(), []int{0} } -func (x *Params) GetDepthLimit() uint32 { - if x != nil { - return x.DepthLimit - } - return 0 -} - -func (x *Params) GetWidthLimit() uint32 { - if x != nil { - return x.WidthLimit - } - return 0 -} - // Contract defines the information of the contract for the collection. type Contract struct { state protoimpl.MessageState @@ -6994,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 @@ -7258,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. @@ -7367,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) } @@ -7381,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 { @@ -7427,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) } @@ -7441,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 { @@ -7475,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) } @@ -7489,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 { @@ -7523,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) } @@ -7537,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 { @@ -7569,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) } @@ -7583,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 { @@ -7609,139 +6700,124 @@ var file_lbm_collection_v1_collection_proto_rawDesc = []byte{ 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x69, 0x64, 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x77, 0x69, 0x64, 0x74, 0x68, 0x4c, - 0x69, 0x6d, 0x69, 0x74, 0x22, 0x54, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x22, 0x8d, 0x01, 0x0a, 0x07, 0x46, - 0x54, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, - 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x1a, - 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x69, - 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x69, - 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3a, 0x12, 0x88, 0xa0, 0x1f, 0x01, 0xca, 0xb4, 0x2d, 0x0a, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x22, 0x56, 0x0a, 0x08, 0x4e, 0x46, - 0x54, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, - 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x3a, 0x12, - 0x88, 0xa0, 0x1f, 0x01, 0xca, 0xb4, 0x2d, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x22, 0x48, 0x0a, 0x03, 0x4e, 0x46, 0x54, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x03, 0x22, 0x54, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x22, 0xa9, 0x01, 0x0a, - 0x08, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x46, 0x54, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, - 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x2e, 0x0a, - 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x3a, 0x09, 0xca, - 0xb4, 0x2d, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xab, 0x01, 0x0a, 0x02, 0x46, 0x54, 0x12, + 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, 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, + 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, + 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, 0x1a, + 0x0a, 0x08, 0x6d, 0x69, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3a, 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, 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, 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, 0x77, 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, 0x4a, - 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, - 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, - 0x63, 0x68, 0x69, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x49, - 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x08, 0x98, 0xa0, 0x1f, 0x00, - 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x7a, 0x0a, 0x05, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x32, 0x0a, - 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x22, 0x77, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x30, 0x0a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x68, 0x6f, 0x6c, - 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x33, 0x0a, 0x09, 0x41, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0xf3, - 0x01, 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, - 0x16, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x19, 0x8a, 0x9d, 0x20, 0x15, 0x50, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, - 0x66, 0x69, 0x65, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, - 0x4f, 0x4e, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x01, 0x1a, 0x13, 0x8a, 0x9d, 0x20, 0x0f, - 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x12, - 0x2b, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x4f, - 0x44, 0x49, 0x46, 0x59, 0x10, 0x02, 0x1a, 0x14, 0x8a, 0x9d, 0x20, 0x10, 0x50, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x12, 0x27, 0x0a, 0x0f, - 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4e, 0x54, 0x10, - 0x03, 0x1a, 0x12, 0x8a, 0x9d, 0x20, 0x0e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x4d, 0x69, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, - 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x55, 0x52, 0x4e, 0x10, 0x04, 0x1a, 0x12, 0x8a, 0x9d, 0x20, 0x0e, - 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x75, 0x72, 0x6e, 0x1a, 0x04, - 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0xbe, 0x02, 0x0a, 0x10, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x1d, 0x4c, 0x45, 0x47, - 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x1f, 0x8a, 0x9d, - 0x20, 0x1b, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x36, 0x0a, - 0x17, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, - 0x4f, 0x4e, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x01, 0x1a, 0x19, 0x8a, 0x9d, 0x20, 0x15, - 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x49, 0x73, 0x73, 0x75, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, - 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x4f, 0x44, 0x49, 0x46, - 0x59, 0x10, 0x02, 0x1a, 0x1a, 0x8a, 0x9d, 0x20, 0x16, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x12, - 0x34, 0x0a, 0x16, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, - 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4e, 0x54, 0x10, 0x03, 0x1a, 0x18, 0x8a, 0x9d, 0x20, - 0x14, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x4d, 0x69, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, - 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x55, 0x52, 0x4e, 0x10, - 0x04, 0x1a, 0x18, 0x8a, 0x9d, 0x20, 0x14, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x75, 0x72, 0x6e, 0x1a, 0x08, 0x88, 0xa3, 0x1e, - 0x00, 0xa8, 0xa4, 0x1e, 0x00, 0x42, 0xba, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, - 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, - 0x0f, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x22, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, - 0x62, 0x6d, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, - 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 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, + 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, 0x06, 0x68, 0x6f, + 0x6c, 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x33, 0x0a, 0x09, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, + 0xf3, 0x01, 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x35, + 0x0a, 0x16, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x19, 0x8a, 0x9d, 0x20, 0x15, + 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, + 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, + 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x01, 0x1a, 0x13, 0x8a, 0x9d, 0x20, + 0x0f, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x73, 0x73, 0x75, 0x65, + 0x12, 0x2b, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, + 0x4f, 0x44, 0x49, 0x46, 0x59, 0x10, 0x02, 0x1a, 0x14, 0x8a, 0x9d, 0x20, 0x10, 0x50, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x12, 0x27, 0x0a, + 0x0f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4e, 0x54, + 0x10, 0x03, 0x1a, 0x12, 0x8a, 0x9d, 0x20, 0x0e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, + 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x55, 0x52, 0x4e, 0x10, 0x04, 0x1a, 0x12, 0x8a, 0x9d, 0x20, + 0x0e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x75, 0x72, 0x6e, 0x1a, + 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0xbe, 0x02, 0x0a, 0x10, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, + 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x1d, 0x4c, 0x45, + 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x1f, 0x8a, + 0x9d, 0x20, 0x1b, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x36, + 0x0a, 0x17, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, + 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x01, 0x1a, 0x19, 0x8a, 0x9d, 0x20, + 0x15, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, + 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x4f, 0x44, 0x49, + 0x46, 0x59, 0x10, 0x02, 0x1a, 0x1a, 0x8a, 0x9d, 0x20, 0x16, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, + 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, + 0x12, 0x34, 0x0a, 0x16, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, + 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4e, 0x54, 0x10, 0x03, 0x1a, 0x18, 0x8a, 0x9d, + 0x20, 0x14, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, + 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x55, 0x52, 0x4e, + 0x10, 0x04, 0x1a, 0x18, 0x8a, 0x9d, 0x20, 0x14, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x65, + 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x75, 0x72, 0x6e, 0x1a, 0x08, 0x88, 0xa3, + 0x1e, 0x00, 0xa8, 0xa4, 0x1e, 0x00, 0x42, 0xba, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, + 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x42, 0x0f, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, + 0x4c, 0x62, 0x6d, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5c, 0x56, 0x31, 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 ( @@ -7757,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 @@ -7767,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 @@ -7862,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 @@ -7885,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 @@ -7897,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 @@ -7909,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 @@ -7921,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 @@ -7940,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 8b0d0a8e84..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,7 +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) + 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 { @@ -3857,11 +3720,11 @@ func (x *fastReflection_EventCreatedNFTClass) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Operator = string(dAtA[iNdEx:postIndex]) + 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 TokenType", 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 { @@ -3889,13 +3752,13 @@ func (x *fastReflection_EventCreatedNFTClass) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TokenType = 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 Name", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) } - var stringLen uint64 + x.Permission = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3905,70 +3768,25 @@ func (x *fastReflection_EventCreatedNFTClass) ProtoMethods() *protoiface.Methods } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.Permission |= Permission(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > 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]...) + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } @@ -3991,31 +3809,29 @@ func (x *fastReflection_EventCreatedNFTClass) ProtoMethods() *protoiface.Methods } 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 + 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_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") + 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_EventGranted)(nil) +var _ protoreflect.Message = (*fastReflection_EventRenounced)(nil) -type fastReflection_EventGranted EventGranted +type fastReflection_EventRenounced EventRenounced -func (x *EventGranted) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventGranted)(x) +func (x *EventRenounced) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventRenounced)(x) } -func (x *EventGranted) slowProtoReflect() protoreflect.Message { +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)) @@ -4027,43 +3843,43 @@ func (x *EventGranted) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EventGranted_messageType fastReflection_EventGranted_messageType -var _ protoreflect.MessageType = fastReflection_EventGranted_messageType{} +var _fastReflection_EventRenounced_messageType fastReflection_EventRenounced_messageType +var _ protoreflect.MessageType = fastReflection_EventRenounced_messageType{} -type fastReflection_EventGranted_messageType struct{} +type fastReflection_EventRenounced_messageType struct{} -func (x fastReflection_EventGranted_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventGranted)(nil) +func (x fastReflection_EventRenounced_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventRenounced)(nil) } -func (x fastReflection_EventGranted_messageType) New() protoreflect.Message { - return new(fastReflection_EventGranted) +func (x fastReflection_EventRenounced_messageType) New() protoreflect.Message { + return new(fastReflection_EventRenounced) } -func (x fastReflection_EventGranted_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventGranted +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_EventGranted) Descriptor() protoreflect.MessageDescriptor { - return md_EventGranted +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_EventGranted) Type() protoreflect.MessageType { - return _fastReflection_EventGranted_messageType +func (x *fastReflection_EventRenounced) Type() protoreflect.MessageType { + return _fastReflection_EventRenounced_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventGranted) New() protoreflect.Message { - return new(fastReflection_EventGranted) +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_EventGranted) Interface() protoreflect.ProtoMessage { - return (*EventGranted)(x) +func (x *fastReflection_EventRenounced) Interface() protoreflect.ProtoMessage { + return (*EventRenounced)(x) } // Range iterates over every populated field in an undefined order, @@ -4071,28 +3887,22 @@ func (x *fastReflection_EventGranted) 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_EventGranted) 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_EventGranted_contract_id, value) { - return - } - } - if x.Granter != "" { - value := protoreflect.ValueOfString(x.Granter) - if !f(fd_EventGranted_granter, value) { + if !f(fd_EventRenounced_contract_id, value) { return } } if x.Grantee != "" { value := protoreflect.ValueOfString(x.Grantee) - if !f(fd_EventGranted_grantee, value) { + if !f(fd_EventRenounced_grantee, value) { return } } if x.Permission != 0 { value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Permission)) - if !f(fd_EventGranted_permission, value) { + if !f(fd_EventRenounced_permission, value) { return } } @@ -4109,21 +3919,19 @@ func (x *fastReflection_EventGranted) 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_EventGranted) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_EventRenounced) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.EventGranted.contract_id": + case "lbm.collection.v1.EventRenounced.contract_id": return x.ContractId != "" - case "lbm.collection.v1.EventGranted.granter": - return x.Granter != "" - case "lbm.collection.v1.EventGranted.grantee": + case "lbm.collection.v1.EventRenounced.grantee": return x.Grantee != "" - case "lbm.collection.v1.EventGranted.permission": + 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.EventGranted")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", fd.FullName())) } } @@ -4133,21 +3941,19 @@ func (x *fastReflection_EventGranted) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventGranted) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_EventRenounced) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.EventGranted.contract_id": + case "lbm.collection.v1.EventRenounced.contract_id": x.ContractId = "" - case "lbm.collection.v1.EventGranted.granter": - x.Granter = "" - case "lbm.collection.v1.EventGranted.grantee": + case "lbm.collection.v1.EventRenounced.grantee": x.Grantee = "" - case "lbm.collection.v1.EventGranted.permission": + 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.EventGranted")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", fd.FullName())) } } @@ -4157,25 +3963,22 @@ func (x *fastReflection_EventGranted) 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_EventGranted) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventRenounced) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.EventGranted.contract_id": + case "lbm.collection.v1.EventRenounced.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": + case "lbm.collection.v1.EventRenounced.grantee": value := x.Grantee return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventGranted.permission": + 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.EventGranted")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", descriptor.FullName())) } } @@ -4189,21 +3992,19 @@ func (x *fastReflection_EventGranted) Get(descriptor protoreflect.FieldDescripto // 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) { +func (x *fastReflection_EventRenounced) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.EventGranted.contract_id": + case "lbm.collection.v1.EventRenounced.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventGranted.granter": - x.Granter = value.Interface().(string) - case "lbm.collection.v1.EventGranted.grantee": + case "lbm.collection.v1.EventRenounced.grantee": x.Grantee = value.Interface().(string) - case "lbm.collection.v1.EventGranted.permission": + 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.EventGranted")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", fd.FullName())) } } @@ -4217,52 +4018,48 @@ func (x *fastReflection_EventGranted) Set(fd protoreflect.FieldDescriptor, value // 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 { +func (x *fastReflection_EventRenounced) 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")) + 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.EventGranted")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted 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_EventGranted) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventRenounced) 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": + case "lbm.collection.v1.EventRenounced.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventGranted.grantee": + case "lbm.collection.v1.EventRenounced.grantee": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventGranted.permission": + 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.EventGranted")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) } - panic(fmt.Errorf("message lbm.collection.v1.EventGranted 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_EventGranted) 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.EventGranted", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventRenounced", d.FullName())) } panic("unreachable") } @@ -4270,7 +4067,7 @@ func (x *fastReflection_EventGranted) 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_EventGranted) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_EventRenounced) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4281,7 +4078,7 @@ func (x *fastReflection_EventGranted) 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_EventGranted) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_EventRenounced) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4293,7 +4090,7 @@ func (x *fastReflection_EventGranted) 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_EventGranted) IsValid() bool { +func (x *fastReflection_EventRenounced) IsValid() bool { return x != nil } @@ -4303,9 +4100,9 @@ func (x *fastReflection_EventGranted) 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_EventGranted) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventGranted) + x := input.Message.Interface().(*EventRenounced) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4321,10 +4118,6 @@ func (x *fastReflection_EventGranted) ProtoMethods() *protoiface.Methods { 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)) @@ -4342,7 +4135,7 @@ func (x *fastReflection_EventGranted) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventGranted) + x := input.Message.Interface().(*EventRenounced) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4364,20 +4157,13 @@ func (x *fastReflection_EventGranted) ProtoMethods() *protoiface.Methods { if x.Permission != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Permission)) i-- - dAtA[i] = 0x20 + 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] = 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 { @@ -4398,7 +4184,7 @@ func (x *fastReflection_EventGranted) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventGranted) + x := input.Message.Interface().(*EventRenounced) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4430,10 +4216,10 @@ func (x *fastReflection_EventGranted) 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: EventGranted: 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: EventGranted: 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: @@ -4470,7 +4256,7 @@ func (x *fastReflection_EventGranted) 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 Granter", 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 { @@ -4498,13 +4284,13 @@ func (x *fastReflection_EventGranted) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Granter = string(dAtA[iNdEx:postIndex]) + x.Grantee = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) } - var stringLen uint64 + x.Permission = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4514,48 +4300,16 @@ func (x *fastReflection_EventGranted) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.Permission |= Permission(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 + 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 @@ -4586,30 +4340,83 @@ func (x *fastReflection_EventGranted) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_EventMintedNFT_4_list)(nil) + +type _EventMintedNFT_4_list struct { + list *[]*NFT +} + +func (x *_EventMintedNFT_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_EventMintedNFT_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_EventMintedNFT_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*NFT) + (*x.list)[i] = concreteValue +} + +func (x *_EventMintedNFT_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*NFT) + *x.list = append(*x.list, concreteValue) +} + +func (x *_EventMintedNFT_4_list) AppendMutable() protoreflect.Value { + v := new(NFT) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_EventMintedNFT_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_EventMintedNFT_4_list) NewElement() protoreflect.Value { + v := new(NFT) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_EventMintedNFT_4_list) IsValid() bool { + return x.list != nil +} + var ( - md_EventRenounced protoreflect.MessageDescriptor - fd_EventRenounced_contract_id protoreflect.FieldDescriptor - fd_EventRenounced_grantee protoreflect.FieldDescriptor - fd_EventRenounced_permission protoreflect.FieldDescriptor + md_EventMintedNFT protoreflect.MessageDescriptor + fd_EventMintedNFT_contract_id protoreflect.FieldDescriptor + fd_EventMintedNFT_operator protoreflect.FieldDescriptor + fd_EventMintedNFT_to protoreflect.FieldDescriptor + fd_EventMintedNFT_tokens 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") + md_EventMintedNFT = File_lbm_collection_v1_event_proto.Messages().ByName("EventMintedNFT") + fd_EventMintedNFT_contract_id = md_EventMintedNFT.Fields().ByName("contract_id") + fd_EventMintedNFT_operator = md_EventMintedNFT.Fields().ByName("operator") + fd_EventMintedNFT_to = md_EventMintedNFT.Fields().ByName("to") + fd_EventMintedNFT_tokens = md_EventMintedNFT.Fields().ByName("tokens") } -var _ protoreflect.Message = (*fastReflection_EventRenounced)(nil) +var _ protoreflect.Message = (*fastReflection_EventMintedNFT)(nil) -type fastReflection_EventRenounced EventRenounced +type fastReflection_EventMintedNFT EventMintedNFT -func (x *EventRenounced) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventRenounced)(x) +func (x *EventMintedNFT) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventMintedNFT)(x) } -func (x *EventRenounced) slowProtoReflect() protoreflect.Message { +func (x *EventMintedNFT) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_event_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4621,43 +4428,43 @@ func (x *EventRenounced) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EventRenounced_messageType fastReflection_EventRenounced_messageType -var _ protoreflect.MessageType = fastReflection_EventRenounced_messageType{} +var _fastReflection_EventMintedNFT_messageType fastReflection_EventMintedNFT_messageType +var _ protoreflect.MessageType = fastReflection_EventMintedNFT_messageType{} -type fastReflection_EventRenounced_messageType struct{} +type fastReflection_EventMintedNFT_messageType struct{} -func (x fastReflection_EventRenounced_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventRenounced)(nil) +func (x fastReflection_EventMintedNFT_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventMintedNFT)(nil) } -func (x fastReflection_EventRenounced_messageType) New() protoreflect.Message { - return new(fastReflection_EventRenounced) +func (x fastReflection_EventMintedNFT_messageType) New() protoreflect.Message { + return new(fastReflection_EventMintedNFT) } -func (x fastReflection_EventRenounced_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventRenounced +func (x fastReflection_EventMintedNFT_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventMintedNFT } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EventRenounced) Descriptor() protoreflect.MessageDescriptor { - return md_EventRenounced +func (x *fastReflection_EventMintedNFT) Descriptor() protoreflect.MessageDescriptor { + return md_EventMintedNFT } // 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 +func (x *fastReflection_EventMintedNFT) Type() protoreflect.MessageType { + return _fastReflection_EventMintedNFT_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventRenounced) New() protoreflect.Message { - return new(fastReflection_EventRenounced) +func (x *fastReflection_EventMintedNFT) New() protoreflect.Message { + return new(fastReflection_EventMintedNFT) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EventRenounced) Interface() protoreflect.ProtoMessage { - return (*EventRenounced)(x) +func (x *fastReflection_EventMintedNFT) Interface() protoreflect.ProtoMessage { + return (*EventMintedNFT)(x) } // Range iterates over every populated field in an undefined order, @@ -4665,22 +4472,28 @@ func (x *fastReflection_EventRenounced) 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_EventRenounced) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_EventMintedNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventRenounced_contract_id, value) { + if !f(fd_EventMintedNFT_contract_id, value) { return } } - if x.Grantee != "" { - value := protoreflect.ValueOfString(x.Grantee) - if !f(fd_EventRenounced_grantee, value) { + if x.Operator != "" { + value := protoreflect.ValueOfString(x.Operator) + if !f(fd_EventMintedNFT_operator, value) { return } } - if x.Permission != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Permission)) - if !f(fd_EventRenounced_permission, value) { + if x.To != "" { + value := protoreflect.ValueOfString(x.To) + if !f(fd_EventMintedNFT_to, value) { + return + } + } + if len(x.Tokens) != 0 { + value := protoreflect.ValueOfList(&_EventMintedNFT_4_list{list: &x.Tokens}) + if !f(fd_EventMintedNFT_tokens, value) { return } } @@ -4697,19 +4510,21 @@ func (x *fastReflection_EventRenounced) Range(f func(protoreflect.FieldDescripto // 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 { +func (x *fastReflection_EventMintedNFT) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.EventRenounced.contract_id": + case "lbm.collection.v1.EventMintedNFT.contract_id": return x.ContractId != "" - case "lbm.collection.v1.EventRenounced.grantee": - return x.Grantee != "" - case "lbm.collection.v1.EventRenounced.permission": - return x.Permission != 0 + case "lbm.collection.v1.EventMintedNFT.operator": + return x.Operator != "" + case "lbm.collection.v1.EventMintedNFT.to": + return x.To != "" + case "lbm.collection.v1.EventMintedNFT.tokens": + return len(x.Tokens) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT does not contain field %s", fd.FullName())) } } @@ -4719,19 +4534,21 @@ func (x *fastReflection_EventRenounced) Has(fd protoreflect.FieldDescriptor) boo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventRenounced) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_EventMintedNFT) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.EventRenounced.contract_id": + case "lbm.collection.v1.EventMintedNFT.contract_id": x.ContractId = "" - case "lbm.collection.v1.EventRenounced.grantee": - x.Grantee = "" - case "lbm.collection.v1.EventRenounced.permission": - x.Permission = 0 + case "lbm.collection.v1.EventMintedNFT.operator": + x.Operator = "" + case "lbm.collection.v1.EventMintedNFT.to": + x.To = "" + case "lbm.collection.v1.EventMintedNFT.tokens": + x.Tokens = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT does not contain field %s", fd.FullName())) } } @@ -4741,22 +4558,28 @@ func (x *fastReflection_EventRenounced) 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_EventRenounced) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventMintedNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.EventRenounced.contract_id": + case "lbm.collection.v1.EventMintedNFT.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventRenounced.grantee": - value := x.Grantee + case "lbm.collection.v1.EventMintedNFT.operator": + value := x.Operator return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventRenounced.permission": - value := x.Permission - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "lbm.collection.v1.EventMintedNFT.to": + value := x.To + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.EventMintedNFT.tokens": + if len(x.Tokens) == 0 { + return protoreflect.ValueOfList(&_EventMintedNFT_4_list{}) + } + listValue := &_EventMintedNFT_4_list{list: &x.Tokens} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT does not contain field %s", descriptor.FullName())) } } @@ -4770,19 +4593,23 @@ func (x *fastReflection_EventRenounced) Get(descriptor protoreflect.FieldDescrip // 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) { +func (x *fastReflection_EventMintedNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.EventRenounced.contract_id": + case "lbm.collection.v1.EventMintedNFT.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()) + case "lbm.collection.v1.EventMintedNFT.operator": + x.Operator = value.Interface().(string) + case "lbm.collection.v1.EventMintedNFT.to": + x.To = value.Interface().(string) + case "lbm.collection.v1.EventMintedNFT.tokens": + lv := value.List() + clv := lv.(*_EventMintedNFT_4_list) + x.Tokens = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT does not contain field %s", fd.FullName())) } } @@ -4796,48 +4623,57 @@ func (x *fastReflection_EventRenounced) Set(fd protoreflect.FieldDescriptor, val // 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 { +func (x *fastReflection_EventMintedNFT) 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")) + case "lbm.collection.v1.EventMintedNFT.tokens": + if x.Tokens == nil { + x.Tokens = []*NFT{} + } + value := &_EventMintedNFT_4_list{list: &x.Tokens} + return protoreflect.ValueOfList(value) + case "lbm.collection.v1.EventMintedNFT.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventMintedNFT is not mutable")) + case "lbm.collection.v1.EventMintedNFT.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.EventMintedNFT is not mutable")) + case "lbm.collection.v1.EventMintedNFT.to": + panic(fmt.Errorf("field to of message lbm.collection.v1.EventMintedNFT is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT 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 { +func (x *fastReflection_EventMintedNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventRenounced.contract_id": + case "lbm.collection.v1.EventMintedNFT.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventRenounced.grantee": + case "lbm.collection.v1.EventMintedNFT.operator": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventRenounced.permission": - return protoreflect.ValueOfEnum(0) + case "lbm.collection.v1.EventMintedNFT.to": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.EventMintedNFT.tokens": + list := []*NFT{} + return protoreflect.ValueOfList(&_EventMintedNFT_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRenounced")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventRenounced does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT 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 { +func (x *fastReflection_EventMintedNFT) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventMintedNFT", d.FullName())) } panic("unreachable") } @@ -4845,7 +4681,7 @@ func (x *fastReflection_EventRenounced) WhichOneof(d protoreflect.OneofDescripto // 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 { +func (x *fastReflection_EventMintedNFT) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4856,7 +4692,7 @@ func (x *fastReflection_EventRenounced) 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_EventRenounced) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_EventMintedNFT) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4868,7 +4704,7 @@ func (x *fastReflection_EventRenounced) 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_EventRenounced) IsValid() bool { +func (x *fastReflection_EventMintedNFT) IsValid() bool { return x != nil } @@ -4878,9 +4714,9 @@ func (x *fastReflection_EventRenounced) 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_EventRenounced) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_EventMintedNFT) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventRenounced) + x := input.Message.Interface().(*EventMintedNFT) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4896,12 +4732,19 @@ func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Grantee) + l = len(x.Operator) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.Permission != 0 { - n += 1 + runtime.Sov(uint64(x.Permission)) + l = len(x.To) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Tokens) > 0 { + for _, e := range x.Tokens { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } if x.unknownFields != nil { n += len(x.unknownFields) @@ -4913,7 +4756,7 @@ func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventRenounced) + x := input.Message.Interface().(*EventMintedNFT) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4932,15 +4775,33 @@ func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Permission != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Permission)) + if len(x.Tokens) > 0 { + for iNdEx := len(x.Tokens) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Tokens[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] = 0x18 + dAtA[i] = 0x1a } - if len(x.Grantee) > 0 { - i -= len(x.Grantee) - copy(dAtA[i:], x.Grantee) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Grantee))) + 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 } @@ -4962,7 +4823,7 @@ func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventRenounced) + x := input.Message.Interface().(*EventMintedNFT) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4994,10 +4855,10 @@ func (x *fastReflection_EventRenounced) 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: EventRenounced: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventMintedNFT: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventMintedNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5034,7 +4895,7 @@ func (x *fastReflection_EventRenounced) 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 Grantee", 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 { @@ -5062,13 +4923,13 @@ func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Grantee = string(dAtA[iNdEx:postIndex]) + x.Operator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } - x.Permission = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -5078,11 +4939,58 @@ func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.Permission |= Permission(b&0x7F) << shift + 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 Tokens", 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.Tokens = append(x.Tokens, &NFT{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Tokens[len(x.Tokens)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5118,83 +5026,83 @@ func (x *fastReflection_EventRenounced) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_EventMintedFT_4_list)(nil) +var _ protoreflect.List = (*_EventBurned_4_list)(nil) -type _EventMintedFT_4_list struct { +type _EventBurned_4_list struct { list *[]*Coin } -func (x *_EventMintedFT_4_list) Len() int { +func (x *_EventBurned_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_EventMintedFT_4_list) Get(i int) protoreflect.Value { +func (x *_EventBurned_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) { +func (x *_EventBurned_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) { +func (x *_EventBurned_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 { +func (x *_EventBurned_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) { +func (x *_EventBurned_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 { +func (x *_EventBurned_4_list) NewElement() protoreflect.Value { v := new(Coin) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EventMintedFT_4_list) IsValid() bool { +func (x *_EventBurned_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_EventBurned protoreflect.MessageDescriptor + fd_EventBurned_contract_id protoreflect.FieldDescriptor + fd_EventBurned_operator protoreflect.FieldDescriptor + fd_EventBurned_from protoreflect.FieldDescriptor + fd_EventBurned_amount 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_EventBurned = File_lbm_collection_v1_event_proto.Messages().ByName("EventBurned") + fd_EventBurned_contract_id = md_EventBurned.Fields().ByName("contract_id") + fd_EventBurned_operator = md_EventBurned.Fields().ByName("operator") + fd_EventBurned_from = md_EventBurned.Fields().ByName("from") + fd_EventBurned_amount = md_EventBurned.Fields().ByName("amount") } -var _ protoreflect.Message = (*fastReflection_EventMintedFT)(nil) +var _ protoreflect.Message = (*fastReflection_EventBurned)(nil) -type fastReflection_EventMintedFT EventMintedFT +type fastReflection_EventBurned EventBurned -func (x *EventMintedFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventMintedFT)(x) +func (x *EventBurned) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventBurned)(x) } -func (x *EventMintedFT) slowProtoReflect() protoreflect.Message { +func (x *EventBurned) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_event_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5206,43 +5114,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_EventBurned_messageType fastReflection_EventBurned_messageType +var _ protoreflect.MessageType = fastReflection_EventBurned_messageType{} -type fastReflection_EventMintedFT_messageType struct{} +type fastReflection_EventBurned_messageType struct{} -func (x fastReflection_EventMintedFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventMintedFT)(nil) +func (x fastReflection_EventBurned_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventBurned)(nil) } -func (x fastReflection_EventMintedFT_messageType) New() protoreflect.Message { - return new(fastReflection_EventMintedFT) +func (x fastReflection_EventBurned_messageType) New() protoreflect.Message { + return new(fastReflection_EventBurned) } -func (x fastReflection_EventMintedFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventMintedFT +func (x fastReflection_EventBurned_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventBurned } // 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_EventBurned) Descriptor() protoreflect.MessageDescriptor { + return md_EventBurned } // 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_EventBurned) Type() protoreflect.MessageType { + return _fastReflection_EventBurned_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventMintedFT) New() protoreflect.Message { - return new(fastReflection_EventMintedFT) +func (x *fastReflection_EventBurned) New() protoreflect.Message { + return new(fastReflection_EventBurned) } // 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_EventBurned) Interface() protoreflect.ProtoMessage { + return (*EventBurned)(x) } // Range iterates over every populated field in an undefined order, @@ -5250,28 +5158,28 @@ 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_EventBurned) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventMintedFT_contract_id, value) { + if !f(fd_EventBurned_contract_id, value) { return } } if x.Operator != "" { value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventMintedFT_operator, value) { + if !f(fd_EventBurned_operator, value) { return } } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_EventMintedFT_to, value) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_EventBurned_from, value) { return } } if len(x.Amount) != 0 { - value := protoreflect.ValueOfList(&_EventMintedFT_4_list{list: &x.Amount}) - if !f(fd_EventMintedFT_amount, value) { + value := protoreflect.ValueOfList(&_EventBurned_4_list{list: &x.Amount}) + if !f(fd_EventBurned_amount, value) { return } } @@ -5288,21 +5196,21 @@ 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_EventBurned) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.EventMintedFT.contract_id": + case "lbm.collection.v1.EventBurned.contract_id": return x.ContractId != "" - case "lbm.collection.v1.EventMintedFT.operator": + case "lbm.collection.v1.EventBurned.operator": return x.Operator != "" - case "lbm.collection.v1.EventMintedFT.to": - return x.To != "" - case "lbm.collection.v1.EventMintedFT.amount": + case "lbm.collection.v1.EventBurned.from": + return x.From != "" + case "lbm.collection.v1.EventBurned.amount": return len(x.Amount) != 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.EventBurned")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventBurned does not contain field %s", fd.FullName())) } } @@ -5312,21 +5220,21 @@ 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_EventBurned) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.EventMintedFT.contract_id": + case "lbm.collection.v1.EventBurned.contract_id": x.ContractId = "" - case "lbm.collection.v1.EventMintedFT.operator": + case "lbm.collection.v1.EventBurned.operator": x.Operator = "" - case "lbm.collection.v1.EventMintedFT.to": - x.To = "" - case "lbm.collection.v1.EventMintedFT.amount": + case "lbm.collection.v1.EventBurned.from": + x.From = "" + case "lbm.collection.v1.EventBurned.amount": x.Amount = nil 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.EventBurned")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventBurned does not contain field %s", fd.FullName())) } } @@ -5336,28 +5244,28 @@ 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_EventBurned) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.EventMintedFT.contract_id": + case "lbm.collection.v1.EventBurned.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventMintedFT.operator": + case "lbm.collection.v1.EventBurned.operator": value := x.Operator return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventMintedFT.to": - value := x.To + case "lbm.collection.v1.EventBurned.from": + value := x.From return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventMintedFT.amount": + case "lbm.collection.v1.EventBurned.amount": if len(x.Amount) == 0 { - return protoreflect.ValueOfList(&_EventMintedFT_4_list{}) + return protoreflect.ValueOfList(&_EventBurned_4_list{}) } - listValue := &_EventMintedFT_4_list{list: &x.Amount} + listValue := &_EventBurned_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.EventMintedFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventBurned")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventBurned does not contain field %s", descriptor.FullName())) } } @@ -5371,23 +5279,23 @@ 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_EventBurned) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.EventMintedFT.contract_id": + case "lbm.collection.v1.EventBurned.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventMintedFT.operator": + case "lbm.collection.v1.EventBurned.operator": x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventMintedFT.to": - x.To = value.Interface().(string) - case "lbm.collection.v1.EventMintedFT.amount": + case "lbm.collection.v1.EventBurned.from": + x.From = value.Interface().(string) + case "lbm.collection.v1.EventBurned.amount": lv := value.List() - clv := lv.(*_EventMintedFT_4_list) + clv := lv.(*_EventBurned_4_list) x.Amount = *clv.list 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.EventBurned")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventBurned does not contain field %s", fd.FullName())) } } @@ -5401,57 +5309,57 @@ 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_EventBurned) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventMintedFT.amount": + case "lbm.collection.v1.EventBurned.amount": if x.Amount == nil { x.Amount = []*Coin{} } - value := &_EventMintedFT_4_list{list: &x.Amount} + value := &_EventBurned_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")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedFT")) + case "lbm.collection.v1.EventBurned.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventBurned is not mutable")) + case "lbm.collection.v1.EventBurned.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.EventBurned is not mutable")) + case "lbm.collection.v1.EventBurned.from": + panic(fmt.Errorf("field from of message lbm.collection.v1.EventBurned is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventBurned")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventBurned 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_EventBurned) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventMintedFT.contract_id": + case "lbm.collection.v1.EventBurned.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventMintedFT.operator": + case "lbm.collection.v1.EventBurned.operator": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventMintedFT.to": + case "lbm.collection.v1.EventBurned.from": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventMintedFT.amount": + case "lbm.collection.v1.EventBurned.amount": list := []*Coin{} - return protoreflect.ValueOfList(&_EventMintedFT_4_list{list: &list}) + return protoreflect.ValueOfList(&_EventBurned_4_list{list: &list}) 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.EventBurned")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventBurned 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_EventBurned) 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.EventBurned", d.FullName())) } panic("unreachable") } @@ -5459,7 +5367,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_EventBurned) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5470,7 +5378,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_EventBurned) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5482,7 +5390,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_EventBurned) IsValid() bool { return x != nil } @@ -5492,9 +5400,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_EventBurned) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventMintedFT) + x := input.Message.Interface().(*EventBurned) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5514,7 +5422,7 @@ func (x *fastReflection_EventMintedFT) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.To) + l = len(x.From) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -5534,7 +5442,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().(*EventBurned) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5569,10 +5477,10 @@ func (x *fastReflection_EventMintedFT) ProtoMethods() *protoiface.Methods { 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 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 } @@ -5601,7 +5509,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().(*EventBurned) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5633,10 +5541,10 @@ 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: EventBurned: 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: EventBurned: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5705,7 +5613,7 @@ func (x *fastReflection_EventMintedFT) 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 To", 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 { @@ -5733,7 +5641,7 @@ 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.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -5804,83 +5712,81 @@ func (x *fastReflection_EventMintedFT) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_EventMintedNFT_4_list)(nil) +var _ protoreflect.List = (*_EventModifiedContract_3_list)(nil) -type _EventMintedNFT_4_list struct { - list *[]*NFT +type _EventModifiedContract_3_list struct { + list *[]*Attribute } -func (x *_EventMintedNFT_4_list) Len() int { +func (x *_EventModifiedContract_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_EventMintedNFT_4_list) Get(i int) protoreflect.Value { +func (x *_EventModifiedContract_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_EventMintedNFT_4_list) Set(i int, value protoreflect.Value) { +func (x *_EventModifiedContract_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NFT) + concreteValue := valueUnwrapped.Interface().(*Attribute) (*x.list)[i] = concreteValue } -func (x *_EventMintedNFT_4_list) Append(value protoreflect.Value) { +func (x *_EventModifiedContract_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NFT) + concreteValue := valueUnwrapped.Interface().(*Attribute) *x.list = append(*x.list, concreteValue) } -func (x *_EventMintedNFT_4_list) AppendMutable() protoreflect.Value { - v := new(NFT) +func (x *_EventModifiedContract_3_list) AppendMutable() protoreflect.Value { + v := new(Attribute) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EventMintedNFT_4_list) Truncate(n int) { +func (x *_EventModifiedContract_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_EventMintedNFT_4_list) NewElement() protoreflect.Value { - v := new(NFT) +func (x *_EventModifiedContract_3_list) NewElement() protoreflect.Value { + v := new(Attribute) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EventMintedNFT_4_list) IsValid() bool { +func (x *_EventModifiedContract_3_list) IsValid() bool { return x.list != nil } var ( - md_EventMintedNFT protoreflect.MessageDescriptor - fd_EventMintedNFT_contract_id protoreflect.FieldDescriptor - fd_EventMintedNFT_operator protoreflect.FieldDescriptor - fd_EventMintedNFT_to protoreflect.FieldDescriptor - fd_EventMintedNFT_tokens protoreflect.FieldDescriptor + md_EventModifiedContract protoreflect.MessageDescriptor + fd_EventModifiedContract_contract_id protoreflect.FieldDescriptor + fd_EventModifiedContract_operator protoreflect.FieldDescriptor + fd_EventModifiedContract_changes protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_event_proto_init() - md_EventMintedNFT = File_lbm_collection_v1_event_proto.Messages().ByName("EventMintedNFT") - fd_EventMintedNFT_contract_id = md_EventMintedNFT.Fields().ByName("contract_id") - fd_EventMintedNFT_operator = md_EventMintedNFT.Fields().ByName("operator") - fd_EventMintedNFT_to = md_EventMintedNFT.Fields().ByName("to") - fd_EventMintedNFT_tokens = md_EventMintedNFT.Fields().ByName("tokens") + md_EventModifiedContract = File_lbm_collection_v1_event_proto.Messages().ByName("EventModifiedContract") + fd_EventModifiedContract_contract_id = md_EventModifiedContract.Fields().ByName("contract_id") + fd_EventModifiedContract_operator = md_EventModifiedContract.Fields().ByName("operator") + fd_EventModifiedContract_changes = md_EventModifiedContract.Fields().ByName("changes") } -var _ protoreflect.Message = (*fastReflection_EventMintedNFT)(nil) +var _ protoreflect.Message = (*fastReflection_EventModifiedContract)(nil) -type fastReflection_EventMintedNFT EventMintedNFT +type fastReflection_EventModifiedContract EventModifiedContract -func (x *EventMintedNFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventMintedNFT)(x) +func (x *EventModifiedContract) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventModifiedContract)(x) } -func (x *EventMintedNFT) slowProtoReflect() protoreflect.Message { +func (x *EventModifiedContract) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_event_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5892,43 +5798,43 @@ func (x *EventMintedNFT) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EventMintedNFT_messageType fastReflection_EventMintedNFT_messageType -var _ protoreflect.MessageType = fastReflection_EventMintedNFT_messageType{} +var _fastReflection_EventModifiedContract_messageType fastReflection_EventModifiedContract_messageType +var _ protoreflect.MessageType = fastReflection_EventModifiedContract_messageType{} -type fastReflection_EventMintedNFT_messageType struct{} +type fastReflection_EventModifiedContract_messageType struct{} -func (x fastReflection_EventMintedNFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventMintedNFT)(nil) +func (x fastReflection_EventModifiedContract_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventModifiedContract)(nil) } -func (x fastReflection_EventMintedNFT_messageType) New() protoreflect.Message { - return new(fastReflection_EventMintedNFT) +func (x fastReflection_EventModifiedContract_messageType) New() protoreflect.Message { + return new(fastReflection_EventModifiedContract) } -func (x fastReflection_EventMintedNFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventMintedNFT +func (x fastReflection_EventModifiedContract_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventModifiedContract } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EventMintedNFT) Descriptor() protoreflect.MessageDescriptor { - return md_EventMintedNFT +func (x *fastReflection_EventModifiedContract) Descriptor() protoreflect.MessageDescriptor { + return md_EventModifiedContract } // 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_EventMintedNFT) Type() protoreflect.MessageType { - return _fastReflection_EventMintedNFT_messageType +func (x *fastReflection_EventModifiedContract) Type() protoreflect.MessageType { + return _fastReflection_EventModifiedContract_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventMintedNFT) New() protoreflect.Message { - return new(fastReflection_EventMintedNFT) +func (x *fastReflection_EventModifiedContract) New() protoreflect.Message { + return new(fastReflection_EventModifiedContract) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EventMintedNFT) Interface() protoreflect.ProtoMessage { - return (*EventMintedNFT)(x) +func (x *fastReflection_EventModifiedContract) Interface() protoreflect.ProtoMessage { + return (*EventModifiedContract)(x) } // Range iterates over every populated field in an undefined order, @@ -5936,28 +5842,22 @@ func (x *fastReflection_EventMintedNFT) 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_EventMintedNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_EventModifiedContract) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventMintedNFT_contract_id, value) { + if !f(fd_EventModifiedContract_contract_id, value) { return } } if x.Operator != "" { value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventMintedNFT_operator, value) { - return - } - } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_EventMintedNFT_to, value) { + if !f(fd_EventModifiedContract_operator, value) { return } } - if len(x.Tokens) != 0 { - value := protoreflect.ValueOfList(&_EventMintedNFT_4_list{list: &x.Tokens}) - if !f(fd_EventMintedNFT_tokens, value) { + if len(x.Changes) != 0 { + value := protoreflect.ValueOfList(&_EventModifiedContract_3_list{list: &x.Changes}) + if !f(fd_EventModifiedContract_changes, value) { return } } @@ -5974,21 +5874,19 @@ func (x *fastReflection_EventMintedNFT) Range(f func(protoreflect.FieldDescripto // 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_EventMintedNFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_EventModifiedContract) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.EventMintedNFT.contract_id": + case "lbm.collection.v1.EventModifiedContract.contract_id": return x.ContractId != "" - case "lbm.collection.v1.EventMintedNFT.operator": + case "lbm.collection.v1.EventModifiedContract.operator": return x.Operator != "" - case "lbm.collection.v1.EventMintedNFT.to": - return x.To != "" - case "lbm.collection.v1.EventMintedNFT.tokens": - return len(x.Tokens) != 0 + case "lbm.collection.v1.EventModifiedContract.changes": + return len(x.Changes) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract does not contain field %s", fd.FullName())) } } @@ -5998,21 +5896,19 @@ func (x *fastReflection_EventMintedNFT) Has(fd protoreflect.FieldDescriptor) boo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventMintedNFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_EventModifiedContract) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.EventMintedNFT.contract_id": + case "lbm.collection.v1.EventModifiedContract.contract_id": x.ContractId = "" - case "lbm.collection.v1.EventMintedNFT.operator": + case "lbm.collection.v1.EventModifiedContract.operator": x.Operator = "" - case "lbm.collection.v1.EventMintedNFT.to": - x.To = "" - case "lbm.collection.v1.EventMintedNFT.tokens": - x.Tokens = nil + case "lbm.collection.v1.EventModifiedContract.changes": + x.Changes = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract does not contain field %s", fd.FullName())) } } @@ -6022,28 +5918,25 @@ func (x *fastReflection_EventMintedNFT) 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_EventMintedNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventModifiedContract) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.EventMintedNFT.contract_id": + case "lbm.collection.v1.EventModifiedContract.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventMintedNFT.operator": + case "lbm.collection.v1.EventModifiedContract.operator": value := x.Operator return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventMintedNFT.to": - value := x.To - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventMintedNFT.tokens": - if len(x.Tokens) == 0 { - return protoreflect.ValueOfList(&_EventMintedNFT_4_list{}) + case "lbm.collection.v1.EventModifiedContract.changes": + if len(x.Changes) == 0 { + return protoreflect.ValueOfList(&_EventModifiedContract_3_list{}) } - listValue := &_EventMintedNFT_4_list{list: &x.Tokens} + listValue := &_EventModifiedContract_3_list{list: &x.Changes} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract does not contain field %s", descriptor.FullName())) } } @@ -6057,23 +5950,21 @@ func (x *fastReflection_EventMintedNFT) Get(descriptor protoreflect.FieldDescrip // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventMintedNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_EventModifiedContract) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.EventMintedNFT.contract_id": + case "lbm.collection.v1.EventModifiedContract.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventMintedNFT.operator": + case "lbm.collection.v1.EventModifiedContract.operator": x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventMintedNFT.to": - x.To = value.Interface().(string) - case "lbm.collection.v1.EventMintedNFT.tokens": + case "lbm.collection.v1.EventModifiedContract.changes": lv := value.List() - clv := lv.(*_EventMintedNFT_4_list) - x.Tokens = *clv.list + clv := lv.(*_EventModifiedContract_3_list) + x.Changes = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract does not contain field %s", fd.FullName())) } } @@ -6087,57 +5978,53 @@ func (x *fastReflection_EventMintedNFT) Set(fd protoreflect.FieldDescriptor, val // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventMintedNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventModifiedContract) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventMintedNFT.tokens": - if x.Tokens == nil { - x.Tokens = []*NFT{} + case "lbm.collection.v1.EventModifiedContract.changes": + if x.Changes == nil { + x.Changes = []*Attribute{} } - value := &_EventMintedNFT_4_list{list: &x.Tokens} + value := &_EventModifiedContract_3_list{list: &x.Changes} return protoreflect.ValueOfList(value) - case "lbm.collection.v1.EventMintedNFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventMintedNFT is not mutable")) - case "lbm.collection.v1.EventMintedNFT.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventMintedNFT is not mutable")) - case "lbm.collection.v1.EventMintedNFT.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.EventMintedNFT is not mutable")) + case "lbm.collection.v1.EventModifiedContract.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventModifiedContract is not mutable")) + case "lbm.collection.v1.EventModifiedContract.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.EventModifiedContract is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract 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_EventMintedNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventModifiedContract) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventMintedNFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventMintedNFT.operator": + case "lbm.collection.v1.EventModifiedContract.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventMintedNFT.to": + case "lbm.collection.v1.EventModifiedContract.operator": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventMintedNFT.tokens": - list := []*NFT{} - return protoreflect.ValueOfList(&_EventMintedNFT_4_list{list: &list}) + case "lbm.collection.v1.EventModifiedContract.changes": + list := []*Attribute{} + return protoreflect.ValueOfList(&_EventModifiedContract_3_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventMintedNFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) } - panic(fmt.Errorf("message lbm.collection.v1.EventMintedNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract 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_EventMintedNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_EventModifiedContract) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventMintedNFT", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventModifiedContract", d.FullName())) } panic("unreachable") } @@ -6145,7 +6032,7 @@ func (x *fastReflection_EventMintedNFT) WhichOneof(d protoreflect.OneofDescripto // 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_EventMintedNFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_EventModifiedContract) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6156,7 +6043,7 @@ func (x *fastReflection_EventMintedNFT) 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_EventMintedNFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_EventModifiedContract) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6168,7 +6055,7 @@ func (x *fastReflection_EventMintedNFT) 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_EventMintedNFT) IsValid() bool { +func (x *fastReflection_EventModifiedContract) IsValid() bool { return x != nil } @@ -6178,9 +6065,9 @@ func (x *fastReflection_EventMintedNFT) 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_EventMintedNFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_EventModifiedContract) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventMintedNFT) + x := input.Message.Interface().(*EventModifiedContract) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6200,12 +6087,8 @@ func (x *fastReflection_EventMintedNFT) ProtoMethods() *protoiface.Methods { 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.Tokens) > 0 { - for _, e := range x.Tokens { + if len(x.Changes) > 0 { + for _, e := range x.Changes { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -6220,7 +6103,7 @@ func (x *fastReflection_EventMintedNFT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventMintedNFT) + x := input.Message.Interface().(*EventModifiedContract) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6239,9 +6122,9 @@ func (x *fastReflection_EventMintedNFT) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Tokens) > 0 { - for iNdEx := len(x.Tokens) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Tokens[iNdEx]) + if len(x.Changes) > 0 { + for iNdEx := len(x.Changes) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Changes[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6252,16 +6135,9 @@ func (x *fastReflection_EventMintedNFT) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x22 + 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.Operator) > 0 { i -= len(x.Operator) copy(dAtA[i:], x.Operator) @@ -6287,7 +6163,7 @@ func (x *fastReflection_EventMintedNFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventMintedNFT) + x := input.Message.Interface().(*EventModifiedContract) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6319,10 +6195,10 @@ func (x *fastReflection_EventMintedNFT) 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: EventMintedNFT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventModifiedContract: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventMintedNFT: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventModifiedContract: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6391,39 +6267,7 @@ func (x *fastReflection_EventMintedNFT) 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 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 Tokens", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6450,8 +6294,8 @@ func (x *fastReflection_EventMintedNFT) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Tokens = append(x.Tokens, &NFT{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Tokens[len(x.Tokens)-1]); err != nil { + x.Changes = append(x.Changes, &Attribute{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Changes[len(x.Changes)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -6490,83 +6334,85 @@ func (x *fastReflection_EventMintedNFT) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_EventBurned_4_list)(nil) +var _ protoreflect.List = (*_EventModifiedTokenClass_4_list)(nil) -type _EventBurned_4_list struct { - list *[]*Coin +type _EventModifiedTokenClass_4_list struct { + list *[]*Attribute } -func (x *_EventBurned_4_list) Len() int { +func (x *_EventModifiedTokenClass_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_EventBurned_4_list) Get(i int) protoreflect.Value { +func (x *_EventModifiedTokenClass_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_EventBurned_4_list) Set(i int, value protoreflect.Value) { +func (x *_EventModifiedTokenClass_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) + concreteValue := valueUnwrapped.Interface().(*Attribute) (*x.list)[i] = concreteValue } -func (x *_EventBurned_4_list) Append(value protoreflect.Value) { +func (x *_EventModifiedTokenClass_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Coin) + concreteValue := valueUnwrapped.Interface().(*Attribute) *x.list = append(*x.list, concreteValue) } -func (x *_EventBurned_4_list) AppendMutable() protoreflect.Value { - v := new(Coin) +func (x *_EventModifiedTokenClass_4_list) AppendMutable() protoreflect.Value { + v := new(Attribute) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EventBurned_4_list) Truncate(n int) { +func (x *_EventModifiedTokenClass_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_EventBurned_4_list) NewElement() protoreflect.Value { - v := new(Coin) +func (x *_EventModifiedTokenClass_4_list) NewElement() protoreflect.Value { + v := new(Attribute) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EventBurned_4_list) IsValid() bool { +func (x *_EventModifiedTokenClass_4_list) IsValid() bool { return x.list != nil } var ( - md_EventBurned protoreflect.MessageDescriptor - fd_EventBurned_contract_id protoreflect.FieldDescriptor - fd_EventBurned_operator protoreflect.FieldDescriptor - fd_EventBurned_from protoreflect.FieldDescriptor - fd_EventBurned_amount protoreflect.FieldDescriptor + md_EventModifiedTokenClass protoreflect.MessageDescriptor + fd_EventModifiedTokenClass_contract_id protoreflect.FieldDescriptor + fd_EventModifiedTokenClass_operator protoreflect.FieldDescriptor + fd_EventModifiedTokenClass_token_type protoreflect.FieldDescriptor + fd_EventModifiedTokenClass_changes protoreflect.FieldDescriptor + fd_EventModifiedTokenClass_type_name protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_event_proto_init() - md_EventBurned = File_lbm_collection_v1_event_proto.Messages().ByName("EventBurned") - fd_EventBurned_contract_id = md_EventBurned.Fields().ByName("contract_id") - fd_EventBurned_operator = md_EventBurned.Fields().ByName("operator") - fd_EventBurned_from = md_EventBurned.Fields().ByName("from") - fd_EventBurned_amount = md_EventBurned.Fields().ByName("amount") + md_EventModifiedTokenClass = File_lbm_collection_v1_event_proto.Messages().ByName("EventModifiedTokenClass") + fd_EventModifiedTokenClass_contract_id = md_EventModifiedTokenClass.Fields().ByName("contract_id") + fd_EventModifiedTokenClass_operator = md_EventModifiedTokenClass.Fields().ByName("operator") + fd_EventModifiedTokenClass_token_type = md_EventModifiedTokenClass.Fields().ByName("token_type") + fd_EventModifiedTokenClass_changes = md_EventModifiedTokenClass.Fields().ByName("changes") + fd_EventModifiedTokenClass_type_name = md_EventModifiedTokenClass.Fields().ByName("type_name") } -var _ protoreflect.Message = (*fastReflection_EventBurned)(nil) +var _ protoreflect.Message = (*fastReflection_EventModifiedTokenClass)(nil) -type fastReflection_EventBurned EventBurned +type fastReflection_EventModifiedTokenClass EventModifiedTokenClass -func (x *EventBurned) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventBurned)(x) +func (x *EventModifiedTokenClass) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventModifiedTokenClass)(x) } -func (x *EventBurned) slowProtoReflect() protoreflect.Message { +func (x *EventModifiedTokenClass) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_event_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6578,43 +6424,43 @@ func (x *EventBurned) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EventBurned_messageType fastReflection_EventBurned_messageType -var _ protoreflect.MessageType = fastReflection_EventBurned_messageType{} +var _fastReflection_EventModifiedTokenClass_messageType fastReflection_EventModifiedTokenClass_messageType +var _ protoreflect.MessageType = fastReflection_EventModifiedTokenClass_messageType{} -type fastReflection_EventBurned_messageType struct{} +type fastReflection_EventModifiedTokenClass_messageType struct{} -func (x fastReflection_EventBurned_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventBurned)(nil) +func (x fastReflection_EventModifiedTokenClass_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventModifiedTokenClass)(nil) } -func (x fastReflection_EventBurned_messageType) New() protoreflect.Message { - return new(fastReflection_EventBurned) +func (x fastReflection_EventModifiedTokenClass_messageType) New() protoreflect.Message { + return new(fastReflection_EventModifiedTokenClass) } -func (x fastReflection_EventBurned_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventBurned +func (x fastReflection_EventModifiedTokenClass_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventModifiedTokenClass } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EventBurned) Descriptor() protoreflect.MessageDescriptor { - return md_EventBurned +func (x *fastReflection_EventModifiedTokenClass) Descriptor() protoreflect.MessageDescriptor { + return md_EventModifiedTokenClass } // 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_EventBurned) Type() protoreflect.MessageType { - return _fastReflection_EventBurned_messageType +func (x *fastReflection_EventModifiedTokenClass) Type() protoreflect.MessageType { + return _fastReflection_EventModifiedTokenClass_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventBurned) New() protoreflect.Message { - return new(fastReflection_EventBurned) +func (x *fastReflection_EventModifiedTokenClass) New() protoreflect.Message { + return new(fastReflection_EventModifiedTokenClass) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EventBurned) Interface() protoreflect.ProtoMessage { - return (*EventBurned)(x) +func (x *fastReflection_EventModifiedTokenClass) Interface() protoreflect.ProtoMessage { + return (*EventModifiedTokenClass)(x) } // Range iterates over every populated field in an undefined order, @@ -6622,28 +6468,34 @@ func (x *fastReflection_EventBurned) 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_EventBurned) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_EventModifiedTokenClass) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventBurned_contract_id, value) { + if !f(fd_EventModifiedTokenClass_contract_id, value) { return } } if x.Operator != "" { value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventBurned_operator, value) { + if !f(fd_EventModifiedTokenClass_operator, value) { return } } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_EventBurned_from, value) { + if x.TokenType != "" { + value := protoreflect.ValueOfString(x.TokenType) + if !f(fd_EventModifiedTokenClass_token_type, value) { return } } - if len(x.Amount) != 0 { - value := protoreflect.ValueOfList(&_EventBurned_4_list{list: &x.Amount}) - if !f(fd_EventBurned_amount, value) { + if len(x.Changes) != 0 { + value := protoreflect.ValueOfList(&_EventModifiedTokenClass_4_list{list: &x.Changes}) + if !f(fd_EventModifiedTokenClass_changes, value) { + return + } + } + if x.TypeName != "" { + value := protoreflect.ValueOfString(x.TypeName) + if !f(fd_EventModifiedTokenClass_type_name, value) { return } } @@ -6660,21 +6512,23 @@ func (x *fastReflection_EventBurned) 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_EventBurned) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_EventModifiedTokenClass) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.EventBurned.contract_id": + case "lbm.collection.v1.EventModifiedTokenClass.contract_id": return x.ContractId != "" - case "lbm.collection.v1.EventBurned.operator": + case "lbm.collection.v1.EventModifiedTokenClass.operator": return x.Operator != "" - case "lbm.collection.v1.EventBurned.from": - return x.From != "" - case "lbm.collection.v1.EventBurned.amount": - return len(x.Amount) != 0 + case "lbm.collection.v1.EventModifiedTokenClass.token_type": + return x.TokenType != "" + case "lbm.collection.v1.EventModifiedTokenClass.changes": + return len(x.Changes) != 0 + case "lbm.collection.v1.EventModifiedTokenClass.type_name": + return x.TypeName != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventBurned")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventBurned does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass does not contain field %s", fd.FullName())) } } @@ -6684,21 +6538,23 @@ func (x *fastReflection_EventBurned) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventBurned) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_EventModifiedTokenClass) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.EventBurned.contract_id": + case "lbm.collection.v1.EventModifiedTokenClass.contract_id": x.ContractId = "" - case "lbm.collection.v1.EventBurned.operator": + case "lbm.collection.v1.EventModifiedTokenClass.operator": x.Operator = "" - case "lbm.collection.v1.EventBurned.from": - x.From = "" - case "lbm.collection.v1.EventBurned.amount": - x.Amount = nil + case "lbm.collection.v1.EventModifiedTokenClass.token_type": + x.TokenType = "" + case "lbm.collection.v1.EventModifiedTokenClass.changes": + x.Changes = nil + case "lbm.collection.v1.EventModifiedTokenClass.type_name": + x.TypeName = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventBurned")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventBurned does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass does not contain field %s", fd.FullName())) } } @@ -6708,28 +6564,31 @@ func (x *fastReflection_EventBurned) 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_EventBurned) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventModifiedTokenClass) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.EventBurned.contract_id": + case "lbm.collection.v1.EventModifiedTokenClass.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventBurned.operator": + case "lbm.collection.v1.EventModifiedTokenClass.operator": value := x.Operator return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventBurned.from": - value := x.From + case "lbm.collection.v1.EventModifiedTokenClass.token_type": + value := x.TokenType return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventBurned.amount": - if len(x.Amount) == 0 { - return protoreflect.ValueOfList(&_EventBurned_4_list{}) + case "lbm.collection.v1.EventModifiedTokenClass.changes": + if len(x.Changes) == 0 { + return protoreflect.ValueOfList(&_EventModifiedTokenClass_4_list{}) } - listValue := &_EventBurned_4_list{list: &x.Amount} + listValue := &_EventModifiedTokenClass_4_list{list: &x.Changes} return protoreflect.ValueOfList(listValue) + case "lbm.collection.v1.EventModifiedTokenClass.type_name": + value := x.TypeName + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventBurned")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventBurned does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass does not contain field %s", descriptor.FullName())) } } @@ -6743,23 +6602,25 @@ func (x *fastReflection_EventBurned) Get(descriptor protoreflect.FieldDescriptor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventBurned) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_EventModifiedTokenClass) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.EventBurned.contract_id": + case "lbm.collection.v1.EventModifiedTokenClass.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventBurned.operator": + case "lbm.collection.v1.EventModifiedTokenClass.operator": x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventBurned.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.EventBurned.amount": + case "lbm.collection.v1.EventModifiedTokenClass.token_type": + x.TokenType = value.Interface().(string) + case "lbm.collection.v1.EventModifiedTokenClass.changes": lv := value.List() - clv := lv.(*_EventBurned_4_list) - x.Amount = *clv.list + clv := lv.(*_EventModifiedTokenClass_4_list) + x.Changes = *clv.list + case "lbm.collection.v1.EventModifiedTokenClass.type_name": + x.TypeName = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventBurned")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventBurned does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass does not contain field %s", fd.FullName())) } } @@ -6773,57 +6634,61 @@ func (x *fastReflection_EventBurned) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventBurned) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventModifiedTokenClass) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventBurned.amount": - if x.Amount == nil { - x.Amount = []*Coin{} + case "lbm.collection.v1.EventModifiedTokenClass.changes": + if x.Changes == nil { + x.Changes = []*Attribute{} } - value := &_EventBurned_4_list{list: &x.Amount} + value := &_EventModifiedTokenClass_4_list{list: &x.Changes} return protoreflect.ValueOfList(value) - case "lbm.collection.v1.EventBurned.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventBurned is not mutable")) - case "lbm.collection.v1.EventBurned.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventBurned is not mutable")) - case "lbm.collection.v1.EventBurned.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.EventBurned is not mutable")) + case "lbm.collection.v1.EventModifiedTokenClass.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventModifiedTokenClass is not mutable")) + case "lbm.collection.v1.EventModifiedTokenClass.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.EventModifiedTokenClass is not mutable")) + case "lbm.collection.v1.EventModifiedTokenClass.token_type": + panic(fmt.Errorf("field token_type of message lbm.collection.v1.EventModifiedTokenClass is not mutable")) + case "lbm.collection.v1.EventModifiedTokenClass.type_name": + panic(fmt.Errorf("field type_name of message lbm.collection.v1.EventModifiedTokenClass is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventBurned")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventBurned does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass 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_EventBurned) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventModifiedTokenClass) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventBurned.contract_id": + case "lbm.collection.v1.EventModifiedTokenClass.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventBurned.operator": + case "lbm.collection.v1.EventModifiedTokenClass.operator": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventBurned.from": + case "lbm.collection.v1.EventModifiedTokenClass.token_type": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.EventModifiedTokenClass.changes": + list := []*Attribute{} + return protoreflect.ValueOfList(&_EventModifiedTokenClass_4_list{list: &list}) + case "lbm.collection.v1.EventModifiedTokenClass.type_name": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventBurned.amount": - list := []*Coin{} - return protoreflect.ValueOfList(&_EventBurned_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventBurned")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) } - panic(fmt.Errorf("message lbm.collection.v1.EventBurned does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass 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_EventBurned) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_EventModifiedTokenClass) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventBurned", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventModifiedTokenClass", d.FullName())) } panic("unreachable") } @@ -6831,7 +6696,7 @@ func (x *fastReflection_EventBurned) 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_EventBurned) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_EventModifiedTokenClass) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6842,7 +6707,7 @@ func (x *fastReflection_EventBurned) 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_EventBurned) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_EventModifiedTokenClass) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6854,7 +6719,7 @@ func (x *fastReflection_EventBurned) 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_EventBurned) IsValid() bool { +func (x *fastReflection_EventModifiedTokenClass) IsValid() bool { return x != nil } @@ -6864,9 +6729,9 @@ func (x *fastReflection_EventBurned) 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_EventBurned) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_EventModifiedTokenClass) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventBurned) + x := input.Message.Interface().(*EventModifiedTokenClass) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6886,16 +6751,20 @@ func (x *fastReflection_EventBurned) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.From) + l = len(x.TokenType) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Amount) > 0 { - for _, e := range x.Amount { + if len(x.Changes) > 0 { + for _, e := range x.Changes { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } + l = len(x.TypeName) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -6906,7 +6775,7 @@ func (x *fastReflection_EventBurned) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventBurned) + x := input.Message.Interface().(*EventModifiedTokenClass) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6925,9 +6794,16 @@ func (x *fastReflection_EventBurned) 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 len(x.TypeName) > 0 { + i -= len(x.TypeName) + copy(dAtA[i:], x.TypeName) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TypeName))) + i-- + dAtA[i] = 0x2a + } + if len(x.Changes) > 0 { + for iNdEx := len(x.Changes) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Changes[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6941,10 +6817,10 @@ func (x *fastReflection_EventBurned) ProtoMethods() *protoiface.Methods { 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))) + 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 } @@ -6973,7 +6849,7 @@ func (x *fastReflection_EventBurned) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventBurned) + x := input.Message.Interface().(*EventModifiedTokenClass) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7005,10 +6881,10 @@ func (x *fastReflection_EventBurned) 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: EventBurned: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventModifiedTokenClass: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventBurned: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventModifiedTokenClass: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7077,7 +6953,7 @@ func (x *fastReflection_EventBurned) 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 From", 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 { @@ -7105,11 +6981,11 @@ func (x *fastReflection_EventBurned) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.From = string(dAtA[iNdEx:postIndex]) + 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 Amount", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7136,11 +7012,43 @@ func (x *fastReflection_EventBurned) ProtoMethods() *protoiface.Methods { 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 { + x.Changes = append(x.Changes, &Attribute{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Changes[len(x.Changes)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TypeName", 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.TypeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -7176,81 +7084,83 @@ func (x *fastReflection_EventBurned) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_EventModifiedContract_3_list)(nil) +var _ protoreflect.List = (*_EventModifiedNFT_4_list)(nil) -type _EventModifiedContract_3_list struct { +type _EventModifiedNFT_4_list struct { list *[]*Attribute } -func (x *_EventModifiedContract_3_list) Len() int { +func (x *_EventModifiedNFT_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_EventModifiedContract_3_list) Get(i int) protoreflect.Value { +func (x *_EventModifiedNFT_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_EventModifiedContract_3_list) Set(i int, value protoreflect.Value) { +func (x *_EventModifiedNFT_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Attribute) (*x.list)[i] = concreteValue } -func (x *_EventModifiedContract_3_list) Append(value protoreflect.Value) { +func (x *_EventModifiedNFT_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Attribute) *x.list = append(*x.list, concreteValue) } -func (x *_EventModifiedContract_3_list) AppendMutable() protoreflect.Value { +func (x *_EventModifiedNFT_4_list) AppendMutable() protoreflect.Value { v := new(Attribute) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EventModifiedContract_3_list) Truncate(n int) { +func (x *_EventModifiedNFT_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_EventModifiedContract_3_list) NewElement() protoreflect.Value { +func (x *_EventModifiedNFT_4_list) NewElement() protoreflect.Value { v := new(Attribute) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EventModifiedContract_3_list) IsValid() bool { +func (x *_EventModifiedNFT_4_list) IsValid() bool { return x.list != nil } var ( - md_EventModifiedContract protoreflect.MessageDescriptor - fd_EventModifiedContract_contract_id protoreflect.FieldDescriptor - fd_EventModifiedContract_operator protoreflect.FieldDescriptor - fd_EventModifiedContract_changes protoreflect.FieldDescriptor + md_EventModifiedNFT protoreflect.MessageDescriptor + fd_EventModifiedNFT_contract_id protoreflect.FieldDescriptor + fd_EventModifiedNFT_operator protoreflect.FieldDescriptor + fd_EventModifiedNFT_token_id protoreflect.FieldDescriptor + fd_EventModifiedNFT_changes protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_event_proto_init() - md_EventModifiedContract = File_lbm_collection_v1_event_proto.Messages().ByName("EventModifiedContract") - fd_EventModifiedContract_contract_id = md_EventModifiedContract.Fields().ByName("contract_id") - fd_EventModifiedContract_operator = md_EventModifiedContract.Fields().ByName("operator") - fd_EventModifiedContract_changes = md_EventModifiedContract.Fields().ByName("changes") + md_EventModifiedNFT = File_lbm_collection_v1_event_proto.Messages().ByName("EventModifiedNFT") + fd_EventModifiedNFT_contract_id = md_EventModifiedNFT.Fields().ByName("contract_id") + fd_EventModifiedNFT_operator = md_EventModifiedNFT.Fields().ByName("operator") + fd_EventModifiedNFT_token_id = md_EventModifiedNFT.Fields().ByName("token_id") + fd_EventModifiedNFT_changes = md_EventModifiedNFT.Fields().ByName("changes") } -var _ protoreflect.Message = (*fastReflection_EventModifiedContract)(nil) +var _ protoreflect.Message = (*fastReflection_EventModifiedNFT)(nil) -type fastReflection_EventModifiedContract EventModifiedContract +type fastReflection_EventModifiedNFT EventModifiedNFT -func (x *EventModifiedContract) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventModifiedContract)(x) +func (x *EventModifiedNFT) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventModifiedNFT)(x) } -func (x *EventModifiedContract) slowProtoReflect() protoreflect.Message { +func (x *EventModifiedNFT) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_event_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7262,43 +7172,43 @@ func (x *EventModifiedContract) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EventModifiedContract_messageType fastReflection_EventModifiedContract_messageType -var _ protoreflect.MessageType = fastReflection_EventModifiedContract_messageType{} +var _fastReflection_EventModifiedNFT_messageType fastReflection_EventModifiedNFT_messageType +var _ protoreflect.MessageType = fastReflection_EventModifiedNFT_messageType{} -type fastReflection_EventModifiedContract_messageType struct{} +type fastReflection_EventModifiedNFT_messageType struct{} -func (x fastReflection_EventModifiedContract_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventModifiedContract)(nil) +func (x fastReflection_EventModifiedNFT_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventModifiedNFT)(nil) } -func (x fastReflection_EventModifiedContract_messageType) New() protoreflect.Message { - return new(fastReflection_EventModifiedContract) +func (x fastReflection_EventModifiedNFT_messageType) New() protoreflect.Message { + return new(fastReflection_EventModifiedNFT) } -func (x fastReflection_EventModifiedContract_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventModifiedContract +func (x fastReflection_EventModifiedNFT_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventModifiedNFT } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EventModifiedContract) Descriptor() protoreflect.MessageDescriptor { - return md_EventModifiedContract -} +func (x *fastReflection_EventModifiedNFT) Descriptor() protoreflect.MessageDescriptor { + return md_EventModifiedNFT +} // 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_EventModifiedContract) Type() protoreflect.MessageType { - return _fastReflection_EventModifiedContract_messageType +func (x *fastReflection_EventModifiedNFT) Type() protoreflect.MessageType { + return _fastReflection_EventModifiedNFT_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventModifiedContract) New() protoreflect.Message { - return new(fastReflection_EventModifiedContract) +func (x *fastReflection_EventModifiedNFT) New() protoreflect.Message { + return new(fastReflection_EventModifiedNFT) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EventModifiedContract) Interface() protoreflect.ProtoMessage { - return (*EventModifiedContract)(x) +func (x *fastReflection_EventModifiedNFT) Interface() protoreflect.ProtoMessage { + return (*EventModifiedNFT)(x) } // Range iterates over every populated field in an undefined order, @@ -7306,22 +7216,28 @@ func (x *fastReflection_EventModifiedContract) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_EventModifiedContract) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_EventModifiedNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventModifiedContract_contract_id, value) { + if !f(fd_EventModifiedNFT_contract_id, value) { return } } if x.Operator != "" { value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventModifiedContract_operator, value) { + if !f(fd_EventModifiedNFT_operator, value) { + return + } + } + if x.TokenId != "" { + value := protoreflect.ValueOfString(x.TokenId) + if !f(fd_EventModifiedNFT_token_id, value) { return } } if len(x.Changes) != 0 { - value := protoreflect.ValueOfList(&_EventModifiedContract_3_list{list: &x.Changes}) - if !f(fd_EventModifiedContract_changes, value) { + value := protoreflect.ValueOfList(&_EventModifiedNFT_4_list{list: &x.Changes}) + if !f(fd_EventModifiedNFT_changes, value) { return } } @@ -7338,19 +7254,21 @@ func (x *fastReflection_EventModifiedContract) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_EventModifiedContract) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_EventModifiedNFT) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.EventModifiedContract.contract_id": + case "lbm.collection.v1.EventModifiedNFT.contract_id": return x.ContractId != "" - case "lbm.collection.v1.EventModifiedContract.operator": + case "lbm.collection.v1.EventModifiedNFT.operator": return x.Operator != "" - case "lbm.collection.v1.EventModifiedContract.changes": + case "lbm.collection.v1.EventModifiedNFT.token_id": + return x.TokenId != "" + case "lbm.collection.v1.EventModifiedNFT.changes": return len(x.Changes) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT does not contain field %s", fd.FullName())) } } @@ -7360,19 +7278,21 @@ func (x *fastReflection_EventModifiedContract) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventModifiedContract) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_EventModifiedNFT) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.EventModifiedContract.contract_id": + case "lbm.collection.v1.EventModifiedNFT.contract_id": x.ContractId = "" - case "lbm.collection.v1.EventModifiedContract.operator": + case "lbm.collection.v1.EventModifiedNFT.operator": x.Operator = "" - case "lbm.collection.v1.EventModifiedContract.changes": + case "lbm.collection.v1.EventModifiedNFT.token_id": + x.TokenId = "" + case "lbm.collection.v1.EventModifiedNFT.changes": x.Changes = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT does not contain field %s", fd.FullName())) } } @@ -7382,25 +7302,28 @@ func (x *fastReflection_EventModifiedContract) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventModifiedContract) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventModifiedNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.EventModifiedContract.contract_id": + case "lbm.collection.v1.EventModifiedNFT.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventModifiedContract.operator": + case "lbm.collection.v1.EventModifiedNFT.operator": value := x.Operator return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventModifiedContract.changes": + case "lbm.collection.v1.EventModifiedNFT.token_id": + value := x.TokenId + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.EventModifiedNFT.changes": if len(x.Changes) == 0 { - return protoreflect.ValueOfList(&_EventModifiedContract_3_list{}) + return protoreflect.ValueOfList(&_EventModifiedNFT_4_list{}) } - listValue := &_EventModifiedContract_3_list{list: &x.Changes} + listValue := &_EventModifiedNFT_4_list{list: &x.Changes} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT does not contain field %s", descriptor.FullName())) } } @@ -7414,21 +7337,23 @@ func (x *fastReflection_EventModifiedContract) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventModifiedContract) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_EventModifiedNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.EventModifiedContract.contract_id": + case "lbm.collection.v1.EventModifiedNFT.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventModifiedContract.operator": + case "lbm.collection.v1.EventModifiedNFT.operator": x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventModifiedContract.changes": + case "lbm.collection.v1.EventModifiedNFT.token_id": + x.TokenId = value.Interface().(string) + case "lbm.collection.v1.EventModifiedNFT.changes": lv := value.List() - clv := lv.(*_EventModifiedContract_3_list) + clv := lv.(*_EventModifiedNFT_4_list) x.Changes = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT does not contain field %s", fd.FullName())) } } @@ -7442,53 +7367,57 @@ func (x *fastReflection_EventModifiedContract) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventModifiedContract) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventModifiedNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventModifiedContract.changes": + case "lbm.collection.v1.EventModifiedNFT.changes": if x.Changes == nil { x.Changes = []*Attribute{} } - value := &_EventModifiedContract_3_list{list: &x.Changes} + value := &_EventModifiedNFT_4_list{list: &x.Changes} return protoreflect.ValueOfList(value) - case "lbm.collection.v1.EventModifiedContract.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventModifiedContract is not mutable")) - case "lbm.collection.v1.EventModifiedContract.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventModifiedContract is not mutable")) + case "lbm.collection.v1.EventModifiedNFT.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventModifiedNFT is not mutable")) + case "lbm.collection.v1.EventModifiedNFT.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.EventModifiedNFT is not mutable")) + case "lbm.collection.v1.EventModifiedNFT.token_id": + panic(fmt.Errorf("field token_id of message lbm.collection.v1.EventModifiedNFT is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT 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_EventModifiedContract) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EventModifiedNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.EventModifiedContract.contract_id": + case "lbm.collection.v1.EventModifiedNFT.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventModifiedContract.operator": + case "lbm.collection.v1.EventModifiedNFT.operator": return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventModifiedContract.changes": + case "lbm.collection.v1.EventModifiedNFT.token_id": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.EventModifiedNFT.changes": list := []*Attribute{} - return protoreflect.ValueOfList(&_EventModifiedContract_3_list{list: &list}) + return protoreflect.ValueOfList(&_EventModifiedNFT_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedContract")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedContract does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT 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_EventModifiedContract) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_EventModifiedNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventModifiedContract", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventModifiedNFT", d.FullName())) } panic("unreachable") } @@ -7496,7 +7425,7 @@ func (x *fastReflection_EventModifiedContract) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventModifiedContract) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_EventModifiedNFT) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7507,7 +7436,7 @@ func (x *fastReflection_EventModifiedContract) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventModifiedContract) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_EventModifiedNFT) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7519,7 +7448,7 @@ func (x *fastReflection_EventModifiedContract) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_EventModifiedContract) IsValid() bool { +func (x *fastReflection_EventModifiedNFT) IsValid() bool { return x != nil } @@ -7529,9 +7458,9 @@ func (x *fastReflection_EventModifiedContract) 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_EventModifiedContract) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_EventModifiedNFT) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventModifiedContract) + x := input.Message.Interface().(*EventModifiedNFT) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7551,6 +7480,10 @@ func (x *fastReflection_EventModifiedContract) ProtoMethods() *protoiface.Method 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 len(x.Changes) > 0 { for _, e := range x.Changes { l = options.Size(e) @@ -7567,7 +7500,7 @@ func (x *fastReflection_EventModifiedContract) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventModifiedContract) + x := input.Message.Interface().(*EventModifiedNFT) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7599,9 +7532,16 @@ func (x *fastReflection_EventModifiedContract) ProtoMethods() *protoiface.Method copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } } + if len(x.TokenId) > 0 { + i -= len(x.TokenId) + copy(dAtA[i:], x.TokenId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) + i-- + dAtA[i] = 0x1a + } if len(x.Operator) > 0 { i -= len(x.Operator) copy(dAtA[i:], x.Operator) @@ -7627,7 +7567,7 @@ func (x *fastReflection_EventModifiedContract) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventModifiedContract) + x := input.Message.Interface().(*EventModifiedNFT) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7659,10 +7599,10 @@ func (x *fastReflection_EventModifiedContract) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventModifiedContract: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventModifiedNFT: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventModifiedContract: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventModifiedNFT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7730,6 +7670,38 @@ func (x *fastReflection_EventModifiedContract) ProtoMethods() *protoiface.Method 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 TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) } @@ -7798,5327 +7770,878 @@ func (x *fastReflection_EventModifiedContract) ProtoMethods() *protoiface.Method } } -var _ protoreflect.List = (*_EventModifiedTokenClass_4_list)(nil) +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: lbm/collection/v1/event.proto -type _EventModifiedTokenClass_4_list struct { - list *[]*Attribute -} +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) +) -func (x *_EventModifiedTokenClass_4_list) Len() int { - if x.list == nil { - return 0 +// AttributeKey enumerates the valid attribute keys on x/collection. +type AttributeKey int32 + +const ( + // unspecified + AttributeKey_ATTRIBUTE_KEY_UNSPECIFIED AttributeKey = 0 + // name in Msg/Modify + AttributeKey_ATTRIBUTE_KEY_NAME AttributeKey = 1 + // meta in Msg/Modify + AttributeKey_ATTRIBUTE_KEY_META AttributeKey = 2 + // deprecated: use ATTRIBUTE_KEY_URI + AttributeKey_ATTRIBUTE_KEY_BASE_IMG_URI AttributeKey = 8 + // uri in Msg/Modify + AttributeKey_ATTRIBUTE_KEY_URI AttributeKey = 20 +) + +// Enum value maps for AttributeKey. +var ( + AttributeKey_name = map[int32]string{ + 0: "ATTRIBUTE_KEY_UNSPECIFIED", + 1: "ATTRIBUTE_KEY_NAME", + 2: "ATTRIBUTE_KEY_META", + 8: "ATTRIBUTE_KEY_BASE_IMG_URI", + 20: "ATTRIBUTE_KEY_URI", } - return len(*x.list) + AttributeKey_value = map[string]int32{ + "ATTRIBUTE_KEY_UNSPECIFIED": 0, + "ATTRIBUTE_KEY_NAME": 1, + "ATTRIBUTE_KEY_META": 2, + "ATTRIBUTE_KEY_BASE_IMG_URI": 8, + "ATTRIBUTE_KEY_URI": 20, + } +) + +func (x AttributeKey) Enum() *AttributeKey { + p := new(AttributeKey) + *p = x + return p } -func (x *_EventModifiedTokenClass_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +func (x AttributeKey) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (x *_EventModifiedTokenClass_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Attribute) - (*x.list)[i] = concreteValue +func (AttributeKey) Descriptor() protoreflect.EnumDescriptor { + return file_lbm_collection_v1_event_proto_enumTypes[0].Descriptor() } -func (x *_EventModifiedTokenClass_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Attribute) - *x.list = append(*x.list, concreteValue) -} - -func (x *_EventModifiedTokenClass_4_list) AppendMutable() protoreflect.Value { - v := new(Attribute) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_EventModifiedTokenClass_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_EventModifiedTokenClass_4_list) NewElement() protoreflect.Value { - v := new(Attribute) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_EventModifiedTokenClass_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_EventModifiedTokenClass protoreflect.MessageDescriptor - fd_EventModifiedTokenClass_contract_id protoreflect.FieldDescriptor - fd_EventModifiedTokenClass_operator protoreflect.FieldDescriptor - fd_EventModifiedTokenClass_token_type protoreflect.FieldDescriptor - fd_EventModifiedTokenClass_changes protoreflect.FieldDescriptor - fd_EventModifiedTokenClass_type_name protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventModifiedTokenClass = File_lbm_collection_v1_event_proto.Messages().ByName("EventModifiedTokenClass") - fd_EventModifiedTokenClass_contract_id = md_EventModifiedTokenClass.Fields().ByName("contract_id") - fd_EventModifiedTokenClass_operator = md_EventModifiedTokenClass.Fields().ByName("operator") - fd_EventModifiedTokenClass_token_type = md_EventModifiedTokenClass.Fields().ByName("token_type") - fd_EventModifiedTokenClass_changes = md_EventModifiedTokenClass.Fields().ByName("changes") - fd_EventModifiedTokenClass_type_name = md_EventModifiedTokenClass.Fields().ByName("type_name") -} - -var _ protoreflect.Message = (*fastReflection_EventModifiedTokenClass)(nil) - -type fastReflection_EventModifiedTokenClass EventModifiedTokenClass - -func (x *EventModifiedTokenClass) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventModifiedTokenClass)(x) -} - -func (x *EventModifiedTokenClass) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[12] - 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_EventModifiedTokenClass_messageType fastReflection_EventModifiedTokenClass_messageType -var _ protoreflect.MessageType = fastReflection_EventModifiedTokenClass_messageType{} - -type fastReflection_EventModifiedTokenClass_messageType struct{} - -func (x fastReflection_EventModifiedTokenClass_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventModifiedTokenClass)(nil) -} -func (x fastReflection_EventModifiedTokenClass_messageType) New() protoreflect.Message { - return new(fastReflection_EventModifiedTokenClass) -} -func (x fastReflection_EventModifiedTokenClass_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventModifiedTokenClass -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventModifiedTokenClass) Descriptor() protoreflect.MessageDescriptor { - return md_EventModifiedTokenClass -} - -// 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_EventModifiedTokenClass) Type() protoreflect.MessageType { - return _fastReflection_EventModifiedTokenClass_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventModifiedTokenClass) New() protoreflect.Message { - return new(fastReflection_EventModifiedTokenClass) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventModifiedTokenClass) Interface() protoreflect.ProtoMessage { - return (*EventModifiedTokenClass)(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_EventModifiedTokenClass) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventModifiedTokenClass_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventModifiedTokenClass_operator, value) { - return - } - } - if x.TokenType != "" { - value := protoreflect.ValueOfString(x.TokenType) - if !f(fd_EventModifiedTokenClass_token_type, value) { - return - } - } - if len(x.Changes) != 0 { - value := protoreflect.ValueOfList(&_EventModifiedTokenClass_4_list{list: &x.Changes}) - if !f(fd_EventModifiedTokenClass_changes, value) { - return - } - } - if x.TypeName != "" { - value := protoreflect.ValueOfString(x.TypeName) - if !f(fd_EventModifiedTokenClass_type_name, 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_EventModifiedTokenClass) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventModifiedTokenClass.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventModifiedTokenClass.operator": - return x.Operator != "" - case "lbm.collection.v1.EventModifiedTokenClass.token_type": - return x.TokenType != "" - case "lbm.collection.v1.EventModifiedTokenClass.changes": - return len(x.Changes) != 0 - case "lbm.collection.v1.EventModifiedTokenClass.type_name": - return x.TypeName != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass 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_EventModifiedTokenClass) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventModifiedTokenClass.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventModifiedTokenClass.operator": - x.Operator = "" - case "lbm.collection.v1.EventModifiedTokenClass.token_type": - x.TokenType = "" - case "lbm.collection.v1.EventModifiedTokenClass.changes": - x.Changes = nil - case "lbm.collection.v1.EventModifiedTokenClass.type_name": - x.TypeName = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass 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_EventModifiedTokenClass) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventModifiedTokenClass.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventModifiedTokenClass.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventModifiedTokenClass.token_type": - value := x.TokenType - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventModifiedTokenClass.changes": - if len(x.Changes) == 0 { - return protoreflect.ValueOfList(&_EventModifiedTokenClass_4_list{}) - } - listValue := &_EventModifiedTokenClass_4_list{list: &x.Changes} - return protoreflect.ValueOfList(listValue) - case "lbm.collection.v1.EventModifiedTokenClass.type_name": - value := x.TypeName - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass 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_EventModifiedTokenClass) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventModifiedTokenClass.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventModifiedTokenClass.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventModifiedTokenClass.token_type": - x.TokenType = value.Interface().(string) - case "lbm.collection.v1.EventModifiedTokenClass.changes": - lv := value.List() - clv := lv.(*_EventModifiedTokenClass_4_list) - x.Changes = *clv.list - case "lbm.collection.v1.EventModifiedTokenClass.type_name": - x.TypeName = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass 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_EventModifiedTokenClass) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventModifiedTokenClass.changes": - if x.Changes == nil { - x.Changes = []*Attribute{} - } - value := &_EventModifiedTokenClass_4_list{list: &x.Changes} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.EventModifiedTokenClass.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventModifiedTokenClass is not mutable")) - case "lbm.collection.v1.EventModifiedTokenClass.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventModifiedTokenClass is not mutable")) - case "lbm.collection.v1.EventModifiedTokenClass.token_type": - panic(fmt.Errorf("field token_type of message lbm.collection.v1.EventModifiedTokenClass is not mutable")) - case "lbm.collection.v1.EventModifiedTokenClass.type_name": - panic(fmt.Errorf("field type_name of message lbm.collection.v1.EventModifiedTokenClass is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass 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_EventModifiedTokenClass) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventModifiedTokenClass.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventModifiedTokenClass.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventModifiedTokenClass.token_type": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventModifiedTokenClass.changes": - list := []*Attribute{} - return protoreflect.ValueOfList(&_EventModifiedTokenClass_4_list{list: &list}) - case "lbm.collection.v1.EventModifiedTokenClass.type_name": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedTokenClass")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedTokenClass 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_EventModifiedTokenClass) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventModifiedTokenClass", 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_EventModifiedTokenClass) 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_EventModifiedTokenClass) 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_EventModifiedTokenClass) 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_EventModifiedTokenClass) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventModifiedTokenClass) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenType) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Changes) > 0 { - for _, e := range x.Changes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - l = len(x.TypeName) - 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().(*EventModifiedTokenClass) - 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.TypeName) > 0 { - i -= len(x.TypeName) - copy(dAtA[i:], x.TypeName) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TypeName))) - i-- - dAtA[i] = 0x2a - } - if len(x.Changes) > 0 { - for iNdEx := len(x.Changes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Changes[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.TokenType) > 0 { - i -= len(x.TokenType) - copy(dAtA[i:], x.TokenType) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenType))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventModifiedTokenClass) - 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: EventModifiedTokenClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventModifiedTokenClass: 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 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 Changes", 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.Changes = append(x.Changes, &Attribute{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Changes[len(x.Changes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TypeName", 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.TypeName = 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 = (*_EventModifiedNFT_4_list)(nil) - -type _EventModifiedNFT_4_list struct { - list *[]*Attribute -} - -func (x *_EventModifiedNFT_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_EventModifiedNFT_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_EventModifiedNFT_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Attribute) - (*x.list)[i] = concreteValue -} - -func (x *_EventModifiedNFT_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Attribute) - *x.list = append(*x.list, concreteValue) -} - -func (x *_EventModifiedNFT_4_list) AppendMutable() protoreflect.Value { - v := new(Attribute) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_EventModifiedNFT_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_EventModifiedNFT_4_list) NewElement() protoreflect.Value { - v := new(Attribute) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_EventModifiedNFT_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_EventModifiedNFT protoreflect.MessageDescriptor - fd_EventModifiedNFT_contract_id protoreflect.FieldDescriptor - fd_EventModifiedNFT_operator protoreflect.FieldDescriptor - fd_EventModifiedNFT_token_id protoreflect.FieldDescriptor - fd_EventModifiedNFT_changes protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventModifiedNFT = File_lbm_collection_v1_event_proto.Messages().ByName("EventModifiedNFT") - fd_EventModifiedNFT_contract_id = md_EventModifiedNFT.Fields().ByName("contract_id") - fd_EventModifiedNFT_operator = md_EventModifiedNFT.Fields().ByName("operator") - fd_EventModifiedNFT_token_id = md_EventModifiedNFT.Fields().ByName("token_id") - fd_EventModifiedNFT_changes = md_EventModifiedNFT.Fields().ByName("changes") -} - -var _ protoreflect.Message = (*fastReflection_EventModifiedNFT)(nil) - -type fastReflection_EventModifiedNFT EventModifiedNFT - -func (x *EventModifiedNFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventModifiedNFT)(x) -} - -func (x *EventModifiedNFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_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_EventModifiedNFT_messageType fastReflection_EventModifiedNFT_messageType -var _ protoreflect.MessageType = fastReflection_EventModifiedNFT_messageType{} - -type fastReflection_EventModifiedNFT_messageType struct{} - -func (x fastReflection_EventModifiedNFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventModifiedNFT)(nil) -} -func (x fastReflection_EventModifiedNFT_messageType) New() protoreflect.Message { - return new(fastReflection_EventModifiedNFT) -} -func (x fastReflection_EventModifiedNFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventModifiedNFT -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventModifiedNFT) Descriptor() protoreflect.MessageDescriptor { - return md_EventModifiedNFT -} - -// 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_EventModifiedNFT) Type() protoreflect.MessageType { - return _fastReflection_EventModifiedNFT_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventModifiedNFT) New() protoreflect.Message { - return new(fastReflection_EventModifiedNFT) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventModifiedNFT) Interface() protoreflect.ProtoMessage { - return (*EventModifiedNFT)(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_EventModifiedNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventModifiedNFT_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventModifiedNFT_operator, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_EventModifiedNFT_token_id, value) { - return - } - } - if len(x.Changes) != 0 { - value := protoreflect.ValueOfList(&_EventModifiedNFT_4_list{list: &x.Changes}) - if !f(fd_EventModifiedNFT_changes, 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_EventModifiedNFT) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventModifiedNFT.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventModifiedNFT.operator": - return x.Operator != "" - case "lbm.collection.v1.EventModifiedNFT.token_id": - return x.TokenId != "" - case "lbm.collection.v1.EventModifiedNFT.changes": - return len(x.Changes) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT 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_EventModifiedNFT) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventModifiedNFT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventModifiedNFT.operator": - x.Operator = "" - case "lbm.collection.v1.EventModifiedNFT.token_id": - x.TokenId = "" - case "lbm.collection.v1.EventModifiedNFT.changes": - x.Changes = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT 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_EventModifiedNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventModifiedNFT.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventModifiedNFT.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventModifiedNFT.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventModifiedNFT.changes": - if len(x.Changes) == 0 { - return protoreflect.ValueOfList(&_EventModifiedNFT_4_list{}) - } - listValue := &_EventModifiedNFT_4_list{list: &x.Changes} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT 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_EventModifiedNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventModifiedNFT.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventModifiedNFT.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventModifiedNFT.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.EventModifiedNFT.changes": - lv := value.List() - clv := lv.(*_EventModifiedNFT_4_list) - x.Changes = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT 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_EventModifiedNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventModifiedNFT.changes": - if x.Changes == nil { - x.Changes = []*Attribute{} - } - value := &_EventModifiedNFT_4_list{list: &x.Changes} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.EventModifiedNFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventModifiedNFT is not mutable")) - case "lbm.collection.v1.EventModifiedNFT.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventModifiedNFT is not mutable")) - case "lbm.collection.v1.EventModifiedNFT.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.EventModifiedNFT is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT 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_EventModifiedNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventModifiedNFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventModifiedNFT.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventModifiedNFT.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventModifiedNFT.changes": - list := []*Attribute{} - return protoreflect.ValueOfList(&_EventModifiedNFT_4_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventModifiedNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventModifiedNFT 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_EventModifiedNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventModifiedNFT", 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_EventModifiedNFT) 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_EventModifiedNFT) 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_EventModifiedNFT) 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_EventModifiedNFT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventModifiedNFT) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Changes) > 0 { - for _, e := range x.Changes { - 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().(*EventModifiedNFT) - 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.Changes) > 0 { - for iNdEx := len(x.Changes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Changes[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.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventModifiedNFT) - 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: EventModifiedNFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventModifiedNFT: 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 TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Changes", 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.Changes = append(x.Changes, &Attribute{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Changes[len(x.Changes)-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_EventAttached protoreflect.MessageDescriptor - fd_EventAttached_contract_id protoreflect.FieldDescriptor - fd_EventAttached_operator protoreflect.FieldDescriptor - fd_EventAttached_holder protoreflect.FieldDescriptor - fd_EventAttached_subject protoreflect.FieldDescriptor - fd_EventAttached_target protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventAttached = File_lbm_collection_v1_event_proto.Messages().ByName("EventAttached") - fd_EventAttached_contract_id = md_EventAttached.Fields().ByName("contract_id") - fd_EventAttached_operator = md_EventAttached.Fields().ByName("operator") - fd_EventAttached_holder = md_EventAttached.Fields().ByName("holder") - fd_EventAttached_subject = md_EventAttached.Fields().ByName("subject") - fd_EventAttached_target = md_EventAttached.Fields().ByName("target") -} - -var _ protoreflect.Message = (*fastReflection_EventAttached)(nil) - -type fastReflection_EventAttached EventAttached - -func (x *EventAttached) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventAttached)(x) -} - -func (x *EventAttached) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventAttached_messageType fastReflection_EventAttached_messageType -var _ protoreflect.MessageType = fastReflection_EventAttached_messageType{} - -type fastReflection_EventAttached_messageType struct{} - -func (x fastReflection_EventAttached_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventAttached)(nil) -} -func (x fastReflection_EventAttached_messageType) New() protoreflect.Message { - return new(fastReflection_EventAttached) -} -func (x fastReflection_EventAttached_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventAttached -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventAttached) Descriptor() protoreflect.MessageDescriptor { - return md_EventAttached -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventAttached) Type() protoreflect.MessageType { - return _fastReflection_EventAttached_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventAttached) New() protoreflect.Message { - return new(fastReflection_EventAttached) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventAttached) Interface() protoreflect.ProtoMessage { - return (*EventAttached)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventAttached) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventAttached_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventAttached_operator, value) { - return - } - } - if x.Holder != "" { - value := protoreflect.ValueOfString(x.Holder) - if !f(fd_EventAttached_holder, value) { - return - } - } - if x.Subject != "" { - value := protoreflect.ValueOfString(x.Subject) - if !f(fd_EventAttached_subject, value) { - return - } - } - if x.Target != "" { - value := protoreflect.ValueOfString(x.Target) - if !f(fd_EventAttached_target, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventAttached) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventAttached.operator": - return x.Operator != "" - case "lbm.collection.v1.EventAttached.holder": - return x.Holder != "" - case "lbm.collection.v1.EventAttached.subject": - return x.Subject != "" - case "lbm.collection.v1.EventAttached.target": - return x.Target != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventAttached) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventAttached.operator": - x.Operator = "" - case "lbm.collection.v1.EventAttached.holder": - x.Holder = "" - case "lbm.collection.v1.EventAttached.subject": - x.Subject = "" - case "lbm.collection.v1.EventAttached.target": - x.Target = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventAttached) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventAttached.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventAttached.holder": - value := x.Holder - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventAttached.subject": - value := x.Subject - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventAttached.target": - value := x.Target - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventAttached) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventAttached.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventAttached.holder": - x.Holder = value.Interface().(string) - case "lbm.collection.v1.EventAttached.subject": - x.Subject = value.Interface().(string) - case "lbm.collection.v1.EventAttached.target": - x.Target = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventAttached) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventAttached is not mutable")) - case "lbm.collection.v1.EventAttached.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventAttached is not mutable")) - case "lbm.collection.v1.EventAttached.holder": - panic(fmt.Errorf("field holder of message lbm.collection.v1.EventAttached is not mutable")) - case "lbm.collection.v1.EventAttached.subject": - panic(fmt.Errorf("field subject of message lbm.collection.v1.EventAttached is not mutable")) - case "lbm.collection.v1.EventAttached.target": - panic(fmt.Errorf("field target of message lbm.collection.v1.EventAttached is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventAttached) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventAttached.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventAttached.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventAttached.holder": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventAttached.subject": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventAttached.target": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventAttached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventAttached does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventAttached) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventAttached", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventAttached) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventAttached) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventAttached) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventAttached) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventAttached) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Holder) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Subject) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Target) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventAttached) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Target) > 0 { - i -= len(x.Target) - copy(dAtA[i:], x.Target) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Target))) - i-- - dAtA[i] = 0x2a - } - if len(x.Subject) > 0 { - i -= len(x.Subject) - copy(dAtA[i:], x.Subject) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Subject))) - i-- - dAtA[i] = 0x22 - } - if len(x.Holder) > 0 { - i -= len(x.Holder) - copy(dAtA[i:], x.Holder) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holder))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventAttached) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventAttached: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventAttached: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Holder = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Subject = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Target = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventDetached protoreflect.MessageDescriptor - fd_EventDetached_contract_id protoreflect.FieldDescriptor - fd_EventDetached_operator protoreflect.FieldDescriptor - fd_EventDetached_holder protoreflect.FieldDescriptor - fd_EventDetached_subject protoreflect.FieldDescriptor - fd_EventDetached_previous_parent protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventDetached = File_lbm_collection_v1_event_proto.Messages().ByName("EventDetached") - fd_EventDetached_contract_id = md_EventDetached.Fields().ByName("contract_id") - fd_EventDetached_operator = md_EventDetached.Fields().ByName("operator") - fd_EventDetached_holder = md_EventDetached.Fields().ByName("holder") - fd_EventDetached_subject = md_EventDetached.Fields().ByName("subject") - fd_EventDetached_previous_parent = md_EventDetached.Fields().ByName("previous_parent") -} - -var _ protoreflect.Message = (*fastReflection_EventDetached)(nil) - -type fastReflection_EventDetached EventDetached - -func (x *EventDetached) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventDetached)(x) -} - -func (x *EventDetached) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventDetached_messageType fastReflection_EventDetached_messageType -var _ protoreflect.MessageType = fastReflection_EventDetached_messageType{} - -type fastReflection_EventDetached_messageType struct{} - -func (x fastReflection_EventDetached_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventDetached)(nil) -} -func (x fastReflection_EventDetached_messageType) New() protoreflect.Message { - return new(fastReflection_EventDetached) -} -func (x fastReflection_EventDetached_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventDetached -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventDetached) Descriptor() protoreflect.MessageDescriptor { - return md_EventDetached -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventDetached) Type() protoreflect.MessageType { - return _fastReflection_EventDetached_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventDetached) New() protoreflect.Message { - return new(fastReflection_EventDetached) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventDetached) Interface() protoreflect.ProtoMessage { - return (*EventDetached)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventDetached) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventDetached_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_EventDetached_operator, value) { - return - } - } - if x.Holder != "" { - value := protoreflect.ValueOfString(x.Holder) - if !f(fd_EventDetached_holder, value) { - return - } - } - if x.Subject != "" { - value := protoreflect.ValueOfString(x.Subject) - if !f(fd_EventDetached_subject, value) { - return - } - } - if x.PreviousParent != "" { - value := protoreflect.ValueOfString(x.PreviousParent) - if !f(fd_EventDetached_previous_parent, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventDetached) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventDetached.operator": - return x.Operator != "" - case "lbm.collection.v1.EventDetached.holder": - return x.Holder != "" - case "lbm.collection.v1.EventDetached.subject": - return x.Subject != "" - case "lbm.collection.v1.EventDetached.previous_parent": - return x.PreviousParent != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventDetached) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventDetached.operator": - x.Operator = "" - case "lbm.collection.v1.EventDetached.holder": - x.Holder = "" - case "lbm.collection.v1.EventDetached.subject": - x.Subject = "" - case "lbm.collection.v1.EventDetached.previous_parent": - x.PreviousParent = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventDetached) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventDetached.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventDetached.holder": - value := x.Holder - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventDetached.subject": - value := x.Subject - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventDetached.previous_parent": - value := x.PreviousParent - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventDetached) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventDetached.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.EventDetached.holder": - x.Holder = value.Interface().(string) - case "lbm.collection.v1.EventDetached.subject": - x.Subject = value.Interface().(string) - case "lbm.collection.v1.EventDetached.previous_parent": - x.PreviousParent = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventDetached) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventDetached is not mutable")) - case "lbm.collection.v1.EventDetached.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.EventDetached is not mutable")) - case "lbm.collection.v1.EventDetached.holder": - panic(fmt.Errorf("field holder of message lbm.collection.v1.EventDetached is not mutable")) - case "lbm.collection.v1.EventDetached.subject": - panic(fmt.Errorf("field subject of message lbm.collection.v1.EventDetached is not mutable")) - case "lbm.collection.v1.EventDetached.previous_parent": - panic(fmt.Errorf("field previous_parent of message lbm.collection.v1.EventDetached is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventDetached) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventDetached.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventDetached.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventDetached.holder": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventDetached.subject": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventDetached.previous_parent": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventDetached")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventDetached does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventDetached) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventDetached", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventDetached) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventDetached) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventDetached) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventDetached) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventDetached) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Holder) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Subject) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.PreviousParent) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventDetached) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.PreviousParent) > 0 { - i -= len(x.PreviousParent) - copy(dAtA[i:], x.PreviousParent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousParent))) - i-- - dAtA[i] = 0x2a - } - if len(x.Subject) > 0 { - i -= len(x.Subject) - copy(dAtA[i:], x.Subject) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Subject))) - i-- - dAtA[i] = 0x22 - } - if len(x.Holder) > 0 { - i -= len(x.Holder) - copy(dAtA[i:], x.Holder) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holder))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventDetached) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDetached: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDetached: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Holder = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Subject = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousParent", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.PreviousParent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventOwnerChanged protoreflect.MessageDescriptor - fd_EventOwnerChanged_contract_id protoreflect.FieldDescriptor - fd_EventOwnerChanged_token_id protoreflect.FieldDescriptor - fd_EventOwnerChanged_from protoreflect.FieldDescriptor - fd_EventOwnerChanged_to protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventOwnerChanged = File_lbm_collection_v1_event_proto.Messages().ByName("EventOwnerChanged") - fd_EventOwnerChanged_contract_id = md_EventOwnerChanged.Fields().ByName("contract_id") - fd_EventOwnerChanged_token_id = md_EventOwnerChanged.Fields().ByName("token_id") - fd_EventOwnerChanged_from = md_EventOwnerChanged.Fields().ByName("from") - fd_EventOwnerChanged_to = md_EventOwnerChanged.Fields().ByName("to") -} - -var _ protoreflect.Message = (*fastReflection_EventOwnerChanged)(nil) - -type fastReflection_EventOwnerChanged EventOwnerChanged - -func (x *EventOwnerChanged) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventOwnerChanged)(x) -} - -func (x *EventOwnerChanged) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventOwnerChanged_messageType fastReflection_EventOwnerChanged_messageType -var _ protoreflect.MessageType = fastReflection_EventOwnerChanged_messageType{} - -type fastReflection_EventOwnerChanged_messageType struct{} - -func (x fastReflection_EventOwnerChanged_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventOwnerChanged)(nil) -} -func (x fastReflection_EventOwnerChanged_messageType) New() protoreflect.Message { - return new(fastReflection_EventOwnerChanged) -} -func (x fastReflection_EventOwnerChanged_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventOwnerChanged -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventOwnerChanged) Descriptor() protoreflect.MessageDescriptor { - return md_EventOwnerChanged -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventOwnerChanged) Type() protoreflect.MessageType { - return _fastReflection_EventOwnerChanged_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventOwnerChanged) New() protoreflect.Message { - return new(fastReflection_EventOwnerChanged) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventOwnerChanged) Interface() protoreflect.ProtoMessage { - return (*EventOwnerChanged)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventOwnerChanged) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventOwnerChanged_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_EventOwnerChanged_token_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_EventOwnerChanged_from, value) { - return - } - } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_EventOwnerChanged_to, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventOwnerChanged) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventOwnerChanged.token_id": - return x.TokenId != "" - case "lbm.collection.v1.EventOwnerChanged.from": - return x.From != "" - case "lbm.collection.v1.EventOwnerChanged.to": - return x.To != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventOwnerChanged) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventOwnerChanged.token_id": - x.TokenId = "" - case "lbm.collection.v1.EventOwnerChanged.from": - x.From = "" - case "lbm.collection.v1.EventOwnerChanged.to": - x.To = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventOwnerChanged) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventOwnerChanged.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventOwnerChanged.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventOwnerChanged.to": - value := x.To - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventOwnerChanged) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventOwnerChanged.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.EventOwnerChanged.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.EventOwnerChanged.to": - x.To = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventOwnerChanged) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventOwnerChanged is not mutable")) - case "lbm.collection.v1.EventOwnerChanged.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.EventOwnerChanged is not mutable")) - case "lbm.collection.v1.EventOwnerChanged.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.EventOwnerChanged is not mutable")) - case "lbm.collection.v1.EventOwnerChanged.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.EventOwnerChanged is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventOwnerChanged) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventOwnerChanged.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventOwnerChanged.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventOwnerChanged.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventOwnerChanged.to": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventOwnerChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventOwnerChanged does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventOwnerChanged) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventOwnerChanged", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventOwnerChanged) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventOwnerChanged) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventOwnerChanged) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventOwnerChanged) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventOwnerChanged) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.To) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventOwnerChanged) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.To) > 0 { - i -= len(x.To) - copy(dAtA[i:], x.To) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.To))) - i-- - dAtA[i] = 0x22 - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x1a - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventOwnerChanged) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventOwnerChanged: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventOwnerChanged: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.To = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EventRootChanged protoreflect.MessageDescriptor - fd_EventRootChanged_contract_id protoreflect.FieldDescriptor - fd_EventRootChanged_token_id protoreflect.FieldDescriptor - fd_EventRootChanged_from protoreflect.FieldDescriptor - fd_EventRootChanged_to protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_event_proto_init() - md_EventRootChanged = File_lbm_collection_v1_event_proto.Messages().ByName("EventRootChanged") - fd_EventRootChanged_contract_id = md_EventRootChanged.Fields().ByName("contract_id") - fd_EventRootChanged_token_id = md_EventRootChanged.Fields().ByName("token_id") - fd_EventRootChanged_from = md_EventRootChanged.Fields().ByName("from") - fd_EventRootChanged_to = md_EventRootChanged.Fields().ByName("to") -} - -var _ protoreflect.Message = (*fastReflection_EventRootChanged)(nil) - -type fastReflection_EventRootChanged EventRootChanged - -func (x *EventRootChanged) ProtoReflect() protoreflect.Message { - return (*fastReflection_EventRootChanged)(x) -} - -func (x *EventRootChanged) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_event_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EventRootChanged_messageType fastReflection_EventRootChanged_messageType -var _ protoreflect.MessageType = fastReflection_EventRootChanged_messageType{} - -type fastReflection_EventRootChanged_messageType struct{} - -func (x fastReflection_EventRootChanged_messageType) Zero() protoreflect.Message { - return (*fastReflection_EventRootChanged)(nil) -} -func (x fastReflection_EventRootChanged_messageType) New() protoreflect.Message { - return new(fastReflection_EventRootChanged) -} -func (x fastReflection_EventRootChanged_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EventRootChanged -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EventRootChanged) Descriptor() protoreflect.MessageDescriptor { - return md_EventRootChanged -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_EventRootChanged) Type() protoreflect.MessageType { - return _fastReflection_EventRootChanged_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EventRootChanged) New() protoreflect.Message { - return new(fastReflection_EventRootChanged) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EventRootChanged) Interface() protoreflect.ProtoMessage { - return (*EventRootChanged)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_EventRootChanged) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_EventRootChanged_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_EventRootChanged_token_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_EventRootChanged_from, value) { - return - } - } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_EventRootChanged_to, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_EventRootChanged) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.EventRootChanged.token_id": - return x.TokenId != "" - case "lbm.collection.v1.EventRootChanged.from": - return x.From != "" - case "lbm.collection.v1.EventRootChanged.to": - return x.To != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventRootChanged) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - x.ContractId = "" - case "lbm.collection.v1.EventRootChanged.token_id": - x.TokenId = "" - case "lbm.collection.v1.EventRootChanged.from": - x.From = "" - case "lbm.collection.v1.EventRootChanged.to": - x.To = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EventRootChanged) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventRootChanged.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventRootChanged.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.EventRootChanged.to": - value := x.To - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventRootChanged) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.EventRootChanged.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.EventRootChanged.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.EventRootChanged.to": - x.To = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventRootChanged) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.EventRootChanged is not mutable")) - case "lbm.collection.v1.EventRootChanged.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.EventRootChanged is not mutable")) - case "lbm.collection.v1.EventRootChanged.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.EventRootChanged is not mutable")) - case "lbm.collection.v1.EventRootChanged.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.EventRootChanged is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EventRootChanged) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.EventRootChanged.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventRootChanged.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventRootChanged.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.EventRootChanged.to": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.EventRootChanged")) - } - panic(fmt.Errorf("message lbm.collection.v1.EventRootChanged does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EventRootChanged) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.EventRootChanged", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EventRootChanged) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EventRootChanged) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_EventRootChanged) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_EventRootChanged) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EventRootChanged) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.To) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EventRootChanged) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.To) > 0 { - i -= len(x.To) - copy(dAtA[i:], x.To) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.To))) - i-- - dAtA[i] = 0x22 - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x1a - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EventRootChanged) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventRootChanged: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventRootChanged: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.To = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: lbm/collection/v1/event.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) -) - -// AttributeKey enumerates the valid attribute keys on x/collection. -type AttributeKey int32 - -const ( - AttributeKey_ATTRIBUTE_KEY_UNSPECIFIED AttributeKey = 0 - AttributeKey_ATTRIBUTE_KEY_NAME AttributeKey = 1 - AttributeKey_ATTRIBUTE_KEY_META AttributeKey = 2 - // deprecated: use ATTRIBUTE_KEY_URI - AttributeKey_ATTRIBUTE_KEY_BASE_IMG_URI AttributeKey = 8 - AttributeKey_ATTRIBUTE_KEY_URI AttributeKey = 20 -) - -// Enum value maps for AttributeKey. -var ( - AttributeKey_name = map[int32]string{ - 0: "ATTRIBUTE_KEY_UNSPECIFIED", - 1: "ATTRIBUTE_KEY_NAME", - 2: "ATTRIBUTE_KEY_META", - 8: "ATTRIBUTE_KEY_BASE_IMG_URI", - 20: "ATTRIBUTE_KEY_URI", - } - AttributeKey_value = map[string]int32{ - "ATTRIBUTE_KEY_UNSPECIFIED": 0, - "ATTRIBUTE_KEY_NAME": 1, - "ATTRIBUTE_KEY_META": 2, - "ATTRIBUTE_KEY_BASE_IMG_URI": 8, - "ATTRIBUTE_KEY_URI": 20, - } -) - -func (x AttributeKey) Enum() *AttributeKey { - p := new(AttributeKey) - *p = x - return p -} - -func (x AttributeKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AttributeKey) Descriptor() protoreflect.EnumDescriptor { - return file_lbm_collection_v1_event_proto_enumTypes[0].Descriptor() -} - -func (AttributeKey) Type() protoreflect.EnumType { - return &file_lbm_collection_v1_event_proto_enumTypes[0] -} - -func (x AttributeKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AttributeKey.Descriptor instead. -func (AttributeKey) EnumDescriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{0} -} - -// EventSent is emitted when tokens are transferred. -// -// Since: 0.46.0 (finschia) -type EventSent 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 send. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // holder whose tokens were sent. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // recipient of the tokens. - To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` - // amount of tokens sent. - Amount []*Coin `protobuf:"bytes,5,rep,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *EventSent) Reset() { - *x = EventSent{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventSent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventSent) ProtoMessage() {} - -// Deprecated: Use EventSent.ProtoReflect.Descriptor instead. -func (*EventSent) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{0} -} - -func (x *EventSent) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *EventSent) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *EventSent) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *EventSent) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *EventSent) GetAmount() []*Coin { - if x != nil { - return x.Amount - } - return nil -} - -// EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens. -// -// Since: 0.46.0 (finschia) -type EventAuthorizedOperator 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 a holder which authorized the `operator` address as an operator. - Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` - // address which became an operator of `holder`. - Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` -} - -func (x *EventAuthorizedOperator) Reset() { - *x = EventAuthorizedOperator{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventAuthorizedOperator) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventAuthorizedOperator) ProtoMessage() {} - -// Deprecated: Use EventAuthorizedOperator.ProtoReflect.Descriptor instead. -func (*EventAuthorizedOperator) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{1} -} - -func (x *EventAuthorizedOperator) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *EventAuthorizedOperator) GetHolder() string { - if x != nil { - return x.Holder - } - return "" -} - -func (x *EventAuthorizedOperator) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -// EventRevokedOperator is emitted when an authorization is revoked. -// -// Since: 0.46.0 (finschia) -type EventRevokedOperator 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 a holder which revoked the `operator` address as an operator. - Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` - // address which was revoked as an operator of `holder`. - Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` -} - -func (x *EventRevokedOperator) Reset() { - *x = EventRevokedOperator{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventRevokedOperator) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventRevokedOperator) ProtoMessage() {} - -// Deprecated: Use EventRevokedOperator.ProtoReflect.Descriptor instead. -func (*EventRevokedOperator) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{2} -} - -func (x *EventRevokedOperator) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *EventRevokedOperator) GetHolder() string { - if x != nil { - return x.Holder - } - return "" -} - -func (x *EventRevokedOperator) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -// EventCreatedContract is emitted when a new contract is created. -// -// Since: 0.46.0 (finschia) -type EventCreatedContract struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address which created the contract. - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - // contract id associated with the contract. - ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // name of the contract. - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // metadata of the contract. - Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` - // uri for the contract image stored off chain. - Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` -} - -func (x *EventCreatedContract) Reset() { - *x = EventCreatedContract{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventCreatedContract) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventCreatedContract) ProtoMessage() {} - -// Deprecated: Use EventCreatedContract.ProtoReflect.Descriptor instead. -func (*EventCreatedContract) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{3} -} - -func (x *EventCreatedContract) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *EventCreatedContract) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *EventCreatedContract) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *EventCreatedContract) GetMeta() string { - if x != nil { - return x.Meta - } - return "" -} - -func (x *EventCreatedContract) GetUri() string { - if x != nil { - return x.Uri - } - 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 (AttributeKey) Type() protoreflect.EnumType { + return &file_lbm_collection_v1_event_proto_enumTypes[0] } -func (x *EventCreatedFTClass) GetDecimals() int32 { - if x != nil { - return x.Decimals - } - return 0 +func (x AttributeKey) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (x *EventCreatedFTClass) GetMintable() bool { - if x != nil { - return x.Mintable - } - return false +// Deprecated: Use AttributeKey.Descriptor instead. +func (AttributeKey) EnumDescriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{0} } -// EventCreatedNFTClass is emitted when a new non-fungible token class is created. +// EventSent is emitted when tokens are transferred. // // Since: 0.46.0 (finschia) -type EventCreatedNFTClass struct { +type EventSent 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. + // address which triggered the send. Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // token type associated with the token class. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,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"` + // holder whose tokens were sent. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // recipient of the tokens. + To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + // amount of tokens sent. + Amount []*Coin `protobuf:"bytes,5,rep,name=amount,proto3" json:"amount,omitempty"` } -func (x *EventCreatedNFTClass) Reset() { - *x = EventCreatedNFTClass{} +func (x *EventSent) Reset() { + *x = EventSent{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[5] + mi := &file_lbm_collection_v1_event_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventCreatedNFTClass) String() string { +func (x *EventSent) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventCreatedNFTClass) ProtoMessage() {} +func (*EventSent) ProtoMessage() {} -// Deprecated: Use EventCreatedNFTClass.ProtoReflect.Descriptor instead. -func (*EventCreatedNFTClass) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{5} +// Deprecated: Use EventSent.ProtoReflect.Descriptor instead. +func (*EventSent) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{0} } -func (x *EventCreatedNFTClass) GetContractId() string { +func (x *EventSent) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventCreatedNFTClass) GetOperator() string { +func (x *EventSent) GetOperator() string { if x != nil { return x.Operator } return "" } -func (x *EventCreatedNFTClass) GetTokenType() string { +func (x *EventSent) GetFrom() string { if x != nil { - return x.TokenType + return x.From } return "" } -func (x *EventCreatedNFTClass) GetName() string { +func (x *EventSent) GetTo() string { if x != nil { - return x.Name + return x.To } return "" } -func (x *EventCreatedNFTClass) GetMeta() string { +func (x *EventSent) GetAmount() []*Coin { if x != nil { - return x.Meta + return x.Amount } - return "" + return nil } -// EventGranted is emitted when a granter grants its permission to a grantee. -// -// Info: `granter` would be empty if the permission is granted by an issuance. +// EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens. // // Since: 0.46.0 (finschia) -type EventGranted struct { +type EventAuthorizedOperator struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the granter which grants the permission. - Granter string `protobuf:"bytes,2,opt,name=granter,proto3" json:"granter,omitempty"` - // address of the grantee. - Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"` - // permission on the contract. - Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` + // address of a holder which authorized the `operator` address as an operator. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which became an operator of `holder`. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` } -func (x *EventGranted) Reset() { - *x = EventGranted{} +func (x *EventAuthorizedOperator) Reset() { + *x = EventAuthorizedOperator{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[6] + mi := &file_lbm_collection_v1_event_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventGranted) String() string { +func (x *EventAuthorizedOperator) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventGranted) ProtoMessage() {} +func (*EventAuthorizedOperator) ProtoMessage() {} -// Deprecated: Use EventGranted.ProtoReflect.Descriptor instead. -func (*EventGranted) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{6} +// Deprecated: Use EventAuthorizedOperator.ProtoReflect.Descriptor instead. +func (*EventAuthorizedOperator) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{1} } -func (x *EventGranted) GetContractId() string { +func (x *EventAuthorizedOperator) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventGranted) GetGranter() string { +func (x *EventAuthorizedOperator) GetHolder() string { if x != nil { - return x.Granter + return x.Holder } return "" } -func (x *EventGranted) GetGrantee() string { +func (x *EventAuthorizedOperator) GetOperator() string { if x != nil { - return x.Grantee + return x.Operator } return "" } -func (x *EventGranted) GetPermission() Permission { - if x != nil { - return x.Permission - } - return Permission_PERMISSION_UNSPECIFIED -} - -// EventRenounced is emitted when a grantee renounced its permission. +// EventRevokedOperator is emitted when an authorization is revoked. // // Since: 0.46.0 (finschia) -type EventRenounced struct { +type EventRevokedOperator struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the grantee which abandons its grant. - Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` - // permission on the contract. - Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` + // address of a holder which revoked the `operator` address as an operator. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which was revoked as an operator of `holder`. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` } -func (x *EventRenounced) Reset() { - *x = EventRenounced{} +func (x *EventRevokedOperator) Reset() { + *x = EventRevokedOperator{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[7] + mi := &file_lbm_collection_v1_event_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventRenounced) String() string { +func (x *EventRevokedOperator) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventRenounced) ProtoMessage() {} +func (*EventRevokedOperator) ProtoMessage() {} -// Deprecated: Use EventRenounced.ProtoReflect.Descriptor instead. -func (*EventRenounced) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{7} +// Deprecated: Use EventRevokedOperator.ProtoReflect.Descriptor instead. +func (*EventRevokedOperator) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{2} } -func (x *EventRenounced) GetContractId() string { +func (x *EventRevokedOperator) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventRenounced) GetGrantee() string { - if x != nil { - return x.Grantee - } - return "" -} - -func (x *EventRenounced) GetPermission() Permission { - if x != nil { - return x.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 { +func (x *EventRevokedOperator) GetHolder() string { if x != nil { - return x.ContractId + return x.Holder } return "" } -func (x *EventMintedFT) GetOperator() string { +func (x *EventRevokedOperator) 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. +// EventCreatedContract is emitted when a new contract is created. // // Since: 0.46.0 (finschia) -type EventMintedNFT struct { +type EventCreatedContract struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // address which created the contract. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // 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"` - // tokens minted. - Tokens []*NFT `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens,omitempty"` + ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // name of the contract. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // metadata of the contract. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` + // uri for the contract image stored off chain. + Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` } -func (x *EventMintedNFT) Reset() { - *x = EventMintedNFT{} +func (x *EventCreatedContract) Reset() { + *x = EventCreatedContract{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[9] + mi := &file_lbm_collection_v1_event_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventMintedNFT) String() string { +func (x *EventCreatedContract) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventMintedNFT) ProtoMessage() {} +func (*EventCreatedContract) ProtoMessage() {} -// Deprecated: Use EventMintedNFT.ProtoReflect.Descriptor instead. -func (*EventMintedNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{9} +// Deprecated: Use EventCreatedContract.ProtoReflect.Descriptor instead. +func (*EventCreatedContract) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{3} } -func (x *EventMintedNFT) GetContractId() string { +func (x *EventCreatedContract) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *EventCreatedContract) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventMintedNFT) GetOperator() string { +func (x *EventCreatedContract) GetName() string { if x != nil { - return x.Operator + return x.Name } return "" } -func (x *EventMintedNFT) GetTo() string { +func (x *EventCreatedContract) GetMeta() string { if x != nil { - return x.To + return x.Meta } return "" } -func (x *EventMintedNFT) GetTokens() []*NFT { +func (x *EventCreatedContract) GetUri() string { if x != nil { - return x.Tokens + return x.Uri } - return nil + return "" } -// EventBurned is emitted when tokens are burnt. +// EventCreatedNFTClass is emitted when a new non-fungible token class is created. // // Since: 0.46.0 (finschia) -type EventBurned struct { +type EventCreatedNFTClass 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 burn. + // address which triggered the create. Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // holder whose tokens were burned. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // amount of tokens burned. - Amount []*Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"` + // token type associated with the token class. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,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"` } -func (x *EventBurned) Reset() { - *x = EventBurned{} +func (x *EventCreatedNFTClass) Reset() { + *x = EventCreatedNFTClass{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[10] + mi := &file_lbm_collection_v1_event_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventBurned) String() string { +func (x *EventCreatedNFTClass) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventBurned) ProtoMessage() {} +func (*EventCreatedNFTClass) ProtoMessage() {} -// Deprecated: Use EventBurned.ProtoReflect.Descriptor instead. -func (*EventBurned) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{10} +// Deprecated: Use EventCreatedNFTClass.ProtoReflect.Descriptor instead. +func (*EventCreatedNFTClass) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{4} } -func (x *EventBurned) GetContractId() string { +func (x *EventCreatedNFTClass) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventBurned) GetOperator() string { +func (x *EventCreatedNFTClass) GetOperator() string { if x != nil { return x.Operator } return "" } -func (x *EventBurned) GetFrom() string { +func (x *EventCreatedNFTClass) GetTokenType() string { if x != nil { - return x.From + return x.TokenType } return "" } -func (x *EventBurned) GetAmount() []*Coin { +func (x *EventCreatedNFTClass) GetName() string { if x != nil { - return x.Amount + return x.Name } - return nil + return "" } -// EventModifiedContract is emitted when the information of a contract is modified. +func (x *EventCreatedNFTClass) GetMeta() string { + if x != nil { + return x.Meta + } + return "" +} + +// EventGranted is emitted when a granter grants its permission to a grantee. +// +// Info: `granter` would be empty if the permission is granted by an issuance. // // Since: 0.46.0 (finschia) -type EventModifiedContract struct { +type EventGranted 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 modify. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // changes of the attributes applied. - // possible attribute keys are same as those of MsgModify. - // deprecated "base_img_uri" has been replaced by "uri" in the events. - Changes []*Attribute `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes,omitempty"` + // address of the granter which grants the permission. + Granter string `protobuf:"bytes,2,opt,name=granter,proto3" json:"granter,omitempty"` + // address of the grantee. + Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"` + // permission on the contract. + Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` } -func (x *EventModifiedContract) Reset() { - *x = EventModifiedContract{} +func (x *EventGranted) Reset() { + *x = EventGranted{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[11] + mi := &file_lbm_collection_v1_event_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventModifiedContract) String() string { +func (x *EventGranted) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventModifiedContract) ProtoMessage() {} +func (*EventGranted) ProtoMessage() {} -// Deprecated: Use EventModifiedContract.ProtoReflect.Descriptor instead. -func (*EventModifiedContract) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{11} +// Deprecated: Use EventGranted.ProtoReflect.Descriptor instead. +func (*EventGranted) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{5} } -func (x *EventModifiedContract) GetContractId() string { +func (x *EventGranted) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventModifiedContract) GetOperator() string { +func (x *EventGranted) GetGranter() string { if x != nil { - return x.Operator + return x.Granter } return "" } -func (x *EventModifiedContract) GetChanges() []*Attribute { +func (x *EventGranted) GetGrantee() string { if x != nil { - return x.Changes + return x.Grantee } - return nil + return "" } -// EventModifiedTokenClass is emitted when the information of a token class is modified. +func (x *EventGranted) GetPermission() Permission { + if x != nil { + return x.Permission + } + return Permission_PERMISSION_UNSPECIFIED +} + +// EventRenounced is emitted when a grantee renounced its permission. // // Since: 0.46.0 (finschia) -type EventModifiedTokenClass struct { +type EventRenounced 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 modify. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // token type associated with the token class. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` - // changes of the attributes applied. - // possible attribute keys are same as those of MsgModify. - Changes []*Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes,omitempty"` - // type name of the token class. - TypeName string `protobuf:"bytes,5,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + // address of the grantee which abandons its grant. + Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` + // permission on the contract. + Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` } -func (x *EventModifiedTokenClass) Reset() { - *x = EventModifiedTokenClass{} +func (x *EventRenounced) Reset() { + *x = EventRenounced{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[12] + mi := &file_lbm_collection_v1_event_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventModifiedTokenClass) String() string { +func (x *EventRenounced) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventModifiedTokenClass) ProtoMessage() {} +func (*EventRenounced) ProtoMessage() {} -// Deprecated: Use EventModifiedTokenClass.ProtoReflect.Descriptor instead. -func (*EventModifiedTokenClass) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{12} +// Deprecated: Use EventRenounced.ProtoReflect.Descriptor instead. +func (*EventRenounced) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{6} } -func (x *EventModifiedTokenClass) GetContractId() string { +func (x *EventRenounced) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventModifiedTokenClass) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *EventModifiedTokenClass) GetTokenType() string { +func (x *EventRenounced) GetGrantee() string { if x != nil { - return x.TokenType + return x.Grantee } return "" } -func (x *EventModifiedTokenClass) GetChanges() []*Attribute { - if x != nil { - return x.Changes - } - return nil -} - -func (x *EventModifiedTokenClass) GetTypeName() string { +func (x *EventRenounced) GetPermission() Permission { if x != nil { - return x.TypeName + return x.Permission } - return "" + return Permission_PERMISSION_UNSPECIFIED } -// EventModifiedNFT is emitted when the information of a non-fungible token is modified. +// EventMintedNFT is emitted when non-fungible tokens are minted. // // Since: 0.46.0 (finschia) -type EventModifiedNFT struct { +type EventMintedNFT 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 modify. + // address which triggered the mint. Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // token id associated with the non-fungible token. - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // changes of the attributes applied. - // possible attribute keys are same as those of MsgModify. - Changes []*Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes,omitempty"` + // recipient of the tokens. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // tokens minted. + Tokens []*NFT `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens,omitempty"` } -func (x *EventModifiedNFT) Reset() { - *x = EventModifiedNFT{} +func (x *EventMintedNFT) Reset() { + *x = EventMintedNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[13] + mi := &file_lbm_collection_v1_event_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventModifiedNFT) String() string { +func (x *EventMintedNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventModifiedNFT) ProtoMessage() {} +func (*EventMintedNFT) ProtoMessage() {} -// Deprecated: Use EventModifiedNFT.ProtoReflect.Descriptor instead. -func (*EventModifiedNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{13} +// Deprecated: Use EventMintedNFT.ProtoReflect.Descriptor instead. +func (*EventMintedNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{7} } -func (x *EventModifiedNFT) GetContractId() string { +func (x *EventMintedNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventModifiedNFT) GetOperator() string { +func (x *EventMintedNFT) GetOperator() string { if x != nil { return x.Operator } return "" } -func (x *EventModifiedNFT) GetTokenId() string { +func (x *EventMintedNFT) GetTo() string { if x != nil { - return x.TokenId + return x.To } return "" } -func (x *EventModifiedNFT) GetChanges() []*Attribute { +func (x *EventMintedNFT) GetTokens() []*NFT { if x != nil { - return x.Changes + return x.Tokens } return nil } -// EventAttached is emitted when a token is attached to another. +// EventBurned is emitted when tokens are burnt. // // Since: 0.46.0 (finschia) -type EventAttached struct { +type EventBurned struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address which triggered the attach. + // address which triggered the burn. Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address which holds the tokens. - Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` - // subject of the attach. - Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` - // target of the attach. - Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` + // holder whose tokens were burned. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // amount of tokens burned. + Amount []*Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"` } -func (x *EventAttached) Reset() { - *x = EventAttached{} +func (x *EventBurned) Reset() { + *x = EventBurned{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[14] + mi := &file_lbm_collection_v1_event_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventAttached) String() string { +func (x *EventBurned) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventAttached) ProtoMessage() {} +func (*EventBurned) ProtoMessage() {} -// Deprecated: Use EventAttached.ProtoReflect.Descriptor instead. -func (*EventAttached) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{14} +// Deprecated: Use EventBurned.ProtoReflect.Descriptor instead. +func (*EventBurned) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{8} } -func (x *EventAttached) GetContractId() string { +func (x *EventBurned) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventAttached) GetOperator() string { +func (x *EventBurned) GetOperator() string { if x != nil { return x.Operator } return "" } -func (x *EventAttached) GetHolder() string { - if x != nil { - return x.Holder - } - return "" -} - -func (x *EventAttached) GetSubject() string { +func (x *EventBurned) GetFrom() string { if x != nil { - return x.Subject + return x.From } return "" } -func (x *EventAttached) GetTarget() string { +func (x *EventBurned) GetAmount() []*Coin { if x != nil { - return x.Target + return x.Amount } - return "" + return nil } -// EventDetached is emitted when a token is detached from its parent. +// EventModifiedContract is emitted when the information of a contract is modified. // // Since: 0.46.0 (finschia) -type EventDetached struct { +type EventModifiedContract struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address which triggered the detach. + // address which triggered the modify. Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address which holds the token. - Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` - // token being detached. - Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` - // parent token before the detach. - PreviousParent string `protobuf:"bytes,5,opt,name=previous_parent,json=previousParent,proto3" json:"previous_parent,omitempty"` + // changes of the attributes applied. + // possible attribute keys are same as those of MsgModify. + // deprecated "base_img_uri" has been replaced by "uri" in the events. + Changes []*Attribute `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes,omitempty"` } -func (x *EventDetached) Reset() { - *x = EventDetached{} +func (x *EventModifiedContract) Reset() { + *x = EventModifiedContract{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[15] + mi := &file_lbm_collection_v1_event_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventDetached) String() string { +func (x *EventModifiedContract) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventDetached) ProtoMessage() {} +func (*EventModifiedContract) ProtoMessage() {} -// Deprecated: Use EventDetached.ProtoReflect.Descriptor instead. -func (*EventDetached) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{15} +// Deprecated: Use EventModifiedContract.ProtoReflect.Descriptor instead. +func (*EventModifiedContract) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{9} } -func (x *EventDetached) GetContractId() string { +func (x *EventModifiedContract) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventDetached) GetOperator() string { +func (x *EventModifiedContract) GetOperator() string { if x != nil { return x.Operator } return "" } -func (x *EventDetached) GetHolder() string { - if x != nil { - return x.Holder - } - return "" -} - -func (x *EventDetached) GetSubject() string { - if x != nil { - return x.Subject - } - return "" -} - -func (x *EventDetached) GetPreviousParent() string { +func (x *EventModifiedContract) GetChanges() []*Attribute { if x != nil { - return x.PreviousParent + return x.Changes } - return "" + return nil } -// EventOwnerChanged is emitted when the owner of token is changed by operation applied to its ancestor. +// EventModifiedTokenClass is emitted when the information of a token class is modified. // // Since: 0.46.0 (finschia) -type EventOwnerChanged struct { +type EventModifiedTokenClass struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // address of the previous owner before the change. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // address of the new owner. - To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + // address which triggered the modify. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // token type associated with the token class. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // changes of the attributes applied. + // possible attribute keys are same as those of MsgModify. + Changes []*Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes,omitempty"` + // type name of the token class. + TypeName string `protobuf:"bytes,5,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` } -func (x *EventOwnerChanged) Reset() { - *x = EventOwnerChanged{} +func (x *EventModifiedTokenClass) Reset() { + *x = EventModifiedTokenClass{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[16] + mi := &file_lbm_collection_v1_event_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventOwnerChanged) String() string { +func (x *EventModifiedTokenClass) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventOwnerChanged) ProtoMessage() {} +func (*EventModifiedTokenClass) ProtoMessage() {} -// Deprecated: Use EventOwnerChanged.ProtoReflect.Descriptor instead. -func (*EventOwnerChanged) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{16} +// Deprecated: Use EventModifiedTokenClass.ProtoReflect.Descriptor instead. +func (*EventModifiedTokenClass) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{10} } -func (x *EventOwnerChanged) GetContractId() string { +func (x *EventModifiedTokenClass) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventOwnerChanged) GetTokenId() string { +func (x *EventModifiedTokenClass) GetOperator() string { if x != nil { - return x.TokenId + return x.Operator } return "" } -func (x *EventOwnerChanged) GetFrom() string { +func (x *EventModifiedTokenClass) GetTokenType() string { if x != nil { - return x.From + return x.TokenType } return "" } -func (x *EventOwnerChanged) GetTo() string { +func (x *EventModifiedTokenClass) GetChanges() []*Attribute { if x != nil { - return x.To + return x.Changes + } + return nil +} + +func (x *EventModifiedTokenClass) GetTypeName() string { + if x != nil { + return x.TypeName } return "" } -// EventRootChanged is emitted when the root of token is changed by operation applied to its ancestor. +// EventModifiedNFT is emitted when the information of a non-fungible token is modified. // // Since: 0.46.0 (finschia) -type EventRootChanged struct { +type EventModifiedNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // token id of the previous root before the change. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // token id of the new root. - To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + // address which triggered the modify. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // token id associated with the non-fungible token. + TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // changes of the attributes applied. + // possible attribute keys are same as those of MsgModify. + Changes []*Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes,omitempty"` } -func (x *EventRootChanged) Reset() { - *x = EventRootChanged{} +func (x *EventModifiedNFT) Reset() { + *x = EventModifiedNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_event_proto_msgTypes[17] + mi := &file_lbm_collection_v1_event_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EventRootChanged) String() string { +func (x *EventModifiedNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EventRootChanged) ProtoMessage() {} +func (*EventModifiedNFT) ProtoMessage() {} -// Deprecated: Use EventRootChanged.ProtoReflect.Descriptor instead. -func (*EventRootChanged) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{17} +// Deprecated: Use EventModifiedNFT.ProtoReflect.Descriptor instead. +func (*EventModifiedNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_event_proto_rawDescGZIP(), []int{11} } -func (x *EventRootChanged) GetContractId() string { +func (x *EventModifiedNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *EventRootChanged) GetTokenId() string { +func (x *EventModifiedNFT) GetOperator() string { if x != nil { - return x.TokenId + return x.Operator } return "" } -func (x *EventRootChanged) GetFrom() string { +func (x *EventModifiedNFT) GetTokenId() string { if x != nil { - return x.From + return x.TokenId } return "" } -func (x *EventRootChanged) GetTo() string { +func (x *EventModifiedNFT) GetChanges() []*Attribute { if x != nil { - return x.To + return x.Changes } - return "" + return nil } var File_lbm_collection_v1_event_proto protoreflect.FileDescriptor @@ -13178,211 +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, - 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, + 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, 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, - 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, + 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, 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, + 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, 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, + 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, 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, 0x22, 0xca, 0x01, 0x0a, - 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x12, 0x1f, - 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, - 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, - 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xdb, 0x01, 0x0a, 0x0d, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, + 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, 0x30, 0x0a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x68, 0x6f, - 0x6c, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x27, - 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, - 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x1f, 0x0a, - 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, - 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, - 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x28, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x02, 0x74, - 0x6f, 0x22, 0xa6, 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 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, 0x28, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x02, 0x74, 0x6f, 0x2a, 0xa4, 0x02, 0x0a, 0x0c, 0x41, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x3a, 0x0a, 0x19, 0x41, - 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x1b, 0x8a, 0x9d, 0x20, 0x17, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x55, 0x6e, 0x73, 0x70, - 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x41, 0x54, 0x54, 0x52, 0x49, - 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x1a, - 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, + 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, } var ( @@ -13398,47 +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, 18) +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 - (*EventAttached)(nil), // 15: lbm.collection.v1.EventAttached - (*EventDetached)(nil), // 16: lbm.collection.v1.EventDetached - (*EventOwnerChanged)(nil), // 17: lbm.collection.v1.EventOwnerChanged - (*EventRootChanged)(nil), // 18: lbm.collection.v1.EventRootChanged - (*Coin)(nil), // 19: lbm.collection.v1.Coin - (Permission)(0), // 20: lbm.collection.v1.Permission - (*NFT)(nil), // 21: lbm.collection.v1.NFT - (*Attribute)(nil), // 22: lbm.collection.v1.Attribute + (*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{ - 19, // 0: lbm.collection.v1.EventSent.amount:type_name -> lbm.collection.v1.Coin - 20, // 1: lbm.collection.v1.EventGranted.permission:type_name -> lbm.collection.v1.Permission - 20, // 2: lbm.collection.v1.EventRenounced.permission:type_name -> lbm.collection.v1.Permission - 19, // 3: lbm.collection.v1.EventMintedFT.amount:type_name -> lbm.collection.v1.Coin - 21, // 4: lbm.collection.v1.EventMintedNFT.tokens:type_name -> lbm.collection.v1.NFT - 19, // 5: lbm.collection.v1.EventBurned.amount:type_name -> lbm.collection.v1.Coin - 22, // 6: lbm.collection.v1.EventModifiedContract.changes:type_name -> lbm.collection.v1.Attribute - 22, // 7: lbm.collection.v1.EventModifiedTokenClass.changes:type_name -> lbm.collection.v1.Attribute - 22, // 8: lbm.collection.v1.EventModifiedNFT.changes:type_name -> lbm.collection.v1.Attribute - 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() } @@ -13497,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 @@ -13520,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 @@ -13532,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 @@ -13544,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 @@ -13568,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 @@ -13580,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 @@ -13592,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 @@ -13604,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 @@ -13616,54 +9033,6 @@ func file_lbm_collection_v1_event_proto_init() { return nil } } - file_lbm_collection_v1_event_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventAttached); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_event_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventDetached); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_event_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventOwnerChanged); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_event_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventRootChanged); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } } type x struct{} out := protoimpl.TypeBuilder{ @@ -13671,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: 18, + 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 0c0a92d64c..9355a56222 100644 --- a/api/lbm/collection/v1/genesis.pulsar.go +++ b/api/lbm/collection/v1/genesis.pulsar.go @@ -321,57 +321,6 @@ func (x *_GenesisState_7_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_GenesisState_8_list)(nil) - -type _GenesisState_8_list struct { - list *[]*ContractTokenRelations -} - -func (x *_GenesisState_8_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_8_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_8_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ContractTokenRelations) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_8_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ContractTokenRelations) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_8_list) AppendMutable() protoreflect.Value { - v := new(ContractTokenRelations) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_8_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_8_list) NewElement() protoreflect.Value { - v := new(ContractTokenRelations) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_8_list) IsValid() bool { - return x.list != nil -} - var _ protoreflect.List = (*_GenesisState_9_list)(nil) type _GenesisState_9_list struct { @@ -585,11 +534,11 @@ var ( fd_GenesisState_next_token_ids protoreflect.FieldDescriptor fd_GenesisState_balances protoreflect.FieldDescriptor fd_GenesisState_nfts protoreflect.FieldDescriptor - fd_GenesisState_parents protoreflect.FieldDescriptor fd_GenesisState_grants protoreflect.FieldDescriptor fd_GenesisState_authorizations protoreflect.FieldDescriptor fd_GenesisState_supplies protoreflect.FieldDescriptor fd_GenesisState_burnts protoreflect.FieldDescriptor + fd_GenesisState_class_state protoreflect.FieldDescriptor ) func init() { @@ -602,11 +551,11 @@ func init() { fd_GenesisState_next_token_ids = md_GenesisState.Fields().ByName("next_token_ids") fd_GenesisState_balances = md_GenesisState.Fields().ByName("balances") fd_GenesisState_nfts = md_GenesisState.Fields().ByName("nfts") - fd_GenesisState_parents = md_GenesisState.Fields().ByName("parents") fd_GenesisState_grants = md_GenesisState.Fields().ByName("grants") fd_GenesisState_authorizations = md_GenesisState.Fields().ByName("authorizations") fd_GenesisState_supplies = md_GenesisState.Fields().ByName("supplies") fd_GenesisState_burnts = md_GenesisState.Fields().ByName("burnts") + fd_GenesisState_class_state = md_GenesisState.Fields().ByName("class_state") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -716,12 +665,6 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } - if len(x.Parents) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_8_list{list: &x.Parents}) - if !f(fd_GenesisState_parents, value) { - return - } - } if len(x.Grants) != 0 { value := protoreflect.ValueOfList(&_GenesisState_9_list{list: &x.Grants}) if !f(fd_GenesisState_grants, value) { @@ -746,6 +689,12 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } + if x.ClassState != nil { + value := protoreflect.ValueOfMessage(x.ClassState.ProtoReflect()) + if !f(fd_GenesisState_class_state, value) { + return + } + } } // Has reports whether a field is populated. @@ -775,8 +724,6 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return len(x.Balances) != 0 case "lbm.collection.v1.GenesisState.nfts": return len(x.Nfts) != 0 - case "lbm.collection.v1.GenesisState.parents": - return len(x.Parents) != 0 case "lbm.collection.v1.GenesisState.grants": return len(x.Grants) != 0 case "lbm.collection.v1.GenesisState.authorizations": @@ -785,6 +732,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return len(x.Supplies) != 0 case "lbm.collection.v1.GenesisState.burnts": return len(x.Burnts) != 0 + case "lbm.collection.v1.GenesisState.class_state": + return x.ClassState != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.GenesisState")) @@ -815,8 +764,6 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.Balances = nil case "lbm.collection.v1.GenesisState.nfts": x.Nfts = nil - case "lbm.collection.v1.GenesisState.parents": - x.Parents = nil case "lbm.collection.v1.GenesisState.grants": x.Grants = nil case "lbm.collection.v1.GenesisState.authorizations": @@ -825,6 +772,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.Supplies = nil case "lbm.collection.v1.GenesisState.burnts": x.Burnts = nil + case "lbm.collection.v1.GenesisState.class_state": + x.ClassState = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.GenesisState")) @@ -880,12 +829,6 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_7_list{list: &x.Nfts} return protoreflect.ValueOfList(listValue) - case "lbm.collection.v1.GenesisState.parents": - if len(x.Parents) == 0 { - return protoreflect.ValueOfList(&_GenesisState_8_list{}) - } - listValue := &_GenesisState_8_list{list: &x.Parents} - return protoreflect.ValueOfList(listValue) case "lbm.collection.v1.GenesisState.grants": if len(x.Grants) == 0 { return protoreflect.ValueOfList(&_GenesisState_9_list{}) @@ -910,6 +853,9 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_12_list{list: &x.Burnts} return protoreflect.ValueOfList(listValue) + case "lbm.collection.v1.GenesisState.class_state": + value := x.ClassState + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.GenesisState")) @@ -956,10 +902,6 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_7_list) x.Nfts = *clv.list - case "lbm.collection.v1.GenesisState.parents": - lv := value.List() - clv := lv.(*_GenesisState_8_list) - x.Parents = *clv.list case "lbm.collection.v1.GenesisState.grants": lv := value.List() clv := lv.(*_GenesisState_9_list) @@ -976,6 +918,8 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_12_list) x.Burnts = *clv.list + case "lbm.collection.v1.GenesisState.class_state": + x.ClassState = value.Message().Interface().(*ClassState) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.GenesisState")) @@ -1037,12 +981,6 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_7_list{list: &x.Nfts} return protoreflect.ValueOfList(value) - case "lbm.collection.v1.GenesisState.parents": - if x.Parents == nil { - x.Parents = []*ContractTokenRelations{} - } - value := &_GenesisState_8_list{list: &x.Parents} - return protoreflect.ValueOfList(value) case "lbm.collection.v1.GenesisState.grants": if x.Grants == nil { x.Grants = []*ContractGrants{} @@ -1067,6 +1005,11 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_12_list{list: &x.Burnts} return protoreflect.ValueOfList(value) + case "lbm.collection.v1.GenesisState.class_state": + if x.ClassState == nil { + x.ClassState = new(ClassState) + } + return protoreflect.ValueOfMessage(x.ClassState.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.GenesisState")) @@ -1101,9 +1044,6 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "lbm.collection.v1.GenesisState.nfts": list := []*ContractNFTs{} return protoreflect.ValueOfList(&_GenesisState_7_list{list: &list}) - case "lbm.collection.v1.GenesisState.parents": - list := []*ContractTokenRelations{} - return protoreflect.ValueOfList(&_GenesisState_8_list{list: &list}) case "lbm.collection.v1.GenesisState.grants": list := []*ContractGrants{} return protoreflect.ValueOfList(&_GenesisState_9_list{list: &list}) @@ -1116,6 +1056,9 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "lbm.collection.v1.GenesisState.burnts": list := []*ContractStatistics{} return protoreflect.ValueOfList(&_GenesisState_12_list{list: &list}) + case "lbm.collection.v1.GenesisState.class_state": + m := new(ClassState) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.GenesisState")) @@ -1225,12 +1168,6 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } - if len(x.Parents) > 0 { - for _, e := range x.Parents { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } if len(x.Grants) > 0 { for _, e := range x.Grants { l = options.Size(e) @@ -1255,6 +1192,10 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } + if x.ClassState != nil { + l = options.Size(x.ClassState) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1284,6 +1225,20 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.ClassState != nil { + encoded, err := options.Marshal(x.ClassState) + 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] = 0x6a + } if len(x.Burnts) > 0 { for iNdEx := len(x.Burnts) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.Burnts[iNdEx]) @@ -1348,22 +1303,6 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x4a } } - if len(x.Parents) > 0 { - for iNdEx := len(x.Parents) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Parents[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x42 - } - } if len(x.Nfts) > 0 { for iNdEx := len(x.Nfts) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.Nfts[iNdEx]) @@ -1763,9 +1702,9 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 8: + case 9: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Parents", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1792,14 +1731,14 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Parents = append(x.Parents, &ContractTokenRelations{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Parents[len(x.Parents)-1]); err != nil { + x.Grants = append(x.Grants, &ContractGrants{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Grants[len(x.Grants)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 9: + case 10: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authorizations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1826,14 +1765,14 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Grants = append(x.Grants, &ContractGrants{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Grants[len(x.Grants)-1]); err != nil { + x.Authorizations = append(x.Authorizations, &ContractAuthorizations{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Authorizations[len(x.Authorizations)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 10: + case 11: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authorizations", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Supplies", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1860,14 +1799,14 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Authorizations = append(x.Authorizations, &ContractAuthorizations{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Authorizations[len(x.Authorizations)-1]); err != nil { + x.Supplies = append(x.Supplies, &ContractStatistics{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Supplies[len(x.Supplies)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 11: + case 12: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Supplies", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Burnts", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1894,14 +1833,14 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Supplies = append(x.Supplies, &ContractStatistics{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Supplies[len(x.Supplies)-1]); err != nil { + x.Burnts = append(x.Burnts, &ContractStatistics{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Burnts[len(x.Burnts)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 12: + case 13: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Burnts", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassState", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1928,8 +1867,10 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Burnts = append(x.Burnts, &ContractStatistics{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Burnts[len(x.Burnts)-1]); err != nil { + if x.ClassState == nil { + x.ClassState = &ClassState{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ClassState); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -6361,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 ) @@ -6369,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") } @@ -6444,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) { @@ -6473,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: @@ -6495,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: @@ -6518,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) @@ -6546,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: @@ -6572,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: @@ -6591,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: @@ -6668,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)) @@ -6712,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) @@ -6807,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) @@ -7948,79 +7825,74 @@ func (x *fastReflection_NextTokenID) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_ContractTokenRelations_2_list)(nil) +var _ protoreflect.List = (*_ClassState_2_list)(nil) -type _ContractTokenRelations_2_list struct { - list *[]*TokenRelation +type _ClassState_2_list struct { + list *[]string } -func (x *_ContractTokenRelations_2_list) Len() int { +func (x *_ClassState_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_ContractTokenRelations_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +func (x *_ClassState_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) } -func (x *_ContractTokenRelations_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TokenRelation) +func (x *_ClassState_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_ContractTokenRelations_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TokenRelation) +func (x *_ClassState_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_ContractTokenRelations_2_list) AppendMutable() protoreflect.Value { - v := new(TokenRelation) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_ClassState_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message ClassState at list field Ids as it is not of Message kind")) } -func (x *_ContractTokenRelations_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } +func (x *_ClassState_2_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_ContractTokenRelations_2_list) NewElement() protoreflect.Value { - v := new(TokenRelation) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_ClassState_2_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) } -func (x *_ContractTokenRelations_2_list) IsValid() bool { +func (x *_ClassState_2_list) IsValid() bool { return x.list != nil } var ( - md_ContractTokenRelations protoreflect.MessageDescriptor - fd_ContractTokenRelations_contract_id protoreflect.FieldDescriptor - fd_ContractTokenRelations_relations protoreflect.FieldDescriptor + md_ClassState protoreflect.MessageDescriptor + fd_ClassState_nonce protoreflect.FieldDescriptor + fd_ClassState_ids protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_genesis_proto_init() - md_ContractTokenRelations = File_lbm_collection_v1_genesis_proto.Messages().ByName("ContractTokenRelations") - fd_ContractTokenRelations_contract_id = md_ContractTokenRelations.Fields().ByName("contract_id") - fd_ContractTokenRelations_relations = md_ContractTokenRelations.Fields().ByName("relations") + md_ClassState = File_lbm_collection_v1_genesis_proto.Messages().ByName("ClassState") + fd_ClassState_nonce = md_ClassState.Fields().ByName("nonce") + fd_ClassState_ids = md_ClassState.Fields().ByName("ids") } -var _ protoreflect.Message = (*fastReflection_ContractTokenRelations)(nil) +var _ protoreflect.Message = (*fastReflection_ClassState)(nil) -type fastReflection_ContractTokenRelations ContractTokenRelations +type fastReflection_ClassState ClassState -func (x *ContractTokenRelations) ProtoReflect() protoreflect.Message { - return (*fastReflection_ContractTokenRelations)(x) +func (x *ClassState) ProtoReflect() protoreflect.Message { + return (*fastReflection_ClassState)(x) } -func (x *ContractTokenRelations) slowProtoReflect() protoreflect.Message { +func (x *ClassState) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_genesis_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8032,43 +7904,43 @@ func (x *ContractTokenRelations) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ContractTokenRelations_messageType fastReflection_ContractTokenRelations_messageType -var _ protoreflect.MessageType = fastReflection_ContractTokenRelations_messageType{} +var _fastReflection_ClassState_messageType fastReflection_ClassState_messageType +var _ protoreflect.MessageType = fastReflection_ClassState_messageType{} -type fastReflection_ContractTokenRelations_messageType struct{} +type fastReflection_ClassState_messageType struct{} -func (x fastReflection_ContractTokenRelations_messageType) Zero() protoreflect.Message { - return (*fastReflection_ContractTokenRelations)(nil) +func (x fastReflection_ClassState_messageType) Zero() protoreflect.Message { + return (*fastReflection_ClassState)(nil) } -func (x fastReflection_ContractTokenRelations_messageType) New() protoreflect.Message { - return new(fastReflection_ContractTokenRelations) +func (x fastReflection_ClassState_messageType) New() protoreflect.Message { + return new(fastReflection_ClassState) } -func (x fastReflection_ContractTokenRelations_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ContractTokenRelations +func (x fastReflection_ClassState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ClassState } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ContractTokenRelations) Descriptor() protoreflect.MessageDescriptor { - return md_ContractTokenRelations +func (x *fastReflection_ClassState) Descriptor() protoreflect.MessageDescriptor { + return md_ClassState } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ContractTokenRelations) Type() protoreflect.MessageType { - return _fastReflection_ContractTokenRelations_messageType +func (x *fastReflection_ClassState) Type() protoreflect.MessageType { + return _fastReflection_ClassState_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ContractTokenRelations) New() protoreflect.Message { - return new(fastReflection_ContractTokenRelations) +func (x *fastReflection_ClassState) New() protoreflect.Message { + return new(fastReflection_ClassState) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ContractTokenRelations) Interface() protoreflect.ProtoMessage { - return (*ContractTokenRelations)(x) +func (x *fastReflection_ClassState) Interface() protoreflect.ProtoMessage { + return (*ClassState)(x) } // Range iterates over every populated field in an undefined order, @@ -8076,16 +7948,16 @@ func (x *fastReflection_ContractTokenRelations) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ContractTokenRelations) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_ContractTokenRelations_contract_id, value) { +func (x *fastReflection_ClassState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != "" { + value := protoreflect.ValueOfString(x.Nonce) + if !f(fd_ClassState_nonce, value) { return } } - if len(x.Relations) != 0 { - value := protoreflect.ValueOfList(&_ContractTokenRelations_2_list{list: &x.Relations}) - if !f(fd_ContractTokenRelations_relations, value) { + if len(x.Ids) != 0 { + value := protoreflect.ValueOfList(&_ClassState_2_list{list: &x.Ids}) + if !f(fd_ClassState_ids, value) { return } } @@ -8102,17 +7974,17 @@ func (x *fastReflection_ContractTokenRelations) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ContractTokenRelations) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ClassState) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.ContractTokenRelations.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.ContractTokenRelations.relations": - return len(x.Relations) != 0 + case "lbm.collection.v1.ClassState.nonce": + return x.Nonce != "" + case "lbm.collection.v1.ClassState.ids": + return len(x.Ids) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState does not contain field %s", fd.FullName())) } } @@ -8122,17 +7994,17 @@ func (x *fastReflection_ContractTokenRelations) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ContractTokenRelations) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ClassState) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.ContractTokenRelations.contract_id": - x.ContractId = "" - case "lbm.collection.v1.ContractTokenRelations.relations": - x.Relations = nil + case "lbm.collection.v1.ClassState.nonce": + x.Nonce = "" + case "lbm.collection.v1.ClassState.ids": + x.Ids = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState does not contain field %s", fd.FullName())) } } @@ -8142,22 +8014,22 @@ func (x *fastReflection_ContractTokenRelations) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ContractTokenRelations) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ClassState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.ContractTokenRelations.contract_id": - value := x.ContractId + case "lbm.collection.v1.ClassState.nonce": + value := x.Nonce return protoreflect.ValueOfString(value) - case "lbm.collection.v1.ContractTokenRelations.relations": - if len(x.Relations) == 0 { - return protoreflect.ValueOfList(&_ContractTokenRelations_2_list{}) + case "lbm.collection.v1.ClassState.ids": + if len(x.Ids) == 0 { + return protoreflect.ValueOfList(&_ClassState_2_list{}) } - listValue := &_ContractTokenRelations_2_list{list: &x.Relations} + listValue := &_ClassState_2_list{list: &x.Ids} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState does not contain field %s", descriptor.FullName())) } } @@ -8171,19 +8043,19 @@ func (x *fastReflection_ContractTokenRelations) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ContractTokenRelations) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ClassState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.ContractTokenRelations.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.ContractTokenRelations.relations": + case "lbm.collection.v1.ClassState.nonce": + x.Nonce = value.Interface().(string) + case "lbm.collection.v1.ClassState.ids": lv := value.List() - clv := lv.(*_ContractTokenRelations_2_list) - x.Relations = *clv.list + clv := lv.(*_ClassState_2_list) + x.Ids = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState does not contain field %s", fd.FullName())) } } @@ -8197,49 +8069,49 @@ func (x *fastReflection_ContractTokenRelations) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ContractTokenRelations) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ClassState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.ContractTokenRelations.relations": - if x.Relations == nil { - x.Relations = []*TokenRelation{} + case "lbm.collection.v1.ClassState.ids": + if x.Ids == nil { + x.Ids = []string{} } - value := &_ContractTokenRelations_2_list{list: &x.Relations} + value := &_ClassState_2_list{list: &x.Ids} return protoreflect.ValueOfList(value) - case "lbm.collection.v1.ContractTokenRelations.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.ContractTokenRelations is not mutable")) + case "lbm.collection.v1.ClassState.nonce": + panic(fmt.Errorf("field nonce of message lbm.collection.v1.ClassState is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ContractTokenRelations) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ClassState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.ContractTokenRelations.contract_id": + case "lbm.collection.v1.ClassState.nonce": return protoreflect.ValueOfString("") - case "lbm.collection.v1.ContractTokenRelations.relations": - list := []*TokenRelation{} - return protoreflect.ValueOfList(&_ContractTokenRelations_2_list{list: &list}) + case "lbm.collection.v1.ClassState.ids": + list := []string{} + return protoreflect.ValueOfList(&_ClassState_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ContractTokenRelations")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.ClassState")) } - panic(fmt.Errorf("message lbm.collection.v1.ContractTokenRelations does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.ClassState does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ContractTokenRelations) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ClassState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.ContractTokenRelations", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.ClassState", d.FullName())) } panic("unreachable") } @@ -8247,7 +8119,7 @@ func (x *fastReflection_ContractTokenRelations) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ContractTokenRelations) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ClassState) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8258,7 +8130,7 @@ func (x *fastReflection_ContractTokenRelations) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ContractTokenRelations) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ClassState) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8270,7 +8142,7 @@ func (x *fastReflection_ContractTokenRelations) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ContractTokenRelations) IsValid() bool { +func (x *fastReflection_ClassState) IsValid() bool { return x != nil } @@ -8280,9 +8152,9 @@ func (x *fastReflection_ContractTokenRelations) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ClassState) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ContractTokenRelations) + x := input.Message.Interface().(*ClassState) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8294,13 +8166,13 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho var n int var l int _ = l - l = len(x.ContractId) + l = len(x.Nonce) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Relations) > 0 { - for _, e := range x.Relations { - l = options.Size(e) + if len(x.Ids) > 0 { + for _, s := range x.Ids { + l = len(s) n += 1 + l + runtime.Sov(uint64(l)) } } @@ -8314,7 +8186,7 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ContractTokenRelations) + x := input.Message.Interface().(*ClassState) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8333,26 +8205,19 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Relations) > 0 { - for iNdEx := len(x.Relations) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Relations[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.Ids) > 0 { + for iNdEx := len(x.Ids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Ids[iNdEx]) + copy(dAtA[i:], x.Ids[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Ids[iNdEx]))) i-- dAtA[i] = 0x12 } } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) + if len(x.Nonce) > 0 { + i -= len(x.Nonce) + copy(dAtA[i:], x.Nonce) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Nonce))) i-- dAtA[i] = 0xa } @@ -8367,7 +8232,7 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ContractTokenRelations) + x := input.Message.Interface().(*ClassState) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8399,15 +8264,15 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ContractTokenRelations: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ClassState: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ContractTokenRelations: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ClassState: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8435,13 +8300,13 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ContractId = string(dAtA[iNdEx:postIndex]) + x.Nonce = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Relations", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -8451,25 +8316,23 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho } 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.Relations = append(x.Relations, &TokenRelation{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Relations[len(x.Relations)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Ids = append(x.Ids, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -8506,549 +8369,65 @@ func (x *fastReflection_ContractTokenRelations) ProtoMethods() *protoiface.Metho } } -var ( - md_TokenRelation protoreflect.MessageDescriptor - fd_TokenRelation_self protoreflect.FieldDescriptor - fd_TokenRelation_other protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_genesis_proto_init() - md_TokenRelation = File_lbm_collection_v1_genesis_proto.Messages().ByName("TokenRelation") - fd_TokenRelation_self = md_TokenRelation.Fields().ByName("self") - fd_TokenRelation_other = md_TokenRelation.Fields().ByName("other") -} +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: lbm/collection/v1/genesis.proto -var _ protoreflect.Message = (*fastReflection_TokenRelation)(nil) +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -type fastReflection_TokenRelation TokenRelation +// GenesisState defines the collection module's genesis state. +type GenesisState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *TokenRelation) ProtoReflect() protoreflect.Message { - return (*fastReflection_TokenRelation)(x) + // params defines all the paramaters of the module. + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + // contracts defines the metadata of the contracts. + Contracts []*Contract `protobuf:"bytes,2,rep,name=contracts,proto3" json:"contracts,omitempty"` + // next ids for token classes. + NextClassIds []*NextClassIDs `protobuf:"bytes,3,rep,name=next_class_ids,json=nextClassIds,proto3" json:"next_class_ids,omitempty"` + // classes defines the metadata of the tokens. + Classes []*ContractClasses `protobuf:"bytes,4,rep,name=classes,proto3" json:"classes,omitempty"` + // next ids for (non-fungible) tokens. + NextTokenIds []*ContractNextTokenIDs `protobuf:"bytes,5,rep,name=next_token_ids,json=nextTokenIds,proto3" json:"next_token_ids,omitempty"` + // balances is an array containing the balances of all the accounts. + Balances []*ContractBalances `protobuf:"bytes,6,rep,name=balances,proto3" json:"balances,omitempty"` + // nfts is an array containing the nfts. + Nfts []*ContractNFTs `protobuf:"bytes,7,rep,name=nfts,proto3" json:"nfts,omitempty"` + // grants defines the grant information. + Grants []*ContractGrants `protobuf:"bytes,9,rep,name=grants,proto3" json:"grants,omitempty"` + // authorizations defines the approve information. + Authorizations []*ContractAuthorizations `protobuf:"bytes,10,rep,name=authorizations,proto3" json:"authorizations,omitempty"` + // supplies represents the total supplies of tokens. + Supplies []*ContractStatistics `protobuf:"bytes,11,rep,name=supplies,proto3" json:"supplies,omitempty"` + // burnts represents the total amount of burnt tokens. + Burnts []*ContractStatistics `protobuf:"bytes,12,rep,name=burnts,proto3" json:"burnts,omitempty"` + // class_state defines the classes state. It was class keeper's genesis state in legacy x/token. + ClassState *ClassState `protobuf:"bytes,13,opt,name=class_state,json=classState,proto3" json:"class_state,omitempty"` } -func (x *TokenRelation) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_genesis_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { +func (x *GenesisState) Reset() { + *x = GenesisState{} + if protoimpl.UnsafeEnabled { + mi := &file_lbm_collection_v1_genesis_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms + ms.StoreMessageInfo(mi) } - return mi.MessageOf(x) } -var _fastReflection_TokenRelation_messageType fastReflection_TokenRelation_messageType -var _ protoreflect.MessageType = fastReflection_TokenRelation_messageType{} +func (x *GenesisState) String() string { + return protoimpl.X.MessageStringOf(x) +} -type fastReflection_TokenRelation_messageType struct{} - -func (x fastReflection_TokenRelation_messageType) Zero() protoreflect.Message { - return (*fastReflection_TokenRelation)(nil) -} -func (x fastReflection_TokenRelation_messageType) New() protoreflect.Message { - return new(fastReflection_TokenRelation) -} -func (x fastReflection_TokenRelation_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_TokenRelation -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_TokenRelation) Descriptor() protoreflect.MessageDescriptor { - return md_TokenRelation -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_TokenRelation) Type() protoreflect.MessageType { - return _fastReflection_TokenRelation_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_TokenRelation) New() protoreflect.Message { - return new(fastReflection_TokenRelation) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_TokenRelation) Interface() protoreflect.ProtoMessage { - return (*TokenRelation)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_TokenRelation) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Self != "" { - value := protoreflect.ValueOfString(x.Self) - if !f(fd_TokenRelation_self, value) { - return - } - } - if x.Other != "" { - value := protoreflect.ValueOfString(x.Other) - if !f(fd_TokenRelation_other, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_TokenRelation) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.TokenRelation.self": - return x.Self != "" - case "lbm.collection.v1.TokenRelation.other": - return x.Other != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TokenRelation) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.TokenRelation.self": - x.Self = "" - case "lbm.collection.v1.TokenRelation.other": - x.Other = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_TokenRelation) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.TokenRelation.self": - value := x.Self - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.TokenRelation.other": - value := x.Other - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TokenRelation) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.TokenRelation.self": - x.Self = value.Interface().(string) - case "lbm.collection.v1.TokenRelation.other": - x.Other = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TokenRelation) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.TokenRelation.self": - panic(fmt.Errorf("field self of message lbm.collection.v1.TokenRelation is not mutable")) - case "lbm.collection.v1.TokenRelation.other": - panic(fmt.Errorf("field other of message lbm.collection.v1.TokenRelation is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_TokenRelation) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.TokenRelation.self": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.TokenRelation.other": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.TokenRelation")) - } - panic(fmt.Errorf("message lbm.collection.v1.TokenRelation does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_TokenRelation) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.TokenRelation", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_TokenRelation) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TokenRelation) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_TokenRelation) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_TokenRelation) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*TokenRelation) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Self) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Other) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*TokenRelation) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Other) > 0 { - i -= len(x.Other) - copy(dAtA[i:], x.Other) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Other))) - i-- - dAtA[i] = 0x12 - } - if len(x.Self) > 0 { - i -= len(x.Self) - copy(dAtA[i:], x.Self) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Self))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*TokenRelation) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TokenRelation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TokenRelation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Self", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Self = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Other", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Other = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: lbm/collection/v1/genesis.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) -) - -// GenesisState defines the collection module's genesis state. -type GenesisState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // params defines all the paramaters of the module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - // contracts defines the metadata of the contracts. - Contracts []*Contract `protobuf:"bytes,2,rep,name=contracts,proto3" json:"contracts,omitempty"` - // next ids for token classes. - NextClassIds []*NextClassIDs `protobuf:"bytes,3,rep,name=next_class_ids,json=nextClassIds,proto3" json:"next_class_ids,omitempty"` - // classes defines the metadata of the tokens. - Classes []*ContractClasses `protobuf:"bytes,4,rep,name=classes,proto3" json:"classes,omitempty"` - // next ids for (non-fungible) tokens. - NextTokenIds []*ContractNextTokenIDs `protobuf:"bytes,5,rep,name=next_token_ids,json=nextTokenIds,proto3" json:"next_token_ids,omitempty"` - // balances is an array containing the balances of all the accounts. - Balances []*ContractBalances `protobuf:"bytes,6,rep,name=balances,proto3" json:"balances,omitempty"` - // nfts is an array containing the nfts. - Nfts []*ContractNFTs `protobuf:"bytes,7,rep,name=nfts,proto3" json:"nfts,omitempty"` - // parents represents the parents of (non-fungible) tokens. - Parents []*ContractTokenRelations `protobuf:"bytes,8,rep,name=parents,proto3" json:"parents,omitempty"` - // grants defines the grant information. - Grants []*ContractGrants `protobuf:"bytes,9,rep,name=grants,proto3" json:"grants,omitempty"` - // authorizations defines the approve information. - Authorizations []*ContractAuthorizations `protobuf:"bytes,10,rep,name=authorizations,proto3" json:"authorizations,omitempty"` - // supplies represents the total supplies of tokens. - Supplies []*ContractStatistics `protobuf:"bytes,11,rep,name=supplies,proto3" json:"supplies,omitempty"` - // burnts represents the total amount of burnt tokens. - Burnts []*ContractStatistics `protobuf:"bytes,12,rep,name=burnts,proto3" json:"burnts,omitempty"` -} - -func (x *GenesisState) Reset() { - *x = GenesisState{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_genesis_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenesisState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenesisState) ProtoMessage() {} +func (*GenesisState) ProtoMessage() {} // Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. func (*GenesisState) Descriptor() ([]byte, []int) { @@ -9104,13 +8483,6 @@ func (x *GenesisState) GetNfts() []*ContractNFTs { return nil } -func (x *GenesisState) GetParents() []*ContractTokenRelations { - if x != nil { - return x.Parents - } - return nil -} - func (x *GenesisState) GetGrants() []*ContractGrants { if x != nil { return x.Grants @@ -9139,6 +8511,13 @@ func (x *GenesisState) GetBurnts() []*ContractStatistics { return nil } +func (x *GenesisState) GetClassState() *ClassState { + if x != nil { + return x.ClassState + } + return nil +} + // ContractBalances defines balances belong to a contract. // genesis state. type ContractBalances struct { @@ -9514,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"` } @@ -9547,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 @@ -9651,20 +9021,20 @@ func (x *NextTokenID) GetId() string { return "" } -// ContractTokenRelations defines token relations belong to a contract. -type ContractTokenRelations struct { +// ClassState defines the classes state. +type ClassState struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // relations - Relations []*TokenRelation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` + // nonce is the next class nonce to issue. + Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + // ids represents the issued ids. + Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` } -func (x *ContractTokenRelations) Reset() { - *x = ContractTokenRelations{} +func (x *ClassState) Reset() { + *x = ClassState{} if protoimpl.UnsafeEnabled { mi := &file_lbm_collection_v1_genesis_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9672,77 +9042,31 @@ func (x *ContractTokenRelations) Reset() { } } -func (x *ContractTokenRelations) String() string { +func (x *ClassState) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ContractTokenRelations) ProtoMessage() {} +func (*ClassState) ProtoMessage() {} -// Deprecated: Use ContractTokenRelations.ProtoReflect.Descriptor instead. -func (*ContractTokenRelations) Descriptor() ([]byte, []int) { +// Deprecated: Use ClassState.ProtoReflect.Descriptor instead. +func (*ClassState) Descriptor() ([]byte, []int) { return file_lbm_collection_v1_genesis_proto_rawDescGZIP(), []int{12} } -func (x *ContractTokenRelations) GetContractId() string { +func (x *ClassState) GetNonce() string { if x != nil { - return x.ContractId + return x.Nonce } return "" } -func (x *ContractTokenRelations) GetRelations() []*TokenRelation { +func (x *ClassState) GetIds() []string { if x != nil { - return x.Relations + return x.Ids } return nil } -// TokenRelation defines relations between two tokens. -type TokenRelation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // self - Self string `protobuf:"bytes,1,opt,name=self,proto3" json:"self,omitempty"` - // other - Other string `protobuf:"bytes,2,opt,name=other,proto3" json:"other,omitempty"` -} - -func (x *TokenRelation) Reset() { - *x = TokenRelation{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_genesis_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TokenRelation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TokenRelation) ProtoMessage() {} - -// Deprecated: Use TokenRelation.ProtoReflect.Descriptor instead. -func (*TokenRelation) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_genesis_proto_rawDescGZIP(), []int{13} -} - -func (x *TokenRelation) GetSelf() string { - if x != nil { - return x.Self - } - return "" -} - -func (x *TokenRelation) GetOther() string { - if x != nil { - return x.Other - } - return "" -} - var File_lbm_collection_v1_genesis_proto protoreflect.FileDescriptor var file_lbm_collection_v1_genesis_proto_rawDesc = []byte{ @@ -9756,7 +9080,7 @@ var file_lbm_collection_v1_genesis_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe3, 0x06, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xde, 0x06, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, @@ -9787,141 +9111,129 @@ var file_lbm_collection_v1_genesis_proto_rawDesc = []byte{ 0x6e, 0x66, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x4e, 0x46, 0x54, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x04, 0x6e, 0x66, 0x74, 0x73, 0x12, 0x49, 0x0a, 0x07, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x73, 0x12, 0x3f, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x09, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x73, 0x12, 0x57, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x62, - 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x47, 0x0a, 0x08, - 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, - 0x73, 0x74, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x73, 0x75, 0x70, - 0x70, 0x6c, 0x69, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x06, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x73, 0x18, - 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x06, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x73, 0x22, 0x71, 0x0a, 0x10, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x1f, + 0x00, 0x52, 0x04, 0x6e, 0x66, 0x74, 0x73, 0x12, 0x3f, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, + 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x57, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x47, 0x0a, 0x08, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x0b, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x08, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x06, 0x62, 0x75, + 0x72, 0x6e, 0x74, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x62, 0x6d, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x73, 0x12, + 0x3e, 0x0a, 0x0b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4a, + 0x04, 0x08, 0x08, 0x10, 0x09, 0x22, 0x71, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x08, 0x62, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, + 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, + 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x7f, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, - 0x3c, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x7f, 0x0a, - 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, - 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x78, - 0x0a, 0x0f, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, - 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0xc8, 0xde, - 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, - 0x69, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, - 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x69, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x05, - 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, - 0xa0, 0x1f, 0x01, 0x22, 0x76, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x12, - 0xc8, 0xde, 0x1f, 0x00, 0xca, 0xb4, 0x2d, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x22, 0x61, 0x0a, 0x0c, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x4e, 0x46, 0x54, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, + 0x48, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, + 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x73, + 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x71, 0x0a, 0x0f, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x19, 0x0a, 0x08, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x69, 0x0a, 0x07, + 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, + 0xaa, 0xdf, 0x1f, 0x05, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x76, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x07, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, + 0x6e, 0x79, 0x42, 0x12, 0xc8, 0xde, 0x1f, 0x00, 0xca, 0xb4, 0x2d, 0x0a, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x22, + 0x61, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x4e, 0x46, 0x54, 0x73, 0x12, + 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, + 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x66, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x4e, 0x46, 0x54, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x04, 0x6e, 0x66, + 0x74, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, + 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x4e, + 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x69, + 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, + 0x64, 0x12, 0x36, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 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, 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, 0x30, 0x0a, 0x04, - 0x6e, 0x66, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x62, 0x6d, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, - 0x46, 0x54, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x04, 0x6e, 0x66, 0x74, 0x73, 0x22, 0x89, - 0x01, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x4e, 0x0a, 0x0e, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x69, 0x0a, 0x0e, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x36, 0x0a, - 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, - 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0xd8, 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, 0x4f, 0x0a, 0x08, 0x66, 0x75, 0x6e, 0x67, 0x69, - 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xc8, 0xde, 0x1f, 0x00, 0xda, - 0xde, 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, - 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2d, - 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x08, - 0x66, 0x75, 0x6e, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x56, 0x0a, 0x0c, 0x6e, 0x6f, 0x6e, 0x5f, - 0x66, 0x75, 0x6e, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, - 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, - 0x63, 0x68, 0x69, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 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, 0x6d, 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, 0x43, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x33, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, - 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7f, 0x0a, 0x16, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6c, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x09, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x09, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x39, 0x0a, 0x0d, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, - 0x04, 0x73, 0x65, 0x6c, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x6c, - 0x66, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 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, + 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 ( @@ -9936,7 +9248,7 @@ func file_lbm_collection_v1_genesis_proto_rawDescGZIP() []byte { return file_lbm_collection_v1_genesis_proto_rawDescData } -var file_lbm_collection_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_lbm_collection_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_lbm_collection_v1_genesis_proto_goTypes = []interface{}{ (*GenesisState)(nil), // 0: lbm.collection.v1.GenesisState (*ContractBalances)(nil), // 1: lbm.collection.v1.ContractBalances @@ -9950,43 +9262,41 @@ var file_lbm_collection_v1_genesis_proto_goTypes = []interface{}{ (*NextClassIDs)(nil), // 9: lbm.collection.v1.NextClassIDs (*ContractNextTokenIDs)(nil), // 10: lbm.collection.v1.ContractNextTokenIDs (*NextTokenID)(nil), // 11: lbm.collection.v1.NextTokenID - (*ContractTokenRelations)(nil), // 12: lbm.collection.v1.ContractTokenRelations - (*TokenRelation)(nil), // 13: lbm.collection.v1.TokenRelation - (*Params)(nil), // 14: lbm.collection.v1.Params - (*Contract)(nil), // 15: lbm.collection.v1.Contract - (*Coin)(nil), // 16: lbm.collection.v1.Coin - (*anypb.Any)(nil), // 17: google.protobuf.Any - (*NFT)(nil), // 18: lbm.collection.v1.NFT - (*Authorization)(nil), // 19: lbm.collection.v1.Authorization - (*Grant)(nil), // 20: lbm.collection.v1.Grant + (*ClassState)(nil), // 12: lbm.collection.v1.ClassState + (*Params)(nil), // 13: lbm.collection.v1.Params + (*Contract)(nil), // 14: lbm.collection.v1.Contract + (*Coin)(nil), // 15: lbm.collection.v1.Coin + (*anypb.Any)(nil), // 16: google.protobuf.Any + (*NFT)(nil), // 17: lbm.collection.v1.NFT + (*Authorization)(nil), // 18: lbm.collection.v1.Authorization + (*Grant)(nil), // 19: lbm.collection.v1.Grant } var file_lbm_collection_v1_genesis_proto_depIdxs = []int32{ - 14, // 0: lbm.collection.v1.GenesisState.params:type_name -> lbm.collection.v1.Params - 15, // 1: lbm.collection.v1.GenesisState.contracts:type_name -> lbm.collection.v1.Contract + 13, // 0: lbm.collection.v1.GenesisState.params:type_name -> lbm.collection.v1.Params + 14, // 1: lbm.collection.v1.GenesisState.contracts:type_name -> lbm.collection.v1.Contract 9, // 2: lbm.collection.v1.GenesisState.next_class_ids:type_name -> lbm.collection.v1.NextClassIDs 5, // 3: lbm.collection.v1.GenesisState.classes:type_name -> lbm.collection.v1.ContractClasses 10, // 4: lbm.collection.v1.GenesisState.next_token_ids:type_name -> lbm.collection.v1.ContractNextTokenIDs 1, // 5: lbm.collection.v1.GenesisState.balances:type_name -> lbm.collection.v1.ContractBalances 6, // 6: lbm.collection.v1.GenesisState.nfts:type_name -> lbm.collection.v1.ContractNFTs - 12, // 7: lbm.collection.v1.GenesisState.parents:type_name -> lbm.collection.v1.ContractTokenRelations - 8, // 8: lbm.collection.v1.GenesisState.grants:type_name -> lbm.collection.v1.ContractGrants - 7, // 9: lbm.collection.v1.GenesisState.authorizations:type_name -> lbm.collection.v1.ContractAuthorizations - 2, // 10: lbm.collection.v1.GenesisState.supplies:type_name -> lbm.collection.v1.ContractStatistics - 2, // 11: lbm.collection.v1.GenesisState.burnts:type_name -> lbm.collection.v1.ContractStatistics + 8, // 7: lbm.collection.v1.GenesisState.grants:type_name -> lbm.collection.v1.ContractGrants + 7, // 8: lbm.collection.v1.GenesisState.authorizations:type_name -> lbm.collection.v1.ContractAuthorizations + 2, // 9: lbm.collection.v1.GenesisState.supplies:type_name -> lbm.collection.v1.ContractStatistics + 2, // 10: lbm.collection.v1.GenesisState.burnts:type_name -> lbm.collection.v1.ContractStatistics + 12, // 11: lbm.collection.v1.GenesisState.class_state:type_name -> lbm.collection.v1.ClassState 4, // 12: lbm.collection.v1.ContractBalances.balances:type_name -> lbm.collection.v1.Balance 3, // 13: lbm.collection.v1.ContractStatistics.statistics:type_name -> lbm.collection.v1.ClassStatistics - 16, // 14: lbm.collection.v1.Balance.amount:type_name -> lbm.collection.v1.Coin - 17, // 15: lbm.collection.v1.ContractClasses.classes:type_name -> google.protobuf.Any - 18, // 16: lbm.collection.v1.ContractNFTs.nfts:type_name -> lbm.collection.v1.NFT - 19, // 17: lbm.collection.v1.ContractAuthorizations.authorizations:type_name -> lbm.collection.v1.Authorization - 20, // 18: lbm.collection.v1.ContractGrants.grants:type_name -> lbm.collection.v1.Grant + 15, // 14: lbm.collection.v1.Balance.amount:type_name -> lbm.collection.v1.Coin + 16, // 15: lbm.collection.v1.ContractClasses.classes:type_name -> google.protobuf.Any + 17, // 16: lbm.collection.v1.ContractNFTs.nfts:type_name -> lbm.collection.v1.NFT + 18, // 17: lbm.collection.v1.ContractAuthorizations.authorizations:type_name -> lbm.collection.v1.Authorization + 19, // 18: lbm.collection.v1.ContractGrants.grants:type_name -> lbm.collection.v1.Grant 11, // 19: lbm.collection.v1.ContractNextTokenIDs.token_ids:type_name -> lbm.collection.v1.NextTokenID - 13, // 20: lbm.collection.v1.ContractTokenRelations.relations:type_name -> lbm.collection.v1.TokenRelation - 21, // [21:21] is the sub-list for method output_type - 21, // [21:21] is the sub-list for method input_type - 21, // [21:21] is the sub-list for extension type_name - 21, // [21:21] is the sub-list for extension extendee - 0, // [0:21] is the sub-list for field type_name + 20, // [20:20] is the sub-list for method output_type + 20, // [20:20] is the sub-list for method input_type + 20, // [20:20] is the sub-list for extension type_name + 20, // [20:20] is the sub-list for extension extendee + 0, // [0:20] is the sub-list for field type_name } func init() { file_lbm_collection_v1_genesis_proto_init() } @@ -10141,19 +9451,7 @@ func file_lbm_collection_v1_genesis_proto_init() { } } file_lbm_collection_v1_genesis_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContractTokenRelations); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_genesis_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenRelation); i { + switch v := v.(*ClassState); i { case 0: return &v.state case 1: @@ -10171,7 +9469,7 @@ func file_lbm_collection_v1_genesis_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_lbm_collection_v1_genesis_proto_rawDesc, NumEnums: 0, - NumMessages: 14, + NumMessages: 13, NumExtensions: 0, NumServices: 0, }, diff --git a/api/lbm/collection/v1/query.pulsar.go b/api/lbm/collection/v1/query.pulsar.go index 0390bab440..bbe33e9981 100644 --- a/api/lbm/collection/v1/query.pulsar.go +++ b/api/lbm/collection/v1/query.pulsar.go @@ -2137,27 +2137,27 @@ func (x *fastReflection_QueryAllBalancesResponse) ProtoMethods() *protoiface.Met } var ( - md_QueryFTSupplyRequest protoreflect.MessageDescriptor - fd_QueryFTSupplyRequest_contract_id protoreflect.FieldDescriptor - fd_QueryFTSupplyRequest_token_id protoreflect.FieldDescriptor + md_QueryNFTSupplyRequest protoreflect.MessageDescriptor + fd_QueryNFTSupplyRequest_contract_id protoreflect.FieldDescriptor + fd_QueryNFTSupplyRequest_token_type 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") + md_QueryNFTSupplyRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTSupplyRequest") + fd_QueryNFTSupplyRequest_contract_id = md_QueryNFTSupplyRequest.Fields().ByName("contract_id") + fd_QueryNFTSupplyRequest_token_type = md_QueryNFTSupplyRequest.Fields().ByName("token_type") } -var _ protoreflect.Message = (*fastReflection_QueryFTSupplyRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNFTSupplyRequest)(nil) -type fastReflection_QueryFTSupplyRequest QueryFTSupplyRequest +type fastReflection_QueryNFTSupplyRequest QueryNFTSupplyRequest -func (x *QueryFTSupplyRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTSupplyRequest)(x) +func (x *QueryNFTSupplyRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNFTSupplyRequest)(x) } -func (x *QueryFTSupplyRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryNFTSupplyRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2169,43 +2169,43 @@ func (x *QueryFTSupplyRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryFTSupplyRequest_messageType fastReflection_QueryFTSupplyRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTSupplyRequest_messageType{} +var _fastReflection_QueryNFTSupplyRequest_messageType fastReflection_QueryNFTSupplyRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryNFTSupplyRequest_messageType{} -type fastReflection_QueryFTSupplyRequest_messageType struct{} +type fastReflection_QueryNFTSupplyRequest_messageType struct{} -func (x fastReflection_QueryFTSupplyRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTSupplyRequest)(nil) +func (x fastReflection_QueryNFTSupplyRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNFTSupplyRequest)(nil) } -func (x fastReflection_QueryFTSupplyRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTSupplyRequest) +func (x fastReflection_QueryNFTSupplyRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNFTSupplyRequest) } -func (x fastReflection_QueryFTSupplyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTSupplyRequest +func (x fastReflection_QueryNFTSupplyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTSupplyRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryFTSupplyRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTSupplyRequest +func (x *fastReflection_QueryNFTSupplyRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTSupplyRequest } // 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 +func (x *fastReflection_QueryNFTSupplyRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryNFTSupplyRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTSupplyRequest) New() protoreflect.Message { - return new(fastReflection_QueryFTSupplyRequest) +func (x *fastReflection_QueryNFTSupplyRequest) New() protoreflect.Message { + return new(fastReflection_QueryNFTSupplyRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTSupplyRequest) Interface() protoreflect.ProtoMessage { - return (*QueryFTSupplyRequest)(x) +func (x *fastReflection_QueryNFTSupplyRequest) Interface() protoreflect.ProtoMessage { + return (*QueryNFTSupplyRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -2213,16 +2213,16 @@ func (x *fastReflection_QueryFTSupplyRequest) 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_QueryFTSupplyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryNFTSupplyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryFTSupplyRequest_contract_id, value) { + if !f(fd_QueryNFTSupplyRequest_contract_id, value) { return } } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryFTSupplyRequest_token_id, value) { + if x.TokenType != "" { + value := protoreflect.ValueOfString(x.TokenType) + if !f(fd_QueryNFTSupplyRequest_token_type, value) { return } } @@ -2239,17 +2239,17 @@ func (x *fastReflection_QueryFTSupplyRequest) 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_QueryFTSupplyRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNFTSupplyRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyRequest.contract_id": + case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryFTSupplyRequest.token_id": - return x.TokenId != "" + case "lbm.collection.v1.QueryNFTSupplyRequest.token_type": + return x.TokenType != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest does not contain field %s", fd.FullName())) } } @@ -2259,17 +2259,17 @@ func (x *fastReflection_QueryFTSupplyRequest) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryFTSupplyRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNFTSupplyRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyRequest.contract_id": + case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryFTSupplyRequest.token_id": - x.TokenId = "" + case "lbm.collection.v1.QueryNFTSupplyRequest.token_type": + x.TokenType = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest does not contain field %s", fd.FullName())) } } @@ -2279,19 +2279,19 @@ func (x *fastReflection_QueryFTSupplyRequest) 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_QueryFTSupplyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTSupplyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTSupplyRequest.contract_id": + case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryFTSupplyRequest.token_id": - value := x.TokenId + case "lbm.collection.v1.QueryNFTSupplyRequest.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.QueryFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest does not contain field %s", descriptor.FullName())) } } @@ -2305,17 +2305,17 @@ func (x *fastReflection_QueryFTSupplyRequest) Get(descriptor protoreflect.FieldD // 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) { +func (x *fastReflection_QueryNFTSupplyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyRequest.contract_id": + case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryFTSupplyRequest.token_id": - x.TokenId = value.Interface().(string) + case "lbm.collection.v1.QueryNFTSupplyRequest.token_type": + x.TokenType = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest does not contain field %s", fd.FullName())) } } @@ -2329,44 +2329,44 @@ func (x *fastReflection_QueryFTSupplyRequest) 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_QueryFTSupplyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTSupplyRequest) 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")) + case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryNFTSupplyRequest is not mutable")) + case "lbm.collection.v1.QueryNFTSupplyRequest.token_type": + panic(fmt.Errorf("field token_type of message lbm.collection.v1.QueryNFTSupplyRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest 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 { +func (x *fastReflection_QueryNFTSupplyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyRequest.contract_id": + case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryFTSupplyRequest.token_id": + case "lbm.collection.v1.QueryNFTSupplyRequest.token_type": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest 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 { +func (x *fastReflection_QueryNFTSupplyRequest) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTSupplyRequest", d.FullName())) } panic("unreachable") } @@ -2374,7 +2374,7 @@ func (x *fastReflection_QueryFTSupplyRequest) 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_QueryFTSupplyRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNFTSupplyRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2385,7 +2385,7 @@ func (x *fastReflection_QueryFTSupplyRequest) 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_QueryFTSupplyRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNFTSupplyRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2397,7 +2397,7 @@ func (x *fastReflection_QueryFTSupplyRequest) 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_QueryFTSupplyRequest) IsValid() bool { +func (x *fastReflection_QueryNFTSupplyRequest) IsValid() bool { return x != nil } @@ -2407,9 +2407,9 @@ func (x *fastReflection_QueryFTSupplyRequest) 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_QueryFTSupplyRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNFTSupplyRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTSupplyRequest) + x := input.Message.Interface().(*QueryNFTSupplyRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2425,7 +2425,7 @@ func (x *fastReflection_QueryFTSupplyRequest) 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)) } @@ -2439,7 +2439,7 @@ func (x *fastReflection_QueryFTSupplyRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryFTSupplyRequest) + x := input.Message.Interface().(*QueryNFTSupplyRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2458,10 +2458,10 @@ func (x *fastReflection_QueryFTSupplyRequest) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) + if 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] = 0x12 } @@ -2483,7 +2483,7 @@ func (x *fastReflection_QueryFTSupplyRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryFTSupplyRequest) + x := input.Message.Interface().(*QueryNFTSupplyRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2515,10 +2515,10 @@ func (x *fastReflection_QueryFTSupplyRequest) 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: QueryFTSupplyRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTSupplyRequest: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2555,7 +2555,7 @@ func (x *fastReflection_QueryFTSupplyRequest) ProtoMethods() *protoiface.Methods iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2583,7 +2583,7 @@ func (x *fastReflection_QueryFTSupplyRequest) 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 default: iNdEx = preIndex @@ -2621,25 +2621,25 @@ func (x *fastReflection_QueryFTSupplyRequest) ProtoMethods() *protoiface.Methods } var ( - md_QueryFTSupplyResponse protoreflect.MessageDescriptor - fd_QueryFTSupplyResponse_supply protoreflect.FieldDescriptor + md_QueryNFTSupplyResponse protoreflect.MessageDescriptor + fd_QueryNFTSupplyResponse_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") + md_QueryNFTSupplyResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTSupplyResponse") + fd_QueryNFTSupplyResponse_supply = md_QueryNFTSupplyResponse.Fields().ByName("supply") } -var _ protoreflect.Message = (*fastReflection_QueryFTSupplyResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNFTSupplyResponse)(nil) -type fastReflection_QueryFTSupplyResponse QueryFTSupplyResponse +type fastReflection_QueryNFTSupplyResponse QueryNFTSupplyResponse -func (x *QueryFTSupplyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTSupplyResponse)(x) +func (x *QueryNFTSupplyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNFTSupplyResponse)(x) } -func (x *QueryFTSupplyResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryNFTSupplyResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2651,43 +2651,43 @@ func (x *QueryFTSupplyResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryFTSupplyResponse_messageType fastReflection_QueryFTSupplyResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTSupplyResponse_messageType{} +var _fastReflection_QueryNFTSupplyResponse_messageType fastReflection_QueryNFTSupplyResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryNFTSupplyResponse_messageType{} -type fastReflection_QueryFTSupplyResponse_messageType struct{} +type fastReflection_QueryNFTSupplyResponse_messageType struct{} -func (x fastReflection_QueryFTSupplyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTSupplyResponse)(nil) +func (x fastReflection_QueryNFTSupplyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNFTSupplyResponse)(nil) } -func (x fastReflection_QueryFTSupplyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTSupplyResponse) +func (x fastReflection_QueryNFTSupplyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNFTSupplyResponse) } -func (x fastReflection_QueryFTSupplyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTSupplyResponse +func (x fastReflection_QueryNFTSupplyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTSupplyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryFTSupplyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTSupplyResponse +func (x *fastReflection_QueryNFTSupplyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTSupplyResponse } // 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 +func (x *fastReflection_QueryNFTSupplyResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryNFTSupplyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTSupplyResponse) New() protoreflect.Message { - return new(fastReflection_QueryFTSupplyResponse) +func (x *fastReflection_QueryNFTSupplyResponse) New() protoreflect.Message { + return new(fastReflection_QueryNFTSupplyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTSupplyResponse) Interface() protoreflect.ProtoMessage { - return (*QueryFTSupplyResponse)(x) +func (x *fastReflection_QueryNFTSupplyResponse) Interface() protoreflect.ProtoMessage { + return (*QueryNFTSupplyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2695,10 +2695,10 @@ func (x *fastReflection_QueryFTSupplyResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryFTSupplyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryNFTSupplyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Supply != "" { value := protoreflect.ValueOfString(x.Supply) - if !f(fd_QueryFTSupplyResponse_supply, value) { + if !f(fd_QueryNFTSupplyResponse_supply, value) { return } } @@ -2715,15 +2715,15 @@ func (x *fastReflection_QueryFTSupplyResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryFTSupplyResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNFTSupplyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyResponse.supply": + case "lbm.collection.v1.QueryNFTSupplyResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse does not contain field %s", fd.FullName())) } } @@ -2733,15 +2733,15 @@ func (x *fastReflection_QueryFTSupplyResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryFTSupplyResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNFTSupplyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyResponse.supply": + case "lbm.collection.v1.QueryNFTSupplyResponse.supply": x.Supply = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse does not contain field %s", fd.FullName())) } } @@ -2751,16 +2751,16 @@ func (x *fastReflection_QueryFTSupplyResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryFTSupplyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTSupplyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTSupplyResponse.supply": + case "lbm.collection.v1.QueryNFTSupplyResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse does not contain field %s", descriptor.FullName())) } } @@ -2774,15 +2774,15 @@ func (x *fastReflection_QueryFTSupplyResponse) Get(descriptor protoreflect.Field // 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) { +func (x *fastReflection_QueryNFTSupplyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyResponse.supply": + case "lbm.collection.v1.QueryNFTSupplyResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse does not contain field %s", fd.FullName())) } } @@ -2796,40 +2796,40 @@ func (x *fastReflection_QueryFTSupplyResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryFTSupplyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTSupplyResponse) 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")) + case "lbm.collection.v1.QueryNFTSupplyResponse.supply": + panic(fmt.Errorf("field supply of message lbm.collection.v1.QueryNFTSupplyResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTSupplyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse 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 { +func (x *fastReflection_QueryNFTSupplyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryFTSupplyResponse.supply": + case "lbm.collection.v1.QueryNFTSupplyResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTSupplyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse 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 { +func (x *fastReflection_QueryNFTSupplyResponse) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTSupplyResponse", d.FullName())) } panic("unreachable") } @@ -2837,7 +2837,7 @@ func (x *fastReflection_QueryFTSupplyResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryFTSupplyResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNFTSupplyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2848,7 +2848,7 @@ func (x *fastReflection_QueryFTSupplyResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryFTSupplyResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNFTSupplyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2860,7 +2860,7 @@ func (x *fastReflection_QueryFTSupplyResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryFTSupplyResponse) IsValid() bool { +func (x *fastReflection_QueryNFTSupplyResponse) IsValid() bool { return x != nil } @@ -2870,9 +2870,9 @@ func (x *fastReflection_QueryFTSupplyResponse) 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_QueryFTSupplyResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNFTSupplyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTSupplyResponse) + x := input.Message.Interface().(*QueryNFTSupplyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2898,7 +2898,7 @@ func (x *fastReflection_QueryFTSupplyResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryFTSupplyResponse) + x := input.Message.Interface().(*QueryNFTSupplyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2935,7 +2935,7 @@ func (x *fastReflection_QueryFTSupplyResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryFTSupplyResponse) + x := input.Message.Interface().(*QueryNFTSupplyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2967,10 +2967,10 @@ func (x *fastReflection_QueryFTSupplyResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFTSupplyResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTSupplyResponse: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3041,27 +3041,27 @@ func (x *fastReflection_QueryFTSupplyResponse) ProtoMethods() *protoiface.Method } var ( - md_QueryFTMintedRequest protoreflect.MessageDescriptor - fd_QueryFTMintedRequest_contract_id protoreflect.FieldDescriptor - fd_QueryFTMintedRequest_token_id protoreflect.FieldDescriptor + md_QueryNFTMintedRequest protoreflect.MessageDescriptor + fd_QueryNFTMintedRequest_contract_id protoreflect.FieldDescriptor + fd_QueryNFTMintedRequest_token_type 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") + md_QueryNFTMintedRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTMintedRequest") + fd_QueryNFTMintedRequest_contract_id = md_QueryNFTMintedRequest.Fields().ByName("contract_id") + fd_QueryNFTMintedRequest_token_type = md_QueryNFTMintedRequest.Fields().ByName("token_type") } -var _ protoreflect.Message = (*fastReflection_QueryFTMintedRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNFTMintedRequest)(nil) -type fastReflection_QueryFTMintedRequest QueryFTMintedRequest +type fastReflection_QueryNFTMintedRequest QueryNFTMintedRequest -func (x *QueryFTMintedRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTMintedRequest)(x) +func (x *QueryNFTMintedRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNFTMintedRequest)(x) } -func (x *QueryFTMintedRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryNFTMintedRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3073,43 +3073,43 @@ func (x *QueryFTMintedRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryFTMintedRequest_messageType fastReflection_QueryFTMintedRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTMintedRequest_messageType{} +var _fastReflection_QueryNFTMintedRequest_messageType fastReflection_QueryNFTMintedRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryNFTMintedRequest_messageType{} -type fastReflection_QueryFTMintedRequest_messageType struct{} +type fastReflection_QueryNFTMintedRequest_messageType struct{} -func (x fastReflection_QueryFTMintedRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTMintedRequest)(nil) +func (x fastReflection_QueryNFTMintedRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNFTMintedRequest)(nil) } -func (x fastReflection_QueryFTMintedRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTMintedRequest) +func (x fastReflection_QueryNFTMintedRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNFTMintedRequest) } -func (x fastReflection_QueryFTMintedRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTMintedRequest +func (x fastReflection_QueryNFTMintedRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTMintedRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryFTMintedRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTMintedRequest +func (x *fastReflection_QueryNFTMintedRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTMintedRequest } // 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 +func (x *fastReflection_QueryNFTMintedRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryNFTMintedRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTMintedRequest) New() protoreflect.Message { - return new(fastReflection_QueryFTMintedRequest) +func (x *fastReflection_QueryNFTMintedRequest) New() protoreflect.Message { + return new(fastReflection_QueryNFTMintedRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTMintedRequest) Interface() protoreflect.ProtoMessage { - return (*QueryFTMintedRequest)(x) +func (x *fastReflection_QueryNFTMintedRequest) Interface() protoreflect.ProtoMessage { + return (*QueryNFTMintedRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -3117,16 +3117,16 @@ func (x *fastReflection_QueryFTMintedRequest) 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_QueryFTMintedRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryNFTMintedRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryFTMintedRequest_contract_id, value) { + if !f(fd_QueryNFTMintedRequest_contract_id, value) { return } } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryFTMintedRequest_token_id, value) { + if x.TokenType != "" { + value := protoreflect.ValueOfString(x.TokenType) + if !f(fd_QueryNFTMintedRequest_token_type, value) { return } } @@ -3143,17 +3143,17 @@ func (x *fastReflection_QueryFTMintedRequest) 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_QueryFTMintedRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNFTMintedRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedRequest.contract_id": + case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryFTMintedRequest.token_id": - return x.TokenId != "" + case "lbm.collection.v1.QueryNFTMintedRequest.token_type": + return x.TokenType != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest does not contain field %s", fd.FullName())) } } @@ -3163,17 +3163,17 @@ func (x *fastReflection_QueryFTMintedRequest) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryFTMintedRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNFTMintedRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedRequest.contract_id": + case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryFTMintedRequest.token_id": - x.TokenId = "" + case "lbm.collection.v1.QueryNFTMintedRequest.token_type": + x.TokenType = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest does not contain field %s", fd.FullName())) } } @@ -3183,19 +3183,19 @@ func (x *fastReflection_QueryFTMintedRequest) 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_QueryFTMintedRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTMintedRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTMintedRequest.contract_id": + case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryFTMintedRequest.token_id": - value := x.TokenId + case "lbm.collection.v1.QueryNFTMintedRequest.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.QueryFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest does not contain field %s", descriptor.FullName())) } } @@ -3209,17 +3209,17 @@ func (x *fastReflection_QueryFTMintedRequest) Get(descriptor protoreflect.FieldD // 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) { +func (x *fastReflection_QueryNFTMintedRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedRequest.contract_id": + case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryFTMintedRequest.token_id": - x.TokenId = value.Interface().(string) + case "lbm.collection.v1.QueryNFTMintedRequest.token_type": + x.TokenType = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest does not contain field %s", fd.FullName())) } } @@ -3233,44 +3233,44 @@ func (x *fastReflection_QueryFTMintedRequest) 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_QueryFTMintedRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTMintedRequest) 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")) + case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryNFTMintedRequest is not mutable")) + case "lbm.collection.v1.QueryNFTMintedRequest.token_type": + panic(fmt.Errorf("field token_type of message lbm.collection.v1.QueryNFTMintedRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest 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 { +func (x *fastReflection_QueryNFTMintedRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedRequest.contract_id": + case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryFTMintedRequest.token_id": + case "lbm.collection.v1.QueryNFTMintedRequest.token_type": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest 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 { +func (x *fastReflection_QueryNFTMintedRequest) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTMintedRequest", d.FullName())) } panic("unreachable") } @@ -3278,7 +3278,7 @@ func (x *fastReflection_QueryFTMintedRequest) 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_QueryFTMintedRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNFTMintedRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3289,7 +3289,7 @@ func (x *fastReflection_QueryFTMintedRequest) 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_QueryFTMintedRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNFTMintedRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3301,7 +3301,7 @@ func (x *fastReflection_QueryFTMintedRequest) 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_QueryFTMintedRequest) IsValid() bool { +func (x *fastReflection_QueryNFTMintedRequest) IsValid() bool { return x != nil } @@ -3311,9 +3311,9 @@ func (x *fastReflection_QueryFTMintedRequest) 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_QueryFTMintedRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNFTMintedRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTMintedRequest) + x := input.Message.Interface().(*QueryNFTMintedRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3329,7 +3329,7 @@ func (x *fastReflection_QueryFTMintedRequest) 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)) } @@ -3343,7 +3343,7 @@ func (x *fastReflection_QueryFTMintedRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryFTMintedRequest) + x := input.Message.Interface().(*QueryNFTMintedRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3362,13 +3362,13 @@ func (x *fastReflection_QueryFTMintedRequest) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - 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] = 0x12 + } if len(x.ContractId) > 0 { i -= len(x.ContractId) copy(dAtA[i:], x.ContractId) @@ -3387,7 +3387,7 @@ func (x *fastReflection_QueryFTMintedRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryFTMintedRequest) + x := input.Message.Interface().(*QueryNFTMintedRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3419,10 +3419,10 @@ func (x *fastReflection_QueryFTMintedRequest) 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: QueryFTMintedRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTMintedRequest: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3459,7 +3459,7 @@ func (x *fastReflection_QueryFTMintedRequest) ProtoMethods() *protoiface.Methods iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3487,7 +3487,7 @@ func (x *fastReflection_QueryFTMintedRequest) 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 default: iNdEx = preIndex @@ -3525,25 +3525,25 @@ func (x *fastReflection_QueryFTMintedRequest) ProtoMethods() *protoiface.Methods } var ( - md_QueryFTMintedResponse protoreflect.MessageDescriptor - fd_QueryFTMintedResponse_minted protoreflect.FieldDescriptor + md_QueryNFTMintedResponse protoreflect.MessageDescriptor + fd_QueryNFTMintedResponse_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") + md_QueryNFTMintedResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTMintedResponse") + fd_QueryNFTMintedResponse_minted = md_QueryNFTMintedResponse.Fields().ByName("minted") } -var _ protoreflect.Message = (*fastReflection_QueryFTMintedResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNFTMintedResponse)(nil) -type fastReflection_QueryFTMintedResponse QueryFTMintedResponse +type fastReflection_QueryNFTMintedResponse QueryNFTMintedResponse -func (x *QueryFTMintedResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTMintedResponse)(x) +func (x *QueryNFTMintedResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNFTMintedResponse)(x) } -func (x *QueryFTMintedResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryNFTMintedResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3555,43 +3555,43 @@ func (x *QueryFTMintedResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryFTMintedResponse_messageType fastReflection_QueryFTMintedResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTMintedResponse_messageType{} +var _fastReflection_QueryNFTMintedResponse_messageType fastReflection_QueryNFTMintedResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryNFTMintedResponse_messageType{} -type fastReflection_QueryFTMintedResponse_messageType struct{} +type fastReflection_QueryNFTMintedResponse_messageType struct{} -func (x fastReflection_QueryFTMintedResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTMintedResponse)(nil) +func (x fastReflection_QueryNFTMintedResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNFTMintedResponse)(nil) } -func (x fastReflection_QueryFTMintedResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTMintedResponse) +func (x fastReflection_QueryNFTMintedResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNFTMintedResponse) } -func (x fastReflection_QueryFTMintedResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTMintedResponse +func (x fastReflection_QueryNFTMintedResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTMintedResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryFTMintedResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTMintedResponse +func (x *fastReflection_QueryNFTMintedResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTMintedResponse } // 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 +func (x *fastReflection_QueryNFTMintedResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryNFTMintedResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTMintedResponse) New() protoreflect.Message { - return new(fastReflection_QueryFTMintedResponse) +func (x *fastReflection_QueryNFTMintedResponse) New() protoreflect.Message { + return new(fastReflection_QueryNFTMintedResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTMintedResponse) Interface() protoreflect.ProtoMessage { - return (*QueryFTMintedResponse)(x) +func (x *fastReflection_QueryNFTMintedResponse) Interface() protoreflect.ProtoMessage { + return (*QueryNFTMintedResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -3599,10 +3599,10 @@ func (x *fastReflection_QueryFTMintedResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryFTMintedResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryNFTMintedResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Minted != "" { value := protoreflect.ValueOfString(x.Minted) - if !f(fd_QueryFTMintedResponse_minted, value) { + if !f(fd_QueryNFTMintedResponse_minted, value) { return } } @@ -3619,15 +3619,15 @@ func (x *fastReflection_QueryFTMintedResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryFTMintedResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNFTMintedResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedResponse.minted": + case "lbm.collection.v1.QueryNFTMintedResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse does not contain field %s", fd.FullName())) } } @@ -3637,15 +3637,15 @@ func (x *fastReflection_QueryFTMintedResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryFTMintedResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNFTMintedResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedResponse.minted": + case "lbm.collection.v1.QueryNFTMintedResponse.minted": x.Minted = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse does not contain field %s", fd.FullName())) } } @@ -3655,16 +3655,16 @@ func (x *fastReflection_QueryFTMintedResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryFTMintedResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTMintedResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTMintedResponse.minted": + case "lbm.collection.v1.QueryNFTMintedResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse does not contain field %s", descriptor.FullName())) } } @@ -3678,15 +3678,15 @@ func (x *fastReflection_QueryFTMintedResponse) Get(descriptor protoreflect.Field // 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) { +func (x *fastReflection_QueryNFTMintedResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedResponse.minted": + case "lbm.collection.v1.QueryNFTMintedResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse does not contain field %s", fd.FullName())) } } @@ -3700,40 +3700,40 @@ func (x *fastReflection_QueryFTMintedResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryFTMintedResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTMintedResponse) 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")) + case "lbm.collection.v1.QueryNFTMintedResponse.minted": + panic(fmt.Errorf("field minted of message lbm.collection.v1.QueryNFTMintedResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTMintedResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse 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 { +func (x *fastReflection_QueryNFTMintedResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryFTMintedResponse.minted": + case "lbm.collection.v1.QueryNFTMintedResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTMintedResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse 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 { +func (x *fastReflection_QueryNFTMintedResponse) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTMintedResponse", d.FullName())) } panic("unreachable") } @@ -3741,7 +3741,7 @@ func (x *fastReflection_QueryFTMintedResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryFTMintedResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNFTMintedResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3752,7 +3752,7 @@ func (x *fastReflection_QueryFTMintedResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryFTMintedResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNFTMintedResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3764,7 +3764,7 @@ func (x *fastReflection_QueryFTMintedResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryFTMintedResponse) IsValid() bool { +func (x *fastReflection_QueryNFTMintedResponse) IsValid() bool { return x != nil } @@ -3774,9 +3774,9 @@ func (x *fastReflection_QueryFTMintedResponse) 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_QueryFTMintedResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNFTMintedResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTMintedResponse) + x := input.Message.Interface().(*QueryNFTMintedResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3802,7 +3802,7 @@ func (x *fastReflection_QueryFTMintedResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryFTMintedResponse) + x := input.Message.Interface().(*QueryNFTMintedResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3839,7 +3839,7 @@ func (x *fastReflection_QueryFTMintedResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryFTMintedResponse) + x := input.Message.Interface().(*QueryNFTMintedResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3871,10 +3871,10 @@ func (x *fastReflection_QueryFTMintedResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFTMintedResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTMintedResponse: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3945,27 +3945,27 @@ func (x *fastReflection_QueryFTMintedResponse) ProtoMethods() *protoiface.Method } var ( - md_QueryFTBurntRequest protoreflect.MessageDescriptor - fd_QueryFTBurntRequest_contract_id protoreflect.FieldDescriptor - fd_QueryFTBurntRequest_token_id protoreflect.FieldDescriptor + md_QueryNFTBurntRequest protoreflect.MessageDescriptor + fd_QueryNFTBurntRequest_contract_id protoreflect.FieldDescriptor + fd_QueryNFTBurntRequest_token_type 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") + md_QueryNFTBurntRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTBurntRequest") + fd_QueryNFTBurntRequest_contract_id = md_QueryNFTBurntRequest.Fields().ByName("contract_id") + fd_QueryNFTBurntRequest_token_type = md_QueryNFTBurntRequest.Fields().ByName("token_type") } -var _ protoreflect.Message = (*fastReflection_QueryFTBurntRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNFTBurntRequest)(nil) -type fastReflection_QueryFTBurntRequest QueryFTBurntRequest +type fastReflection_QueryNFTBurntRequest QueryNFTBurntRequest -func (x *QueryFTBurntRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTBurntRequest)(x) +func (x *QueryNFTBurntRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNFTBurntRequest)(x) } -func (x *QueryFTBurntRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryNFTBurntRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3977,43 +3977,43 @@ func (x *QueryFTBurntRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryFTBurntRequest_messageType fastReflection_QueryFTBurntRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTBurntRequest_messageType{} +var _fastReflection_QueryNFTBurntRequest_messageType fastReflection_QueryNFTBurntRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryNFTBurntRequest_messageType{} -type fastReflection_QueryFTBurntRequest_messageType struct{} +type fastReflection_QueryNFTBurntRequest_messageType struct{} -func (x fastReflection_QueryFTBurntRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTBurntRequest)(nil) +func (x fastReflection_QueryNFTBurntRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNFTBurntRequest)(nil) } -func (x fastReflection_QueryFTBurntRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTBurntRequest) +func (x fastReflection_QueryNFTBurntRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNFTBurntRequest) } -func (x fastReflection_QueryFTBurntRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTBurntRequest +func (x fastReflection_QueryNFTBurntRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTBurntRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryFTBurntRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTBurntRequest +func (x *fastReflection_QueryNFTBurntRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTBurntRequest } // 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 +func (x *fastReflection_QueryNFTBurntRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryNFTBurntRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTBurntRequest) New() protoreflect.Message { - return new(fastReflection_QueryFTBurntRequest) +func (x *fastReflection_QueryNFTBurntRequest) New() protoreflect.Message { + return new(fastReflection_QueryNFTBurntRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTBurntRequest) Interface() protoreflect.ProtoMessage { - return (*QueryFTBurntRequest)(x) +func (x *fastReflection_QueryNFTBurntRequest) Interface() protoreflect.ProtoMessage { + return (*QueryNFTBurntRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -4021,16 +4021,16 @@ func (x *fastReflection_QueryFTBurntRequest) 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_QueryFTBurntRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryNFTBurntRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryFTBurntRequest_contract_id, value) { + if !f(fd_QueryNFTBurntRequest_contract_id, value) { return } } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryFTBurntRequest_token_id, value) { + if x.TokenType != "" { + value := protoreflect.ValueOfString(x.TokenType) + if !f(fd_QueryNFTBurntRequest_token_type, value) { return } } @@ -4047,17 +4047,17 @@ func (x *fastReflection_QueryFTBurntRequest) 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_QueryFTBurntRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNFTBurntRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntRequest.contract_id": + case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryFTBurntRequest.token_id": - return x.TokenId != "" + case "lbm.collection.v1.QueryNFTBurntRequest.token_type": + return x.TokenType != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest does not contain field %s", fd.FullName())) } } @@ -4067,17 +4067,17 @@ func (x *fastReflection_QueryFTBurntRequest) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryFTBurntRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNFTBurntRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntRequest.contract_id": + case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryFTBurntRequest.token_id": - x.TokenId = "" + case "lbm.collection.v1.QueryNFTBurntRequest.token_type": + x.TokenType = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest does not contain field %s", fd.FullName())) } } @@ -4087,19 +4087,19 @@ func (x *fastReflection_QueryFTBurntRequest) 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_QueryFTBurntRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTBurntRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTBurntRequest.contract_id": + case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryFTBurntRequest.token_id": - value := x.TokenId + case "lbm.collection.v1.QueryNFTBurntRequest.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.QueryFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest does not contain field %s", descriptor.FullName())) } } @@ -4113,17 +4113,17 @@ func (x *fastReflection_QueryFTBurntRequest) Get(descriptor protoreflect.FieldDe // 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) { +func (x *fastReflection_QueryNFTBurntRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntRequest.contract_id": + case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryFTBurntRequest.token_id": - x.TokenId = value.Interface().(string) + case "lbm.collection.v1.QueryNFTBurntRequest.token_type": + x.TokenType = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest does not contain field %s", fd.FullName())) } } @@ -4137,44 +4137,44 @@ func (x *fastReflection_QueryFTBurntRequest) 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_QueryFTBurntRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTBurntRequest) 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")) + case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryNFTBurntRequest is not mutable")) + case "lbm.collection.v1.QueryNFTBurntRequest.token_type": + panic(fmt.Errorf("field token_type of message lbm.collection.v1.QueryNFTBurntRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest 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 { +func (x *fastReflection_QueryNFTBurntRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntRequest.contract_id": + case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryFTBurntRequest.token_id": + case "lbm.collection.v1.QueryNFTBurntRequest.token_type": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest 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 { +func (x *fastReflection_QueryNFTBurntRequest) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTBurntRequest", d.FullName())) } panic("unreachable") } @@ -4182,7 +4182,7 @@ func (x *fastReflection_QueryFTBurntRequest) 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_QueryFTBurntRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNFTBurntRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4193,7 +4193,7 @@ func (x *fastReflection_QueryFTBurntRequest) 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_QueryFTBurntRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNFTBurntRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4205,7 +4205,7 @@ func (x *fastReflection_QueryFTBurntRequest) 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_QueryFTBurntRequest) IsValid() bool { +func (x *fastReflection_QueryNFTBurntRequest) IsValid() bool { return x != nil } @@ -4215,9 +4215,9 @@ func (x *fastReflection_QueryFTBurntRequest) 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_QueryFTBurntRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNFTBurntRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTBurntRequest) + x := input.Message.Interface().(*QueryNFTBurntRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4233,7 +4233,7 @@ func (x *fastReflection_QueryFTBurntRequest) 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)) } @@ -4247,7 +4247,7 @@ func (x *fastReflection_QueryFTBurntRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryFTBurntRequest) + x := input.Message.Interface().(*QueryNFTBurntRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4266,10 +4266,10 @@ func (x *fastReflection_QueryFTBurntRequest) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) + if 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] = 0x12 } @@ -4291,7 +4291,7 @@ func (x *fastReflection_QueryFTBurntRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryFTBurntRequest) + x := input.Message.Interface().(*QueryNFTBurntRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4323,10 +4323,10 @@ func (x *fastReflection_QueryFTBurntRequest) 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: QueryFTBurntRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTBurntRequest: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4363,7 +4363,7 @@ func (x *fastReflection_QueryFTBurntRequest) ProtoMethods() *protoiface.Methods iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4391,7 +4391,7 @@ func (x *fastReflection_QueryFTBurntRequest) 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 default: iNdEx = preIndex @@ -4429,25 +4429,25 @@ func (x *fastReflection_QueryFTBurntRequest) ProtoMethods() *protoiface.Methods } var ( - md_QueryFTBurntResponse protoreflect.MessageDescriptor - fd_QueryFTBurntResponse_burnt protoreflect.FieldDescriptor + md_QueryNFTBurntResponse protoreflect.MessageDescriptor + fd_QueryNFTBurntResponse_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") + md_QueryNFTBurntResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTBurntResponse") + fd_QueryNFTBurntResponse_burnt = md_QueryNFTBurntResponse.Fields().ByName("burnt") } -var _ protoreflect.Message = (*fastReflection_QueryFTBurntResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNFTBurntResponse)(nil) -type fastReflection_QueryFTBurntResponse QueryFTBurntResponse +type fastReflection_QueryNFTBurntResponse QueryNFTBurntResponse -func (x *QueryFTBurntResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFTBurntResponse)(x) +func (x *QueryNFTBurntResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNFTBurntResponse)(x) } -func (x *QueryFTBurntResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryNFTBurntResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4459,43 +4459,43 @@ func (x *QueryFTBurntResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryFTBurntResponse_messageType fastReflection_QueryFTBurntResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryFTBurntResponse_messageType{} +var _fastReflection_QueryNFTBurntResponse_messageType fastReflection_QueryNFTBurntResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryNFTBurntResponse_messageType{} -type fastReflection_QueryFTBurntResponse_messageType struct{} +type fastReflection_QueryNFTBurntResponse_messageType struct{} -func (x fastReflection_QueryFTBurntResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFTBurntResponse)(nil) +func (x fastReflection_QueryNFTBurntResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNFTBurntResponse)(nil) } -func (x fastReflection_QueryFTBurntResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFTBurntResponse) +func (x fastReflection_QueryNFTBurntResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNFTBurntResponse) } -func (x fastReflection_QueryFTBurntResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTBurntResponse +func (x fastReflection_QueryNFTBurntResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTBurntResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryFTBurntResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFTBurntResponse +func (x *fastReflection_QueryNFTBurntResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNFTBurntResponse } // 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 +func (x *fastReflection_QueryNFTBurntResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryNFTBurntResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFTBurntResponse) New() protoreflect.Message { - return new(fastReflection_QueryFTBurntResponse) +func (x *fastReflection_QueryNFTBurntResponse) New() protoreflect.Message { + return new(fastReflection_QueryNFTBurntResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFTBurntResponse) Interface() protoreflect.ProtoMessage { - return (*QueryFTBurntResponse)(x) +func (x *fastReflection_QueryNFTBurntResponse) Interface() protoreflect.ProtoMessage { + return (*QueryNFTBurntResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4503,10 +4503,10 @@ func (x *fastReflection_QueryFTBurntResponse) 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_QueryFTBurntResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryNFTBurntResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Burnt != "" { value := protoreflect.ValueOfString(x.Burnt) - if !f(fd_QueryFTBurntResponse_burnt, value) { + if !f(fd_QueryNFTBurntResponse_burnt, value) { return } } @@ -4523,15 +4523,15 @@ func (x *fastReflection_QueryFTBurntResponse) 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_QueryFTBurntResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNFTBurntResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntResponse.burnt": + case "lbm.collection.v1.QueryNFTBurntResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse does not contain field %s", fd.FullName())) } } @@ -4541,15 +4541,15 @@ func (x *fastReflection_QueryFTBurntResponse) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryFTBurntResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNFTBurntResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntResponse.burnt": + case "lbm.collection.v1.QueryNFTBurntResponse.burnt": x.Burnt = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse does not contain field %s", fd.FullName())) } } @@ -4559,16 +4559,16 @@ func (x *fastReflection_QueryFTBurntResponse) 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_QueryFTBurntResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTBurntResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryFTBurntResponse.burnt": + case "lbm.collection.v1.QueryNFTBurntResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse does not contain field %s", descriptor.FullName())) } } @@ -4582,15 +4582,15 @@ func (x *fastReflection_QueryFTBurntResponse) Get(descriptor protoreflect.FieldD // 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) { +func (x *fastReflection_QueryNFTBurntResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntResponse.burnt": + case "lbm.collection.v1.QueryNFTBurntResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse does not contain field %s", fd.FullName())) } } @@ -4604,40 +4604,40 @@ func (x *fastReflection_QueryFTBurntResponse) 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_QueryFTBurntResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNFTBurntResponse) 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")) + case "lbm.collection.v1.QueryNFTBurntResponse.burnt": + panic(fmt.Errorf("field burnt of message lbm.collection.v1.QueryNFTBurntResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryFTBurntResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse 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 { +func (x *fastReflection_QueryNFTBurntResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryFTBurntResponse.burnt": + case "lbm.collection.v1.QueryNFTBurntResponse.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("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryFTBurntResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse 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 { +func (x *fastReflection_QueryNFTBurntResponse) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTBurntResponse", d.FullName())) } panic("unreachable") } @@ -4645,7 +4645,7 @@ func (x *fastReflection_QueryFTBurntResponse) 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_QueryFTBurntResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNFTBurntResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4656,7 +4656,7 @@ func (x *fastReflection_QueryFTBurntResponse) 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_QueryFTBurntResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNFTBurntResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4668,7 +4668,7 @@ func (x *fastReflection_QueryFTBurntResponse) 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_QueryFTBurntResponse) IsValid() bool { +func (x *fastReflection_QueryNFTBurntResponse) IsValid() bool { return x != nil } @@ -4678,9 +4678,9 @@ func (x *fastReflection_QueryFTBurntResponse) 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_QueryFTBurntResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNFTBurntResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFTBurntResponse) + x := input.Message.Interface().(*QueryNFTBurntResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4706,7 +4706,7 @@ func (x *fastReflection_QueryFTBurntResponse) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryFTBurntResponse) + x := input.Message.Interface().(*QueryNFTBurntResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4743,7 +4743,7 @@ func (x *fastReflection_QueryFTBurntResponse) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryFTBurntResponse) + x := input.Message.Interface().(*QueryNFTBurntResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4775,10 +4775,10 @@ func (x *fastReflection_QueryFTBurntResponse) 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: QueryFTBurntResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTBurntResponse: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4849,27 +4849,25 @@ func (x *fastReflection_QueryFTBurntResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryNFTSupplyRequest protoreflect.MessageDescriptor - fd_QueryNFTSupplyRequest_contract_id protoreflect.FieldDescriptor - fd_QueryNFTSupplyRequest_token_type protoreflect.FieldDescriptor + md_QueryContractRequest protoreflect.MessageDescriptor + fd_QueryContractRequest_contract_id protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryNFTSupplyRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTSupplyRequest") - fd_QueryNFTSupplyRequest_contract_id = md_QueryNFTSupplyRequest.Fields().ByName("contract_id") - fd_QueryNFTSupplyRequest_token_type = md_QueryNFTSupplyRequest.Fields().ByName("token_type") + md_QueryContractRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryContractRequest") + fd_QueryContractRequest_contract_id = md_QueryContractRequest.Fields().ByName("contract_id") } -var _ protoreflect.Message = (*fastReflection_QueryNFTSupplyRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryContractRequest)(nil) -type fastReflection_QueryNFTSupplyRequest QueryNFTSupplyRequest +type fastReflection_QueryContractRequest QueryContractRequest -func (x *QueryNFTSupplyRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNFTSupplyRequest)(x) +func (x *QueryContractRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryContractRequest)(x) } -func (x *QueryNFTSupplyRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryContractRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4881,43 +4879,43 @@ func (x *QueryNFTSupplyRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryNFTSupplyRequest_messageType fastReflection_QueryNFTSupplyRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryNFTSupplyRequest_messageType{} +var _fastReflection_QueryContractRequest_messageType fastReflection_QueryContractRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryContractRequest_messageType{} -type fastReflection_QueryNFTSupplyRequest_messageType struct{} +type fastReflection_QueryContractRequest_messageType struct{} -func (x fastReflection_QueryNFTSupplyRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNFTSupplyRequest)(nil) +func (x fastReflection_QueryContractRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryContractRequest)(nil) } -func (x fastReflection_QueryNFTSupplyRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNFTSupplyRequest) +func (x fastReflection_QueryContractRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryContractRequest) } -func (x fastReflection_QueryNFTSupplyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTSupplyRequest +func (x fastReflection_QueryContractRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNFTSupplyRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTSupplyRequest +func (x *fastReflection_QueryContractRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractRequest } // 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_QueryNFTSupplyRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryNFTSupplyRequest_messageType +func (x *fastReflection_QueryContractRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryContractRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNFTSupplyRequest) New() protoreflect.Message { - return new(fastReflection_QueryNFTSupplyRequest) +func (x *fastReflection_QueryContractRequest) New() protoreflect.Message { + return new(fastReflection_QueryContractRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNFTSupplyRequest) Interface() protoreflect.ProtoMessage { - return (*QueryNFTSupplyRequest)(x) +func (x *fastReflection_QueryContractRequest) Interface() protoreflect.ProtoMessage { + return (*QueryContractRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -4925,16 +4923,10 @@ func (x *fastReflection_QueryNFTSupplyRequest) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryNFTSupplyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryContractRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryNFTSupplyRequest_contract_id, value) { - return - } - } - if x.TokenType != "" { - value := protoreflect.ValueOfString(x.TokenType) - if !f(fd_QueryNFTSupplyRequest_token_type, value) { + if !f(fd_QueryContractRequest_contract_id, value) { return } } @@ -4951,17 +4943,15 @@ func (x *fastReflection_QueryNFTSupplyRequest) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNFTSupplyRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryContractRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": + case "lbm.collection.v1.QueryContractRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryNFTSupplyRequest.token_type": - return x.TokenType != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest does not contain field %s", fd.FullName())) } } @@ -4971,17 +4961,15 @@ func (x *fastReflection_QueryNFTSupplyRequest) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTSupplyRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryContractRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": + case "lbm.collection.v1.QueryContractRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryNFTSupplyRequest.token_type": - x.TokenType = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest does not contain field %s", fd.FullName())) } } @@ -4991,19 +4979,16 @@ func (x *fastReflection_QueryNFTSupplyRequest) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNFTSupplyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": + case "lbm.collection.v1.QueryContractRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryNFTSupplyRequest.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.QueryNFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest does not contain field %s", descriptor.FullName())) } } @@ -5017,17 +5002,15 @@ func (x *fastReflection_QueryNFTSupplyRequest) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTSupplyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryContractRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": + case "lbm.collection.v1.QueryContractRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryNFTSupplyRequest.token_type": - x.TokenType = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest does not contain field %s", fd.FullName())) } } @@ -5041,44 +5024,40 @@ func (x *fastReflection_QueryNFTSupplyRequest) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTSupplyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryNFTSupplyRequest is not mutable")) - case "lbm.collection.v1.QueryNFTSupplyRequest.token_type": - panic(fmt.Errorf("field token_type of message lbm.collection.v1.QueryNFTSupplyRequest is not mutable")) + case "lbm.collection.v1.QueryContractRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryContractRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest 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_QueryNFTSupplyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTSupplyRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryNFTSupplyRequest.token_type": + case "lbm.collection.v1.QueryContractRequest.contract_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest 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_QueryNFTSupplyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryContractRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTSupplyRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryContractRequest", d.FullName())) } panic("unreachable") } @@ -5086,7 +5065,7 @@ func (x *fastReflection_QueryNFTSupplyRequest) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNFTSupplyRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryContractRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5097,7 +5076,7 @@ func (x *fastReflection_QueryNFTSupplyRequest) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTSupplyRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryContractRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5109,7 +5088,7 @@ func (x *fastReflection_QueryNFTSupplyRequest) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryNFTSupplyRequest) IsValid() bool { +func (x *fastReflection_QueryContractRequest) IsValid() bool { return x != nil } @@ -5119,9 +5098,9 @@ func (x *fastReflection_QueryNFTSupplyRequest) 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_QueryNFTSupplyRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryContractRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNFTSupplyRequest) + x := input.Message.Interface().(*QueryContractRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5137,10 +5116,6 @@ func (x *fastReflection_QueryNFTSupplyRequest) ProtoMethods() *protoiface.Method if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.TokenType) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -5151,7 +5126,7 @@ func (x *fastReflection_QueryNFTSupplyRequest) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTSupplyRequest) + x := input.Message.Interface().(*QueryContractRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5170,13 +5145,6 @@ func (x *fastReflection_QueryNFTSupplyRequest) ProtoMethods() *protoiface.Method 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] = 0x12 - } if len(x.ContractId) > 0 { i -= len(x.ContractId) copy(dAtA[i:], x.ContractId) @@ -5195,7 +5163,7 @@ func (x *fastReflection_QueryNFTSupplyRequest) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTSupplyRequest) + x := input.Message.Interface().(*QueryContractRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5227,10 +5195,10 @@ func (x *fastReflection_QueryNFTSupplyRequest) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTSupplyRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5265,38 +5233,6 @@ func (x *fastReflection_QueryNFTSupplyRequest) ProtoMethods() *protoiface.Method } 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 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:]) @@ -5333,25 +5269,25 @@ func (x *fastReflection_QueryNFTSupplyRequest) ProtoMethods() *protoiface.Method } var ( - md_QueryNFTSupplyResponse protoreflect.MessageDescriptor - fd_QueryNFTSupplyResponse_supply protoreflect.FieldDescriptor + md_QueryContractResponse protoreflect.MessageDescriptor + fd_QueryContractResponse_contract protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryNFTSupplyResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTSupplyResponse") - fd_QueryNFTSupplyResponse_supply = md_QueryNFTSupplyResponse.Fields().ByName("supply") + md_QueryContractResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryContractResponse") + fd_QueryContractResponse_contract = md_QueryContractResponse.Fields().ByName("contract") } -var _ protoreflect.Message = (*fastReflection_QueryNFTSupplyResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryContractResponse)(nil) -type fastReflection_QueryNFTSupplyResponse QueryNFTSupplyResponse +type fastReflection_QueryContractResponse QueryContractResponse -func (x *QueryNFTSupplyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNFTSupplyResponse)(x) +func (x *QueryContractResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryContractResponse)(x) } -func (x *QueryNFTSupplyResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryContractResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5363,43 +5299,43 @@ func (x *QueryNFTSupplyResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryNFTSupplyResponse_messageType fastReflection_QueryNFTSupplyResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryNFTSupplyResponse_messageType{} +var _fastReflection_QueryContractResponse_messageType fastReflection_QueryContractResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryContractResponse_messageType{} -type fastReflection_QueryNFTSupplyResponse_messageType struct{} +type fastReflection_QueryContractResponse_messageType struct{} -func (x fastReflection_QueryNFTSupplyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNFTSupplyResponse)(nil) +func (x fastReflection_QueryContractResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryContractResponse)(nil) } -func (x fastReflection_QueryNFTSupplyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNFTSupplyResponse) +func (x fastReflection_QueryContractResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryContractResponse) } -func (x fastReflection_QueryNFTSupplyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTSupplyResponse +func (x fastReflection_QueryContractResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNFTSupplyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTSupplyResponse +func (x *fastReflection_QueryContractResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractResponse } // 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_QueryNFTSupplyResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryNFTSupplyResponse_messageType +func (x *fastReflection_QueryContractResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryContractResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNFTSupplyResponse) New() protoreflect.Message { - return new(fastReflection_QueryNFTSupplyResponse) +func (x *fastReflection_QueryContractResponse) New() protoreflect.Message { + return new(fastReflection_QueryContractResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNFTSupplyResponse) Interface() protoreflect.ProtoMessage { - return (*QueryNFTSupplyResponse)(x) +func (x *fastReflection_QueryContractResponse) Interface() protoreflect.ProtoMessage { + return (*QueryContractResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -5407,10 +5343,10 @@ func (x *fastReflection_QueryNFTSupplyResponse) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryNFTSupplyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Supply != "" { - value := protoreflect.ValueOfString(x.Supply) - if !f(fd_QueryNFTSupplyResponse_supply, value) { +func (x *fastReflection_QueryContractResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Contract != nil { + value := protoreflect.ValueOfMessage(x.Contract.ProtoReflect()) + if !f(fd_QueryContractResponse_contract, value) { return } } @@ -5427,15 +5363,15 @@ func (x *fastReflection_QueryNFTSupplyResponse) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNFTSupplyResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryContractResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTSupplyResponse.supply": - return x.Supply != "" + case "lbm.collection.v1.QueryContractResponse.contract": + return x.Contract != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse does not contain field %s", fd.FullName())) } } @@ -5445,15 +5381,15 @@ func (x *fastReflection_QueryNFTSupplyResponse) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTSupplyResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryContractResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTSupplyResponse.supply": - x.Supply = "" + case "lbm.collection.v1.QueryContractResponse.contract": + x.Contract = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse does not contain field %s", fd.FullName())) } } @@ -5463,16 +5399,16 @@ func (x *fastReflection_QueryNFTSupplyResponse) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNFTSupplyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryNFTSupplyResponse.supply": - value := x.Supply - return protoreflect.ValueOfString(value) + case "lbm.collection.v1.QueryContractResponse.contract": + value := x.Contract + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse does not contain field %s", descriptor.FullName())) } } @@ -5486,15 +5422,15 @@ func (x *fastReflection_QueryNFTSupplyResponse) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTSupplyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryContractResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTSupplyResponse.supply": - x.Supply = value.Interface().(string) + case "lbm.collection.v1.QueryContractResponse.contract": + x.Contract = value.Message().Interface().(*Contract) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse does not contain field %s", fd.FullName())) } } @@ -5508,40 +5444,44 @@ func (x *fastReflection_QueryNFTSupplyResponse) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTSupplyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTSupplyResponse.supply": - panic(fmt.Errorf("field supply of message lbm.collection.v1.QueryNFTSupplyResponse is not mutable")) + case "lbm.collection.v1.QueryContractResponse.contract": + if x.Contract == nil { + x.Contract = new(Contract) + } + return protoreflect.ValueOfMessage(x.Contract.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse 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_QueryNFTSupplyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTSupplyResponse.supply": - return protoreflect.ValueOfString("") + case "lbm.collection.v1.QueryContractResponse.contract": + m := new(Contract) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTSupplyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTSupplyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse 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_QueryNFTSupplyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryContractResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTSupplyResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryContractResponse", d.FullName())) } panic("unreachable") } @@ -5549,7 +5489,7 @@ func (x *fastReflection_QueryNFTSupplyResponse) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNFTSupplyResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryContractResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5560,7 +5500,7 @@ func (x *fastReflection_QueryNFTSupplyResponse) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTSupplyResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryContractResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5572,7 +5512,7 @@ func (x *fastReflection_QueryNFTSupplyResponse) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryNFTSupplyResponse) IsValid() bool { +func (x *fastReflection_QueryContractResponse) IsValid() bool { return x != nil } @@ -5582,9 +5522,9 @@ func (x *fastReflection_QueryNFTSupplyResponse) 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_QueryNFTSupplyResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryContractResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNFTSupplyResponse) + x := input.Message.Interface().(*QueryContractResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5596,8 +5536,8 @@ func (x *fastReflection_QueryNFTSupplyResponse) ProtoMethods() *protoiface.Metho var n int var l int _ = l - l = len(x.Supply) - if l > 0 { + if x.Contract != nil { + l = options.Size(x.Contract) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -5610,7 +5550,7 @@ func (x *fastReflection_QueryNFTSupplyResponse) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTSupplyResponse) + x := input.Message.Interface().(*QueryContractResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5629,10 +5569,17 @@ func (x *fastReflection_QueryNFTSupplyResponse) ProtoMethods() *protoiface.Metho 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))) + if x.Contract != nil { + encoded, err := options.Marshal(x.Contract) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -5647,7 +5594,7 @@ func (x *fastReflection_QueryNFTSupplyResponse) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTSupplyResponse) + x := input.Message.Interface().(*QueryContractResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5679,17 +5626,17 @@ func (x *fastReflection_QueryNFTSupplyResponse) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTSupplyResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractResponse: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Contract", 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 @@ -5699,23 +5646,27 @@ func (x *fastReflection_QueryNFTSupplyResponse) ProtoMethods() *protoiface.Metho } 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.Supply = string(dAtA[iNdEx:postIndex]) + if x.Contract == nil { + x.Contract = &Contract{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Contract); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -5753,27 +5704,27 @@ func (x *fastReflection_QueryNFTSupplyResponse) ProtoMethods() *protoiface.Metho } var ( - md_QueryNFTMintedRequest protoreflect.MessageDescriptor - fd_QueryNFTMintedRequest_contract_id protoreflect.FieldDescriptor - fd_QueryNFTMintedRequest_token_type protoreflect.FieldDescriptor + md_QueryTokenClassTypeNameRequest protoreflect.MessageDescriptor + fd_QueryTokenClassTypeNameRequest_contract_id protoreflect.FieldDescriptor + fd_QueryTokenClassTypeNameRequest_class_id protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryNFTMintedRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTMintedRequest") - fd_QueryNFTMintedRequest_contract_id = md_QueryNFTMintedRequest.Fields().ByName("contract_id") - fd_QueryNFTMintedRequest_token_type = md_QueryNFTMintedRequest.Fields().ByName("token_type") + md_QueryTokenClassTypeNameRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenClassTypeNameRequest") + fd_QueryTokenClassTypeNameRequest_contract_id = md_QueryTokenClassTypeNameRequest.Fields().ByName("contract_id") + fd_QueryTokenClassTypeNameRequest_class_id = md_QueryTokenClassTypeNameRequest.Fields().ByName("class_id") } -var _ protoreflect.Message = (*fastReflection_QueryNFTMintedRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTokenClassTypeNameRequest)(nil) -type fastReflection_QueryNFTMintedRequest QueryNFTMintedRequest +type fastReflection_QueryTokenClassTypeNameRequest QueryTokenClassTypeNameRequest -func (x *QueryNFTMintedRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNFTMintedRequest)(x) +func (x *QueryTokenClassTypeNameRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTokenClassTypeNameRequest)(x) } -func (x *QueryNFTMintedRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryTokenClassTypeNameRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5785,43 +5736,43 @@ func (x *QueryNFTMintedRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryNFTMintedRequest_messageType fastReflection_QueryNFTMintedRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryNFTMintedRequest_messageType{} +var _fastReflection_QueryTokenClassTypeNameRequest_messageType fastReflection_QueryTokenClassTypeNameRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTokenClassTypeNameRequest_messageType{} -type fastReflection_QueryNFTMintedRequest_messageType struct{} +type fastReflection_QueryTokenClassTypeNameRequest_messageType struct{} -func (x fastReflection_QueryNFTMintedRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNFTMintedRequest)(nil) +func (x fastReflection_QueryTokenClassTypeNameRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTokenClassTypeNameRequest)(nil) } -func (x fastReflection_QueryNFTMintedRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNFTMintedRequest) +func (x fastReflection_QueryTokenClassTypeNameRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTokenClassTypeNameRequest) } -func (x fastReflection_QueryNFTMintedRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTMintedRequest +func (x fastReflection_QueryTokenClassTypeNameRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenClassTypeNameRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNFTMintedRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTMintedRequest +func (x *fastReflection_QueryTokenClassTypeNameRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenClassTypeNameRequest } // 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_QueryNFTMintedRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryNFTMintedRequest_messageType +func (x *fastReflection_QueryTokenClassTypeNameRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTokenClassTypeNameRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNFTMintedRequest) New() protoreflect.Message { - return new(fastReflection_QueryNFTMintedRequest) +func (x *fastReflection_QueryTokenClassTypeNameRequest) New() protoreflect.Message { + return new(fastReflection_QueryTokenClassTypeNameRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNFTMintedRequest) Interface() protoreflect.ProtoMessage { - return (*QueryNFTMintedRequest)(x) +func (x *fastReflection_QueryTokenClassTypeNameRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTokenClassTypeNameRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -5829,16 +5780,16 @@ func (x *fastReflection_QueryNFTMintedRequest) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryNFTMintedRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTokenClassTypeNameRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryNFTMintedRequest_contract_id, value) { + if !f(fd_QueryTokenClassTypeNameRequest_contract_id, value) { return } } - if x.TokenType != "" { - value := protoreflect.ValueOfString(x.TokenType) - if !f(fd_QueryNFTMintedRequest_token_type, value) { + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_QueryTokenClassTypeNameRequest_class_id, value) { return } } @@ -5855,17 +5806,17 @@ func (x *fastReflection_QueryNFTMintedRequest) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNFTMintedRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTokenClassTypeNameRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryNFTMintedRequest.token_type": - return x.TokenType != "" + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": + return x.ClassId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest does not contain field %s", fd.FullName())) } } @@ -5875,17 +5826,17 @@ func (x *fastReflection_QueryNFTMintedRequest) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTMintedRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTokenClassTypeNameRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryNFTMintedRequest.token_type": - x.TokenType = "" + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": + x.ClassId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest does not contain field %s", fd.FullName())) } } @@ -5895,19 +5846,19 @@ func (x *fastReflection_QueryNFTMintedRequest) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNFTMintedRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenClassTypeNameRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryNFTMintedRequest.token_type": - value := x.TokenType + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": + value := x.ClassId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest does not contain field %s", descriptor.FullName())) } } @@ -5921,17 +5872,17 @@ func (x *fastReflection_QueryNFTMintedRequest) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTMintedRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTokenClassTypeNameRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryNFTMintedRequest.token_type": - x.TokenType = value.Interface().(string) + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": + x.ClassId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest does not contain field %s", fd.FullName())) } } @@ -5945,44 +5896,44 @@ func (x *fastReflection_QueryNFTMintedRequest) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTMintedRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenClassTypeNameRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryNFTMintedRequest is not mutable")) - case "lbm.collection.v1.QueryNFTMintedRequest.token_type": - panic(fmt.Errorf("field token_type of message lbm.collection.v1.QueryNFTMintedRequest is not mutable")) + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryTokenClassTypeNameRequest is not mutable")) + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": + panic(fmt.Errorf("field class_id of message lbm.collection.v1.QueryTokenClassTypeNameRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest 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_QueryNFTMintedRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenClassTypeNameRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTMintedRequest.contract_id": + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryNFTMintedRequest.token_type": + case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest 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_QueryNFTMintedRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTokenClassTypeNameRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTMintedRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenClassTypeNameRequest", d.FullName())) } panic("unreachable") } @@ -5990,7 +5941,7 @@ func (x *fastReflection_QueryNFTMintedRequest) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNFTMintedRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTokenClassTypeNameRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6001,7 +5952,7 @@ func (x *fastReflection_QueryNFTMintedRequest) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTMintedRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTokenClassTypeNameRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6013,7 +5964,7 @@ func (x *fastReflection_QueryNFTMintedRequest) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryNFTMintedRequest) IsValid() bool { +func (x *fastReflection_QueryTokenClassTypeNameRequest) IsValid() bool { return x != nil } @@ -6023,9 +5974,9 @@ func (x *fastReflection_QueryNFTMintedRequest) 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_QueryNFTMintedRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTokenClassTypeNameRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNFTMintedRequest) + x := input.Message.Interface().(*QueryTokenClassTypeNameRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6041,7 +5992,7 @@ func (x *fastReflection_QueryNFTMintedRequest) ProtoMethods() *protoiface.Method if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.TokenType) + l = len(x.ClassId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -6055,7 +6006,7 @@ func (x *fastReflection_QueryNFTMintedRequest) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTMintedRequest) + x := input.Message.Interface().(*QueryTokenClassTypeNameRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6074,10 +6025,10 @@ func (x *fastReflection_QueryNFTMintedRequest) ProtoMethods() *protoiface.Method 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))) + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) i-- dAtA[i] = 0x12 } @@ -6099,7 +6050,7 @@ func (x *fastReflection_QueryNFTMintedRequest) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTMintedRequest) + x := input.Message.Interface().(*QueryTokenClassTypeNameRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6131,10 +6082,10 @@ func (x *fastReflection_QueryNFTMintedRequest) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTMintedRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenClassTypeNameRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenClassTypeNameRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6171,7 +6122,7 @@ func (x *fastReflection_QueryNFTMintedRequest) ProtoMethods() *protoiface.Method iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6199,7 +6150,7 @@ func (x *fastReflection_QueryNFTMintedRequest) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TokenType = string(dAtA[iNdEx:postIndex]) + x.ClassId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -6237,25 +6188,25 @@ func (x *fastReflection_QueryNFTMintedRequest) ProtoMethods() *protoiface.Method } var ( - md_QueryNFTMintedResponse protoreflect.MessageDescriptor - fd_QueryNFTMintedResponse_minted protoreflect.FieldDescriptor + md_QueryTokenClassTypeNameResponse protoreflect.MessageDescriptor + fd_QueryTokenClassTypeNameResponse_name protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryNFTMintedResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTMintedResponse") - fd_QueryNFTMintedResponse_minted = md_QueryNFTMintedResponse.Fields().ByName("minted") + md_QueryTokenClassTypeNameResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenClassTypeNameResponse") + fd_QueryTokenClassTypeNameResponse_name = md_QueryTokenClassTypeNameResponse.Fields().ByName("name") } -var _ protoreflect.Message = (*fastReflection_QueryNFTMintedResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTokenClassTypeNameResponse)(nil) -type fastReflection_QueryNFTMintedResponse QueryNFTMintedResponse +type fastReflection_QueryTokenClassTypeNameResponse QueryTokenClassTypeNameResponse -func (x *QueryNFTMintedResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNFTMintedResponse)(x) +func (x *QueryTokenClassTypeNameResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTokenClassTypeNameResponse)(x) } -func (x *QueryNFTMintedResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryTokenClassTypeNameResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6267,43 +6218,43 @@ func (x *QueryNFTMintedResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryNFTMintedResponse_messageType fastReflection_QueryNFTMintedResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryNFTMintedResponse_messageType{} +var _fastReflection_QueryTokenClassTypeNameResponse_messageType fastReflection_QueryTokenClassTypeNameResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTokenClassTypeNameResponse_messageType{} -type fastReflection_QueryNFTMintedResponse_messageType struct{} +type fastReflection_QueryTokenClassTypeNameResponse_messageType struct{} -func (x fastReflection_QueryNFTMintedResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNFTMintedResponse)(nil) +func (x fastReflection_QueryTokenClassTypeNameResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTokenClassTypeNameResponse)(nil) } -func (x fastReflection_QueryNFTMintedResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNFTMintedResponse) +func (x fastReflection_QueryTokenClassTypeNameResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTokenClassTypeNameResponse) } -func (x fastReflection_QueryNFTMintedResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTMintedResponse +func (x fastReflection_QueryTokenClassTypeNameResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenClassTypeNameResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNFTMintedResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTMintedResponse +func (x *fastReflection_QueryTokenClassTypeNameResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenClassTypeNameResponse } // 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_QueryNFTMintedResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryNFTMintedResponse_messageType +func (x *fastReflection_QueryTokenClassTypeNameResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTokenClassTypeNameResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNFTMintedResponse) New() protoreflect.Message { - return new(fastReflection_QueryNFTMintedResponse) +func (x *fastReflection_QueryTokenClassTypeNameResponse) New() protoreflect.Message { + return new(fastReflection_QueryTokenClassTypeNameResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNFTMintedResponse) Interface() protoreflect.ProtoMessage { - return (*QueryNFTMintedResponse)(x) +func (x *fastReflection_QueryTokenClassTypeNameResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTokenClassTypeNameResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -6311,10 +6262,10 @@ func (x *fastReflection_QueryNFTMintedResponse) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryNFTMintedResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Minted != "" { - value := protoreflect.ValueOfString(x.Minted) - if !f(fd_QueryNFTMintedResponse_minted, value) { +func (x *fastReflection_QueryTokenClassTypeNameResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Name != "" { + value := protoreflect.ValueOfString(x.Name) + if !f(fd_QueryTokenClassTypeNameResponse_name, value) { return } } @@ -6331,15 +6282,15 @@ func (x *fastReflection_QueryNFTMintedResponse) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNFTMintedResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTokenClassTypeNameResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTMintedResponse.minted": - return x.Minted != "" + case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": + return x.Name != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse does not contain field %s", fd.FullName())) } } @@ -6349,15 +6300,15 @@ func (x *fastReflection_QueryNFTMintedResponse) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTMintedResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTokenClassTypeNameResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTMintedResponse.minted": - x.Minted = "" + case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": + x.Name = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse does not contain field %s", fd.FullName())) } } @@ -6367,16 +6318,16 @@ func (x *fastReflection_QueryNFTMintedResponse) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNFTMintedResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenClassTypeNameResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryNFTMintedResponse.minted": - value := x.Minted + case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": + value := x.Name return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse does not contain field %s", descriptor.FullName())) } } @@ -6390,15 +6341,15 @@ func (x *fastReflection_QueryNFTMintedResponse) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTMintedResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTokenClassTypeNameResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTMintedResponse.minted": - x.Minted = value.Interface().(string) + case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": + x.Name = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse does not contain field %s", fd.FullName())) } } @@ -6412,40 +6363,40 @@ func (x *fastReflection_QueryNFTMintedResponse) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTMintedResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenClassTypeNameResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTMintedResponse.minted": - panic(fmt.Errorf("field minted of message lbm.collection.v1.QueryNFTMintedResponse is not mutable")) + case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": + panic(fmt.Errorf("field name of message lbm.collection.v1.QueryTokenClassTypeNameResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse 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_QueryNFTMintedResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenClassTypeNameResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTMintedResponse.minted": + case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTMintedResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTMintedResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse 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_QueryNFTMintedResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTokenClassTypeNameResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTMintedResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenClassTypeNameResponse", d.FullName())) } panic("unreachable") } @@ -6453,7 +6404,7 @@ func (x *fastReflection_QueryNFTMintedResponse) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNFTMintedResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTokenClassTypeNameResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6464,7 +6415,7 @@ func (x *fastReflection_QueryNFTMintedResponse) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTMintedResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTokenClassTypeNameResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6476,7 +6427,7 @@ func (x *fastReflection_QueryNFTMintedResponse) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryNFTMintedResponse) IsValid() bool { +func (x *fastReflection_QueryTokenClassTypeNameResponse) IsValid() bool { return x != nil } @@ -6486,9 +6437,9 @@ func (x *fastReflection_QueryNFTMintedResponse) 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_QueryNFTMintedResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTokenClassTypeNameResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNFTMintedResponse) + x := input.Message.Interface().(*QueryTokenClassTypeNameResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6500,7 +6451,7 @@ func (x *fastReflection_QueryNFTMintedResponse) ProtoMethods() *protoiface.Metho var n int var l int _ = l - l = len(x.Minted) + l = len(x.Name) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -6514,7 +6465,7 @@ func (x *fastReflection_QueryNFTMintedResponse) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTMintedResponse) + x := input.Message.Interface().(*QueryTokenClassTypeNameResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6533,10 +6484,10 @@ func (x *fastReflection_QueryNFTMintedResponse) ProtoMethods() *protoiface.Metho 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))) + 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] = 0xa } @@ -6551,7 +6502,7 @@ func (x *fastReflection_QueryNFTMintedResponse) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTMintedResponse) + x := input.Message.Interface().(*QueryTokenClassTypeNameResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6583,15 +6534,15 @@ func (x *fastReflection_QueryNFTMintedResponse) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTMintedResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenClassTypeNameResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenClassTypeNameResponse: 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) + 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 { @@ -6619,7 +6570,7 @@ func (x *fastReflection_QueryNFTMintedResponse) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Minted = string(dAtA[iNdEx:postIndex]) + x.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -6657,27 +6608,27 @@ func (x *fastReflection_QueryNFTMintedResponse) ProtoMethods() *protoiface.Metho } var ( - md_QueryNFTBurntRequest protoreflect.MessageDescriptor - fd_QueryNFTBurntRequest_contract_id protoreflect.FieldDescriptor - fd_QueryNFTBurntRequest_token_type protoreflect.FieldDescriptor + md_QueryTokenTypeRequest protoreflect.MessageDescriptor + fd_QueryTokenTypeRequest_contract_id protoreflect.FieldDescriptor + fd_QueryTokenTypeRequest_token_type protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryNFTBurntRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTBurntRequest") - fd_QueryNFTBurntRequest_contract_id = md_QueryNFTBurntRequest.Fields().ByName("contract_id") - fd_QueryNFTBurntRequest_token_type = md_QueryNFTBurntRequest.Fields().ByName("token_type") + md_QueryTokenTypeRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenTypeRequest") + fd_QueryTokenTypeRequest_contract_id = md_QueryTokenTypeRequest.Fields().ByName("contract_id") + fd_QueryTokenTypeRequest_token_type = md_QueryTokenTypeRequest.Fields().ByName("token_type") } -var _ protoreflect.Message = (*fastReflection_QueryNFTBurntRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTokenTypeRequest)(nil) -type fastReflection_QueryNFTBurntRequest QueryNFTBurntRequest +type fastReflection_QueryTokenTypeRequest QueryTokenTypeRequest -func (x *QueryNFTBurntRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNFTBurntRequest)(x) +func (x *QueryTokenTypeRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTokenTypeRequest)(x) } -func (x *QueryNFTBurntRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryTokenTypeRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6689,43 +6640,43 @@ func (x *QueryNFTBurntRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryNFTBurntRequest_messageType fastReflection_QueryNFTBurntRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryNFTBurntRequest_messageType{} +var _fastReflection_QueryTokenTypeRequest_messageType fastReflection_QueryTokenTypeRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTokenTypeRequest_messageType{} -type fastReflection_QueryNFTBurntRequest_messageType struct{} +type fastReflection_QueryTokenTypeRequest_messageType struct{} -func (x fastReflection_QueryNFTBurntRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNFTBurntRequest)(nil) +func (x fastReflection_QueryTokenTypeRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTokenTypeRequest)(nil) } -func (x fastReflection_QueryNFTBurntRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNFTBurntRequest) +func (x fastReflection_QueryTokenTypeRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTokenTypeRequest) } -func (x fastReflection_QueryNFTBurntRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTBurntRequest +func (x fastReflection_QueryTokenTypeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenTypeRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNFTBurntRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTBurntRequest +func (x *fastReflection_QueryTokenTypeRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenTypeRequest } // 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_QueryNFTBurntRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryNFTBurntRequest_messageType +func (x *fastReflection_QueryTokenTypeRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTokenTypeRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNFTBurntRequest) New() protoreflect.Message { - return new(fastReflection_QueryNFTBurntRequest) +func (x *fastReflection_QueryTokenTypeRequest) New() protoreflect.Message { + return new(fastReflection_QueryTokenTypeRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNFTBurntRequest) Interface() protoreflect.ProtoMessage { - return (*QueryNFTBurntRequest)(x) +func (x *fastReflection_QueryTokenTypeRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTokenTypeRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -6733,16 +6684,16 @@ func (x *fastReflection_QueryNFTBurntRequest) 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_QueryNFTBurntRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTokenTypeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryNFTBurntRequest_contract_id, value) { + if !f(fd_QueryTokenTypeRequest_contract_id, value) { return } } if x.TokenType != "" { value := protoreflect.ValueOfString(x.TokenType) - if !f(fd_QueryNFTBurntRequest_token_type, value) { + if !f(fd_QueryTokenTypeRequest_token_type, value) { return } } @@ -6759,17 +6710,17 @@ func (x *fastReflection_QueryNFTBurntRequest) 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_QueryNFTBurntRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTokenTypeRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": + case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryNFTBurntRequest.token_type": + case "lbm.collection.v1.QueryTokenTypeRequest.token_type": return x.TokenType != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest does not contain field %s", fd.FullName())) } } @@ -6779,17 +6730,17 @@ func (x *fastReflection_QueryNFTBurntRequest) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTBurntRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTokenTypeRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": + case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryNFTBurntRequest.token_type": + case "lbm.collection.v1.QueryTokenTypeRequest.token_type": x.TokenType = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest does not contain field %s", fd.FullName())) } } @@ -6799,19 +6750,19 @@ func (x *fastReflection_QueryNFTBurntRequest) 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_QueryNFTBurntRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenTypeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": + case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryNFTBurntRequest.token_type": + case "lbm.collection.v1.QueryTokenTypeRequest.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.QueryNFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest does not contain field %s", descriptor.FullName())) } } @@ -6825,17 +6776,17 @@ func (x *fastReflection_QueryNFTBurntRequest) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTBurntRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTokenTypeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": + case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryNFTBurntRequest.token_type": + case "lbm.collection.v1.QueryTokenTypeRequest.token_type": x.TokenType = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest does not contain field %s", fd.FullName())) } } @@ -6849,44 +6800,44 @@ func (x *fastReflection_QueryNFTBurntRequest) 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_QueryNFTBurntRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenTypeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryNFTBurntRequest is not mutable")) - case "lbm.collection.v1.QueryNFTBurntRequest.token_type": - panic(fmt.Errorf("field token_type of message lbm.collection.v1.QueryNFTBurntRequest is not mutable")) + case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryTokenTypeRequest is not mutable")) + case "lbm.collection.v1.QueryTokenTypeRequest.token_type": + panic(fmt.Errorf("field token_type of message lbm.collection.v1.QueryTokenTypeRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest 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_QueryNFTBurntRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenTypeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTBurntRequest.contract_id": + case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryNFTBurntRequest.token_type": + case "lbm.collection.v1.QueryTokenTypeRequest.token_type": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest 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_QueryNFTBurntRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTokenTypeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTBurntRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenTypeRequest", d.FullName())) } panic("unreachable") } @@ -6894,7 +6845,7 @@ func (x *fastReflection_QueryNFTBurntRequest) 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_QueryNFTBurntRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTokenTypeRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6905,7 +6856,7 @@ func (x *fastReflection_QueryNFTBurntRequest) 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_QueryNFTBurntRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTokenTypeRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6917,7 +6868,7 @@ func (x *fastReflection_QueryNFTBurntRequest) 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_QueryNFTBurntRequest) IsValid() bool { +func (x *fastReflection_QueryTokenTypeRequest) IsValid() bool { return x != nil } @@ -6927,9 +6878,9 @@ func (x *fastReflection_QueryNFTBurntRequest) 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_QueryNFTBurntRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTokenTypeRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNFTBurntRequest) + x := input.Message.Interface().(*QueryTokenTypeRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6959,7 +6910,7 @@ func (x *fastReflection_QueryNFTBurntRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTBurntRequest) + x := input.Message.Interface().(*QueryTokenTypeRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7003,7 +6954,7 @@ func (x *fastReflection_QueryNFTBurntRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTBurntRequest) + x := input.Message.Interface().(*QueryTokenTypeRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7035,10 +6986,10 @@ func (x *fastReflection_QueryNFTBurntRequest) 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: QueryNFTBurntRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenTypeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenTypeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7141,25 +7092,25 @@ func (x *fastReflection_QueryNFTBurntRequest) ProtoMethods() *protoiface.Methods } var ( - md_QueryNFTBurntResponse protoreflect.MessageDescriptor - fd_QueryNFTBurntResponse_burnt protoreflect.FieldDescriptor + md_QueryTokenTypeResponse protoreflect.MessageDescriptor + fd_QueryTokenTypeResponse_token_type protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryNFTBurntResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryNFTBurntResponse") - fd_QueryNFTBurntResponse_burnt = md_QueryNFTBurntResponse.Fields().ByName("burnt") + md_QueryTokenTypeResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenTypeResponse") + fd_QueryTokenTypeResponse_token_type = md_QueryTokenTypeResponse.Fields().ByName("token_type") } -var _ protoreflect.Message = (*fastReflection_QueryNFTBurntResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTokenTypeResponse)(nil) -type fastReflection_QueryNFTBurntResponse QueryNFTBurntResponse +type fastReflection_QueryTokenTypeResponse QueryTokenTypeResponse -func (x *QueryNFTBurntResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNFTBurntResponse)(x) +func (x *QueryTokenTypeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTokenTypeResponse)(x) } -func (x *QueryNFTBurntResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryTokenTypeResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7171,43 +7122,43 @@ func (x *QueryNFTBurntResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryNFTBurntResponse_messageType fastReflection_QueryNFTBurntResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryNFTBurntResponse_messageType{} +var _fastReflection_QueryTokenTypeResponse_messageType fastReflection_QueryTokenTypeResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTokenTypeResponse_messageType{} -type fastReflection_QueryNFTBurntResponse_messageType struct{} +type fastReflection_QueryTokenTypeResponse_messageType struct{} -func (x fastReflection_QueryNFTBurntResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNFTBurntResponse)(nil) +func (x fastReflection_QueryTokenTypeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTokenTypeResponse)(nil) } -func (x fastReflection_QueryNFTBurntResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNFTBurntResponse) +func (x fastReflection_QueryTokenTypeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTokenTypeResponse) } -func (x fastReflection_QueryNFTBurntResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTBurntResponse +func (x fastReflection_QueryTokenTypeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenTypeResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNFTBurntResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNFTBurntResponse +func (x *fastReflection_QueryTokenTypeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenTypeResponse } // 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_QueryNFTBurntResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryNFTBurntResponse_messageType +func (x *fastReflection_QueryTokenTypeResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTokenTypeResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNFTBurntResponse) New() protoreflect.Message { - return new(fastReflection_QueryNFTBurntResponse) +func (x *fastReflection_QueryTokenTypeResponse) New() protoreflect.Message { + return new(fastReflection_QueryTokenTypeResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNFTBurntResponse) Interface() protoreflect.ProtoMessage { - return (*QueryNFTBurntResponse)(x) +func (x *fastReflection_QueryTokenTypeResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTokenTypeResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -7215,10 +7166,10 @@ func (x *fastReflection_QueryNFTBurntResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryNFTBurntResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Burnt != "" { - value := protoreflect.ValueOfString(x.Burnt) - if !f(fd_QueryNFTBurntResponse_burnt, value) { +func (x *fastReflection_QueryTokenTypeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TokenType != nil { + value := protoreflect.ValueOfMessage(x.TokenType.ProtoReflect()) + if !f(fd_QueryTokenTypeResponse_token_type, value) { return } } @@ -7235,15 +7186,15 @@ func (x *fastReflection_QueryNFTBurntResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNFTBurntResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTokenTypeResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTBurntResponse.burnt": - return x.Burnt != "" + case "lbm.collection.v1.QueryTokenTypeResponse.token_type": + return x.TokenType != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse does not contain field %s", fd.FullName())) } } @@ -7253,15 +7204,15 @@ func (x *fastReflection_QueryNFTBurntResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTBurntResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTokenTypeResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTBurntResponse.burnt": - x.Burnt = "" + case "lbm.collection.v1.QueryTokenTypeResponse.token_type": + x.TokenType = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse does not contain field %s", fd.FullName())) } } @@ -7271,16 +7222,16 @@ func (x *fastReflection_QueryNFTBurntResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNFTBurntResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenTypeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryNFTBurntResponse.burnt": - value := x.Burnt - return protoreflect.ValueOfString(value) + case "lbm.collection.v1.QueryTokenTypeResponse.token_type": + value := x.TokenType + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse does not contain field %s", descriptor.FullName())) } } @@ -7294,15 +7245,15 @@ func (x *fastReflection_QueryNFTBurntResponse) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTBurntResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTokenTypeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTBurntResponse.burnt": - x.Burnt = value.Interface().(string) + case "lbm.collection.v1.QueryTokenTypeResponse.token_type": + x.TokenType = value.Message().Interface().(*TokenType) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse does not contain field %s", fd.FullName())) } } @@ -7316,40 +7267,44 @@ func (x *fastReflection_QueryNFTBurntResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTBurntResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenTypeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTBurntResponse.burnt": - panic(fmt.Errorf("field burnt of message lbm.collection.v1.QueryNFTBurntResponse is not mutable")) + case "lbm.collection.v1.QueryTokenTypeResponse.token_type": + if x.TokenType == nil { + x.TokenType = new(TokenType) + } + return protoreflect.ValueOfMessage(x.TokenType.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse 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_QueryNFTBurntResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenTypeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryNFTBurntResponse.burnt": - return protoreflect.ValueOfString("") + case "lbm.collection.v1.QueryTokenTypeResponse.token_type": + m := new(TokenType) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryNFTBurntResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryNFTBurntResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse 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_QueryNFTBurntResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTokenTypeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryNFTBurntResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenTypeResponse", d.FullName())) } panic("unreachable") } @@ -7357,7 +7312,7 @@ func (x *fastReflection_QueryNFTBurntResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNFTBurntResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTokenTypeResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7368,7 +7323,7 @@ func (x *fastReflection_QueryNFTBurntResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNFTBurntResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTokenTypeResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7380,7 +7335,7 @@ func (x *fastReflection_QueryNFTBurntResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryNFTBurntResponse) IsValid() bool { +func (x *fastReflection_QueryTokenTypeResponse) IsValid() bool { return x != nil } @@ -7390,9 +7345,9 @@ func (x *fastReflection_QueryNFTBurntResponse) 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_QueryNFTBurntResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTokenTypeResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNFTBurntResponse) + x := input.Message.Interface().(*QueryTokenTypeResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7404,8 +7359,8 @@ func (x *fastReflection_QueryNFTBurntResponse) ProtoMethods() *protoiface.Method var n int var l int _ = l - l = len(x.Burnt) - if l > 0 { + if x.TokenType != nil { + l = options.Size(x.TokenType) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -7418,7 +7373,7 @@ func (x *fastReflection_QueryNFTBurntResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTBurntResponse) + x := input.Message.Interface().(*QueryTokenTypeResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7437,10 +7392,17 @@ func (x *fastReflection_QueryNFTBurntResponse) ProtoMethods() *protoiface.Method 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))) + if x.TokenType != nil { + encoded, err := options.Marshal(x.TokenType) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -7455,7 +7417,7 @@ func (x *fastReflection_QueryNFTBurntResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNFTBurntResponse) + x := input.Message.Interface().(*QueryTokenTypeResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7487,17 +7449,17 @@ func (x *fastReflection_QueryNFTBurntResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTBurntResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenTypeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenTypeResponse: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenType", 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 @@ -7507,23 +7469,27 @@ func (x *fastReflection_QueryNFTBurntResponse) ProtoMethods() *protoiface.Method } 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.Burnt = string(dAtA[iNdEx:postIndex]) + if x.TokenType == nil { + x.TokenType = &TokenType{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TokenType); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -7561,25 +7527,27 @@ func (x *fastReflection_QueryNFTBurntResponse) ProtoMethods() *protoiface.Method } var ( - md_QueryContractRequest protoreflect.MessageDescriptor - fd_QueryContractRequest_contract_id protoreflect.FieldDescriptor + md_QueryTokenRequest protoreflect.MessageDescriptor + fd_QueryTokenRequest_contract_id protoreflect.FieldDescriptor + fd_QueryTokenRequest_token_id protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryContractRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryContractRequest") - fd_QueryContractRequest_contract_id = md_QueryContractRequest.Fields().ByName("contract_id") + md_QueryTokenRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenRequest") + fd_QueryTokenRequest_contract_id = md_QueryTokenRequest.Fields().ByName("contract_id") + fd_QueryTokenRequest_token_id = md_QueryTokenRequest.Fields().ByName("token_id") } -var _ protoreflect.Message = (*fastReflection_QueryContractRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTokenRequest)(nil) -type fastReflection_QueryContractRequest QueryContractRequest +type fastReflection_QueryTokenRequest QueryTokenRequest -func (x *QueryContractRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryContractRequest)(x) +func (x *QueryTokenRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTokenRequest)(x) } -func (x *QueryContractRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryTokenRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7591,43 +7559,43 @@ func (x *QueryContractRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryContractRequest_messageType fastReflection_QueryContractRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryContractRequest_messageType{} +var _fastReflection_QueryTokenRequest_messageType fastReflection_QueryTokenRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTokenRequest_messageType{} -type fastReflection_QueryContractRequest_messageType struct{} +type fastReflection_QueryTokenRequest_messageType struct{} -func (x fastReflection_QueryContractRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryContractRequest)(nil) +func (x fastReflection_QueryTokenRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTokenRequest)(nil) } -func (x fastReflection_QueryContractRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryContractRequest) +func (x fastReflection_QueryTokenRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTokenRequest) } -func (x fastReflection_QueryContractRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryContractRequest +func (x fastReflection_QueryTokenRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryContractRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryContractRequest +func (x *fastReflection_QueryTokenRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenRequest } // 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_QueryContractRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryContractRequest_messageType +func (x *fastReflection_QueryTokenRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTokenRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryContractRequest) New() protoreflect.Message { - return new(fastReflection_QueryContractRequest) +func (x *fastReflection_QueryTokenRequest) New() protoreflect.Message { + return new(fastReflection_QueryTokenRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryContractRequest) Interface() protoreflect.ProtoMessage { - return (*QueryContractRequest)(x) +func (x *fastReflection_QueryTokenRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTokenRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -7635,10 +7603,16 @@ func (x *fastReflection_QueryContractRequest) 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_QueryContractRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTokenRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryContractRequest_contract_id, value) { + if !f(fd_QueryTokenRequest_contract_id, value) { + return + } + } + if x.TokenId != "" { + value := protoreflect.ValueOfString(x.TokenId) + if !f(fd_QueryTokenRequest_token_id, value) { return } } @@ -7655,15 +7629,17 @@ func (x *fastReflection_QueryContractRequest) 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_QueryContractRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTokenRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryContractRequest.contract_id": + case "lbm.collection.v1.QueryTokenRequest.contract_id": return x.ContractId != "" + case "lbm.collection.v1.QueryTokenRequest.token_id": + return x.TokenId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest does not contain field %s", fd.FullName())) } } @@ -7673,15 +7649,17 @@ func (x *fastReflection_QueryContractRequest) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryContractRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTokenRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryContractRequest.contract_id": + case "lbm.collection.v1.QueryTokenRequest.contract_id": x.ContractId = "" + case "lbm.collection.v1.QueryTokenRequest.token_id": + x.TokenId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest does not contain field %s", fd.FullName())) } } @@ -7691,16 +7669,19 @@ func (x *fastReflection_QueryContractRequest) 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_QueryContractRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryContractRequest.contract_id": + case "lbm.collection.v1.QueryTokenRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) + case "lbm.collection.v1.QueryTokenRequest.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.QueryContractRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest does not contain field %s", descriptor.FullName())) } } @@ -7714,15 +7695,17 @@ func (x *fastReflection_QueryContractRequest) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryContractRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTokenRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryContractRequest.contract_id": + case "lbm.collection.v1.QueryTokenRequest.contract_id": x.ContractId = value.Interface().(string) + case "lbm.collection.v1.QueryTokenRequest.token_id": + x.TokenId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest does not contain field %s", fd.FullName())) } } @@ -7736,40 +7719,44 @@ func (x *fastReflection_QueryContractRequest) 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_QueryContractRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryContractRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryContractRequest is not mutable")) + case "lbm.collection.v1.QueryTokenRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryTokenRequest is not mutable")) + case "lbm.collection.v1.QueryTokenRequest.token_id": + panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryTokenRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest 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_QueryContractRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryContractRequest.contract_id": + case "lbm.collection.v1.QueryTokenRequest.contract_id": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.QueryTokenRequest.token_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest 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_QueryContractRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTokenRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryContractRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenRequest", d.FullName())) } panic("unreachable") } @@ -7777,7 +7764,7 @@ func (x *fastReflection_QueryContractRequest) 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_QueryContractRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTokenRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7788,7 +7775,7 @@ func (x *fastReflection_QueryContractRequest) 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_QueryContractRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTokenRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7800,7 +7787,7 @@ func (x *fastReflection_QueryContractRequest) 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_QueryContractRequest) IsValid() bool { +func (x *fastReflection_QueryTokenRequest) IsValid() bool { return x != nil } @@ -7810,9 +7797,9 @@ func (x *fastReflection_QueryContractRequest) 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_QueryContractRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTokenRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryContractRequest) + x := input.Message.Interface().(*QueryTokenRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7828,6 +7815,10 @@ func (x *fastReflection_QueryContractRequest) ProtoMethods() *protoiface.Methods 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) } @@ -7838,7 +7829,7 @@ func (x *fastReflection_QueryContractRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryContractRequest) + x := input.Message.Interface().(*QueryTokenRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7857,6 +7848,13 @@ func (x *fastReflection_QueryContractRequest) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.TokenId) > 0 { + i -= len(x.TokenId) + copy(dAtA[i:], x.TokenId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) + i-- + dAtA[i] = 0x12 + } if len(x.ContractId) > 0 { i -= len(x.ContractId) copy(dAtA[i:], x.ContractId) @@ -7875,7 +7873,7 @@ func (x *fastReflection_QueryContractRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryContractRequest) + x := input.Message.Interface().(*QueryTokenRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7907,10 +7905,10 @@ func (x *fastReflection_QueryContractRequest) 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: QueryContractRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7945,6 +7943,38 @@ func (x *fastReflection_QueryContractRequest) 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 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:]) @@ -7981,25 +8011,25 @@ func (x *fastReflection_QueryContractRequest) ProtoMethods() *protoiface.Methods } var ( - md_QueryContractResponse protoreflect.MessageDescriptor - fd_QueryContractResponse_contract protoreflect.FieldDescriptor + md_QueryTokenResponse protoreflect.MessageDescriptor + fd_QueryTokenResponse_token protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryContractResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryContractResponse") - fd_QueryContractResponse_contract = md_QueryContractResponse.Fields().ByName("contract") + md_QueryTokenResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenResponse") + fd_QueryTokenResponse_token = md_QueryTokenResponse.Fields().ByName("token") } -var _ protoreflect.Message = (*fastReflection_QueryContractResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTokenResponse)(nil) -type fastReflection_QueryContractResponse QueryContractResponse +type fastReflection_QueryTokenResponse QueryTokenResponse -func (x *QueryContractResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryContractResponse)(x) +func (x *QueryTokenResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTokenResponse)(x) } -func (x *QueryContractResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryTokenResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8011,43 +8041,43 @@ func (x *QueryContractResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryContractResponse_messageType fastReflection_QueryContractResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryContractResponse_messageType{} +var _fastReflection_QueryTokenResponse_messageType fastReflection_QueryTokenResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTokenResponse_messageType{} -type fastReflection_QueryContractResponse_messageType struct{} +type fastReflection_QueryTokenResponse_messageType struct{} -func (x fastReflection_QueryContractResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryContractResponse)(nil) +func (x fastReflection_QueryTokenResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTokenResponse)(nil) } -func (x fastReflection_QueryContractResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryContractResponse) +func (x fastReflection_QueryTokenResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTokenResponse) } -func (x fastReflection_QueryContractResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryContractResponse +func (x fastReflection_QueryTokenResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryContractResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryContractResponse +func (x *fastReflection_QueryTokenResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTokenResponse } // 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_QueryContractResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryContractResponse_messageType +func (x *fastReflection_QueryTokenResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTokenResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryContractResponse) New() protoreflect.Message { - return new(fastReflection_QueryContractResponse) +func (x *fastReflection_QueryTokenResponse) New() protoreflect.Message { + return new(fastReflection_QueryTokenResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryContractResponse) Interface() protoreflect.ProtoMessage { - return (*QueryContractResponse)(x) +func (x *fastReflection_QueryTokenResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTokenResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -8055,10 +8085,10 @@ func (x *fastReflection_QueryContractResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryContractResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Contract != nil { - value := protoreflect.ValueOfMessage(x.Contract.ProtoReflect()) - if !f(fd_QueryContractResponse_contract, value) { +func (x *fastReflection_QueryTokenResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Token != nil { + value := protoreflect.ValueOfMessage(x.Token.ProtoReflect()) + if !f(fd_QueryTokenResponse_token, value) { return } } @@ -8075,15 +8105,15 @@ func (x *fastReflection_QueryContractResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryContractResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTokenResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryContractResponse.contract": - return x.Contract != nil + case "lbm.collection.v1.QueryTokenResponse.token": + return x.Token != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse does not contain field %s", fd.FullName())) } } @@ -8093,15 +8123,15 @@ func (x *fastReflection_QueryContractResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryContractResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTokenResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryContractResponse.contract": - x.Contract = nil + case "lbm.collection.v1.QueryTokenResponse.token": + x.Token = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse does not contain field %s", fd.FullName())) } } @@ -8111,16 +8141,16 @@ func (x *fastReflection_QueryContractResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryContractResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryContractResponse.contract": - value := x.Contract + case "lbm.collection.v1.QueryTokenResponse.token": + value := x.Token return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse does not contain field %s", descriptor.FullName())) } } @@ -8134,15 +8164,15 @@ func (x *fastReflection_QueryContractResponse) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryContractResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTokenResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryContractResponse.contract": - x.Contract = value.Message().Interface().(*Contract) + case "lbm.collection.v1.QueryTokenResponse.token": + x.Token = value.Message().Interface().(*anypb.Any) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse does not contain field %s", fd.FullName())) } } @@ -8156,44 +8186,44 @@ func (x *fastReflection_QueryContractResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryContractResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryContractResponse.contract": - if x.Contract == nil { - x.Contract = new(Contract) + case "lbm.collection.v1.QueryTokenResponse.token": + if x.Token == nil { + x.Token = new(anypb.Any) } - return protoreflect.ValueOfMessage(x.Contract.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Token.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse 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_QueryContractResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTokenResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryContractResponse.contract": - m := new(Contract) + case "lbm.collection.v1.QueryTokenResponse.token": + m := new(anypb.Any) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryContractResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse 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_QueryContractResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTokenResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryContractResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenResponse", d.FullName())) } panic("unreachable") } @@ -8201,7 +8231,7 @@ func (x *fastReflection_QueryContractResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryContractResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTokenResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8212,7 +8242,7 @@ func (x *fastReflection_QueryContractResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryContractResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTokenResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8224,7 +8254,7 @@ func (x *fastReflection_QueryContractResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryContractResponse) IsValid() bool { +func (x *fastReflection_QueryTokenResponse) IsValid() bool { return x != nil } @@ -8234,9 +8264,9 @@ func (x *fastReflection_QueryContractResponse) 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_QueryContractResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTokenResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryContractResponse) + x := input.Message.Interface().(*QueryTokenResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8248,8 +8278,8 @@ func (x *fastReflection_QueryContractResponse) ProtoMethods() *protoiface.Method var n int var l int _ = l - if x.Contract != nil { - l = options.Size(x.Contract) + if x.Token != nil { + l = options.Size(x.Token) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -8262,7 +8292,7 @@ func (x *fastReflection_QueryContractResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryContractResponse) + x := input.Message.Interface().(*QueryTokenResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8281,8 +8311,8 @@ func (x *fastReflection_QueryContractResponse) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Contract != nil { - encoded, err := options.Marshal(x.Contract) + if x.Token != nil { + encoded, err := options.Marshal(x.Token) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8306,7 +8336,7 @@ func (x *fastReflection_QueryContractResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryContractResponse) + x := input.Message.Interface().(*QueryTokenResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8338,15 +8368,15 @@ func (x *fastReflection_QueryContractResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenResponse: 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 Contract", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8373,10 +8403,10 @@ func (x *fastReflection_QueryContractResponse) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Contract == nil { - x.Contract = &Contract{} + if x.Token == nil { + x.Token = &anypb.Any{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Contract); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Token); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -8416,27 +8446,29 @@ func (x *fastReflection_QueryContractResponse) ProtoMethods() *protoiface.Method } var ( - md_QueryTokenClassTypeNameRequest protoreflect.MessageDescriptor - fd_QueryTokenClassTypeNameRequest_contract_id protoreflect.FieldDescriptor - fd_QueryTokenClassTypeNameRequest_class_id protoreflect.FieldDescriptor + md_QueryGranteeGrantsRequest protoreflect.MessageDescriptor + fd_QueryGranteeGrantsRequest_contract_id protoreflect.FieldDescriptor + fd_QueryGranteeGrantsRequest_grantee protoreflect.FieldDescriptor + fd_QueryGranteeGrantsRequest_pagination protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryTokenClassTypeNameRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenClassTypeNameRequest") - fd_QueryTokenClassTypeNameRequest_contract_id = md_QueryTokenClassTypeNameRequest.Fields().ByName("contract_id") - fd_QueryTokenClassTypeNameRequest_class_id = md_QueryTokenClassTypeNameRequest.Fields().ByName("class_id") + md_QueryGranteeGrantsRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryGranteeGrantsRequest") + fd_QueryGranteeGrantsRequest_contract_id = md_QueryGranteeGrantsRequest.Fields().ByName("contract_id") + fd_QueryGranteeGrantsRequest_grantee = md_QueryGranteeGrantsRequest.Fields().ByName("grantee") + fd_QueryGranteeGrantsRequest_pagination = md_QueryGranteeGrantsRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryTokenClassTypeNameRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGranteeGrantsRequest)(nil) -type fastReflection_QueryTokenClassTypeNameRequest QueryTokenClassTypeNameRequest +type fastReflection_QueryGranteeGrantsRequest QueryGranteeGrantsRequest -func (x *QueryTokenClassTypeNameRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTokenClassTypeNameRequest)(x) +func (x *QueryGranteeGrantsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGranteeGrantsRequest)(x) } -func (x *QueryTokenClassTypeNameRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryGranteeGrantsRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8448,43 +8480,43 @@ func (x *QueryTokenClassTypeNameRequest) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryTokenClassTypeNameRequest_messageType fastReflection_QueryTokenClassTypeNameRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTokenClassTypeNameRequest_messageType{} +var _fastReflection_QueryGranteeGrantsRequest_messageType fastReflection_QueryGranteeGrantsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGranteeGrantsRequest_messageType{} -type fastReflection_QueryTokenClassTypeNameRequest_messageType struct{} +type fastReflection_QueryGranteeGrantsRequest_messageType struct{} -func (x fastReflection_QueryTokenClassTypeNameRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTokenClassTypeNameRequest)(nil) +func (x fastReflection_QueryGranteeGrantsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGranteeGrantsRequest)(nil) } -func (x fastReflection_QueryTokenClassTypeNameRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTokenClassTypeNameRequest) +func (x fastReflection_QueryGranteeGrantsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGranteeGrantsRequest) } -func (x fastReflection_QueryTokenClassTypeNameRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenClassTypeNameRequest +func (x fastReflection_QueryGranteeGrantsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGranteeGrantsRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTokenClassTypeNameRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenClassTypeNameRequest +func (x *fastReflection_QueryGranteeGrantsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGranteeGrantsRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTokenClassTypeNameRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTokenClassTypeNameRequest_messageType +func (x *fastReflection_QueryGranteeGrantsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGranteeGrantsRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTokenClassTypeNameRequest) New() protoreflect.Message { - return new(fastReflection_QueryTokenClassTypeNameRequest) +func (x *fastReflection_QueryGranteeGrantsRequest) New() protoreflect.Message { + return new(fastReflection_QueryGranteeGrantsRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTokenClassTypeNameRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTokenClassTypeNameRequest)(x) +func (x *fastReflection_QueryGranteeGrantsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGranteeGrantsRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -8492,16 +8524,22 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTokenClassTypeNameRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryGranteeGrantsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryTokenClassTypeNameRequest_contract_id, value) { + if !f(fd_QueryGranteeGrantsRequest_contract_id, value) { return } } - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_QueryTokenClassTypeNameRequest_class_id, value) { + if x.Grantee != "" { + value := protoreflect.ValueOfString(x.Grantee) + if !f(fd_QueryGranteeGrantsRequest_grantee, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryGranteeGrantsRequest_pagination, value) { return } } @@ -8518,17 +8556,19 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) Range(f func(protoreflec // 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_QueryTokenClassTypeNameRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGranteeGrantsRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": - return x.ClassId != "" + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": + return x.Grantee != "" + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) } } @@ -8538,17 +8578,19 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenClassTypeNameRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGranteeGrantsRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": - x.ClassId = "" + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": + x.Grantee = "" + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) } } @@ -8558,19 +8600,22 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) Clear(fd protoreflect.Fi // 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_QueryTokenClassTypeNameRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": - value := x.ClassId + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": + value := x.Grantee return protoreflect.ValueOfString(value) + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", descriptor.FullName())) } } @@ -8584,17 +8629,19 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenClassTypeNameRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGranteeGrantsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": - x.ClassId = value.Interface().(string) + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": + x.Grantee = value.Interface().(string) + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + x.Pagination = value.Message().Interface().(*query.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) } } @@ -8608,44 +8655,52 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenClassTypeNameRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryTokenClassTypeNameRequest is not mutable")) - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": - panic(fmt.Errorf("field class_id of message lbm.collection.v1.QueryTokenClassTypeNameRequest is not mutable")) + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(query.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryGranteeGrantsRequest is not mutable")) + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": + panic(fmt.Errorf("field grantee of message lbm.collection.v1.QueryGranteeGrantsRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTokenClassTypeNameRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.contract_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryTokenClassTypeNameRequest.class_id": + case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameRequest")) + case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": + m := new(query.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTokenClassTypeNameRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGranteeGrantsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenClassTypeNameRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryGranteeGrantsRequest", d.FullName())) } panic("unreachable") } @@ -8653,7 +8708,7 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) WhichOneof(d protoreflec // 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_QueryTokenClassTypeNameRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGranteeGrantsRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8664,7 +8719,7 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenClassTypeNameRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGranteeGrantsRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8676,7 +8731,7 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) SetUnknown(fields protor // 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_QueryTokenClassTypeNameRequest) IsValid() bool { +func (x *fastReflection_QueryGranteeGrantsRequest) IsValid() bool { return x != nil } @@ -8686,9 +8741,9 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) 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_QueryTokenClassTypeNameRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGranteeGrantsRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTokenClassTypeNameRequest) + x := input.Message.Interface().(*QueryGranteeGrantsRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8704,10 +8759,14 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) ProtoMethods() *protoifa if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ClassId) + l = len(x.Grantee) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -8718,7 +8777,7 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenClassTypeNameRequest) + x := input.Message.Interface().(*QueryGranteeGrantsRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8737,10 +8796,24 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) ProtoMethods() *protoifa i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.Grantee) > 0 { + i -= len(x.Grantee) + copy(dAtA[i:], x.Grantee) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Grantee))) i-- dAtA[i] = 0x12 } @@ -8762,7 +8835,7 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenClassTypeNameRequest) + x := input.Message.Interface().(*QueryGranteeGrantsRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8794,10 +8867,10 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenClassTypeNameRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenClassTypeNameRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8834,7 +8907,7 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) ProtoMethods() *protoifa iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClassId", 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 { @@ -8862,7 +8935,43 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) ProtoMethods() *protoifa if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ClassId = string(dAtA[iNdEx:postIndex]) + x.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &query.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -8899,26 +9008,79 @@ func (x *fastReflection_QueryTokenClassTypeNameRequest) ProtoMethods() *protoifa } } +var _ protoreflect.List = (*_QueryGranteeGrantsResponse_1_list)(nil) + +type _QueryGranteeGrantsResponse_1_list struct { + list *[]*Grant +} + +func (x *_QueryGranteeGrantsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryGranteeGrantsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryGranteeGrantsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Grant) + (*x.list)[i] = concreteValue +} + +func (x *_QueryGranteeGrantsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Grant) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryGranteeGrantsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(Grant) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryGranteeGrantsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryGranteeGrantsResponse_1_list) NewElement() protoreflect.Value { + v := new(Grant) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryGranteeGrantsResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryTokenClassTypeNameResponse protoreflect.MessageDescriptor - fd_QueryTokenClassTypeNameResponse_name protoreflect.FieldDescriptor + md_QueryGranteeGrantsResponse protoreflect.MessageDescriptor + fd_QueryGranteeGrantsResponse_grants protoreflect.FieldDescriptor + fd_QueryGranteeGrantsResponse_pagination protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryTokenClassTypeNameResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenClassTypeNameResponse") - fd_QueryTokenClassTypeNameResponse_name = md_QueryTokenClassTypeNameResponse.Fields().ByName("name") + md_QueryGranteeGrantsResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryGranteeGrantsResponse") + fd_QueryGranteeGrantsResponse_grants = md_QueryGranteeGrantsResponse.Fields().ByName("grants") + fd_QueryGranteeGrantsResponse_pagination = md_QueryGranteeGrantsResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryTokenClassTypeNameResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGranteeGrantsResponse)(nil) -type fastReflection_QueryTokenClassTypeNameResponse QueryTokenClassTypeNameResponse +type fastReflection_QueryGranteeGrantsResponse QueryGranteeGrantsResponse -func (x *QueryTokenClassTypeNameResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTokenClassTypeNameResponse)(x) +func (x *QueryGranteeGrantsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGranteeGrantsResponse)(x) } -func (x *QueryTokenClassTypeNameResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryGranteeGrantsResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8930,43 +9092,43 @@ func (x *QueryTokenClassTypeNameResponse) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryTokenClassTypeNameResponse_messageType fastReflection_QueryTokenClassTypeNameResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTokenClassTypeNameResponse_messageType{} +var _fastReflection_QueryGranteeGrantsResponse_messageType fastReflection_QueryGranteeGrantsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGranteeGrantsResponse_messageType{} -type fastReflection_QueryTokenClassTypeNameResponse_messageType struct{} +type fastReflection_QueryGranteeGrantsResponse_messageType struct{} -func (x fastReflection_QueryTokenClassTypeNameResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTokenClassTypeNameResponse)(nil) +func (x fastReflection_QueryGranteeGrantsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGranteeGrantsResponse)(nil) } -func (x fastReflection_QueryTokenClassTypeNameResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTokenClassTypeNameResponse) +func (x fastReflection_QueryGranteeGrantsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGranteeGrantsResponse) } -func (x fastReflection_QueryTokenClassTypeNameResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenClassTypeNameResponse +func (x fastReflection_QueryGranteeGrantsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGranteeGrantsResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTokenClassTypeNameResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenClassTypeNameResponse +func (x *fastReflection_QueryGranteeGrantsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGranteeGrantsResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTokenClassTypeNameResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTokenClassTypeNameResponse_messageType +func (x *fastReflection_QueryGranteeGrantsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGranteeGrantsResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTokenClassTypeNameResponse) New() protoreflect.Message { - return new(fastReflection_QueryTokenClassTypeNameResponse) +func (x *fastReflection_QueryGranteeGrantsResponse) New() protoreflect.Message { + return new(fastReflection_QueryGranteeGrantsResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTokenClassTypeNameResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTokenClassTypeNameResponse)(x) +func (x *fastReflection_QueryGranteeGrantsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGranteeGrantsResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -8974,10 +9136,16 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTokenClassTypeNameResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_QueryTokenClassTypeNameResponse_name, value) { +func (x *fastReflection_QueryGranteeGrantsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Grants) != 0 { + value := protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{list: &x.Grants}) + if !f(fd_QueryGranteeGrantsResponse_grants, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryGranteeGrantsResponse_pagination, value) { return } } @@ -8994,15 +9162,17 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) Range(f func(protorefle // 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_QueryTokenClassTypeNameResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGranteeGrantsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": - return x.Name != "" + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + return len(x.Grants) != 0 + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) } } @@ -9012,15 +9182,17 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenClassTypeNameResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGranteeGrantsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": - x.Name = "" + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + x.Grants = nil + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) } } @@ -9030,16 +9202,22 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) Clear(fd protoreflect.F // 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_QueryTokenClassTypeNameResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": - value := x.Name - return protoreflect.ValueOfString(value) + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + if len(x.Grants) == 0 { + return protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{}) + } + listValue := &_QueryGranteeGrantsResponse_1_list{list: &x.Grants} + return protoreflect.ValueOfList(listValue) + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", descriptor.FullName())) } } @@ -9053,15 +9231,19 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenClassTypeNameResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGranteeGrantsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": - x.Name = value.Interface().(string) + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + lv := value.List() + clv := lv.(*_QueryGranteeGrantsResponse_1_list) + x.Grants = *clv.list + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + x.Pagination = value.Message().Interface().(*query.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) } } @@ -9075,40 +9257,53 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenClassTypeNameResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": - panic(fmt.Errorf("field name of message lbm.collection.v1.QueryTokenClassTypeNameResponse is not mutable")) + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + if x.Grants == nil { + x.Grants = []*Grant{} + } + value := &_QueryGranteeGrantsResponse_1_list{list: &x.Grants} + return protoreflect.ValueOfList(value) + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(query.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTokenClassTypeNameResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGranteeGrantsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenClassTypeNameResponse.name": - return protoreflect.ValueOfString("") + case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": + list := []*Grant{} + return protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{list: &list}) + case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": + m := new(query.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenClassTypeNameResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenClassTypeNameResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTokenClassTypeNameResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGranteeGrantsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenClassTypeNameResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryGranteeGrantsResponse", d.FullName())) } panic("unreachable") } @@ -9116,7 +9311,7 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) WhichOneof(d protorefle // 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_QueryTokenClassTypeNameResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGranteeGrantsResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9127,7 +9322,7 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenClassTypeNameResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGranteeGrantsResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9139,7 +9334,7 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) SetUnknown(fields proto // 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_QueryTokenClassTypeNameResponse) IsValid() bool { +func (x *fastReflection_QueryGranteeGrantsResponse) IsValid() bool { return x != nil } @@ -9149,9 +9344,9 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) 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_QueryTokenClassTypeNameResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGranteeGrantsResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTokenClassTypeNameResponse) + x := input.Message.Interface().(*QueryGranteeGrantsResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9163,8 +9358,14 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) ProtoMethods() *protoif var n int var l int _ = l - l = len(x.Name) - if l > 0 { + if len(x.Grants) > 0 { + for _, e := range x.Grants { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -9177,7 +9378,7 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenClassTypeNameResponse) + x := input.Message.Interface().(*QueryGranteeGrantsResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9196,12 +9397,35 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) ProtoMethods() *protoif i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if len(x.Grants) > 0 { + for iNdEx := len(x.Grants) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Grants[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -9214,7 +9438,7 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenClassTypeNameResponse) + x := input.Message.Interface().(*QueryGranteeGrantsResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9246,17 +9470,17 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenClassTypeNameResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenClassTypeNameResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grants", 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 @@ -9266,23 +9490,61 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) ProtoMethods() *protoif } 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.Name = string(dAtA[iNdEx:postIndex]) + x.Grants = append(x.Grants, &Grant{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Grants[len(x.Grants)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &query.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -9320,27 +9582,29 @@ func (x *fastReflection_QueryTokenClassTypeNameResponse) ProtoMethods() *protoif } var ( - md_QueryTokenTypeRequest protoreflect.MessageDescriptor - fd_QueryTokenTypeRequest_contract_id protoreflect.FieldDescriptor - fd_QueryTokenTypeRequest_token_type protoreflect.FieldDescriptor + md_QueryIsOperatorForRequest protoreflect.MessageDescriptor + fd_QueryIsOperatorForRequest_contract_id protoreflect.FieldDescriptor + fd_QueryIsOperatorForRequest_operator protoreflect.FieldDescriptor + fd_QueryIsOperatorForRequest_holder protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryTokenTypeRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenTypeRequest") - fd_QueryTokenTypeRequest_contract_id = md_QueryTokenTypeRequest.Fields().ByName("contract_id") - fd_QueryTokenTypeRequest_token_type = md_QueryTokenTypeRequest.Fields().ByName("token_type") + md_QueryIsOperatorForRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryIsOperatorForRequest") + fd_QueryIsOperatorForRequest_contract_id = md_QueryIsOperatorForRequest.Fields().ByName("contract_id") + fd_QueryIsOperatorForRequest_operator = md_QueryIsOperatorForRequest.Fields().ByName("operator") + fd_QueryIsOperatorForRequest_holder = md_QueryIsOperatorForRequest.Fields().ByName("holder") } -var _ protoreflect.Message = (*fastReflection_QueryTokenTypeRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsOperatorForRequest)(nil) -type fastReflection_QueryTokenTypeRequest QueryTokenTypeRequest +type fastReflection_QueryIsOperatorForRequest QueryIsOperatorForRequest -func (x *QueryTokenTypeRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTokenTypeRequest)(x) +func (x *QueryIsOperatorForRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsOperatorForRequest)(x) } -func (x *QueryTokenTypeRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryIsOperatorForRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9352,43 +9616,43 @@ func (x *QueryTokenTypeRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTokenTypeRequest_messageType fastReflection_QueryTokenTypeRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTokenTypeRequest_messageType{} +var _fastReflection_QueryIsOperatorForRequest_messageType fastReflection_QueryIsOperatorForRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsOperatorForRequest_messageType{} -type fastReflection_QueryTokenTypeRequest_messageType struct{} +type fastReflection_QueryIsOperatorForRequest_messageType struct{} -func (x fastReflection_QueryTokenTypeRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTokenTypeRequest)(nil) +func (x fastReflection_QueryIsOperatorForRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsOperatorForRequest)(nil) } -func (x fastReflection_QueryTokenTypeRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTokenTypeRequest) +func (x fastReflection_QueryIsOperatorForRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsOperatorForRequest) } -func (x fastReflection_QueryTokenTypeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenTypeRequest +func (x fastReflection_QueryIsOperatorForRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsOperatorForRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTokenTypeRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenTypeRequest +func (x *fastReflection_QueryIsOperatorForRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsOperatorForRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTokenTypeRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTokenTypeRequest_messageType +func (x *fastReflection_QueryIsOperatorForRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryIsOperatorForRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTokenTypeRequest) New() protoreflect.Message { - return new(fastReflection_QueryTokenTypeRequest) +func (x *fastReflection_QueryIsOperatorForRequest) New() protoreflect.Message { + return new(fastReflection_QueryIsOperatorForRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTokenTypeRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTokenTypeRequest)(x) +func (x *fastReflection_QueryIsOperatorForRequest) Interface() protoreflect.ProtoMessage { + return (*QueryIsOperatorForRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -9396,16 +9660,22 @@ func (x *fastReflection_QueryTokenTypeRequest) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTokenTypeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryIsOperatorForRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryTokenTypeRequest_contract_id, value) { + if !f(fd_QueryIsOperatorForRequest_contract_id, value) { return } } - if x.TokenType != "" { - value := protoreflect.ValueOfString(x.TokenType) - if !f(fd_QueryTokenTypeRequest_token_type, value) { + if x.Operator != "" { + value := protoreflect.ValueOfString(x.Operator) + if !f(fd_QueryIsOperatorForRequest_operator, value) { + return + } + } + if x.Holder != "" { + value := protoreflect.ValueOfString(x.Holder) + if !f(fd_QueryIsOperatorForRequest_holder, value) { return } } @@ -9422,17 +9692,19 @@ func (x *fastReflection_QueryTokenTypeRequest) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTokenTypeRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsOperatorForRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryTokenTypeRequest.token_type": - return x.TokenType != "" + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": + return x.Operator != "" + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": + return x.Holder != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) } } @@ -9442,17 +9714,19 @@ func (x *fastReflection_QueryTokenTypeRequest) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenTypeRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsOperatorForRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryTokenTypeRequest.token_type": - x.TokenType = "" + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": + x.Operator = "" + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": + x.Holder = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) } } @@ -9462,19 +9736,22 @@ func (x *fastReflection_QueryTokenTypeRequest) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTokenTypeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryTokenTypeRequest.token_type": - value := x.TokenType + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": + value := x.Operator + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": + value := x.Holder return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", descriptor.FullName())) } } @@ -9488,17 +9765,19 @@ func (x *fastReflection_QueryTokenTypeRequest) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenTypeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsOperatorForRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryTokenTypeRequest.token_type": - x.TokenType = value.Interface().(string) + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": + x.Operator = value.Interface().(string) + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": + x.Holder = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) } } @@ -9512,44 +9791,48 @@ func (x *fastReflection_QueryTokenTypeRequest) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenTypeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryTokenTypeRequest is not mutable")) - case "lbm.collection.v1.QueryTokenTypeRequest.token_type": - panic(fmt.Errorf("field token_type of message lbm.collection.v1.QueryTokenTypeRequest is not mutable")) + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": + panic(fmt.Errorf("field holder of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTokenTypeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenTypeRequest.contract_id": + case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryTokenTypeRequest.token_type": + case "lbm.collection.v1.QueryIsOperatorForRequest.operator": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.QueryIsOperatorForRequest.holder": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTokenTypeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsOperatorForRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenTypeRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryIsOperatorForRequest", d.FullName())) } panic("unreachable") } @@ -9557,7 +9840,7 @@ func (x *fastReflection_QueryTokenTypeRequest) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTokenTypeRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsOperatorForRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9568,7 +9851,7 @@ func (x *fastReflection_QueryTokenTypeRequest) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenTypeRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsOperatorForRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9580,7 +9863,7 @@ func (x *fastReflection_QueryTokenTypeRequest) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTokenTypeRequest) IsValid() bool { +func (x *fastReflection_QueryIsOperatorForRequest) IsValid() bool { return x != nil } @@ -9590,9 +9873,9 @@ func (x *fastReflection_QueryTokenTypeRequest) 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_QueryTokenTypeRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsOperatorForRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTokenTypeRequest) + x := input.Message.Interface().(*QueryIsOperatorForRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9608,7 +9891,11 @@ func (x *fastReflection_QueryTokenTypeRequest) ProtoMethods() *protoiface.Method if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.TokenType) + l = len(x.Operator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Holder) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -9622,7 +9909,7 @@ func (x *fastReflection_QueryTokenTypeRequest) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenTypeRequest) + x := input.Message.Interface().(*QueryIsOperatorForRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9641,10 +9928,17 @@ func (x *fastReflection_QueryTokenTypeRequest) ProtoMethods() *protoiface.Method 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))) + if len(x.Holder) > 0 { + i -= len(x.Holder) + copy(dAtA[i:], x.Holder) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holder))) + i-- + dAtA[i] = 0x1a + } + if len(x.Operator) > 0 { + i -= len(x.Operator) + copy(dAtA[i:], x.Operator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) i-- dAtA[i] = 0x12 } @@ -9666,7 +9960,7 @@ func (x *fastReflection_QueryTokenTypeRequest) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenTypeRequest) + x := input.Message.Interface().(*QueryIsOperatorForRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9698,10 +9992,10 @@ func (x *fastReflection_QueryTokenTypeRequest) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenTypeRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenTypeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9738,7 +10032,7 @@ func (x *fastReflection_QueryTokenTypeRequest) ProtoMethods() *protoiface.Method iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenType", 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 { @@ -9766,7 +10060,39 @@ func (x *fastReflection_QueryTokenTypeRequest) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TokenType = string(dAtA[iNdEx:postIndex]) + x.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Holder = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -9804,25 +10130,25 @@ func (x *fastReflection_QueryTokenTypeRequest) ProtoMethods() *protoiface.Method } var ( - md_QueryTokenTypeResponse protoreflect.MessageDescriptor - fd_QueryTokenTypeResponse_token_type protoreflect.FieldDescriptor + md_QueryIsOperatorForResponse protoreflect.MessageDescriptor + fd_QueryIsOperatorForResponse_authorized protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryTokenTypeResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenTypeResponse") - fd_QueryTokenTypeResponse_token_type = md_QueryTokenTypeResponse.Fields().ByName("token_type") + md_QueryIsOperatorForResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryIsOperatorForResponse") + fd_QueryIsOperatorForResponse_authorized = md_QueryIsOperatorForResponse.Fields().ByName("authorized") } -var _ protoreflect.Message = (*fastReflection_QueryTokenTypeResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsOperatorForResponse)(nil) -type fastReflection_QueryTokenTypeResponse QueryTokenTypeResponse +type fastReflection_QueryIsOperatorForResponse QueryIsOperatorForResponse -func (x *QueryTokenTypeResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTokenTypeResponse)(x) +func (x *QueryIsOperatorForResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsOperatorForResponse)(x) } -func (x *QueryTokenTypeResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryIsOperatorForResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9834,43 +10160,43 @@ func (x *QueryTokenTypeResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTokenTypeResponse_messageType fastReflection_QueryTokenTypeResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTokenTypeResponse_messageType{} +var _fastReflection_QueryIsOperatorForResponse_messageType fastReflection_QueryIsOperatorForResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsOperatorForResponse_messageType{} -type fastReflection_QueryTokenTypeResponse_messageType struct{} +type fastReflection_QueryIsOperatorForResponse_messageType struct{} -func (x fastReflection_QueryTokenTypeResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTokenTypeResponse)(nil) +func (x fastReflection_QueryIsOperatorForResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsOperatorForResponse)(nil) } -func (x fastReflection_QueryTokenTypeResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTokenTypeResponse) +func (x fastReflection_QueryIsOperatorForResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsOperatorForResponse) } -func (x fastReflection_QueryTokenTypeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenTypeResponse +func (x fastReflection_QueryIsOperatorForResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsOperatorForResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTokenTypeResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenTypeResponse +func (x *fastReflection_QueryIsOperatorForResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsOperatorForResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTokenTypeResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTokenTypeResponse_messageType +func (x *fastReflection_QueryIsOperatorForResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryIsOperatorForResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTokenTypeResponse) New() protoreflect.Message { - return new(fastReflection_QueryTokenTypeResponse) +func (x *fastReflection_QueryIsOperatorForResponse) New() protoreflect.Message { + return new(fastReflection_QueryIsOperatorForResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTokenTypeResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTokenTypeResponse)(x) +func (x *fastReflection_QueryIsOperatorForResponse) Interface() protoreflect.ProtoMessage { + return (*QueryIsOperatorForResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -9878,10 +10204,10 @@ func (x *fastReflection_QueryTokenTypeResponse) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTokenTypeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TokenType != nil { - value := protoreflect.ValueOfMessage(x.TokenType.ProtoReflect()) - if !f(fd_QueryTokenTypeResponse_token_type, value) { +func (x *fastReflection_QueryIsOperatorForResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authorized != false { + value := protoreflect.ValueOfBool(x.Authorized) + if !f(fd_QueryIsOperatorForResponse_authorized, value) { return } } @@ -9898,15 +10224,15 @@ func (x *fastReflection_QueryTokenTypeResponse) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTokenTypeResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsOperatorForResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenTypeResponse.token_type": - return x.TokenType != nil + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": + return x.Authorized != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) } } @@ -9916,15 +10242,15 @@ func (x *fastReflection_QueryTokenTypeResponse) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenTypeResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsOperatorForResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenTypeResponse.token_type": - x.TokenType = nil + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": + x.Authorized = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) } } @@ -9934,16 +10260,16 @@ func (x *fastReflection_QueryTokenTypeResponse) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTokenTypeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryTokenTypeResponse.token_type": - value := x.TokenType - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": + value := x.Authorized + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", descriptor.FullName())) } } @@ -9957,15 +10283,15 @@ func (x *fastReflection_QueryTokenTypeResponse) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenTypeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsOperatorForResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenTypeResponse.token_type": - x.TokenType = value.Message().Interface().(*TokenType) + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": + x.Authorized = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) } } @@ -9979,44 +10305,40 @@ func (x *fastReflection_QueryTokenTypeResponse) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenTypeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenTypeResponse.token_type": - if x.TokenType == nil { - x.TokenType = new(TokenType) - } - return protoreflect.ValueOfMessage(x.TokenType.ProtoReflect()) + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": + panic(fmt.Errorf("field authorized of message lbm.collection.v1.QueryIsOperatorForResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTokenTypeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsOperatorForResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenTypeResponse.token_type": - m := new(TokenType) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenTypeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenTypeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTokenTypeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsOperatorForResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenTypeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryIsOperatorForResponse", d.FullName())) } panic("unreachable") } @@ -10024,7 +10346,7 @@ func (x *fastReflection_QueryTokenTypeResponse) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTokenTypeResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsOperatorForResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10035,7 +10357,7 @@ func (x *fastReflection_QueryTokenTypeResponse) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenTypeResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsOperatorForResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10047,7 +10369,7 @@ func (x *fastReflection_QueryTokenTypeResponse) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTokenTypeResponse) IsValid() bool { +func (x *fastReflection_QueryIsOperatorForResponse) IsValid() bool { return x != nil } @@ -10057,9 +10379,9 @@ func (x *fastReflection_QueryTokenTypeResponse) 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_QueryTokenTypeResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsOperatorForResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTokenTypeResponse) + x := input.Message.Interface().(*QueryIsOperatorForResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10071,9 +10393,8 @@ func (x *fastReflection_QueryTokenTypeResponse) ProtoMethods() *protoiface.Metho var n int var l int _ = l - if x.TokenType != nil { - l = options.Size(x.TokenType) - n += 1 + l + runtime.Sov(uint64(l)) + if x.Authorized { + n += 2 } if x.unknownFields != nil { n += len(x.unknownFields) @@ -10085,7 +10406,7 @@ func (x *fastReflection_QueryTokenTypeResponse) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenTypeResponse) + x := input.Message.Interface().(*QueryIsOperatorForResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10104,19 +10425,15 @@ func (x *fastReflection_QueryTokenTypeResponse) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.TokenType != nil { - encoded, err := options.Marshal(x.TokenType) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + if x.Authorized { + i-- + if x.Authorized { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -10129,7 +10446,7 @@ func (x *fastReflection_QueryTokenTypeResponse) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenTypeResponse) + x := input.Message.Interface().(*QueryIsOperatorForResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10161,17 +10478,17 @@ func (x *fastReflection_QueryTokenTypeResponse) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenTypeResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenTypeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authorized", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -10181,28 +10498,12 @@ func (x *fastReflection_QueryTokenTypeResponse) ProtoMethods() *protoiface.Metho } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.TokenType == nil { - x.TokenType = &TokenType{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TokenType); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex + x.Authorized = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -10239,27 +10540,29 @@ func (x *fastReflection_QueryTokenTypeResponse) ProtoMethods() *protoiface.Metho } var ( - md_QueryTokenRequest protoreflect.MessageDescriptor - fd_QueryTokenRequest_contract_id protoreflect.FieldDescriptor - fd_QueryTokenRequest_token_id protoreflect.FieldDescriptor + md_QueryHoldersByOperatorRequest protoreflect.MessageDescriptor + fd_QueryHoldersByOperatorRequest_contract_id protoreflect.FieldDescriptor + fd_QueryHoldersByOperatorRequest_operator protoreflect.FieldDescriptor + fd_QueryHoldersByOperatorRequest_pagination protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryTokenRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenRequest") - fd_QueryTokenRequest_contract_id = md_QueryTokenRequest.Fields().ByName("contract_id") - fd_QueryTokenRequest_token_id = md_QueryTokenRequest.Fields().ByName("token_id") + md_QueryHoldersByOperatorRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHoldersByOperatorRequest") + fd_QueryHoldersByOperatorRequest_contract_id = md_QueryHoldersByOperatorRequest.Fields().ByName("contract_id") + fd_QueryHoldersByOperatorRequest_operator = md_QueryHoldersByOperatorRequest.Fields().ByName("operator") + fd_QueryHoldersByOperatorRequest_pagination = md_QueryHoldersByOperatorRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryTokenRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryHoldersByOperatorRequest)(nil) -type fastReflection_QueryTokenRequest QueryTokenRequest +type fastReflection_QueryHoldersByOperatorRequest QueryHoldersByOperatorRequest -func (x *QueryTokenRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTokenRequest)(x) +func (x *QueryHoldersByOperatorRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryHoldersByOperatorRequest)(x) } -func (x *QueryTokenRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryHoldersByOperatorRequest) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -10271,43 +10574,43 @@ func (x *QueryTokenRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTokenRequest_messageType fastReflection_QueryTokenRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTokenRequest_messageType{} +var _fastReflection_QueryHoldersByOperatorRequest_messageType fastReflection_QueryHoldersByOperatorRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryHoldersByOperatorRequest_messageType{} -type fastReflection_QueryTokenRequest_messageType struct{} +type fastReflection_QueryHoldersByOperatorRequest_messageType struct{} -func (x fastReflection_QueryTokenRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTokenRequest)(nil) +func (x fastReflection_QueryHoldersByOperatorRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryHoldersByOperatorRequest)(nil) } -func (x fastReflection_QueryTokenRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTokenRequest) +func (x fastReflection_QueryHoldersByOperatorRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryHoldersByOperatorRequest) } -func (x fastReflection_QueryTokenRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenRequest +func (x fastReflection_QueryHoldersByOperatorRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryHoldersByOperatorRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTokenRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenRequest +func (x *fastReflection_QueryHoldersByOperatorRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryHoldersByOperatorRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTokenRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTokenRequest_messageType +func (x *fastReflection_QueryHoldersByOperatorRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryHoldersByOperatorRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTokenRequest) New() protoreflect.Message { - return new(fastReflection_QueryTokenRequest) +func (x *fastReflection_QueryHoldersByOperatorRequest) New() protoreflect.Message { + return new(fastReflection_QueryHoldersByOperatorRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTokenRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTokenRequest)(x) +func (x *fastReflection_QueryHoldersByOperatorRequest) Interface() protoreflect.ProtoMessage { + return (*QueryHoldersByOperatorRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -10315,16 +10618,22 @@ func (x *fastReflection_QueryTokenRequest) 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_QueryTokenRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryHoldersByOperatorRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryTokenRequest_contract_id, value) { + if !f(fd_QueryHoldersByOperatorRequest_contract_id, value) { return } } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryTokenRequest_token_id, value) { + if x.Operator != "" { + value := protoreflect.ValueOfString(x.Operator) + if !f(fd_QueryHoldersByOperatorRequest_operator, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryHoldersByOperatorRequest_pagination, value) { return } } @@ -10341,17 +10650,19 @@ func (x *fastReflection_QueryTokenRequest) 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_QueryTokenRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryHoldersByOperatorRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenRequest.contract_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": return x.ContractId != "" - case "lbm.collection.v1.QueryTokenRequest.token_id": - return x.TokenId != "" + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": + return x.Operator != "" + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) } } @@ -10361,17 +10672,19 @@ func (x *fastReflection_QueryTokenRequest) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryHoldersByOperatorRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenRequest.contract_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": x.ContractId = "" - case "lbm.collection.v1.QueryTokenRequest.token_id": - x.TokenId = "" + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": + x.Operator = "" + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) } } @@ -10381,19 +10694,22 @@ func (x *fastReflection_QueryTokenRequest) 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_QueryTokenRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryTokenRequest.contract_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryTokenRequest.token_id": - value := x.TokenId + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": + value := x.Operator return protoreflect.ValueOfString(value) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", descriptor.FullName())) } } @@ -10407,17 +10723,19 @@ func (x *fastReflection_QueryTokenRequest) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryHoldersByOperatorRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenRequest.contract_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryTokenRequest.token_id": - x.TokenId = value.Interface().(string) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": + x.Operator = value.Interface().(string) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + x.Pagination = value.Message().Interface().(*query.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) } } @@ -10431,44 +10749,52 @@ func (x *fastReflection_QueryTokenRequest) 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_QueryTokenRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryTokenRequest is not mutable")) - case "lbm.collection.v1.QueryTokenRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryTokenRequest is not mutable")) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(query.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryHoldersByOperatorRequest is not mutable")) + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.QueryHoldersByOperatorRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTokenRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenRequest.contract_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryTokenRequest.token_id": + case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": return protoreflect.ValueOfString("") + case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": + m := new(query.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTokenRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryHoldersByOperatorRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHoldersByOperatorRequest", d.FullName())) } panic("unreachable") } @@ -10476,7 +10802,7 @@ func (x *fastReflection_QueryTokenRequest) 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_QueryTokenRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryHoldersByOperatorRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10487,7 +10813,7 @@ func (x *fastReflection_QueryTokenRequest) 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_QueryTokenRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryHoldersByOperatorRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10499,7 +10825,7 @@ func (x *fastReflection_QueryTokenRequest) 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_QueryTokenRequest) IsValid() bool { +func (x *fastReflection_QueryHoldersByOperatorRequest) IsValid() bool { return x != nil } @@ -10509,9 +10835,9 @@ func (x *fastReflection_QueryTokenRequest) 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_QueryTokenRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryHoldersByOperatorRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTokenRequest) + x := input.Message.Interface().(*QueryHoldersByOperatorRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10527,10 +10853,14 @@ func (x *fastReflection_QueryTokenRequest) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.TokenId) + l = len(x.Operator) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -10541,7 +10871,7 @@ func (x *fastReflection_QueryTokenRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenRequest) + x := input.Message.Interface().(*QueryHoldersByOperatorRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10560,10 +10890,24 @@ func (x *fastReflection_QueryTokenRequest) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.Operator) > 0 { + i -= len(x.Operator) + copy(dAtA[i:], x.Operator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) i-- dAtA[i] = 0x12 } @@ -10585,7 +10929,7 @@ func (x *fastReflection_QueryTokenRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenRequest) + x := input.Message.Interface().(*QueryHoldersByOperatorRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10617,10 +10961,10 @@ func (x *fastReflection_QueryTokenRequest) 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: QueryTokenRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -10657,7 +11001,7 @@ func (x *fastReflection_QueryTokenRequest) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10685,7 +11029,43 @@ func (x *fastReflection_QueryTokenRequest) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TokenId = string(dAtA[iNdEx:postIndex]) + x.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &query.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -10722,26 +11102,74 @@ func (x *fastReflection_QueryTokenRequest) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_QueryHoldersByOperatorResponse_1_list)(nil) + +type _QueryHoldersByOperatorResponse_1_list struct { + list *[]string +} + +func (x *_QueryHoldersByOperatorResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryHoldersByOperatorResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_QueryHoldersByOperatorResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_QueryHoldersByOperatorResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryHoldersByOperatorResponse_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QueryHoldersByOperatorResponse at list field Holders as it is not of Message kind")) +} + +func (x *_QueryHoldersByOperatorResponse_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_QueryHoldersByOperatorResponse_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_QueryHoldersByOperatorResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryTokenResponse protoreflect.MessageDescriptor - fd_QueryTokenResponse_token protoreflect.FieldDescriptor + md_QueryHoldersByOperatorResponse protoreflect.MessageDescriptor + fd_QueryHoldersByOperatorResponse_holders protoreflect.FieldDescriptor + fd_QueryHoldersByOperatorResponse_pagination protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_query_proto_init() - md_QueryTokenResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryTokenResponse") - fd_QueryTokenResponse_token = md_QueryTokenResponse.Fields().ByName("token") + md_QueryHoldersByOperatorResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHoldersByOperatorResponse") + fd_QueryHoldersByOperatorResponse_holders = md_QueryHoldersByOperatorResponse.Fields().ByName("holders") + fd_QueryHoldersByOperatorResponse_pagination = md_QueryHoldersByOperatorResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryTokenResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryHoldersByOperatorResponse)(nil) -type fastReflection_QueryTokenResponse QueryTokenResponse +type fastReflection_QueryHoldersByOperatorResponse QueryHoldersByOperatorResponse -func (x *QueryTokenResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTokenResponse)(x) +func (x *QueryHoldersByOperatorResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryHoldersByOperatorResponse)(x) } -func (x *QueryTokenResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryHoldersByOperatorResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_query_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -10753,43 +11181,43 @@ func (x *QueryTokenResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTokenResponse_messageType fastReflection_QueryTokenResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTokenResponse_messageType{} +var _fastReflection_QueryHoldersByOperatorResponse_messageType fastReflection_QueryHoldersByOperatorResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryHoldersByOperatorResponse_messageType{} -type fastReflection_QueryTokenResponse_messageType struct{} +type fastReflection_QueryHoldersByOperatorResponse_messageType struct{} -func (x fastReflection_QueryTokenResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTokenResponse)(nil) +func (x fastReflection_QueryHoldersByOperatorResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryHoldersByOperatorResponse)(nil) } -func (x fastReflection_QueryTokenResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTokenResponse) +func (x fastReflection_QueryHoldersByOperatorResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryHoldersByOperatorResponse) } -func (x fastReflection_QueryTokenResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenResponse +func (x fastReflection_QueryHoldersByOperatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryHoldersByOperatorResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTokenResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTokenResponse +func (x *fastReflection_QueryHoldersByOperatorResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryHoldersByOperatorResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTokenResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTokenResponse_messageType +func (x *fastReflection_QueryHoldersByOperatorResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryHoldersByOperatorResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTokenResponse) New() protoreflect.Message { - return new(fastReflection_QueryTokenResponse) +func (x *fastReflection_QueryHoldersByOperatorResponse) New() protoreflect.Message { + return new(fastReflection_QueryHoldersByOperatorResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTokenResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTokenResponse)(x) +func (x *fastReflection_QueryHoldersByOperatorResponse) Interface() protoreflect.ProtoMessage { + return (*QueryHoldersByOperatorResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -10797,10 +11225,16 @@ func (x *fastReflection_QueryTokenResponse) 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_QueryTokenResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Token != nil { - value := protoreflect.ValueOfMessage(x.Token.ProtoReflect()) - if !f(fd_QueryTokenResponse_token, value) { +func (x *fastReflection_QueryHoldersByOperatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Holders) != 0 { + value := protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{list: &x.Holders}) + if !f(fd_QueryHoldersByOperatorResponse_holders, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryHoldersByOperatorResponse_pagination, value) { return } } @@ -10817,15 +11251,17 @@ func (x *fastReflection_QueryTokenResponse) 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_QueryTokenResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryHoldersByOperatorResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenResponse.token": - return x.Token != nil + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + return len(x.Holders) != 0 + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) } } @@ -10835,15 +11271,17 @@ func (x *fastReflection_QueryTokenResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryHoldersByOperatorResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenResponse.token": - x.Token = nil + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + x.Holders = nil + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) } } @@ -10853,16 +11291,22 @@ func (x *fastReflection_QueryTokenResponse) 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_QueryTokenResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.QueryTokenResponse.token": - value := x.Token + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + if len(x.Holders) == 0 { + return protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{}) + } + listValue := &_QueryHoldersByOperatorResponse_1_list{list: &x.Holders} + return protoreflect.ValueOfList(listValue) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", descriptor.FullName())) } } @@ -10876,15 +11320,19 @@ func (x *fastReflection_QueryTokenResponse) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTokenResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryHoldersByOperatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenResponse.token": - x.Token = value.Message().Interface().(*anypb.Any) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + lv := value.List() + clv := lv.(*_QueryHoldersByOperatorResponse_1_list) + x.Holders = *clv.list + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + x.Pagination = value.Message().Interface().(*query.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) } } @@ -10898,44 +11346,53 @@ func (x *fastReflection_QueryTokenResponse) 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_QueryTokenResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenResponse.token": - if x.Token == nil { - x.Token = new(anypb.Any) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + if x.Holders == nil { + x.Holders = []string{} } - return protoreflect.ValueOfMessage(x.Token.ProtoReflect()) + value := &_QueryHoldersByOperatorResponse_1_list{list: &x.Holders} + return protoreflect.ValueOfList(value) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(query.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTokenResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryHoldersByOperatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.QueryTokenResponse.token": - m := new(anypb.Any) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": + list := []string{} + return protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{list: &list}) + case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": + m := new(query.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryTokenResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.QueryTokenResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTokenResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryHoldersByOperatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryTokenResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHoldersByOperatorResponse", d.FullName())) } panic("unreachable") } @@ -10943,7 +11400,7 @@ func (x *fastReflection_QueryTokenResponse) 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_QueryTokenResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryHoldersByOperatorResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10954,7 +11411,7 @@ func (x *fastReflection_QueryTokenResponse) 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_QueryTokenResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryHoldersByOperatorResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10966,7 +11423,7 @@ func (x *fastReflection_QueryTokenResponse) 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_QueryTokenResponse) IsValid() bool { +func (x *fastReflection_QueryHoldersByOperatorResponse) IsValid() bool { return x != nil } @@ -10976,9 +11433,9 @@ func (x *fastReflection_QueryTokenResponse) 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_QueryTokenResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryHoldersByOperatorResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTokenResponse) + x := input.Message.Interface().(*QueryHoldersByOperatorResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10990,8 +11447,14 @@ func (x *fastReflection_QueryTokenResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.Token != nil { - l = options.Size(x.Token) + if len(x.Holders) > 0 { + for _, s := range x.Holders { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -11004,7 +11467,7 @@ func (x *fastReflection_QueryTokenResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenResponse) + x := input.Message.Interface().(*QueryHoldersByOperatorResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11023,8 +11486,8 @@ func (x *fastReflection_QueryTokenResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Token != nil { - encoded, err := options.Marshal(x.Token) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11035,7 +11498,16 @@ func (x *fastReflection_QueryTokenResponse) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if len(x.Holders) > 0 { + for iNdEx := len(x.Holders) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Holders[iNdEx]) + copy(dAtA[i:], x.Holders[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holders[iNdEx]))) + i-- + dAtA[i] = 0xa + } } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -11048,7 +11520,7 @@ func (x *fastReflection_QueryTokenResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTokenResponse) + x := input.Message.Interface().(*QueryHoldersByOperatorResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11080,15 +11552,47 @@ func (x *fastReflection_QueryTokenResponse) 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: QueryTokenResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Holders", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Holders = append(x.Holders, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11115,10 +11619,10 @@ func (x *fastReflection_QueryTokenResponse) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Token == nil { - x.Token = &anypb.Any{} + if x.Pagination == nil { + x.Pagination = &query.PageResponse{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Token); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -11157,7960 +11661,298 @@ func (x *fastReflection_QueryTokenResponse) ProtoMethods() *protoiface.Methods { } } -var ( - md_QueryRootRequest protoreflect.MessageDescriptor - fd_QueryRootRequest_contract_id protoreflect.FieldDescriptor - fd_QueryRootRequest_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryRootRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryRootRequest") - fd_QueryRootRequest_contract_id = md_QueryRootRequest.Fields().ByName("contract_id") - fd_QueryRootRequest_token_id = md_QueryRootRequest.Fields().ByName("token_id") -} +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: lbm/collection/v1/query.proto -var _ protoreflect.Message = (*fastReflection_QueryRootRequest)(nil) +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -type fastReflection_QueryRootRequest QueryRootRequest +// QueryBalanceRequest is the request type for the Query/Balance RPC method. +type QueryBalanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *QueryRootRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRootRequest)(x) + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address is the address to query the balance for. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // token id associated with the token. + TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` } -func (x *QueryRootRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { +func (x *QueryBalanceRequest) Reset() { + *x = QueryBalanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_lbm_collection_v1_query_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms + ms.StoreMessageInfo(mi) } - return mi.MessageOf(x) } -var _fastReflection_QueryRootRequest_messageType fastReflection_QueryRootRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryRootRequest_messageType{} +func (x *QueryBalanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} -type fastReflection_QueryRootRequest_messageType struct{} +func (*QueryBalanceRequest) ProtoMessage() {} -func (x fastReflection_QueryRootRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRootRequest)(nil) +// Deprecated: Use QueryBalanceRequest.ProtoReflect.Descriptor instead. +func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{0} } -func (x fastReflection_QueryRootRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRootRequest) + +func (x *QueryBalanceRequest) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" } -func (x fastReflection_QueryRootRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRootRequest + +func (x *QueryBalanceRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" } -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryRootRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRootRequest +func (x *QueryBalanceRequest) GetTokenId() string { + if x != nil { + return x.TokenId + } + return "" } -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryRootRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryRootRequest_messageType +// QueryBalanceResponse is the response type for the Query/Balance RPC method. +type QueryBalanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // balance is the balance of the token. + Balance *Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` } -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRootRequest) New() protoreflect.Message { - return new(fastReflection_QueryRootRequest) +func (x *QueryBalanceResponse) Reset() { + *x = QueryBalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_lbm_collection_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRootRequest) Interface() protoreflect.ProtoMessage { - return (*QueryRootRequest)(x) +func (x *QueryBalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryRootRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryRootRequest_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryRootRequest_token_id, value) { - return - } - } +func (*QueryBalanceResponse) ProtoMessage() {} + +// Deprecated: Use QueryBalanceResponse.ProtoReflect.Descriptor instead. +func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{1} } -// 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_QueryRootRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryRootRequest.token_id": - return x.TokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest does not contain field %s", fd.FullName())) +func (x *QueryBalanceResponse) GetBalance() *Coin { + if x != nil { + return x.Balance } + return nil } -// 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_QueryRootRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryRootRequest.token_id": - x.TokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest 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_QueryRootRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryRootRequest.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.QueryRootRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest 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_QueryRootRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryRootRequest.token_id": - x.TokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest 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_QueryRootRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryRootRequest is not mutable")) - case "lbm.collection.v1.QueryRootRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryRootRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryRootRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryRootRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryRootRequest.token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryRootRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryRootRequest", 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_QueryRootRequest) 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_QueryRootRequest) 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_QueryRootRequest) 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_QueryRootRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRootRequest) - 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().(*QueryRootRequest) - 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().(*QueryRootRequest) - 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: QueryRootRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRootRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - 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_QueryRootResponse protoreflect.MessageDescriptor - fd_QueryRootResponse_root protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryRootResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryRootResponse") - fd_QueryRootResponse_root = md_QueryRootResponse.Fields().ByName("root") -} - -var _ protoreflect.Message = (*fastReflection_QueryRootResponse)(nil) - -type fastReflection_QueryRootResponse QueryRootResponse - -func (x *QueryRootResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRootResponse)(x) -} - -func (x *QueryRootResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[25] - 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_QueryRootResponse_messageType fastReflection_QueryRootResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryRootResponse_messageType{} - -type fastReflection_QueryRootResponse_messageType struct{} - -func (x fastReflection_QueryRootResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRootResponse)(nil) -} -func (x fastReflection_QueryRootResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRootResponse) -} -func (x fastReflection_QueryRootResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRootResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryRootResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRootResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryRootResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryRootResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRootResponse) New() protoreflect.Message { - return new(fastReflection_QueryRootResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRootResponse) Interface() protoreflect.ProtoMessage { - return (*QueryRootResponse)(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_QueryRootResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Root != nil { - value := protoreflect.ValueOfMessage(x.Root.ProtoReflect()) - if !f(fd_QueryRootResponse_root, value) { - 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_QueryRootResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - return x.Root != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse 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_QueryRootResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - x.Root = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse 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_QueryRootResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - value := x.Root - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse 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_QueryRootResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - x.Root = value.Message().Interface().(*NFT) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse 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_QueryRootResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - if x.Root == nil { - x.Root = new(NFT) - } - return protoreflect.ValueOfMessage(x.Root.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryRootResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryRootResponse.root": - m := new(NFT) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryRootResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryRootResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryRootResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryRootResponse", 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_QueryRootResponse) 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_QueryRootResponse) 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_QueryRootResponse) 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_QueryRootResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRootResponse) - 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.Root != nil { - l = options.Size(x.Root) - 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().(*QueryRootResponse) - 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.Root != nil { - encoded, err := options.Marshal(x.Root) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRootResponse) - 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: QueryRootResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRootResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Root", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Root == nil { - x.Root = &NFT{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Root); 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_QueryHasParentRequest protoreflect.MessageDescriptor - fd_QueryHasParentRequest_contract_id protoreflect.FieldDescriptor - fd_QueryHasParentRequest_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryHasParentRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHasParentRequest") - fd_QueryHasParentRequest_contract_id = md_QueryHasParentRequest.Fields().ByName("contract_id") - fd_QueryHasParentRequest_token_id = md_QueryHasParentRequest.Fields().ByName("token_id") -} - -var _ protoreflect.Message = (*fastReflection_QueryHasParentRequest)(nil) - -type fastReflection_QueryHasParentRequest QueryHasParentRequest - -func (x *QueryHasParentRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryHasParentRequest)(x) -} - -func (x *QueryHasParentRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[26] - 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_QueryHasParentRequest_messageType fastReflection_QueryHasParentRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryHasParentRequest_messageType{} - -type fastReflection_QueryHasParentRequest_messageType struct{} - -func (x fastReflection_QueryHasParentRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryHasParentRequest)(nil) -} -func (x fastReflection_QueryHasParentRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryHasParentRequest) -} -func (x fastReflection_QueryHasParentRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHasParentRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryHasParentRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHasParentRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryHasParentRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryHasParentRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryHasParentRequest) New() protoreflect.Message { - return new(fastReflection_QueryHasParentRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryHasParentRequest) Interface() protoreflect.ProtoMessage { - return (*QueryHasParentRequest)(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_QueryHasParentRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryHasParentRequest_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryHasParentRequest_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_QueryHasParentRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryHasParentRequest.token_id": - return x.TokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest 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_QueryHasParentRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryHasParentRequest.token_id": - x.TokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest 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_QueryHasParentRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryHasParentRequest.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.QueryHasParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest 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_QueryHasParentRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryHasParentRequest.token_id": - x.TokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest 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_QueryHasParentRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryHasParentRequest is not mutable")) - case "lbm.collection.v1.QueryHasParentRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryHasParentRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryHasParentRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryHasParentRequest.token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryHasParentRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHasParentRequest", 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_QueryHasParentRequest) 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_QueryHasParentRequest) 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_QueryHasParentRequest) 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_QueryHasParentRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryHasParentRequest) - 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().(*QueryHasParentRequest) - 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().(*QueryHasParentRequest) - 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: QueryHasParentRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHasParentRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - 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_QueryHasParentResponse protoreflect.MessageDescriptor - fd_QueryHasParentResponse_has_parent protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryHasParentResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHasParentResponse") - fd_QueryHasParentResponse_has_parent = md_QueryHasParentResponse.Fields().ByName("has_parent") -} - -var _ protoreflect.Message = (*fastReflection_QueryHasParentResponse)(nil) - -type fastReflection_QueryHasParentResponse QueryHasParentResponse - -func (x *QueryHasParentResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryHasParentResponse)(x) -} - -func (x *QueryHasParentResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[27] - 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_QueryHasParentResponse_messageType fastReflection_QueryHasParentResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryHasParentResponse_messageType{} - -type fastReflection_QueryHasParentResponse_messageType struct{} - -func (x fastReflection_QueryHasParentResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryHasParentResponse)(nil) -} -func (x fastReflection_QueryHasParentResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryHasParentResponse) -} -func (x fastReflection_QueryHasParentResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHasParentResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryHasParentResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHasParentResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryHasParentResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryHasParentResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryHasParentResponse) New() protoreflect.Message { - return new(fastReflection_QueryHasParentResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryHasParentResponse) Interface() protoreflect.ProtoMessage { - return (*QueryHasParentResponse)(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_QueryHasParentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.HasParent != false { - value := protoreflect.ValueOfBool(x.HasParent) - if !f(fd_QueryHasParentResponse_has_parent, value) { - 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_QueryHasParentResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": - return x.HasParent != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse 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_QueryHasParentResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": - x.HasParent = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse 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_QueryHasParentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": - value := x.HasParent - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse 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_QueryHasParentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": - x.HasParent = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse 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_QueryHasParentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": - panic(fmt.Errorf("field has_parent of message lbm.collection.v1.QueryHasParentResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryHasParentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHasParentResponse.has_parent": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHasParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHasParentResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryHasParentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHasParentResponse", 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_QueryHasParentResponse) 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_QueryHasParentResponse) 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_QueryHasParentResponse) 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_QueryHasParentResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryHasParentResponse) - 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.HasParent { - 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().(*QueryHasParentResponse) - 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.HasParent { - i-- - if x.HasParent { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryHasParentResponse) - 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: QueryHasParentResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHasParentResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HasParent", wireType) - } - 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.HasParent = 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_QueryParentRequest protoreflect.MessageDescriptor - fd_QueryParentRequest_contract_id protoreflect.FieldDescriptor - fd_QueryParentRequest_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryParentRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryParentRequest") - fd_QueryParentRequest_contract_id = md_QueryParentRequest.Fields().ByName("contract_id") - fd_QueryParentRequest_token_id = md_QueryParentRequest.Fields().ByName("token_id") -} - -var _ protoreflect.Message = (*fastReflection_QueryParentRequest)(nil) - -type fastReflection_QueryParentRequest QueryParentRequest - -func (x *QueryParentRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParentRequest)(x) -} - -func (x *QueryParentRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[28] - 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_QueryParentRequest_messageType fastReflection_QueryParentRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryParentRequest_messageType{} - -type fastReflection_QueryParentRequest_messageType struct{} - -func (x fastReflection_QueryParentRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParentRequest)(nil) -} -func (x fastReflection_QueryParentRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParentRequest) -} -func (x fastReflection_QueryParentRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParentRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParentRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParentRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryParentRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryParentRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParentRequest) New() protoreflect.Message { - return new(fastReflection_QueryParentRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParentRequest) Interface() protoreflect.ProtoMessage { - return (*QueryParentRequest)(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_QueryParentRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryParentRequest_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryParentRequest_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_QueryParentRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryParentRequest.token_id": - return x.TokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest 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_QueryParentRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryParentRequest.token_id": - x.TokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest 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_QueryParentRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryParentRequest.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.QueryParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest 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_QueryParentRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryParentRequest.token_id": - x.TokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest 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_QueryParentRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryParentRequest is not mutable")) - case "lbm.collection.v1.QueryParentRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryParentRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryParentRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryParentRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryParentRequest.token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryParentRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryParentRequest", 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_QueryParentRequest) 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_QueryParentRequest) 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_QueryParentRequest) 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_QueryParentRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParentRequest) - 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().(*QueryParentRequest) - 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().(*QueryParentRequest) - 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: QueryParentRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParentRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - 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_QueryParentResponse protoreflect.MessageDescriptor - fd_QueryParentResponse_parent protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryParentResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryParentResponse") - fd_QueryParentResponse_parent = md_QueryParentResponse.Fields().ByName("parent") -} - -var _ protoreflect.Message = (*fastReflection_QueryParentResponse)(nil) - -type fastReflection_QueryParentResponse QueryParentResponse - -func (x *QueryParentResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParentResponse)(x) -} - -func (x *QueryParentResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[29] - 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_QueryParentResponse_messageType fastReflection_QueryParentResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryParentResponse_messageType{} - -type fastReflection_QueryParentResponse_messageType struct{} - -func (x fastReflection_QueryParentResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParentResponse)(nil) -} -func (x fastReflection_QueryParentResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParentResponse) -} -func (x fastReflection_QueryParentResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParentResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParentResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParentResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryParentResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryParentResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParentResponse) New() protoreflect.Message { - return new(fastReflection_QueryParentResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParentResponse) Interface() protoreflect.ProtoMessage { - return (*QueryParentResponse)(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_QueryParentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Parent != nil { - value := protoreflect.ValueOfMessage(x.Parent.ProtoReflect()) - if !f(fd_QueryParentResponse_parent, value) { - 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_QueryParentResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - return x.Parent != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse 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_QueryParentResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - x.Parent = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse 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_QueryParentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - value := x.Parent - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse 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_QueryParentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - x.Parent = value.Message().Interface().(*NFT) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse 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_QueryParentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - if x.Parent == nil { - x.Parent = new(NFT) - } - return protoreflect.ValueOfMessage(x.Parent.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryParentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryParentResponse.parent": - m := new(NFT) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryParentResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryParentResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryParentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryParentResponse", 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_QueryParentResponse) 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_QueryParentResponse) 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_QueryParentResponse) 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_QueryParentResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParentResponse) - 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.Parent != nil { - l = options.Size(x.Parent) - 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().(*QueryParentResponse) - 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.Parent != nil { - encoded, err := options.Marshal(x.Parent) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParentResponse) - 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: QueryParentResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParentResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Parent == nil { - x.Parent = &NFT{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Parent); 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_QueryChildrenRequest protoreflect.MessageDescriptor - fd_QueryChildrenRequest_contract_id protoreflect.FieldDescriptor - fd_QueryChildrenRequest_token_id protoreflect.FieldDescriptor - fd_QueryChildrenRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryChildrenRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryChildrenRequest") - fd_QueryChildrenRequest_contract_id = md_QueryChildrenRequest.Fields().ByName("contract_id") - fd_QueryChildrenRequest_token_id = md_QueryChildrenRequest.Fields().ByName("token_id") - fd_QueryChildrenRequest_pagination = md_QueryChildrenRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryChildrenRequest)(nil) - -type fastReflection_QueryChildrenRequest QueryChildrenRequest - -func (x *QueryChildrenRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryChildrenRequest)(x) -} - -func (x *QueryChildrenRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[30] - 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_QueryChildrenRequest_messageType fastReflection_QueryChildrenRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryChildrenRequest_messageType{} - -type fastReflection_QueryChildrenRequest_messageType struct{} - -func (x fastReflection_QueryChildrenRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryChildrenRequest)(nil) -} -func (x fastReflection_QueryChildrenRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryChildrenRequest) -} -func (x fastReflection_QueryChildrenRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChildrenRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryChildrenRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChildrenRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryChildrenRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryChildrenRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryChildrenRequest) New() protoreflect.Message { - return new(fastReflection_QueryChildrenRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryChildrenRequest) Interface() protoreflect.ProtoMessage { - return (*QueryChildrenRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryChildrenRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryChildrenRequest_contract_id, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_QueryChildrenRequest_token_id, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryChildrenRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryChildrenRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryChildrenRequest.token_id": - return x.TokenId != "" - case "lbm.collection.v1.QueryChildrenRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChildrenRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryChildrenRequest.token_id": - x.TokenId = "" - case "lbm.collection.v1.QueryChildrenRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryChildrenRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryChildrenRequest.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryChildrenRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChildrenRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryChildrenRequest.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.QueryChildrenRequest.pagination": - x.Pagination = value.Message().Interface().(*query.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChildrenRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryChildrenRequest is not mutable")) - case "lbm.collection.v1.QueryChildrenRequest.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.QueryChildrenRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryChildrenRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryChildrenRequest.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryChildrenRequest.pagination": - m := new(query.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryChildrenRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryChildrenRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryChildrenRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChildrenRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryChildrenRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryChildrenRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryChildrenRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryChildrenRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryChildrenRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryChildrenRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryChildrenRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryChildrenResponse_1_list)(nil) - -type _QueryChildrenResponse_1_list struct { - list *[]*NFT -} - -func (x *_QueryChildrenResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryChildrenResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryChildrenResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NFT) - (*x.list)[i] = concreteValue -} - -func (x *_QueryChildrenResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*NFT) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryChildrenResponse_1_list) AppendMutable() protoreflect.Value { - v := new(NFT) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryChildrenResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryChildrenResponse_1_list) NewElement() protoreflect.Value { - v := new(NFT) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryChildrenResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryChildrenResponse protoreflect.MessageDescriptor - fd_QueryChildrenResponse_children protoreflect.FieldDescriptor - fd_QueryChildrenResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryChildrenResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryChildrenResponse") - fd_QueryChildrenResponse_children = md_QueryChildrenResponse.Fields().ByName("children") - fd_QueryChildrenResponse_pagination = md_QueryChildrenResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryChildrenResponse)(nil) - -type fastReflection_QueryChildrenResponse QueryChildrenResponse - -func (x *QueryChildrenResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryChildrenResponse)(x) -} - -func (x *QueryChildrenResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryChildrenResponse_messageType fastReflection_QueryChildrenResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryChildrenResponse_messageType{} - -type fastReflection_QueryChildrenResponse_messageType struct{} - -func (x fastReflection_QueryChildrenResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryChildrenResponse)(nil) -} -func (x fastReflection_QueryChildrenResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryChildrenResponse) -} -func (x fastReflection_QueryChildrenResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChildrenResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryChildrenResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChildrenResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryChildrenResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryChildrenResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryChildrenResponse) New() protoreflect.Message { - return new(fastReflection_QueryChildrenResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryChildrenResponse) Interface() protoreflect.ProtoMessage { - return (*QueryChildrenResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryChildrenResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Children) != 0 { - value := protoreflect.ValueOfList(&_QueryChildrenResponse_1_list{list: &x.Children}) - if !f(fd_QueryChildrenResponse_children, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryChildrenResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryChildrenResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - return len(x.Children) != 0 - case "lbm.collection.v1.QueryChildrenResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChildrenResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - x.Children = nil - case "lbm.collection.v1.QueryChildrenResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryChildrenResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - if len(x.Children) == 0 { - return protoreflect.ValueOfList(&_QueryChildrenResponse_1_list{}) - } - listValue := &_QueryChildrenResponse_1_list{list: &x.Children} - return protoreflect.ValueOfList(listValue) - case "lbm.collection.v1.QueryChildrenResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChildrenResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - lv := value.List() - clv := lv.(*_QueryChildrenResponse_1_list) - x.Children = *clv.list - case "lbm.collection.v1.QueryChildrenResponse.pagination": - x.Pagination = value.Message().Interface().(*query.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChildrenResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - if x.Children == nil { - x.Children = []*NFT{} - } - value := &_QueryChildrenResponse_1_list{list: &x.Children} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.QueryChildrenResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryChildrenResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryChildrenResponse.children": - list := []*NFT{} - return protoreflect.ValueOfList(&_QueryChildrenResponse_1_list{list: &list}) - case "lbm.collection.v1.QueryChildrenResponse.pagination": - m := new(query.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryChildrenResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryChildrenResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryChildrenResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryChildrenResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryChildrenResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChildrenResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryChildrenResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryChildrenResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryChildrenResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Children) > 0 { - for _, e := range x.Children { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryChildrenResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Children) > 0 { - for iNdEx := len(x.Children) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Children[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryChildrenResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryChildrenResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryChildrenResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Children = append(x.Children, &NFT{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Children[len(x.Children)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGranteeGrantsRequest protoreflect.MessageDescriptor - fd_QueryGranteeGrantsRequest_contract_id protoreflect.FieldDescriptor - fd_QueryGranteeGrantsRequest_grantee protoreflect.FieldDescriptor - fd_QueryGranteeGrantsRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryGranteeGrantsRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryGranteeGrantsRequest") - fd_QueryGranteeGrantsRequest_contract_id = md_QueryGranteeGrantsRequest.Fields().ByName("contract_id") - fd_QueryGranteeGrantsRequest_grantee = md_QueryGranteeGrantsRequest.Fields().ByName("grantee") - fd_QueryGranteeGrantsRequest_pagination = md_QueryGranteeGrantsRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGranteeGrantsRequest)(nil) - -type fastReflection_QueryGranteeGrantsRequest QueryGranteeGrantsRequest - -func (x *QueryGranteeGrantsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGranteeGrantsRequest)(x) -} - -func (x *QueryGranteeGrantsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGranteeGrantsRequest_messageType fastReflection_QueryGranteeGrantsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGranteeGrantsRequest_messageType{} - -type fastReflection_QueryGranteeGrantsRequest_messageType struct{} - -func (x fastReflection_QueryGranteeGrantsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGranteeGrantsRequest)(nil) -} -func (x fastReflection_QueryGranteeGrantsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGranteeGrantsRequest) -} -func (x fastReflection_QueryGranteeGrantsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGranteeGrantsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGranteeGrantsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGranteeGrantsRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGranteeGrantsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGranteeGrantsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGranteeGrantsRequest) New() protoreflect.Message { - return new(fastReflection_QueryGranteeGrantsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGranteeGrantsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGranteeGrantsRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGranteeGrantsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryGranteeGrantsRequest_contract_id, value) { - return - } - } - if x.Grantee != "" { - value := protoreflect.ValueOfString(x.Grantee) - if !f(fd_QueryGranteeGrantsRequest_grantee, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGranteeGrantsRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGranteeGrantsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - return x.Grantee != "" - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGranteeGrantsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - x.Grantee = "" - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGranteeGrantsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - value := x.Grantee - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGranteeGrantsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - x.Grantee = value.Interface().(string) - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - x.Pagination = value.Message().Interface().(*query.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGranteeGrantsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryGranteeGrantsRequest is not mutable")) - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - panic(fmt.Errorf("field grantee of message lbm.collection.v1.QueryGranteeGrantsRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGranteeGrantsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryGranteeGrantsRequest.grantee": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryGranteeGrantsRequest.pagination": - m := new(query.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGranteeGrantsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryGranteeGrantsRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGranteeGrantsRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGranteeGrantsRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGranteeGrantsRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGranteeGrantsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGranteeGrantsRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Grantee) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGranteeGrantsRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if len(x.Grantee) > 0 { - i -= len(x.Grantee) - copy(dAtA[i:], x.Grantee) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Grantee))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGranteeGrantsRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Grantee = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryGranteeGrantsResponse_1_list)(nil) - -type _QueryGranteeGrantsResponse_1_list struct { - list *[]*Grant -} - -func (x *_QueryGranteeGrantsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryGranteeGrantsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryGranteeGrantsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Grant) - (*x.list)[i] = concreteValue -} - -func (x *_QueryGranteeGrantsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Grant) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryGranteeGrantsResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Grant) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGranteeGrantsResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryGranteeGrantsResponse_1_list) NewElement() protoreflect.Value { - v := new(Grant) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGranteeGrantsResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryGranteeGrantsResponse protoreflect.MessageDescriptor - fd_QueryGranteeGrantsResponse_grants protoreflect.FieldDescriptor - fd_QueryGranteeGrantsResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryGranteeGrantsResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryGranteeGrantsResponse") - fd_QueryGranteeGrantsResponse_grants = md_QueryGranteeGrantsResponse.Fields().ByName("grants") - fd_QueryGranteeGrantsResponse_pagination = md_QueryGranteeGrantsResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryGranteeGrantsResponse)(nil) - -type fastReflection_QueryGranteeGrantsResponse QueryGranteeGrantsResponse - -func (x *QueryGranteeGrantsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGranteeGrantsResponse)(x) -} - -func (x *QueryGranteeGrantsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGranteeGrantsResponse_messageType fastReflection_QueryGranteeGrantsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGranteeGrantsResponse_messageType{} - -type fastReflection_QueryGranteeGrantsResponse_messageType struct{} - -func (x fastReflection_QueryGranteeGrantsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGranteeGrantsResponse)(nil) -} -func (x fastReflection_QueryGranteeGrantsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGranteeGrantsResponse) -} -func (x fastReflection_QueryGranteeGrantsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGranteeGrantsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGranteeGrantsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGranteeGrantsResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGranteeGrantsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGranteeGrantsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGranteeGrantsResponse) New() protoreflect.Message { - return new(fastReflection_QueryGranteeGrantsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGranteeGrantsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGranteeGrantsResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGranteeGrantsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Grants) != 0 { - value := protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{list: &x.Grants}) - if !f(fd_QueryGranteeGrantsResponse_grants, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGranteeGrantsResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGranteeGrantsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - return len(x.Grants) != 0 - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGranteeGrantsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - x.Grants = nil - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGranteeGrantsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - if len(x.Grants) == 0 { - return protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{}) - } - listValue := &_QueryGranteeGrantsResponse_1_list{list: &x.Grants} - return protoreflect.ValueOfList(listValue) - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGranteeGrantsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - lv := value.List() - clv := lv.(*_QueryGranteeGrantsResponse_1_list) - x.Grants = *clv.list - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - x.Pagination = value.Message().Interface().(*query.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGranteeGrantsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - if x.Grants == nil { - x.Grants = []*Grant{} - } - value := &_QueryGranteeGrantsResponse_1_list{list: &x.Grants} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGranteeGrantsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryGranteeGrantsResponse.grants": - list := []*Grant{} - return protoreflect.ValueOfList(&_QueryGranteeGrantsResponse_1_list{list: &list}) - case "lbm.collection.v1.QueryGranteeGrantsResponse.pagination": - m := new(query.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryGranteeGrantsResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryGranteeGrantsResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGranteeGrantsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryGranteeGrantsResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGranteeGrantsResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGranteeGrantsResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGranteeGrantsResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGranteeGrantsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGranteeGrantsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Grants) > 0 { - for _, e := range x.Grants { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGranteeGrantsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Grants) > 0 { - for iNdEx := len(x.Grants) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Grants[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGranteeGrantsResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGranteeGrantsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Grants = append(x.Grants, &Grant{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Grants[len(x.Grants)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryIsOperatorForRequest protoreflect.MessageDescriptor - fd_QueryIsOperatorForRequest_contract_id protoreflect.FieldDescriptor - fd_QueryIsOperatorForRequest_operator protoreflect.FieldDescriptor - fd_QueryIsOperatorForRequest_holder protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryIsOperatorForRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryIsOperatorForRequest") - fd_QueryIsOperatorForRequest_contract_id = md_QueryIsOperatorForRequest.Fields().ByName("contract_id") - fd_QueryIsOperatorForRequest_operator = md_QueryIsOperatorForRequest.Fields().ByName("operator") - fd_QueryIsOperatorForRequest_holder = md_QueryIsOperatorForRequest.Fields().ByName("holder") -} - -var _ protoreflect.Message = (*fastReflection_QueryIsOperatorForRequest)(nil) - -type fastReflection_QueryIsOperatorForRequest QueryIsOperatorForRequest - -func (x *QueryIsOperatorForRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsOperatorForRequest)(x) -} - -func (x *QueryIsOperatorForRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryIsOperatorForRequest_messageType fastReflection_QueryIsOperatorForRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsOperatorForRequest_messageType{} - -type fastReflection_QueryIsOperatorForRequest_messageType struct{} - -func (x fastReflection_QueryIsOperatorForRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsOperatorForRequest)(nil) -} -func (x fastReflection_QueryIsOperatorForRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsOperatorForRequest) -} -func (x fastReflection_QueryIsOperatorForRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsOperatorForRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryIsOperatorForRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsOperatorForRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsOperatorForRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryIsOperatorForRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsOperatorForRequest) New() protoreflect.Message { - return new(fastReflection_QueryIsOperatorForRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsOperatorForRequest) Interface() protoreflect.ProtoMessage { - return (*QueryIsOperatorForRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryIsOperatorForRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryIsOperatorForRequest_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_QueryIsOperatorForRequest_operator, value) { - return - } - } - if x.Holder != "" { - value := protoreflect.ValueOfString(x.Holder) - if !f(fd_QueryIsOperatorForRequest_holder, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsOperatorForRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - return x.Operator != "" - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - return x.Holder != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsOperatorForRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - x.Operator = "" - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - x.Holder = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsOperatorForRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - value := x.Holder - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsOperatorForRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - x.Holder = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsOperatorForRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - panic(fmt.Errorf("field holder of message lbm.collection.v1.QueryIsOperatorForRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsOperatorForRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryIsOperatorForRequest.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryIsOperatorForRequest.holder": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsOperatorForRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryIsOperatorForRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsOperatorForRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsOperatorForRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsOperatorForRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsOperatorForRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsOperatorForRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Holder) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsOperatorForRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Holder) > 0 { - i -= len(x.Holder) - copy(dAtA[i:], x.Holder) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holder))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsOperatorForRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Holder = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryIsOperatorForResponse protoreflect.MessageDescriptor - fd_QueryIsOperatorForResponse_authorized protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryIsOperatorForResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryIsOperatorForResponse") - fd_QueryIsOperatorForResponse_authorized = md_QueryIsOperatorForResponse.Fields().ByName("authorized") -} - -var _ protoreflect.Message = (*fastReflection_QueryIsOperatorForResponse)(nil) - -type fastReflection_QueryIsOperatorForResponse QueryIsOperatorForResponse - -func (x *QueryIsOperatorForResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsOperatorForResponse)(x) -} - -func (x *QueryIsOperatorForResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryIsOperatorForResponse_messageType fastReflection_QueryIsOperatorForResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsOperatorForResponse_messageType{} - -type fastReflection_QueryIsOperatorForResponse_messageType struct{} - -func (x fastReflection_QueryIsOperatorForResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsOperatorForResponse)(nil) -} -func (x fastReflection_QueryIsOperatorForResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsOperatorForResponse) -} -func (x fastReflection_QueryIsOperatorForResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsOperatorForResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryIsOperatorForResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsOperatorForResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsOperatorForResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryIsOperatorForResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsOperatorForResponse) New() protoreflect.Message { - return new(fastReflection_QueryIsOperatorForResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsOperatorForResponse) Interface() protoreflect.ProtoMessage { - return (*QueryIsOperatorForResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryIsOperatorForResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authorized != false { - value := protoreflect.ValueOfBool(x.Authorized) - if !f(fd_QueryIsOperatorForResponse_authorized, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsOperatorForResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - return x.Authorized != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsOperatorForResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - x.Authorized = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsOperatorForResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - value := x.Authorized - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsOperatorForResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - x.Authorized = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsOperatorForResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - panic(fmt.Errorf("field authorized of message lbm.collection.v1.QueryIsOperatorForResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsOperatorForResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryIsOperatorForResponse.authorized": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryIsOperatorForResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryIsOperatorForResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsOperatorForResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryIsOperatorForResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsOperatorForResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsOperatorForResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsOperatorForResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsOperatorForResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsOperatorForResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Authorized { - n += 2 - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsOperatorForResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Authorized { - i-- - if x.Authorized { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsOperatorForResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsOperatorForResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authorized", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Authorized = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryHoldersByOperatorRequest protoreflect.MessageDescriptor - fd_QueryHoldersByOperatorRequest_contract_id protoreflect.FieldDescriptor - fd_QueryHoldersByOperatorRequest_operator protoreflect.FieldDescriptor - fd_QueryHoldersByOperatorRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryHoldersByOperatorRequest = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHoldersByOperatorRequest") - fd_QueryHoldersByOperatorRequest_contract_id = md_QueryHoldersByOperatorRequest.Fields().ByName("contract_id") - fd_QueryHoldersByOperatorRequest_operator = md_QueryHoldersByOperatorRequest.Fields().ByName("operator") - fd_QueryHoldersByOperatorRequest_pagination = md_QueryHoldersByOperatorRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryHoldersByOperatorRequest)(nil) - -type fastReflection_QueryHoldersByOperatorRequest QueryHoldersByOperatorRequest - -func (x *QueryHoldersByOperatorRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryHoldersByOperatorRequest)(x) -} - -func (x *QueryHoldersByOperatorRequest) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryHoldersByOperatorRequest_messageType fastReflection_QueryHoldersByOperatorRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryHoldersByOperatorRequest_messageType{} - -type fastReflection_QueryHoldersByOperatorRequest_messageType struct{} - -func (x fastReflection_QueryHoldersByOperatorRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryHoldersByOperatorRequest)(nil) -} -func (x fastReflection_QueryHoldersByOperatorRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryHoldersByOperatorRequest) -} -func (x fastReflection_QueryHoldersByOperatorRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHoldersByOperatorRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryHoldersByOperatorRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHoldersByOperatorRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryHoldersByOperatorRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryHoldersByOperatorRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryHoldersByOperatorRequest) New() protoreflect.Message { - return new(fastReflection_QueryHoldersByOperatorRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryHoldersByOperatorRequest) Interface() protoreflect.ProtoMessage { - return (*QueryHoldersByOperatorRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryHoldersByOperatorRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_QueryHoldersByOperatorRequest_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_QueryHoldersByOperatorRequest_operator, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryHoldersByOperatorRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryHoldersByOperatorRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - return x.Operator != "" - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHoldersByOperatorRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - x.ContractId = "" - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - x.Operator = "" - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryHoldersByOperatorRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHoldersByOperatorRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - x.Pagination = value.Message().Interface().(*query.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHoldersByOperatorRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.QueryHoldersByOperatorRequest is not mutable")) - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.QueryHoldersByOperatorRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryHoldersByOperatorRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorRequest.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryHoldersByOperatorRequest.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.QueryHoldersByOperatorRequest.pagination": - m := new(query.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorRequest")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryHoldersByOperatorRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHoldersByOperatorRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryHoldersByOperatorRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHoldersByOperatorRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryHoldersByOperatorRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryHoldersByOperatorRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryHoldersByOperatorRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryHoldersByOperatorRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryHoldersByOperatorRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryHoldersByOperatorResponse_1_list)(nil) - -type _QueryHoldersByOperatorResponse_1_list struct { - list *[]string -} - -func (x *_QueryHoldersByOperatorResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryHoldersByOperatorResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_QueryHoldersByOperatorResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryHoldersByOperatorResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryHoldersByOperatorResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryHoldersByOperatorResponse at list field Holders as it is not of Message kind")) -} - -func (x *_QueryHoldersByOperatorResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryHoldersByOperatorResponse_1_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_QueryHoldersByOperatorResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryHoldersByOperatorResponse protoreflect.MessageDescriptor - fd_QueryHoldersByOperatorResponse_holders protoreflect.FieldDescriptor - fd_QueryHoldersByOperatorResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_query_proto_init() - md_QueryHoldersByOperatorResponse = File_lbm_collection_v1_query_proto.Messages().ByName("QueryHoldersByOperatorResponse") - fd_QueryHoldersByOperatorResponse_holders = md_QueryHoldersByOperatorResponse.Fields().ByName("holders") - fd_QueryHoldersByOperatorResponse_pagination = md_QueryHoldersByOperatorResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryHoldersByOperatorResponse)(nil) - -type fastReflection_QueryHoldersByOperatorResponse QueryHoldersByOperatorResponse - -func (x *QueryHoldersByOperatorResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryHoldersByOperatorResponse)(x) -} - -func (x *QueryHoldersByOperatorResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_query_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryHoldersByOperatorResponse_messageType fastReflection_QueryHoldersByOperatorResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryHoldersByOperatorResponse_messageType{} - -type fastReflection_QueryHoldersByOperatorResponse_messageType struct{} - -func (x fastReflection_QueryHoldersByOperatorResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryHoldersByOperatorResponse)(nil) -} -func (x fastReflection_QueryHoldersByOperatorResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryHoldersByOperatorResponse) -} -func (x fastReflection_QueryHoldersByOperatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHoldersByOperatorResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryHoldersByOperatorResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryHoldersByOperatorResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryHoldersByOperatorResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryHoldersByOperatorResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryHoldersByOperatorResponse) New() protoreflect.Message { - return new(fastReflection_QueryHoldersByOperatorResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryHoldersByOperatorResponse) Interface() protoreflect.ProtoMessage { - return (*QueryHoldersByOperatorResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryHoldersByOperatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Holders) != 0 { - value := protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{list: &x.Holders}) - if !f(fd_QueryHoldersByOperatorResponse_holders, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryHoldersByOperatorResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryHoldersByOperatorResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - return len(x.Holders) != 0 - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHoldersByOperatorResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - x.Holders = nil - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryHoldersByOperatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - if len(x.Holders) == 0 { - return protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{}) - } - listValue := &_QueryHoldersByOperatorResponse_1_list{list: &x.Holders} - return protoreflect.ValueOfList(listValue) - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHoldersByOperatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - lv := value.List() - clv := lv.(*_QueryHoldersByOperatorResponse_1_list) - x.Holders = *clv.list - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - x.Pagination = value.Message().Interface().(*query.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHoldersByOperatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - if x.Holders == nil { - x.Holders = []string{} - } - value := &_QueryHoldersByOperatorResponse_1_list{list: &x.Holders} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(query.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryHoldersByOperatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.QueryHoldersByOperatorResponse.holders": - list := []string{} - return protoreflect.ValueOfList(&_QueryHoldersByOperatorResponse_1_list{list: &list}) - case "lbm.collection.v1.QueryHoldersByOperatorResponse.pagination": - m := new(query.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.QueryHoldersByOperatorResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.QueryHoldersByOperatorResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryHoldersByOperatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.QueryHoldersByOperatorResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryHoldersByOperatorResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryHoldersByOperatorResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryHoldersByOperatorResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryHoldersByOperatorResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryHoldersByOperatorResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Holders) > 0 { - for _, s := range x.Holders { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryHoldersByOperatorResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Holders) > 0 { - for iNdEx := len(x.Holders) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Holders[iNdEx]) - copy(dAtA[i:], x.Holders[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Holders[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryHoldersByOperatorResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryHoldersByOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Holders", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Holders = append(x.Holders, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &query.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: lbm/collection/v1/query.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// QueryBalanceRequest is the request type for the Query/Balance RPC method. -type QueryBalanceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address is the address to query the balance for. - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - // token id associated with the token. - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (x *QueryBalanceRequest) Reset() { - *x = QueryBalanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryBalanceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryBalanceRequest) ProtoMessage() {} - -// Deprecated: Use QueryBalanceRequest.ProtoReflect.Descriptor instead. -func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{0} -} - -func (x *QueryBalanceRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryBalanceRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *QueryBalanceRequest) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -// QueryBalanceResponse is the response type for the Query/Balance RPC method. -type QueryBalanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // balance is the balance of the token. - Balance *Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` -} - -func (x *QueryBalanceResponse) Reset() { - *x = QueryBalanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryBalanceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryBalanceResponse) ProtoMessage() {} - -// Deprecated: Use QueryBalanceResponse.ProtoReflect.Descriptor instead. -func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{1} -} - -func (x *QueryBalanceResponse) GetBalance() *Coin { - if x != nil { - return x.Balance - } - return nil -} - -// QueryAllBalancesRequest is the request type for the Query/AllBalances RPC method. -type QueryAllBalancesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address is the address to query the balances for. - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryAllBalancesRequest) Reset() { - *x = QueryAllBalancesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAllBalancesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAllBalancesRequest) ProtoMessage() {} - -// Deprecated: Use QueryAllBalancesRequest.ProtoReflect.Descriptor instead. -func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{2} -} - -func (x *QueryAllBalancesRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryAllBalancesRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *QueryAllBalancesRequest) GetPagination() *query.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method. -type QueryAllBalancesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // balances is the balalces of all the tokens. - Balances []*Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` - // pagination defines the pagination in the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryAllBalancesResponse) Reset() { - *x = QueryAllBalancesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAllBalancesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAllBalancesResponse) ProtoMessage() {} - -// Deprecated: Use QueryAllBalancesResponse.ProtoReflect.Descriptor instead. -func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{3} -} - -func (x *QueryAllBalancesResponse) GetBalances() []*Coin { - if x != nil { - return x.Balances - } - return nil -} - -func (x *QueryAllBalancesResponse) GetPagination() *query.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryFTSupplyRequest is the request type for the Query/FTSupply RPC method. -type QueryFTSupplyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (x *QueryFTSupplyRequest) Reset() { - *x = QueryFTSupplyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTSupplyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFTSupplyRequest) ProtoMessage() {} - -// Deprecated: Use QueryFTSupplyRequest.ProtoReflect.Descriptor instead. -func (*QueryFTSupplyRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{4} -} - -func (x *QueryFTSupplyRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryFTSupplyRequest) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -// QueryFTSupplyResponse is the response type for the Query/FTSupply RPC method. -type QueryFTSupplyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // supply is the supply of the tokens. - Supply string `protobuf:"bytes,1,opt,name=supply,proto3" json:"supply,omitempty"` -} - -func (x *QueryFTSupplyResponse) Reset() { - *x = QueryFTSupplyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTSupplyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFTSupplyResponse) ProtoMessage() {} - -// Deprecated: Use QueryFTSupplyResponse.ProtoReflect.Descriptor instead. -func (*QueryFTSupplyResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{5} -} - -func (x *QueryFTSupplyResponse) GetSupply() string { - if x != nil { - return x.Supply - } - return "" -} - -// QueryFTMintedRequest is the request type for the Query/FTMinted RPC method. -type QueryFTMintedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (x *QueryFTMintedRequest) Reset() { - *x = QueryFTMintedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTMintedRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFTMintedRequest) ProtoMessage() {} - -// Deprecated: Use QueryFTMintedRequest.ProtoReflect.Descriptor instead. -func (*QueryFTMintedRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{6} -} - -func (x *QueryFTMintedRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryFTMintedRequest) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -// QueryFTMintedResponse is the response type for the Query/FTMinted RPC method. -type QueryFTMintedResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // minted is the amount of the minted tokens. - Minted string `protobuf:"bytes,1,opt,name=minted,proto3" json:"minted,omitempty"` -} - -func (x *QueryFTMintedResponse) Reset() { - *x = QueryFTMintedResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTMintedResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFTMintedResponse) ProtoMessage() {} - -// Deprecated: Use QueryFTMintedResponse.ProtoReflect.Descriptor instead. -func (*QueryFTMintedResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{7} -} - -func (x *QueryFTMintedResponse) GetMinted() string { - if x != nil { - return x.Minted - } - return "" -} - -// QueryFTBurntRequest is the request type for the Query/FTBurnt RPC method. -type QueryFTBurntRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (x *QueryFTBurntRequest) Reset() { - *x = QueryFTBurntRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTBurntRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFTBurntRequest) ProtoMessage() {} - -// Deprecated: Use QueryFTBurntRequest.ProtoReflect.Descriptor instead. -func (*QueryFTBurntRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{8} -} - -func (x *QueryFTBurntRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryFTBurntRequest) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -// QueryFTBurntResponse is the response type for the Query/FTBurnt RPC method. -type QueryFTBurntResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // burnt is the amount of the burnt tokens. - Burnt string `protobuf:"bytes,1,opt,name=burnt,proto3" json:"burnt,omitempty"` -} - -func (x *QueryFTBurntResponse) Reset() { - *x = QueryFTBurntResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFTBurntResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFTBurntResponse) ProtoMessage() {} - -// Deprecated: Use QueryFTBurntResponse.ProtoReflect.Descriptor instead. -func (*QueryFTBurntResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{9} -} - -func (x *QueryFTBurntResponse) GetBurnt() string { - if x != nil { - return x.Burnt - } - return "" -} - -// QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. -type QueryNFTSupplyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token type associated with the token type. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` -} - -func (x *QueryNFTSupplyRequest) Reset() { - *x = QueryNFTSupplyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryNFTSupplyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryNFTSupplyRequest) ProtoMessage() {} - -// Deprecated: Use QueryNFTSupplyRequest.ProtoReflect.Descriptor instead. -func (*QueryNFTSupplyRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{10} -} - -func (x *QueryNFTSupplyRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryNFTSupplyRequest) GetTokenType() string { - if x != nil { - return x.TokenType - } - return "" -} - -// QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method. -type QueryNFTSupplyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // supply is the supply of the non-fungible token. - Supply string `protobuf:"bytes,1,opt,name=supply,proto3" json:"supply,omitempty"` -} - -func (x *QueryNFTSupplyResponse) Reset() { - *x = QueryNFTSupplyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryNFTSupplyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryNFTSupplyResponse) ProtoMessage() {} - -// Deprecated: Use QueryNFTSupplyResponse.ProtoReflect.Descriptor instead. -func (*QueryNFTSupplyResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{11} -} - -func (x *QueryNFTSupplyResponse) GetSupply() string { - if x != nil { - return x.Supply - } - return "" -} - -// QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method. -type QueryNFTMintedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token type associated with the token type. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` -} - -func (x *QueryNFTMintedRequest) Reset() { - *x = QueryNFTMintedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryNFTMintedRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryNFTMintedRequest) ProtoMessage() {} - -// Deprecated: Use QueryNFTMintedRequest.ProtoReflect.Descriptor instead. -func (*QueryNFTMintedRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{12} -} - -func (x *QueryNFTMintedRequest) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *QueryNFTMintedRequest) GetTokenType() string { - if x != nil { - return x.TokenType - } - return "" -} - -// QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method. -type QueryNFTMintedResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // minted is the amount of minted tokens. - Minted string `protobuf:"bytes,1,opt,name=minted,proto3" json:"minted,omitempty"` -} - -func (x *QueryNFTMintedResponse) Reset() { - *x = QueryNFTMintedResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryNFTMintedResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryNFTMintedResponse) ProtoMessage() {} - -// Deprecated: Use QueryNFTMintedResponse.ProtoReflect.Descriptor instead. -func (*QueryNFTMintedResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{13} -} - -func (x *QueryNFTMintedResponse) GetMinted() string { - if x != nil { - return x.Minted - } - return "" -} - -// QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method. -type QueryNFTBurntRequest struct { +// QueryAllBalancesRequest is the request type for the Query/AllBalances RPC method. +type QueryAllBalancesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token type associated with the token type. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // address is the address to query the balances for. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryNFTBurntRequest) Reset() { - *x = QueryNFTBurntRequest{} +func (x *QueryAllBalancesRequest) Reset() { + *x = QueryAllBalancesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[14] + mi := &file_lbm_collection_v1_query_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryNFTBurntRequest) String() string { +func (x *QueryAllBalancesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryNFTBurntRequest) ProtoMessage() {} +func (*QueryAllBalancesRequest) ProtoMessage() {} -// Deprecated: Use QueryNFTBurntRequest.ProtoReflect.Descriptor instead. -func (*QueryNFTBurntRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{14} +// Deprecated: Use QueryAllBalancesRequest.ProtoReflect.Descriptor instead. +func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{2} } -func (x *QueryNFTBurntRequest) GetContractId() string { +func (x *QueryAllBalancesRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryNFTBurntRequest) GetTokenType() string { +func (x *QueryAllBalancesRequest) GetAddress() string { if x != nil { - return x.TokenType + return x.Address } return "" } -// QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method. -type QueryNFTBurntResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // burnt is the amount of the burnt tokens. - Burnt string `protobuf:"bytes,1,opt,name=burnt,proto3" json:"burnt,omitempty"` -} - -func (x *QueryNFTBurntResponse) Reset() { - *x = QueryNFTBurntResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryNFTBurntResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryNFTBurntResponse) ProtoMessage() {} - -// Deprecated: Use QueryNFTBurntResponse.ProtoReflect.Descriptor instead. -func (*QueryNFTBurntResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{15} -} - -func (x *QueryNFTBurntResponse) GetBurnt() string { +func (x *QueryAllBalancesRequest) GetPagination() *query.PageRequest { if x != nil { - return x.Burnt + return x.Pagination } - return "" + return nil } -// QueryContractRequest is the request type for the Query/Contract RPC method. -type QueryContractRequest struct { +// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method. +type QueryAllBalancesResponse 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"` + // 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 *QueryContractRequest) Reset() { - *x = QueryContractRequest{} +func (x *QueryAllBalancesResponse) Reset() { + *x = QueryAllBalancesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[16] + mi := &file_lbm_collection_v1_query_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryContractRequest) String() string { +func (x *QueryAllBalancesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryContractRequest) ProtoMessage() {} +func (*QueryAllBalancesResponse) ProtoMessage() {} -// Deprecated: Use QueryContractRequest.ProtoReflect.Descriptor instead. -func (*QueryContractRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{16} +// Deprecated: Use QueryAllBalancesResponse.ProtoReflect.Descriptor instead. +func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{3} } -func (x *QueryContractRequest) GetContractId() string { +func (x *QueryAllBalancesResponse) GetBalances() []*Coin { if x != nil { - return x.ContractId - } - return "" -} - -// QueryContractResponse is the response type for the Query/Contract RPC method. -type QueryContractResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract is the information of the contract. - Contract *Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` -} - -func (x *QueryContractResponse) Reset() { - *x = QueryContractResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + return x.Balances } + return nil } -func (x *QueryContractResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryContractResponse) ProtoMessage() {} - -// Deprecated: Use QueryContractResponse.ProtoReflect.Descriptor instead. -func (*QueryContractResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{17} -} - -func (x *QueryContractResponse) GetContract() *Contract { +func (x *QueryAllBalancesResponse) GetPagination() *query.PageResponse { if x != nil { - return x.Contract + return x.Pagination } return nil } -// QueryTokenClassTypeNameRequest is the request type for the Query/TokenClassTypeName RPC method. -// -// Since: 0.46.0 (finschia) -type QueryTokenClassTypeNameRequest struct { +// QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. +type QueryNFTSupplyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // class id associated with the token class. - ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // token type associated with the token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *QueryTokenClassTypeNameRequest) Reset() { - *x = QueryTokenClassTypeNameRequest{} +func (x *QueryNFTSupplyRequest) Reset() { + *x = QueryNFTSupplyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[18] + mi := &file_lbm_collection_v1_query_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenClassTypeNameRequest) String() string { +func (x *QueryNFTSupplyRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenClassTypeNameRequest) ProtoMessage() {} +func (*QueryNFTSupplyRequest) ProtoMessage() {} -// Deprecated: Use QueryTokenClassTypeNameRequest.ProtoReflect.Descriptor instead. -func (*QueryTokenClassTypeNameRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{18} +// Deprecated: Use QueryNFTSupplyRequest.ProtoReflect.Descriptor instead. +func (*QueryNFTSupplyRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{4} } -func (x *QueryTokenClassTypeNameRequest) GetContractId() string { +func (x *QueryNFTSupplyRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryTokenClassTypeNameRequest) GetClassId() string { +func (x *QueryNFTSupplyRequest) GetTokenType() string { if x != nil { - return x.ClassId + return x.TokenType } return "" } -// QueryTokenClassTypeNameResponse is the response type for the Query/TokenClassTypeName RPC method. -// -// Since: 0.46.0 (finschia) -type QueryTokenClassTypeNameResponse struct { +// QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method. +type QueryNFTSupplyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // type name of the token class. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // supply is the supply of the non-fungible token. + Supply string `protobuf:"bytes,1,opt,name=supply,proto3" json:"supply,omitempty"` } -func (x *QueryTokenClassTypeNameResponse) Reset() { - *x = QueryTokenClassTypeNameResponse{} +func (x *QueryNFTSupplyResponse) Reset() { + *x = QueryNFTSupplyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[19] + mi := &file_lbm_collection_v1_query_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenClassTypeNameResponse) String() string { +func (x *QueryNFTSupplyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenClassTypeNameResponse) ProtoMessage() {} +func (*QueryNFTSupplyResponse) ProtoMessage() {} -// Deprecated: Use QueryTokenClassTypeNameResponse.ProtoReflect.Descriptor instead. -func (*QueryTokenClassTypeNameResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{19} +// Deprecated: Use QueryNFTSupplyResponse.ProtoReflect.Descriptor instead. +func (*QueryNFTSupplyResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{5} } -func (x *QueryTokenClassTypeNameResponse) GetName() string { +func (x *QueryNFTSupplyResponse) GetSupply() string { if x != nil { - return x.Name + return x.Supply } return "" } -// QueryTokenTypeRequest is the request type for the Query/TokenType RPC method. -type QueryTokenTypeRequest struct { +// QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method. +type QueryNFTMintedRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -19122,507 +11964,485 @@ type QueryTokenTypeRequest struct { TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *QueryTokenTypeRequest) Reset() { - *x = QueryTokenTypeRequest{} +func (x *QueryNFTMintedRequest) Reset() { + *x = QueryNFTMintedRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[20] + mi := &file_lbm_collection_v1_query_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenTypeRequest) String() string { +func (x *QueryNFTMintedRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenTypeRequest) ProtoMessage() {} +func (*QueryNFTMintedRequest) ProtoMessage() {} -// Deprecated: Use QueryTokenTypeRequest.ProtoReflect.Descriptor instead. -func (*QueryTokenTypeRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{20} +// Deprecated: Use QueryNFTMintedRequest.ProtoReflect.Descriptor instead. +func (*QueryNFTMintedRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{6} } -func (x *QueryTokenTypeRequest) GetContractId() string { +func (x *QueryNFTMintedRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryTokenTypeRequest) GetTokenType() string { +func (x *QueryNFTMintedRequest) GetTokenType() string { if x != nil { return x.TokenType } return "" } -// QueryTokenTypeResponse is the response type for the Query/TokenType RPC method. -type QueryTokenTypeResponse struct { +// QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method. +type QueryNFTMintedResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // token type is the information of the token type. - TokenType *TokenType `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // minted is the amount of minted tokens. + Minted string `protobuf:"bytes,1,opt,name=minted,proto3" json:"minted,omitempty"` } -func (x *QueryTokenTypeResponse) Reset() { - *x = QueryTokenTypeResponse{} +func (x *QueryNFTMintedResponse) Reset() { + *x = QueryNFTMintedResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[21] + mi := &file_lbm_collection_v1_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenTypeResponse) String() string { +func (x *QueryNFTMintedResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenTypeResponse) ProtoMessage() {} +func (*QueryNFTMintedResponse) ProtoMessage() {} -// Deprecated: Use QueryTokenTypeResponse.ProtoReflect.Descriptor instead. -func (*QueryTokenTypeResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{21} +// Deprecated: Use QueryNFTMintedResponse.ProtoReflect.Descriptor instead. +func (*QueryNFTMintedResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{7} } -func (x *QueryTokenTypeResponse) GetTokenType() *TokenType { +func (x *QueryNFTMintedResponse) GetMinted() string { if x != nil { - return x.TokenType + return x.Minted } - return nil + return "" } -// QueryTokenRequest is the request type for the Query/Token RPC method. -type QueryTokenRequest struct { +// QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method. +type QueryNFTBurntRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // token type associated with the token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *QueryTokenRequest) Reset() { - *x = QueryTokenRequest{} +func (x *QueryNFTBurntRequest) Reset() { + *x = QueryNFTBurntRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[22] + mi := &file_lbm_collection_v1_query_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenRequest) String() string { +func (x *QueryNFTBurntRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenRequest) ProtoMessage() {} +func (*QueryNFTBurntRequest) ProtoMessage() {} -// Deprecated: Use QueryTokenRequest.ProtoReflect.Descriptor instead. -func (*QueryTokenRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{22} +// Deprecated: Use QueryNFTBurntRequest.ProtoReflect.Descriptor instead. +func (*QueryNFTBurntRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{8} } -func (x *QueryTokenRequest) GetContractId() string { +func (x *QueryNFTBurntRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryTokenRequest) GetTokenId() string { +func (x *QueryNFTBurntRequest) GetTokenType() string { if x != nil { - return x.TokenId + return x.TokenType } return "" } -// QueryTokenResponse is the response type for the Query/Token RPC method. -type QueryTokenResponse struct { +// QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method. +type QueryNFTBurntResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // information of the token. - Token *anypb.Any `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + // burnt is the amount of the burnt tokens. + Burnt string `protobuf:"bytes,1,opt,name=burnt,proto3" json:"burnt,omitempty"` } -func (x *QueryTokenResponse) Reset() { - *x = QueryTokenResponse{} +func (x *QueryNFTBurntResponse) Reset() { + *x = QueryNFTBurntResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[23] + mi := &file_lbm_collection_v1_query_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryTokenResponse) String() string { +func (x *QueryNFTBurntResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryTokenResponse) ProtoMessage() {} +func (*QueryNFTBurntResponse) ProtoMessage() {} -// Deprecated: Use QueryTokenResponse.ProtoReflect.Descriptor instead. -func (*QueryTokenResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{23} +// Deprecated: Use QueryNFTBurntResponse.ProtoReflect.Descriptor instead. +func (*QueryNFTBurntResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{9} } -func (x *QueryTokenResponse) GetToken() *anypb.Any { +func (x *QueryNFTBurntResponse) GetBurnt() string { if x != nil { - return x.Token + return x.Burnt } - return nil + return "" } -// QueryRootRequest is the request type for the Query/Root RPC method. -type QueryRootRequest struct { +// QueryContractRequest is the request type for the Query/Contract RPC method. +type QueryContractRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the non-fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` } -func (x *QueryRootRequest) Reset() { - *x = QueryRootRequest{} +func (x *QueryContractRequest) Reset() { + *x = QueryContractRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[24] + mi := &file_lbm_collection_v1_query_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryRootRequest) String() string { +func (x *QueryContractRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRootRequest) ProtoMessage() {} +func (*QueryContractRequest) ProtoMessage() {} -// Deprecated: Use QueryRootRequest.ProtoReflect.Descriptor instead. -func (*QueryRootRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{24} +// Deprecated: Use QueryContractRequest.ProtoReflect.Descriptor instead. +func (*QueryContractRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{10} } -func (x *QueryRootRequest) GetContractId() string { +func (x *QueryContractRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryRootRequest) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -// QueryRootResponse is the response type for the Query/Root RPC method. -type QueryRootResponse struct { +// QueryContractResponse is the response type for the Query/Contract RPC method. +type QueryContractResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // root is the information of the root token. - // it would return itself if it's the root token. - Root *NFT `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` + // contract is the information of the contract. + Contract *Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` } -func (x *QueryRootResponse) Reset() { - *x = QueryRootResponse{} +func (x *QueryContractResponse) Reset() { + *x = QueryContractResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[25] + mi := &file_lbm_collection_v1_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryRootResponse) String() string { +func (x *QueryContractResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRootResponse) ProtoMessage() {} +func (*QueryContractResponse) ProtoMessage() {} -// Deprecated: Use QueryRootResponse.ProtoReflect.Descriptor instead. -func (*QueryRootResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{25} +// Deprecated: Use QueryContractResponse.ProtoReflect.Descriptor instead. +func (*QueryContractResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{11} } -func (x *QueryRootResponse) GetRoot() *NFT { +func (x *QueryContractResponse) GetContract() *Contract { if x != nil { - return x.Root + return x.Contract } return nil } -// QueryHasParentRequest is the request type for the Query/HasParent RPC method. -type QueryHasParentRequest struct { +// QueryTokenClassTypeNameRequest is the request type for the Query/TokenClassTypeName RPC method. +// +// Since: 0.46.0 (finschia) +type QueryTokenClassTypeNameRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated wit the non-fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` } -func (x *QueryHasParentRequest) Reset() { - *x = QueryHasParentRequest{} +func (x *QueryTokenClassTypeNameRequest) Reset() { + *x = QueryTokenClassTypeNameRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[26] + mi := &file_lbm_collection_v1_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryHasParentRequest) String() string { +func (x *QueryTokenClassTypeNameRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryHasParentRequest) ProtoMessage() {} +func (*QueryTokenClassTypeNameRequest) ProtoMessage() {} -// Deprecated: Use QueryHasParentRequest.ProtoReflect.Descriptor instead. -func (*QueryHasParentRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{26} +// Deprecated: Use QueryTokenClassTypeNameRequest.ProtoReflect.Descriptor instead. +func (*QueryTokenClassTypeNameRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{12} } -func (x *QueryHasParentRequest) GetContractId() string { +func (x *QueryTokenClassTypeNameRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryHasParentRequest) GetTokenId() string { +func (x *QueryTokenClassTypeNameRequest) GetClassId() string { if x != nil { - return x.TokenId + return x.ClassId } return "" } -// QueryHasParentResponse is the response type for the Query/HasParent RPC method. -type QueryHasParentResponse struct { +// QueryTokenClassTypeNameResponse is the response type for the Query/TokenClassTypeName RPC method. +// +// Since: 0.46.0 (finschia) +type QueryTokenClassTypeNameResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // whether the token has its parent. - HasParent bool `protobuf:"varint,1,opt,name=has_parent,json=hasParent,proto3" json:"has_parent,omitempty"` + // type name of the token class. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (x *QueryHasParentResponse) Reset() { - *x = QueryHasParentResponse{} +func (x *QueryTokenClassTypeNameResponse) Reset() { + *x = QueryTokenClassTypeNameResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[27] + mi := &file_lbm_collection_v1_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryHasParentResponse) String() string { +func (x *QueryTokenClassTypeNameResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryHasParentResponse) ProtoMessage() {} +func (*QueryTokenClassTypeNameResponse) ProtoMessage() {} -// Deprecated: Use QueryHasParentResponse.ProtoReflect.Descriptor instead. -func (*QueryHasParentResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{27} +// Deprecated: Use QueryTokenClassTypeNameResponse.ProtoReflect.Descriptor instead. +func (*QueryTokenClassTypeNameResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{13} } -func (x *QueryHasParentResponse) GetHasParent() bool { +func (x *QueryTokenClassTypeNameResponse) GetName() string { if x != nil { - return x.HasParent + return x.Name } - return false + return "" } -// QueryParentRequest is the request type for the Query/Parent RPC method. -type QueryParentRequest struct { +// QueryTokenTypeRequest is the request type for the Query/TokenType RPC method. +type QueryTokenTypeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated wit the non-fungible token. - TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // token type associated with the token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *QueryParentRequest) Reset() { - *x = QueryParentRequest{} +func (x *QueryTokenTypeRequest) Reset() { + *x = QueryTokenTypeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[28] + mi := &file_lbm_collection_v1_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryParentRequest) String() string { +func (x *QueryTokenTypeRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryParentRequest) ProtoMessage() {} +func (*QueryTokenTypeRequest) ProtoMessage() {} -// Deprecated: Use QueryParentRequest.ProtoReflect.Descriptor instead. -func (*QueryParentRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{28} +// Deprecated: Use QueryTokenTypeRequest.ProtoReflect.Descriptor instead. +func (*QueryTokenTypeRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{14} } -func (x *QueryParentRequest) GetContractId() string { +func (x *QueryTokenTypeRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryParentRequest) GetTokenId() string { +func (x *QueryTokenTypeRequest) GetTokenType() string { if x != nil { - return x.TokenId + return x.TokenType } return "" } -// QueryParentResponse is the response type for the Query/Parent RPC method. -type QueryParentResponse struct { +// QueryTokenTypeResponse is the response type for the Query/TokenType RPC method. +type QueryTokenTypeResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // parent is the information of the parent token. - Parent *NFT `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // token type is the information of the token type. + TokenType *TokenType `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *QueryParentResponse) Reset() { - *x = QueryParentResponse{} +func (x *QueryTokenTypeResponse) Reset() { + *x = QueryTokenTypeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[29] + mi := &file_lbm_collection_v1_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryParentResponse) String() string { +func (x *QueryTokenTypeResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryParentResponse) ProtoMessage() {} +func (*QueryTokenTypeResponse) ProtoMessage() {} -// Deprecated: Use QueryParentResponse.ProtoReflect.Descriptor instead. -func (*QueryParentResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{29} +// Deprecated: Use QueryTokenTypeResponse.ProtoReflect.Descriptor instead. +func (*QueryTokenTypeResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{15} } -func (x *QueryParentResponse) GetParent() *NFT { +func (x *QueryTokenTypeResponse) GetTokenType() *TokenType { if x != nil { - return x.Parent + return x.TokenType } return nil } -// QueryChildrenRequest is the request type for the Query/Children RPC method. -type QueryChildrenRequest struct { +// QueryTokenRequest is the request type for the Query/Token RPC method. +type QueryTokenRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // token id associated with the non-fungible token. + // token id associated with the fungible token. TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryChildrenRequest) Reset() { - *x = QueryChildrenRequest{} +func (x *QueryTokenRequest) Reset() { + *x = QueryTokenRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[30] + mi := &file_lbm_collection_v1_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryChildrenRequest) String() string { +func (x *QueryTokenRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryChildrenRequest) ProtoMessage() {} +func (*QueryTokenRequest) ProtoMessage() {} -// Deprecated: Use QueryChildrenRequest.ProtoReflect.Descriptor instead. -func (*QueryChildrenRequest) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{30} +// Deprecated: Use QueryTokenRequest.ProtoReflect.Descriptor instead. +func (*QueryTokenRequest) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{16} } -func (x *QueryChildrenRequest) GetContractId() string { +func (x *QueryTokenRequest) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *QueryChildrenRequest) GetTokenId() string { +func (x *QueryTokenRequest) GetTokenId() string { if x != nil { return x.TokenId } return "" } -func (x *QueryChildrenRequest) GetPagination() *query.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryChildrenResponse is the response type for the Query/Children RPC method. -type QueryChildrenResponse struct { +// QueryTokenResponse is the response type for the Query/Token RPC method. +type QueryTokenResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // children is the information of the child tokens. - Children []*NFT `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"` - // pagination defines the pagination in the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + // information of the token. + Token *anypb.Any `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` } -func (x *QueryChildrenResponse) Reset() { - *x = QueryChildrenResponse{} +func (x *QueryTokenResponse) Reset() { + *x = QueryTokenResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[31] + mi := &file_lbm_collection_v1_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryChildrenResponse) String() string { +func (x *QueryTokenResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryChildrenResponse) ProtoMessage() {} - -// Deprecated: Use QueryChildrenResponse.ProtoReflect.Descriptor instead. -func (*QueryChildrenResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{31} -} - -func (x *QueryChildrenResponse) GetChildren() []*NFT { - if x != nil { - return x.Children - } - return nil +func (*QueryTokenResponse) ProtoMessage() {} + +// Deprecated: Use QueryTokenResponse.ProtoReflect.Descriptor instead. +func (*QueryTokenResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{17} } -func (x *QueryChildrenResponse) GetPagination() *query.PageResponse { +func (x *QueryTokenResponse) GetToken() *anypb.Any { if x != nil { - return x.Pagination + return x.Token } return nil } @@ -19644,7 +12464,7 @@ type QueryGranteeGrantsRequest struct { func (x *QueryGranteeGrantsRequest) Reset() { *x = QueryGranteeGrantsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[32] + mi := &file_lbm_collection_v1_query_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19658,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{32} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{18} } func (x *QueryGranteeGrantsRequest) GetContractId() string { @@ -19696,7 +12516,7 @@ type QueryGranteeGrantsResponse struct { func (x *QueryGranteeGrantsResponse) Reset() { *x = QueryGranteeGrantsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[33] + mi := &file_lbm_collection_v1_query_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19710,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{33} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{19} } func (x *QueryGranteeGrantsResponse) GetGrants() []*Grant { @@ -19744,7 +12564,7 @@ type QueryIsOperatorForRequest struct { func (x *QueryIsOperatorForRequest) Reset() { *x = QueryIsOperatorForRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[34] + mi := &file_lbm_collection_v1_query_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19758,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{34} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{20} } func (x *QueryIsOperatorForRequest) GetContractId() string { @@ -19794,7 +12614,7 @@ type QueryIsOperatorForResponse struct { func (x *QueryIsOperatorForResponse) Reset() { *x = QueryIsOperatorForResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[35] + mi := &file_lbm_collection_v1_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19808,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{35} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{21} } func (x *QueryIsOperatorForResponse) GetAuthorized() bool { @@ -19835,7 +12655,7 @@ type QueryHoldersByOperatorRequest struct { func (x *QueryHoldersByOperatorRequest) Reset() { *x = QueryHoldersByOperatorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[36] + mi := &file_lbm_collection_v1_query_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19849,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{36} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{22} } func (x *QueryHoldersByOperatorRequest) GetContractId() string { @@ -19887,7 +12707,7 @@ type QueryHoldersByOperatorResponse struct { func (x *QueryHoldersByOperatorResponse) Reset() { *x = QueryHoldersByOperatorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_query_proto_msgTypes[37] + mi := &file_lbm_collection_v1_query_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19901,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{37} + return file_lbm_collection_v1_query_proto_rawDescGZIP(), []int{23} } func (x *QueryHoldersByOperatorResponse) GetHolders() []string { @@ -19971,433 +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, - 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, 0x63, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x53, 0x75, - 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x06, - 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0xc8, 0xde, - 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, - 0x69, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 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, + 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, 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, 0x63, 0x0a, 0x15, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x06, 0x6d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2a, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, - 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, - 0x74, 0x79, 0x70, 0x65, 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, 0x60, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x42, - 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x05, - 0x62, 0x75, 0x72, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0xc8, 0xde, 0x1f, - 0x00, 0xda, 0xde, 0x1f, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, - 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 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, - 0x64, 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, 0x4a, 0x0a, 0x06, 0x73, 0x75, 0x70, - 0x70, 0x6c, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0xc8, 0xde, 0x1f, 0x00, 0xda, - 0xde, 0x1f, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, - 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2d, - 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 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, 0x64, - 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, 0x4a, 0x0a, 0x06, 0x6d, 0x69, 0x6e, 0x74, - 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, - 0x1f, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6e, - 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2d, 0x73, - 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 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, 0x61, 0x0a, 0x15, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2a, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, - 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, - 0x79, 0x70, 0x65, 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, + 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, 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, + 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, 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, 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, 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, 0x4e, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6f, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6f, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6f, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x46, 0x54, 0x42, - 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x22, 0x53, 0x0a, 0x15, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x48, 0x61, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, + 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, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, - 0x22, 0x37, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x61, 0x73, 0x50, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, - 0x73, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, - 0x68, 0x61, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x50, 0x0a, 0x12, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, - 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x22, 0x4b, 0x0a, 0x13, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x46, 0x54, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, - 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x9a, 0x01, 0x0a, 0x14, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x46, 0x0a, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, - 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x38, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x46, 0x54, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0xb8, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x65, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, - 0x64, 0x12, 0x32, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x67, 0x72, - 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x01, - 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, - 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, - 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x67, 0x72, - 0x61, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, - 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x08, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x68, 0x6f, - 0x6c, 0x64, 0x65, 0x72, 0x22, 0x3c, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, - 0x65, 0x64, 0x22, 0xbe, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x6f, 0x6c, 0x64, - 0x65, 0x72, 0x73, 0x42, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x70, + 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, 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, + 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, 0x32, 0xf8, 0x18, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0xac, 0x01, - 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x26, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x4a, 0x12, 0x48, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, - 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x62, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xad, 0x01, 0x0a, - 0x0b, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x2a, 0x2e, 0x6c, - 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, + 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, 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, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xa7, 0x01, 0x0a, - 0x08, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x53, 0x75, - 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 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, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, - 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0xa7, 0x01, 0x0a, 0x08, 0x46, 0x54, 0x4d, 0x69, 0x6e, - 0x74, 0x65, 0x64, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x4d, - 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, - 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x40, - 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, - 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x66, 0x74, 0x73, 0x2f, 0x7b, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x65, 0x64, - 0x12, 0xa3, 0x01, 0x0a, 0x07, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x12, 0x26, 0x2e, 0x6c, - 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x54, - 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x47, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x7d, 0x2f, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, - 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x12, 0xb4, 0x01, 0x0a, 0x09, 0x4e, 0x46, 0x54, 0x53, 0x75, - 0x70, 0x70, 0x6c, 0x79, 0x12, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, - 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x53, 0x75, 0x70, 0x70, 0x6c, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x4c, 0x12, 0x4a, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, - 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0xb4, 0x01, - 0x0a, 0x09, 0x4e, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x28, 0x2e, 0x6c, 0x62, - 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, - 0x46, 0x54, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x12, 0x4a, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, + 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x65, 0x64, + 0x12, 0xb0, 0x01, 0x0a, 0x08, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x12, 0x27, 0x2e, + 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x6d, 0x69, - 0x6e, 0x74, 0x65, 0x64, 0x12, 0xb0, 0x01, 0x0a, 0x08, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, - 0x74, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x42, 0x75, - 0x72, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x4e, 0x46, 0x54, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x6c, - 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, - 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x7d, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x12, 0x91, 0x01, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 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, + 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x62, 0x75, + 0x72, 0x6e, 0x74, 0x12, 0x91, 0x01, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, - 0x12, 0x9a, 0x01, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, + 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, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, - 0x3c, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x9a, 0x01, - 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x23, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, + 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, - 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x6c, 0x62, + 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, 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x47, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6e, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x72, 0x6f, 0x6f, 0x74, 0x12, 0xaf, 0x01, 0x0a, 0x09, 0x48, - 0x61, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x48, 0x61, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x61, 0x73, 0x50, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x12, 0x45, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x7d, 0x2f, 0x6e, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, - 0x7d, 0x2f, 0x68, 0x61, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xa2, 0x01, 0x0a, - 0x06, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x12, 0x41, - 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, - 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6e, 0x66, 0x74, 0x73, 0x2f, - 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0xaa, 0x01, 0x0a, 0x08, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x12, 0x27, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6e, 0x66, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x12, 0xb1, - 0x01, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, - 0x12, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x65, 0x7d, 0x12, 0x6e, 0x0a, 0x0d, 0x49, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x46, 0x6f, 0x72, 0x12, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 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, + 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, 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, + 0x65, 0x72, 0x79, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, + 0x12, 0x3b, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, + 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x7d, 0x12, 0x6e, 0x0a, + 0x0d, 0x49, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, 0x12, 0x2c, + 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6c, + 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x46, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7a, 0x0a, + 0x11, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x30, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x6f, 0x6c, 0x64, + 0x65, 0x72, 0x73, 0x42, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x6f, + 0x6c, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xad, 0x01, 0x0a, 0x15, 0x63, 0x6f, + 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x22, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, + 0x6d, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4c, 0x62, 0x6d, 0x5c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -20412,116 +13075,82 @@ func file_lbm_collection_v1_query_proto_rawDescGZIP() []byte { return file_lbm_collection_v1_query_proto_rawDescData } -var file_lbm_collection_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 38) +var file_lbm_collection_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 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 - (*QueryRootRequest)(nil), // 24: lbm.collection.v1.QueryRootRequest - (*QueryRootResponse)(nil), // 25: lbm.collection.v1.QueryRootResponse - (*QueryHasParentRequest)(nil), // 26: lbm.collection.v1.QueryHasParentRequest - (*QueryHasParentResponse)(nil), // 27: lbm.collection.v1.QueryHasParentResponse - (*QueryParentRequest)(nil), // 28: lbm.collection.v1.QueryParentRequest - (*QueryParentResponse)(nil), // 29: lbm.collection.v1.QueryParentResponse - (*QueryChildrenRequest)(nil), // 30: lbm.collection.v1.QueryChildrenRequest - (*QueryChildrenResponse)(nil), // 31: lbm.collection.v1.QueryChildrenResponse - (*QueryGranteeGrantsRequest)(nil), // 32: lbm.collection.v1.QueryGranteeGrantsRequest - (*QueryGranteeGrantsResponse)(nil), // 33: lbm.collection.v1.QueryGranteeGrantsResponse - (*QueryIsOperatorForRequest)(nil), // 34: lbm.collection.v1.QueryIsOperatorForRequest - (*QueryIsOperatorForResponse)(nil), // 35: lbm.collection.v1.QueryIsOperatorForResponse - (*QueryHoldersByOperatorRequest)(nil), // 36: lbm.collection.v1.QueryHoldersByOperatorRequest - (*QueryHoldersByOperatorResponse)(nil), // 37: lbm.collection.v1.QueryHoldersByOperatorResponse - (*Coin)(nil), // 38: lbm.collection.v1.Coin - (*query.PageRequest)(nil), // 39: cosmos.base.query.v1beta1.PageRequest - (*query.PageResponse)(nil), // 40: cosmos.base.query.v1beta1.PageResponse - (*Contract)(nil), // 41: lbm.collection.v1.Contract - (*TokenType)(nil), // 42: lbm.collection.v1.TokenType - (*anypb.Any)(nil), // 43: google.protobuf.Any - (*NFT)(nil), // 44: lbm.collection.v1.NFT - (*Grant)(nil), // 45: lbm.collection.v1.Grant + (*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{ - 38, // 0: lbm.collection.v1.QueryBalanceResponse.balance:type_name -> lbm.collection.v1.Coin - 39, // 1: lbm.collection.v1.QueryAllBalancesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 38, // 2: lbm.collection.v1.QueryAllBalancesResponse.balances:type_name -> lbm.collection.v1.Coin - 40, // 3: lbm.collection.v1.QueryAllBalancesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 41, // 4: lbm.collection.v1.QueryContractResponse.contract:type_name -> lbm.collection.v1.Contract - 42, // 5: lbm.collection.v1.QueryTokenTypeResponse.token_type:type_name -> lbm.collection.v1.TokenType - 43, // 6: lbm.collection.v1.QueryTokenResponse.token:type_name -> google.protobuf.Any - 44, // 7: lbm.collection.v1.QueryRootResponse.root:type_name -> lbm.collection.v1.NFT - 44, // 8: lbm.collection.v1.QueryParentResponse.parent:type_name -> lbm.collection.v1.NFT - 39, // 9: lbm.collection.v1.QueryChildrenRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 44, // 10: lbm.collection.v1.QueryChildrenResponse.children:type_name -> lbm.collection.v1.NFT - 40, // 11: lbm.collection.v1.QueryChildrenResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 39, // 12: lbm.collection.v1.QueryGranteeGrantsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 45, // 13: lbm.collection.v1.QueryGranteeGrantsResponse.grants:type_name -> lbm.collection.v1.Grant - 40, // 14: lbm.collection.v1.QueryGranteeGrantsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 39, // 15: lbm.collection.v1.QueryHoldersByOperatorRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 40, // 16: lbm.collection.v1.QueryHoldersByOperatorResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 0, // 17: lbm.collection.v1.Query.Balance:input_type -> lbm.collection.v1.QueryBalanceRequest - 2, // 18: lbm.collection.v1.Query.AllBalances:input_type -> lbm.collection.v1.QueryAllBalancesRequest - 4, // 19: lbm.collection.v1.Query.FTSupply:input_type -> lbm.collection.v1.QueryFTSupplyRequest - 6, // 20: lbm.collection.v1.Query.FTMinted:input_type -> lbm.collection.v1.QueryFTMintedRequest - 8, // 21: lbm.collection.v1.Query.FTBurnt:input_type -> lbm.collection.v1.QueryFTBurntRequest - 10, // 22: lbm.collection.v1.Query.NFTSupply:input_type -> lbm.collection.v1.QueryNFTSupplyRequest - 12, // 23: lbm.collection.v1.Query.NFTMinted:input_type -> lbm.collection.v1.QueryNFTMintedRequest - 14, // 24: lbm.collection.v1.Query.NFTBurnt:input_type -> lbm.collection.v1.QueryNFTBurntRequest - 16, // 25: lbm.collection.v1.Query.Contract:input_type -> lbm.collection.v1.QueryContractRequest - 18, // 26: lbm.collection.v1.Query.TokenClassTypeName:input_type -> lbm.collection.v1.QueryTokenClassTypeNameRequest - 20, // 27: lbm.collection.v1.Query.TokenType:input_type -> lbm.collection.v1.QueryTokenTypeRequest - 22, // 28: lbm.collection.v1.Query.Token:input_type -> lbm.collection.v1.QueryTokenRequest - 24, // 29: lbm.collection.v1.Query.Root:input_type -> lbm.collection.v1.QueryRootRequest - 26, // 30: lbm.collection.v1.Query.HasParent:input_type -> lbm.collection.v1.QueryHasParentRequest - 28, // 31: lbm.collection.v1.Query.Parent:input_type -> lbm.collection.v1.QueryParentRequest - 30, // 32: lbm.collection.v1.Query.Children:input_type -> lbm.collection.v1.QueryChildrenRequest - 32, // 33: lbm.collection.v1.Query.GranteeGrants:input_type -> lbm.collection.v1.QueryGranteeGrantsRequest - 34, // 34: lbm.collection.v1.Query.IsOperatorFor:input_type -> lbm.collection.v1.QueryIsOperatorForRequest - 36, // 35: lbm.collection.v1.Query.HoldersByOperator:input_type -> lbm.collection.v1.QueryHoldersByOperatorRequest - 1, // 36: lbm.collection.v1.Query.Balance:output_type -> lbm.collection.v1.QueryBalanceResponse - 3, // 37: lbm.collection.v1.Query.AllBalances:output_type -> lbm.collection.v1.QueryAllBalancesResponse - 5, // 38: lbm.collection.v1.Query.FTSupply:output_type -> lbm.collection.v1.QueryFTSupplyResponse - 7, // 39: lbm.collection.v1.Query.FTMinted:output_type -> lbm.collection.v1.QueryFTMintedResponse - 9, // 40: lbm.collection.v1.Query.FTBurnt:output_type -> lbm.collection.v1.QueryFTBurntResponse - 11, // 41: lbm.collection.v1.Query.NFTSupply:output_type -> lbm.collection.v1.QueryNFTSupplyResponse - 13, // 42: lbm.collection.v1.Query.NFTMinted:output_type -> lbm.collection.v1.QueryNFTMintedResponse - 15, // 43: lbm.collection.v1.Query.NFTBurnt:output_type -> lbm.collection.v1.QueryNFTBurntResponse - 17, // 44: lbm.collection.v1.Query.Contract:output_type -> lbm.collection.v1.QueryContractResponse - 19, // 45: lbm.collection.v1.Query.TokenClassTypeName:output_type -> lbm.collection.v1.QueryTokenClassTypeNameResponse - 21, // 46: lbm.collection.v1.Query.TokenType:output_type -> lbm.collection.v1.QueryTokenTypeResponse - 23, // 47: lbm.collection.v1.Query.Token:output_type -> lbm.collection.v1.QueryTokenResponse - 25, // 48: lbm.collection.v1.Query.Root:output_type -> lbm.collection.v1.QueryRootResponse - 27, // 49: lbm.collection.v1.Query.HasParent:output_type -> lbm.collection.v1.QueryHasParentResponse - 29, // 50: lbm.collection.v1.Query.Parent:output_type -> lbm.collection.v1.QueryParentResponse - 31, // 51: lbm.collection.v1.Query.Children:output_type -> lbm.collection.v1.QueryChildrenResponse - 33, // 52: lbm.collection.v1.Query.GranteeGrants:output_type -> lbm.collection.v1.QueryGranteeGrantsResponse - 35, // 53: lbm.collection.v1.Query.IsOperatorFor:output_type -> lbm.collection.v1.QueryIsOperatorForResponse - 37, // 54: lbm.collection.v1.Query.HoldersByOperator:output_type -> lbm.collection.v1.QueryHoldersByOperatorResponse - 36, // [36:55] is the sub-list for method output_type - 17, // [17:36] is the sub-list for method input_type - 17, // [17:17] is the sub-list for extension type_name - 17, // [17:17] is the sub-list for extension extendee - 0, // [0:17] is the sub-list for field type_name + 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.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 } func init() { file_lbm_collection_v1_query_proto_init() } @@ -20580,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 @@ -20663,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 @@ -20675,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 @@ -20687,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 @@ -20699,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 @@ -20711,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 @@ -20723,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 @@ -20735,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 @@ -20747,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 @@ -20759,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 @@ -20771,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 @@ -20783,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 @@ -20795,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 @@ -20807,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 @@ -20819,103 +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{} { - switch v := v.(*QueryRootRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRootResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryHasParentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryHasParentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryChildrenRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryChildrenResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + 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 @@ -20927,7 +13388,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGranteeGrantsResponse); i { case 0: return &v.state @@ -20939,7 +13400,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsOperatorForRequest); i { case 0: return &v.state @@ -20951,7 +13412,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsOperatorForResponse); i { case 0: return &v.state @@ -20963,7 +13424,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryHoldersByOperatorRequest); i { case 0: return &v.state @@ -20975,7 +13436,7 @@ func file_lbm_collection_v1_query_proto_init() { return nil } } - file_lbm_collection_v1_query_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_lbm_collection_v1_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryHoldersByOperatorResponse); i { case 0: return &v.state @@ -20994,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: 38, + 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 e7b4caf218..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" @@ -31,10 +28,6 @@ const ( Query_TokenClassTypeName_FullMethodName = "/lbm.collection.v1.Query/TokenClassTypeName" Query_TokenType_FullMethodName = "/lbm.collection.v1.Query/TokenType" Query_Token_FullMethodName = "/lbm.collection.v1.Query/Token" - Query_Root_FullMethodName = "/lbm.collection.v1.Query/Root" - Query_HasParent_FullMethodName = "/lbm.collection.v1.Query/HasParent" - Query_Parent_FullMethodName = "/lbm.collection.v1.Query/Parent" - Query_Children_FullMethodName = "/lbm.collection.v1.Query/Children" Query_GranteeGrants_FullMethodName = "/lbm.collection.v1.Query/GranteeGrants" Query_IsOperatorFor_FullMethodName = "/lbm.collection.v1.Query/IsOperatorFor" Query_HoldersByOperator_FullMethodName = "/lbm.collection.v1.Query/HoldersByOperator" @@ -48,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. @@ -70,14 +57,6 @@ type QueryClient interface { TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) // Token queries a metadata of a token from its token id. Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) - // Root queries the root of a given nft. - Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error) - // HasParent queries whether a given nft has its parent. - HasParent(ctx context.Context, in *QueryHasParentRequest, opts ...grpc.CallOption) (*QueryHasParentResponse, error) - // Parent queries the parent of a given nft. - Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error) - // Children queries the children of a given nft. - Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error) // GranteeGrants queries all permissions on a given grantee. GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) // IsOperatorFor queries whether the operator is authorized by the holder. @@ -112,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...) @@ -202,42 +154,6 @@ func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ... return out, nil } -func (c *queryClient) Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error) { - out := new(QueryRootResponse) - err := c.cc.Invoke(ctx, Query_Root_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) HasParent(ctx context.Context, in *QueryHasParentRequest, opts ...grpc.CallOption) (*QueryHasParentResponse, error) { - out := new(QueryHasParentResponse) - err := c.cc.Invoke(ctx, Query_HasParent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error) { - out := new(QueryParentResponse) - err := c.cc.Invoke(ctx, Query_Parent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error) { - out := new(QueryChildrenResponse) - err := c.cc.Invoke(ctx, Query_Children_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) { out := new(QueryGranteeGrantsResponse) err := c.cc.Invoke(ctx, Query_GranteeGrants_FullMethodName, in, out, opts...) @@ -273,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. @@ -295,14 +205,6 @@ type QueryServer interface { TokenType(context.Context, *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) // Token queries a metadata of a token from its token id. Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) - // Root queries the root of a given nft. - Root(context.Context, *QueryRootRequest) (*QueryRootResponse, error) - // HasParent queries whether a given nft has its parent. - HasParent(context.Context, *QueryHasParentRequest) (*QueryHasParentResponse, error) - // Parent queries the parent of a given nft. - Parent(context.Context, *QueryParentRequest) (*QueryParentResponse, error) - // Children queries the children of a given nft. - Children(context.Context, *QueryChildrenRequest) (*QueryChildrenResponse, error) // GranteeGrants queries all permissions on a given grantee. GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) // IsOperatorFor queries whether the operator is authorized by the holder. @@ -322,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") } @@ -352,18 +245,6 @@ func (UnimplementedQueryServer) TokenType(context.Context, *QueryTokenTypeReques func (UnimplementedQueryServer) Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") } -func (UnimplementedQueryServer) Root(context.Context, *QueryRootRequest) (*QueryRootResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Root not implemented") -} -func (UnimplementedQueryServer) HasParent(context.Context, *QueryHasParentRequest) (*QueryHasParentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HasParent not implemented") -} -func (UnimplementedQueryServer) Parent(context.Context, *QueryParentRequest) (*QueryParentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Parent not implemented") -} -func (UnimplementedQueryServer) Children(context.Context, *QueryChildrenRequest) (*QueryChildrenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Children not implemented") -} func (UnimplementedQueryServer) GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GranteeGrants not implemented") } @@ -422,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 { @@ -602,78 +429,6 @@ func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _Query_Root_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRootRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Root(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Root_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Root(ctx, req.(*QueryRootRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_HasParent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryHasParentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).HasParent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_HasParent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).HasParent(ctx, req.(*QueryHasParentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Parent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Parent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Parent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Parent(ctx, req.(*QueryParentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Children_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryChildrenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Children(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Children_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Children(ctx, req.(*QueryChildrenRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_GranteeGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGranteeGrantsRequest) if err := dec(in); err != nil { @@ -743,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, @@ -783,22 +526,6 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "Token", Handler: _Query_Token_Handler, }, - { - MethodName: "Root", - Handler: _Query_Root_Handler, - }, - { - MethodName: "HasParent", - Handler: _Query_HasParent_Handler, - }, - { - MethodName: "Parent", - Handler: _Query_Parent_Handler, - }, - { - MethodName: "Children", - Handler: _Query_Children_Handler, - }, { MethodName: "GranteeGrants", Handler: _Query_GranteeGrants_Handler, diff --git a/api/lbm/collection/v1/tx.pulsar.go b/api/lbm/collection/v1/tx.pulsar.go index 34172ff884..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,29 +6693,75 @@ 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)) +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[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } @@ -6735,43 +6770,43 @@ func (x *MsgCreateContractResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgCreateContractResponse_messageType fastReflection_MsgCreateContractResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateContractResponse_messageType{} +var _fastReflection_MsgMintNFTResponse_messageType fastReflection_MsgMintNFTResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgMintNFTResponse_messageType{} -type fastReflection_MsgCreateContractResponse_messageType struct{} +type fastReflection_MsgMintNFTResponse_messageType struct{} -func (x fastReflection_MsgCreateContractResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateContractResponse)(nil) +func (x fastReflection_MsgMintNFTResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgMintNFTResponse)(nil) } -func (x fastReflection_MsgCreateContractResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateContractResponse) +func (x fastReflection_MsgMintNFTResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgMintNFTResponse) } -func (x fastReflection_MsgCreateContractResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateContractResponse +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_MsgCreateContractResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateContractResponse +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_MsgCreateContractResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateContractResponse_messageType +func (x *fastReflection_MsgMintNFTResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgMintNFTResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateContractResponse) New() protoreflect.Message { - return new(fastReflection_MsgCreateContractResponse) +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_MsgCreateContractResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCreateContractResponse)(x) +func (x *fastReflection_MsgMintNFTResponse) Interface() protoreflect.ProtoMessage { + return (*MsgMintNFTResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -6779,10 +6814,10 @@ func (x *fastReflection_MsgCreateContractResponse) 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_MsgCreateContractResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgCreateContractResponse_contract_id, 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 } } @@ -6799,15 +6834,15 @@ func (x *fastReflection_MsgCreateContractResponse) 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_MsgCreateContractResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgMintNFTResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContractResponse.contract_id": - return x.ContractId != "" + 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.MsgCreateContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", fd.FullName())) } } @@ -6817,15 +6852,15 @@ func (x *fastReflection_MsgCreateContractResponse) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateContractResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgMintNFTResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContractResponse.contract_id": - x.ContractId = "" + 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.MsgCreateContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", fd.FullName())) } } @@ -6835,16 +6870,19 @@ func (x *fastReflection_MsgCreateContractResponse) 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_MsgCreateContractResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintNFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgCreateContractResponse.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) + 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.MsgCreateContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", descriptor.FullName())) } } @@ -6858,15 +6896,17 @@ func (x *fastReflection_MsgCreateContractResponse) Get(descriptor protoreflect.F // 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) { +func (x *fastReflection_MsgMintNFTResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContractResponse.contract_id": - x.ContractId = value.Interface().(string) + 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.MsgCreateContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", fd.FullName())) } } @@ -6880,40 +6920,45 @@ func (x *fastReflection_MsgCreateContractResponse) 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_MsgCreateContractResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintNFTResponse) 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")) + 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.MsgCreateContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse 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_MsgCreateContractResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgMintNFTResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgCreateContractResponse.contract_id": - return protoreflect.ValueOfString("") + 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.MsgCreateContractResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgCreateContractResponse 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_MsgCreateContractResponse) 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.MsgCreateContractResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgMintNFTResponse", d.FullName())) } panic("unreachable") } @@ -6921,7 +6966,7 @@ func (x *fastReflection_MsgCreateContractResponse) 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_MsgCreateContractResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgMintNFTResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6932,7 +6977,7 @@ func (x *fastReflection_MsgCreateContractResponse) 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_MsgCreateContractResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgMintNFTResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6944,7 +6989,7 @@ func (x *fastReflection_MsgCreateContractResponse) 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_MsgCreateContractResponse) IsValid() bool { +func (x *fastReflection_MsgMintNFTResponse) IsValid() bool { return x != nil } @@ -6954,9 +6999,9 @@ func (x *fastReflection_MsgCreateContractResponse) 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_MsgCreateContractResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgMintNFTResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateContractResponse) + x := input.Message.Interface().(*MsgMintNFTResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6968,9 +7013,11 @@ func (x *fastReflection_MsgCreateContractResponse) ProtoMethods() *protoiface.Me var n int var l int _ = l - l = len(x.ContractId) - 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) @@ -6982,7 +7029,7 @@ func (x *fastReflection_MsgCreateContractResponse) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateContractResponse) + x := input.Message.Interface().(*MsgMintNFTResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7001,12 +7048,14 @@ func (x *fastReflection_MsgCreateContractResponse) ProtoMethods() *protoiface.Me 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 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...) @@ -7019,7 +7068,7 @@ func (x *fastReflection_MsgCreateContractResponse) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateContractResponse) + x := input.Message.Interface().(*MsgMintNFTResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7051,15 +7100,15 @@ func (x *fastReflection_MsgCreateContractResponse) 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: MsgCreateContractResponse: 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: MsgCreateContractResponse: 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) + 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 { @@ -7087,7 +7136,7 @@ func (x *fastReflection_MsgCreateContractResponse) ProtoMethods() *protoiface.Me if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ContractId = string(dAtA[iNdEx:postIndex]) + x.TokenIds = append(x.TokenIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -7125,39 +7174,29 @@ func (x *fastReflection_MsgCreateContractResponse) ProtoMethods() *protoiface.Me } 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 + 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_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") + 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_MsgIssueFT)(nil) +var _ protoreflect.Message = (*fastReflection_MintNFTParam)(nil) -type fastReflection_MsgIssueFT MsgIssueFT +type fastReflection_MintNFTParam MintNFTParam -func (x *MsgIssueFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgIssueFT)(x) +func (x *MintNFTParam) ProtoReflect() protoreflect.Message { + return (*fastReflection_MintNFTParam)(x) } -func (x *MsgIssueFT) slowProtoReflect() protoreflect.Message { +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)) @@ -7169,43 +7208,43 @@ func (x *MsgIssueFT) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgIssueFT_messageType fastReflection_MsgIssueFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgIssueFT_messageType{} +var _fastReflection_MintNFTParam_messageType fastReflection_MintNFTParam_messageType +var _ protoreflect.MessageType = fastReflection_MintNFTParam_messageType{} -type fastReflection_MsgIssueFT_messageType struct{} +type fastReflection_MintNFTParam_messageType struct{} -func (x fastReflection_MsgIssueFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgIssueFT)(nil) +func (x fastReflection_MintNFTParam_messageType) Zero() protoreflect.Message { + return (*fastReflection_MintNFTParam)(nil) } -func (x fastReflection_MsgIssueFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgIssueFT) +func (x fastReflection_MintNFTParam_messageType) New() protoreflect.Message { + return new(fastReflection_MintNFTParam) } -func (x fastReflection_MsgIssueFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueFT +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_MsgIssueFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueFT +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_MsgIssueFT) Type() protoreflect.MessageType { - return _fastReflection_MsgIssueFT_messageType +func (x *fastReflection_MintNFTParam) Type() protoreflect.MessageType { + return _fastReflection_MintNFTParam_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgIssueFT) New() protoreflect.Message { - return new(fastReflection_MsgIssueFT) +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_MsgIssueFT) Interface() protoreflect.ProtoMessage { - return (*MsgIssueFT)(x) +func (x *fastReflection_MintNFTParam) Interface() protoreflect.ProtoMessage { + return (*MintNFTParam)(x) } // Range iterates over every populated field in an undefined order, @@ -7213,52 +7252,22 @@ func (x *fastReflection_MsgIssueFT) 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_MsgIssueFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgIssueFT_contract_id, value) { +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_MsgIssueFT_name, value) { + if !f(fd_MintNFTParam_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) { + if !f(fd_MintNFTParam_meta, value) { return } } @@ -7275,29 +7284,19 @@ func (x *fastReflection_MsgIssueFT) 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_MsgIssueFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MintNFTParam) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFT.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgIssueFT.name": + case "lbm.collection.v1.MintNFTParam.token_type": + return x.TokenType != "" + case "lbm.collection.v1.MintNFTParam.name": return x.Name != "" - case "lbm.collection.v1.MsgIssueFT.meta": + case "lbm.collection.v1.MintNFTParam.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("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", fd.FullName())) } } @@ -7307,29 +7306,19 @@ func (x *fastReflection_MsgIssueFT) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgIssueFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MintNFTParam) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgIssueFT.name": + case "lbm.collection.v1.MintNFTParam.token_type": + x.TokenType = "" + case "lbm.collection.v1.MintNFTParam.name": x.Name = "" - case "lbm.collection.v1.MsgIssueFT.meta": + case "lbm.collection.v1.MintNFTParam.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("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", fd.FullName())) } } @@ -7339,37 +7328,22 @@ func (x *fastReflection_MsgIssueFT) 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_MsgIssueFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MintNFTParam) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgIssueFT.contract_id": - value := x.ContractId + case "lbm.collection.v1.MintNFTParam.token_type": + value := x.TokenType return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgIssueFT.name": + case "lbm.collection.v1.MintNFTParam.name": value := x.Name return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgIssueFT.meta": + case "lbm.collection.v1.MintNFTParam.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("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", descriptor.FullName())) } } @@ -7383,29 +7357,19 @@ func (x *fastReflection_MsgIssueFT) Get(descriptor protoreflect.FieldDescriptor) // 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) { +func (x *fastReflection_MintNFTParam) 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": + 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.MsgIssueFT.meta": + case "lbm.collection.v1.MintNFTParam.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("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", fd.FullName())) } } @@ -7419,68 +7383,48 @@ func (x *fastReflection_MsgIssueFT) 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_MsgIssueFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MintNFTParam) 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")) + 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.MsgIssueFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT 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_MsgIssueFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MintNFTParam) 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": + case "lbm.collection.v1.MintNFTParam.token_type": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgIssueFT.to": + case "lbm.collection.v1.MintNFTParam.name": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgIssueFT.amount": + 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.MsgIssueFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MintNFTParam")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFT 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_MsgIssueFT) 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.MsgIssueFT", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MintNFTParam", d.FullName())) } panic("unreachable") } @@ -7488,7 +7432,7 @@ func (x *fastReflection_MsgIssueFT) 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_MsgIssueFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MintNFTParam) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7499,7 +7443,7 @@ func (x *fastReflection_MsgIssueFT) 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_MsgIssueFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MintNFTParam) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7511,7 +7455,7 @@ func (x *fastReflection_MsgIssueFT) 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_MsgIssueFT) IsValid() bool { +func (x *fastReflection_MintNFTParam) IsValid() bool { return x != nil } @@ -7521,9 +7465,9 @@ func (x *fastReflection_MsgIssueFT) 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_MsgIssueFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MintNFTParam) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgIssueFT) + x := input.Message.Interface().(*MintNFTParam) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7535,7 +7479,7 @@ func (x *fastReflection_MsgIssueFT) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.ContractId) + l = len(x.TokenType) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -7547,24 +7491,6 @@ func (x *fastReflection_MsgIssueFT) 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 - } - 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) } @@ -7575,7 +7501,7 @@ func (x *fastReflection_MsgIssueFT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgIssueFT) + x := input.Message.Interface().(*MintNFTParam) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7594,42 +7520,6 @@ func (x *fastReflection_MsgIssueFT) ProtoMethods() *protoiface.Methods { 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) @@ -7644,10 +7534,10 @@ func (x *fastReflection_MsgIssueFT) ProtoMethods() *protoiface.Methods { 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.TokenType) > 0 { + i -= len(x.TokenType) + copy(dAtA[i:], x.TokenType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenType))) i-- dAtA[i] = 0xa } @@ -7662,7 +7552,7 @@ func (x *fastReflection_MsgIssueFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgIssueFT) + x := input.Message.Interface().(*MintNFTParam) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7694,15 +7584,15 @@ func (x *fastReflection_MsgIssueFT) 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: MsgIssueFT: wiretype end group for non-group") + 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: MsgIssueFT: illegal tag %d (wire type %d)", fieldNum, wire) + 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 ContractId", 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 { @@ -7730,7 +7620,7 @@ func (x *fastReflection_MsgIssueFT) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ContractId = string(dAtA[iNdEx:postIndex]) + x.TokenType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -7796,141 +7686,6 @@ func (x *fastReflection_MsgIssueFT) ProtoMethods() *protoiface.Methods { } 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:]) @@ -7966,26 +7721,76 @@ func (x *fastReflection_MsgIssueFT) ProtoMethods() *protoiface.Methods { } } -var ( - md_MsgIssueFTResponse protoreflect.MessageDescriptor - fd_MsgIssueFTResponse_token_id protoreflect.FieldDescriptor -) +var _ protoreflect.List = (*_MsgBurnNFT_3_list)(nil) -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") +type _MsgBurnNFT_3_list struct { + list *[]string } -var _ protoreflect.Message = (*fastReflection_MsgIssueFTResponse)(nil) +func (x *_MsgBurnNFT_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgBurnNFT_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_MsgBurnNFT_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgBurnNFT_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgBurnNFT_3_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgBurnNFT at list field TokenIds as it is not of Message kind")) +} + +func (x *_MsgBurnNFT_3_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgBurnNFT_3_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgBurnNFT_3_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgBurnNFT protoreflect.MessageDescriptor + fd_MsgBurnNFT_contract_id protoreflect.FieldDescriptor + fd_MsgBurnNFT_from protoreflect.FieldDescriptor + fd_MsgBurnNFT_token_ids protoreflect.FieldDescriptor +) + +func init() { + file_lbm_collection_v1_tx_proto_init() + md_MsgBurnNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgBurnNFT") + fd_MsgBurnNFT_contract_id = md_MsgBurnNFT.Fields().ByName("contract_id") + fd_MsgBurnNFT_from = md_MsgBurnNFT.Fields().ByName("from") + fd_MsgBurnNFT_token_ids = md_MsgBurnNFT.Fields().ByName("token_ids") +} + +var _ protoreflect.Message = (*fastReflection_MsgBurnNFT)(nil) -type fastReflection_MsgIssueFTResponse MsgIssueFTResponse +type fastReflection_MsgBurnNFT MsgBurnNFT -func (x *MsgIssueFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgIssueFTResponse)(x) +func (x *MsgBurnNFT) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgBurnNFT)(x) } -func (x *MsgIssueFTResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgBurnNFT) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7997,43 +7802,43 @@ func (x *MsgIssueFTResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgIssueFTResponse_messageType fastReflection_MsgIssueFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgIssueFTResponse_messageType{} +var _fastReflection_MsgBurnNFT_messageType fastReflection_MsgBurnNFT_messageType +var _ protoreflect.MessageType = fastReflection_MsgBurnNFT_messageType{} -type fastReflection_MsgIssueFTResponse_messageType struct{} +type fastReflection_MsgBurnNFT_messageType struct{} -func (x fastReflection_MsgIssueFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgIssueFTResponse)(nil) +func (x fastReflection_MsgBurnNFT_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgBurnNFT)(nil) } -func (x fastReflection_MsgIssueFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgIssueFTResponse) +func (x fastReflection_MsgBurnNFT_messageType) New() protoreflect.Message { + return new(fastReflection_MsgBurnNFT) } -func (x fastReflection_MsgIssueFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueFTResponse +func (x fastReflection_MsgBurnNFT_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBurnNFT } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgIssueFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueFTResponse +func (x *fastReflection_MsgBurnNFT) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBurnNFT } // 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 +func (x *fastReflection_MsgBurnNFT) Type() protoreflect.MessageType { + return _fastReflection_MsgBurnNFT_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgIssueFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgIssueFTResponse) +func (x *fastReflection_MsgBurnNFT) New() protoreflect.Message { + return new(fastReflection_MsgBurnNFT) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgIssueFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgIssueFTResponse)(x) +func (x *fastReflection_MsgBurnNFT) Interface() protoreflect.ProtoMessage { + return (*MsgBurnNFT)(x) } // Range iterates over every populated field in an undefined order, @@ -8041,10 +7846,22 @@ func (x *fastReflection_MsgIssueFTResponse) 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_MsgIssueFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_MsgIssueFTResponse_token_id, value) { +func (x *fastReflection_MsgBurnNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ContractId != "" { + value := protoreflect.ValueOfString(x.ContractId) + if !f(fd_MsgBurnNFT_contract_id, value) { + return + } + } + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgBurnNFT_from, value) { + return + } + } + if len(x.TokenIds) != 0 { + value := protoreflect.ValueOfList(&_MsgBurnNFT_3_list{list: &x.TokenIds}) + if !f(fd_MsgBurnNFT_token_ids, value) { return } } @@ -8061,15 +7878,19 @@ func (x *fastReflection_MsgIssueFTResponse) 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_MsgIssueFTResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgBurnNFT) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFTResponse.token_id": - return x.TokenId != "" + case "lbm.collection.v1.MsgBurnNFT.contract_id": + return x.ContractId != "" + case "lbm.collection.v1.MsgBurnNFT.from": + return x.From != "" + case "lbm.collection.v1.MsgBurnNFT.token_ids": + return len(x.TokenIds) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT does not contain field %s", fd.FullName())) } } @@ -8079,15 +7900,19 @@ func (x *fastReflection_MsgIssueFTResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgIssueFTResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgBurnNFT) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFTResponse.token_id": - x.TokenId = "" + case "lbm.collection.v1.MsgBurnNFT.contract_id": + x.ContractId = "" + case "lbm.collection.v1.MsgBurnNFT.from": + x.From = "" + case "lbm.collection.v1.MsgBurnNFT.token_ids": + x.TokenIds = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT does not contain field %s", fd.FullName())) } } @@ -8097,16 +7922,25 @@ func (x *fastReflection_MsgIssueFTResponse) 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_MsgIssueFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBurnNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgIssueFTResponse.token_id": - value := x.TokenId + case "lbm.collection.v1.MsgBurnNFT.contract_id": + value := x.ContractId + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgBurnNFT.from": + value := x.From return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgBurnNFT.token_ids": + if len(x.TokenIds) == 0 { + return protoreflect.ValueOfList(&_MsgBurnNFT_3_list{}) + } + listValue := &_MsgBurnNFT_3_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.MsgIssueFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT does not contain field %s", descriptor.FullName())) } } @@ -8120,15 +7954,21 @@ func (x *fastReflection_MsgIssueFTResponse) Get(descriptor protoreflect.FieldDes // 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) { +func (x *fastReflection_MsgBurnNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFTResponse.token_id": - x.TokenId = value.Interface().(string) + case "lbm.collection.v1.MsgBurnNFT.contract_id": + x.ContractId = value.Interface().(string) + case "lbm.collection.v1.MsgBurnNFT.from": + x.From = value.Interface().(string) + case "lbm.collection.v1.MsgBurnNFT.token_ids": + lv := value.List() + clv := lv.(*_MsgBurnNFT_3_list) + x.TokenIds = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT does not contain field %s", fd.FullName())) } } @@ -8142,40 +7982,53 @@ func (x *fastReflection_MsgIssueFTResponse) 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_MsgIssueFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBurnNFT) 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")) + case "lbm.collection.v1.MsgBurnNFT.token_ids": + if x.TokenIds == nil { + x.TokenIds = []string{} + } + value := &_MsgBurnNFT_3_list{list: &x.TokenIds} + return protoreflect.ValueOfList(value) + case "lbm.collection.v1.MsgBurnNFT.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgBurnNFT is not mutable")) + case "lbm.collection.v1.MsgBurnNFT.from": + panic(fmt.Errorf("field from of message lbm.collection.v1.MsgBurnNFT is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT 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 { +func (x *fastReflection_MsgBurnNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgIssueFTResponse.token_id": + case "lbm.collection.v1.MsgBurnNFT.contract_id": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgBurnNFT.from": return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgBurnNFT.token_ids": + list := []string{} + return protoreflect.ValueOfList(&_MsgBurnNFT_3_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT 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 { +func (x *fastReflection_MsgBurnNFT) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgBurnNFT", d.FullName())) } panic("unreachable") } @@ -8183,7 +8036,7 @@ func (x *fastReflection_MsgIssueFTResponse) 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_MsgIssueFTResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgBurnNFT) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8194,7 +8047,7 @@ func (x *fastReflection_MsgIssueFTResponse) 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_MsgIssueFTResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgBurnNFT) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8206,7 +8059,7 @@ func (x *fastReflection_MsgIssueFTResponse) 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_MsgIssueFTResponse) IsValid() bool { +func (x *fastReflection_MsgBurnNFT) IsValid() bool { return x != nil } @@ -8216,9 +8069,9 @@ func (x *fastReflection_MsgIssueFTResponse) 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_MsgIssueFTResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgBurnNFT) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgIssueFTResponse) + x := input.Message.Interface().(*MsgBurnNFT) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8230,10 +8083,20 @@ func (x *fastReflection_MsgIssueFTResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.TokenId) + 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.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) } @@ -8244,7 +8107,7 @@ func (x *fastReflection_MsgIssueFTResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgIssueFTResponse) + x := input.Message.Interface().(*MsgBurnNFT) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8263,10 +8126,26 @@ func (x *fastReflection_MsgIssueFTResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) + if 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] = 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 } @@ -8281,7 +8160,7 @@ func (x *fastReflection_MsgIssueFTResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgIssueFTResponse) + x := input.Message.Interface().(*MsgBurnNFT) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8313,15 +8192,15 @@ func (x *fastReflection_MsgIssueFTResponse) 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: MsgIssueFTResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBurnNFT: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBurnNFT: 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) + 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 { @@ -8349,69 +8228,125 @@ func (x *fastReflection_MsgIssueFTResponse) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TokenId = string(dAtA[iNdEx:postIndex]) + 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 + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + 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 } - if (iNdEx + skippy) > l { + 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 } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + 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 TokenIds", wireType) } - 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, + 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_MsgIssueNFT protoreflect.MessageDescriptor - fd_MsgIssueNFT_contract_id protoreflect.FieldDescriptor - fd_MsgIssueNFT_name protoreflect.FieldDescriptor - fd_MsgIssueNFT_meta protoreflect.FieldDescriptor - fd_MsgIssueNFT_owner protoreflect.FieldDescriptor + md_MsgBurnNFTResponse protoreflect.MessageDescriptor ) 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") + md_MsgBurnNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgBurnNFTResponse") } -var _ protoreflect.Message = (*fastReflection_MsgIssueNFT)(nil) +var _ protoreflect.Message = (*fastReflection_MsgBurnNFTResponse)(nil) -type fastReflection_MsgIssueNFT MsgIssueNFT +type fastReflection_MsgBurnNFTResponse MsgBurnNFTResponse -func (x *MsgIssueNFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgIssueNFT)(x) +func (x *MsgBurnNFTResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgBurnNFTResponse)(x) } -func (x *MsgIssueNFT) slowProtoReflect() protoreflect.Message { +func (x *MsgBurnNFTResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8423,43 +8358,43 @@ func (x *MsgIssueNFT) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgIssueNFT_messageType fastReflection_MsgIssueNFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgIssueNFT_messageType{} +var _fastReflection_MsgBurnNFTResponse_messageType fastReflection_MsgBurnNFTResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgBurnNFTResponse_messageType{} -type fastReflection_MsgIssueNFT_messageType struct{} +type fastReflection_MsgBurnNFTResponse_messageType struct{} -func (x fastReflection_MsgIssueNFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgIssueNFT)(nil) +func (x fastReflection_MsgBurnNFTResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgBurnNFTResponse)(nil) } -func (x fastReflection_MsgIssueNFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgIssueNFT) +func (x fastReflection_MsgBurnNFTResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgBurnNFTResponse) } -func (x fastReflection_MsgIssueNFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueNFT +func (x fastReflection_MsgBurnNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBurnNFTResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgIssueNFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueNFT +func (x *fastReflection_MsgBurnNFTResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBurnNFTResponse } // 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 +func (x *fastReflection_MsgBurnNFTResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgBurnNFTResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgIssueNFT) New() protoreflect.Message { - return new(fastReflection_MsgIssueNFT) +func (x *fastReflection_MsgBurnNFTResponse) New() protoreflect.Message { + return new(fastReflection_MsgBurnNFTResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgIssueNFT) Interface() protoreflect.ProtoMessage { - return (*MsgIssueNFT)(x) +func (x *fastReflection_MsgBurnNFTResponse) Interface() protoreflect.ProtoMessage { + return (*MsgBurnNFTResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -8467,31 +8402,7 @@ func (x *fastReflection_MsgIssueNFT) 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_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 - } - } +func (x *fastReflection_MsgBurnNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -8505,21 +8416,13 @@ func (x *fastReflection_MsgIssueNFT) 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_MsgIssueNFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse does not contain field %s", fd.FullName())) } } @@ -8529,21 +8432,13 @@ func (x *fastReflection_MsgIssueNFT) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgIssueNFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse does not contain field %s", fd.FullName())) } } @@ -8553,25 +8448,13 @@ func (x *fastReflection_MsgIssueNFT) 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_MsgIssueNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse does not contain field %s", descriptor.FullName())) } } @@ -8585,21 +8468,13 @@ func (x *fastReflection_MsgIssueNFT) Get(descriptor protoreflect.FieldDescriptor // 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) { +func (x *fastReflection_MsgBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse does not contain field %s", fd.FullName())) } } @@ -8613,52 +8488,36 @@ func (x *fastReflection_MsgIssueNFT) Set(fd protoreflect.FieldDescriptor, value // 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 { +func (x *fastReflection_MsgBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse 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 { +func (x *fastReflection_MsgBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse 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 { +func (x *fastReflection_MsgBurnNFTResponse) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgBurnNFTResponse", d.FullName())) } panic("unreachable") } @@ -8666,7 +8525,7 @@ func (x *fastReflection_MsgIssueNFT) 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_MsgIssueNFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgBurnNFTResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8677,7 +8536,7 @@ func (x *fastReflection_MsgIssueNFT) 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_MsgIssueNFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgBurnNFTResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8689,7 +8548,7 @@ func (x *fastReflection_MsgIssueNFT) 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_MsgIssueNFT) IsValid() bool { +func (x *fastReflection_MsgBurnNFTResponse) IsValid() bool { return x != nil } @@ -8699,9 +8558,9 @@ func (x *fastReflection_MsgIssueNFT) 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_MsgIssueNFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgBurnNFTResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgIssueNFT) + x := input.Message.Interface().(*MsgBurnNFTResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8713,33 +8572,17 @@ func (x *fastReflection_MsgIssueNFT) ProtoMethods() *protoiface.Methods { 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) } - 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, + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, } } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgIssueNFT) + x := input.Message.Interface().(*MsgBurnNFTResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8758,34 +8601,6 @@ func (x *fastReflection_MsgIssueNFT) ProtoMethods() *protoiface.Methods { 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 { @@ -8797,7 +8612,7 @@ func (x *fastReflection_MsgIssueNFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgIssueNFT) + x := input.Message.Interface().(*MsgBurnNFTResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8829,140 +8644,12 @@ func (x *fastReflection_MsgIssueNFT) 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: MsgIssueNFT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBurnNFTResponse: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBurnNFTResponse: 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:]) @@ -8998,26 +8685,78 @@ func (x *fastReflection_MsgIssueNFT) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_MsgOperatorBurnNFT_4_list)(nil) + +type _MsgOperatorBurnNFT_4_list struct { + list *[]string +} + +func (x *_MsgOperatorBurnNFT_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgOperatorBurnNFT_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_MsgOperatorBurnNFT_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgOperatorBurnNFT_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgOperatorBurnNFT_4_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgOperatorBurnNFT at list field TokenIds as it is not of Message kind")) +} + +func (x *_MsgOperatorBurnNFT_4_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgOperatorBurnNFT_4_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgOperatorBurnNFT_4_list) IsValid() bool { + return x.list != nil +} + var ( - md_MsgIssueNFTResponse protoreflect.MessageDescriptor - fd_MsgIssueNFTResponse_token_type protoreflect.FieldDescriptor + md_MsgOperatorBurnNFT protoreflect.MessageDescriptor + fd_MsgOperatorBurnNFT_contract_id protoreflect.FieldDescriptor + fd_MsgOperatorBurnNFT_operator protoreflect.FieldDescriptor + fd_MsgOperatorBurnNFT_from protoreflect.FieldDescriptor + fd_MsgOperatorBurnNFT_token_ids 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") + md_MsgOperatorBurnNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorBurnNFT") + fd_MsgOperatorBurnNFT_contract_id = md_MsgOperatorBurnNFT.Fields().ByName("contract_id") + fd_MsgOperatorBurnNFT_operator = md_MsgOperatorBurnNFT.Fields().ByName("operator") + fd_MsgOperatorBurnNFT_from = md_MsgOperatorBurnNFT.Fields().ByName("from") + fd_MsgOperatorBurnNFT_token_ids = md_MsgOperatorBurnNFT.Fields().ByName("token_ids") } -var _ protoreflect.Message = (*fastReflection_MsgIssueNFTResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgOperatorBurnNFT)(nil) -type fastReflection_MsgIssueNFTResponse MsgIssueNFTResponse +type fastReflection_MsgOperatorBurnNFT MsgOperatorBurnNFT -func (x *MsgIssueNFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgIssueNFTResponse)(x) +func (x *MsgOperatorBurnNFT) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgOperatorBurnNFT)(x) } -func (x *MsgIssueNFTResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgOperatorBurnNFT) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9029,43 +8768,43 @@ func (x *MsgIssueNFTResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgIssueNFTResponse_messageType fastReflection_MsgIssueNFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgIssueNFTResponse_messageType{} +var _fastReflection_MsgOperatorBurnNFT_messageType fastReflection_MsgOperatorBurnNFT_messageType +var _ protoreflect.MessageType = fastReflection_MsgOperatorBurnNFT_messageType{} -type fastReflection_MsgIssueNFTResponse_messageType struct{} +type fastReflection_MsgOperatorBurnNFT_messageType struct{} -func (x fastReflection_MsgIssueNFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgIssueNFTResponse)(nil) +func (x fastReflection_MsgOperatorBurnNFT_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgOperatorBurnNFT)(nil) } -func (x fastReflection_MsgIssueNFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgIssueNFTResponse) +func (x fastReflection_MsgOperatorBurnNFT_messageType) New() protoreflect.Message { + return new(fastReflection_MsgOperatorBurnNFT) } -func (x fastReflection_MsgIssueNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueNFTResponse +func (x fastReflection_MsgOperatorBurnNFT_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOperatorBurnNFT } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgIssueNFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgIssueNFTResponse +func (x *fastReflection_MsgOperatorBurnNFT) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOperatorBurnNFT } // 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 +func (x *fastReflection_MsgOperatorBurnNFT) Type() protoreflect.MessageType { + return _fastReflection_MsgOperatorBurnNFT_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgIssueNFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgIssueNFTResponse) +func (x *fastReflection_MsgOperatorBurnNFT) New() protoreflect.Message { + return new(fastReflection_MsgOperatorBurnNFT) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgIssueNFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgIssueNFTResponse)(x) +func (x *fastReflection_MsgOperatorBurnNFT) Interface() protoreflect.ProtoMessage { + return (*MsgOperatorBurnNFT)(x) } // Range iterates over every populated field in an undefined order, @@ -9073,10 +8812,28 @@ func (x *fastReflection_MsgIssueNFTResponse) 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_MsgIssueNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TokenType != "" { - value := protoreflect.ValueOfString(x.TokenType) - if !f(fd_MsgIssueNFTResponse_token_type, value) { +func (x *fastReflection_MsgOperatorBurnNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ContractId != "" { + value := protoreflect.ValueOfString(x.ContractId) + if !f(fd_MsgOperatorBurnNFT_contract_id, value) { + return + } + } + if x.Operator != "" { + value := protoreflect.ValueOfString(x.Operator) + if !f(fd_MsgOperatorBurnNFT_operator, value) { + return + } + } + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgOperatorBurnNFT_from, value) { + return + } + } + if len(x.TokenIds) != 0 { + value := protoreflect.ValueOfList(&_MsgOperatorBurnNFT_4_list{list: &x.TokenIds}) + if !f(fd_MsgOperatorBurnNFT_token_ids, value) { return } } @@ -9093,15 +8850,21 @@ func (x *fastReflection_MsgIssueNFTResponse) 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_MsgIssueNFTResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgOperatorBurnNFT) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFTResponse.token_type": - return x.TokenType != "" + case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": + return x.ContractId != "" + case "lbm.collection.v1.MsgOperatorBurnNFT.operator": + return x.Operator != "" + case "lbm.collection.v1.MsgOperatorBurnNFT.from": + return x.From != "" + case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": + return len(x.TokenIds) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT does not contain field %s", fd.FullName())) } } @@ -9111,15 +8874,21 @@ func (x *fastReflection_MsgIssueNFTResponse) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgIssueNFTResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgOperatorBurnNFT) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFTResponse.token_type": - x.TokenType = "" + case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": + x.ContractId = "" + case "lbm.collection.v1.MsgOperatorBurnNFT.operator": + x.Operator = "" + case "lbm.collection.v1.MsgOperatorBurnNFT.from": + x.From = "" + case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": + x.TokenIds = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT does not contain field %s", fd.FullName())) } } @@ -9129,16 +8898,28 @@ func (x *fastReflection_MsgIssueNFTResponse) 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_MsgIssueNFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOperatorBurnNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgIssueNFTResponse.token_type": - value := x.TokenType + case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": + value := x.ContractId return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgOperatorBurnNFT.operator": + value := x.Operator + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgOperatorBurnNFT.from": + value := x.From + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": + if len(x.TokenIds) == 0 { + return protoreflect.ValueOfList(&_MsgOperatorBurnNFT_4_list{}) + } + listValue := &_MsgOperatorBurnNFT_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.MsgIssueNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT does not contain field %s", descriptor.FullName())) } } @@ -9152,15 +8933,23 @@ func (x *fastReflection_MsgIssueNFTResponse) Get(descriptor protoreflect.FieldDe // 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) { +func (x *fastReflection_MsgOperatorBurnNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFTResponse.token_type": - x.TokenType = value.Interface().(string) + case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": + x.ContractId = value.Interface().(string) + case "lbm.collection.v1.MsgOperatorBurnNFT.operator": + x.Operator = value.Interface().(string) + case "lbm.collection.v1.MsgOperatorBurnNFT.from": + x.From = value.Interface().(string) + case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": + lv := value.List() + clv := lv.(*_MsgOperatorBurnNFT_4_list) + x.TokenIds = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT does not contain field %s", fd.FullName())) } } @@ -9174,40 +8963,57 @@ func (x *fastReflection_MsgIssueNFTResponse) 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_MsgIssueNFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOperatorBurnNFT) 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")) + case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": + if x.TokenIds == nil { + x.TokenIds = []string{} + } + value := &_MsgOperatorBurnNFT_4_list{list: &x.TokenIds} + return protoreflect.ValueOfList(value) + case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgOperatorBurnNFT is not mutable")) + case "lbm.collection.v1.MsgOperatorBurnNFT.operator": + panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgOperatorBurnNFT is not mutable")) + case "lbm.collection.v1.MsgOperatorBurnNFT.from": + panic(fmt.Errorf("field from of message lbm.collection.v1.MsgOperatorBurnNFT is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT 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 { +func (x *fastReflection_MsgOperatorBurnNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgIssueNFTResponse.token_type": + case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgOperatorBurnNFT.operator": return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgOperatorBurnNFT.from": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": + list := []string{} + return protoreflect.ValueOfList(&_MsgOperatorBurnNFT_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgIssueNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFT")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgIssueNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT 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 { +func (x *fastReflection_MsgOperatorBurnNFT) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorBurnNFT", d.FullName())) } panic("unreachable") } @@ -9215,7 +9021,7 @@ func (x *fastReflection_MsgIssueNFTResponse) 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_MsgIssueNFTResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgOperatorBurnNFT) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9226,7 +9032,7 @@ func (x *fastReflection_MsgIssueNFTResponse) 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_MsgIssueNFTResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgOperatorBurnNFT) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9238,7 +9044,7 @@ func (x *fastReflection_MsgIssueNFTResponse) 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_MsgIssueNFTResponse) IsValid() bool { +func (x *fastReflection_MsgOperatorBurnNFT) IsValid() bool { return x != nil } @@ -9248,9 +9054,9 @@ func (x *fastReflection_MsgIssueNFTResponse) 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_MsgIssueNFTResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgOperatorBurnNFT) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgIssueNFTResponse) + x := input.Message.Interface().(*MsgOperatorBurnNFT) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9262,10 +9068,24 @@ func (x *fastReflection_MsgIssueNFTResponse) ProtoMethods() *protoiface.Methods var n int var l int _ = l - l = len(x.TokenType) + 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.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) } @@ -9276,7 +9096,7 @@ func (x *fastReflection_MsgIssueNFTResponse) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgIssueNFTResponse) + x := input.Message.Interface().(*MsgOperatorBurnNFT) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9295,10 +9115,33 @@ func (x *fastReflection_MsgIssueNFTResponse) ProtoMethods() *protoiface.Methods 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))) + 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.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 } @@ -9313,7 +9156,7 @@ func (x *fastReflection_MsgIssueNFTResponse) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgIssueNFTResponse) + x := input.Message.Interface().(*MsgOperatorBurnNFT) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9345,15 +9188,15 @@ func (x *fastReflection_MsgIssueNFTResponse) 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: MsgIssueNFTResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorBurnNFT: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorBurnNFT: 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) + 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 { @@ -9381,15 +9224,111 @@ func (x *fastReflection_MsgIssueNFTResponse) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TokenType = string(dAtA[iNdEx:postIndex]) + 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 + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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 { @@ -9418,83 +9357,24 @@ func (x *fastReflection_MsgIssueNFTResponse) ProtoMethods() *protoiface.Methods } } -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 + md_MsgOperatorBurnNFTResponse protoreflect.MessageDescriptor ) 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") + md_MsgOperatorBurnNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorBurnNFTResponse") } -var _ protoreflect.Message = (*fastReflection_MsgMintFT)(nil) +var _ protoreflect.Message = (*fastReflection_MsgOperatorBurnNFTResponse)(nil) -type fastReflection_MsgMintFT MsgMintFT +type fastReflection_MsgOperatorBurnNFTResponse MsgOperatorBurnNFTResponse -func (x *MsgMintFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMintFT)(x) +func (x *MsgOperatorBurnNFTResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgOperatorBurnNFTResponse)(x) } -func (x *MsgMintFT) slowProtoReflect() protoreflect.Message { +func (x *MsgOperatorBurnNFTResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9506,43 +9386,43 @@ func (x *MsgMintFT) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgMintFT_messageType fastReflection_MsgMintFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgMintFT_messageType{} +var _fastReflection_MsgOperatorBurnNFTResponse_messageType fastReflection_MsgOperatorBurnNFTResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgOperatorBurnNFTResponse_messageType{} -type fastReflection_MsgMintFT_messageType struct{} +type fastReflection_MsgOperatorBurnNFTResponse_messageType struct{} -func (x fastReflection_MsgMintFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMintFT)(nil) +func (x fastReflection_MsgOperatorBurnNFTResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgOperatorBurnNFTResponse)(nil) } -func (x fastReflection_MsgMintFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMintFT) +func (x fastReflection_MsgOperatorBurnNFTResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgOperatorBurnNFTResponse) } -func (x fastReflection_MsgMintFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintFT +func (x fastReflection_MsgOperatorBurnNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOperatorBurnNFTResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgMintFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintFT +func (x *fastReflection_MsgOperatorBurnNFTResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOperatorBurnNFTResponse } // 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 +func (x *fastReflection_MsgOperatorBurnNFTResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgOperatorBurnNFTResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMintFT) New() protoreflect.Message { - return new(fastReflection_MsgMintFT) +func (x *fastReflection_MsgOperatorBurnNFTResponse) New() protoreflect.Message { + return new(fastReflection_MsgOperatorBurnNFTResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMintFT) Interface() protoreflect.ProtoMessage { - return (*MsgMintFT)(x) +func (x *fastReflection_MsgOperatorBurnNFTResponse) Interface() protoreflect.ProtoMessage { + return (*MsgOperatorBurnNFTResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -9550,31 +9430,7 @@ func (x *fastReflection_MsgMintFT) 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_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 - } - } +func (x *fastReflection_MsgOperatorBurnNFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -9588,21 +9444,13 @@ func (x *fastReflection_MsgMintFT) 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_MsgMintFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgOperatorBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse does not contain field %s", fd.FullName())) } } @@ -9612,21 +9460,13 @@ func (x *fastReflection_MsgMintFT) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgMintFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgOperatorBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse does not contain field %s", fd.FullName())) } } @@ -9636,28 +9476,13 @@ func (x *fastReflection_MsgMintFT) 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_MsgMintFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOperatorBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse does not contain field %s", descriptor.FullName())) } } @@ -9671,23 +9496,13 @@ func (x *fastReflection_MsgMintFT) Get(descriptor protoreflect.FieldDescriptor) // 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) { +func (x *fastReflection_MsgOperatorBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse does not contain field %s", fd.FullName())) } } @@ -9701,57 +9516,36 @@ func (x *fastReflection_MsgMintFT) 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_MsgMintFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOperatorBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse 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 { +func (x *fastReflection_MsgOperatorBurnNFTResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFTResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse 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 { +func (x *fastReflection_MsgOperatorBurnNFTResponse) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorBurnNFTResponse", d.FullName())) } panic("unreachable") } @@ -9759,7 +9553,7 @@ func (x *fastReflection_MsgMintFT) 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_MsgMintFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgOperatorBurnNFTResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9770,7 +9564,7 @@ func (x *fastReflection_MsgMintFT) 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_MsgMintFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgOperatorBurnNFTResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9782,7 +9576,7 @@ func (x *fastReflection_MsgMintFT) 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_MsgMintFT) IsValid() bool { +func (x *fastReflection_MsgOperatorBurnNFTResponse) IsValid() bool { return x != nil } @@ -9792,9 +9586,9 @@ func (x *fastReflection_MsgMintFT) 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_MsgMintFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgOperatorBurnNFTResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMintFT) + x := input.Message.Interface().(*MsgOperatorBurnNFTResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9806,24 +9600,6 @@ func (x *fastReflection_MsgMintFT) 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.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) } @@ -9834,7 +9610,7 @@ func (x *fastReflection_MsgMintFT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgMintFT) + x := input.Message.Interface().(*MsgOperatorBurnNFTResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9853,47 +9629,10 @@ func (x *fastReflection_MsgMintFT) 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))) - 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 + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA } return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9901,7 +9640,7 @@ func (x *fastReflection_MsgMintFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgMintFT) + x := input.Message.Interface().(*MsgOperatorBurnNFTResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9933,142 +9672,12 @@ func (x *fastReflection_MsgMintFT) 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: MsgMintFT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorBurnNFTResponse: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorBurnNFTResponse: 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:]) @@ -10104,24 +9713,85 @@ func (x *fastReflection_MsgMintFT) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_MsgModify_5_list)(nil) + +type _MsgModify_5_list struct { + list *[]*Attribute +} + +func (x *_MsgModify_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgModify_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgModify_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Attribute) + (*x.list)[i] = concreteValue +} + +func (x *_MsgModify_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Attribute) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgModify_5_list) AppendMutable() protoreflect.Value { + v := new(Attribute) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgModify_5_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgModify_5_list) NewElement() protoreflect.Value { + v := new(Attribute) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgModify_5_list) IsValid() bool { + return x.list != nil +} + var ( - md_MsgMintFTResponse protoreflect.MessageDescriptor + md_MsgModify protoreflect.MessageDescriptor + fd_MsgModify_contract_id protoreflect.FieldDescriptor + fd_MsgModify_owner protoreflect.FieldDescriptor + fd_MsgModify_token_type protoreflect.FieldDescriptor + fd_MsgModify_token_index protoreflect.FieldDescriptor + fd_MsgModify_changes protoreflect.FieldDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgMintFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgMintFTResponse") + md_MsgModify = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgModify") + fd_MsgModify_contract_id = md_MsgModify.Fields().ByName("contract_id") + fd_MsgModify_owner = md_MsgModify.Fields().ByName("owner") + fd_MsgModify_token_type = md_MsgModify.Fields().ByName("token_type") + fd_MsgModify_token_index = md_MsgModify.Fields().ByName("token_index") + fd_MsgModify_changes = md_MsgModify.Fields().ByName("changes") } -var _ protoreflect.Message = (*fastReflection_MsgMintFTResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgModify)(nil) -type fastReflection_MsgMintFTResponse MsgMintFTResponse +type fastReflection_MsgModify MsgModify -func (x *MsgMintFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMintFTResponse)(x) +func (x *MsgModify) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgModify)(x) } -func (x *MsgMintFTResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgModify) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -10133,43 +9803,43 @@ func (x *MsgMintFTResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgMintFTResponse_messageType fastReflection_MsgMintFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgMintFTResponse_messageType{} +var _fastReflection_MsgModify_messageType fastReflection_MsgModify_messageType +var _ protoreflect.MessageType = fastReflection_MsgModify_messageType{} -type fastReflection_MsgMintFTResponse_messageType struct{} +type fastReflection_MsgModify_messageType struct{} -func (x fastReflection_MsgMintFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMintFTResponse)(nil) +func (x fastReflection_MsgModify_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgModify)(nil) } -func (x fastReflection_MsgMintFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMintFTResponse) +func (x fastReflection_MsgModify_messageType) New() protoreflect.Message { + return new(fastReflection_MsgModify) } -func (x fastReflection_MsgMintFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintFTResponse +func (x fastReflection_MsgModify_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgModify } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgMintFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintFTResponse +func (x *fastReflection_MsgModify) Descriptor() protoreflect.MessageDescriptor { + return md_MsgModify } // 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 +func (x *fastReflection_MsgModify) Type() protoreflect.MessageType { + return _fastReflection_MsgModify_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMintFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgMintFTResponse) +func (x *fastReflection_MsgModify) New() protoreflect.Message { + return new(fastReflection_MsgModify) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMintFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgMintFTResponse)(x) +func (x *fastReflection_MsgModify) Interface() protoreflect.ProtoMessage { + return (*MsgModify)(x) } // Range iterates over every populated field in an undefined order, @@ -10177,43 +9847,93 @@ func (x *fastReflection_MsgMintFTResponse) 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_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")) +func (x *fastReflection_MsgModify) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ContractId != "" { + value := protoreflect.ValueOfString(x.ContractId) + if !f(fd_MsgModify_contract_id, value) { + return } - 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) { + if x.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_MsgModify_owner, value) { + return + } + } + if x.TokenType != "" { + value := protoreflect.ValueOfString(x.TokenType) + if !f(fd_MsgModify_token_type, value) { + return + } + } + if x.TokenIndex != "" { + value := protoreflect.ValueOfString(x.TokenIndex) + if !f(fd_MsgModify_token_index, value) { + return + } + } + if len(x.Changes) != 0 { + value := protoreflect.ValueOfList(&_MsgModify_5_list{list: &x.Changes}) + if !f(fd_MsgModify_changes, 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_MsgModify) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "lbm.collection.v1.MsgModify.contract_id": + return x.ContractId != "" + case "lbm.collection.v1.MsgModify.owner": + return x.Owner != "" + case "lbm.collection.v1.MsgModify.token_type": + return x.TokenType != "" + case "lbm.collection.v1.MsgModify.token_index": + return x.TokenIndex != "" + case "lbm.collection.v1.MsgModify.changes": + return len(x.Changes) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) + } + panic(fmt.Errorf("message lbm.collection.v1.MsgModify 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_MsgModify) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "lbm.collection.v1.MsgModify.contract_id": + x.ContractId = "" + case "lbm.collection.v1.MsgModify.owner": + x.Owner = "" + case "lbm.collection.v1.MsgModify.token_type": + x.TokenType = "" + case "lbm.collection.v1.MsgModify.token_index": + x.TokenIndex = "" + case "lbm.collection.v1.MsgModify.changes": + x.Changes = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgModify does not contain field %s", fd.FullName())) } } @@ -10223,13 +9943,31 @@ func (x *fastReflection_MsgMintFTResponse) 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_MsgMintFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgModify) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "lbm.collection.v1.MsgModify.contract_id": + value := x.ContractId + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgModify.owner": + value := x.Owner + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgModify.token_type": + value := x.TokenType + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgModify.token_index": + value := x.TokenIndex + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgModify.changes": + if len(x.Changes) == 0 { + return protoreflect.ValueOfList(&_MsgModify_5_list{}) + } + listValue := &_MsgModify_5_list{list: &x.Changes} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFTResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgModify does not contain field %s", descriptor.FullName())) } } @@ -10243,13 +9981,25 @@ func (x *fastReflection_MsgMintFTResponse) Get(descriptor protoreflect.FieldDesc // 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) { +func (x *fastReflection_MsgModify) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "lbm.collection.v1.MsgModify.contract_id": + x.ContractId = value.Interface().(string) + case "lbm.collection.v1.MsgModify.owner": + x.Owner = value.Interface().(string) + case "lbm.collection.v1.MsgModify.token_type": + x.TokenType = value.Interface().(string) + case "lbm.collection.v1.MsgModify.token_index": + x.TokenIndex = value.Interface().(string) + case "lbm.collection.v1.MsgModify.changes": + lv := value.List() + clv := lv.(*_MsgModify_5_list) + x.Changes = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgModify does not contain field %s", fd.FullName())) } } @@ -10263,36 +10013,61 @@ func (x *fastReflection_MsgMintFTResponse) 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_MsgMintFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgModify) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "lbm.collection.v1.MsgModify.changes": + if x.Changes == nil { + x.Changes = []*Attribute{} + } + value := &_MsgModify_5_list{list: &x.Changes} + return protoreflect.ValueOfList(value) + case "lbm.collection.v1.MsgModify.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgModify is not mutable")) + case "lbm.collection.v1.MsgModify.owner": + panic(fmt.Errorf("field owner of message lbm.collection.v1.MsgModify is not mutable")) + case "lbm.collection.v1.MsgModify.token_type": + panic(fmt.Errorf("field token_type of message lbm.collection.v1.MsgModify is not mutable")) + case "lbm.collection.v1.MsgModify.token_index": + panic(fmt.Errorf("field token_index of message lbm.collection.v1.MsgModify is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgModify 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 { +func (x *fastReflection_MsgModify) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "lbm.collection.v1.MsgModify.contract_id": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgModify.owner": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgModify.token_type": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgModify.token_index": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgModify.changes": + list := []*Attribute{} + return protoreflect.ValueOfList(&_MsgModify_5_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgModify 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 { +func (x *fastReflection_MsgModify) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgModify", d.FullName())) } panic("unreachable") } @@ -10300,7 +10075,7 @@ func (x *fastReflection_MsgMintFTResponse) 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_MsgMintFTResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgModify) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10311,7 +10086,7 @@ func (x *fastReflection_MsgMintFTResponse) 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_MsgMintFTResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgModify) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10323,7 +10098,7 @@ func (x *fastReflection_MsgMintFTResponse) 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_MsgMintFTResponse) IsValid() bool { +func (x *fastReflection_MsgModify) IsValid() bool { return x != nil } @@ -10333,9 +10108,9 @@ func (x *fastReflection_MsgMintFTResponse) 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_MsgMintFTResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgModify) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMintFTResponse) + x := input.Message.Interface().(*MsgModify) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10347,6 +10122,28 @@ func (x *fastReflection_MsgMintFTResponse) 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.Owner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TokenType) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TokenIndex) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Changes) > 0 { + for _, e := range x.Changes { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -10357,7 +10154,7 @@ func (x *fastReflection_MsgMintFTResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgMintFTResponse) + x := input.Message.Interface().(*MsgModify) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10376,6 +10173,50 @@ func (x *fastReflection_MsgMintFTResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Changes) > 0 { + for iNdEx := len(x.Changes) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Changes[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] = 0x2a + } + } + if len(x.TokenIndex) > 0 { + i -= len(x.TokenIndex) + copy(dAtA[i:], x.TokenIndex) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenIndex))) + i-- + dAtA[i] = 0x22 + } + 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 + } + 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] = 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 { @@ -10387,7 +10228,7 @@ func (x *fastReflection_MsgMintFTResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgMintFTResponse) + x := input.Message.Interface().(*MsgModify) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10419,28 +10260,190 @@ func (x *fastReflection_MsgMintFTResponse) 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: MsgMintFTResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgModify: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgModify: 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 + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + 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 } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - iNdEx += skippy + 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 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 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 TokenIndex", 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.TokenIndex = 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 Changes", 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.Changes = append(x.Changes, &Attribute{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Changes[len(x.Changes)-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 } } @@ -10460,83 +10463,24 @@ func (x *fastReflection_MsgMintFTResponse) ProtoMethods() *protoiface.Methods { } } -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 + md_MsgModifyResponse protoreflect.MessageDescriptor ) 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") + md_MsgModifyResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgModifyResponse") } -var _ protoreflect.Message = (*fastReflection_MsgMintNFT)(nil) +var _ protoreflect.Message = (*fastReflection_MsgModifyResponse)(nil) -type fastReflection_MsgMintNFT MsgMintNFT +type fastReflection_MsgModifyResponse MsgModifyResponse -func (x *MsgMintNFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMintNFT)(x) +func (x *MsgModifyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgModifyResponse)(x) } -func (x *MsgMintNFT) slowProtoReflect() protoreflect.Message { +func (x *MsgModifyResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -10548,43 +10492,43 @@ func (x *MsgMintNFT) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgMintNFT_messageType fastReflection_MsgMintNFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgMintNFT_messageType{} +var _fastReflection_MsgModifyResponse_messageType fastReflection_MsgModifyResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgModifyResponse_messageType{} -type fastReflection_MsgMintNFT_messageType struct{} +type fastReflection_MsgModifyResponse_messageType struct{} -func (x fastReflection_MsgMintNFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMintNFT)(nil) +func (x fastReflection_MsgModifyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgModifyResponse)(nil) } -func (x fastReflection_MsgMintNFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMintNFT) +func (x fastReflection_MsgModifyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgModifyResponse) } -func (x fastReflection_MsgMintNFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintNFT +func (x fastReflection_MsgModifyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgModifyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgMintNFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintNFT +func (x *fastReflection_MsgModifyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgModifyResponse } // 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 +func (x *fastReflection_MsgModifyResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgModifyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMintNFT) New() protoreflect.Message { - return new(fastReflection_MsgMintNFT) +func (x *fastReflection_MsgModifyResponse) New() protoreflect.Message { + return new(fastReflection_MsgModifyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMintNFT) Interface() protoreflect.ProtoMessage { - return (*MsgMintNFT)(x) +func (x *fastReflection_MsgModifyResponse) Interface() protoreflect.ProtoMessage { + return (*MsgModifyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -10592,31 +10536,7 @@ func (x *fastReflection_MsgMintNFT) 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_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 - } - } +func (x *fastReflection_MsgModifyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -10630,21 +10550,13 @@ func (x *fastReflection_MsgMintNFT) 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_MsgMintNFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgModifyResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModifyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse does not contain field %s", fd.FullName())) } } @@ -10654,21 +10566,13 @@ func (x *fastReflection_MsgMintNFT) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgMintNFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgModifyResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModifyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse does not contain field %s", fd.FullName())) } } @@ -10678,28 +10582,13 @@ func (x *fastReflection_MsgMintNFT) 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_MsgMintNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgModifyResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModifyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse does not contain field %s", descriptor.FullName())) } } @@ -10713,23 +10602,13 @@ func (x *fastReflection_MsgMintNFT) Get(descriptor protoreflect.FieldDescriptor) // 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) { +func (x *fastReflection_MsgModifyResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModifyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse does not contain field %s", fd.FullName())) } } @@ -10743,57 +10622,36 @@ func (x *fastReflection_MsgMintNFT) 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_MsgMintNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgModifyResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModifyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse 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 { +func (x *fastReflection_MsgModifyResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModifyResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse 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 { +func (x *fastReflection_MsgModifyResponse) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgModifyResponse", d.FullName())) } panic("unreachable") } @@ -10801,7 +10659,7 @@ func (x *fastReflection_MsgMintNFT) 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_MsgMintNFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgModifyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10812,7 +10670,7 @@ func (x *fastReflection_MsgMintNFT) 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_MsgMintNFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgModifyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10824,7 +10682,7 @@ func (x *fastReflection_MsgMintNFT) 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_MsgMintNFT) IsValid() bool { +func (x *fastReflection_MsgModifyResponse) IsValid() bool { return x != nil } @@ -10834,9 +10692,9 @@ func (x *fastReflection_MsgMintNFT) 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_MsgMintNFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgModifyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMintNFT) + x := input.Message.Interface().(*MsgModifyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10848,24 +10706,6 @@ func (x *fastReflection_MsgMintNFT) 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.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) } @@ -10876,7 +10716,7 @@ func (x *fastReflection_MsgMintNFT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgMintNFT) + x := input.Message.Interface().(*MsgModifyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10895,43 +10735,6 @@ func (x *fastReflection_MsgMintNFT) ProtoMethods() *protoiface.Methods { 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 { @@ -10943,7 +10746,7 @@ func (x *fastReflection_MsgMintNFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgMintNFT) + x := input.Message.Interface().(*MsgModifyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10975,156 +10778,26 @@ func (x *fastReflection_MsgMintNFT) 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: MsgMintNFT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgModifyResponse: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgModifyResponse: 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 + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > 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]...) + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } @@ -11146,72 +10819,32 @@ func (x *fastReflection_MsgMintNFT) ProtoMethods() *protoiface.Methods { } } -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 + md_MsgGrantPermission protoreflect.MessageDescriptor + fd_MsgGrantPermission_contract_id protoreflect.FieldDescriptor + fd_MsgGrantPermission_from protoreflect.FieldDescriptor + fd_MsgGrantPermission_to protoreflect.FieldDescriptor + fd_MsgGrantPermission_permission 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") + md_MsgGrantPermission = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgGrantPermission") + fd_MsgGrantPermission_contract_id = md_MsgGrantPermission.Fields().ByName("contract_id") + fd_MsgGrantPermission_from = md_MsgGrantPermission.Fields().ByName("from") + fd_MsgGrantPermission_to = md_MsgGrantPermission.Fields().ByName("to") + fd_MsgGrantPermission_permission = md_MsgGrantPermission.Fields().ByName("permission") } -var _ protoreflect.Message = (*fastReflection_MsgMintNFTResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgGrantPermission)(nil) -type fastReflection_MsgMintNFTResponse MsgMintNFTResponse +type fastReflection_MsgGrantPermission MsgGrantPermission -func (x *MsgMintNFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMintNFTResponse)(x) +func (x *MsgGrantPermission) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgGrantPermission)(x) } -func (x *MsgMintNFTResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgGrantPermission) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11223,43 +10856,43 @@ func (x *MsgMintNFTResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgMintNFTResponse_messageType fastReflection_MsgMintNFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgMintNFTResponse_messageType{} +var _fastReflection_MsgGrantPermission_messageType fastReflection_MsgGrantPermission_messageType +var _ protoreflect.MessageType = fastReflection_MsgGrantPermission_messageType{} -type fastReflection_MsgMintNFTResponse_messageType struct{} +type fastReflection_MsgGrantPermission_messageType struct{} -func (x fastReflection_MsgMintNFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMintNFTResponse)(nil) +func (x fastReflection_MsgGrantPermission_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgGrantPermission)(nil) } -func (x fastReflection_MsgMintNFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMintNFTResponse) +func (x fastReflection_MsgGrantPermission_messageType) New() protoreflect.Message { + return new(fastReflection_MsgGrantPermission) } -func (x fastReflection_MsgMintNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintNFTResponse +func (x fastReflection_MsgGrantPermission_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgGrantPermission } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgMintNFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMintNFTResponse +func (x *fastReflection_MsgGrantPermission) Descriptor() protoreflect.MessageDescriptor { + return md_MsgGrantPermission } // 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 +func (x *fastReflection_MsgGrantPermission) Type() protoreflect.MessageType { + return _fastReflection_MsgGrantPermission_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMintNFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgMintNFTResponse) +func (x *fastReflection_MsgGrantPermission) New() protoreflect.Message { + return new(fastReflection_MsgGrantPermission) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMintNFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgMintNFTResponse)(x) +func (x *fastReflection_MsgGrantPermission) Interface() protoreflect.ProtoMessage { + return (*MsgGrantPermission)(x) } // Range iterates over every populated field in an undefined order, @@ -11267,10 +10900,28 @@ func (x *fastReflection_MsgMintNFTResponse) 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_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) { +func (x *fastReflection_MsgGrantPermission) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ContractId != "" { + value := protoreflect.ValueOfString(x.ContractId) + if !f(fd_MsgGrantPermission_contract_id, value) { + return + } + } + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgGrantPermission_from, value) { + return + } + } + if x.To != "" { + value := protoreflect.ValueOfString(x.To) + if !f(fd_MsgGrantPermission_to, value) { + return + } + } + if x.Permission != "" { + value := protoreflect.ValueOfString(x.Permission) + if !f(fd_MsgGrantPermission_permission, value) { return } } @@ -11287,15 +10938,21 @@ func (x *fastReflection_MsgMintNFTResponse) 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_MsgMintNFTResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgGrantPermission) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFTResponse.token_ids": - return len(x.TokenIds) != 0 + case "lbm.collection.v1.MsgGrantPermission.contract_id": + return x.ContractId != "" + case "lbm.collection.v1.MsgGrantPermission.from": + return x.From != "" + case "lbm.collection.v1.MsgGrantPermission.to": + return x.To != "" + case "lbm.collection.v1.MsgGrantPermission.permission": + return x.Permission != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission does not contain field %s", fd.FullName())) } } @@ -11305,15 +10962,21 @@ func (x *fastReflection_MsgMintNFTResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgMintNFTResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgGrantPermission) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgMintNFTResponse.token_ids": - x.TokenIds = nil + case "lbm.collection.v1.MsgGrantPermission.contract_id": + x.ContractId = "" + case "lbm.collection.v1.MsgGrantPermission.from": + x.From = "" + case "lbm.collection.v1.MsgGrantPermission.to": + x.To = "" + case "lbm.collection.v1.MsgGrantPermission.permission": + x.Permission = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission does not contain field %s", fd.FullName())) } } @@ -11323,19 +10986,25 @@ func (x *fastReflection_MsgMintNFTResponse) 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_MsgMintNFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgGrantPermission) 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) + case "lbm.collection.v1.MsgGrantPermission.contract_id": + value := x.ContractId + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgGrantPermission.from": + value := x.From + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgGrantPermission.to": + value := x.To + return protoreflect.ValueOfString(value) + case "lbm.collection.v1.MsgGrantPermission.permission": + value := x.Permission + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission does not contain field %s", descriptor.FullName())) } } @@ -11349,17 +11018,21 @@ func (x *fastReflection_MsgMintNFTResponse) Get(descriptor protoreflect.FieldDes // 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) { +func (x *fastReflection_MsgGrantPermission) 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 + case "lbm.collection.v1.MsgGrantPermission.contract_id": + x.ContractId = value.Interface().(string) + case "lbm.collection.v1.MsgGrantPermission.from": + x.From = value.Interface().(string) + case "lbm.collection.v1.MsgGrantPermission.to": + x.To = value.Interface().(string) + case "lbm.collection.v1.MsgGrantPermission.permission": + x.Permission = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission does not contain field %s", fd.FullName())) } } @@ -11373,45 +11046,52 @@ func (x *fastReflection_MsgMintNFTResponse) 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_MsgMintNFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgGrantPermission) 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) + case "lbm.collection.v1.MsgGrantPermission.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgGrantPermission is not mutable")) + case "lbm.collection.v1.MsgGrantPermission.from": + panic(fmt.Errorf("field from of message lbm.collection.v1.MsgGrantPermission is not mutable")) + case "lbm.collection.v1.MsgGrantPermission.to": + panic(fmt.Errorf("field to of message lbm.collection.v1.MsgGrantPermission is not mutable")) + case "lbm.collection.v1.MsgGrantPermission.permission": + panic(fmt.Errorf("field permission of message lbm.collection.v1.MsgGrantPermission is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission 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 { +func (x *fastReflection_MsgGrantPermission) 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}) + case "lbm.collection.v1.MsgGrantPermission.contract_id": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgGrantPermission.from": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgGrantPermission.to": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgGrantPermission.permission": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgMintNFTResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgMintNFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission 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 { +func (x *fastReflection_MsgGrantPermission) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgGrantPermission", d.FullName())) } panic("unreachable") } @@ -11419,7 +11099,7 @@ func (x *fastReflection_MsgMintNFTResponse) 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_MsgMintNFTResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgGrantPermission) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11430,7 +11110,7 @@ func (x *fastReflection_MsgMintNFTResponse) 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_MsgMintNFTResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgGrantPermission) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11442,7 +11122,7 @@ func (x *fastReflection_MsgMintNFTResponse) 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_MsgMintNFTResponse) IsValid() bool { +func (x *fastReflection_MsgGrantPermission) IsValid() bool { return x != nil } @@ -11452,9 +11132,9 @@ func (x *fastReflection_MsgMintNFTResponse) 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_MsgMintNFTResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgGrantPermission) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMintNFTResponse) + x := input.Message.Interface().(*MsgGrantPermission) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11466,11 +11146,21 @@ func (x *fastReflection_MsgMintNFTResponse) ProtoMethods() *protoiface.Methods { 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)) - } + 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)) + } + l = len(x.Permission) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -11482,7 +11172,7 @@ func (x *fastReflection_MsgMintNFTResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgMintNFTResponse) + x := input.Message.Interface().(*MsgGrantPermission) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11501,14 +11191,33 @@ func (x *fastReflection_MsgMintNFTResponse) 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] = 0xa - } + if len(x.Permission) > 0 { + i -= len(x.Permission) + copy(dAtA[i:], x.Permission) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Permission))) + 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...) @@ -11521,7 +11230,7 @@ func (x *fastReflection_MsgMintNFTResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgMintNFTResponse) + x := input.Message.Interface().(*MsgGrantPermission) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11553,15 +11262,15 @@ func (x *fastReflection_MsgMintNFTResponse) 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: MsgMintNFTResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGrantPermission: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGrantPermission: 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) + 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 { @@ -11589,7 +11298,103 @@ func (x *fastReflection_MsgMintNFTResponse) 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.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 Permission", 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.Permission = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -11627,29 +11432,23 @@ func (x *fastReflection_MsgMintNFTResponse) ProtoMethods() *protoiface.Methods { } var ( - md_MintNFTParam protoreflect.MessageDescriptor - fd_MintNFTParam_token_type protoreflect.FieldDescriptor - fd_MintNFTParam_name protoreflect.FieldDescriptor - fd_MintNFTParam_meta protoreflect.FieldDescriptor + md_MsgGrantPermissionResponse protoreflect.MessageDescriptor ) 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") + md_MsgGrantPermissionResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgGrantPermissionResponse") } -var _ protoreflect.Message = (*fastReflection_MintNFTParam)(nil) +var _ protoreflect.Message = (*fastReflection_MsgGrantPermissionResponse)(nil) -type fastReflection_MintNFTParam MintNFTParam +type fastReflection_MsgGrantPermissionResponse MsgGrantPermissionResponse -func (x *MintNFTParam) ProtoReflect() protoreflect.Message { - return (*fastReflection_MintNFTParam)(x) +func (x *MsgGrantPermissionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgGrantPermissionResponse)(x) } -func (x *MintNFTParam) slowProtoReflect() protoreflect.Message { +func (x *MsgGrantPermissionResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11661,43 +11460,43 @@ func (x *MintNFTParam) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MintNFTParam_messageType fastReflection_MintNFTParam_messageType -var _ protoreflect.MessageType = fastReflection_MintNFTParam_messageType{} +var _fastReflection_MsgGrantPermissionResponse_messageType fastReflection_MsgGrantPermissionResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgGrantPermissionResponse_messageType{} -type fastReflection_MintNFTParam_messageType struct{} +type fastReflection_MsgGrantPermissionResponse_messageType struct{} -func (x fastReflection_MintNFTParam_messageType) Zero() protoreflect.Message { - return (*fastReflection_MintNFTParam)(nil) +func (x fastReflection_MsgGrantPermissionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgGrantPermissionResponse)(nil) } -func (x fastReflection_MintNFTParam_messageType) New() protoreflect.Message { - return new(fastReflection_MintNFTParam) +func (x fastReflection_MsgGrantPermissionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgGrantPermissionResponse) } -func (x fastReflection_MintNFTParam_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MintNFTParam +func (x fastReflection_MsgGrantPermissionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgGrantPermissionResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MintNFTParam) Descriptor() protoreflect.MessageDescriptor { - return md_MintNFTParam +func (x *fastReflection_MsgGrantPermissionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgGrantPermissionResponse } // 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 +func (x *fastReflection_MsgGrantPermissionResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgGrantPermissionResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MintNFTParam) New() protoreflect.Message { - return new(fastReflection_MintNFTParam) +func (x *fastReflection_MsgGrantPermissionResponse) New() protoreflect.Message { + return new(fastReflection_MsgGrantPermissionResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MintNFTParam) Interface() protoreflect.ProtoMessage { - return (*MintNFTParam)(x) +func (x *fastReflection_MsgGrantPermissionResponse) Interface() protoreflect.ProtoMessage { + return (*MsgGrantPermissionResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -11705,25 +11504,7 @@ func (x *fastReflection_MintNFTParam) 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_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 - } - } +func (x *fastReflection_MsgGrantPermissionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -11737,19 +11518,13 @@ func (x *fastReflection_MintNFTParam) 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_MintNFTParam) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgGrantPermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse does not contain field %s", fd.FullName())) } } @@ -11759,19 +11534,13 @@ func (x *fastReflection_MintNFTParam) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MintNFTParam) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgGrantPermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse does not contain field %s", fd.FullName())) } } @@ -11781,22 +11550,13 @@ func (x *fastReflection_MintNFTParam) 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_MintNFTParam) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgGrantPermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse does not contain field %s", descriptor.FullName())) } } @@ -11810,19 +11570,13 @@ func (x *fastReflection_MintNFTParam) Get(descriptor protoreflect.FieldDescripto // 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) { +func (x *fastReflection_MsgGrantPermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse does not contain field %s", fd.FullName())) } } @@ -11836,48 +11590,36 @@ func (x *fastReflection_MintNFTParam) Set(fd protoreflect.FieldDescriptor, value // 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 { +func (x *fastReflection_MsgGrantPermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse 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 { +func (x *fastReflection_MsgGrantPermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MintNFTParam does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse 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 { +func (x *fastReflection_MsgGrantPermissionResponse) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgGrantPermissionResponse", d.FullName())) } panic("unreachable") } @@ -11885,7 +11627,7 @@ func (x *fastReflection_MintNFTParam) 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_MintNFTParam) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgGrantPermissionResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11896,7 +11638,7 @@ func (x *fastReflection_MintNFTParam) 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_MintNFTParam) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgGrantPermissionResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11908,7 +11650,7 @@ func (x *fastReflection_MintNFTParam) 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_MintNFTParam) IsValid() bool { +func (x *fastReflection_MsgGrantPermissionResponse) IsValid() bool { return x != nil } @@ -11918,9 +11660,9 @@ func (x *fastReflection_MintNFTParam) 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_MintNFTParam) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgGrantPermissionResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MintNFTParam) + x := input.Message.Interface().(*MsgGrantPermissionResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11932,18 +11674,6 @@ func (x *fastReflection_MintNFTParam) ProtoMethods() *protoiface.Methods { 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) } @@ -11954,7 +11684,7 @@ func (x *fastReflection_MintNFTParam) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MintNFTParam) + x := input.Message.Interface().(*MsgGrantPermissionResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11973,27 +11703,6 @@ func (x *fastReflection_MintNFTParam) 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] = 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 { @@ -12005,7 +11714,7 @@ func (x *fastReflection_MintNFTParam) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MintNFTParam) + x := input.Message.Interface().(*MsgGrantPermissionResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12037,122 +11746,26 @@ func (x *fastReflection_MintNFTParam) 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: MintNFTParam: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGrantPermissionResponse: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGrantPermissionResponse: 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 + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > 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]...) + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } @@ -12174,81 +11787,30 @@ func (x *fastReflection_MintNFTParam) ProtoMethods() *protoiface.Methods { } } -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 + md_MsgRevokePermission protoreflect.MessageDescriptor + fd_MsgRevokePermission_contract_id protoreflect.FieldDescriptor + fd_MsgRevokePermission_from protoreflect.FieldDescriptor + fd_MsgRevokePermission_permission 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") + md_MsgRevokePermission = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgRevokePermission") + fd_MsgRevokePermission_contract_id = md_MsgRevokePermission.Fields().ByName("contract_id") + fd_MsgRevokePermission_from = md_MsgRevokePermission.Fields().ByName("from") + fd_MsgRevokePermission_permission = md_MsgRevokePermission.Fields().ByName("permission") } -var _ protoreflect.Message = (*fastReflection_MsgBurnFT)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRevokePermission)(nil) -type fastReflection_MsgBurnFT MsgBurnFT +type fastReflection_MsgRevokePermission MsgRevokePermission -func (x *MsgBurnFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBurnFT)(x) +func (x *MsgRevokePermission) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRevokePermission)(x) } -func (x *MsgBurnFT) slowProtoReflect() protoreflect.Message { +func (x *MsgRevokePermission) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12260,43 +11822,43 @@ func (x *MsgBurnFT) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgBurnFT_messageType fastReflection_MsgBurnFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgBurnFT_messageType{} +var _fastReflection_MsgRevokePermission_messageType fastReflection_MsgRevokePermission_messageType +var _ protoreflect.MessageType = fastReflection_MsgRevokePermission_messageType{} -type fastReflection_MsgBurnFT_messageType struct{} +type fastReflection_MsgRevokePermission_messageType struct{} -func (x fastReflection_MsgBurnFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBurnFT)(nil) +func (x fastReflection_MsgRevokePermission_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRevokePermission)(nil) } -func (x fastReflection_MsgBurnFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBurnFT) +func (x fastReflection_MsgRevokePermission_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRevokePermission) } -func (x fastReflection_MsgBurnFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnFT +func (x fastReflection_MsgRevokePermission_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRevokePermission } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgBurnFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnFT +func (x *fastReflection_MsgRevokePermission) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRevokePermission } // 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 +func (x *fastReflection_MsgRevokePermission) Type() protoreflect.MessageType { + return _fastReflection_MsgRevokePermission_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBurnFT) New() protoreflect.Message { - return new(fastReflection_MsgBurnFT) +func (x *fastReflection_MsgRevokePermission) New() protoreflect.Message { + return new(fastReflection_MsgRevokePermission) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBurnFT) Interface() protoreflect.ProtoMessage { - return (*MsgBurnFT)(x) +func (x *fastReflection_MsgRevokePermission) Interface() protoreflect.ProtoMessage { + return (*MsgRevokePermission)(x) } // Range iterates over every populated field in an undefined order, @@ -12304,22 +11866,22 @@ func (x *fastReflection_MsgBurnFT) 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_MsgBurnFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRevokePermission) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ContractId != "" { value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgBurnFT_contract_id, value) { + if !f(fd_MsgRevokePermission_contract_id, value) { return } } if x.From != "" { value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgBurnFT_from, value) { + if !f(fd_MsgRevokePermission_from, value) { return } } - if len(x.Amount) != 0 { - value := protoreflect.ValueOfList(&_MsgBurnFT_3_list{list: &x.Amount}) - if !f(fd_MsgBurnFT_amount, value) { + if x.Permission != "" { + value := protoreflect.ValueOfString(x.Permission) + if !f(fd_MsgRevokePermission_permission, value) { return } } @@ -12336,19 +11898,19 @@ func (x *fastReflection_MsgBurnFT) 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_MsgBurnFT) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRevokePermission) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "lbm.collection.v1.MsgBurnFT.contract_id": + case "lbm.collection.v1.MsgRevokePermission.contract_id": return x.ContractId != "" - case "lbm.collection.v1.MsgBurnFT.from": + case "lbm.collection.v1.MsgRevokePermission.from": return x.From != "" - case "lbm.collection.v1.MsgBurnFT.amount": - return len(x.Amount) != 0 + case "lbm.collection.v1.MsgRevokePermission.permission": + return x.Permission != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission does not contain field %s", fd.FullName())) } } @@ -12358,19 +11920,19 @@ func (x *fastReflection_MsgBurnFT) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBurnFT) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRevokePermission) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "lbm.collection.v1.MsgBurnFT.contract_id": + case "lbm.collection.v1.MsgRevokePermission.contract_id": x.ContractId = "" - case "lbm.collection.v1.MsgBurnFT.from": + case "lbm.collection.v1.MsgRevokePermission.from": x.From = "" - case "lbm.collection.v1.MsgBurnFT.amount": - x.Amount = nil + case "lbm.collection.v1.MsgRevokePermission.permission": + x.Permission = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission does not contain field %s", fd.FullName())) } } @@ -12380,25 +11942,22 @@ func (x *fastReflection_MsgBurnFT) 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_MsgBurnFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRevokePermission) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "lbm.collection.v1.MsgBurnFT.contract_id": + case "lbm.collection.v1.MsgRevokePermission.contract_id": value := x.ContractId return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgBurnFT.from": + case "lbm.collection.v1.MsgRevokePermission.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) + case "lbm.collection.v1.MsgRevokePermission.permission": + value := x.Permission + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission does not contain field %s", descriptor.FullName())) } } @@ -12412,21 +11971,19 @@ func (x *fastReflection_MsgBurnFT) Get(descriptor protoreflect.FieldDescriptor) // 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) { +func (x *fastReflection_MsgRevokePermission) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "lbm.collection.v1.MsgBurnFT.contract_id": + case "lbm.collection.v1.MsgRevokePermission.contract_id": x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgBurnFT.from": + case "lbm.collection.v1.MsgRevokePermission.from": x.From = value.Interface().(string) - case "lbm.collection.v1.MsgBurnFT.amount": - lv := value.List() - clv := lv.(*_MsgBurnFT_3_list) - x.Amount = *clv.list + case "lbm.collection.v1.MsgRevokePermission.permission": + x.Permission = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission does not contain field %s", fd.FullName())) } } @@ -12440,53 +11997,48 @@ func (x *fastReflection_MsgBurnFT) 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_MsgBurnFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRevokePermission) 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")) + case "lbm.collection.v1.MsgRevokePermission.contract_id": + panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgRevokePermission is not mutable")) + case "lbm.collection.v1.MsgRevokePermission.from": + panic(fmt.Errorf("field from of message lbm.collection.v1.MsgRevokePermission is not mutable")) + case "lbm.collection.v1.MsgRevokePermission.permission": + panic(fmt.Errorf("field permission of message lbm.collection.v1.MsgRevokePermission is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnFT")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission 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 { +func (x *fastReflection_MsgRevokePermission) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "lbm.collection.v1.MsgBurnFT.contract_id": + case "lbm.collection.v1.MsgRevokePermission.contract_id": + return protoreflect.ValueOfString("") + case "lbm.collection.v1.MsgRevokePermission.from": return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgBurnFT.from": + case "lbm.collection.v1.MsgRevokePermission.permission": 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFT does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission 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 { +func (x *fastReflection_MsgRevokePermission) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgRevokePermission", d.FullName())) } panic("unreachable") } @@ -12494,7 +12046,7 @@ func (x *fastReflection_MsgBurnFT) 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_MsgBurnFT) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRevokePermission) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12505,7 +12057,7 @@ func (x *fastReflection_MsgBurnFT) 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_MsgBurnFT) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRevokePermission) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12517,7 +12069,7 @@ func (x *fastReflection_MsgBurnFT) 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_MsgBurnFT) IsValid() bool { +func (x *fastReflection_MsgRevokePermission) IsValid() bool { return x != nil } @@ -12527,9 +12079,9 @@ func (x *fastReflection_MsgBurnFT) 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_MsgBurnFT) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRevokePermission) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBurnFT) + x := input.Message.Interface().(*MsgRevokePermission) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12549,11 +12101,9 @@ func (x *fastReflection_MsgBurnFT) 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) - n += 1 + l + runtime.Sov(uint64(l)) - } + l = len(x.Permission) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -12565,7 +12115,7 @@ func (x *fastReflection_MsgBurnFT) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgBurnFT) + x := input.Message.Interface().(*MsgRevokePermission) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12584,21 +12134,12 @@ func (x *fastReflection_MsgBurnFT) 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] = 0x1a - } + if len(x.Permission) > 0 { + i -= len(x.Permission) + copy(dAtA[i:], x.Permission) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Permission))) + i-- + dAtA[i] = 0x1a } if len(x.From) > 0 { i -= len(x.From) @@ -12625,7 +12166,7 @@ func (x *fastReflection_MsgBurnFT) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgBurnFT) + x := input.Message.Interface().(*MsgRevokePermission) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12657,10 +12198,10 @@ func (x *fastReflection_MsgBurnFT) 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: MsgBurnFT: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokePermission: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokePermission: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -12729,9 +12270,9 @@ func (x *fastReflection_MsgBurnFT) 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 Amount", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permission", 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 @@ -12741,25 +12282,23 @@ func (x *fastReflection_MsgBurnFT) 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.Permission = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -12797,23 +12336,23 @@ func (x *fastReflection_MsgBurnFT) ProtoMethods() *protoiface.Methods { } var ( - md_MsgBurnFTResponse protoreflect.MessageDescriptor + md_MsgRevokePermissionResponse protoreflect.MessageDescriptor ) func init() { file_lbm_collection_v1_tx_proto_init() - md_MsgBurnFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgBurnFTResponse") + md_MsgRevokePermissionResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgRevokePermissionResponse") } -var _ protoreflect.Message = (*fastReflection_MsgBurnFTResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRevokePermissionResponse)(nil) -type fastReflection_MsgBurnFTResponse MsgBurnFTResponse +type fastReflection_MsgRevokePermissionResponse MsgRevokePermissionResponse -func (x *MsgBurnFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBurnFTResponse)(x) +func (x *MsgRevokePermissionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRevokePermissionResponse)(x) } -func (x *MsgBurnFTResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgRevokePermissionResponse) slowProtoReflect() protoreflect.Message { mi := &file_lbm_collection_v1_tx_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12825,43 +12364,43 @@ func (x *MsgBurnFTResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgBurnFTResponse_messageType fastReflection_MsgBurnFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgBurnFTResponse_messageType{} +var _fastReflection_MsgRevokePermissionResponse_messageType fastReflection_MsgRevokePermissionResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRevokePermissionResponse_messageType{} -type fastReflection_MsgBurnFTResponse_messageType struct{} +type fastReflection_MsgRevokePermissionResponse_messageType struct{} -func (x fastReflection_MsgBurnFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBurnFTResponse)(nil) +func (x fastReflection_MsgRevokePermissionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRevokePermissionResponse)(nil) } -func (x fastReflection_MsgBurnFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBurnFTResponse) +func (x fastReflection_MsgRevokePermissionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRevokePermissionResponse) } -func (x fastReflection_MsgBurnFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnFTResponse +func (x fastReflection_MsgRevokePermissionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRevokePermissionResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgBurnFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnFTResponse +func (x *fastReflection_MsgRevokePermissionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRevokePermissionResponse } // 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 +func (x *fastReflection_MsgRevokePermissionResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRevokePermissionResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBurnFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgBurnFTResponse) +func (x *fastReflection_MsgRevokePermissionResponse) New() protoreflect.Message { + return new(fastReflection_MsgRevokePermissionResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBurnFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgBurnFTResponse)(x) +func (x *fastReflection_MsgRevokePermissionResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRevokePermissionResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -12869,7 +12408,7 @@ func (x *fastReflection_MsgBurnFTResponse) 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_MsgBurnFTResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRevokePermissionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -12883,13 +12422,13 @@ func (x *fastReflection_MsgBurnFTResponse) 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_MsgBurnFTResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRevokePermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse does not contain field %s", fd.FullName())) } } @@ -12899,13 +12438,13 @@ func (x *fastReflection_MsgBurnFTResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBurnFTResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRevokePermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse does not contain field %s", fd.FullName())) } } @@ -12915,13 +12454,13 @@ func (x *fastReflection_MsgBurnFTResponse) 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_MsgBurnFTResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRevokePermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse does not contain field %s", descriptor.FullName())) } } @@ -12935,13 +12474,13 @@ func (x *fastReflection_MsgBurnFTResponse) Get(descriptor protoreflect.FieldDesc // 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) { +func (x *fastReflection_MsgRevokePermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse does not contain field %s", fd.FullName())) } } @@ -12955,36 +12494,36 @@ func (x *fastReflection_MsgBurnFTResponse) 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_MsgBurnFTResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRevokePermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse 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 { +func (x *fastReflection_MsgRevokePermissionResponse) 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("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermissionResponse")) } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnFTResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse 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 { +func (x *fastReflection_MsgRevokePermissionResponse) 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(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgRevokePermissionResponse", d.FullName())) } panic("unreachable") } @@ -12992,12218 +12531,1352 @@ func (x *fastReflection_MsgBurnFTResponse) 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_MsgBurnFTResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRevokePermissionResponse) 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) - *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 *_MsgOperatorBurnFT_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgOperatorBurnFT_4_list) NewElement() protoreflect.Value { - v := new(Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgOperatorBurnFT_4_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 -) - -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") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorBurnFT)(nil) - -type fastReflection_MsgOperatorBurnFT MsgOperatorBurnFT - -func (x *MsgOperatorBurnFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnFT)(x) -} - -func (x *MsgOperatorBurnFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[25] - 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_MsgOperatorBurnFT_messageType fastReflection_MsgOperatorBurnFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorBurnFT_messageType{} - -type fastReflection_MsgOperatorBurnFT_messageType struct{} - -func (x fastReflection_MsgOperatorBurnFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnFT)(nil) -} -func (x fastReflection_MsgOperatorBurnFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnFT) -} -func (x fastReflection_MsgOperatorBurnFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnFT -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorBurnFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnFT -} - -// 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 -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorBurnFT) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnFT) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorBurnFT) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorBurnFT)(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_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) { - 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_MsgOperatorBurnFT) 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 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFT 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_MsgOperatorBurnFT) 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 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFT 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_MsgOperatorBurnFT) 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{}) - } - listValue := &_MsgOperatorBurnFT_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.MsgOperatorBurnFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFT 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_MsgOperatorBurnFT) 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": - lv := value.List() - clv := lv.(*_MsgOperatorBurnFT_4_list) - x.Amount = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFT 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_MsgOperatorBurnFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorBurnFT.amount": - if x.Amount == nil { - x.Amount = []*Coin{} - } - value := &_MsgOperatorBurnFT_4_list{list: &x.Amount} - 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("message lbm.collection.v1.MsgOperatorBurnFT 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 { - 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}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFT 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 { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorBurnFT", 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_MsgOperatorBurnFT) 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_MsgOperatorBurnFT) 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_MsgOperatorBurnFT) 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_MsgOperatorBurnFT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorBurnFT) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - 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().(*MsgOperatorBurnFT) - 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.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorBurnFT) - 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: MsgOperatorBurnFT: 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) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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_MsgOperatorBurnFTResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorBurnFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorBurnFTResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorBurnFTResponse)(nil) - -type fastReflection_MsgOperatorBurnFTResponse MsgOperatorBurnFTResponse - -func (x *MsgOperatorBurnFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnFTResponse)(x) -} - -func (x *MsgOperatorBurnFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[26] - 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_MsgOperatorBurnFTResponse_messageType fastReflection_MsgOperatorBurnFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorBurnFTResponse_messageType{} - -type fastReflection_MsgOperatorBurnFTResponse_messageType struct{} - -func (x fastReflection_MsgOperatorBurnFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnFTResponse)(nil) -} -func (x fastReflection_MsgOperatorBurnFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnFTResponse) -} -func (x fastReflection_MsgOperatorBurnFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnFTResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorBurnFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnFTResponse -} - -// 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 -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorBurnFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnFTResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorBurnFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorBurnFTResponse)(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_MsgOperatorBurnFTResponse) 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_MsgOperatorBurnFTResponse) 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.MsgOperatorBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse 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_MsgOperatorBurnFTResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse 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_MsgOperatorBurnFTResponse) 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.MsgOperatorBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse 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_MsgOperatorBurnFTResponse) 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.MsgOperatorBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse 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_MsgOperatorBurnFTResponse) 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.MsgOperatorBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse 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 { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnFTResponse 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 { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorBurnFTResponse", 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_MsgOperatorBurnFTResponse) 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_MsgOperatorBurnFTResponse) 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_MsgOperatorBurnFTResponse) 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_MsgOperatorBurnFTResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorBurnFTResponse) - 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().(*MsgOperatorBurnFTResponse) - 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().(*MsgOperatorBurnFTResponse) - 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: 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 { - 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 = (*_MsgBurnNFT_3_list)(nil) - -type _MsgBurnNFT_3_list struct { - list *[]string -} - -func (x *_MsgBurnNFT_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgBurnNFT_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_MsgBurnNFT_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgBurnNFT_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgBurnNFT_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgBurnNFT at list field TokenIds as it is not of Message kind")) -} - -func (x *_MsgBurnNFT_3_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgBurnNFT_3_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgBurnNFT_3_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgBurnNFT protoreflect.MessageDescriptor - fd_MsgBurnNFT_contract_id protoreflect.FieldDescriptor - fd_MsgBurnNFT_from protoreflect.FieldDescriptor - fd_MsgBurnNFT_token_ids protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgBurnNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgBurnNFT") - fd_MsgBurnNFT_contract_id = md_MsgBurnNFT.Fields().ByName("contract_id") - fd_MsgBurnNFT_from = md_MsgBurnNFT.Fields().ByName("from") - fd_MsgBurnNFT_token_ids = md_MsgBurnNFT.Fields().ByName("token_ids") -} - -var _ protoreflect.Message = (*fastReflection_MsgBurnNFT)(nil) - -type fastReflection_MsgBurnNFT MsgBurnNFT - -func (x *MsgBurnNFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBurnNFT)(x) -} - -func (x *MsgBurnNFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[27] - 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_MsgBurnNFT_messageType fastReflection_MsgBurnNFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgBurnNFT_messageType{} - -type fastReflection_MsgBurnNFT_messageType struct{} - -func (x fastReflection_MsgBurnNFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBurnNFT)(nil) -} -func (x fastReflection_MsgBurnNFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBurnNFT) -} -func (x fastReflection_MsgBurnNFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnNFT -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgBurnNFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnNFT -} - -// 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_MsgBurnNFT) Type() protoreflect.MessageType { - return _fastReflection_MsgBurnNFT_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBurnNFT) New() protoreflect.Message { - return new(fastReflection_MsgBurnNFT) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBurnNFT) Interface() protoreflect.ProtoMessage { - return (*MsgBurnNFT)(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_MsgBurnNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgBurnNFT_contract_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgBurnNFT_from, value) { - return - } - } - if len(x.TokenIds) != 0 { - value := protoreflect.ValueOfList(&_MsgBurnNFT_3_list{list: &x.TokenIds}) - if !f(fd_MsgBurnNFT_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_MsgBurnNFT) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgBurnNFT.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgBurnNFT.from": - return x.From != "" - case "lbm.collection.v1.MsgBurnNFT.token_ids": - return len(x.TokenIds) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT 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_MsgBurnNFT) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgBurnNFT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgBurnNFT.from": - x.From = "" - case "lbm.collection.v1.MsgBurnNFT.token_ids": - x.TokenIds = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT 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_MsgBurnNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgBurnNFT.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgBurnNFT.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgBurnNFT.token_ids": - if len(x.TokenIds) == 0 { - return protoreflect.ValueOfList(&_MsgBurnNFT_3_list{}) - } - listValue := &_MsgBurnNFT_3_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.MsgBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT 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_MsgBurnNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgBurnNFT.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgBurnNFT.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgBurnNFT.token_ids": - lv := value.List() - clv := lv.(*_MsgBurnNFT_3_list) - x.TokenIds = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT 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_MsgBurnNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgBurnNFT.token_ids": - if x.TokenIds == nil { - x.TokenIds = []string{} - } - value := &_MsgBurnNFT_3_list{list: &x.TokenIds} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.MsgBurnNFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgBurnNFT is not mutable")) - case "lbm.collection.v1.MsgBurnNFT.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgBurnNFT is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT 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_MsgBurnNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgBurnNFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgBurnNFT.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgBurnNFT.token_ids": - list := []string{} - return protoreflect.ValueOfList(&_MsgBurnNFT_3_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFT 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_MsgBurnNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgBurnNFT", 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_MsgBurnNFT) 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_MsgBurnNFT) 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_MsgBurnNFT) 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_MsgBurnNFT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBurnNFT) - 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.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().(*MsgBurnNFT) - 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] = 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().(*MsgBurnNFT) - 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: MsgBurnNFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBurnNFT: 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 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_MsgBurnNFTResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgBurnNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgBurnNFTResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgBurnNFTResponse)(nil) - -type fastReflection_MsgBurnNFTResponse MsgBurnNFTResponse - -func (x *MsgBurnNFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBurnNFTResponse)(x) -} - -func (x *MsgBurnNFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[28] - 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_MsgBurnNFTResponse_messageType fastReflection_MsgBurnNFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgBurnNFTResponse_messageType{} - -type fastReflection_MsgBurnNFTResponse_messageType struct{} - -func (x fastReflection_MsgBurnNFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBurnNFTResponse)(nil) -} -func (x fastReflection_MsgBurnNFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBurnNFTResponse) -} -func (x fastReflection_MsgBurnNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnNFTResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgBurnNFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBurnNFTResponse -} - -// 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_MsgBurnNFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgBurnNFTResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBurnNFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgBurnNFTResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBurnNFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgBurnNFTResponse)(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_MsgBurnNFTResponse) 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_MsgBurnNFTResponse) 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.MsgBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse 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_MsgBurnNFTResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse 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_MsgBurnNFTResponse) 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.MsgBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse 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_MsgBurnNFTResponse) 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.MsgBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse 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_MsgBurnNFTResponse) 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.MsgBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse 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_MsgBurnNFTResponse) 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.MsgBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgBurnNFTResponse 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_MsgBurnNFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgBurnNFTResponse", 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_MsgBurnNFTResponse) 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_MsgBurnNFTResponse) 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_MsgBurnNFTResponse) 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_MsgBurnNFTResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBurnNFTResponse) - 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().(*MsgBurnNFTResponse) - 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().(*MsgBurnNFTResponse) - 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: MsgBurnNFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBurnNFTResponse: 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 = (*_MsgOperatorBurnNFT_4_list)(nil) - -type _MsgOperatorBurnNFT_4_list struct { - list *[]string -} - -func (x *_MsgOperatorBurnNFT_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgOperatorBurnNFT_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_MsgOperatorBurnNFT_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgOperatorBurnNFT_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgOperatorBurnNFT_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgOperatorBurnNFT at list field TokenIds as it is not of Message kind")) -} - -func (x *_MsgOperatorBurnNFT_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgOperatorBurnNFT_4_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgOperatorBurnNFT_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgOperatorBurnNFT protoreflect.MessageDescriptor - fd_MsgOperatorBurnNFT_contract_id protoreflect.FieldDescriptor - fd_MsgOperatorBurnNFT_operator protoreflect.FieldDescriptor - fd_MsgOperatorBurnNFT_from protoreflect.FieldDescriptor - fd_MsgOperatorBurnNFT_token_ids protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorBurnNFT = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorBurnNFT") - fd_MsgOperatorBurnNFT_contract_id = md_MsgOperatorBurnNFT.Fields().ByName("contract_id") - fd_MsgOperatorBurnNFT_operator = md_MsgOperatorBurnNFT.Fields().ByName("operator") - fd_MsgOperatorBurnNFT_from = md_MsgOperatorBurnNFT.Fields().ByName("from") - fd_MsgOperatorBurnNFT_token_ids = md_MsgOperatorBurnNFT.Fields().ByName("token_ids") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorBurnNFT)(nil) - -type fastReflection_MsgOperatorBurnNFT MsgOperatorBurnNFT - -func (x *MsgOperatorBurnNFT) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnNFT)(x) -} - -func (x *MsgOperatorBurnNFT) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[29] - 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_MsgOperatorBurnNFT_messageType fastReflection_MsgOperatorBurnNFT_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorBurnNFT_messageType{} - -type fastReflection_MsgOperatorBurnNFT_messageType struct{} - -func (x fastReflection_MsgOperatorBurnNFT_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnNFT)(nil) -} -func (x fastReflection_MsgOperatorBurnNFT_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnNFT) -} -func (x fastReflection_MsgOperatorBurnNFT_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnNFT -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorBurnNFT) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnNFT -} - -// 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_MsgOperatorBurnNFT) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorBurnNFT_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorBurnNFT) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnNFT) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorBurnNFT) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorBurnNFT)(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_MsgOperatorBurnNFT) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgOperatorBurnNFT_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_MsgOperatorBurnNFT_operator, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgOperatorBurnNFT_from, value) { - return - } - } - if len(x.TokenIds) != 0 { - value := protoreflect.ValueOfList(&_MsgOperatorBurnNFT_4_list{list: &x.TokenIds}) - if !f(fd_MsgOperatorBurnNFT_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_MsgOperatorBurnNFT) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgOperatorBurnNFT.operator": - return x.Operator != "" - case "lbm.collection.v1.MsgOperatorBurnNFT.from": - return x.From != "" - case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": - return len(x.TokenIds) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT 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_MsgOperatorBurnNFT) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgOperatorBurnNFT.operator": - x.Operator = "" - case "lbm.collection.v1.MsgOperatorBurnNFT.from": - x.From = "" - case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": - x.TokenIds = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT 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_MsgOperatorBurnNFT) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorBurnNFT.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorBurnNFT.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": - if len(x.TokenIds) == 0 { - return protoreflect.ValueOfList(&_MsgOperatorBurnNFT_4_list{}) - } - listValue := &_MsgOperatorBurnNFT_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.MsgOperatorBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT 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_MsgOperatorBurnNFT) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorBurnNFT.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorBurnNFT.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": - lv := value.List() - clv := lv.(*_MsgOperatorBurnNFT_4_list) - x.TokenIds = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT 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_MsgOperatorBurnNFT) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": - if x.TokenIds == nil { - x.TokenIds = []string{} - } - value := &_MsgOperatorBurnNFT_4_list{list: &x.TokenIds} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgOperatorBurnNFT is not mutable")) - case "lbm.collection.v1.MsgOperatorBurnNFT.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgOperatorBurnNFT is not mutable")) - case "lbm.collection.v1.MsgOperatorBurnNFT.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgOperatorBurnNFT is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT 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_MsgOperatorBurnNFT) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorBurnNFT.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorBurnNFT.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorBurnNFT.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorBurnNFT.token_ids": - list := []string{} - return protoreflect.ValueOfList(&_MsgOperatorBurnNFT_4_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFT")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFT 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_MsgOperatorBurnNFT) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorBurnNFT", 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_MsgOperatorBurnNFT) 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_MsgOperatorBurnNFT) 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_MsgOperatorBurnNFT) 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_MsgOperatorBurnNFT) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorBurnNFT) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - 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().(*MsgOperatorBurnNFT) - 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] = 0x22 - } - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorBurnNFT) - 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: MsgOperatorBurnNFT: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorBurnNFT: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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_MsgOperatorBurnNFTResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorBurnNFTResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorBurnNFTResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorBurnNFTResponse)(nil) - -type fastReflection_MsgOperatorBurnNFTResponse MsgOperatorBurnNFTResponse - -func (x *MsgOperatorBurnNFTResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnNFTResponse)(x) -} - -func (x *MsgOperatorBurnNFTResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[30] - 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_MsgOperatorBurnNFTResponse_messageType fastReflection_MsgOperatorBurnNFTResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorBurnNFTResponse_messageType{} - -type fastReflection_MsgOperatorBurnNFTResponse_messageType struct{} - -func (x fastReflection_MsgOperatorBurnNFTResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorBurnNFTResponse)(nil) -} -func (x fastReflection_MsgOperatorBurnNFTResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnNFTResponse) -} -func (x fastReflection_MsgOperatorBurnNFTResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnNFTResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorBurnNFTResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorBurnNFTResponse -} - -// 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_MsgOperatorBurnNFTResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorBurnNFTResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorBurnNFTResponse) New() protoreflect.Message { - return new(fastReflection_MsgOperatorBurnNFTResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorBurnNFTResponse) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorBurnNFTResponse)(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_MsgOperatorBurnNFTResponse) 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_MsgOperatorBurnNFTResponse) 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.MsgOperatorBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse 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_MsgOperatorBurnNFTResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse 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_MsgOperatorBurnNFTResponse) 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.MsgOperatorBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse 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_MsgOperatorBurnNFTResponse) 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.MsgOperatorBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse 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_MsgOperatorBurnNFTResponse) 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.MsgOperatorBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse 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_MsgOperatorBurnNFTResponse) 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.MsgOperatorBurnNFTResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorBurnNFTResponse 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_MsgOperatorBurnNFTResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorBurnNFTResponse", 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_MsgOperatorBurnNFTResponse) 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_MsgOperatorBurnNFTResponse) 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_MsgOperatorBurnNFTResponse) 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_MsgOperatorBurnNFTResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorBurnNFTResponse) - 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().(*MsgOperatorBurnNFTResponse) - 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().(*MsgOperatorBurnNFTResponse) - 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: MsgOperatorBurnNFTResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorBurnNFTResponse: 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 = (*_MsgModify_5_list)(nil) - -type _MsgModify_5_list struct { - list *[]*Attribute -} - -func (x *_MsgModify_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgModify_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgModify_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Attribute) - (*x.list)[i] = concreteValue -} - -func (x *_MsgModify_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Attribute) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgModify_5_list) AppendMutable() protoreflect.Value { - v := new(Attribute) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgModify_5_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgModify_5_list) NewElement() protoreflect.Value { - v := new(Attribute) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgModify_5_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgModify protoreflect.MessageDescriptor - fd_MsgModify_contract_id protoreflect.FieldDescriptor - fd_MsgModify_owner protoreflect.FieldDescriptor - fd_MsgModify_token_type protoreflect.FieldDescriptor - fd_MsgModify_token_index protoreflect.FieldDescriptor - fd_MsgModify_changes protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgModify = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgModify") - fd_MsgModify_contract_id = md_MsgModify.Fields().ByName("contract_id") - fd_MsgModify_owner = md_MsgModify.Fields().ByName("owner") - fd_MsgModify_token_type = md_MsgModify.Fields().ByName("token_type") - fd_MsgModify_token_index = md_MsgModify.Fields().ByName("token_index") - fd_MsgModify_changes = md_MsgModify.Fields().ByName("changes") -} - -var _ protoreflect.Message = (*fastReflection_MsgModify)(nil) - -type fastReflection_MsgModify MsgModify - -func (x *MsgModify) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgModify)(x) -} - -func (x *MsgModify) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgModify_messageType fastReflection_MsgModify_messageType -var _ protoreflect.MessageType = fastReflection_MsgModify_messageType{} - -type fastReflection_MsgModify_messageType struct{} - -func (x fastReflection_MsgModify_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgModify)(nil) -} -func (x fastReflection_MsgModify_messageType) New() protoreflect.Message { - return new(fastReflection_MsgModify) -} -func (x fastReflection_MsgModify_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgModify -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgModify) Descriptor() protoreflect.MessageDescriptor { - return md_MsgModify -} - -// 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_MsgModify) Type() protoreflect.MessageType { - return _fastReflection_MsgModify_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgModify) New() protoreflect.Message { - return new(fastReflection_MsgModify) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgModify) Interface() protoreflect.ProtoMessage { - return (*MsgModify)(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_MsgModify) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgModify_contract_id, value) { - return - } - } - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_MsgModify_owner, value) { - return - } - } - if x.TokenType != "" { - value := protoreflect.ValueOfString(x.TokenType) - if !f(fd_MsgModify_token_type, value) { - return - } - } - if x.TokenIndex != "" { - value := protoreflect.ValueOfString(x.TokenIndex) - if !f(fd_MsgModify_token_index, value) { - return - } - } - if len(x.Changes) != 0 { - value := protoreflect.ValueOfList(&_MsgModify_5_list{list: &x.Changes}) - if !f(fd_MsgModify_changes, 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_MsgModify) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgModify.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgModify.owner": - return x.Owner != "" - case "lbm.collection.v1.MsgModify.token_type": - return x.TokenType != "" - case "lbm.collection.v1.MsgModify.token_index": - return x.TokenIndex != "" - case "lbm.collection.v1.MsgModify.changes": - return len(x.Changes) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModify 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_MsgModify) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgModify.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgModify.owner": - x.Owner = "" - case "lbm.collection.v1.MsgModify.token_type": - x.TokenType = "" - case "lbm.collection.v1.MsgModify.token_index": - x.TokenIndex = "" - case "lbm.collection.v1.MsgModify.changes": - x.Changes = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModify 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_MsgModify) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgModify.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgModify.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgModify.token_type": - value := x.TokenType - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgModify.token_index": - value := x.TokenIndex - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgModify.changes": - if len(x.Changes) == 0 { - return protoreflect.ValueOfList(&_MsgModify_5_list{}) - } - listValue := &_MsgModify_5_list{list: &x.Changes} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModify 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_MsgModify) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgModify.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgModify.owner": - x.Owner = value.Interface().(string) - case "lbm.collection.v1.MsgModify.token_type": - x.TokenType = value.Interface().(string) - case "lbm.collection.v1.MsgModify.token_index": - x.TokenIndex = value.Interface().(string) - case "lbm.collection.v1.MsgModify.changes": - lv := value.List() - clv := lv.(*_MsgModify_5_list) - x.Changes = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModify 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_MsgModify) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgModify.changes": - if x.Changes == nil { - x.Changes = []*Attribute{} - } - value := &_MsgModify_5_list{list: &x.Changes} - return protoreflect.ValueOfList(value) - case "lbm.collection.v1.MsgModify.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgModify is not mutable")) - case "lbm.collection.v1.MsgModify.owner": - panic(fmt.Errorf("field owner of message lbm.collection.v1.MsgModify is not mutable")) - case "lbm.collection.v1.MsgModify.token_type": - panic(fmt.Errorf("field token_type of message lbm.collection.v1.MsgModify is not mutable")) - case "lbm.collection.v1.MsgModify.token_index": - panic(fmt.Errorf("field token_index of message lbm.collection.v1.MsgModify is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModify 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_MsgModify) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgModify.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgModify.owner": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgModify.token_type": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgModify.token_index": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgModify.changes": - list := []*Attribute{} - return protoreflect.ValueOfList(&_MsgModify_5_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModify")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModify 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_MsgModify) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgModify", 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_MsgModify) 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_MsgModify) 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_MsgModify) 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_MsgModify) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgModify) - 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.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenType) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenIndex) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Changes) > 0 { - for _, e := range x.Changes { - 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().(*MsgModify) - 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.Changes) > 0 { - for iNdEx := len(x.Changes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Changes[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] = 0x2a - } - } - if len(x.TokenIndex) > 0 { - i -= len(x.TokenIndex) - copy(dAtA[i:], x.TokenIndex) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenIndex))) - i-- - dAtA[i] = 0x22 - } - 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 - } - 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] = 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().(*MsgModify) - 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: MsgModify: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgModify: 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 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 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 TokenIndex", 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.TokenIndex = 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 Changes", 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.Changes = append(x.Changes, &Attribute{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Changes[len(x.Changes)-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_MsgModifyResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgModifyResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgModifyResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgModifyResponse)(nil) - -type fastReflection_MsgModifyResponse MsgModifyResponse - -func (x *MsgModifyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgModifyResponse)(x) -} - -func (x *MsgModifyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgModifyResponse_messageType fastReflection_MsgModifyResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgModifyResponse_messageType{} - -type fastReflection_MsgModifyResponse_messageType struct{} - -func (x fastReflection_MsgModifyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgModifyResponse)(nil) -} -func (x fastReflection_MsgModifyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgModifyResponse) -} -func (x fastReflection_MsgModifyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgModifyResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgModifyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgModifyResponse -} - -// 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_MsgModifyResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgModifyResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgModifyResponse) New() protoreflect.Message { - return new(fastReflection_MsgModifyResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgModifyResponse) Interface() protoreflect.ProtoMessage { - return (*MsgModifyResponse)(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_MsgModifyResponse) 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_MsgModifyResponse) 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.MsgModifyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse 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_MsgModifyResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgModifyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse 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_MsgModifyResponse) 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.MsgModifyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse 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_MsgModifyResponse) 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.MsgModifyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse 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_MsgModifyResponse) 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.MsgModifyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse 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_MsgModifyResponse) 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.MsgModifyResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgModifyResponse 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_MsgModifyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgModifyResponse", 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_MsgModifyResponse) 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_MsgModifyResponse) 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_MsgModifyResponse) 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_MsgModifyResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgModifyResponse) - 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().(*MsgModifyResponse) - 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().(*MsgModifyResponse) - 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: MsgModifyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgModifyResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgGrantPermission protoreflect.MessageDescriptor - fd_MsgGrantPermission_contract_id protoreflect.FieldDescriptor - fd_MsgGrantPermission_from protoreflect.FieldDescriptor - fd_MsgGrantPermission_to protoreflect.FieldDescriptor - fd_MsgGrantPermission_permission protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgGrantPermission = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgGrantPermission") - fd_MsgGrantPermission_contract_id = md_MsgGrantPermission.Fields().ByName("contract_id") - fd_MsgGrantPermission_from = md_MsgGrantPermission.Fields().ByName("from") - fd_MsgGrantPermission_to = md_MsgGrantPermission.Fields().ByName("to") - fd_MsgGrantPermission_permission = md_MsgGrantPermission.Fields().ByName("permission") -} - -var _ protoreflect.Message = (*fastReflection_MsgGrantPermission)(nil) - -type fastReflection_MsgGrantPermission MsgGrantPermission - -func (x *MsgGrantPermission) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgGrantPermission)(x) -} - -func (x *MsgGrantPermission) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgGrantPermission_messageType fastReflection_MsgGrantPermission_messageType -var _ protoreflect.MessageType = fastReflection_MsgGrantPermission_messageType{} - -type fastReflection_MsgGrantPermission_messageType struct{} - -func (x fastReflection_MsgGrantPermission_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgGrantPermission)(nil) -} -func (x fastReflection_MsgGrantPermission_messageType) New() protoreflect.Message { - return new(fastReflection_MsgGrantPermission) -} -func (x fastReflection_MsgGrantPermission_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGrantPermission -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgGrantPermission) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGrantPermission -} - -// 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_MsgGrantPermission) Type() protoreflect.MessageType { - return _fastReflection_MsgGrantPermission_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgGrantPermission) New() protoreflect.Message { - return new(fastReflection_MsgGrantPermission) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgGrantPermission) Interface() protoreflect.ProtoMessage { - return (*MsgGrantPermission)(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_MsgGrantPermission) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgGrantPermission_contract_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgGrantPermission_from, value) { - return - } - } - if x.To != "" { - value := protoreflect.ValueOfString(x.To) - if !f(fd_MsgGrantPermission_to, value) { - return - } - } - if x.Permission != "" { - value := protoreflect.ValueOfString(x.Permission) - if !f(fd_MsgGrantPermission_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_MsgGrantPermission) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgGrantPermission.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgGrantPermission.from": - return x.From != "" - case "lbm.collection.v1.MsgGrantPermission.to": - return x.To != "" - case "lbm.collection.v1.MsgGrantPermission.permission": - return x.Permission != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission 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_MsgGrantPermission) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgGrantPermission.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgGrantPermission.from": - x.From = "" - case "lbm.collection.v1.MsgGrantPermission.to": - x.To = "" - case "lbm.collection.v1.MsgGrantPermission.permission": - x.Permission = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission 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_MsgGrantPermission) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgGrantPermission.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgGrantPermission.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgGrantPermission.to": - value := x.To - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgGrantPermission.permission": - value := x.Permission - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission 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_MsgGrantPermission) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgGrantPermission.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgGrantPermission.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgGrantPermission.to": - x.To = value.Interface().(string) - case "lbm.collection.v1.MsgGrantPermission.permission": - x.Permission = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission 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_MsgGrantPermission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgGrantPermission.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgGrantPermission is not mutable")) - case "lbm.collection.v1.MsgGrantPermission.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgGrantPermission is not mutable")) - case "lbm.collection.v1.MsgGrantPermission.to": - panic(fmt.Errorf("field to of message lbm.collection.v1.MsgGrantPermission is not mutable")) - case "lbm.collection.v1.MsgGrantPermission.permission": - panic(fmt.Errorf("field permission of message lbm.collection.v1.MsgGrantPermission is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission 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_MsgGrantPermission) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgGrantPermission.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgGrantPermission.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgGrantPermission.to": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgGrantPermission.permission": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermission 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_MsgGrantPermission) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgGrantPermission", 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_MsgGrantPermission) 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_MsgGrantPermission) 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_MsgGrantPermission) 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_MsgGrantPermission) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgGrantPermission) - 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)) - } - l = len(x.Permission) - 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().(*MsgGrantPermission) - 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.Permission) > 0 { - i -= len(x.Permission) - copy(dAtA[i:], x.Permission) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Permission))) - 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().(*MsgGrantPermission) - 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: MsgGrantPermission: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGrantPermission: 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 Permission", 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.Permission = 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_MsgGrantPermissionResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgGrantPermissionResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgGrantPermissionResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgGrantPermissionResponse)(nil) - -type fastReflection_MsgGrantPermissionResponse MsgGrantPermissionResponse - -func (x *MsgGrantPermissionResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgGrantPermissionResponse)(x) -} - -func (x *MsgGrantPermissionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgGrantPermissionResponse_messageType fastReflection_MsgGrantPermissionResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgGrantPermissionResponse_messageType{} - -type fastReflection_MsgGrantPermissionResponse_messageType struct{} - -func (x fastReflection_MsgGrantPermissionResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgGrantPermissionResponse)(nil) -} -func (x fastReflection_MsgGrantPermissionResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgGrantPermissionResponse) -} -func (x fastReflection_MsgGrantPermissionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGrantPermissionResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgGrantPermissionResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGrantPermissionResponse -} - -// 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_MsgGrantPermissionResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgGrantPermissionResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgGrantPermissionResponse) New() protoreflect.Message { - return new(fastReflection_MsgGrantPermissionResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgGrantPermissionResponse) Interface() protoreflect.ProtoMessage { - return (*MsgGrantPermissionResponse)(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_MsgGrantPermissionResponse) 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_MsgGrantPermissionResponse) 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.MsgGrantPermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse 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_MsgGrantPermissionResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgGrantPermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse 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_MsgGrantPermissionResponse) 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.MsgGrantPermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse 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_MsgGrantPermissionResponse) 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.MsgGrantPermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse 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_MsgGrantPermissionResponse) 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.MsgGrantPermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse 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_MsgGrantPermissionResponse) 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.MsgGrantPermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgGrantPermissionResponse 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_MsgGrantPermissionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgGrantPermissionResponse", 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_MsgGrantPermissionResponse) 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_MsgGrantPermissionResponse) 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_MsgGrantPermissionResponse) 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_MsgGrantPermissionResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgGrantPermissionResponse) - 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().(*MsgGrantPermissionResponse) - 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().(*MsgGrantPermissionResponse) - 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: MsgGrantPermissionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGrantPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgRevokePermission protoreflect.MessageDescriptor - fd_MsgRevokePermission_contract_id protoreflect.FieldDescriptor - fd_MsgRevokePermission_from protoreflect.FieldDescriptor - fd_MsgRevokePermission_permission protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgRevokePermission = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgRevokePermission") - fd_MsgRevokePermission_contract_id = md_MsgRevokePermission.Fields().ByName("contract_id") - fd_MsgRevokePermission_from = md_MsgRevokePermission.Fields().ByName("from") - fd_MsgRevokePermission_permission = md_MsgRevokePermission.Fields().ByName("permission") -} - -var _ protoreflect.Message = (*fastReflection_MsgRevokePermission)(nil) - -type fastReflection_MsgRevokePermission MsgRevokePermission - -func (x *MsgRevokePermission) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRevokePermission)(x) -} - -func (x *MsgRevokePermission) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgRevokePermission_messageType fastReflection_MsgRevokePermission_messageType -var _ protoreflect.MessageType = fastReflection_MsgRevokePermission_messageType{} - -type fastReflection_MsgRevokePermission_messageType struct{} - -func (x fastReflection_MsgRevokePermission_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRevokePermission)(nil) -} -func (x fastReflection_MsgRevokePermission_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRevokePermission) -} -func (x fastReflection_MsgRevokePermission_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRevokePermission -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgRevokePermission) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRevokePermission -} - -// 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_MsgRevokePermission) Type() protoreflect.MessageType { - return _fastReflection_MsgRevokePermission_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRevokePermission) New() protoreflect.Message { - return new(fastReflection_MsgRevokePermission) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRevokePermission) Interface() protoreflect.ProtoMessage { - return (*MsgRevokePermission)(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_MsgRevokePermission) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgRevokePermission_contract_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgRevokePermission_from, value) { - return - } - } - if x.Permission != "" { - value := protoreflect.ValueOfString(x.Permission) - if !f(fd_MsgRevokePermission_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_MsgRevokePermission) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgRevokePermission.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgRevokePermission.from": - return x.From != "" - case "lbm.collection.v1.MsgRevokePermission.permission": - return x.Permission != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission 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_MsgRevokePermission) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgRevokePermission.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgRevokePermission.from": - x.From = "" - case "lbm.collection.v1.MsgRevokePermission.permission": - x.Permission = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission 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_MsgRevokePermission) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgRevokePermission.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgRevokePermission.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgRevokePermission.permission": - value := x.Permission - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission 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_MsgRevokePermission) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgRevokePermission.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgRevokePermission.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgRevokePermission.permission": - x.Permission = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission 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_MsgRevokePermission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgRevokePermission.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgRevokePermission is not mutable")) - case "lbm.collection.v1.MsgRevokePermission.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgRevokePermission is not mutable")) - case "lbm.collection.v1.MsgRevokePermission.permission": - panic(fmt.Errorf("field permission of message lbm.collection.v1.MsgRevokePermission is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission 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_MsgRevokePermission) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgRevokePermission.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgRevokePermission.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgRevokePermission.permission": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermission")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermission 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_MsgRevokePermission) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgRevokePermission", 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_MsgRevokePermission) 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_MsgRevokePermission) 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_MsgRevokePermission) 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_MsgRevokePermission) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRevokePermission) - 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.Permission) - 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().(*MsgRevokePermission) - 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.Permission) > 0 { - i -= len(x.Permission) - copy(dAtA[i:], x.Permission) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Permission))) - 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().(*MsgRevokePermission) - 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: MsgRevokePermission: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokePermission: 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 Permission", 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.Permission = 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_MsgRevokePermissionResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgRevokePermissionResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgRevokePermissionResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgRevokePermissionResponse)(nil) - -type fastReflection_MsgRevokePermissionResponse MsgRevokePermissionResponse - -func (x *MsgRevokePermissionResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRevokePermissionResponse)(x) -} - -func (x *MsgRevokePermissionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgRevokePermissionResponse_messageType fastReflection_MsgRevokePermissionResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgRevokePermissionResponse_messageType{} - -type fastReflection_MsgRevokePermissionResponse_messageType struct{} - -func (x fastReflection_MsgRevokePermissionResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRevokePermissionResponse)(nil) -} -func (x fastReflection_MsgRevokePermissionResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRevokePermissionResponse) -} -func (x fastReflection_MsgRevokePermissionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRevokePermissionResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgRevokePermissionResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRevokePermissionResponse -} - -// 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_MsgRevokePermissionResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgRevokePermissionResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRevokePermissionResponse) New() protoreflect.Message { - return new(fastReflection_MsgRevokePermissionResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRevokePermissionResponse) Interface() protoreflect.ProtoMessage { - return (*MsgRevokePermissionResponse)(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_MsgRevokePermissionResponse) 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_MsgRevokePermissionResponse) 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.MsgRevokePermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse 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_MsgRevokePermissionResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgRevokePermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse 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_MsgRevokePermissionResponse) 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.MsgRevokePermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse 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_MsgRevokePermissionResponse) 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.MsgRevokePermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse 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_MsgRevokePermissionResponse) 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.MsgRevokePermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse 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_MsgRevokePermissionResponse) 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.MsgRevokePermissionResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgRevokePermissionResponse 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_MsgRevokePermissionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgRevokePermissionResponse", 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_MsgRevokePermissionResponse) 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_MsgRevokePermissionResponse) 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_MsgRevokePermissionResponse) 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_MsgRevokePermissionResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRevokePermissionResponse) - 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().(*MsgRevokePermissionResponse) - 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().(*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, - } -} - -var ( - md_MsgAttach protoreflect.MessageDescriptor - fd_MsgAttach_contract_id protoreflect.FieldDescriptor - fd_MsgAttach_from protoreflect.FieldDescriptor - fd_MsgAttach_token_id protoreflect.FieldDescriptor - fd_MsgAttach_to_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgAttach = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgAttach") - fd_MsgAttach_contract_id = md_MsgAttach.Fields().ByName("contract_id") - fd_MsgAttach_from = md_MsgAttach.Fields().ByName("from") - fd_MsgAttach_token_id = md_MsgAttach.Fields().ByName("token_id") - fd_MsgAttach_to_token_id = md_MsgAttach.Fields().ByName("to_token_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgAttach)(nil) - -type fastReflection_MsgAttach MsgAttach - -func (x *MsgAttach) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAttach)(x) -} - -func (x *MsgAttach) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgAttach_messageType fastReflection_MsgAttach_messageType -var _ protoreflect.MessageType = fastReflection_MsgAttach_messageType{} - -type fastReflection_MsgAttach_messageType struct{} - -func (x fastReflection_MsgAttach_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAttach)(nil) -} -func (x fastReflection_MsgAttach_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAttach) -} -func (x fastReflection_MsgAttach_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAttach -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgAttach) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAttach -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgAttach) Type() protoreflect.MessageType { - return _fastReflection_MsgAttach_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAttach) New() protoreflect.Message { - return new(fastReflection_MsgAttach) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAttach) Interface() protoreflect.ProtoMessage { - return (*MsgAttach)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgAttach) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgAttach_contract_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgAttach_from, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_MsgAttach_token_id, value) { - return - } - } - if x.ToTokenId != "" { - value := protoreflect.ValueOfString(x.ToTokenId) - if !f(fd_MsgAttach_to_token_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgAttach) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgAttach.from": - return x.From != "" - case "lbm.collection.v1.MsgAttach.token_id": - return x.TokenId != "" - case "lbm.collection.v1.MsgAttach.to_token_id": - return x.ToTokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAttach) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgAttach.from": - x.From = "" - case "lbm.collection.v1.MsgAttach.token_id": - x.TokenId = "" - case "lbm.collection.v1.MsgAttach.to_token_id": - x.ToTokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgAttach) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgAttach.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgAttach.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgAttach.to_token_id": - value := x.ToTokenId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAttach) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgAttach.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgAttach.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.MsgAttach.to_token_id": - x.ToTokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAttach) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgAttach is not mutable")) - case "lbm.collection.v1.MsgAttach.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgAttach is not mutable")) - case "lbm.collection.v1.MsgAttach.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.MsgAttach is not mutable")) - case "lbm.collection.v1.MsgAttach.to_token_id": - panic(fmt.Errorf("field to_token_id of message lbm.collection.v1.MsgAttach is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgAttach) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgAttach.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgAttach.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgAttach.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgAttach.to_token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttach does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgAttach) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgAttach", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgAttach) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAttach) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgAttach) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgAttach) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAttach) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ToTokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAttach) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.ToTokenId) > 0 { - i -= len(x.ToTokenId) - copy(dAtA[i:], x.ToTokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ToTokenId))) - i-- - dAtA[i] = 0x22 - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x1a - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAttach) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAttach: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAttach: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ToTokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ToTokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgAttachResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgAttachResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgAttachResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgAttachResponse)(nil) - -type fastReflection_MsgAttachResponse MsgAttachResponse - -func (x *MsgAttachResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAttachResponse)(x) -} - -func (x *MsgAttachResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgAttachResponse_messageType fastReflection_MsgAttachResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgAttachResponse_messageType{} - -type fastReflection_MsgAttachResponse_messageType struct{} - -func (x fastReflection_MsgAttachResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAttachResponse)(nil) -} -func (x fastReflection_MsgAttachResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAttachResponse) -} -func (x fastReflection_MsgAttachResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAttachResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgAttachResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAttachResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgAttachResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgAttachResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAttachResponse) New() protoreflect.Message { - return new(fastReflection_MsgAttachResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAttachResponse) Interface() protoreflect.ProtoMessage { - return (*MsgAttachResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgAttachResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgAttachResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAttachResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgAttachResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAttachResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAttachResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgAttachResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgAttachResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgAttachResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgAttachResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgAttachResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAttachResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgAttachResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgAttachResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAttachResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAttachResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAttachResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAttachResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAttachResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgDetach protoreflect.MessageDescriptor - fd_MsgDetach_contract_id protoreflect.FieldDescriptor - fd_MsgDetach_from protoreflect.FieldDescriptor - fd_MsgDetach_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgDetach = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgDetach") - fd_MsgDetach_contract_id = md_MsgDetach.Fields().ByName("contract_id") - fd_MsgDetach_from = md_MsgDetach.Fields().ByName("from") - fd_MsgDetach_token_id = md_MsgDetach.Fields().ByName("token_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgDetach)(nil) - -type fastReflection_MsgDetach MsgDetach - -func (x *MsgDetach) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgDetach)(x) -} - -func (x *MsgDetach) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgDetach_messageType fastReflection_MsgDetach_messageType -var _ protoreflect.MessageType = fastReflection_MsgDetach_messageType{} - -type fastReflection_MsgDetach_messageType struct{} - -func (x fastReflection_MsgDetach_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgDetach)(nil) -} -func (x fastReflection_MsgDetach_messageType) New() protoreflect.Message { - return new(fastReflection_MsgDetach) -} -func (x fastReflection_MsgDetach_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDetach -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgDetach) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDetach -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgDetach) Type() protoreflect.MessageType { - return _fastReflection_MsgDetach_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgDetach) New() protoreflect.Message { - return new(fastReflection_MsgDetach) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgDetach) Interface() protoreflect.ProtoMessage { - return (*MsgDetach)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgDetach) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgDetach_contract_id, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgDetach_from, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_MsgDetach_token_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgDetach) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgDetach.from": - return x.From != "" - case "lbm.collection.v1.MsgDetach.token_id": - return x.TokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDetach) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgDetach.from": - x.From = "" - case "lbm.collection.v1.MsgDetach.token_id": - x.TokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgDetach) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgDetach.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgDetach.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDetach) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgDetach.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgDetach.token_id": - x.TokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDetach) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgDetach is not mutable")) - case "lbm.collection.v1.MsgDetach.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgDetach is not mutable")) - case "lbm.collection.v1.MsgDetach.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.MsgDetach is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgDetach) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgDetach.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgDetach.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgDetach.token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetach does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgDetach) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgDetach", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgDetach) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDetach) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgDetach) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgDetach) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgDetach) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgDetach) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x1a - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgDetach) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDetach: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDetach: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgDetachResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgDetachResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgDetachResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgDetachResponse)(nil) - -type fastReflection_MsgDetachResponse MsgDetachResponse - -func (x *MsgDetachResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgDetachResponse)(x) -} - -func (x *MsgDetachResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgDetachResponse_messageType fastReflection_MsgDetachResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgDetachResponse_messageType{} - -type fastReflection_MsgDetachResponse_messageType struct{} - -func (x fastReflection_MsgDetachResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgDetachResponse)(nil) -} -func (x fastReflection_MsgDetachResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgDetachResponse) -} -func (x fastReflection_MsgDetachResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDetachResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgDetachResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDetachResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgDetachResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgDetachResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgDetachResponse) New() protoreflect.Message { - return new(fastReflection_MsgDetachResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgDetachResponse) Interface() protoreflect.ProtoMessage { - return (*MsgDetachResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgDetachResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgDetachResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDetachResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgDetachResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDetachResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDetachResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgDetachResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgDetachResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgDetachResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgDetachResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgDetachResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDetachResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgDetachResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgDetachResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgDetachResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgDetachResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgDetachResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDetachResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDetachResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgOperatorAttach protoreflect.MessageDescriptor - fd_MsgOperatorAttach_contract_id protoreflect.FieldDescriptor - fd_MsgOperatorAttach_operator protoreflect.FieldDescriptor - fd_MsgOperatorAttach_from protoreflect.FieldDescriptor - fd_MsgOperatorAttach_token_id protoreflect.FieldDescriptor - fd_MsgOperatorAttach_to_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorAttach = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorAttach") - fd_MsgOperatorAttach_contract_id = md_MsgOperatorAttach.Fields().ByName("contract_id") - fd_MsgOperatorAttach_operator = md_MsgOperatorAttach.Fields().ByName("operator") - fd_MsgOperatorAttach_from = md_MsgOperatorAttach.Fields().ByName("from") - fd_MsgOperatorAttach_token_id = md_MsgOperatorAttach.Fields().ByName("token_id") - fd_MsgOperatorAttach_to_token_id = md_MsgOperatorAttach.Fields().ByName("to_token_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorAttach)(nil) - -type fastReflection_MsgOperatorAttach MsgOperatorAttach - -func (x *MsgOperatorAttach) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorAttach)(x) -} - -func (x *MsgOperatorAttach) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgOperatorAttach_messageType fastReflection_MsgOperatorAttach_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorAttach_messageType{} - -type fastReflection_MsgOperatorAttach_messageType struct{} - -func (x fastReflection_MsgOperatorAttach_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorAttach)(nil) -} -func (x fastReflection_MsgOperatorAttach_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorAttach) -} -func (x fastReflection_MsgOperatorAttach_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorAttach -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorAttach) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorAttach -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgOperatorAttach) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorAttach_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorAttach) New() protoreflect.Message { - return new(fastReflection_MsgOperatorAttach) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorAttach) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorAttach)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgOperatorAttach) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgOperatorAttach_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_MsgOperatorAttach_operator, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgOperatorAttach_from, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_MsgOperatorAttach_token_id, value) { - return - } - } - if x.ToTokenId != "" { - value := protoreflect.ValueOfString(x.ToTokenId) - if !f(fd_MsgOperatorAttach_to_token_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgOperatorAttach) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgOperatorAttach.operator": - return x.Operator != "" - case "lbm.collection.v1.MsgOperatorAttach.from": - return x.From != "" - case "lbm.collection.v1.MsgOperatorAttach.token_id": - return x.TokenId != "" - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - return x.ToTokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorAttach) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgOperatorAttach.operator": - x.Operator = "" - case "lbm.collection.v1.MsgOperatorAttach.from": - x.From = "" - case "lbm.collection.v1.MsgOperatorAttach.token_id": - x.TokenId = "" - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - x.ToTokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgOperatorAttach) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorAttach.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorAttach.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorAttach.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - value := x.ToTokenId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorAttach) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorAttach.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorAttach.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorAttach.token_id": - x.TokenId = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - x.ToTokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorAttach) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgOperatorAttach is not mutable")) - case "lbm.collection.v1.MsgOperatorAttach.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgOperatorAttach is not mutable")) - case "lbm.collection.v1.MsgOperatorAttach.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgOperatorAttach is not mutable")) - case "lbm.collection.v1.MsgOperatorAttach.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.MsgOperatorAttach is not mutable")) - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - panic(fmt.Errorf("field to_token_id of message lbm.collection.v1.MsgOperatorAttach is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgOperatorAttach) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorAttach.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorAttach.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorAttach.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorAttach.token_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorAttach.to_token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttach does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgOperatorAttach) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorAttach", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgOperatorAttach) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorAttach) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgOperatorAttach) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgOperatorAttach) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorAttach) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ToTokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorAttach) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.ToTokenId) > 0 { - i -= len(x.ToTokenId) - copy(dAtA[i:], x.ToTokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ToTokenId))) - i-- - dAtA[i] = 0x2a - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x22 - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorAttach) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorAttach: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorAttach: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ToTokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ToTokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgOperatorAttachResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorAttachResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorAttachResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorAttachResponse)(nil) - -type fastReflection_MsgOperatorAttachResponse MsgOperatorAttachResponse - -func (x *MsgOperatorAttachResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorAttachResponse)(x) -} - -func (x *MsgOperatorAttachResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgOperatorAttachResponse_messageType fastReflection_MsgOperatorAttachResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorAttachResponse_messageType{} - -type fastReflection_MsgOperatorAttachResponse_messageType struct{} - -func (x fastReflection_MsgOperatorAttachResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorAttachResponse)(nil) -} -func (x fastReflection_MsgOperatorAttachResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorAttachResponse) -} -func (x fastReflection_MsgOperatorAttachResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorAttachResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorAttachResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorAttachResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgOperatorAttachResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorAttachResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorAttachResponse) New() protoreflect.Message { - return new(fastReflection_MsgOperatorAttachResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorAttachResponse) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorAttachResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgOperatorAttachResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgOperatorAttachResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorAttachResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgOperatorAttachResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorAttachResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorAttachResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgOperatorAttachResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorAttachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorAttachResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgOperatorAttachResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorAttachResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgOperatorAttachResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorAttachResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgOperatorAttachResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgOperatorAttachResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorAttachResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorAttachResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorAttachResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorAttachResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorAttachResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgOperatorDetach protoreflect.MessageDescriptor - fd_MsgOperatorDetach_contract_id protoreflect.FieldDescriptor - fd_MsgOperatorDetach_operator protoreflect.FieldDescriptor - fd_MsgOperatorDetach_from protoreflect.FieldDescriptor - fd_MsgOperatorDetach_token_id protoreflect.FieldDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorDetach = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorDetach") - fd_MsgOperatorDetach_contract_id = md_MsgOperatorDetach.Fields().ByName("contract_id") - fd_MsgOperatorDetach_operator = md_MsgOperatorDetach.Fields().ByName("operator") - fd_MsgOperatorDetach_from = md_MsgOperatorDetach.Fields().ByName("from") - fd_MsgOperatorDetach_token_id = md_MsgOperatorDetach.Fields().ByName("token_id") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorDetach)(nil) - -type fastReflection_MsgOperatorDetach MsgOperatorDetach - -func (x *MsgOperatorDetach) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorDetach)(x) -} - -func (x *MsgOperatorDetach) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgOperatorDetach_messageType fastReflection_MsgOperatorDetach_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorDetach_messageType{} - -type fastReflection_MsgOperatorDetach_messageType struct{} - -func (x fastReflection_MsgOperatorDetach_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorDetach)(nil) -} -func (x fastReflection_MsgOperatorDetach_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorDetach) -} -func (x fastReflection_MsgOperatorDetach_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorDetach -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorDetach) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorDetach -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgOperatorDetach) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorDetach_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorDetach) New() protoreflect.Message { - return new(fastReflection_MsgOperatorDetach) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorDetach) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorDetach)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgOperatorDetach) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractId != "" { - value := protoreflect.ValueOfString(x.ContractId) - if !f(fd_MsgOperatorDetach_contract_id, value) { - return - } - } - if x.Operator != "" { - value := protoreflect.ValueOfString(x.Operator) - if !f(fd_MsgOperatorDetach_operator, value) { - return - } - } - if x.From != "" { - value := protoreflect.ValueOfString(x.From) - if !f(fd_MsgOperatorDetach_from, value) { - return - } - } - if x.TokenId != "" { - value := protoreflect.ValueOfString(x.TokenId) - if !f(fd_MsgOperatorDetach_token_id, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgOperatorDetach) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - return x.ContractId != "" - case "lbm.collection.v1.MsgOperatorDetach.operator": - return x.Operator != "" - case "lbm.collection.v1.MsgOperatorDetach.from": - return x.From != "" - case "lbm.collection.v1.MsgOperatorDetach.token_id": - return x.TokenId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorDetach) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - x.ContractId = "" - case "lbm.collection.v1.MsgOperatorDetach.operator": - x.Operator = "" - case "lbm.collection.v1.MsgOperatorDetach.from": - x.From = "" - case "lbm.collection.v1.MsgOperatorDetach.token_id": - x.TokenId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgOperatorDetach) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - value := x.ContractId - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorDetach.operator": - value := x.Operator - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorDetach.from": - value := x.From - return protoreflect.ValueOfString(value) - case "lbm.collection.v1.MsgOperatorDetach.token_id": - value := x.TokenId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorDetach) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - x.ContractId = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorDetach.operator": - x.Operator = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorDetach.from": - x.From = value.Interface().(string) - case "lbm.collection.v1.MsgOperatorDetach.token_id": - x.TokenId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorDetach) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - panic(fmt.Errorf("field contract_id of message lbm.collection.v1.MsgOperatorDetach is not mutable")) - case "lbm.collection.v1.MsgOperatorDetach.operator": - panic(fmt.Errorf("field operator of message lbm.collection.v1.MsgOperatorDetach is not mutable")) - case "lbm.collection.v1.MsgOperatorDetach.from": - panic(fmt.Errorf("field from of message lbm.collection.v1.MsgOperatorDetach is not mutable")) - case "lbm.collection.v1.MsgOperatorDetach.token_id": - panic(fmt.Errorf("field token_id of message lbm.collection.v1.MsgOperatorDetach is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgOperatorDetach) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "lbm.collection.v1.MsgOperatorDetach.contract_id": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorDetach.operator": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorDetach.from": - return protoreflect.ValueOfString("") - case "lbm.collection.v1.MsgOperatorDetach.token_id": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetach")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetach does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgOperatorDetach) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorDetach", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgOperatorDetach) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorDetach) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgOperatorDetach) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgOperatorDetach) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorDetach) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.ContractId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Operator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.From) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TokenId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorDetach) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.TokenId) > 0 { - i -= len(x.TokenId) - copy(dAtA[i:], x.TokenId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenId))) - i-- - dAtA[i] = 0x22 - } - if len(x.From) > 0 { - i -= len(x.From) - copy(dAtA[i:], x.From) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) - i-- - dAtA[i] = 0x1a - } - if len(x.Operator) > 0 { - i -= len(x.Operator) - copy(dAtA[i:], x.Operator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractId) > 0 { - i -= len(x.ContractId) - copy(dAtA[i:], x.ContractId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorDetach) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorDetach: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorDetach: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TokenId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgOperatorDetachResponse protoreflect.MessageDescriptor -) - -func init() { - file_lbm_collection_v1_tx_proto_init() - md_MsgOperatorDetachResponse = File_lbm_collection_v1_tx_proto.Messages().ByName("MsgOperatorDetachResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgOperatorDetachResponse)(nil) - -type fastReflection_MsgOperatorDetachResponse MsgOperatorDetachResponse - -func (x *MsgOperatorDetachResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOperatorDetachResponse)(x) -} - -func (x *MsgOperatorDetachResponse) slowProtoReflect() protoreflect.Message { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgOperatorDetachResponse_messageType fastReflection_MsgOperatorDetachResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgOperatorDetachResponse_messageType{} - -type fastReflection_MsgOperatorDetachResponse_messageType struct{} - -func (x fastReflection_MsgOperatorDetachResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOperatorDetachResponse)(nil) -} -func (x fastReflection_MsgOperatorDetachResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOperatorDetachResponse) -} -func (x fastReflection_MsgOperatorDetachResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorDetachResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgOperatorDetachResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOperatorDetachResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgOperatorDetachResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgOperatorDetachResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOperatorDetachResponse) New() protoreflect.Message { - return new(fastReflection_MsgOperatorDetachResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOperatorDetachResponse) Interface() protoreflect.ProtoMessage { - return (*MsgOperatorDetachResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgOperatorDetachResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgOperatorDetachResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorDetachResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgOperatorDetachResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorDetachResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorDetachResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgOperatorDetachResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: lbm.collection.v1.MsgOperatorDetachResponse")) - } - panic(fmt.Errorf("message lbm.collection.v1.MsgOperatorDetachResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgOperatorDetachResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in lbm.collection.v1.MsgOperatorDetachResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgOperatorDetachResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOperatorDetachResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgOperatorDetachResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgOperatorDetachResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOperatorDetachResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorDetachResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOperatorDetachResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorDetachResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOperatorDetachResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: lbm/collection/v1/tx.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// MsgSendFT is the Msg/SendFT request type. -type MsgSendFT struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address which the transfer is from. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // the address which the transfer is to. - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - // the amount of the transfer. - // Note: amount may be empty. - Amount []*Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *MsgSendFT) Reset() { - *x = MsgSendFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSendFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSendFT) ProtoMessage() {} - -// Deprecated: Use MsgSendFT.ProtoReflect.Descriptor instead. -func (*MsgSendFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{0} -} - -func (x *MsgSendFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgSendFT) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *MsgSendFT) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *MsgSendFT) GetAmount() []*Coin { - if x != nil { - return x.Amount - } - return nil -} - -// MsgSendFTResponse is the Msg/SendFT response type. -type MsgSendFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSendFTResponse) Reset() { - *x = MsgSendFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSendFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSendFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgSendFTResponse.ProtoReflect.Descriptor instead. -func (*MsgSendFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{1} -} - -// MsgOperatorSendFT is the Msg/OperatorSendFT request type. -type MsgOperatorSendFT struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // the address which the transfer is from. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // the address which the transfer is to. - To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` - // the amount of the transfer. - // Note: amount may be empty. - Amount []*Coin `protobuf:"bytes,5,rep,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *MsgOperatorSendFT) Reset() { - *x = MsgOperatorSendFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgOperatorSendFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgOperatorSendFT) ProtoMessage() {} - -// Deprecated: Use MsgOperatorSendFT.ProtoReflect.Descriptor instead. -func (*MsgOperatorSendFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{2} -} - -func (x *MsgOperatorSendFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgOperatorSendFT) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *MsgOperatorSendFT) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *MsgOperatorSendFT) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *MsgOperatorSendFT) GetAmount() []*Coin { - if x != nil { - return x.Amount - } - return nil -} - -// MsgOperatorSendFTResponse is the Msg/OperatorSendFT response type. -type MsgOperatorSendFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgOperatorSendFTResponse) Reset() { - *x = MsgOperatorSendFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgOperatorSendFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgOperatorSendFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgOperatorSendFTResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorSendFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{3} -} - -// MsgSendNFT is the Msg/SendNFT request type. -type MsgSendNFT struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address which the transfer is from. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // the address which the transfer is to. - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - // the token ids to transfer. - TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` -} - -func (x *MsgSendNFT) Reset() { - *x = MsgSendNFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSendNFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSendNFT) ProtoMessage() {} - -// Deprecated: Use MsgSendNFT.ProtoReflect.Descriptor instead. -func (*MsgSendNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{4} -} - -func (x *MsgSendNFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgSendNFT) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *MsgSendNFT) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *MsgSendNFT) GetTokenIds() []string { - if x != nil { - return x.TokenIds - } - return nil -} - -// MsgSendNFTResponse is the Msg/SendNFT response type. -type MsgSendNFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSendNFTResponse) Reset() { - *x = MsgSendNFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSendNFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSendNFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgSendNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgSendNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{5} -} - -// MsgOperatorSendNFT is the Msg/OperatorSendNFT request type. -type MsgOperatorSendNFT struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // the address which the transfer is from. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // the address which the transfer is to. - To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` - // the token ids to transfer. - TokenIds []string `protobuf:"bytes,5,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` -} - -func (x *MsgOperatorSendNFT) Reset() { - *x = MsgOperatorSendNFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgOperatorSendNFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgOperatorSendNFT) ProtoMessage() {} - -// Deprecated: Use MsgOperatorSendNFT.ProtoReflect.Descriptor instead. -func (*MsgOperatorSendNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{6} -} - -func (x *MsgOperatorSendNFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgOperatorSendNFT) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *MsgOperatorSendNFT) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *MsgOperatorSendNFT) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *MsgOperatorSendNFT) GetTokenIds() []string { - if x != nil { - return x.TokenIds - } - return nil -} - -// MsgOperatorSendNFTResponse is the Msg/OperatorSendNFT response type. -type MsgOperatorSendNFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgOperatorSendNFTResponse) Reset() { - *x = MsgOperatorSendNFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgOperatorSendNFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgOperatorSendNFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgOperatorSendNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorSendNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{7} -} - -// MsgAuthorizeOperator is the Msg/AuthorizeOperator request type. -type MsgAuthorizeOperator struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the holder who allows the manipulation of its token. - Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` - // address which the manipulation is allowed to. - Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` -} - -func (x *MsgAuthorizeOperator) Reset() { - *x = MsgAuthorizeOperator{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgAuthorizeOperator) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgAuthorizeOperator) ProtoMessage() {} - -// Deprecated: Use MsgAuthorizeOperator.ProtoReflect.Descriptor instead. -func (*MsgAuthorizeOperator) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{8} -} - -func (x *MsgAuthorizeOperator) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgAuthorizeOperator) GetHolder() string { - if x != nil { - return x.Holder - } - return "" -} - -func (x *MsgAuthorizeOperator) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -// MsgAuthorizeOperatorResponse is the Msg/AuthorizeOperator response type. -type MsgAuthorizeOperatorResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgAuthorizeOperatorResponse) Reset() { - *x = MsgAuthorizeOperatorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgAuthorizeOperatorResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgAuthorizeOperatorResponse) ProtoMessage() {} - -// Deprecated: Use MsgAuthorizeOperatorResponse.ProtoReflect.Descriptor instead. -func (*MsgAuthorizeOperatorResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{9} -} - -// MsgRevokeOperator is the Msg/RevokeOperator request type. -type MsgRevokeOperator struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the holder who allows the manipulation of its token. - Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` - // address which the manipulation is allowed to. - Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` -} - -func (x *MsgRevokeOperator) Reset() { - *x = MsgRevokeOperator{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgRevokeOperator) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgRevokeOperator) ProtoMessage() {} - -// Deprecated: Use MsgRevokeOperator.ProtoReflect.Descriptor instead. -func (*MsgRevokeOperator) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{10} -} - -func (x *MsgRevokeOperator) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgRevokeOperator) GetHolder() string { - if x != nil { - return x.Holder - } - return "" -} - -func (x *MsgRevokeOperator) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -// MsgRevokeOperatorResponse is the Msg/RevokeOperator response type. -type MsgRevokeOperatorResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgRevokeOperatorResponse) Reset() { - *x = MsgRevokeOperatorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgRevokeOperatorResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgRevokeOperatorResponse) ProtoMessage() {} - -// Deprecated: Use MsgRevokeOperatorResponse.ProtoReflect.Descriptor instead. -func (*MsgRevokeOperatorResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{11} -} - -// MsgCreateContract is the Msg/CreateContract request type. -type MsgCreateContract struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // address which all the permissions on the contract will be granted to (not a permanent property). - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - // name defines the human-readable name of the contract. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // uri for the contract image stored off chain. - Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` - // meta is a brief description of the contract. - Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` -} - -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 - } - return "" -} - -func (x *MsgIssueFT) GetMeta() string { - if x != nil { - return x.Meta - } - return "" -} - -func (x *MsgIssueFT) GetDecimals() int32 { - if x != nil { - return x.Decimals - } - return 0 -} - -func (x *MsgIssueFT) GetMintable() bool { - if x != nil { - return x.Mintable - } - return false -} - -func (x *MsgIssueFT) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *MsgIssueFT) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *MsgIssueFT) GetAmount() string { - if x != nil { - return x.Amount - } - return "" -} - -// MsgIssueFTResponse is the Msg/IssueFT response type. -type MsgIssueFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id of the token. - TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` -} - -func (x *MsgIssueFTResponse) Reset() { - *x = MsgIssueFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgIssueFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgIssueFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgIssueFTResponse.ProtoReflect.Descriptor instead. -func (*MsgIssueFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{15} -} - -func (x *MsgIssueFTResponse) GetTokenId() string { - if x != nil { - return x.TokenId - } - return "" -} - -// MsgIssueNFT is the Msg/IssueNFT request type. -type MsgIssueNFT struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // name defines the human-readable name of the token type. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // meta is a brief description of the token type. - Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` - // the address of the grantee which must have the permission to issue a token. - Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` -} - -func (x *MsgIssueNFT) Reset() { - *x = MsgIssueNFT{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgIssueNFT) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgIssueNFT) ProtoMessage() {} - -// Deprecated: Use MsgIssueNFT.ProtoReflect.Descriptor instead. -func (*MsgIssueNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{16} -} - -func (x *MsgIssueNFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" -} - -func (x *MsgIssueNFT) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *MsgIssueNFT) GetMeta() string { - if x != nil { - return x.Meta - } - return "" -} - -func (x *MsgIssueNFT) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -// MsgIssueNFTResponse is the Msg/IssueNFT response type. -type MsgIssueNFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id of the new token type. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` -} - -func (x *MsgIssueNFTResponse) Reset() { - *x = MsgIssueNFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +// 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_MsgRevokePermissionResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields } -func (x *MsgIssueNFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) +// 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_MsgRevokePermissionResponse) IsValid() bool { + return x != nil } -func (*MsgIssueNFTResponse) ProtoMessage() {} +// 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_MsgRevokePermissionResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRevokePermissionResponse) + 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, + } + } -// Deprecated: Use MsgIssueNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgIssueNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{17} -} + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgRevokePermissionResponse) + 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().(*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 *MsgIssueNFTResponse) GetTokenType() string { - if x != nil { - return x.TokenType + 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, } - return "" } -// MsgMintFT is the Msg/MintFT request type. -type MsgMintFT struct { +// 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) +) + +// MsgSendNFT is the Msg/SendNFT request type. +type MsgSendNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the grantee which has the permission for the mint. + // the address which the transfer is from. From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // address which the minted tokens will be sent to. + // the address which the transfer is 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"` + // the token ids to transfer. + TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` } -func (x *MsgMintFT) Reset() { - *x = MsgMintFT{} +func (x *MsgSendNFT) Reset() { + *x = MsgSendNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[18] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgMintFT) String() string { +func (x *MsgSendNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgMintFT) ProtoMessage() {} +func (*MsgSendNFT) ProtoMessage() {} -// Deprecated: Use MsgMintFT.ProtoReflect.Descriptor instead. -func (*MsgMintFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{18} +// Deprecated: Use MsgSendNFT.ProtoReflect.Descriptor instead. +func (*MsgSendNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{0} } -func (x *MsgMintFT) GetContractId() string { +func (x *MsgSendNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgMintFT) GetFrom() string { +func (x *MsgSendNFT) GetFrom() string { if x != nil { return x.From } return "" } -func (x *MsgMintFT) GetTo() string { +func (x *MsgSendNFT) GetTo() string { if x != nil { return x.To } return "" } -func (x *MsgMintFT) GetAmount() []*Coin { +func (x *MsgSendNFT) GetTokenIds() []string { if x != nil { - return x.Amount + return x.TokenIds } return nil } -// MsgMintFTResponse is the Msg/MintFT response type. -type MsgMintFTResponse struct { +// MsgSendNFTResponse is the Msg/SendNFT response type. +type MsgSendNFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgMintFTResponse) Reset() { - *x = MsgMintFTResponse{} +func (x *MsgSendNFTResponse) Reset() { + *x = MsgSendNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[19] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgMintFTResponse) String() string { +func (x *MsgSendNFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgMintFTResponse) ProtoMessage() {} +func (*MsgSendNFTResponse) ProtoMessage() {} -// Deprecated: Use MsgMintFTResponse.ProtoReflect.Descriptor instead. -func (*MsgMintFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{19} +// Deprecated: Use MsgSendNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgSendNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{1} } -// MsgMintNFT is the Msg/MintNFT request type. -type MsgMintNFT struct { +// MsgOperatorSendNFT is the Msg/OperatorSendNFT request type. +type MsgOperatorSendNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the grantee which has the permission for the mint. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // address which the minted token will be sent to. - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - // parameters for the minted tokens. - Params []*MintNFTParam `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"` + // the address of the operator. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // the address which the transfer is from. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // the address which the transfer is to. + To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + // the token ids to transfer. + TokenIds []string `protobuf:"bytes,5,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` } -func (x *MsgMintNFT) Reset() { - *x = MsgMintNFT{} +func (x *MsgOperatorSendNFT) Reset() { + *x = MsgOperatorSendNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[20] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgMintNFT) String() string { +func (x *MsgOperatorSendNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgMintNFT) ProtoMessage() {} - -// Deprecated: Use MsgMintNFT.ProtoReflect.Descriptor instead. -func (*MsgMintNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{20} -} +func (*MsgOperatorSendNFT) ProtoMessage() {} -func (x *MsgMintNFT) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" +// Deprecated: Use MsgOperatorSendNFT.ProtoReflect.Descriptor instead. +func (*MsgOperatorSendNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{2} } -func (x *MsgMintNFT) GetFrom() string { +func (x *MsgOperatorSendNFT) GetContractId() string { if x != nil { - return x.From + return x.ContractId } return "" } -func (x *MsgMintNFT) GetTo() string { +func (x *MsgOperatorSendNFT) GetOperator() string { if x != nil { - return x.To + return x.Operator } return "" } -func (x *MsgMintNFT) GetParams() []*MintNFTParam { +func (x *MsgOperatorSendNFT) GetFrom() string { if x != nil { - return x.Params + return x.From } - return nil -} - -// MsgMintNFTResponse is the Msg/MintNFT response type. -type MsgMintNFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // ids of the new non-fungible tokens. - TokenIds []string `protobuf:"bytes,1,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` + return "" } -func (x *MsgMintNFTResponse) Reset() { - *x = MsgMintNFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *MsgOperatorSendNFT) GetTo() string { + if x != nil { + return x.To } + return "" } -func (x *MsgMintNFTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgMintNFTResponse) ProtoMessage() {} - -// Deprecated: Use MsgMintNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgMintNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{21} -} - -func (x *MsgMintNFTResponse) GetTokenIds() []string { +func (x *MsgOperatorSendNFT) GetTokenIds() []string { if x != nil { return x.TokenIds } return nil } -// MintNFTParam defines a parameter for minting nft. -type MintNFTParam struct { +// MsgOperatorSendNFTResponse is the Msg/OperatorSendNFT response type. +type MsgOperatorSendNFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // token type or class id of the nft. - // Note: it cannot start with zero. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` - // name defines the human-readable name of the nft (mandatory). - // Note: it has an app-specific limit in length. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // meta is a brief description of the nft. - // Note: it has an app-specific limit in length. - Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` } -func (x *MintNFTParam) Reset() { - *x = MintNFTParam{} +func (x *MsgOperatorSendNFTResponse) Reset() { + *x = MsgOperatorSendNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[22] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MintNFTParam) String() string { +func (x *MsgOperatorSendNFTResponse) 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 (*MsgOperatorSendNFTResponse) ProtoMessage() {} -func (x *MintNFTParam) GetMeta() string { - if x != nil { - return x.Meta - } - return "" +// Deprecated: Use MsgOperatorSendNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgOperatorSendNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{3} } -// MsgBurnFT is the Msg/BurnFT request type. -type MsgBurnFT struct { +// MsgAuthorizeOperator is the Msg/AuthorizeOperator request type. +type MsgAuthorizeOperator struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address 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"` + // address of the holder who allows the manipulation of its token. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which the manipulation is allowed to. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` } -func (x *MsgBurnFT) Reset() { - *x = MsgBurnFT{} +func (x *MsgAuthorizeOperator) Reset() { + *x = MsgAuthorizeOperator{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[23] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgBurnFT) String() string { +func (x *MsgAuthorizeOperator) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgBurnFT) ProtoMessage() {} +func (*MsgAuthorizeOperator) ProtoMessage() {} -// Deprecated: Use MsgBurnFT.ProtoReflect.Descriptor instead. -func (*MsgBurnFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{23} +// Deprecated: Use MsgAuthorizeOperator.ProtoReflect.Descriptor instead. +func (*MsgAuthorizeOperator) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{4} } -func (x *MsgBurnFT) GetContractId() string { +func (x *MsgAuthorizeOperator) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgBurnFT) GetFrom() string { +func (x *MsgAuthorizeOperator) GetHolder() string { if x != nil { - return x.From + return x.Holder } return "" } -func (x *MsgBurnFT) GetAmount() []*Coin { +func (x *MsgAuthorizeOperator) GetOperator() string { if x != nil { - return x.Amount + return x.Operator } - return nil + return "" } -// MsgBurnFTResponse is the Msg/BurnFT response type. -type MsgBurnFTResponse struct { +// MsgAuthorizeOperatorResponse is the Msg/AuthorizeOperator response type. +type MsgAuthorizeOperatorResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgBurnFTResponse) Reset() { - *x = MsgBurnFTResponse{} +func (x *MsgAuthorizeOperatorResponse) Reset() { + *x = MsgAuthorizeOperatorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[24] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgBurnFTResponse) String() string { +func (x *MsgAuthorizeOperatorResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgBurnFTResponse) ProtoMessage() {} +func (*MsgAuthorizeOperatorResponse) ProtoMessage() {} -// Deprecated: Use MsgBurnFTResponse.ProtoReflect.Descriptor instead. -func (*MsgBurnFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{24} +// Deprecated: Use MsgAuthorizeOperatorResponse.ProtoReflect.Descriptor instead. +func (*MsgAuthorizeOperatorResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{5} } -// MsgOperatorBurnFT is the Msg/OperatorBurnFT request type. -type MsgOperatorBurnFT struct { +// MsgRevokeOperator is the Msg/RevokeOperator request type. +type MsgRevokeOperator struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // 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"` + // address of the holder who allows the manipulation of its token. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which the manipulation is allowed to. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` } -func (x *MsgOperatorBurnFT) Reset() { - *x = MsgOperatorBurnFT{} +func (x *MsgRevokeOperator) Reset() { + *x = MsgRevokeOperator{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[25] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorBurnFT) String() string { +func (x *MsgRevokeOperator) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorBurnFT) ProtoMessage() {} +func (*MsgRevokeOperator) ProtoMessage() {} -// Deprecated: Use MsgOperatorBurnFT.ProtoReflect.Descriptor instead. -func (*MsgOperatorBurnFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{25} +// Deprecated: Use MsgRevokeOperator.ProtoReflect.Descriptor instead. +func (*MsgRevokeOperator) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{6} } -func (x *MsgOperatorBurnFT) GetContractId() string { +func (x *MsgRevokeOperator) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgOperatorBurnFT) GetOperator() string { +func (x *MsgRevokeOperator) GetHolder() string { if x != nil { - return x.Operator + return x.Holder } return "" } -func (x *MsgOperatorBurnFT) GetFrom() string { +func (x *MsgRevokeOperator) GetOperator() string { if x != nil { - return x.From + return x.Operator } return "" } -func (x *MsgOperatorBurnFT) GetAmount() []*Coin { - if x != nil { - return x.Amount - } - return nil -} - -// MsgOperatorBurnFTResponse is the Msg/OperatorBurnFT response type. -type MsgOperatorBurnFTResponse struct { +// MsgRevokeOperatorResponse is the Msg/RevokeOperator response type. +type MsgRevokeOperatorResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgOperatorBurnFTResponse) Reset() { - *x = MsgOperatorBurnFTResponse{} +func (x *MsgRevokeOperatorResponse) Reset() { + *x = MsgRevokeOperatorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[26] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorBurnFTResponse) String() string { +func (x *MsgRevokeOperatorResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorBurnFTResponse) ProtoMessage() {} +func (*MsgRevokeOperatorResponse) ProtoMessage() {} -// Deprecated: Use MsgOperatorBurnFTResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorBurnFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{26} +// Deprecated: Use MsgRevokeOperatorResponse.ProtoReflect.Descriptor instead. +func (*MsgRevokeOperatorResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{7} } -// MsgBurnNFT is the Msg/BurnNFT request type. -type MsgBurnNFT struct { +// MsgCreateContract is the Msg/CreateContract request type. +type MsgCreateContract struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address 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"` + // address which all the permissions on the contract will be granted to (not a permanent property). + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + // name defines the human-readable name of the contract. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // uri for the contract image stored off chain. + Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` + // meta is a brief description of the contract. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` } -func (x *MsgBurnNFT) Reset() { - *x = MsgBurnNFT{} +func (x *MsgCreateContract) Reset() { + *x = MsgCreateContract{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[27] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgBurnNFT) String() string { +func (x *MsgCreateContract) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgBurnNFT) ProtoMessage() {} +func (*MsgCreateContract) ProtoMessage() {} -// Deprecated: Use MsgBurnNFT.ProtoReflect.Descriptor instead. -func (*MsgBurnNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{27} +// Deprecated: Use MsgCreateContract.ProtoReflect.Descriptor instead. +func (*MsgCreateContract) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{8} } -func (x *MsgBurnNFT) GetContractId() string { +func (x *MsgCreateContract) GetOwner() string { if x != nil { - return x.ContractId + return x.Owner } return "" } -func (x *MsgBurnNFT) GetFrom() string { +func (x *MsgCreateContract) GetName() string { if x != nil { - return x.From + return x.Name } return "" } -func (x *MsgBurnNFT) GetTokenIds() []string { +func (x *MsgCreateContract) GetUri() string { if x != nil { - return x.TokenIds + return x.Uri } - return nil + return "" } -// MsgBurnNFTResponse is the Msg/BurnNFT response type. -type MsgBurnNFTResponse struct { +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 *MsgBurnNFTResponse) Reset() { - *x = MsgBurnNFTResponse{} +func (x *MsgCreateContractResponse) Reset() { + *x = MsgCreateContractResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[28] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgBurnNFTResponse) String() string { +func (x *MsgCreateContractResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgBurnNFTResponse) ProtoMessage() {} +func (*MsgCreateContractResponse) ProtoMessage() {} -// Deprecated: Use MsgBurnNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgBurnNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{28} +// Deprecated: Use MsgCreateContractResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateContractResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{9} +} + +func (x *MsgCreateContractResponse) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" } -// MsgOperatorBurnNFT is the Msg/OperatorBurnNFT request type. -type MsgOperatorBurnNFT struct { +// MsgIssueNFT is the Msg/IssueNFT request type. +type MsgIssueNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address which 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"` + // name defines the human-readable name of the token type. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token type. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + // the address of the grantee which must have the permission to issue a token. + Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` } -func (x *MsgOperatorBurnNFT) Reset() { - *x = MsgOperatorBurnNFT{} +func (x *MsgIssueNFT) Reset() { + *x = MsgIssueNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[29] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorBurnNFT) String() string { +func (x *MsgIssueNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorBurnNFT) ProtoMessage() {} +func (*MsgIssueNFT) ProtoMessage() {} -// Deprecated: Use MsgOperatorBurnNFT.ProtoReflect.Descriptor instead. -func (*MsgOperatorBurnNFT) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{29} +// Deprecated: Use MsgIssueNFT.ProtoReflect.Descriptor instead. +func (*MsgIssueNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{10} } -func (x *MsgOperatorBurnNFT) GetContractId() string { +func (x *MsgIssueNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgOperatorBurnNFT) GetOperator() string { +func (x *MsgIssueNFT) GetName() string { if x != nil { - return x.Operator + return x.Name } return "" } -func (x *MsgOperatorBurnNFT) GetFrom() string { +func (x *MsgIssueNFT) GetMeta() string { if x != nil { - return x.From + return x.Meta } return "" } -func (x *MsgOperatorBurnNFT) GetTokenIds() []string { +func (x *MsgIssueNFT) GetOwner() string { if x != nil { - return x.TokenIds + return x.Owner } - return nil + return "" } -// MsgOperatorBurnNFTResponse is the Msg/OperatorBurnNFT response type. -type MsgOperatorBurnNFTResponse struct { +// MsgIssueNFTResponse is the Msg/IssueNFT response type. +type MsgIssueNFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // id of the new token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` } -func (x *MsgOperatorBurnNFTResponse) Reset() { - *x = MsgOperatorBurnNFTResponse{} +func (x *MsgIssueNFTResponse) Reset() { + *x = MsgIssueNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[30] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorBurnNFTResponse) String() string { +func (x *MsgIssueNFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorBurnNFTResponse) ProtoMessage() {} +func (*MsgIssueNFTResponse) ProtoMessage() {} -// Deprecated: Use MsgOperatorBurnNFTResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorBurnNFTResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{30} +// Deprecated: Use MsgIssueNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgIssueNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{11} } -// MsgModify is the Msg/Modify request type. -type MsgModify struct { +func (x *MsgIssueNFTResponse) GetTokenType() string { + if x != nil { + return x.TokenType + } + return "" +} + +// MsgMintNFT is the Msg/MintNFT request type. +type MsgMintNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // the address of the grantee which must have modify permission. - Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` - // token type of the token. - // refer to TokenType for the definition. - TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` - // token index of the token. - // if index is empty, it would modify the corresponding token type. - // if index is not empty, it would modify the corresponding nft. - // Note: if token type is of FTs, the index cannot be empty. - TokenIndex string `protobuf:"bytes,4,opt,name=token_index,json=tokenIndex,proto3" json:"token_index,omitempty"` - // changes to apply. - // possible attribute keys on modifying collection: name, uri, base_img_uri (deprecated), meta. - // possible attribute keys on modifying token type and token: name, meta. - Changes []*Attribute `protobuf:"bytes,5,rep,name=changes,proto3" json:"changes,omitempty"` + // address of the grantee which has the permission for the mint. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // address which the minted token will be sent to. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // parameters for the minted tokens. + Params []*MintNFTParam `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"` } -func (x *MsgModify) Reset() { - *x = MsgModify{} +func (x *MsgMintNFT) Reset() { + *x = MsgMintNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[31] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgModify) String() string { +func (x *MsgMintNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgModify) ProtoMessage() {} +func (*MsgMintNFT) ProtoMessage() {} -// Deprecated: Use MsgModify.ProtoReflect.Descriptor instead. -func (*MsgModify) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{31} +// Deprecated: Use MsgMintNFT.ProtoReflect.Descriptor instead. +func (*MsgMintNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{12} } -func (x *MsgModify) GetContractId() string { +func (x *MsgMintNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgModify) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *MsgModify) GetTokenType() string { +func (x *MsgMintNFT) GetFrom() string { if x != nil { - return x.TokenType + return x.From } return "" } -func (x *MsgModify) GetTokenIndex() string { +func (x *MsgMintNFT) GetTo() string { if x != nil { - return x.TokenIndex + return x.To } return "" } -func (x *MsgModify) GetChanges() []*Attribute { +func (x *MsgMintNFT) GetParams() []*MintNFTParam { if x != nil { - return x.Changes + return x.Params } return nil } -// MsgModifyResponse is the Msg/Modify response type. -type MsgModifyResponse struct { +// MsgMintNFTResponse is the Msg/MintNFT response type. +type MsgMintNFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // ids of the new non-fungible tokens. + TokenIds []string `protobuf:"bytes,1,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` } -func (x *MsgModifyResponse) Reset() { - *x = MsgModifyResponse{} +func (x *MsgMintNFTResponse) Reset() { + *x = MsgMintNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[32] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgModifyResponse) String() string { +func (x *MsgMintNFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgModifyResponse) ProtoMessage() {} +func (*MsgMintNFTResponse) ProtoMessage() {} -// Deprecated: Use MsgModifyResponse.ProtoReflect.Descriptor instead. -func (*MsgModifyResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{32} +// Deprecated: Use MsgMintNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgMintNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{13} } -// MsgGrantPermission is the Msg/GrantPermission request type. -type MsgGrantPermission struct { +func (x *MsgMintNFTResponse) GetTokenIds() []string { + if x != nil { + return x.TokenIds + } + return nil +} + +// MintNFTParam defines a parameter for minting nft. +type MintNFTParam struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // contract id associated with the contract. - ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the granter which must have the permission to give. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // address of the grantee. - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - // permission on the contract. - Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"` + // 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 *MsgGrantPermission) Reset() { - *x = MsgGrantPermission{} +func (x *MintNFTParam) Reset() { + *x = MintNFTParam{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[33] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgGrantPermission) String() string { +func (x *MintNFTParam) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgGrantPermission) ProtoMessage() {} - -// Deprecated: Use MsgGrantPermission.ProtoReflect.Descriptor instead. -func (*MsgGrantPermission) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{33} -} +func (*MintNFTParam) ProtoMessage() {} -func (x *MsgGrantPermission) GetContractId() string { - if x != nil { - return x.ContractId - } - return "" +// Deprecated: Use MintNFTParam.ProtoReflect.Descriptor instead. +func (*MintNFTParam) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{14} } -func (x *MsgGrantPermission) GetFrom() string { +func (x *MintNFTParam) GetTokenType() string { if x != nil { - return x.From + return x.TokenType } return "" } -func (x *MsgGrantPermission) GetTo() string { +func (x *MintNFTParam) GetName() string { if x != nil { - return x.To + return x.Name } return "" } -func (x *MsgGrantPermission) GetPermission() string { +func (x *MintNFTParam) GetMeta() string { if x != nil { - return x.Permission + return x.Meta } return "" } -// MsgGrantPermissionResponse is the Msg/GrantPermission response type. -type MsgGrantPermissionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgGrantPermissionResponse) Reset() { - *x = MsgGrantPermissionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgGrantPermissionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgGrantPermissionResponse) ProtoMessage() {} - -// Deprecated: Use MsgGrantPermissionResponse.ProtoReflect.Descriptor instead. -func (*MsgGrantPermissionResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{34} -} - -// MsgRevokePermission is the Msg/RevokePermission request type. -type MsgRevokePermission struct { +// MsgBurnNFT is the Msg/BurnNFT request type. +type MsgBurnNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the grantee which abandons the permission. + // address which the tokens will be burnt from. + // Note: it must have the permission for the burn. From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // permission on the contract. - Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` + // the token ids to burn. + // Note: id cannot start with zero. + TokenIds []string `protobuf:"bytes,3,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` } -func (x *MsgRevokePermission) Reset() { - *x = MsgRevokePermission{} +func (x *MsgBurnNFT) Reset() { + *x = MsgBurnNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[35] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgRevokePermission) String() string { +func (x *MsgBurnNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgRevokePermission) ProtoMessage() {} +func (*MsgBurnNFT) ProtoMessage() {} -// Deprecated: Use MsgRevokePermission.ProtoReflect.Descriptor instead. -func (*MsgRevokePermission) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{35} +// Deprecated: Use MsgBurnNFT.ProtoReflect.Descriptor instead. +func (*MsgBurnNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{15} } -func (x *MsgRevokePermission) GetContractId() string { +func (x *MsgBurnNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgRevokePermission) GetFrom() string { +func (x *MsgBurnNFT) GetFrom() string { if x != nil { return x.From } return "" } -func (x *MsgRevokePermission) GetPermission() string { +func (x *MsgBurnNFT) GetTokenIds() []string { if x != nil { - return x.Permission + return x.TokenIds } - return "" + return nil } -// MsgRevokePermissionResponse is the Msg/RevokePermission response type. -type MsgRevokePermissionResponse struct { +// MsgBurnNFTResponse is the Msg/BurnNFT response type. +type MsgBurnNFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgRevokePermissionResponse) Reset() { - *x = MsgRevokePermissionResponse{} +func (x *MsgBurnNFTResponse) Reset() { + *x = MsgBurnNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[36] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgRevokePermissionResponse) String() string { +func (x *MsgBurnNFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgRevokePermissionResponse) ProtoMessage() {} +func (*MsgBurnNFTResponse) ProtoMessage() {} -// Deprecated: Use MsgRevokePermissionResponse.ProtoReflect.Descriptor instead. -func (*MsgRevokePermissionResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{36} +// Deprecated: Use MsgBurnNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgBurnNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{16} } -// MsgAttach is the Msg/Attach request type. -// -// Deprecated: Do not use. -type MsgAttach struct { +// MsgOperatorBurnNFT is the Msg/OperatorBurnNFT request type. +type MsgOperatorBurnNFT struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to attach. - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // to token id which one attachs the token to. - ToTokenId string `protobuf:"bytes,4,opt,name=to_token_id,json=toTokenId,proto3" json:"to_token_id,omitempty"` + // address which triggers the burn. + // Note: it must have the permission for the burn. + // Note: it must have been authorized by from. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // address which the tokens will be burnt from. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // the token ids to burn. + // Note: id cannot start with zero. + TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` } -func (x *MsgAttach) Reset() { - *x = MsgAttach{} +func (x *MsgOperatorBurnNFT) Reset() { + *x = MsgOperatorBurnNFT{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[37] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgAttach) String() string { +func (x *MsgOperatorBurnNFT) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgAttach) ProtoMessage() {} +func (*MsgOperatorBurnNFT) ProtoMessage() {} -// Deprecated: Use MsgAttach.ProtoReflect.Descriptor instead. -func (*MsgAttach) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{37} +// Deprecated: Use MsgOperatorBurnNFT.ProtoReflect.Descriptor instead. +func (*MsgOperatorBurnNFT) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{17} } -func (x *MsgAttach) GetContractId() string { +func (x *MsgOperatorBurnNFT) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgAttach) GetFrom() string { +func (x *MsgOperatorBurnNFT) GetOperator() string { if x != nil { - return x.From + return x.Operator } return "" } -func (x *MsgAttach) GetTokenId() string { +func (x *MsgOperatorBurnNFT) GetFrom() string { if x != nil { - return x.TokenId + return x.From } return "" } -func (x *MsgAttach) GetToTokenId() string { +func (x *MsgOperatorBurnNFT) GetTokenIds() []string { if x != nil { - return x.ToTokenId + return x.TokenIds } - return "" + return nil } -// MsgAttachResponse is the Msg/Attach response type. -// -// Deprecated: Do not use. -type MsgAttachResponse struct { +// MsgOperatorBurnNFTResponse is the Msg/OperatorBurnNFT response type. +type MsgOperatorBurnNFTResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgAttachResponse) Reset() { - *x = MsgAttachResponse{} +func (x *MsgOperatorBurnNFTResponse) Reset() { + *x = MsgOperatorBurnNFTResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[38] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgAttachResponse) String() string { +func (x *MsgOperatorBurnNFTResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgAttachResponse) ProtoMessage() {} +func (*MsgOperatorBurnNFTResponse) ProtoMessage() {} -// Deprecated: Use MsgAttachResponse.ProtoReflect.Descriptor instead. -func (*MsgAttachResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{38} +// Deprecated: Use MsgOperatorBurnNFTResponse.ProtoReflect.Descriptor instead. +func (*MsgOperatorBurnNFTResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{18} } -// MsgDetach is the Msg/Detach request type. -// -// Deprecated: Do not use. -type MsgDetach struct { +// MsgModify is the Msg/Modify request type. +type MsgModify struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to detach. - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // the address of the grantee which must have modify permission. + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + // token type of the token. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // token index of the token. + // if index is empty, it would modify the corresponding token type. + // if index is not empty, it would modify the corresponding nft. + // Note: if token type is of FTs, the index cannot be empty. + TokenIndex string `protobuf:"bytes,4,opt,name=token_index,json=tokenIndex,proto3" json:"token_index,omitempty"` + // changes to apply. + // possible attribute keys on modifying collection: name, uri, base_img_uri (deprecated), meta. + // possible attribute keys on modifying token type and token: name, meta. + Changes []*Attribute `protobuf:"bytes,5,rep,name=changes,proto3" json:"changes,omitempty"` } -func (x *MsgDetach) Reset() { - *x = MsgDetach{} +func (x *MsgModify) Reset() { + *x = MsgModify{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[39] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgDetach) String() string { +func (x *MsgModify) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgDetach) ProtoMessage() {} +func (*MsgModify) ProtoMessage() {} -// Deprecated: Use MsgDetach.ProtoReflect.Descriptor instead. -func (*MsgDetach) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{39} +// Deprecated: Use MsgModify.ProtoReflect.Descriptor instead. +func (*MsgModify) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{19} } -func (x *MsgDetach) GetContractId() string { +func (x *MsgModify) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgDetach) GetFrom() string { +func (x *MsgModify) GetOwner() string { if x != nil { - return x.From + return x.Owner } return "" } -func (x *MsgDetach) GetTokenId() string { +func (x *MsgModify) GetTokenType() string { if x != nil { - return x.TokenId + return x.TokenType } return "" } -// MsgDetachResponse is the Msg/Detach response type. -// -// Deprecated: Do not use. -type MsgDetachResponse struct { +func (x *MsgModify) GetTokenIndex() string { + if x != nil { + return x.TokenIndex + } + return "" +} + +func (x *MsgModify) GetChanges() []*Attribute { + if x != nil { + return x.Changes + } + return nil +} + +// MsgModifyResponse is the Msg/Modify response type. +type MsgModifyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgDetachResponse) Reset() { - *x = MsgDetachResponse{} +func (x *MsgModifyResponse) Reset() { + *x = MsgModifyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[40] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgDetachResponse) String() string { +func (x *MsgModifyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgDetachResponse) ProtoMessage() {} +func (*MsgModifyResponse) ProtoMessage() {} -// Deprecated: Use MsgDetachResponse.ProtoReflect.Descriptor instead. -func (*MsgDetachResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{40} +// Deprecated: Use MsgModifyResponse.ProtoReflect.Descriptor instead. +func (*MsgModifyResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{20} } -// MsgOperatorAttach is the Msg/OperatorAttach request type. -// -// Deprecated: Do not use. -type MsgOperatorAttach struct { +// MsgGrantPermission is the Msg/GrantPermission request type. +type MsgGrantPermission struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to attach. - TokenId string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - // to token id which one attachs the token to. - ToTokenId string `protobuf:"bytes,5,opt,name=to_token_id,json=toTokenId,proto3" json:"to_token_id,omitempty"` + // address of the granter which must have the permission to give. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // address of the grantee. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // permission on the contract. + Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"` } -func (x *MsgOperatorAttach) Reset() { - *x = MsgOperatorAttach{} +func (x *MsgGrantPermission) Reset() { + *x = MsgGrantPermission{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[41] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorAttach) String() string { +func (x *MsgGrantPermission) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorAttach) ProtoMessage() {} +func (*MsgGrantPermission) ProtoMessage() {} -// Deprecated: Use MsgOperatorAttach.ProtoReflect.Descriptor instead. -func (*MsgOperatorAttach) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{41} +// Deprecated: Use MsgGrantPermission.ProtoReflect.Descriptor instead. +func (*MsgGrantPermission) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{21} } -func (x *MsgOperatorAttach) GetContractId() string { +func (x *MsgGrantPermission) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgOperatorAttach) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *MsgOperatorAttach) GetFrom() string { +func (x *MsgGrantPermission) GetFrom() string { if x != nil { return x.From } return "" } -func (x *MsgOperatorAttach) GetTokenId() string { +func (x *MsgGrantPermission) GetTo() string { if x != nil { - return x.TokenId + return x.To } return "" } -func (x *MsgOperatorAttach) GetToTokenId() string { +func (x *MsgGrantPermission) GetPermission() string { if x != nil { - return x.ToTokenId + return x.Permission } return "" } -// MsgOperatorAttachResponse is the Msg/OperatorAttach response type. -// -// Deprecated: Do not use. -type MsgOperatorAttachResponse struct { +// MsgGrantPermissionResponse is the Msg/GrantPermission response type. +type MsgGrantPermissionResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgOperatorAttachResponse) Reset() { - *x = MsgOperatorAttachResponse{} +func (x *MsgGrantPermissionResponse) Reset() { + *x = MsgGrantPermissionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[42] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorAttachResponse) String() string { +func (x *MsgGrantPermissionResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorAttachResponse) ProtoMessage() {} +func (*MsgGrantPermissionResponse) ProtoMessage() {} -// Deprecated: Use MsgOperatorAttachResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorAttachResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{42} +// Deprecated: Use MsgGrantPermissionResponse.ProtoReflect.Descriptor instead. +func (*MsgGrantPermissionResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{22} } -// MsgOperatorDetach is the Msg/OperatorDetach request type. -// -// Deprecated: Do not use. -type MsgOperatorDetach struct { +// MsgRevokePermission is the Msg/RevokePermission request type. +type MsgRevokePermission struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // contract id associated with the contract. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` - // address of the operator. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - // address of the owner of the token. - From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - // token id of the token to detach. - TokenId string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // address of the grantee which abandons the permission. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // permission on the contract. + Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` } -func (x *MsgOperatorDetach) Reset() { - *x = MsgOperatorDetach{} +func (x *MsgRevokePermission) Reset() { + *x = MsgRevokePermission{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[43] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorDetach) String() string { +func (x *MsgRevokePermission) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorDetach) ProtoMessage() {} +func (*MsgRevokePermission) ProtoMessage() {} -// Deprecated: Use MsgOperatorDetach.ProtoReflect.Descriptor instead. -func (*MsgOperatorDetach) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{43} +// Deprecated: Use MsgRevokePermission.ProtoReflect.Descriptor instead. +func (*MsgRevokePermission) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{23} } -func (x *MsgOperatorDetach) GetContractId() string { +func (x *MsgRevokePermission) GetContractId() string { if x != nil { return x.ContractId } return "" } -func (x *MsgOperatorDetach) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *MsgOperatorDetach) GetFrom() string { +func (x *MsgRevokePermission) GetFrom() string { if x != nil { return x.From } return "" } -func (x *MsgOperatorDetach) GetTokenId() string { +func (x *MsgRevokePermission) GetPermission() string { if x != nil { - return x.TokenId + return x.Permission } return "" } -// MsgOperatorDetachResponse is the Msg/OperatorDetach response type. -// -// Deprecated: Do not use. -type MsgOperatorDetachResponse struct { +// MsgRevokePermissionResponse is the Msg/RevokePermission response type. +type MsgRevokePermissionResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgOperatorDetachResponse) Reset() { - *x = MsgOperatorDetachResponse{} +func (x *MsgRevokePermissionResponse) Reset() { + *x = MsgRevokePermissionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lbm_collection_v1_tx_proto_msgTypes[44] + mi := &file_lbm_collection_v1_tx_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgOperatorDetachResponse) String() string { +func (x *MsgRevokePermissionResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOperatorDetachResponse) ProtoMessage() {} +func (*MsgRevokePermissionResponse) ProtoMessage() {} -// Deprecated: Use MsgOperatorDetachResponse.ProtoReflect.Descriptor instead. -func (*MsgOperatorDetachResponse) Descriptor() ([]byte, []int) { - return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{44} +// Deprecated: Use MsgRevokePermissionResponse.ProtoReflect.Descriptor instead. +func (*MsgRevokePermissionResponse) Descriptor() ([]byte, []int) { + return file_lbm_collection_v1_tx_proto_rawDescGZIP(), []int{24} } var File_lbm_collection_v1_tx_proto protoreflect.FileDescriptor @@ -25214,433 +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, 0xa2, 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, + 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, 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, 0x4a, 0x0a, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0xc8, 0xde, 0x1f, - 0x00, 0xda, 0xde, 0x1f, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, - 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 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, 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, + 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, 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, + 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, 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, 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, + 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, - 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, + 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, 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, 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, 0x22, 0xb8, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x41, 0x74, 0x74, 0x61, - 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, + 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, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x66, 0x72, 0x6f, - 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, - 0x74, 0x6f, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x74, 0x6f, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x3a, 0x21, 0x18, 0x01, - 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x11, 0x6c, 0x62, - 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x22, - 0x17, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x98, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, - 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, - 0x3a, 0x21, 0x18, 0x01, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, - 0x2a, 0x11, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x74, - 0x61, 0x63, 0x68, 0x22, 0x17, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x82, 0x02, 0x0a, - 0x11, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x74, 0x74, 0x61, - 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, - 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x74, 0x6f, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x49, 0x64, 0x3a, 0x2d, 0x18, 0x01, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, - 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x74, 0x74, 0x61, 0x63, - 0x68, 0x22, 0x1f, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x02, - 0x18, 0x01, 0x22, 0xe2, 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x6f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, - 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x19, 0x0a, - 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x3a, 0x2d, 0x18, 0x01, 0x82, 0xe7, 0xb0, 0x2a, - 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x6c, 0x62, - 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x22, 0x1f, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x02, 0x18, 0x01, 0x32, 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, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, - 0x0a, 0x0e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, - 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x1a, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x12, - 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x1a, 0x25, - 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x12, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x1a, - 0x2d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, - 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, - 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x2f, 0x2e, 0x6c, + 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, 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, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, - 0x0e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, - 0x6f, 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x6c, 0x62, - 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x07, 0x49, 0x73, 0x73, - 0x75, 0x65, 0x46, 0x54, 0x12, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x73, 0x73, 0x75, - 0x65, 0x46, 0x54, 0x1a, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, + 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x12, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x46, 0x54, 0x1a, 0x2d, 0x2e, + 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x6e, + 0x64, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x11, + 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x27, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x2f, 0x2e, 0x6c, 0x62, 0x6d, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0e, 0x52, + 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x24, 0x2e, + 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x1a, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, + 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x64, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 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, - 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x08, 0x49, 0x73, - 0x73, 0x75, 0x65, 0x4e, 0x46, 0x54, 0x12, 0x1e, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x73, - 0x73, 0x75, 0x65, 0x4e, 0x46, 0x54, 0x1a, 0x26, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x73, - 0x73, 0x75, 0x65, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, - 0x0a, 0x06, 0x4d, 0x69, 0x6e, 0x74, 0x46, 0x54, 0x12, 0x1c, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x4d, 0x69, 0x6e, 0x74, 0x46, 0x54, 0x1a, 0x24, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, - 0x6e, 0x74, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x07, - 0x4d, 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x12, 0x1d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, - 0x69, 0x6e, 0x74, 0x4e, 0x46, 0x54, 0x1a, 0x25, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x63, 0x6f, 0x6c, + 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, 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, + 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, 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, + 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, 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, + 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 ( @@ -25655,105 +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, 45) +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 - (*MsgAttach)(nil), // 37: lbm.collection.v1.MsgAttach - (*MsgAttachResponse)(nil), // 38: lbm.collection.v1.MsgAttachResponse - (*MsgDetach)(nil), // 39: lbm.collection.v1.MsgDetach - (*MsgDetachResponse)(nil), // 40: lbm.collection.v1.MsgDetachResponse - (*MsgOperatorAttach)(nil), // 41: lbm.collection.v1.MsgOperatorAttach - (*MsgOperatorAttachResponse)(nil), // 42: lbm.collection.v1.MsgOperatorAttachResponse - (*MsgOperatorDetach)(nil), // 43: lbm.collection.v1.MsgOperatorDetach - (*MsgOperatorDetachResponse)(nil), // 44: lbm.collection.v1.MsgOperatorDetachResponse - (*Coin)(nil), // 45: lbm.collection.v1.Coin - (*Attribute)(nil), // 46: lbm.collection.v1.Attribute + (*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{ - 45, // 0: lbm.collection.v1.MsgSendFT.amount:type_name -> lbm.collection.v1.Coin - 45, // 1: lbm.collection.v1.MsgOperatorSendFT.amount:type_name -> lbm.collection.v1.Coin - 45, // 2: lbm.collection.v1.MsgMintFT.amount:type_name -> lbm.collection.v1.Coin - 22, // 3: lbm.collection.v1.MsgMintNFT.params:type_name -> lbm.collection.v1.MintNFTParam - 45, // 4: lbm.collection.v1.MsgBurnFT.amount:type_name -> lbm.collection.v1.Coin - 45, // 5: lbm.collection.v1.MsgOperatorBurnFT.amount:type_name -> lbm.collection.v1.Coin - 46, // 6: lbm.collection.v1.MsgModify.changes:type_name -> lbm.collection.v1.Attribute - 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() } @@ -25764,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 @@ -25823,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 @@ -25835,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 @@ -25847,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 @@ -25859,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 @@ -25871,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 @@ -25883,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 @@ -25895,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 @@ -25907,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 @@ -25919,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 @@ -25931,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 @@ -25967,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 @@ -25979,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 @@ -26015,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 @@ -26027,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 @@ -26039,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 @@ -26099,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 @@ -26111,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 @@ -26123,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 @@ -26135,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 @@ -26147,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 @@ -26159,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 @@ -26171,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 @@ -26183,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 @@ -26195,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 @@ -26207,102 +14518,6 @@ func file_lbm_collection_v1_tx_proto_init() { return nil } } - file_lbm_collection_v1_tx_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAttach); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAttachResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgDetach); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgDetachResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorAttach); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorAttachResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorDetach); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lbm_collection_v1_tx_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOperatorDetachResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } } type x struct{} out := protoimpl.TypeBuilder{ @@ -26310,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: 45, + 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/api/lbm/foundation/v1/authz.pulsar.go b/api/lbm/foundation/v1/authz.pulsar.go index fe1a96fb4d..c8d559b993 100644 --- a/api/lbm/foundation/v1/authz.pulsar.go +++ b/api/lbm/foundation/v1/authz.pulsar.go @@ -6,7 +6,6 @@ import ( _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" - _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -418,32 +417,30 @@ var file_lbm_foundation_v1_authz_proto_rawDesc = []byte{ 0x0a, 0x1d, 0x6c, 0x62, 0x6d, 0x2f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6c, 0x62, 0x6d, 0x2e, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, - 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x90, 0x01, 0x0a, 0x20, 0x52, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x79, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x6c, 0xca, 0xb4, 0x2d, - 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6e, 0x73, - 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2d, 0x73, 0x64, - 0x6b, 0x2f, 0x78, 0x2f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x8a, 0xe7, 0xb0, 0x2a, - 0x28, 0x6c, 0x62, 0x6d, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xad, 0x01, 0x0a, 0x15, 0x63, 0x6f, - 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x22, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x66, 0x6f, 0x75, 0x6e, 0x64, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x46, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, - 0x6d, 0x2e, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4c, 0x62, 0x6d, 0x5c, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x46, 0x6f, 0x75, 0x6e, 0x64, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, + 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x90, 0x01, 0x0a, 0x20, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, + 0x54, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x6c, 0xca, 0xb4, 0x2d, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2f, 0x66, + 0x69, 0x6e, 0x73, 0x63, 0x68, 0x69, 0x61, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x78, 0x2f, 0x66, 0x6f, + 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x8a, 0xe7, 0xb0, 0x2a, 0x28, 0x6c, 0x62, 0x6d, 0x2d, 0x73, + 0x64, 0x6b, 0x2f, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x72, + 0x65, 0x61, 0x73, 0x75, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x42, 0xad, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x62, 0x6d, 0x2e, + 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x41, + 0x75, 0x74, 0x68, 0x7a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x61, 0x70, 0x69, + 0x2f, 0x6c, 0x62, 0x6d, 0x2f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x76, 0x31, 0x3b, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, + 0x02, 0x03, 0x4c, 0x46, 0x58, 0xaa, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x2e, 0x46, 0x6f, 0x75, 0x6e, + 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4c, 0x62, 0x6d, 0x5c, + 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, + 0x4c, 0x62, 0x6d, 0x5c, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, + 0x4c, 0x62, 0x6d, 0x3a, 0x3a, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/lbm/foundation/v1/foundation.pulsar.go b/api/lbm/foundation/v1/foundation.pulsar.go index 9afaf7bb20..2b3e5be8c5 100644 --- a/api/lbm/foundation/v1/foundation.pulsar.go +++ b/api/lbm/foundation/v1/foundation.pulsar.go @@ -7998,6 +7998,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// CensorshipAuthority defines the authorities which could be used in Censorship. type CensorshipAuthority int32 const ( @@ -8273,6 +8274,7 @@ func (x *Params) GetFoundationTax() string { return "" } +// Censorship states which message is being censored by a certain authority. type Censorship struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/client/docs/swagger-ui/swagger.yaml b/client/docs/swagger-ui/swagger.yaml index d1395793f2..762602abc2 100644 --- a/client/docs/swagger-ui/swagger.yaml +++ b/client/docs/swagger-ui/swagger.yaml @@ -4876,1807 +4876,60 @@ paths: type: string tags: - Query - /lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/burnt: - get: - summary: >- - FTBurnt queries the number of burnt tokens from a given contract id and - token id. - operationId: FTBurnt - responses: - '200': - description: A successful response. - schema: - type: object - properties: - burnt: - type: string - description: burnt is the amount of the burnt tokens. - description: >- - QueryFTBurntResponse is the response type for the Query/FTBurnt - RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: contract_id - description: contract id associated with the contract. - in: path - required: true - type: string - - name: token_id - description: token id associated with the fungible token. - in: path - required: true - type: string - tags: - - Query - /lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/minted: - get: - summary: >- - FTMinted queries the number of minted tokens from a given contract id - and token id. - operationId: FTMinted - responses: - '200': - description: A successful response. - schema: - type: object - properties: - minted: - type: string - description: minted is the amount of the minted tokens. - description: >- - QueryFTMintedResponse is the response type for the Query/FTMinted - RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: contract_id - description: contract id associated with the contract. - in: path - required: true - type: string - - name: token_id - description: token id associated with the fungible token. - in: path - required: true - type: string - tags: - - Query - /lbm/collection/v1/contracts/{contract_id}/fts/{token_id}/supply: - get: - summary: >- - FTSupply queries the number of tokens from a given contract id and token - id. - operationId: FTSupply - responses: - '200': - description: A successful response. - schema: - type: object - properties: - supply: - type: string - description: supply is the supply of the tokens. - description: >- - QueryFTSupplyResponse is the response type for the Query/FTSupply - RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: contract_id - description: contract id associated with the contract. - in: path - required: true - type: string - - name: token_id - description: token id associated with the fungible token. - in: path - required: true - type: string - tags: - - Query - /lbm/collection/v1/contracts/{contract_id}/grants/{grantee}: - get: - summary: GranteeGrants queries all permissions on a given grantee. - operationId: CollectionGranteeGrants - responses: - '200': - description: A successful response. - schema: - type: object - properties: - grants: - type: array - items: - type: object - properties: - grantee: - type: string - description: address of the grantee. - permission: - description: permission on the contract. - type: string - enum: - - PERMISSION_UNSPECIFIED - - PERMISSION_ISSUE - - PERMISSION_MODIFY - - PERMISSION_MINT - - PERMISSION_BURN - default: PERMISSION_UNSPECIFIED - description: |- - Grant defines permission given to a grantee. - - Since: 0.46.0 (finschia) - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryGranteeGrantsResponse is the response type for the - Query/GranteeGrants RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: contract_id - description: contract id associated with the contract. - in: path - required: true - type: string - - name: grantee - description: the address of the grantee. - in: path - required: true - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/children: - get: - summary: Children queries the children of a given nft. - operationId: Children - responses: - '200': - description: A successful response. - schema: - type: object - properties: - children: - type: array - items: - type: object - properties: - token_id: - type: string - description: token id defines the unique identifier of the token. - name: - type: string - description: name defines the human-readable name of the token. - meta: - type: string - description: meta is a brief description of the token. - description: |- - NFT defines the information of non-fungible token. - - Since: 0.46.0 (finschia) - description: children is the information of the child tokens. - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryChildrenResponse is the response type for the Query/Children - RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: contract_id - description: contract id associated with the contract. - in: path - required: true - type: string - - name: token_id - description: token id associated with the non-fungible token. - in: path - required: true - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/has_parent: - get: - summary: HasParent queries whether a given nft has its parent. - operationId: HasParent - responses: - '200': - description: A successful response. - schema: - type: object - properties: - has_parent: - type: boolean - description: whether the token has its parent. - description: >- - QueryHasParentResponse is the response type for the - Query/HasParent RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: contract_id - description: contract id associated with the contract. - in: path - required: true - type: string - - name: token_id - description: token id associated wit the non-fungible token. - in: path - required: true - type: string - tags: - - Query - /lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/parent: - get: - summary: Parent queries the parent of a given nft. - operationId: Parent - responses: - '200': - description: A successful response. - schema: - type: object - properties: - parent: - type: object - properties: - token_id: - type: string - description: token id defines the unique identifier of the token. - name: - type: string - description: name defines the human-readable name of the token. - meta: - type: string - description: meta is a brief description of the token. - description: |- - NFT defines the information of non-fungible token. - - Since: 0.46.0 (finschia) - description: >- - QueryParentResponse is the response type for the Query/Parent RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: contract_id - description: contract id associated with the contract. - in: path - required: true - type: string - - name: token_id - description: token id associated wit the non-fungible token. - in: path - required: true - type: string - tags: - - Query - /lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/root: + /lbm/collection/v1/contracts/{contract_id}/grants/{grantee}: get: - summary: Root queries the root of a given nft. - operationId: Root + summary: GranteeGrants queries all permissions on a given grantee. + operationId: CollectionGranteeGrants responses: '200': description: A successful response. schema: type: object properties: - root: + grants: + type: array + items: + type: object + properties: + grantee: + type: string + description: address of the grantee. + permission: + description: permission on the contract. + type: string + enum: + - PERMISSION_UNSPECIFIED + - PERMISSION_ISSUE + - PERMISSION_MODIFY + - PERMISSION_MINT + - PERMISSION_BURN + default: PERMISSION_UNSPECIFIED + description: |- + Grant defines permission given to a grantee. + + Since: 0.46.0 (finschia) + pagination: + description: pagination defines the pagination in the response. type: object properties: - token_id: - type: string - description: token id defines the unique identifier of the token. - name: + next_key: type: string - description: name defines the human-readable name of the token. - meta: + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: type: string - description: meta is a brief description of the token. - description: |- - NFT defines the information of non-fungible token. + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - Since: 0.46.0 (finschia) + was set, its value is undefined otherwise description: >- - QueryRootResponse is the response type for the Query/Root RPC - method. + QueryGranteeGrantsResponse is the response type for the + Query/GranteeGrants RPC method. default: description: An unexpected error response. schema: @@ -6878,11 +5131,67 @@ paths: in: path required: true type: string - - name: token_id - description: token id associated with the non-fungible token. + - name: grantee + description: the address of the grantee. in: path required: true type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query /lbm/collection/v1/contracts/{contract_id}/token_classes/{class_id}/type_name: @@ -10776,22 +9085,6 @@ definitions: description: |- Grant defines permission given to a grantee. - Since: 0.46.0 (finschia) - lbm.collection.v1.NFT: - type: object - properties: - token_id: - type: string - description: token id defines the unique identifier of the token. - name: - type: string - description: name defines the human-readable name of the token. - meta: - type: string - description: meta is a brief description of the token. - description: |- - NFT defines the information of non-fungible token. - Since: 0.46.0 (finschia) lbm.collection.v1.Permission: type: string @@ -10864,50 +9157,6 @@ definitions: description: >- QueryBalanceResponse is the response type for the Query/Balance RPC method. - lbm.collection.v1.QueryChildrenResponse: - type: object - properties: - children: - type: array - items: - type: object - properties: - token_id: - type: string - description: token id defines the unique identifier of the token. - name: - type: string - description: name defines the human-readable name of the token. - meta: - type: string - description: meta is a brief description of the token. - description: |- - NFT defines the information of non-fungible token. - - Since: 0.46.0 (finschia) - description: children is the information of the child tokens. - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryChildrenResponse is the response type for the Query/Children RPC - method. lbm.collection.v1.QueryContractResponse: type: object properties: @@ -10930,33 +9179,6 @@ definitions: description: >- QueryContractResponse is the response type for the Query/Contract RPC method. - lbm.collection.v1.QueryFTBurntResponse: - type: object - properties: - burnt: - type: string - description: burnt is the amount of the burnt tokens. - description: >- - QueryFTBurntResponse is the response type for the Query/FTBurnt RPC - method. - lbm.collection.v1.QueryFTMintedResponse: - type: object - properties: - minted: - type: string - description: minted is the amount of the minted tokens. - description: >- - QueryFTMintedResponse is the response type for the Query/FTMinted RPC - method. - lbm.collection.v1.QueryFTSupplyResponse: - type: object - properties: - supply: - type: string - description: supply is the supply of the tokens. - description: >- - QueryFTSupplyResponse is the response type for the Query/FTSupply RPC - method. lbm.collection.v1.QueryGranteeGrantsResponse: type: object properties: @@ -11004,15 +9226,6 @@ definitions: description: >- QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. - lbm.collection.v1.QueryHasParentResponse: - type: object - properties: - has_parent: - type: boolean - description: whether the token has its parent. - description: >- - QueryHasParentResponse is the response type for the Query/HasParent RPC - method. lbm.collection.v1.QueryHoldersByOperatorResponse: type: object properties: @@ -11077,46 +9290,6 @@ definitions: description: >- QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method. - lbm.collection.v1.QueryParentResponse: - type: object - properties: - parent: - type: object - properties: - token_id: - type: string - description: token id defines the unique identifier of the token. - name: - type: string - description: name defines the human-readable name of the token. - meta: - type: string - description: meta is a brief description of the token. - description: |- - NFT defines the information of non-fungible token. - - Since: 0.46.0 (finschia) - description: QueryParentResponse is the response type for the Query/Parent RPC method. - lbm.collection.v1.QueryRootResponse: - type: object - properties: - root: - type: object - properties: - token_id: - type: string - description: token id defines the unique identifier of the token. - name: - type: string - description: name defines the human-readable name of the token. - meta: - type: string - description: meta is a brief description of the token. - description: |- - NFT defines the information of non-fungible token. - - Since: 0.46.0 (finschia) - description: QueryRootResponse is the response type for the Query/Root RPC method. lbm.collection.v1.QueryTokenClassTypeNameResponse: type: object properties: diff --git a/go.mod b/go.mod index d8ca3ef686..11671a3803 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,10 @@ module github.com/Finschia/finschia-sdk require ( cosmossdk.io/math v1.2.0 + github.com/cosmos/cosmos-proto v1.0.0-beta.3 github.com/cosmos/cosmos-sdk v0.50.2 github.com/cosmos/go-bip39 v1.0.0 + github.com/cosmos/gogoproto v1.4.11 github.com/stretchr/testify v1.8.4 github.com/tendermint/go-amino v0.16.0 ) @@ -32,19 +34,18 @@ require ( github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect - github.com/cometbft/cometbft v0.38.2 // indirect + github.com/cometbft/cometbft v0.38.3 // indirect github.com/cometbft/cometbft-db v0.9.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.0.0 // indirect - github.com/cosmos/cosmos-proto v1.0.0-beta.3 // indirect - github.com/cosmos/gogoproto v1.4.11 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect github.com/dustin/go-humanize v1.0.1 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/getsentry/sentry-go v0.25.0 // indirect github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect @@ -57,7 +58,8 @@ require ( github.com/google/go-cmp v0.6.0 // indirect github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect - github.com/hashicorp/go-metrics v0.5.1 // indirect + github.com/hashicorp/go-metrics v0.5.2 // indirect + github.com/hashicorp/go-uuid v1.0.2 // indirect github.com/hashicorp/golang-lru v1.0.2 // indirect github.com/hdevalence/ed25519consensus v0.1.0 // indirect github.com/iancoleman/strcase v0.3.0 // indirect @@ -73,9 +75,10 @@ require ( github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/onsi/gomega v1.26.0 // indirect + github.com/pelletier/go-toml/v2 v2.1.0 // indirect github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_golang v1.17.0 // indirect github.com/prometheus/client_model v0.5.0 // indirect github.com/prometheus/common v0.45.0 // indirect @@ -83,20 +86,23 @@ require ( github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/rs/zerolog v1.31.0 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect + github.com/spf13/afero v1.11.0 // indirect github.com/spf13/cast v1.5.1 // indirect github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect + github.com/subosito/gotenv v1.6.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect go.etcd.io/bbolt v1.3.8 // indirect - golang.org/x/crypto v0.16.0 // indirect + golang.org/x/crypto v0.18.0 // indirect golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect - golang.org/x/net v0.19.0 // indirect - golang.org/x/sys v0.15.0 // indirect + golang.org/x/net v0.20.0 // indirect + golang.org/x/sync v0.5.0 // indirect + golang.org/x/sys v0.16.0 // indirect golang.org/x/text v0.14.0 // indirect - google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect - google.golang.org/grpc v1.59.0 // indirect + google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 // indirect + google.golang.org/grpc v1.60.1 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index c7889db28f..4fa96da3df 100644 --- a/go.sum +++ b/go.sum @@ -110,8 +110,9 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= @@ -147,8 +148,8 @@ github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0X github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= -github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/getsentry/sentry-go v0.25.0 h1:q6Eo+hS+yoJlTO3uu/azhQadsD8V+jQn2D8VvX1eOyI= github.com/getsentry/sentry-go v0.25.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= @@ -230,14 +231,14 @@ github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVH github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-metrics v0.5.1 h1:rfPwUqFU6uZXNvGl4hzjY8LEBsqFVU4si1H9/Hqck/U= -github.com/hashicorp/go-metrics v0.5.1/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= +github.com/hashicorp/go-metrics v0.5.2 h1:ErEYO2f//CjKsUDw4SmLzelsK6L3ZmOAR/4P9iS7ruY= +github.com/hashicorp/go-metrics v0.5.2/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= @@ -326,10 +327,9 @@ github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q= github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= -github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= +github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= +github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc h1:8bQZVK1X6BJR/6nYUPxQEP+ReTsceJTKizeuwjWOPUA= github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= @@ -340,8 +340,9 @@ github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= @@ -383,8 +384,8 @@ github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasO github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= -github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= +github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= @@ -402,14 +403,18 @@ github.com/spf13/viper v1.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= -github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= +github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= @@ -433,8 +438,8 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= -golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc= +golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= @@ -458,8 +463,8 @@ golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -469,8 +474,8 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= -golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= +golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -492,10 +497,10 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= -golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.16.0 h1:m+B6fahuftsE9qjo0VWp2FW0mB3MTJvR0BaMQrq0pmE= +golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -519,19 +524,19 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b h1:+YaDE2r2OG8t/z5qmsh7Y+XXwCbvadxxZ0YY6mTdrVA= -google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI= -google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a h1:myvhA4is3vrit1a6NZCWBIwN0kNEnX21DJOJX/NvIfI= -google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a/go.mod h1:SUBoKXbI1Efip18FClrQVGjWcyd0QZd8KkvdP34t7ww= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= +google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 h1:1hfbdAfFbkmpg41000wDVqr7jUpK/Yo+LPnIxxGzmkg= +google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3/go.mod h1:5RBcpGRxr25RbDzY5w+dmaqpSEvl8Gwl1x2CICf60ic= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f h1:2yNACc1O40tTnrsbk9Cv6oxiW8pxI/pXj0wRtdlYmgY= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f/go.mod h1:Uy9bTZJqmfrw2rIBxgGLnamc78euZULUBrLZ9XTITKI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 h1:/jFB8jK5R3Sq3i/lmeZO0cATSzFfZaJq1J2Euan3XKU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0/go.mod h1:FUoWkonphQm3RhTS+kOEhF8h0iDpm4tdXolVCeZ9KKA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= -google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= +google.golang.org/grpc v1.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU= +google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= diff --git a/go.work.example b/go.work.example index 3e866c3f76..5be48b46c3 100644 --- a/go.work.example +++ b/go.work.example @@ -7,6 +7,7 @@ use ( ./api ./simapp ./tests + ./x/collection ./x/foundation ./x/stakingplus ) diff --git a/proto/lbm/collection/module/v1/module.proto b/proto/lbm/collection/module/v1/module.proto new file mode 100644 index 0000000000..7a56cce61e --- /dev/null +++ b/proto/lbm/collection/module/v1/module.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +package lbm.collection.module.v1; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the collection module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "github.com/Finschia/finschia-sdk/x/collection" + }; +} diff --git a/proto/lbm/collection/v1/collection.proto b/proto/lbm/collection/v1/collection.proto index a132fd0e47..70cf6e0b4a 100644 --- a/proto/lbm/collection/v1/collection.proto +++ b/proto/lbm/collection/v1/collection.proto @@ -10,8 +10,7 @@ import "cosmos_proto/cosmos.proto"; // Params defines the parameters for the collection module. message Params { - uint32 depth_limit = 1; - uint32 width_limit = 2; + reserved 1 to 2; // depth_limit, width_limit } // Contract defines the information of the contract for the collection. @@ -30,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"; @@ -94,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. @@ -140,8 +120,11 @@ message Coin { // token id associated with the token. string token_id = 1; // amount of the token. - string amount = 2 - [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false]; + string amount = 2 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; } // Grant defines permission given to a grantee. diff --git a/proto/lbm/collection/v1/event.proto b/proto/lbm/collection/v1/event.proto index 065b9c7de3..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) @@ -236,63 +202,3 @@ message EventModifiedNFT { // possible attribute keys are same as those of MsgModify. repeated Attribute changes = 4 [(gogoproto.nullable) = false]; } - -// EventAttached is emitted when a token is attached to another. -// -// Since: 0.46.0 (finschia) -message EventAttached { - // contract id associated with the contract. - string contract_id = 1; - // address which triggered the attach. - string operator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // address which holds the tokens. - string holder = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // subject of the attach. - string subject = 4; - // target of the attach. - string target = 5; -} - -// EventDetached is emitted when a token is detached from its parent. -// -// Since: 0.46.0 (finschia) -message EventDetached { - // contract id associated with the contract. - string contract_id = 1; - // address which triggered the detach. - string operator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // address which holds the token. - string holder = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token being detached. - string subject = 4; - // parent token before the detach. - string previous_parent = 5; -} - -// EventOwnerChanged is emitted when the owner of token is changed by operation applied to its ancestor. -// -// Since: 0.46.0 (finschia) -message EventOwnerChanged { - // contract id associated with the contract. - string contract_id = 1; - // token id associated with the token. - string token_id = 2; - // address of the previous owner before the change. - string from = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // address of the new owner. - string to = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; -} - -// EventRootChanged is emitted when the root of token is changed by operation applied to its ancestor. -// -// Since: 0.46.0 (finschia) -message EventRootChanged { - // contract id associated with the contract. - string contract_id = 1; - // token id associated with the token. - string token_id = 2; - // token id of the previous root before the change. - string from = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token id of the new root. - string to = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; -} diff --git a/proto/lbm/collection/v1/genesis.proto b/proto/lbm/collection/v1/genesis.proto index 0babad00ea..658bb633b4 100644 --- a/proto/lbm/collection/v1/genesis.proto +++ b/proto/lbm/collection/v1/genesis.proto @@ -32,8 +32,7 @@ message GenesisState { // nfts is an array containing the nfts. repeated ContractNFTs nfts = 7 [(gogoproto.nullable) = false]; - // parents represents the parents of (non-fungible) tokens. - repeated ContractTokenRelations parents = 8 [(gogoproto.nullable) = false]; + reserved 8; // parents // grants defines the grant information. repeated ContractGrants grants = 9 [(gogoproto.nullable) = false]; @@ -46,6 +45,9 @@ message GenesisState { // burnts represents the total amount of burnt tokens. repeated ContractStatistics burnts = 12 [(gogoproto.nullable) = false]; + + // class_state defines the classes state. It was class keeper's genesis state in legacy x/token. + ClassState class_state = 13; } // ContractBalances defines balances belong to a contract. @@ -70,8 +72,11 @@ message ClassStatistics { // class id associated with the token class. string class_id = 1; // statistics - string amount = 2 - [(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int"]; + string amount = 2 [ + (gogoproto.nullable) = false, + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int" + ]; } // Balance defines a balance of an address. @@ -119,12 +124,15 @@ message ContractGrants { message NextClassIDs { // contract id associated with the contract. string contract_id = 1; - // id for the fungible tokens. - string fungible = 2 - [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Uint", (gogoproto.nullable) = false]; + + reserved 2; // fungible + // id for the non-fungible tokens. - string non_fungible = 3 - [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Uint", (gogoproto.nullable) = false]; + string non_fungible = 3 [ + (cosmos_proto.scalar) = "cosmos.Uint", + (gogoproto.customtype) = "cosmossdk.io/math.Uint", + (gogoproto.nullable) = false + ]; } // ContractNextTokenIDs defines the next token ids belong to a contract. @@ -138,21 +146,22 @@ message NextTokenID { // class id associated with the token class. string class_id = 1; // id for the token. - string id = 2 [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Uint", (gogoproto.nullable) = false]; + string id = 2 [ + (cosmos_proto.scalar) = "cosmos.Uint", + (gogoproto.customtype) = "cosmossdk.io/math.Uint", + (gogoproto.nullable) = false + ]; } -// ContractTokenRelations defines token relations belong to a contract. -message ContractTokenRelations { - // contract id associated with the contract. - string contract_id = 1; - // relations - repeated TokenRelation relations = 2 [(gogoproto.nullable) = false]; +// ClassState defines the classes state. +message ClassState { + // nonce is the next class nonce to issue. + string nonce = 1 [ + (cosmos_proto.scalar) = "cosmos.Uint", + (gogoproto.customtype) = "cosmossdk.io/math.Uint", + (gogoproto.nullable) = false + ]; + + // ids represents the issued ids. + repeated string ids = 2; } - -// TokenRelation defines relations between two tokens. -message TokenRelation { - // self - string self = 1; - // other - string other = 2; -} \ No newline at end of file diff --git a/proto/lbm/collection/v1/query.proto b/proto/lbm/collection/v1/query.proto index dd095e2a15..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"; @@ -76,26 +61,6 @@ service Query { option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/tokens/{token_id}"; } - // Root queries the root of a given nft. - rpc Root(QueryRootRequest) returns (QueryRootResponse) { - option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/root"; - } - - // HasParent queries whether a given nft has its parent. - rpc HasParent(QueryHasParentRequest) returns (QueryHasParentResponse) { - option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/has_parent"; - } - - // Parent queries the parent of a given nft. - rpc Parent(QueryParentRequest) returns (QueryParentResponse) { - option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/parent"; - } - - // Children queries the children of a given nft. - rpc Children(QueryChildrenRequest) returns (QueryChildrenResponse) { - option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/nfts/{token_id}/children"; - } - // GranteeGrants queries all permissions on a given grantee. rpc GranteeGrants(QueryGranteeGrantsRequest) returns (QueryGranteeGrantsResponse) { option (google.api.http).get = "/lbm/collection/v1/contracts/{contract_id}/grants/{grantee}"; @@ -144,51 +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 - [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.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 - [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.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 - [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false]; -} - // QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. message QueryNFTSupplyRequest { // contract id associated with the contract. @@ -201,8 +121,11 @@ message QueryNFTSupplyRequest { // QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method. message QueryNFTSupplyResponse { // supply is the supply of the non-fungible token. - string supply = 1 - [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false]; + string supply = 1 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; } // QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method. @@ -217,8 +140,11 @@ message QueryNFTMintedRequest { // QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method. message QueryNFTMintedResponse { // minted is the amount of minted tokens. - string minted = 1 - [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false]; + string minted = 1 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; } // QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method. @@ -233,8 +159,11 @@ message QueryNFTBurntRequest { // QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method. message QueryNFTBurntResponse { // burnt is the amount of the burnt tokens. - string burnt = 1 - [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false]; + string burnt = 1 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; } // QueryContractRequest is the request type for the Query/Contract RPC method. @@ -296,69 +225,6 @@ message QueryTokenResponse { google.protobuf.Any token = 1 [(gogoproto.nullable) = false]; } -// QueryRootRequest is the request type for the Query/Root RPC method. -message QueryRootRequest { - // contract id associated with the contract. - string contract_id = 1; - // token id associated with the non-fungible token. - string token_id = 2; -} - -// QueryRootResponse is the response type for the Query/Root RPC method. -message QueryRootResponse { - // root is the information of the root token. - // it would return itself if it's the root token. - NFT root = 1 [(gogoproto.nullable) = false]; -} - -// QueryHasParentRequest is the request type for the Query/HasParent RPC method. -message QueryHasParentRequest { - // contract id associated with the contract. - string contract_id = 1; - // token id associated wit the non-fungible token. - string token_id = 2; -} - -// QueryHasParentResponse is the response type for the Query/HasParent RPC method. -message QueryHasParentResponse { - // whether the token has its parent. - bool has_parent = 1; -} - -// QueryParentRequest is the request type for the Query/Parent RPC method. -message QueryParentRequest { - // contract id associated with the contract. - string contract_id = 1; - // token id associated wit the non-fungible token. - string token_id = 2; -} - -// QueryParentResponse is the response type for the Query/Parent RPC method. -message QueryParentResponse { - // parent is the information of the parent token. - NFT parent = 1 [(gogoproto.nullable) = false]; -} - -// QueryChildrenRequest is the request type for the Query/Children RPC method. -message QueryChildrenRequest { - // contract id associated with the contract. - string contract_id = 1; - // token id associated with the non-fungible token. - string token_id = 2; - - // pagination defines an optional pagination for the request. - cosmos.base.query.v1beta1.PageRequest pagination = 3; -} - -// QueryChildrenResponse is the response type for the Query/Children RPC method. -message QueryChildrenResponse { - // children is the information of the child tokens. - repeated NFT children = 1 [(gogoproto.nullable) = false]; - - // pagination defines the pagination in the response. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - // QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. message QueryGranteeGrantsRequest { // contract id associated with the contract. diff --git a/proto/lbm/collection/v1/tx.proto b/proto/lbm/collection/v1/tx.proto index e5ea0d867b..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,40 +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 - [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.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"; @@ -302,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"; @@ -356,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"; @@ -493,91 +328,3 @@ message MsgRevokePermission { // MsgRevokePermissionResponse is the Msg/RevokePermission response type. message MsgRevokePermissionResponse {} - -// MsgAttach is the Msg/Attach request type. -message MsgAttach { - option deprecated = true; - - option (cosmos.msg.v1.signer) = "from"; - option (amino.name) = "lbm-sdk/MsgAttach"; - - // contract id associated with the contract. - string contract_id = 1; - // address of the owner of the token. - string from = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token id of the token to attach. - string token_id = 3; - // to token id which one attachs the token to. - string to_token_id = 4; -} - -// MsgAttachResponse is the Msg/Attach response type. -message MsgAttachResponse { - option deprecated = true; -} - -// MsgDetach is the Msg/Detach request type. -message MsgDetach { - option deprecated = true; - - option (cosmos.msg.v1.signer) = "from"; - option (amino.name) = "lbm-sdk/MsgDetach"; - - // contract id associated with the contract. - string contract_id = 1; - // address of the owner of the token. - string from = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token id of the token to detach. - string token_id = 3; -} - -// MsgDetachResponse is the Msg/Detach response type. -message MsgDetachResponse { - option deprecated = true; -} - -// MsgOperatorAttach is the Msg/OperatorAttach request type. -message MsgOperatorAttach { - option deprecated = true; - - option (cosmos.msg.v1.signer) = "operator"; - option (amino.name) = "lbm-sdk/MsgOperatorAttach"; - - // contract id associated with the contract. - string contract_id = 1; - // address of the operator. - string operator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // address of the owner of the token. - string from = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token id of the token to attach. - string token_id = 4; - // to token id which one attachs the token to. - string to_token_id = 5; -} - -// MsgOperatorAttachResponse is the Msg/OperatorAttach response type. -message MsgOperatorAttachResponse { - option deprecated = true; -} - -// MsgOperatorDetach is the Msg/OperatorDetach request type. -message MsgOperatorDetach { - option deprecated = true; - - option (cosmos.msg.v1.signer) = "operator"; - option (amino.name) = "lbm-sdk/MsgOperatorDetach"; - - // contract id associated with the contract. - string contract_id = 1; - // address of the operator. - string operator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // address of the owner of the token. - string from = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // token id of the token to detach. - string token_id = 4; -} - -// MsgOperatorDetachResponse is the Msg/OperatorDetach response type. -message MsgOperatorDetachResponse { - option deprecated = true; -} diff --git a/simapp/app_config.go b/simapp/app_config.go index 522ece2195..852f63faaf 100644 --- a/simapp/app_config.go +++ b/simapp/app_config.go @@ -72,8 +72,11 @@ import ( slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + collectionmodulev1 "github.com/Finschia/finschia-sdk/api/lbm/collection/module/v1" foundationmodulev1 "github.com/Finschia/finschia-sdk/api/lbm/foundation/module/v1" - foundation "github.com/Finschia/finschia-sdk/x/foundation" + "github.com/Finschia/finschia-sdk/x/collection" + _ "github.com/Finschia/finschia-sdk/x/collection/module" // import for side-effects + "github.com/Finschia/finschia-sdk/x/foundation" _ "github.com/Finschia/finschia-sdk/x/foundation/module" // import for side-effects _ "github.com/Finschia/finschia-sdk/x/stakingplus/module" // import for side-effects ) @@ -88,6 +91,7 @@ var ( {Account: stakingtypes.NotBondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}}, {Account: govtypes.ModuleName, Permissions: []string{authtypes.Burner}}, {Account: nft.ModuleName}, + {Account: collection.ModuleName}, {Account: foundation.ModuleName}, {Account: foundation.TreasuryName}, } @@ -100,6 +104,7 @@ var ( stakingtypes.BondedPoolName, stakingtypes.NotBondedPoolName, nft.ModuleName, + collection.ModuleName, foundation.ModuleName, foundation.TreasuryName, // We allow the following module accounts to receive funds: @@ -167,6 +172,7 @@ var ( upgradetypes.ModuleName, vestingtypes.ModuleName, circuittypes.ModuleName, + collection.ModuleName, }, // When ExportGenesis is not specified, the export genesis module order // is equal to the init genesis order @@ -271,6 +277,10 @@ var ( Name: circuittypes.ModuleName, Config: appconfig.WrapAny(&circuitmodulev1.Module{}), }, + { + Name: collection.ModuleName, + Config: appconfig.WrapAny(&collectionmodulev1.Module{}), + }, { Name: foundation.ModuleName, Config: appconfig.WrapAny(&foundationmodulev1.Module{ diff --git a/simapp/app_test.go b/simapp/app_test.go index dc05cd78c7..9fcc55054b 100644 --- a/simapp/app_test.go +++ b/simapp/app_test.go @@ -45,6 +45,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/params" "github.com/cosmos/cosmos-sdk/x/slashing" + collectionmodule "github.com/Finschia/finschia-sdk/x/collection/module" foundationmodule "github.com/Finschia/finschia-sdk/x/foundation/module" stakingplusmodule "github.com/Finschia/finschia-sdk/x/stakingplus/module" ) @@ -217,6 +218,7 @@ func TestRunMigrations(t *testing.T) { "crisis": crisis.AppModule{}.ConsensusVersion(), "genutil": genutil.AppModule{}.ConsensusVersion(), "foundation": foundationmodule.AppModule{}.ConsensusVersion(), + "collection": collectionmodule.AppModule{}.ConsensusVersion(), }, ) if tc.expRunErr { @@ -266,6 +268,7 @@ func TestInitGenesisOnMigration(t *testing.T) { "evidence": evidence.AppModule{}.ConsensusVersion(), "crisis": crisis.AppModule{}.ConsensusVersion(), "genutil": genutil.AppModule{}.ConsensusVersion(), + "collection": collectionmodule.AppModule{}.ConsensusVersion(), }, ) require.NoError(t, err) diff --git a/simapp/app_v2.go b/simapp/app_v2.go index c695441e03..b360582d80 100644 --- a/simapp/app_v2.go +++ b/simapp/app_v2.go @@ -47,6 +47,7 @@ import ( slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" + collectionkeeper "github.com/Finschia/finschia-sdk/x/collection/keeper" foundationkeeper "github.com/Finschia/finschia-sdk/x/foundation/keeper" ) @@ -86,6 +87,7 @@ type SimApp struct { NFTKeeper nftkeeper.Keeper ConsensusParamsKeeper consensuskeeper.Keeper CircuitBreakerKeeper circuitkeeper.Keeper + CollectionKeeper collectionkeeper.Keeper FoundationKeeper foundationkeeper.Keeper // simulation manager @@ -198,6 +200,7 @@ func NewSimApp( &app.NFTKeeper, &app.ConsensusParamsKeeper, &app.CircuitBreakerKeeper, + &app.CollectionKeeper, &app.FoundationKeeper, ); err != nil { panic(err) diff --git a/simapp/go.mod b/simapp/go.mod index aa5976e65f..161a133ec2 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -5,43 +5,43 @@ go 1.21 require ( cosmossdk.io/api v0.7.2 cosmossdk.io/client/v2 v2.0.0-beta.1 - cosmossdk.io/collections v0.4.0 // indirect cosmossdk.io/core v0.11.0 cosmossdk.io/depinject v1.0.0-alpha.4 - cosmossdk.io/log v1.2.1 + cosmossdk.io/log v1.3.0 cosmossdk.io/math v1.2.0 - cosmossdk.io/store v1.0.1 + cosmossdk.io/store v1.0.2 cosmossdk.io/tools/confix v0.1.1 cosmossdk.io/x/circuit v0.1.0 cosmossdk.io/x/evidence v0.1.0 cosmossdk.io/x/feegrant v0.1.0 cosmossdk.io/x/nft v0.1.0 - cosmossdk.io/x/tx v0.12.0 // indirect cosmossdk.io/x/upgrade v0.1.1 github.com/Finschia/finschia-sdk/api v0.0.0-20231227090232-78fde403b78c + github.com/Finschia/finschia-sdk/x/collection v0.0.0-00010101000000-000000000000 github.com/Finschia/finschia-sdk/x/foundation v0.0.0-00010101000000-000000000000 + github.com/cometbft/cometbft v0.38.3 github.com/Finschia/finschia-sdk/x/stakingplus v0.0.0-00010101000000-000000000000 - github.com/cometbft/cometbft v0.38.2 github.com/cosmos/cosmos-db v1.0.0 // this version is not used as it is always replaced by the latest Cosmos SDK version - github.com/cosmos/cosmos-sdk v0.50.2 + github.com/cosmos/cosmos-sdk v0.50.3 github.com/cosmos/gogoproto v1.4.11 github.com/golang/mock v1.6.0 - github.com/spf13/cast v1.5.1 // indirect - github.com/spf13/cobra v1.7.0 + github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 - github.com/spf13/viper v1.16.0 + github.com/spf13/viper v1.18.2 github.com/stretchr/testify v1.8.4 - google.golang.org/protobuf v1.31.0 + google.golang.org/protobuf v1.32.0 ) require ( - cloud.google.com/go v0.110.8 // indirect - cloud.google.com/go/compute v1.23.1 // indirect + cloud.google.com/go v0.112.0 // indirect + cloud.google.com/go/compute v1.23.3 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/iam v1.1.3 // indirect - cloud.google.com/go/storage v1.30.1 // indirect - cosmossdk.io/errors v1.0.0 // indirect + cloud.google.com/go/iam v1.1.5 // indirect + cloud.google.com/go/storage v1.36.0 // indirect + cosmossdk.io/collections v0.4.0 // indirect + cosmossdk.io/errors v1.0.1 // indirect + cosmossdk.io/x/tx v0.13.0 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect @@ -74,7 +74,7 @@ require ( github.com/creachadair/atomicfile v0.3.1 // indirect github.com/creachadair/tomledit v0.0.24 // indirect github.com/danieljoos/wincred v1.1.2 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect @@ -84,12 +84,14 @@ require ( github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/emicklei/dot v1.6.0 // indirect github.com/fatih/color v1.15.0 // indirect - github.com/felixge/httpsnoop v1.0.2 // indirect - github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/getsentry/sentry-go v0.25.0 // indirect github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.6.0 // indirect + github.com/go-logr/logr v1.3.0 // indirect + github.com/go-logr/stdr v1.2.2 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect @@ -100,9 +102,9 @@ require ( github.com/google/btree v1.1.2 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/orderedcode v0.0.1 // indirect - github.com/google/s2a-go v0.1.4 // indirect - github.com/google/uuid v1.3.1 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.4 // indirect + github.com/google/s2a-go v0.1.7 // indirect + github.com/google/uuid v1.5.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect github.com/googleapis/gax-go/v2 v2.12.0 // indirect github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/mux v1.8.0 // indirect @@ -117,6 +119,7 @@ require ( github.com/hashicorp/go-metrics v0.5.2 // indirect github.com/hashicorp/go-plugin v1.5.2 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect + github.com/hashicorp/go-uuid v1.0.2 // indirect github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/golang-lru v1.0.2 // indirect github.com/hashicorp/hcl v1.0.0 // indirect @@ -149,7 +152,7 @@ require ( github.com/pelletier/go-toml/v2 v2.1.0 // indirect github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_golang v1.17.0 // indirect github.com/prometheus/client_model v0.5.0 // indirect github.com/prometheus/common v0.45.0 // indirect @@ -158,10 +161,13 @@ require ( github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/rs/cors v1.8.3 // indirect github.com/rs/zerolog v1.31.0 // indirect + github.com/sagikazarmark/locafero v0.4.0 // indirect + github.com/sagikazarmark/slog-shim v0.1.0 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect - github.com/spf13/afero v1.9.5 // indirect - github.com/spf13/jwalterweatherman v1.1.0 // indirect - github.com/subosito/gotenv v1.4.2 // indirect + github.com/sourcegraph/conc v0.3.0 // indirect + github.com/spf13/afero v1.11.0 // indirect + github.com/spf13/cast v1.6.0 // indirect + github.com/subosito/gotenv v1.6.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect github.com/tidwall/btree v1.7.0 // indirect @@ -170,21 +176,27 @@ require ( github.com/zondax/ledger-go v0.14.3 // indirect go.etcd.io/bbolt v1.3.8 // indirect go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.16.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect + go.opentelemetry.io/otel v1.21.0 // indirect + go.opentelemetry.io/otel/metric v1.21.0 // indirect + go.opentelemetry.io/otel/trace v1.21.0 // indirect + go.uber.org/multierr v1.10.0 // indirect + golang.org/x/crypto v0.18.0 // indirect golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect - golang.org/x/net v0.19.0 // indirect - golang.org/x/oauth2 v0.12.0 // indirect - golang.org/x/sync v0.3.0 // indirect - golang.org/x/sys v0.15.0 // indirect - golang.org/x/term v0.15.0 // indirect + golang.org/x/net v0.20.0 // indirect + golang.org/x/oauth2 v0.15.0 // indirect + golang.org/x/sync v0.5.0 // indirect + golang.org/x/sys v0.16.0 // indirect + golang.org/x/term v0.16.0 // indirect golang.org/x/text v0.14.0 // indirect - golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect - google.golang.org/api v0.128.0 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect - google.golang.org/grpc v1.59.0 // indirect + golang.org/x/time v0.5.0 // indirect + google.golang.org/api v0.155.0 // indirect + google.golang.org/appengine v1.6.8 // indirect + google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect + google.golang.org/grpc v1.61.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect @@ -206,6 +218,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 // Simapp always use the latest version of the finschia-sdk github.com/Finschia/finschia-sdk/api => ../api + github.com/Finschia/finschia-sdk/x/collection => ../x/collection github.com/Finschia/finschia-sdk/x/foundation => ../x/foundation github.com/Finschia/finschia-sdk/x/stakingplus => ../x/stakingplus // Fix upstream GHSA-h395-qcrw-5vmq and GHSA-3vp4-m3rf-835h vulnerabilities. diff --git a/simapp/go.sum b/simapp/go.sum index f0307c2198..fea2503287 100644 --- a/simapp/go.sum +++ b/simapp/go.sum @@ -3,7 +3,6 @@ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= @@ -16,7 +15,6 @@ cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOY cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= @@ -32,8 +30,8 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9 cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= -cloud.google.com/go v0.110.8 h1:tyNdfIxjzaWctIiLYOTalaLKZ17SI44SKFW26QbOhME= -cloud.google.com/go v0.110.8/go.mod h1:Iz8AkXJf1qmxC3Oxoep8R1T36w8B92yU29PcBhHO5fk= +cloud.google.com/go v0.112.0 h1:tpFCD7hpHFlQ8yPwT3x+QeXqc2T6+n6T+hmABHfDUSM= +cloud.google.com/go v0.112.0/go.mod h1:3jEEVwZ/MHU4djK5t5RHuKOA/GbLddgTdVubX1qnPD4= cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= @@ -70,8 +68,8 @@ cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= -cloud.google.com/go/compute v1.23.1 h1:V97tBoDaZHb6leicZ1G6DLK2BAaZLJ/7+9BB/En3hR0= -cloud.google.com/go/compute v1.23.1/go.mod h1:CqB3xpmPKKt3OJpW2ndFIXnA9A4xAy/F3Xp1ixncW78= +cloud.google.com/go/compute v1.23.3 h1:6sVlXXBmbd7jNX0Ipq0trII3e4n1/MsADLK6a+aiVlk= +cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= @@ -111,8 +109,8 @@ cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y97 cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= -cloud.google.com/go/iam v1.1.3 h1:18tKG7DzydKWUnLjonWcJO6wjSCAtzh4GcRKlH/Hrzc= -cloud.google.com/go/iam v1.1.3/go.mod h1:3khUlaBXfPKKe7huYgEpDn6FtgRyMEqbkvBxrQyY5SE= +cloud.google.com/go/iam v1.1.5 h1:1jTsCu4bcsNsE4iiqNT5SHwrDRCfRmIaaaVFhRveTJI= +cloud.google.com/go/iam v1.1.5/go.mod h1:rB6P/Ic3mykPbFio+vo7403drjlgvoWfYpJhMXEbzv8= cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic= cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= @@ -170,12 +168,11 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= -cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM= -cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= +cloud.google.com/go/storage v1.36.0 h1:P0mOkAcaJxhCTvAkMhxMfrTKiNcub4YmmPBtlhAyTr8= +cloud.google.com/go/storage v1.36.0/go.mod h1:M6M/3V/D3KpzMTJyPOR/HU6n2Si5QdaXYEsng2xgOs8= cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= @@ -197,14 +194,14 @@ cosmossdk.io/core v0.11.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= -cosmossdk.io/errors v1.0.0 h1:nxF07lmlBbB8NKQhtJ+sJm6ef5uV1XkvPXG2bUntb04= -cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= -cosmossdk.io/log v1.2.1 h1:Xc1GgTCicniwmMiKwDxUjO4eLhPxoVdI9vtMW8Ti/uk= -cosmossdk.io/log v1.2.1/go.mod h1:GNSCc/6+DhFIj1aLn/j7Id7PaO8DzNylUZoOYBL9+I4= +cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= +cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= +cosmossdk.io/log v1.3.0 h1:L0Z0XstClo2kOU4h3V1iDoE5Ji64sg5HLOogzGg67Oo= +cosmossdk.io/log v1.3.0/go.mod h1:HIDyvWLqZe2ovlWabsDN4aPMpY/nUEquAhgfTf2ZzB8= cosmossdk.io/math v1.2.0 h1:8gudhTkkD3NxOP2YyyJIYYmt6dQ55ZfJkDOaxXpy7Ig= cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= -cosmossdk.io/store v1.0.1 h1:XBDhCqlL+2MUgE8CHWwndKVJ4beX+TyaPIjB5SV62dM= -cosmossdk.io/store v1.0.1/go.mod h1:EFtENTqVTuWwitGW1VwaBct+yDagk7oG/axBMPH+FXs= +cosmossdk.io/store v1.0.2 h1:lSg5BTvJBHUDwswNNyeh4K/CbqiHER73VU4nDNb8uk0= +cosmossdk.io/store v1.0.2/go.mod h1:EFtENTqVTuWwitGW1VwaBct+yDagk7oG/axBMPH+FXs= cosmossdk.io/tools/confix v0.1.1 h1:aexyRv9+y15veH3Qw16lxQwo+ki7r2I+g0yNTEFEQM8= cosmossdk.io/tools/confix v0.1.1/go.mod h1:nQVvP1tHsGXS83PonPVWJtSbddIqyjEw99L4M3rPJyQ= cosmossdk.io/x/circuit v0.1.0 h1:IAej8aRYeuOMritczqTlljbUVHq1E85CpBqaCTwYgXs= @@ -215,8 +212,8 @@ cosmossdk.io/x/feegrant v0.1.0 h1:c7s3oAq/8/UO0EiN1H5BIjwVntujVTkYs35YPvvrdQk= cosmossdk.io/x/feegrant v0.1.0/go.mod h1:4r+FsViJRpcZif/yhTn+E0E6OFfg4n0Lx+6cCtnZElU= cosmossdk.io/x/nft v0.1.0 h1:VhcsFiEK33ODN27kxKLa0r/CeFd8laBfbDBwYqCyYCM= cosmossdk.io/x/nft v0.1.0/go.mod h1:ec4j4QAO4mJZ+45jeYRnW7awLHby1JZANqe1hNZ4S3g= -cosmossdk.io/x/tx v0.12.0 h1:Ry2btjQdrfrje9qZ3iZeZSmDArjgxUJMMcLMrX4wj5U= -cosmossdk.io/x/tx v0.12.0/go.mod h1:qTth2coAGkwCwOCjqQ8EAQg+9udXNRzcnSbMgGKGEI0= +cosmossdk.io/x/tx v0.13.0 h1:8lzyOh3zONPpZv2uTcUmsv0WTXy6T1/aCVDCqShmpzU= +cosmossdk.io/x/tx v0.13.0/go.mod h1:CpNQtmoqbXa33/DVxWQNx5Dcnbkv2xGUhL7tYQ5wUsY= cosmossdk.io/x/upgrade v0.1.1 h1:aoPe2gNvH+Gwt/Pgq3dOxxQVU3j5P6Xf+DaUJTDZATc= cosmossdk.io/x/upgrade v0.1.1/go.mod h1:MNLptLPcIFK9CWt7Ra//8WUZAxweyRDNcbs5nkOcQy0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= @@ -330,6 +327,8 @@ github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101 h1:7To3pQ+pZo0i3dsWEbinPNFs5gPSBOsJtx3wTT94VBY= +github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= @@ -379,7 +378,7 @@ github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5n github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creachadair/atomicfile v0.3.1 h1:yQORkHjSYySh/tv5th1dkKcn02NEW5JleB84sjt+W4Q= github.com/creachadair/atomicfile v0.3.1/go.mod h1:mwfrkRxFKwpNAflYZzytbSwxvbK6fdGRRlp0KEQc0qU= github.com/creachadair/tomledit v0.0.24 h1:5Xjr25R2esu1rKCbQEmjZYlrhFkDspoAbAKb6QKQDhQ= @@ -389,8 +388,9 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= @@ -433,23 +433,25 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/envoyproxy/protoc-gen-validate v1.0.2 h1:QkIBuU5k+x7/QXPvPPnWXWlCdaBFApVqftFV6k087DA= +github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o= -github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= -github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= -github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= -github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= github.com/getsentry/sentry-go v0.25.0 h1:q6Eo+hS+yoJlTO3uu/azhQadsD8V+jQn2D8VvX1eOyI= @@ -477,6 +479,11 @@ github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.3.0 h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY= +github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= @@ -593,25 +600,24 @@ github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/s2a-go v0.1.4 h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc= -github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= +github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= -github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= +github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= -github.com/googleapis/enterprise-certificate-proxy v0.2.4 h1:uGy6JWR/uMIILU8wbf+OkstIrNiMjGpEIyhx8f6W7s4= -github.com/googleapis/enterprise-certificate-proxy v0.2.4/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= +github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= @@ -624,7 +630,6 @@ github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMd github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= -github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= @@ -674,8 +679,9 @@ github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoD github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= @@ -748,7 +754,6 @@ github.com/klauspost/cpuid/v2 v2.2.4 h1:acbojRNwl3o09bUq+yDCtZFc1aiwaAAxtcn8YkZX github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -888,9 +893,9 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= @@ -943,6 +948,10 @@ github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= +github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= +github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= +github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= @@ -958,29 +967,29 @@ github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1 github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= +github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= +github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= -github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= +github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= -github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= +github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= +github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= -github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= +github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= +github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= @@ -1003,8 +1012,8 @@ github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= -github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= +github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= @@ -1050,6 +1059,18 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 h1:SpGay3w+nEwMpfVnbqOLH5gY52/foP8RE8UzTZ1pdSE= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1/go.mod h1:4UoMYEZOC0yN/sPGH76KPkkU7zgiEWYWL9vwmbnTJPE= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 h1:aFJWCqJMNjENlcleuuOkGAPH82y0yULBScfXcIEdS24= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1/go.mod h1:sEGXWArGqc3tVa+ekntsN65DmVbVeW+7lTKTjZF3/Fo= +go.opentelemetry.io/otel v1.21.0 h1:hzLeKBZEL7Okw2mGzZ0cc4k/A7Fta0uoPgaJCr8fsFc= +go.opentelemetry.io/otel v1.21.0/go.mod h1:QZzNPQPm1zLX4gZK4cMi+71eaorMSGT3A4znnUvNNEo= +go.opentelemetry.io/otel/metric v1.21.0 h1:tlYWfeo+Bocx5kLEloTjbcDwBuELRrIFxwdQ36PlJu4= +go.opentelemetry.io/otel/metric v1.21.0/go.mod h1:o1p3CA8nNHW8j5yuQLdc1eeqEaPfzug24uvsyIEJRWM= +go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= +go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= +go.opentelemetry.io/otel/trace v1.21.0 h1:WD9i5gzvoUPuXIXH24ZNBudiarZDKuekPqi/E8fpfLc= +go.opentelemetry.io/otel/trace v1.21.0/go.mod h1:LGbsEB0f9LGjN+OZaQQ26sohbOmiMR+BaslueVtS/qQ= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= @@ -1059,6 +1080,8 @@ go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= +go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= @@ -1076,14 +1099,11 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= -golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= -golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc= +golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1167,14 +1187,12 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= @@ -1190,8 +1208,8 @@ golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1217,8 +1235,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= -golang.org/x/oauth2 v0.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4= -golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= +golang.org/x/oauth2 v0.15.0 h1:s8pnnxNVzjWyrvYdFUQq5llS1PX2zhPXmccZv99h7uQ= +golang.org/x/oauth2 v0.15.0/go.mod h1:q48ptWNTY5XWf+JNten23lcvHpLJ0ZSxF5ttTHKVCAM= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1234,8 +1252,8 @@ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= -golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= +golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1292,13 +1310,11 @@ golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1332,23 +1348,22 @@ golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= -golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/term v0.16.0 h1:m+B6fahuftsE9qjo0VWp2FW0mB3MTJvR0BaMQrq0pmE= +golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1369,6 +1384,8 @@ golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= +golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -1424,7 +1441,6 @@ golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= @@ -1493,8 +1509,8 @@ google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= -google.golang.org/api v0.128.0 h1:RjPESny5CnQRn9V6siglged+DZCgfu9l6mO9dkX9VOg= -google.golang.org/api v0.128.0/go.mod h1:Y611qgqaE92On/7g65MQgxYul3c0rEB894kniWLY750= +google.golang.org/api v0.155.0 h1:vBmGhCYs0djJttDNynWo44zosHlPvHmA0XiN2zP2DtA= +google.golang.org/api v0.155.0/go.mod h1:GI5qK5f40kCpHfPn6+YzGAByIKWv8ujFnmoWm7Igduk= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1502,8 +1518,9 @@ google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= @@ -1542,10 +1559,8 @@ google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= @@ -1612,12 +1627,12 @@ google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqw google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= -google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b h1:+YaDE2r2OG8t/z5qmsh7Y+XXwCbvadxxZ0YY6mTdrVA= -google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI= -google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a h1:myvhA4is3vrit1a6NZCWBIwN0kNEnX21DJOJX/NvIfI= -google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a/go.mod h1:SUBoKXbI1Efip18FClrQVGjWcyd0QZd8KkvdP34t7ww= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= +google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe h1:USL2DhxfgRchafRvt/wYyyQNzwgL7ZiURcozOE/Pkvo= +google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:cc8bqMqtv9gMOr0zHg2Vzff5ULhhL2IXP4sbcn32Dro= +google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 h1:x9PwdEgd11LgK+orcck69WVRo7DezSO4VUMPI4xpc8A= +google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014/go.mod h1:rbHMSEDyoYX62nRVLOCc4Qt1HbsdytAYoVwgjiOhF3I= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe h1:bQnxqljG/wqi4NTXu2+DJ3n7APcEA882QZ1JvhQAq9o= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -1659,8 +1674,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= -google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= +google.golang.org/grpc v1.61.0 h1:TOvOcuXn30kRao+gfcvsebNEa5iZIiLkisYEkf7R7o0= +google.golang.org/grpc v1.61.0/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -1678,8 +1693,8 @@ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/simapp/simd/cmd/commands.go b/simapp/simd/cmd/commands.go index 8381969ee0..53fb4640f9 100644 --- a/simapp/simd/cmd/commands.go +++ b/simapp/simd/cmd/commands.go @@ -107,8 +107,8 @@ custom-field = "{{ .Custom.CustomField }}"` func initRootCmd( rootCmd *cobra.Command, txConfig client.TxConfig, - interfaceRegistry codectypes.InterfaceRegistry, - appCodec codec.Codec, + _ codectypes.InterfaceRegistry, + _ codec.Codec, basicManager module.BasicManager, ) { cfg := sdk.GetConfig() diff --git a/simapp/simd/cmd/root_v2.go b/simapp/simd/cmd/root_v2.go index 4251e79c73..1aa0cf30ef 100644 --- a/simapp/simd/cmd/root_v2.go +++ b/simapp/simd/cmd/root_v2.go @@ -123,7 +123,7 @@ func ProvideClientContext( return clientCtx } -func ProvideKeyring(clientCtx client.Context, addressCodec address.Codec) (clientv2keyring.Keyring, error) { +func ProvideKeyring(clientCtx client.Context, _ address.Codec) (clientv2keyring.Keyring, error) { kb, err := client.NewKeyringFromBackend(clientCtx, clientCtx.Keyring.Backend()) if err != nil { return nil, err diff --git a/simapp/test_helpers.go b/simapp/test_helpers.go index 7043f2eba3..968ba93e1d 100644 --- a/simapp/test_helpers.go +++ b/simapp/test_helpers.go @@ -95,6 +95,7 @@ func NewSimappWithCustomOptions(t *testing.T, isCheckTx bool, options SetupOptio // Setup initializes a new SimApp. A Nop logger is set in SimApp. func Setup(t *testing.T, isCheckTx bool) *SimApp { + _ = isCheckTx t.Helper() privVal := mock.NewPV() diff --git a/tests/e2e/collection/cli_test.go b/tests/e2e/collection/cli_test.go new file mode 100644 index 0000000000..8bb6422b12 --- /dev/null +++ b/tests/e2e/collection/cli_test.go @@ -0,0 +1,19 @@ +//go:build e2e +// +build e2e + +package collection + +import ( + "testing" + + "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/stretchr/testify/suite" + + "github.com/Finschia/finschia-sdk/simapp" +) + +func TestIntegrationTestSuite(t *testing.T) { + cfg := network.DefaultConfig(simapp.NewTestNetworkFixture) + cfg.NumValidators = 1 + suite.Run(t, NewE2ETestSuite(cfg)) +} diff --git a/tests/e2e/collection/grpc.go b/tests/e2e/collection/grpc.go new file mode 100644 index 0000000000..6af9c164c1 --- /dev/null +++ b/tests/e2e/collection/grpc.go @@ -0,0 +1,553 @@ +package collection + +import ( + "fmt" + + "github.com/cosmos/gogoproto/proto" + + cmath "cosmossdk.io/math" + + "github.com/cosmos/cosmos-sdk/testutil" + "github.com/cosmos/cosmos-sdk/types/query" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +const NotExistContractID = "aaaabbbb" + +func (s *E2ETestSuite) TestBalanceGRPC() { + val := s.network.Validators[0] + tokenID := s.mintNFT(s.contractID, s.vendor, s.customer, s.nftClassID) + + testCases := []struct { + name string + url string + expErr bool + respType proto.Message + expectResp proto.Message + }{ + { + "valid request", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/balances/%s/%s", val.APIAddress, s.contractID, s.customer, tokenID), + false, + &collection.QueryBalanceResponse{}, + &collection.QueryBalanceResponse{ + Balance: collection.NewCoin(tokenID, cmath.OneInt()), + }, + }, + { + "not own NFT", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/balances/%s/%s", val.APIAddress, s.contractID, s.stranger, tokenID), + false, + &collection.QueryBalanceResponse{}, + &collection.QueryBalanceResponse{ + Balance: collection.Coin{TokenId: tokenID, Amount: cmath.ZeroInt()}, + }, + }, + { + "invalid contract ID", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/balances/%s/%s", val.APIAddress, "wrong id", s.customer, tokenID), + true, + &collection.QueryBalanceResponse{}, + &collection.QueryBalanceResponse{}, + }, + { + "invalid token ID", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/balances/%s/%s", val.APIAddress, s.contractID, s.customer, "wrong id"), + true, + &collection.QueryBalanceResponse{}, + &collection.QueryBalanceResponse{}, + }, + { + "invalid address", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/balances/%s/%s", val.APIAddress, s.contractID, "wrong address", tokenID), + true, + &collection.QueryBalanceResponse{}, + &collection.QueryBalanceResponse{}, + }, + } + + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + resp, err := testutil.GetRequest(tc.url) + s.Require().NoError(err) + + err = s.cfg.Codec.UnmarshalJSON(resp, tc.respType) + + if tc.expErr { + s.Require().Error(err) + } else { + s.Require().NoError(err) + s.Require().Equal(tc.expectResp.String(), tc.respType.String()) + } + }) + } +} + +func (s *E2ETestSuite) TestBalancesGRPC() { + val := s.network.Validators[0] + tokenID := s.mintNFT(s.contractID, s.vendor, s.customer, s.nftClassID) + + testCases := []struct { + name string + url string + expErr bool + respType proto.Message + }{ + { + "valid request", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/balances/%s", val.APIAddress, s.contractID, s.vendor), + false, + &collection.QueryAllBalancesResponse{}, + }, + { + "invalid contract ID", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/balances/%s/%s", val.APIAddress, "wrong id", s.vendor, tokenID), + true, + &collection.QueryAllBalancesResponse{}, + }, + { + "invalid address", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/balances/%s/%s", val.APIAddress, s.contractID, "wrong address", tokenID), + true, + &collection.QueryAllBalancesResponse{}, + }, + } + + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + resp, err := testutil.GetRequest(tc.url) + s.Require().NoError(err) + + err = s.cfg.Codec.UnmarshalJSON(resp, tc.respType) + + if tc.expErr { + s.Require().Error(err) + } else { + s.Require().NoError(err) + s.Require().GreaterOrEqual(len(tc.respType.(*collection.QueryAllBalancesResponse).Balances), 1) + } + }) + } +} + +func (s *E2ETestSuite) TestStatisticsGRPC() { + val := s.network.Validators[0] + tokenID := s.mintNFT(s.contractID, s.vendor, s.vendor, s.nftClassID) + _ = s.burnNFT(s.contractID, s.vendor, tokenID) + + testCases := []struct { + name string + url string + expErr bool + respType proto.Message + }{ + { + "valid request - Supply", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s/supply", val.APIAddress, s.contractID, s.nftClassID), + false, + &collection.QueryNFTSupplyResponse{}, + }, + { + "valid request - Minted", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s/minted", val.APIAddress, s.contractID, s.nftClassID), + false, + &collection.QueryNFTMintedResponse{}, + }, + { + "valid request - Burnt", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s/burnt", val.APIAddress, s.contractID, s.nftClassID), + false, + &collection.QueryNFTBurntResponse{}, + }, + { + "invalid request (wrong token type) - Supply", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s/supply", val.APIAddress, s.contractID, "wrong ID"), + true, + &collection.QueryNFTSupplyResponse{}, + }, + { + "invalid request (wrong token type) - Minted", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s/minted", val.APIAddress, s.contractID, "wrong ID"), + true, + &collection.QueryNFTMintedResponse{}, + }, + { + "invalid request (wrong token type) - Burnt", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s/burnt", val.APIAddress, s.contractID, "wrong ID"), + true, + &collection.QueryNFTBurntResponse{}, + }, + { + "invalid request (wrong contract ID) - Supply", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s/supply", val.APIAddress, "wrong ID", s.nftClassID), + true, + &collection.QueryNFTSupplyResponse{}, + }, + { + "invalid request (wrong contract ID) - Minted", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s/minted", val.APIAddress, "wrong ID", s.nftClassID), + true, + &collection.QueryNFTMintedResponse{}, + }, + { + "invalid request (wrong contract ID) - Burnt", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s/burnt", val.APIAddress, "wrong ID", s.nftClassID), + true, + &collection.QueryNFTBurntResponse{}, + }, + } + + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + resp, err := testutil.GetRequest(tc.url) + s.Require().NoError(err) + + err = s.cfg.Codec.UnmarshalJSON(resp, tc.respType) + + if tc.expErr { + s.Require().Error(err) + } else { + s.Require().NoError(err) + switch r := tc.respType.(type) { + case *collection.QueryNFTSupplyResponse: + s.Require().True(r.Supply.GTE(cmath.OneInt())) + case *collection.QueryNFTMintedResponse: + s.Require().True(r.Minted.GTE(cmath.OneInt())) + case *collection.QueryNFTBurntResponse: + s.Require().True(r.Burnt.GTE(cmath.OneInt())) + default: + s.Require().Fail("unexpected response type") + } + } + }) + } +} + +func (s *E2ETestSuite) TestContractGRPC() { + val := s.network.Validators[0] + + testCases := []struct { + name string + url string + expErr bool + respType proto.Message + expectResp proto.Message + }{ + { + "valid request", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s", val.APIAddress, s.contractID), + false, + &collection.QueryContractResponse{}, + &collection.QueryContractResponse{ + Contract: collection.Contract{ + Name: "", + Id: s.contractID, + Meta: "", + Uri: "", + }, + }, + }, + { + "invalid request - wrong contract ID", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s", val.APIAddress, "wrong ID"), + true, + &collection.QueryContractResponse{}, + &collection.QueryContractResponse{}, + }, + { + "invalid request - not found", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s", val.APIAddress, NotExistContractID), + true, + &collection.QueryContractResponse{}, + &collection.QueryContractResponse{}, + }, + } + + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + resp, err := testutil.GetRequest(tc.url) + s.Require().NoError(err) + + err = s.cfg.Codec.UnmarshalJSON(resp, tc.respType) + + if tc.expErr { + s.Require().Error(err) + } else { + s.Require().NoError(err) + s.Require().Equal(tc.expectResp.String(), tc.respType.String()) + } + }) + } +} + +func (s *E2ETestSuite) TestTokenClassTypeNameGRPC() { + val := s.network.Validators[0] + + testCases := []struct { + name string + url string + expErr bool + respType proto.Message + expectResp proto.Message + }{ + { + "valid request", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_classes/%s/type_name", val.APIAddress, s.contractID, s.nftClassID), + false, + &collection.QueryTokenClassTypeNameResponse{}, + &collection.QueryTokenClassTypeNameResponse{ + Name: proto.MessageName(&collection.NFTClass{}), + }, + }, + { + "invalid request - wrong contract ID", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_classes/%s/type_name", val.APIAddress, s.contractID, "wrong ID"), + true, + &collection.QueryTokenClassTypeNameResponse{}, + &collection.QueryTokenClassTypeNameResponse{}, + }, + { + "invalid request - wrong class ID", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_classes/%s/type_name", val.APIAddress, "wrong ID", s.nftClassID), + true, + &collection.QueryTokenClassTypeNameResponse{}, + &collection.QueryTokenClassTypeNameResponse{}, + }, + { + "invalid request - not found", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_classes/%s/type_name", val.APIAddress, NotExistContractID, s.nftClassID), + true, + &collection.QueryTokenClassTypeNameResponse{}, + &collection.QueryTokenClassTypeNameResponse{}, + }, + } + + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + resp, err := testutil.GetRequest(tc.url) + s.Require().NoError(err) + + err = s.cfg.Codec.UnmarshalJSON(resp, tc.respType) + + if tc.expErr { + s.Require().Error(err) + } else { + s.Require().NoError(err) + s.Require().Equal(tc.expectResp.String(), tc.respType.String()) + } + }) + } +} + +func (s *E2ETestSuite) TestTokenTypeNameGRPC() { + val := s.network.Validators[0] + classID := s.createNFTClass(s.contractID, s.vendor) + + testCases := []struct { + name string + url string + expErr bool + respType proto.Message + expectResp proto.Message + }{ + { + "valid request", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s", val.APIAddress, s.contractID, classID), + false, + &collection.QueryTokenTypeResponse{}, + &collection.QueryTokenTypeResponse{ + TokenType: collection.TokenType{ + ContractId: s.contractID, + TokenType: classID, + Name: "", + Meta: "", + }, + }, + }, + { + "invalid request - wrong contract ID", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s", val.APIAddress, "wrong ID", classID), + true, + &collection.QueryTokenTypeResponse{}, + &collection.QueryTokenTypeResponse{}, + }, + { + "invalid request - wrong class ID", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s", val.APIAddress, s.contractID, "wrong ID"), + true, + &collection.QueryTokenTypeResponse{}, + &collection.QueryTokenTypeResponse{}, + }, + { + "invalid request - not found", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/token_types/%s", val.APIAddress, NotExistContractID, classID), + true, + &collection.QueryTokenTypeResponse{}, + &collection.QueryTokenTypeResponse{}, + }, + } + + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + resp, err := testutil.GetRequest(tc.url) + s.Require().NoError(err) + + err = s.cfg.Codec.UnmarshalJSON(resp, tc.respType) + + if tc.expErr { + s.Require().Error(err) + } else { + s.Require().NoError(err) + s.Require().Equal(tc.expectResp.String(), tc.respType.String()) + } + }) + } +} + +func (s *E2ETestSuite) TestTokenGRPC() { + val := s.network.Validators[0] + tokenID := s.mintNFT(s.contractID, s.vendor, s.vendor, s.nftClassID) + + testCases := []struct { + name string + url string + expErr bool + respType proto.Message + expectResp proto.Message + }{ + { + "valid request", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/tokens/%s", val.APIAddress, s.contractID, tokenID), + false, + &collection.QueryTokenResponse{}, + &collection.OwnerNFT{ + ContractId: s.contractID, + TokenId: tokenID, + Owner: s.vendor, + Name: "arctic fox", + Meta: "", + }, + }, + { + "invalid request - wrong contract ID", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/tokens/%s", val.APIAddress, "wrong ID", tokenID), + true, + &collection.QueryTokenResponse{}, + &collection.OwnerNFT{}, + }, + { + "invalid request - wrong class ID", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/tokens/%s", val.APIAddress, s.contractID, "wrong ID"), + true, + &collection.QueryTokenResponse{}, + &collection.OwnerNFT{}, + }, + { + "invalid request - not found", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/tokens/%s", val.APIAddress, NotExistContractID, tokenID), + true, + &collection.QueryTokenResponse{}, + &collection.OwnerNFT{}, + }, + } + + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + resp, err := testutil.GetRequest(tc.url) + s.Require().NoError(err) + + err = s.cfg.Codec.UnmarshalJSON(resp, tc.respType) + + if tc.expErr { + s.Require().Error(err) + } else { + s.Require().NoError(err) + res := tc.respType.(*collection.QueryTokenResponse) + s.Require().Equal("/lbm.collection.v1.OwnerNFT", res.Token.TypeUrl) + var token collection.Token + err = s.cfg.InterfaceRegistry.UnpackAny(&res.Token, &token) + s.Require().NoError(err) + nft, ok := token.(*collection.OwnerNFT) + s.Require().True(ok) + s.Require().Equal(tc.expectResp.String(), nft.String()) + } + }) + } +} + +func (s *E2ETestSuite) TestGranteeGrantsGRPC() { + val := s.network.Validators[0] + s.grant(s.contractID, s.vendor, s.stranger, collection.PermissionIssue) + dummyAddr := "link1hcpqj6w2eq30jcdggs7892lmask0cacvynqg7d" + _, err := s.ac.StringToBytes(dummyAddr) + s.Require().NoError(err) + + testCases := []struct { + name string + url string + expErr bool + respType proto.Message + expectResp proto.Message + }{ + { + "valid request", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/grants/%s", val.APIAddress, s.contractID, s.stranger), + false, + &collection.QueryGranteeGrantsResponse{}, + &collection.QueryGranteeGrantsResponse{ + Grants: []collection.Grant{ + { + Grantee: s.stranger, + Permission: collection.PermissionIssue, + }, + }, + Pagination: &query.PageResponse{ + Total: 1, + }, + }, + }, + { + "invalid request - wrong contract ID", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/grants/%s", val.APIAddress, "wrong ID", s.stranger), + true, + &collection.QueryGranteeGrantsResponse{}, + &collection.QueryGranteeGrantsResponse{}, + }, + { + "invalid request - not found", + fmt.Sprintf("%s/lbm/collection/v1/contracts/%s/grants/%s", val.APIAddress, s.contractID, dummyAddr), + false, + &collection.QueryGranteeGrantsResponse{}, + &collection.QueryGranteeGrantsResponse{ + Pagination: &query.PageResponse{ + Total: 0, + }, + }, + }, + } + + for _, tc := range testCases { + tc := tc + s.Run(tc.name, func() { + resp, err := testutil.GetRequest(tc.url) + s.Require().NoError(err) + + err = s.cfg.Codec.UnmarshalJSON(resp, tc.respType) + + if tc.expErr { + s.Require().Error(err) + } else { + s.Require().NoError(err) + s.Require().Equal(tc.expectResp.String(), tc.respType.String()) + } + }) + } +} diff --git a/tests/e2e/collection/suite.go b/tests/e2e/collection/suite.go new file mode 100644 index 0000000000..e32c5134b6 --- /dev/null +++ b/tests/e2e/collection/suite.go @@ -0,0 +1,247 @@ +package collection + +import ( + "fmt" + + abci "github.com/cometbft/cometbft/abci/types" + "github.com/cosmos/gogoproto/proto" + "github.com/stretchr/testify/suite" + + "cosmossdk.io/core/address" + cmath "cosmossdk.io/math" + + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/crypto/hd" + "github.com/cosmos/cosmos-sdk/crypto/keyring" + "github.com/cosmos/cosmos-sdk/testutil" + clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" + "github.com/cosmos/cosmos-sdk/testutil/network" + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Finschia/finschia-sdk/x/collection" + "github.com/Finschia/finschia-sdk/x/collection/client/cli" +) + +type E2ETestSuite struct { + suite.Suite + + cfg network.Config + ac address.Codec + network *network.Network + setupHeight int64 + + commonArgs []string + + vendor string + operator string + customer string + stranger string + contractID string + nftClassID string + tokenIDs map[string]string +} + +func NewE2ETestSuite(cfg network.Config) *E2ETestSuite { + return &E2ETestSuite{cfg: cfg} +} + +func (s *E2ETestSuite) SetupSuite() { + s.T().Log("setting up collection e2e test suite") + + genesisState := s.cfg.GenesisState + collectionGenesisState := new(collection.GenesisState) + s.Require().NoError(s.cfg.Codec.UnmarshalJSON(genesisState[collection.ModuleName], collectionGenesisState)) + + var err error + s.network, err = network.New(s.T(), s.T().TempDir(), s.cfg) + s.Require().NoError(err) + s.ac = s.network.Config.InterfaceRegistry.SigningContext().AddressCodec() + + s.commonArgs = []string{ + fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), + fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), + fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, cmath.NewInt(100))).String()), + } + + s.vendor, err = s.ac.BytesToString(s.network.Validators[0].Address) + s.Require().NoError(err) + s.operator = s.createAccount("operator") + s.customer = s.createAccount("customer") + s.stranger = s.createAccount("stranger") + + // vendor creates nft token class + s.contractID = s.createContract(s.vendor) + s.nftClassID = s.createNFTClass(s.contractID, s.vendor) + + // mint nfts + s.tokenIDs = make(map[string]string, 4) + for _, to := range []string{s.customer, s.operator, s.vendor, s.stranger} { + s.tokenIDs[to] = s.mintNFT(s.contractID, s.vendor, to, s.nftClassID) + } + + // grant all the permissions to operator + for _, pv := range collection.Permission_value { + permission := collection.Permission(pv) + if permission == collection.PermissionUnspecified { + continue + } + s.grant(s.contractID, s.vendor, s.operator, permission) + } + + // customer and vendor approves the operator to manipulate its tokens, so vendor can do OperatorXXX (Send or Burn) later. + s.authorizeOperator(s.contractID, s.vendor, s.operator) + s.authorizeOperator(s.contractID, s.customer, s.operator) + // for the revocation. + s.authorizeOperator(s.contractID, s.operator, s.vendor) + + s.Require().NoError(s.network.WaitForNextBlock()) + s.setupHeight, err = s.network.LatestHeight() + s.Require().NoError(err) +} + +func (s *E2ETestSuite) TearDownSuite() { + s.T().Log("tearing down collection e2e test suite") + s.network.Cleanup() +} + +func (s *E2ETestSuite) createContract(creator string) string { + val := s.network.Validators[0] + args := append([]string{ + creator, + }, s.commonArgs...) + + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cli.NewTxCmdCreateContract(), args) + s.Require().NoError(err) + txResp := s.getTxResp(out, 0) + var event collection.EventCreatedContract + s.pickEvent(txResp.Events, &event, func(e proto.Message) { + event = *e.(*collection.EventCreatedContract) + }) + return event.ContractId +} + +func (s *E2ETestSuite) createNFTClass(contractID, operator string) string { + val := s.network.Validators[0] + args := append([]string{ + contractID, + operator, + }, s.commonArgs...) + + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cli.NewTxCmdIssueNFT(), args) + s.Require().NoError(err) + txResp := s.getTxResp(out, 0) + var event collection.EventCreatedNFTClass + s.pickEvent(txResp.Events, &event, func(e proto.Message) { + event = *e.(*collection.EventCreatedNFTClass) + }) + return event.TokenType +} + +func (s *E2ETestSuite) mintNFT(contractID, operator, to, classID string) string { + val := s.network.Validators[0] + args := append([]string{ + contractID, + operator, + to, + classID, + fmt.Sprintf("--%s=%s", cli.FlagName, "arctic fox"), + }, s.commonArgs...) + + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cli.NewTxCmdMintNFT(), args) + s.Require().NoError(err) + txResp := s.getTxResp(out, 0) + var event collection.EventMintedNFT + s.pickEvent(txResp.Events, &event, func(e proto.Message) { + event = *e.(*collection.EventMintedNFT) + }) + + s.Require().Equal(1, len(event.Tokens)) + return event.Tokens[0].TokenId +} + +func (s *E2ETestSuite) burnNFT(contractID, operator, tokenID string) collection.Coins { + val := s.network.Validators[0] + args := append([]string{ + contractID, + operator, + tokenID, + }, s.commonArgs...) + + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cli.NewTxCmdBurnNFT(), args) + s.Require().NoError(err) + txResp := s.getTxResp(out, 0) + var event collection.EventBurned + s.pickEvent(txResp.Events, &event, func(e proto.Message) { + event = *e.(*collection.EventBurned) + }) + + s.Require().GreaterOrEqual(len(event.Amount), 1) + return event.Amount +} + +func (s *E2ETestSuite) grant(contractID, granter, grantee string, permission collection.Permission) { + val := s.network.Validators[0] + args := append([]string{ + contractID, + granter, + grantee, + collection.LegacyPermission(permission).String(), + }, s.commonArgs...) + + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cli.NewTxCmdGrantPermission(), args) + s.Require().NoError(err) + _ = s.getTxResp(out, 0) +} + +func (s *E2ETestSuite) authorizeOperator(contractID, holder, operator string) { + val := s.network.Validators[0] + args := append([]string{ + contractID, + holder, + operator, + }, s.commonArgs...) + + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cli.NewTxCmdAuthorizeOperator(), args) + s.Require().NoError(err) + _ = s.getTxResp(out, 0) +} + +func (s *E2ETestSuite) pickEvent(events []abci.Event, event proto.Message, fn func(event proto.Message)) { + for _, e := range events { + if e.Type == proto.MessageName(event) { + msg, err := sdk.ParseTypedEvent(e) + s.Require().NoError(err) + + fn(msg) + return + } + } + + s.Require().Failf("event not found", "%s", events) +} + +// creates an account and send some coins to it for the future transactions. +func (s *E2ETestSuite) createAccount(uid string) string { + val := s.network.Validators[0] + keyInfo, _, err := val.ClientCtx.Keyring.NewMnemonic(uid, keyring.English, sdk.FullFundraiserPath, keyring.DefaultBIP39Passphrase, hd.Secp256k1) + s.Require().NoError(err) + addr, err := keyInfo.GetAddress() + s.Require().NoError(err) + + out, err := clitestutil.MsgSendExec(val.ClientCtx, val.Address, addr, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, cmath.NewInt(1000000))), s.ac, s.commonArgs...) + s.Require().NoError(err) + s.getTxResp(out, 0) + a, err := s.ac.BytesToString(addr) + s.Require().NoError(err) + return a +} + +func (s *E2ETestSuite) getTxResp(out testutil.BufferWriter, expectedCode uint32) sdk.TxResponse { + var res sdk.TxResponse + s.Require().NoError(s.network.Validators[0].ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &res), out.String()) + s.Require().NoError(s.network.WaitForNextBlock()) + txResp, err := clitestutil.GetTxResponse(s.network, s.network.Validators[0].ClientCtx, res.TxHash) + s.Require().NoError(err) + s.Require().EqualValues(expectedCode, txResp.Code, txResp.String()) + return txResp +} diff --git a/tests/e2e/collection/tx.go b/tests/e2e/collection/tx.go new file mode 100644 index 0000000000..892c908a12 --- /dev/null +++ b/tests/e2e/collection/tx.go @@ -0,0 +1,728 @@ +package collection + +import ( + "fmt" + + clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" + + "github.com/Finschia/finschia-sdk/x/collection" + "github.com/Finschia/finschia-sdk/x/collection/client/cli" +) + +func (s *E2ETestSuite) TestNewTxCmdSendNFT() { + val := s.network.Validators[0] + tokenID := s.tokenIDs[s.stranger] + + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.stranger, + s.customer, + tokenID, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.stranger, + s.customer, + tokenID, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.stranger, + s.customer, + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.stranger, + s.customer, + tokenID, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdSendNFT() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.getTxResp(out, 0) + }) + } +} + +func (s *E2ETestSuite) TestNewTxCmdOperatorSendNFT() { + val := s.network.Validators[0] + tokenID := s.tokenIDs[s.customer] + + testCases := map[string]struct { + args []string + valid bool + success bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + s.customer, + s.vendor, + tokenID, + }, + true, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + s.customer, + s.vendor, + tokenID, + "extra", + }, + false, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.operator, + s.customer, + s.vendor, + }, + false, + false, + }, + "invalid contract id": { + []string{ + "", + s.operator, + s.customer, + s.vendor, + tokenID, + }, + false, + false, + }, + "invalid operator": { + []string{ + s.contractID, + s.stranger, + s.customer, + s.vendor, + tokenID, + }, + true, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdOperatorSendNFT() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + if tc.success { + s.getTxResp(out, 0) + } else { + s.getTxResp(out, 29) + } + }) + } +} + +func (s *E2ETestSuite) TestNewTxCmdCreateContract() { + val := s.network.Validators[0] + + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.vendor, + }, + true, + }, + "extra args": { + []string{ + s.vendor, + "extra", + }, + false, + }, + "not enough args": { + []string{}, + false, + }, + "invalid creator": { + []string{ + "", + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdCreateContract() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.getTxResp(out, 0) + }) + } +} + +func (s *E2ETestSuite) TestNewTxCmdIssueNFT() { + val := s.network.Validators[0] + + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.operator, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdIssueNFT() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.getTxResp(out, 0) + }) + } +} + +func (s *E2ETestSuite) TestNewTxCmdMintNFT() { + val := s.network.Validators[0] + + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + s.customer, + s.nftClassID, + fmt.Sprintf("--%s=%s", cli.FlagName, "arctic fox"), + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + s.customer, + s.nftClassID, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.operator, + s.customer, + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.operator, + s.customer, + s.nftClassID, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdMintNFT() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.getTxResp(out, 0) + }) + } +} + +func (s *E2ETestSuite) TestNewTxCmdBurnNFT() { + val := s.network.Validators[0] + tokenID := s.tokenIDs[s.operator] + + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + tokenID, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + tokenID, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.operator, + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.operator, + tokenID, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdBurnNFT() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.getTxResp(out, 0) + }) + } +} + +func (s *E2ETestSuite) TestNewTxCmdOperatorOperatorBurnNFT() { + val := s.network.Validators[0] + tokenID := s.tokenIDs[s.vendor] + + testCases := map[string]struct { + args []string + valid bool + success bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + s.vendor, + tokenID, + }, + true, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + s.vendor, + tokenID, + "extra", + }, + false, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.operator, + s.vendor, + }, + false, + false, + }, + "invalid contract id": { + []string{ + "", + s.operator, + s.vendor, + tokenID, + }, + false, + false, + }, + "invalid operator": { + []string{ + s.contractID, + s.stranger, + s.vendor, + tokenID, + }, + true, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdOperatorBurnNFT() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + if tc.success { + s.getTxResp(out, 0) + } else { + s.getTxResp(out, 29) + } + }) + } +} + +func (s *E2ETestSuite) TestNewTxCmdModify() { + val := s.network.Validators[0] + + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + s.nftClassID, + "", + collection.AttributeKeyName.String(), + "tibetian fox", + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + s.nftClassID, + "", + collection.AttributeKeyName.String(), + "tibetian fox", + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.operator, + s.nftClassID, + "", + collection.AttributeKeyName.String(), + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.operator, + s.nftClassID, + "", + collection.AttributeKeyName.String(), + "tibetian fox", + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdModify() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.getTxResp(out, 0) + }) + } +} + +func (s *E2ETestSuite) TestNewTxCmdGrantPermission() { + val := s.network.Validators[0] + + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + s.customer, + collection.LegacyPermissionMint.String(), + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + s.customer, + collection.LegacyPermissionMint.String(), + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.operator, + s.customer, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdGrantPermission() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.getTxResp(out, 0) + }) + } +} + +func (s *E2ETestSuite) TestNewTxCmdRevokePermission() { + val := s.network.Validators[0] + + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.vendor, + collection.LegacyPermissionModify.String(), + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.vendor, + collection.LegacyPermissionModify.String(), + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.vendor, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdRevokePermission() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.getTxResp(out, 0) + }) + } +} + +func (s *E2ETestSuite) TestNewTxCmdAuthorizeOperator() { + val := s.network.Validators[0] + + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.vendor, + s.customer, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.vendor, + s.customer, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.vendor, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdAuthorizeOperator() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.getTxResp(out, 0) + }) + } +} + +func (s *E2ETestSuite) TestNewTxCmdRevokeOperator() { + val := s.network.Validators[0] + + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + s.vendor, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + s.vendor, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.operator, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdRevokeOperator() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, s.commonArgs...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.getTxResp(out, 0) + }) + } +} diff --git a/tests/go.mod b/tests/go.mod index 970cfada0d..20a6480386 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -6,26 +6,26 @@ require ( cosmossdk.io/api v0.7.2 // indirect cosmossdk.io/core v0.11.0 cosmossdk.io/depinject v1.0.0-alpha.4 // indirect - cosmossdk.io/errors v1.0.0 // indirect - cosmossdk.io/log v1.2.1 // indirect + cosmossdk.io/errors v1.0.1 // indirect + cosmossdk.io/log v1.3.0 // indirect cosmossdk.io/math v1.2.0 - cosmossdk.io/store v1.0.1 // indirect + cosmossdk.io/store v1.0.2 // indirect cosmossdk.io/x/evidence v0.1.0 // indirect cosmossdk.io/x/feegrant v0.1.0 // indirect cosmossdk.io/x/nft v0.1.0 // indirect - cosmossdk.io/x/tx v0.12.0 // indirect + cosmossdk.io/x/tx v0.13.0 // indirect cosmossdk.io/x/upgrade v0.1.1 // indirect - github.com/cometbft/cometbft v0.38.2 + github.com/cometbft/cometbft v0.38.3 github.com/cosmos/cosmos-db v1.0.0 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.3 // indirect // this version is not used as it is always replaced by the latest Cosmos SDK version github.com/cosmos/cosmos-sdk v0.51.0 github.com/cosmos/gogoproto v1.4.11 github.com/golang/mock v1.6.0 // indirect - github.com/spf13/cobra v1.7.0 // indirect + github.com/spf13/cobra v1.8.0 // indirect github.com/stretchr/testify v1.8.4 - google.golang.org/grpc v1.59.0 // indirect - google.golang.org/protobuf v1.31.0 // indirect + google.golang.org/grpc v1.61.0 // indirect + google.golang.org/protobuf v1.32.0 // indirect gotest.tools/v3 v3.5.1 // indirect pgregory.net/rapid v1.1.0 // indirect ) @@ -38,11 +38,11 @@ require ( ) require ( - cloud.google.com/go v0.110.8 // indirect - cloud.google.com/go/compute v1.23.1 // indirect + cloud.google.com/go v0.112.0 // indirect + cloud.google.com/go/compute v1.23.3 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/iam v1.1.3 // indirect - cloud.google.com/go/storage v1.30.1 // indirect + cloud.google.com/go/iam v1.1.5 // indirect + cloud.google.com/go/storage v1.36.0 // indirect cosmossdk.io/collections v0.4.0 // indirect cosmossdk.io/x/circuit v0.1.0 // indirect filippo.io/edwards25519 v1.0.0 // indirect @@ -51,6 +51,7 @@ require ( github.com/DataDog/datadog-go v3.2.0+incompatible // indirect github.com/DataDog/zstd v1.5.5 // indirect github.com/Finschia/finschia-sdk/api v0.0.0-20231227090232-78fde403b78c // indirect + github.com/Finschia/finschia-sdk/x/collection v0.0.0-00010101000000-000000000000 // indirect github.com/aws/aws-sdk-go v1.44.224 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect @@ -74,7 +75,7 @@ require ( github.com/cosmos/ics23/go v0.10.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/danieljoos/wincred v1.1.2 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect @@ -84,12 +85,14 @@ require ( github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/emicklei/dot v1.6.0 // indirect github.com/fatih/color v1.15.0 // indirect - github.com/felixge/httpsnoop v1.0.2 // indirect - github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/getsentry/sentry-go v0.25.0 // indirect github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.6.0 // indirect + github.com/go-logr/logr v1.3.0 // indirect + github.com/go-logr/stdr v1.2.2 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect @@ -100,9 +103,9 @@ require ( github.com/google/btree v1.1.2 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/orderedcode v0.0.1 // indirect - github.com/google/s2a-go v0.1.4 // indirect - github.com/google/uuid v1.3.1 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.4 // indirect + github.com/google/s2a-go v0.1.7 // indirect + github.com/google/uuid v1.5.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect github.com/googleapis/gax-go/v2 v2.12.0 // indirect github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/mux v1.8.0 // indirect @@ -149,7 +152,7 @@ require ( github.com/pelletier/go-toml/v2 v2.1.0 // indirect github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_golang v1.17.0 // indirect github.com/prometheus/client_model v0.5.0 // indirect github.com/prometheus/common v0.45.0 // indirect @@ -158,13 +161,15 @@ require ( github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/rs/cors v1.8.3 // indirect github.com/rs/zerolog v1.31.0 // indirect + github.com/sagikazarmark/locafero v0.4.0 // indirect + github.com/sagikazarmark/slog-shim v0.1.0 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect - github.com/spf13/afero v1.9.5 // indirect - github.com/spf13/cast v1.5.1 // indirect - github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/sourcegraph/conc v0.3.0 // indirect + github.com/spf13/afero v1.11.0 // indirect + github.com/spf13/cast v1.6.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/spf13/viper v1.16.0 // indirect - github.com/subosito/gotenv v1.4.2 // indirect + github.com/spf13/viper v1.18.2 // indirect + github.com/subosito/gotenv v1.6.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect github.com/tidwall/btree v1.7.0 // indirect @@ -173,20 +178,26 @@ require ( github.com/zondax/ledger-go v0.14.3 // indirect go.etcd.io/bbolt v1.3.8 // indirect go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.16.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect + go.opentelemetry.io/otel v1.21.0 // indirect + go.opentelemetry.io/otel/metric v1.21.0 // indirect + go.opentelemetry.io/otel/trace v1.21.0 // indirect + go.uber.org/multierr v1.10.0 // indirect + golang.org/x/crypto v0.18.0 // indirect golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect - golang.org/x/net v0.19.0 // indirect - golang.org/x/oauth2 v0.12.0 // indirect - golang.org/x/sync v0.3.0 // indirect - golang.org/x/sys v0.15.0 // indirect - golang.org/x/term v0.15.0 // indirect + golang.org/x/net v0.20.0 // indirect + golang.org/x/oauth2 v0.15.0 // indirect + golang.org/x/sync v0.5.0 // indirect + golang.org/x/sys v0.16.0 // indirect + golang.org/x/term v0.16.0 // indirect golang.org/x/text v0.14.0 // indirect - golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect - google.golang.org/api v0.128.0 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect + golang.org/x/time v0.5.0 // indirect + google.golang.org/api v0.155.0 // indirect + google.golang.org/appengine v1.6.8 // indirect + google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect @@ -205,16 +216,21 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 // We always want to test against the latest version of the SDK. github.com/Finschia/finschia-sdk => ../. + // We always want to test against the latest version of the API. + github.com/Finschia/finschia-sdk/api => ../api // We always want to test against the latest version of the simapp. github.com/Finschia/finschia-sdk/simapp => ../simapp + // Fix upstream GHSA-h395-qcrw-5vmq and GHSA-3vp4-m3rf-835h vulnerabilities. // TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409 github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.1 ) replace ( - github.com/Finschia/finschia-sdk/x/foundation => ./../x/foundation - github.com/Finschia/finschia-sdk/x/stakingplus => ./../x/stakingplus github.com/cometbft/cometbft => github.com/Finschia/cometbft v0.0.0-20231127181424-2aacfbe9832d github.com/cosmos/cosmos-sdk => github.com/Finschia/cosmos-sdk v0.0.0-20231211060251-d8fb76d4c267 + + github.com/Finschia/finschia-sdk/x/foundation => ./../x/foundation + github.com/Finschia/finschia-sdk/x/stakingplus => ./../x/stakingplus + github.com/Finschia/finschia-sdk/x/collection => ./../x/collection ) diff --git a/tests/go.sum b/tests/go.sum index 484c1485a9..d13b7d08d0 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -3,7 +3,6 @@ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= @@ -16,7 +15,6 @@ cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOY cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= @@ -32,8 +30,8 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9 cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= -cloud.google.com/go v0.110.8 h1:tyNdfIxjzaWctIiLYOTalaLKZ17SI44SKFW26QbOhME= -cloud.google.com/go v0.110.8/go.mod h1:Iz8AkXJf1qmxC3Oxoep8R1T36w8B92yU29PcBhHO5fk= +cloud.google.com/go v0.112.0 h1:tpFCD7hpHFlQ8yPwT3x+QeXqc2T6+n6T+hmABHfDUSM= +cloud.google.com/go v0.112.0/go.mod h1:3jEEVwZ/MHU4djK5t5RHuKOA/GbLddgTdVubX1qnPD4= cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= @@ -70,8 +68,8 @@ cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= -cloud.google.com/go/compute v1.23.1 h1:V97tBoDaZHb6leicZ1G6DLK2BAaZLJ/7+9BB/En3hR0= -cloud.google.com/go/compute v1.23.1/go.mod h1:CqB3xpmPKKt3OJpW2ndFIXnA9A4xAy/F3Xp1ixncW78= +cloud.google.com/go/compute v1.23.3 h1:6sVlXXBmbd7jNX0Ipq0trII3e4n1/MsADLK6a+aiVlk= +cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= @@ -111,8 +109,8 @@ cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y97 cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= -cloud.google.com/go/iam v1.1.3 h1:18tKG7DzydKWUnLjonWcJO6wjSCAtzh4GcRKlH/Hrzc= -cloud.google.com/go/iam v1.1.3/go.mod h1:3khUlaBXfPKKe7huYgEpDn6FtgRyMEqbkvBxrQyY5SE= +cloud.google.com/go/iam v1.1.5 h1:1jTsCu4bcsNsE4iiqNT5SHwrDRCfRmIaaaVFhRveTJI= +cloud.google.com/go/iam v1.1.5/go.mod h1:rB6P/Ic3mykPbFio+vo7403drjlgvoWfYpJhMXEbzv8= cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic= cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= @@ -170,12 +168,11 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= -cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM= -cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= +cloud.google.com/go/storage v1.36.0 h1:P0mOkAcaJxhCTvAkMhxMfrTKiNcub4YmmPBtlhAyTr8= +cloud.google.com/go/storage v1.36.0/go.mod h1:M6M/3V/D3KpzMTJyPOR/HU6n2Si5QdaXYEsng2xgOs8= cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= @@ -195,14 +192,14 @@ cosmossdk.io/core v0.11.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= -cosmossdk.io/errors v1.0.0 h1:nxF07lmlBbB8NKQhtJ+sJm6ef5uV1XkvPXG2bUntb04= -cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= -cosmossdk.io/log v1.2.1 h1:Xc1GgTCicniwmMiKwDxUjO4eLhPxoVdI9vtMW8Ti/uk= -cosmossdk.io/log v1.2.1/go.mod h1:GNSCc/6+DhFIj1aLn/j7Id7PaO8DzNylUZoOYBL9+I4= +cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= +cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= +cosmossdk.io/log v1.3.0 h1:L0Z0XstClo2kOU4h3V1iDoE5Ji64sg5HLOogzGg67Oo= +cosmossdk.io/log v1.3.0/go.mod h1:HIDyvWLqZe2ovlWabsDN4aPMpY/nUEquAhgfTf2ZzB8= cosmossdk.io/math v1.2.0 h1:8gudhTkkD3NxOP2YyyJIYYmt6dQ55ZfJkDOaxXpy7Ig= cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= -cosmossdk.io/store v1.0.1 h1:XBDhCqlL+2MUgE8CHWwndKVJ4beX+TyaPIjB5SV62dM= -cosmossdk.io/store v1.0.1/go.mod h1:EFtENTqVTuWwitGW1VwaBct+yDagk7oG/axBMPH+FXs= +cosmossdk.io/store v1.0.2 h1:lSg5BTvJBHUDwswNNyeh4K/CbqiHER73VU4nDNb8uk0= +cosmossdk.io/store v1.0.2/go.mod h1:EFtENTqVTuWwitGW1VwaBct+yDagk7oG/axBMPH+FXs= cosmossdk.io/x/circuit v0.1.0 h1:IAej8aRYeuOMritczqTlljbUVHq1E85CpBqaCTwYgXs= cosmossdk.io/x/circuit v0.1.0/go.mod h1:YDzblVE8+E+urPYQq5kq5foRY/IzhXovSYXb4nwd39w= cosmossdk.io/x/evidence v0.1.0 h1:J6OEyDl1rbykksdGynzPKG5R/zm6TacwW2fbLTW4nCk= @@ -211,8 +208,8 @@ cosmossdk.io/x/feegrant v0.1.0 h1:c7s3oAq/8/UO0EiN1H5BIjwVntujVTkYs35YPvvrdQk= cosmossdk.io/x/feegrant v0.1.0/go.mod h1:4r+FsViJRpcZif/yhTn+E0E6OFfg4n0Lx+6cCtnZElU= cosmossdk.io/x/nft v0.1.0 h1:VhcsFiEK33ODN27kxKLa0r/CeFd8laBfbDBwYqCyYCM= cosmossdk.io/x/nft v0.1.0/go.mod h1:ec4j4QAO4mJZ+45jeYRnW7awLHby1JZANqe1hNZ4S3g= -cosmossdk.io/x/tx v0.12.0 h1:Ry2btjQdrfrje9qZ3iZeZSmDArjgxUJMMcLMrX4wj5U= -cosmossdk.io/x/tx v0.12.0/go.mod h1:qTth2coAGkwCwOCjqQ8EAQg+9udXNRzcnSbMgGKGEI0= +cosmossdk.io/x/tx v0.13.0 h1:8lzyOh3zONPpZv2uTcUmsv0WTXy6T1/aCVDCqShmpzU= +cosmossdk.io/x/tx v0.13.0/go.mod h1:CpNQtmoqbXa33/DVxWQNx5Dcnbkv2xGUhL7tYQ5wUsY= cosmossdk.io/x/upgrade v0.1.1 h1:aoPe2gNvH+Gwt/Pgq3dOxxQVU3j5P6Xf+DaUJTDZATc= cosmossdk.io/x/upgrade v0.1.1/go.mod h1:MNLptLPcIFK9CWt7Ra//8WUZAxweyRDNcbs5nkOcQy0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= @@ -232,8 +229,6 @@ github.com/Finschia/cometbft v0.0.0-20231127181424-2aacfbe9832d h1:7x3LqhrO4lXTt github.com/Finschia/cometbft v0.0.0-20231127181424-2aacfbe9832d/go.mod h1:PIi48BpzwlHqtV3mzwPyQgOyOnU94BNBimLS2ebBHOg= github.com/Finschia/cosmos-sdk v0.0.0-20231211060251-d8fb76d4c267 h1:lm4mGuo+arhc/GrVm8hjGE3CCcfSQEvxI+uZODfEhQY= github.com/Finschia/cosmos-sdk v0.0.0-20231211060251-d8fb76d4c267/go.mod h1:n/WQqDh73qdtBmY9Op3sYgiBgTujSfGSd6CNh6GfqvQ= -github.com/Finschia/finschia-sdk/api v0.0.0-20231227090232-78fde403b78c h1:udPyEWzmxkmmXK2btB/rWeApcMsjcFZl2B59EYxOdss= -github.com/Finschia/finschia-sdk/api v0.0.0-20231227090232-78fde403b78c/go.mod h1:rYRCm6V5xeW7sN5yLECAzIT7IF3pyBK6Rca9pEGEOAM= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= @@ -328,6 +323,8 @@ github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101 h1:7To3pQ+pZo0i3dsWEbinPNFs5gPSBOsJtx3wTT94VBY= +github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= @@ -377,14 +374,15 @@ github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5n github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= @@ -427,24 +425,26 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/envoyproxy/protoc-gen-validate v1.0.2 h1:QkIBuU5k+x7/QXPvPPnWXWlCdaBFApVqftFV6k087DA= +github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o= -github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= -github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= -github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= -github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= -github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= github.com/getsentry/sentry-go v0.25.0 h1:q6Eo+hS+yoJlTO3uu/azhQadsD8V+jQn2D8VvX1eOyI= @@ -472,6 +472,11 @@ github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.3.0 h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY= +github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= @@ -589,7 +594,6 @@ github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= @@ -597,18 +601,18 @@ github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/s2a-go v0.1.4 h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc= -github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= +github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= -github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= +github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= -github.com/googleapis/enterprise-certificate-proxy v0.2.4 h1:uGy6JWR/uMIILU8wbf+OkstIrNiMjGpEIyhx8f6W7s4= -github.com/googleapis/enterprise-certificate-proxy v0.2.4/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= +github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= @@ -621,7 +625,6 @@ github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMd github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= -github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= @@ -671,8 +674,9 @@ github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoD github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= @@ -745,7 +749,6 @@ github.com/klauspost/cpuid/v2 v2.2.4 h1:acbojRNwl3o09bUq+yDCtZFc1aiwaAAxtcn8YkZX github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -889,9 +892,9 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= @@ -944,6 +947,10 @@ github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= +github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= +github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= +github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= @@ -959,29 +966,29 @@ github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1 github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= +github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= +github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= -github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= +github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= -github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= +github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= +github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= -github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= +github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= +github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= @@ -1004,8 +1011,8 @@ github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= -github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= +github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= @@ -1051,6 +1058,18 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 h1:SpGay3w+nEwMpfVnbqOLH5gY52/foP8RE8UzTZ1pdSE= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1/go.mod h1:4UoMYEZOC0yN/sPGH76KPkkU7zgiEWYWL9vwmbnTJPE= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 h1:aFJWCqJMNjENlcleuuOkGAPH82y0yULBScfXcIEdS24= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1/go.mod h1:sEGXWArGqc3tVa+ekntsN65DmVbVeW+7lTKTjZF3/Fo= +go.opentelemetry.io/otel v1.21.0 h1:hzLeKBZEL7Okw2mGzZ0cc4k/A7Fta0uoPgaJCr8fsFc= +go.opentelemetry.io/otel v1.21.0/go.mod h1:QZzNPQPm1zLX4gZK4cMi+71eaorMSGT3A4znnUvNNEo= +go.opentelemetry.io/otel/metric v1.21.0 h1:tlYWfeo+Bocx5kLEloTjbcDwBuELRrIFxwdQ36PlJu4= +go.opentelemetry.io/otel/metric v1.21.0/go.mod h1:o1p3CA8nNHW8j5yuQLdc1eeqEaPfzug24uvsyIEJRWM= +go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= +go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= +go.opentelemetry.io/otel/trace v1.21.0 h1:WD9i5gzvoUPuXIXH24ZNBudiarZDKuekPqi/E8fpfLc= +go.opentelemetry.io/otel/trace v1.21.0/go.mod h1:LGbsEB0f9LGjN+OZaQQ26sohbOmiMR+BaslueVtS/qQ= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= @@ -1060,6 +1079,8 @@ go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= +go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= @@ -1077,14 +1098,11 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= -golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= -golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc= +golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1167,7 +1185,6 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= @@ -1175,7 +1192,6 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= @@ -1191,8 +1207,8 @@ golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1218,8 +1234,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= -golang.org/x/oauth2 v0.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4= -golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= +golang.org/x/oauth2 v0.15.0 h1:s8pnnxNVzjWyrvYdFUQq5llS1PX2zhPXmccZv99h7uQ= +golang.org/x/oauth2 v0.15.0/go.mod h1:q48ptWNTY5XWf+JNten23lcvHpLJ0ZSxF5ttTHKVCAM= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1235,8 +1251,8 @@ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= -golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= +golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1292,13 +1308,11 @@ golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1332,23 +1346,22 @@ golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= -golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/term v0.16.0 h1:m+B6fahuftsE9qjo0VWp2FW0mB3MTJvR0BaMQrq0pmE= +golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1369,6 +1382,8 @@ golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= +golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -1425,7 +1440,6 @@ golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= @@ -1494,8 +1508,8 @@ google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= -google.golang.org/api v0.128.0 h1:RjPESny5CnQRn9V6siglged+DZCgfu9l6mO9dkX9VOg= -google.golang.org/api v0.128.0/go.mod h1:Y611qgqaE92On/7g65MQgxYul3c0rEB894kniWLY750= +google.golang.org/api v0.155.0 h1:vBmGhCYs0djJttDNynWo44zosHlPvHmA0XiN2zP2DtA= +google.golang.org/api v0.155.0/go.mod h1:GI5qK5f40kCpHfPn6+YzGAByIKWv8ujFnmoWm7Igduk= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1503,8 +1517,9 @@ google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= @@ -1543,10 +1558,8 @@ google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= @@ -1613,12 +1626,12 @@ google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqw google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= -google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b h1:+YaDE2r2OG8t/z5qmsh7Y+XXwCbvadxxZ0YY6mTdrVA= -google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI= -google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a h1:myvhA4is3vrit1a6NZCWBIwN0kNEnX21DJOJX/NvIfI= -google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a/go.mod h1:SUBoKXbI1Efip18FClrQVGjWcyd0QZd8KkvdP34t7ww= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= +google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe h1:USL2DhxfgRchafRvt/wYyyQNzwgL7ZiURcozOE/Pkvo= +google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:cc8bqMqtv9gMOr0zHg2Vzff5ULhhL2IXP4sbcn32Dro= +google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 h1:x9PwdEgd11LgK+orcck69WVRo7DezSO4VUMPI4xpc8A= +google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014/go.mod h1:rbHMSEDyoYX62nRVLOCc4Qt1HbsdytAYoVwgjiOhF3I= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe h1:bQnxqljG/wqi4NTXu2+DJ3n7APcEA882QZ1JvhQAq9o= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -1660,8 +1673,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= -google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= +google.golang.org/grpc v1.61.0 h1:TOvOcuXn30kRao+gfcvsebNEa5iZIiLkisYEkf7R7o0= +google.golang.org/grpc v1.61.0/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -1679,8 +1692,8 @@ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/x/collection/client/cli/query.go b/x/collection/client/cli/query.go new file mode 100644 index 0000000000..0a207e2226 --- /dev/null +++ b/x/collection/client/cli/query.go @@ -0,0 +1,475 @@ +package cli + +import ( + "fmt" + + "github.com/spf13/cobra" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/version" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +const ( + FlagTokenID = "token-id" +) + +// NewQueryCmd returns the cli query commands for this module +func NewQueryCmd() *cobra.Command { + queryCmd := &cobra.Command{ + Use: collection.ModuleName, + Short: fmt.Sprintf("Querying commands for the %s module", collection.ModuleName), + Long: "", + DisableFlagParsing: true, + SuggestionsMinimumDistance: 2, + RunE: client.ValidateCmd, + } + + queryCmd.AddCommand( + NewQueryCmdBalances(), + NewQueryCmdNFTSupply(), + NewQueryCmdNFTMinted(), + NewQueryCmdNFTBurnt(), + NewQueryCmdContract(), + NewQueryCmdToken(), + NewQueryCmdTokenType(), + NewQueryCmdGranteeGrants(), + NewQueryCmdIsOperatorFor(), + NewQueryCmdHoldersByOperator(), + ) + + return queryCmd +} + +func NewQueryCmdBalances() *cobra.Command { + cmd := &cobra.Command{ + Use: "balances [contract-id] [address]", + Args: cobra.ExactArgs(2), + Short: "query for token balances by a given address", + Example: fmt.Sprintf(`$ %s query %s balances [contract-id] [address]`, version.AppName, collection.ModuleName), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + ac := clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + + contractID := args[0] + if err := collection.ValidateContractID(contractID); err != nil { + return err + } + + addr := args[1] + if _, err := ac.StringToBytes(addr); err != nil { + return err + } + + tokenID, err := cmd.Flags().GetString(FlagTokenID) + if err != nil { + return err + } + + queryClient := collection.NewQueryClient(clientCtx) + if len(tokenID) == 0 { + pageReq, err := client.ReadPageRequest(cmd.Flags()) + if err != nil { + return err + } + + req := &collection.QueryAllBalancesRequest{ + ContractId: contractID, + Address: addr, + Pagination: pageReq, + } + res, err := queryClient.AllBalances(cmd.Context(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + } + + if err := collection.ValidateTokenID(tokenID); err != nil { + return err + } + + req := &collection.QueryBalanceRequest{ + ContractId: contractID, + Address: addr, + TokenId: tokenID, + } + res, err := queryClient.Balance(cmd.Context(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + cmd.Flags().String(FlagTokenID, "", "Token ID to query for") + flags.AddPaginationFlagsToCmd(cmd, "all balances") + + return cmd +} + +func NewQueryCmdNFTSupply() *cobra.Command { + cmd := &cobra.Command{ + Use: "nft-supply [contract-id] [token-type]", + Args: cobra.ExactArgs(2), + Short: "query the supply of tokens", + Example: fmt.Sprintf(`$ %s query %s nft-supply [contract-id] [token-type]`, 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 + } + + tokenType := args[1] + if err := collection.ValidateClassID(tokenType); err != nil { + return err + } + + queryClient := collection.NewQueryClient(clientCtx) + req := &collection.QueryNFTSupplyRequest{ + ContractId: contractID, + TokenType: tokenType, + } + res, err := queryClient.NFTSupply(cmd.Context(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + +func NewQueryCmdNFTMinted() *cobra.Command { + cmd := &cobra.Command{ + Use: "nft-minted [contract-id] [token-type]", + Args: cobra.ExactArgs(2), + Short: "query the minted tokens of the class", + Example: fmt.Sprintf(`$ %s query %s nft-minted [contract-id] [token-type]`, 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 + } + + tokenType := args[1] + if err := collection.ValidateClassID(tokenType); err != nil { + return err + } + + queryClient := collection.NewQueryClient(clientCtx) + req := &collection.QueryNFTMintedRequest{ + ContractId: contractID, + TokenType: tokenType, + } + res, err := queryClient.NFTMinted(cmd.Context(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + +func NewQueryCmdNFTBurnt() *cobra.Command { + cmd := &cobra.Command{ + Use: "nft-burnt [contract-id] [token-type]", + Args: cobra.ExactArgs(2), + Short: "query the burnt tokens of the class", + Example: fmt.Sprintf(`$ %s query %s nft-burnt [contract-id] [token-type]`, 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 + } + + tokenType := args[1] + if err := collection.ValidateClassID(tokenType); err != nil { + return err + } + + queryClient := collection.NewQueryClient(clientCtx) + req := &collection.QueryNFTBurntRequest{ + ContractId: contractID, + TokenType: tokenType, + } + res, err := queryClient.NFTBurnt(cmd.Context(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + +func NewQueryCmdContract() *cobra.Command { + cmd := &cobra.Command{ + Use: "contract [contract-id]", + Args: cobra.ExactArgs(1), + Short: "query token metadata based on its id", + Example: fmt.Sprintf(`$ %s query %s contract [contract-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 + } + + queryClient := collection.NewQueryClient(clientCtx) + req := &collection.QueryContractRequest{ + ContractId: contractID, + } + res, err := queryClient.Contract(cmd.Context(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + +func NewQueryCmdTokenType() *cobra.Command { + cmd := &cobra.Command{ + Use: "token-type [contract-id] [token-type]", + Args: cobra.ExactArgs(2), + Short: "query token type", + Example: fmt.Sprintf(`$ %s query %s token-type [contract-id] [token-type]`, 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 + } + + classID := args[1] + if err := collection.ValidateClassID(classID); err != nil { + return err + } + + queryClient := collection.NewQueryClient(clientCtx) + req := &collection.QueryTokenTypeRequest{ + ContractId: contractID, + TokenType: classID, + } + res, err := queryClient.TokenType(cmd.Context(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + +func NewQueryCmdToken() *cobra.Command { + cmd := &cobra.Command{ + Use: "token [contract-id] [token-id]", + Args: cobra.ExactArgs(2), + Short: "query token metadata", + Example: fmt.Sprintf(`$ %s query %s token [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.QueryTokenRequest{ + ContractId: contractID, + TokenId: tokenID, + } + res, err := queryClient.Token(cmd.Context(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + +func NewQueryCmdGranteeGrants() *cobra.Command { + cmd := &cobra.Command{ + Use: "grantee-grants [contract-id] [grantee]", + Args: cobra.ExactArgs(2), + Short: "query grants on a given grantee", + Example: fmt.Sprintf(`$ %s query %s grantee-grants [contract-id] [grantee]`, version.AppName, collection.ModuleName), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + ac := clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + + contractID := args[0] + if err := collection.ValidateContractID(contractID); err != nil { + return err + } + + grantee := args[1] + if _, err := ac.StringToBytes(grantee); err != nil { + return err + } + + queryClient := collection.NewQueryClient(clientCtx) + req := &collection.QueryGranteeGrantsRequest{ + ContractId: contractID, + Grantee: grantee, + } + res, err := queryClient.GranteeGrants(cmd.Context(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + +func NewQueryCmdIsOperatorFor() *cobra.Command { + cmd := &cobra.Command{ + Use: "approved [contract-id] [operator] [holder]", + Args: cobra.ExactArgs(3), + Short: "query authorization on its operator and the token holder", + Example: fmt.Sprintf(`$ %s query %s approved [contract-id] [operator] [holder]`, version.AppName, collection.ModuleName), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + ac := clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + + contractID := args[0] + if err := collection.ValidateContractID(contractID); err != nil { + return err + } + + operator := args[1] + if _, err := ac.StringToBytes(operator); err != nil { + return err + } + + holder := args[2] + if _, err := ac.StringToBytes(holder); err != nil { + return err + } + + queryClient := collection.NewQueryClient(clientCtx) + req := &collection.QueryIsOperatorForRequest{ + ContractId: contractID, + Operator: operator, + Holder: holder, + } + res, err := queryClient.IsOperatorFor(cmd.Context(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + +func NewQueryCmdHoldersByOperator() *cobra.Command { + cmd := &cobra.Command{ + Use: "approvers [contract-id] [operator]", + Args: cobra.ExactArgs(2), + Short: "query all authorizations on a given operator", + Example: fmt.Sprintf(`$ %s query %s approvers [contract-id] [operator]`, version.AppName, collection.ModuleName), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + ac := clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + + contractID := args[0] + if err := collection.ValidateContractID(contractID); err != nil { + return err + } + + operator := args[1] + if _, err := ac.StringToBytes(operator); err != nil { + return err + } + + queryClient := collection.NewQueryClient(clientCtx) + pageReq, err := client.ReadPageRequest(cmd.Flags()) + if err != nil { + return err + } + req := &collection.QueryHoldersByOperatorRequest{ + ContractId: contractID, + Operator: operator, + Pagination: pageReq, + } + res, err := queryClient.HoldersByOperator(cmd.Context(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + flags.AddPaginationFlagsToCmd(cmd, "approvers") + return cmd +} diff --git a/x/collection/client/cli/tx.go b/x/collection/client/cli/tx.go new file mode 100644 index 0000000000..e531c153ad --- /dev/null +++ b/x/collection/client/cli/tx.go @@ -0,0 +1,574 @@ +package cli + +import ( + "fmt" + "strings" + + "github.com/spf13/cobra" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + "github.com/cosmos/cosmos-sdk/version" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +const ( + // common flags for the entities + FlagName = "name" + FlagMeta = "meta" + + // flag for contracts + FlagBaseImgURI = "base-img-uri" +) + +// NewTxCmd returns the transaction commands for this module +func NewTxCmd() *cobra.Command { + txCmd := &cobra.Command{ + Use: collection.ModuleName, + Short: fmt.Sprintf("%s transactions subcommands", collection.ModuleName), + DisableFlagParsing: true, + SuggestionsMinimumDistance: 2, + RunE: client.ValidateCmd, + } + + txCmd.AddCommand( + NewTxCmdSendNFT(), + NewTxCmdOperatorSendNFT(), + NewTxCmdCreateContract(), + NewTxCmdIssueNFT(), + NewTxCmdMintNFT(), + NewTxCmdGrantPermission(), + NewTxCmdRevokePermission(), + NewTxCmdAuthorizeOperator(), + NewTxCmdRevokeOperator(), + NewTxCmdModify(), + ) + + return txCmd +} + +func NewTxCmdSendNFT() *cobra.Command { + cmd := &cobra.Command{ + Use: "send-nft [contract-id] [from] [to] [token-id]", + Args: cobra.ExactArgs(4), + Short: "send non-fungible tokens", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s send-nft [contract-id] [from] [to] [token-id]`, 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 + } + ac := clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + if err = collection.ValidateContractID(args[0]); err != nil { + return err + } + _, err = ac.StringToBytes(args[1]) + if err != nil { + return err + } + + msg := &collection.MsgSendNFT{ + ContractId: args[0], + From: from, + To: args[2], + TokenIds: []string{args[3]}, + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + return cmd +} + +func NewTxCmdOperatorSendNFT() *cobra.Command { + cmd := &cobra.Command{ + Use: "operator-send-nft [contract-id] [operator] [from] [to] [token-id]", + Args: cobra.ExactArgs(5), + Short: "send tokens by operator", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s operator-send-nft [contract-id] [operator] [from] [to] [token-id]`, 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 + } + ac := clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + if err = collection.ValidateContractID(args[0]); err != nil { + return err + } + _, err = ac.StringToBytes(args[2]) + if err != nil { + return err + } + _, err = ac.StringToBytes(args[3]) + if err != nil { + return err + } + + msg := collection.MsgOperatorSendNFT{ + ContractId: args[0], + Operator: operator, + From: args[2], + To: args[3], + TokenIds: []string{args[4]}, + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + return cmd +} + +func NewTxCmdCreateContract() *cobra.Command { + cmd := &cobra.Command{ + Use: "create-contract [creator]", + Args: cobra.ExactArgs(1), + Short: "create a contract", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s create-contract [creator]`, version.AppName, collection.ModuleName), + ), + RunE: func(cmd *cobra.Command, args []string) error { + creator := args[0] + if err := cmd.Flags().Set(flags.FlagFrom, creator); 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 + } + + baseImgURI, err := cmd.Flags().GetString(FlagBaseImgURI) + if err != nil { + return err + } + + meta, err := cmd.Flags().GetString(FlagMeta) + if err != nil { + return err + } + + msg := collection.MsgCreateContract{ + Owner: creator, + Name: name, + Uri: baseImgURI, + Meta: meta, + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + cmd.Flags().String(FlagName, "", "set name") + cmd.Flags().String(FlagBaseImgURI, "", "set base-img-uri") + cmd.Flags().String(FlagMeta, "", "set meta") + + return cmd +} + +func NewTxCmdIssueNFT() *cobra.Command { + cmd := &cobra.Command{ + Use: "issue-nft [contract-id] [operator]", + Args: cobra.ExactArgs(2), + Short: "create a non-fungible token class", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s issue-nft [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 + } + + if err = collection.ValidateContractID(args[0]); 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 + } + + msg := collection.MsgIssueNFT{ + ContractId: args[0], + Owner: operator, + Name: name, + Meta: meta, + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + cmd.Flags().String(FlagName, "", "set name") + cmd.Flags().String(FlagMeta, "", "set meta") + + return cmd +} + +func NewTxCmdMintNFT() *cobra.Command { + cmd := &cobra.Command{ + Use: "mint-nft [contract-id] [operator] [to] [class-id]", + Args: cobra.ExactArgs(4), + Short: "mint non-fungible tokens", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s mint-nft [contract-id] [operator] [to] [class-id]`, 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 + } + ac := clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + + if err = collection.ValidateContractID(args[0]); 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 + } + + _, err = ac.StringToBytes(args[2]) + if err != nil { + return err + } + + params := []collection.MintNFTParam{{ + TokenType: args[3], + Name: name, + Meta: meta, + }} + + msg := collection.MsgMintNFT{ + ContractId: args[0], + From: args[1], + To: args[2], + Params: params, + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + cmd.Flags().String(FlagName, "", "set name") + cmd.Flags().String(FlagMeta, "", "set meta") + cmd.MarkFlagRequired(FlagName) + + return cmd +} + +func NewTxCmdBurnNFT() *cobra.Command { + cmd := &cobra.Command{ + Use: "burn-nft [contract-id] [from] [token-id]", + Args: cobra.ExactArgs(3), + Short: "burn tokens", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s burn-nft [contract-id] [from] [token-id]`, 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 + } + if err = collection.ValidateContractID(args[0]); err != nil { + return err + } + + msg := collection.MsgBurnNFT{ + ContractId: args[0], + From: from, + TokenIds: []string{args[2]}, + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + return cmd +} + +func NewTxCmdOperatorBurnNFT() *cobra.Command { + cmd := &cobra.Command{ + Use: "operator-burn-nft [contract-id] [operator] [from] [token-id]", + Args: cobra.ExactArgs(4), + Short: "burn tokens by a given operator", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s operator-burn-nft [contract-id] [operator] [from] [token-id]`, 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 + } + ac := clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + if err = collection.ValidateContractID(args[0]); err != nil { + return err + } + _, err = ac.StringToBytes(args[2]) + if err != nil { + return err + } + + msg := collection.MsgOperatorBurnNFT{ + ContractId: args[0], + Operator: operator, + From: args[2], + TokenIds: []string{args[3]}, + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + return cmd +} + +func NewTxCmdModify() *cobra.Command { + cmd := &cobra.Command{ + Use: "modify [contract-id] [operator] [token-type] [token-index] [key] [value]", + Args: cobra.ExactArgs(6), + Short: "modify", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s modify [contract-id] [operator] [token-type] [token-index] [key] [value]`, 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 + } + if err = collection.ValidateContractID(args[0]); err != nil { + return err + } + + changes := []collection.Attribute{{ + Key: args[4], + Value: args[5], + }} + msg := collection.MsgModify{ + ContractId: args[0], + Owner: args[1], + TokenType: args[2], + TokenIndex: args[3], + Changes: changes, + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + return cmd +} + +func NewTxCmdGrantPermission() *cobra.Command { + cmd := &cobra.Command{ + Use: "grant-permission [contract-id] [granter] [grantee] [permission]", + Args: cobra.ExactArgs(4), + Short: "grant a permission for mint, burn, modify and issue", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s grant-permission [contract-id] [granter] [grantee] [permission]`, version.AppName, collection.ModuleName), + ), + RunE: func(cmd *cobra.Command, args []string) error { + granter := args[1] + if err := cmd.Flags().Set(flags.FlagFrom, granter); err != nil { + return err + } + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + ac := clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + if err = collection.ValidateContractID(args[0]); err != nil { + return err + } + _, err = ac.StringToBytes(args[2]) + if err != nil { + return err + } + + msg := collection.MsgGrantPermission{ + ContractId: args[0], + From: granter, + To: args[2], + Permission: args[3], + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + return cmd +} + +func NewTxCmdRevokePermission() *cobra.Command { + cmd := &cobra.Command{ + Use: "revoke-permission [contract-id] [grantee] [permission]", + Args: cobra.ExactArgs(3), + Short: "revoke a permission by a given grantee", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s revoke-permission [contract-id] [grantee] [permission]`, version.AppName, collection.ModuleName), + ), + RunE: func(cmd *cobra.Command, args []string) error { + grantee := args[1] + if err := cmd.Flags().Set(flags.FlagFrom, grantee); err != nil { + return err + } + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + if err = collection.ValidateContractID(args[0]); err != nil { + return err + } + + msg := collection.MsgRevokePermission{ + ContractId: args[0], + From: grantee, + Permission: args[2], + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + return cmd +} + +func NewTxCmdAuthorizeOperator() *cobra.Command { + cmd := &cobra.Command{ + Use: "authorize-operator [contract-id] [holder] [operator]", + Args: cobra.ExactArgs(3), + Short: "authorize operator to manipulate tokens of holder", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s authorize-operator [contract-id] [holder] [operator]`, version.AppName, collection.ModuleName), + ), + RunE: func(cmd *cobra.Command, args []string) error { + holder := args[1] + if err := cmd.Flags().Set(flags.FlagFrom, holder); err != nil { + return err + } + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + if err = collection.ValidateContractID(args[0]); err != nil { + return err + } + ac := clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + _, err = ac.StringToBytes(args[2]) + if err != nil { + return err + } + + msg := collection.MsgAuthorizeOperator{ + ContractId: args[0], + Holder: holder, + Operator: args[2], + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + return cmd +} + +func NewTxCmdRevokeOperator() *cobra.Command { + cmd := &cobra.Command{ + Use: "revoke-operator [contract-id] [holder] [operator]", + Args: cobra.ExactArgs(3), + Short: "revoke operator", + Long: strings.TrimSpace(fmt.Sprintf(` + $ %s tx %s revoke-operator [contract-id] [holder] [operator]`, version.AppName, collection.ModuleName), + ), + RunE: func(cmd *cobra.Command, args []string) error { + holder := args[1] + if err := cmd.Flags().Set(flags.FlagFrom, holder); err != nil { + return err + } + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + ac := clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + if err = collection.ValidateContractID(args[0]); err != nil { + return err + } + _, err = ac.StringToBytes(args[2]) + if err != nil { + return err + } + + msg := collection.MsgRevokeOperator{ + ContractId: args[0], + Holder: holder, + Operator: args[2], + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + return cmd +} diff --git a/x/collection/client/cli/tx_test.go b/x/collection/client/cli/tx_test.go new file mode 100644 index 0000000000..de58c7fdeb --- /dev/null +++ b/x/collection/client/cli/tx_test.go @@ -0,0 +1,772 @@ +package cli_test + +import ( + "fmt" + "io" + "testing" + + abci "github.com/cometbft/cometbft/abci/types" + rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" + "github.com/stretchr/testify/suite" + + sdkmath "cosmossdk.io/math" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/crypto/keyring" + "github.com/cosmos/cosmos-sdk/testutil" + clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" + sdk "github.com/cosmos/cosmos-sdk/types" + testutilmod "github.com/cosmos/cosmos-sdk/types/module/testutil" + + "github.com/Finschia/finschia-sdk/x/collection" + "github.com/Finschia/finschia-sdk/x/collection/client/cli" + collectionmodule "github.com/Finschia/finschia-sdk/x/collection/module" +) + +type CLITestSuite struct { + suite.Suite + + kr keyring.Keyring + encCfg testutilmod.TestEncodingConfig + baseCtx client.Context + clientCtx client.Context + commonFlags []string + + vendor string + operator string + customer string + stranger string + + contractID string + classID string + tokenIdx string +} + +func TestCLITestSuite(t *testing.T) { + suite.Run(t, new(CLITestSuite)) +} + +func (s *CLITestSuite) SetupSuite() { + s.encCfg = testutilmod.MakeTestEncodingConfig(collectionmodule.AppModuleBasic{}) + s.kr = keyring.NewInMemory(s.encCfg.Codec) + s.baseCtx = client.Context{}. + WithKeyring(s.kr). + WithTxConfig(s.encCfg.TxConfig). + WithCodec(s.encCfg.Codec). + WithInterfaceRegistry(s.encCfg.InterfaceRegistry). + WithClient(clitestutil.MockCometRPC{Client: rpcclientmock.Client{}}). + WithAccountRetriever(client.MockAccountRetriever{}). + WithOutput(io.Discard). + WithChainID("test-chain") + + ctxGen := func() client.Context { + bz, _ := s.encCfg.Codec.Marshal(&sdk.TxResponse{}) + c := clitestutil.NewMockCometRPC(abci.ResponseQuery{ + Value: bz, + }) + return s.baseCtx.WithClient(c) + } + s.clientCtx = ctxGen() + + s.commonFlags = []string{ + fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), + fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), + fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin("stake", sdkmath.NewInt(10))).String()), + fmt.Sprintf("--%s=test-chain", flags.FlagChainID), + } + + ac := s.clientCtx.InterfaceRegistry.SigningContext().AddressCodec() + val := testutil.CreateKeyringAccounts(s.T(), s.kr, 6) + s.vendor, _ = ac.BytesToString(val[0].Address) + s.operator, _ = ac.BytesToString(val[1].Address) + s.customer, _ = ac.BytesToString(val[2].Address) + s.stranger, _ = ac.BytesToString(val[3].Address) + + s.contractID = "678c146a" + s.classID = "10000001" + s.tokenIdx = "00000001" +} + +func (s *CLITestSuite) TestNewTxCmdSendNFT() { + tokenID := collection.NewNFTID(s.classID, 1) + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.vendor, + s.customer, + tokenID, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.stranger, + s.customer, + tokenID, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.stranger, + s.customer, + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.stranger, + s.customer, + tokenID, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdSendNFT() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + resp := new(sdk.TxResponse) + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), resp)) + }) + } +} + +func (s *CLITestSuite) TestNewTxCmdOperatorSendNFT() { + tokenID := collection.NewNFTID(s.classID, 1) + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + s.vendor, + s.customer, + tokenID, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + s.vendor, + s.customer, + tokenID, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.operator, + s.vendor, + s.customer, + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.operator, + s.vendor, + s.customer, + tokenID, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdOperatorSendNFT() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + resp := new(sdk.TxResponse) + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), resp)) + }) + } +} + +func (s *CLITestSuite) TestNewTxCmdCreateContract() { + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.vendor, + fmt.Sprintf("--%s=%s", cli.FlagName, "arctic fox"), + fmt.Sprintf("--%s=%s", cli.FlagMeta, "nft metadata"), + fmt.Sprintf("--%s=%s", cli.FlagBaseImgURI, "contract base img uri"), + }, + true, + }, + "extra args": { + []string{ + s.vendor, + "extra", + }, + false, + }, + "not enough args": { + []string{}, + false, + }, + "invalid creator": { + []string{ + "", + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdCreateContract() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + resp := new(sdk.TxResponse) + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), resp)) + }) + } +} + +func (s *CLITestSuite) TestNewTxCmdIssueNFT() { + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.vendor, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.vendor, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.vendor, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdIssueNFT() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + resp := new(sdk.TxResponse) + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), resp)) + }) + } +} + +func (s *CLITestSuite) TestNewTxCmdMintNFT() { + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.vendor, + s.customer, + s.classID, + fmt.Sprintf("--%s=%s", cli.FlagName, "arctic fox"), + fmt.Sprintf("--%s=%s", cli.FlagMeta, "nft metadata"), + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.vendor, + s.customer, + s.classID, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.vendor, + s.customer, + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.vendor, + s.customer, + s.classID, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdMintNFT() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + resp := new(sdk.TxResponse) + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), resp)) + }) + } +} + +func (s *CLITestSuite) TestNewTxCmdBurnNFT() { + tokenID := collection.NewNFTID(s.classID, 2) + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.customer, + tokenID, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.customer, + tokenID, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.customer, + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.customer, + tokenID, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdBurnNFT() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + resp := new(sdk.TxResponse) + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), resp)) + }) + } +} + +func (s *CLITestSuite) TestNewTxCmdOperatorOperatorBurnNFT() { + tokenID := collection.NewNFTID(s.classID, 1) + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + s.customer, + tokenID, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + s.customer, + tokenID, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.operator, + s.customer, + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.operator, + s.customer, + tokenID, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdOperatorBurnNFT() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + resp := new(sdk.TxResponse) + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), resp)) + }) + } +} + +func (s *CLITestSuite) TestNewTxCmdModify() { + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + s.classID, + s.tokenIdx, + collection.AttributeKeyName.String(), + "tibetian fox", + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + s.classID, + s.tokenIdx, + collection.AttributeKeyName.String(), + "tibetian fox", + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.operator, + s.classID, + s.tokenIdx, + collection.AttributeKeyName.String(), + }, + false, + }, + "invalid contract id": { + []string{ + "", + s.operator, + s.classID, + s.tokenIdx, + collection.AttributeKeyName.String(), + "tibetian fox", + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdModify() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + resp := new(sdk.TxResponse) + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), resp)) + }) + } +} + +func (s *CLITestSuite) TestNewTxCmdGrantPermission() { + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.operator, + s.vendor, + collection.LegacyPermissionMint.String(), + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.operator, + s.vendor, + collection.LegacyPermissionMint.String(), + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.operator, + s.vendor, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdGrantPermission() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + resp := new(sdk.TxResponse) + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), resp)) + }) + } +} + +func (s *CLITestSuite) TestNewTxCmdRevokePermission() { + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.vendor, + collection.LegacyPermissionModify.String(), + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.vendor, + collection.LegacyPermissionModify.String(), + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.vendor, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdRevokePermission() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + var res sdk.TxResponse + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) + }) + } +} + +func (s *CLITestSuite) TestNewTxCmdAuthorizeOperator() { + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.customer, + s.operator, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.customer, + s.operator, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.customer, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdAuthorizeOperator() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + resp := new(sdk.TxResponse) + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), resp)) + }) + } +} + +func (s *CLITestSuite) TestNewTxCmdRevokeOperator() { + testCases := map[string]struct { + args []string + valid bool + }{ + "valid transaction": { + []string{ + s.contractID, + s.customer, + s.operator, + }, + true, + }, + "extra args": { + []string{ + s.contractID, + s.customer, + s.operator, + "extra", + }, + false, + }, + "not enough args": { + []string{ + s.contractID, + s.customer, + }, + false, + }, + } + + for name, tc := range testCases { + tc := tc + + s.Run(name, func() { + cmd := cli.NewTxCmdRevokeOperator() + out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, append(tc.args, s.commonFlags...)) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + + resp := new(sdk.TxResponse) + s.Require().NoError(s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), resp)) + }) + } +} diff --git a/x/collection/codec.go b/x/collection/codec.go new file mode 100644 index 0000000000..4dafaf0675 --- /dev/null +++ b/x/collection/codec.go @@ -0,0 +1,57 @@ +package collection + +import ( + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/codec/legacy" + "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/msgservice" +) + +// RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec +func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + 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, &MsgIssueNFT{}, "lbm-sdk/MsgIssueNFT") + legacy.RegisterAminoMsg(cdc, &MsgMintNFT{}, "lbm-sdk/MsgMintNFT") + 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` + legacy.RegisterAminoMsg(cdc, &MsgGrantPermission{}, "lbm-sdk/collection/MsgGrantPermission") // Changed msgName due to conflict with `x/token` + legacy.RegisterAminoMsg(cdc, &MsgRevokePermission{}, "lbm-sdk/collection/MsgRevokePermission") // Changed msgName due to conflict with `x/token` +} + +func RegisterInterfaces(registry types.InterfaceRegistry) { + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgCreateContract{}, + &MsgIssueNFT{}, + &MsgMintNFT{}, + &MsgSendNFT{}, + &MsgOperatorSendNFT{}, + &MsgAuthorizeOperator{}, + &MsgRevokeOperator{}, + &MsgBurnNFT{}, + &MsgOperatorBurnNFT{}, + &MsgModify{}, + &MsgGrantPermission{}, + &MsgRevokePermission{}, + ) + + registry.RegisterInterface( + "lbm.collection.v1.TokenClass", + (*TokenClass)(nil), + &FTClass{}, + &NFTClass{}, + ) + + registry.RegisterInterface( + "lbm.collection.v1.Token", + (*Token)(nil), + &OwnerNFT{}, + ) + + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) +} diff --git a/x/collection/collection.go b/x/collection/collection.go new file mode 100644 index 0000000000..e5ffef78ee --- /dev/null +++ b/x/collection/collection.go @@ -0,0 +1,267 @@ +package collection + +import ( + "fmt" + "regexp" + "strings" + + "github.com/cosmos/gogoproto/proto" + + "cosmossdk.io/math" + + codectypes "github.com/cosmos/cosmos-sdk/codec/types" +) + +const ( + prefixLegacyPermission = "LEGACY_PERMISSION_" +) + +// Deprecated: use Permission. +func LegacyPermissionFromString(name string) LegacyPermission { + legacyPermissionName := prefixLegacyPermission + strings.ToUpper(name) + return LegacyPermission(LegacyPermission_value[legacyPermissionName]) +} + +func (x LegacyPermission) String() string { + lenPrefix := len(prefixLegacyPermission) + return strings.ToLower(LegacyPermission_name[int32(x)][lenPrefix:]) +} + +func DefaultNextClassIDs(contractID string) NextClassIDs { + return NextClassIDs{ + ContractId: contractID, + NonFungible: math.NewUint(1 << 28).Incr(), // "10000000 + 1" + } +} + +func validateParams(_ Params) error { + return nil +} + +type TokenClass interface { + proto.Message + + GetId() string + SetID(ids *NextClassIDs) + + SetName(name string) + + SetMeta(meta string) + + ValidateBasic() error +} + +func TokenClassToAny(class TokenClass) *codectypes.Any { + msg := class.(proto.Message) + + anyv, err := codectypes.NewAnyWithValue(msg) + if err != nil { + panic(err) + } + + return anyv +} + +func TokenClassFromAny(any *codectypes.Any) TokenClass { + class := any.GetCachedValue().(TokenClass) + return class +} + +func TokenClassUnpackInterfaces(any *codectypes.Any, unpacker codectypes.AnyUnpacker) error { + var class TokenClass + return unpacker.UnpackAny(any, &class) +} + +// ---------------------------------------------------------------------------- +// Deprecated: FTClass +var _ TokenClass = (*FTClass)(nil) + +func (c *FTClass) SetID(_ *NextClassIDs) {} + +func (c *FTClass) SetName(_ string) {} + +func (c *FTClass) SetMeta(_ string) {} + +func (c FTClass) ValidateBasic() error { return nil } + +// ---------------------------------------------------------------------------- +// NFTClass +var _ TokenClass = (*NFTClass)(nil) + +func (c *NFTClass) SetID(ids *NextClassIDs) { + id := ids.NonFungible + ids.NonFungible = id.Incr() + c.Id = fmt.Sprintf("%08x", id.Uint64()) +} + +func (c *NFTClass) SetName(name string) { + c.Name = name +} + +func (c *NFTClass) SetMeta(meta string) { + c.Meta = meta +} + +func (c NFTClass) ValidateBasic() error { + if err := ValidateClassID(c.Id); err != nil { + return err + } + + if err := ValidateName(c.Name); err != nil { + return err + } + if err := ValidateMeta(c.Meta); err != nil { + return err + } + + return nil +} + +// ---------------------------------------------------------------------------- +// Coin + +func NewNFTCoin(classID string, number int) Coin { + return NewCoin(NewNFTID(classID, number), math.OneInt()) +} + +func NewCoin(id string, amount math.Int) Coin { + coin := Coin{ + TokenId: id, + Amount: amount, + } + + if err := coin.ValidateBasic(); err != nil { + panic(err) + } + + return coin +} + +func (c Coin) String() string { + return fmt.Sprintf("%s:%s", c.TokenId, c.Amount) +} + +func (c Coin) ValidateBasic() error { + if err := ValidateTokenID(c.TokenId); err != nil { + return err + } + + if c.isNil() || !c.isPositive() { + return fmt.Errorf("invalid amount: %v", c.Amount) + } + + if err := ValidateNFTID(c.TokenId); err == nil { + if !c.Amount.Equal(math.OneInt()) { + return fmt.Errorf("duplicate non fungible tokens") + } + } + + return nil +} + +func (c Coin) isPositive() bool { + return c.Amount.IsPositive() +} + +func (c Coin) isNil() bool { + return c.Amount.IsNil() +} + +var reDecCoin = regexp.MustCompile(fmt.Sprintf(`^(%s%s):([[:digit:]]+)$`, patternClassID, patternAll)) + +func ParseCoin(coinStr string) (*Coin, error) { + coinStr = strings.TrimSpace(coinStr) + + matches := reDecCoin.FindStringSubmatch(coinStr) + if matches == nil { + return nil, fmt.Errorf("invalid coin expression: %s", coinStr) + } + + id, amountStr := matches[1], matches[2] + + amount, ok := math.NewIntFromString(amountStr) + if !ok { + return nil, fmt.Errorf("failed to parse coin amount: %s", amountStr) + } + + coin := NewCoin(id, amount) + return &coin, nil +} + +// ---------------------------------------------------------------------------- +// Coins +type Coins []Coin + +func NewCoins(coins ...Coin) Coins { + newCoins := Coins(coins) + if err := newCoins.ValidateBasic(); err != nil { + panic(fmt.Errorf("invalid coin %s: %w", newCoins, err)) + } + + return newCoins +} + +func (coins Coins) String() string { + if len(coins) == 0 { + return "" + } else if len(coins) == 1 { + return coins[0].String() + } + + var out strings.Builder + for _, coin := range coins[:len(coins)-1] { + out.WriteString(coin.String()) + out.WriteByte(',') + } + out.WriteString(coins[len(coins)-1].String()) + return out.String() +} + +func (coins Coins) ValidateBasic() error { + if len(coins) == 0 { + return fmt.Errorf("empty coins") + } + + seenIDs := map[string]bool{} + for _, coin := range coins { + if seenIDs[coin.TokenId] { + return fmt.Errorf("duplicate id %s", coin.TokenId) + } + seenIDs[coin.TokenId] = true + + if err := coin.ValidateBasic(); err != nil { + return fmt.Errorf("invalid coin %s: %w", coin.TokenId, err) + } + } + + return nil +} + +func ParseCoins(coinsStr string) (Coins, error) { + coinsStr = strings.TrimSpace(coinsStr) + if len(coinsStr) == 0 { + return nil, fmt.Errorf("invalid string for coins") + } + + coinStrs := strings.Split(coinsStr, ",") + coins := make(Coins, len(coinStrs)) + for i, coinStr := range coinStrs { + coin, err := ParseCoin(coinStr) + if err != nil { + return nil, err + } + + coins[i] = *coin + } + + return NewCoins(coins...), nil +} + +type Token interface { + proto.Message +} + +func TokenFromAny(any *codectypes.Any) Token { + class := any.GetCachedValue().(Token) + return class +} diff --git a/x/collection/collection.pb.go b/x/collection/collection.pb.go new file mode 100644 index 0000000000..a39d5f83af --- /dev/null +++ b/x/collection/collection.pb.go @@ -0,0 +1,3100 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lbm/collection/v1/collection.proto + +package collection + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Permission enumerates the valid permissions on a contract. +type Permission int32 + +const ( + // unspecified defines the default permission which is invalid. + PermissionUnspecified Permission = 0 + // PERMISSION_ISSUE defines a permission to create a token class. + PermissionIssue Permission = 1 + // PERMISSION_MODIFY defines a permission to modify a contract. + PermissionModify Permission = 2 + // PERMISSION_MINT defines a permission to mint tokens of a contract. + PermissionMint Permission = 3 + // PERMISSION_BURN defines a permission to burn tokens of a contract. + PermissionBurn Permission = 4 +) + +var Permission_name = map[int32]string{ + 0: "PERMISSION_UNSPECIFIED", + 1: "PERMISSION_ISSUE", + 2: "PERMISSION_MODIFY", + 3: "PERMISSION_MINT", + 4: "PERMISSION_BURN", +} + +var Permission_value = map[string]int32{ + "PERMISSION_UNSPECIFIED": 0, + "PERMISSION_ISSUE": 1, + "PERMISSION_MODIFY": 2, + "PERMISSION_MINT": 3, + "PERMISSION_BURN": 4, +} + +func (x Permission) String() string { + return proto.EnumName(Permission_name, int32(x)) +} + +func (Permission) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{0} +} + +// Deprecated: use Permission +// +// LegacyPermission enumerates the valid permissions on a contract. +type LegacyPermission int32 + +const ( + // unspecified defines the default permission which is invalid. + LegacyPermissionUnspecified LegacyPermission = 0 + // issue defines a permission to create a token class. + LegacyPermissionIssue LegacyPermission = 1 + // modify defines a permission to modify a contract. + LegacyPermissionModify LegacyPermission = 2 + // mint defines a permission to mint tokens of a contract. + LegacyPermissionMint LegacyPermission = 3 + // burn defines a permission to burn tokens of a contract. + LegacyPermissionBurn LegacyPermission = 4 +) + +var LegacyPermission_name = map[int32]string{ + 0: "LEGACY_PERMISSION_UNSPECIFIED", + 1: "LEGACY_PERMISSION_ISSUE", + 2: "LEGACY_PERMISSION_MODIFY", + 3: "LEGACY_PERMISSION_MINT", + 4: "LEGACY_PERMISSION_BURN", +} + +var LegacyPermission_value = map[string]int32{ + "LEGACY_PERMISSION_UNSPECIFIED": 0, + "LEGACY_PERMISSION_ISSUE": 1, + "LEGACY_PERMISSION_MODIFY": 2, + "LEGACY_PERMISSION_MINT": 3, + "LEGACY_PERMISSION_BURN": 4, +} + +func (LegacyPermission) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{1} +} + +// Params defines the parameters for the collection module. +type Params struct { +} + +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +// Contract defines the information of the contract for the collection. +type Contract struct { + // contract_id defines the unique identifier of the contract. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // name defines the human-readable name of the contract. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the contract. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + // uri for the contract image stored off chain. + Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` +} + +func (m *Contract) Reset() { *m = Contract{} } +func (m *Contract) String() string { return proto.CompactTextString(m) } +func (*Contract) ProtoMessage() {} +func (*Contract) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{1} +} +func (m *Contract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Contract.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 *Contract) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contract.Merge(m, src) +} +func (m *Contract) XXX_Size() int { + return m.Size() +} +func (m *Contract) XXX_DiscardUnknown() { + xxx_messageInfo_Contract.DiscardUnknown(m) +} + +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. + // Note: token id of the fungible token would be `id` + `00000000`. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // name defines the human-readable name of the token class. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token class. + 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 class is allowed to mint or burn its tokens. + Mintable bool `protobuf:"varint,5,opt,name=mintable,proto3" json:"mintable,omitempty"` +} + +func (m *FTClass) Reset() { *m = FTClass{} } +func (m *FTClass) String() string { return proto.CompactTextString(m) } +func (*FTClass) ProtoMessage() {} +func (*FTClass) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{2} +} +func (m *FTClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FTClass.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 *FTClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_FTClass.Merge(m, src) +} +func (m *FTClass) XXX_Size() int { + return m.Size() +} +func (m *FTClass) XXX_DiscardUnknown() { + xxx_messageInfo_FTClass.DiscardUnknown(m) +} + +var xxx_messageInfo_FTClass proto.InternalMessageInfo + +func (m *FTClass) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *FTClass) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *FTClass) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +func (m *FTClass) GetDecimals() int32 { + if m != nil { + return m.Decimals + } + return 0 +} + +func (m *FTClass) GetMintable() bool { + if m != nil { + return m.Mintable + } + return false +} + +// NFTClass defines the class of non-fungible token. +// +// Since: 0.46.0 (finschia) +type NFTClass struct { + // id defines the unique identifier of the token class. + // Note: size of the class id is 8 in length. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // name defines the human-readable name of the token class. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token class. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (m *NFTClass) Reset() { *m = NFTClass{} } +func (m *NFTClass) String() string { return proto.CompactTextString(m) } +func (*NFTClass) ProtoMessage() {} +func (*NFTClass) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{3} +} +func (m *NFTClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTClass.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 *NFTClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTClass.Merge(m, src) +} +func (m *NFTClass) XXX_Size() int { + return m.Size() +} +func (m *NFTClass) XXX_DiscardUnknown() { + xxx_messageInfo_NFTClass.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTClass proto.InternalMessageInfo + +func (m *NFTClass) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *NFTClass) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTClass) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +// NFT defines the information of non-fungible token. +// +// Since: 0.46.0 (finschia) +type NFT struct { + // token id defines the unique identifier of the token. + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // name defines the human-readable name of the token. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token. + Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (m *NFT) Reset() { *m = NFT{} } +func (m *NFT) String() string { return proto.CompactTextString(m) } +func (*NFT) ProtoMessage() {} +func (*NFT) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{4} +} +func (m *NFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFT.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 *NFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFT.Merge(m, src) +} +func (m *NFT) XXX_Size() int { + return m.Size() +} +func (m *NFT) XXX_DiscardUnknown() { + xxx_messageInfo_NFT.DiscardUnknown(m) +} + +var xxx_messageInfo_NFT proto.InternalMessageInfo + +// Deprecated: use NFT +// +// OwnerNFT defines the information of non-fungible token. +type OwnerNFT struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // id defines the unique identifier of the 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 token. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` + // owner of the token. + Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *OwnerNFT) Reset() { *m = OwnerNFT{} } +func (m *OwnerNFT) String() string { return proto.CompactTextString(m) } +func (*OwnerNFT) ProtoMessage() {} +func (*OwnerNFT) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{5} +} +func (m *OwnerNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OwnerNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OwnerNFT.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 *OwnerNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_OwnerNFT.Merge(m, src) +} +func (m *OwnerNFT) XXX_Size() int { + return m.Size() +} +func (m *OwnerNFT) XXX_DiscardUnknown() { + xxx_messageInfo_OwnerNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_OwnerNFT proto.InternalMessageInfo + +// Deprecated: use TokenClass +// +// TokenType defines the information of token type. +// It represents a NFTClass whose class_id is token_type. +// +// Note: There is no TokenType instance for FTClass. +type TokenType struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token type defines the unique identifier of the token type. + // the format of the value is identical to that of class_id. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // name defines the human-readable name of the token type. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // meta is a brief description of the token type. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` +} + +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{6} +} +func (m *TokenType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenType.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 *TokenType) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenType.Merge(m, src) +} +func (m *TokenType) XXX_Size() int { + return m.Size() +} +func (m *TokenType) XXX_DiscardUnknown() { + xxx_messageInfo_TokenType.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenType proto.InternalMessageInfo + +// Coin defines a token with a token id and an amount. +type Coin struct { + // token id associated with the token. + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // amount of the token. + Amount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +} + +func (m *Coin) Reset() { *m = Coin{} } +func (*Coin) ProtoMessage() {} +func (*Coin) Descriptor() ([]byte, []int) { + return fileDescriptor_bb15fea9f4c37044, []int{7} +} +func (m *Coin) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Coin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Coin.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 *Coin) XXX_Merge(src proto.Message) { + xxx_messageInfo_Coin.Merge(m, src) +} +func (m *Coin) XXX_Size() int { + return m.Size() +} +func (m *Coin) XXX_DiscardUnknown() { + xxx_messageInfo_Coin.DiscardUnknown(m) +} + +var xxx_messageInfo_Coin proto.InternalMessageInfo + +// Grant defines permission given to a grantee. +// +// Since: 0.46.0 (finschia) +type Grant struct { + // address of the grantee. + Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` + // permission on the contract. + Permission Permission `protobuf:"varint,2,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` +} + +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{8} +} +func (m *Grant) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Grant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Grant.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 *Grant) XXX_Merge(src proto.Message) { + xxx_messageInfo_Grant.Merge(m, src) +} +func (m *Grant) XXX_Size() int { + return m.Size() +} +func (m *Grant) XXX_DiscardUnknown() { + xxx_messageInfo_Grant.DiscardUnknown(m) +} + +var xxx_messageInfo_Grant proto.InternalMessageInfo + +// Authorization defines an authorization given to the operator on tokens of the holder. +// +// Since: 0.46.0 (finschia) +type Authorization struct { + // address of the holder which authorizes the manipulation of its tokens. + Holder string `protobuf:"bytes,1,opt,name=holder,proto3" json:"holder,omitempty"` + // address of the operator which the authorization is granted to. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` +} + +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{9} +} +func (m *Authorization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Authorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Authorization.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 *Authorization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Authorization.Merge(m, src) +} +func (m *Authorization) XXX_Size() int { + return m.Size() +} +func (m *Authorization) XXX_DiscardUnknown() { + xxx_messageInfo_Authorization.DiscardUnknown(m) +} + +var xxx_messageInfo_Authorization proto.InternalMessageInfo + +// Attribute defines a key and value of the attribute. +// +// Since: 0.46.0 (finschia) +type Attribute struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +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{10} +} +func (m *Attribute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Attribute.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 *Attribute) XXX_Merge(src proto.Message) { + xxx_messageInfo_Attribute.Merge(m, src) +} +func (m *Attribute) XXX_Size() int { + return m.Size() +} +func (m *Attribute) XXX_DiscardUnknown() { + xxx_messageInfo_Attribute.DiscardUnknown(m) +} + +var xxx_messageInfo_Attribute proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("lbm.collection.v1.Permission", Permission_name, Permission_value) + proto.RegisterEnum("lbm.collection.v1.LegacyPermission", LegacyPermission_name, LegacyPermission_value) + proto.RegisterType((*Params)(nil), "lbm.collection.v1.Params") + proto.RegisterType((*Contract)(nil), "lbm.collection.v1.Contract") + proto.RegisterType((*FTClass)(nil), "lbm.collection.v1.FTClass") + 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((*TokenType)(nil), "lbm.collection.v1.TokenType") + proto.RegisterType((*Coin)(nil), "lbm.collection.v1.Coin") + proto.RegisterType((*Grant)(nil), "lbm.collection.v1.Grant") + proto.RegisterType((*Authorization)(nil), "lbm.collection.v1.Authorization") + proto.RegisterType((*Attribute)(nil), "lbm.collection.v1.Attribute") +} + +func init() { + proto.RegisterFile("lbm/collection/v1/collection.proto", fileDescriptor_bb15fea9f4c37044) +} + +var fileDescriptor_bb15fea9f4c37044 = []byte{ + // 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 { + if that == nil { + return this == nil + } + + that1, ok := that.(*Coin) + if !ok { + that2, ok := that.(Coin) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TokenId != that1.TokenId { + return false + } + if !this.Amount.Equal(that1.Amount) { + return false + } + return true +} +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Contract) 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 *Contract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Contract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x22 + } + 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] = 0x1a + } + 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] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FTClass) 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 *FTClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FTClass) 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] = 0x28 + } + if m.Decimals != 0 { + i = encodeVarintCollection(dAtA, i, uint64(m.Decimals)) + i-- + dAtA[i] = 0x20 + } + 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] = 0x1a + } + 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] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTClass) 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 *NFTClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintCollection(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 = encodeVarintCollection(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFT) 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 *NFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintCollection(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 = encodeVarintCollection(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + 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] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OwnerNFT) 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 *OwnerNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OwnerNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x2a + } + 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) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TokenType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = 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.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintCollection(dAtA, i, uint64(len(m.TokenType))) + 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 *Coin) 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 *Coin) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Coin) 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 = encodeVarintCollection(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + 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] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Grant) 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 *Grant) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Grant) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Permission != 0 { + i = encodeVarintCollection(dAtA, i, uint64(m.Permission)) + i-- + dAtA[i] = 0x10 + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Grantee))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Authorization) 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 *Authorization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Authorization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Attribute) 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 *Attribute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Attribute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintCollection(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintCollection(dAtA []byte, offset int, v uint64) int { + offset -= sovCollection(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Contract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + 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)) + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func (m *FTClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + 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 *NFTClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + 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)) + } + return n +} + +func (m *NFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = 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)) + } + return n +} + +func (m *OwnerNFT) 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)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func (m *TokenType) 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.TokenType) + 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)) + } + return n +} + +func (m *Coin) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovCollection(uint64(l)) + return n +} + +func (m *Grant) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Grantee) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + if m.Permission != 0 { + n += 1 + sovCollection(uint64(m.Permission)) + } + return n +} + +func (m *Authorization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func (m *Attribute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovCollection(uint64(l)) + } + return n +} + +func sovCollection(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCollection(x uint64) (n int) { + return sovCollection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 *Contract) 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: Contract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Contract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", 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.Id = 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 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 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 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 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 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.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 *FTClass) 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: FTClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FTClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", 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.Id = 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 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 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 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 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + } + m.Decimals = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimals |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 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 *NFTClass) 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: NFTClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", 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.Id = 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 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 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 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 + 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 *NFT) 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: NFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFT: 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 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 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 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 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 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 + 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 *OwnerNFT) 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: OwnerNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnerNFT: 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 != 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 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.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 + 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: TokenType: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenType: 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 TokenType", 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.TokenType = 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 + 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 *Coin) 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: Coin: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Coin: 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 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 *Grant) 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: Grant: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Grant: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", 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.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + m.Permission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Permission |= Permission(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := 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 *Authorization) 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: Authorization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Authorization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.Holder = 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 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.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 *Attribute) 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: Attribute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Attribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 skipCollection(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCollection + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCollection + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCollection + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthCollection + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCollection + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCollection + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCollection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCollection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCollection = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/collection/collection_test.go b/x/collection/collection_test.go new file mode 100644 index 0000000000..e7776c27df --- /dev/null +++ b/x/collection/collection_test.go @@ -0,0 +1,134 @@ +package collection_test + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/require" + + "cosmossdk.io/math" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +const contractID = "deadbeef" + +func TestNFTClass(t *testing.T) { + nextIDs := collection.DefaultNextClassIDs(contractID) + testCases := map[string]struct { + name string + meta string + valid bool + }{ + "valid class": { + valid: true, + }, + "invalid name": { + name: string(make([]rune, 21)), + }, + "invalid meta": { + meta: string(make([]rune, 1001)), + }, + } + + for name, tc := range testCases { + t.Run(name, func(t *testing.T) { + var class collection.TokenClass = &collection.NFTClass{} + 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 TestParseCoin(t *testing.T) { + testCases := map[string]struct { + input string + valid bool + expected collection.Coin + }{ + "valid coin": { + input: "00bab10c00000001:1", + valid: true, + expected: collection.NewNFTCoin("00bab10c", 1), + }, + "invalid expression": { + input: "oobabloc00000000:10", + }, + "invalid amount": { + input: "00bab10c00000000:" + fmt.Sprintf("1%0127d", 0), + }, + } + + for name, tc := range testCases { + t.Run(name, func(t *testing.T) { + parsed, err := collection.ParseCoin(tc.input) + if !tc.valid { + require.Error(t, err) + return + } + require.NoError(t, err) + + require.Equal(t, tc.expected, *parsed) + require.Equal(t, tc.input, parsed.String()) + }) + } +} + +func TestParseCoins(t *testing.T) { + testCases := map[string]struct { + input string + valid bool + expected collection.Coins + }{ + "valid single coins": { + input: "00bab10c00000001:1", + valid: true, + expected: collection.NewCoins( + collection.NewNFTCoin("00bab10c", 1), + ), + }, + "valid multiple coins": { + input: "deadbeef00000001:1,deadbeef0000000a:1", + valid: true, + expected: collection.NewCoins( + collection.NewNFTCoin(contractID, 1), + collection.NewNFTCoin(contractID, 10), + ), + }, + "empty string": {}, + "invalid coin": { + input: "oobabloc00000000:10", + }, + } + + for name, tc := range testCases { + t.Run(name, func(t *testing.T) { + parsed, err := collection.ParseCoins(tc.input) + if !tc.valid { + require.Error(t, err) + return + } + require.NoError(t, err) + + require.Equal(t, tc.expected, parsed) + require.Equal(t, tc.input, parsed.String()) + }) + } +} + +func TestDefaultNextClassIDs(t *testing.T) { + require.Equal(t, collection.NextClassIDs{ + ContractId: contractID, + NonFungible: math.NewUint(1 << 28).Incr(), // "10000000 + 1" + }, + collection.DefaultNextClassIDs(contractID), + ) +} diff --git a/x/collection/errors.go b/x/collection/errors.go new file mode 100644 index 0000000000..c699d4b8fd --- /dev/null +++ b/x/collection/errors.go @@ -0,0 +1,67 @@ +package collection + +import ( + errorsmod "cosmossdk.io/errors" +) + +const collectionCodespace = ModuleName + +var ( + ErrTokenNotExist = errorsmod.Register(collectionCodespace, 2, "token symbol, token-id does not exist") + ErrInvalidTokenName = errorsmod.Register(collectionCodespace, 4, "token name should not be empty") + ErrInvalidTokenID = errorsmod.Register(collectionCodespace, 5, "invalid token id") + ErrInvalidBaseImgURILength = errorsmod.Register(collectionCodespace, 9, "invalid base_img_uri length") + ErrInvalidNameLength = errorsmod.Register(collectionCodespace, 10, "invalid name length") + ErrInvalidTokenType = errorsmod.Register(collectionCodespace, 11, "invalid token type pattern found") + ErrInvalidTokenIndex = errorsmod.Register(collectionCodespace, 12, "invalid token index pattern found") + ErrCollectionNotExist = errorsmod.Register(collectionCodespace, 14, "collection does not exists") + ErrTokenTypeNotExist = errorsmod.Register(collectionCodespace, 16, "token type for contract_id, token-type does not exist") + ErrTokenNoPermission = errorsmod.Register(collectionCodespace, 20, "account does not have the permission") + ErrTokenNotOwnedBy = errorsmod.Register(collectionCodespace, 23, "token is being not owned by") + ErrTokenNotNFT = errorsmod.Register(collectionCodespace, 25, "token is not a NFT") + ErrApproverProxySame = errorsmod.Register(collectionCodespace, 28, "approver is same with proxy") + ErrCollectionNotApproved = errorsmod.Register(collectionCodespace, 29, "proxy is not approved on the collection") + ErrCollectionAlreadyApproved = errorsmod.Register(collectionCodespace, 30, "proxy is already approved on the collection") + ErrInvalidChangesFieldCount = errorsmod.Register(collectionCodespace, 35, "invalid count of field changes") + ErrEmptyChanges = errorsmod.Register(collectionCodespace, 36, "changes is empty") + ErrInvalidChangesField = errorsmod.Register(collectionCodespace, 37, "invalid field of changes") + ErrTokenIndexWithoutType = errorsmod.Register(collectionCodespace, 38, "There is a token index but no token type") + ErrInsufficientToken = errorsmod.Register(collectionCodespace, 40, "insufficient token") + ErrDuplicateChangesField = errorsmod.Register(collectionCodespace, 41, "duplicate field of changes") + ErrInvalidMetaLength = errorsmod.Register(collectionCodespace, 42, "invalid meta length") + ErrEmptyField = errorsmod.Register(collectionCodespace, 44, "required field cannot be empty") +) + +// Legacy Token module error starts from 101 +var ( + ErrInvalidPermission = errorsmod.Register(collectionCodespace, 101, "invalid permission") // "link", 2 + ErrInvalidContractID = errorsmod.Register(collectionCodespace, 102, "invalid contractID") // "contract", 2 + ErrContractNotExist = errorsmod.Register(collectionCodespace, 103, "contract does not exist") // "contract", 3 +) + +// Deprecated: do not use from v0.50.x +var ( + ErrTokenNotMintable = errorsmod.Register(collectionCodespace, 3, "token symbol, token-id is not mintable") + 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") + ErrCollectionExist = errorsmod.Register(collectionCodespace, 13, "collection already exists") + ErrTokenTypeExist = errorsmod.Register(collectionCodespace, 15, "token type for contract_id, token-type already exists") + ErrTokenTypeFull = errorsmod.Register(collectionCodespace, 17, "all token type for contract_id are occupied") + ErrTokenIndexFull = errorsmod.Register(collectionCodespace, 18, "all non-fungible token index for contract_id, token-type are occupied") + ErrTokenIDFull = errorsmod.Register(collectionCodespace, 19, "all fungible token-id for contract_id are occupied") + ErrTokenAlreadyAChild = errorsmod.Register(collectionCodespace, 21, "token is already a child of some other") + ErrTokenNotAChild = errorsmod.Register(collectionCodespace, 22, "token is not a child of some other") + ErrTokenCannotTransferChildToken = errorsmod.Register(collectionCodespace, 24, "cannot transfer a child token") + ErrCannotAttachToItself = errorsmod.Register(collectionCodespace, 26, "cannot attach token to itself") + ErrCannotAttachToADescendant = errorsmod.Register(collectionCodespace, 27, "cannot attach token to a descendant") + ErrAccountExist = errorsmod.Register(collectionCodespace, 31, "account already exists") + ErrAccountNotExist = errorsmod.Register(collectionCodespace, 32, "account does not exists") + ErrInsufficientSupply = errorsmod.Register(collectionCodespace, 33, "insufficient supply") + ErrInvalidCoin = errorsmod.Register(collectionCodespace, 34, "invalid coin") + 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)") + ErrBurnNonRootNFT = errorsmod.Register(collectionCodespace, 47, "cannot burn non-root NFTs") +) diff --git a/x/collection/event.go b/x/collection/event.go new file mode 100644 index 0000000000..f837d9d146 --- /dev/null +++ b/x/collection/event.go @@ -0,0 +1,19 @@ +package collection + +import ( + "strings" +) + +const ( + prefixAttributeKey = "ATTRIBUTE_KEY_" +) + +func (x AttributeKey) String() string { + lenPrefix := len(prefixAttributeKey) + return strings.ToLower(AttributeKey_name[int32(x)][lenPrefix:]) +} + +func AttributeKeyFromString(name string) AttributeKey { + attributeKeyName := prefixAttributeKey + strings.ToUpper(name) + return AttributeKey(AttributeKey_value[attributeKeyName]) +} diff --git a/x/collection/event.pb.go b/x/collection/event.pb.go new file mode 100644 index 0000000000..e21f57186f --- /dev/null +++ b/x/collection/event.pb.go @@ -0,0 +1,4230 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lbm/collection/v1/event.proto + +package collection + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// AttributeKey enumerates the valid attribute keys on x/collection. +type AttributeKey int32 + +const ( + // unspecified + AttributeKeyUnspecified AttributeKey = 0 + // name in Msg/Modify + AttributeKeyName AttributeKey = 1 + // meta in Msg/Modify + AttributeKeyMeta AttributeKey = 2 + // deprecated: use ATTRIBUTE_KEY_URI + AttributeKeyBaseImgURI AttributeKey = 8 + // uri in Msg/Modify + AttributeKeyURI AttributeKey = 20 +) + +var AttributeKey_name = map[int32]string{ + 0: "ATTRIBUTE_KEY_UNSPECIFIED", + 1: "ATTRIBUTE_KEY_NAME", + 2: "ATTRIBUTE_KEY_META", + 8: "ATTRIBUTE_KEY_BASE_IMG_URI", + 20: "ATTRIBUTE_KEY_URI", +} + +var AttributeKey_value = map[string]int32{ + "ATTRIBUTE_KEY_UNSPECIFIED": 0, + "ATTRIBUTE_KEY_NAME": 1, + "ATTRIBUTE_KEY_META": 2, + "ATTRIBUTE_KEY_BASE_IMG_URI": 8, + "ATTRIBUTE_KEY_URI": 20, +} + +func (AttributeKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{0} +} + +// EventSent is emitted when tokens are transferred. +// +// Since: 0.46.0 (finschia) +type EventSent 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 send. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // holder whose tokens were sent. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // recipient of the tokens. + To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + // amount of tokens sent. + Amount []Coin `protobuf:"bytes,5,rep,name=amount,proto3" json:"amount"` +} + +func (m *EventSent) Reset() { *m = EventSent{} } +func (m *EventSent) String() string { return proto.CompactTextString(m) } +func (*EventSent) ProtoMessage() {} +func (*EventSent) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{0} +} +func (m *EventSent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventSent.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 *EventSent) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventSent.Merge(m, src) +} +func (m *EventSent) XXX_Size() int { + return m.Size() +} +func (m *EventSent) XXX_DiscardUnknown() { + xxx_messageInfo_EventSent.DiscardUnknown(m) +} + +var xxx_messageInfo_EventSent proto.InternalMessageInfo + +func (m *EventSent) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventSent) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventSent) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *EventSent) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *EventSent) GetAmount() []Coin { + if m != nil { + return m.Amount + } + return nil +} + +// EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens. +// +// Since: 0.46.0 (finschia) +type EventAuthorizedOperator 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 a holder which authorized the `operator` address as an operator. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which became an operator of `holder`. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (m *EventAuthorizedOperator) Reset() { *m = EventAuthorizedOperator{} } +func (m *EventAuthorizedOperator) String() string { return proto.CompactTextString(m) } +func (*EventAuthorizedOperator) ProtoMessage() {} +func (*EventAuthorizedOperator) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{1} +} +func (m *EventAuthorizedOperator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventAuthorizedOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventAuthorizedOperator.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 *EventAuthorizedOperator) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventAuthorizedOperator.Merge(m, src) +} +func (m *EventAuthorizedOperator) XXX_Size() int { + return m.Size() +} +func (m *EventAuthorizedOperator) XXX_DiscardUnknown() { + xxx_messageInfo_EventAuthorizedOperator.DiscardUnknown(m) +} + +var xxx_messageInfo_EventAuthorizedOperator proto.InternalMessageInfo + +func (m *EventAuthorizedOperator) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventAuthorizedOperator) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +func (m *EventAuthorizedOperator) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +// EventRevokedOperator is emitted when an authorization is revoked. +// +// Since: 0.46.0 (finschia) +type EventRevokedOperator 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 a holder which revoked the `operator` address as an operator. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which was revoked as an operator of `holder`. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (m *EventRevokedOperator) Reset() { *m = EventRevokedOperator{} } +func (m *EventRevokedOperator) String() string { return proto.CompactTextString(m) } +func (*EventRevokedOperator) ProtoMessage() {} +func (*EventRevokedOperator) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{2} +} +func (m *EventRevokedOperator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventRevokedOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventRevokedOperator.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 *EventRevokedOperator) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventRevokedOperator.Merge(m, src) +} +func (m *EventRevokedOperator) XXX_Size() int { + return m.Size() +} +func (m *EventRevokedOperator) XXX_DiscardUnknown() { + xxx_messageInfo_EventRevokedOperator.DiscardUnknown(m) +} + +var xxx_messageInfo_EventRevokedOperator proto.InternalMessageInfo + +func (m *EventRevokedOperator) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventRevokedOperator) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +func (m *EventRevokedOperator) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +// EventCreatedContract is emitted when a new contract is created. +// +// Since: 0.46.0 (finschia) +type EventCreatedContract struct { + // address which created the contract. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // contract id associated with the contract. + ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // name of the contract. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // metadata of the contract. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` + // uri for the contract image stored off chain. + Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` +} + +func (m *EventCreatedContract) Reset() { *m = EventCreatedContract{} } +func (m *EventCreatedContract) String() string { return proto.CompactTextString(m) } +func (*EventCreatedContract) ProtoMessage() {} +func (*EventCreatedContract) Descriptor() ([]byte, []int) { + return fileDescriptor_478cfab12ea1b00e, []int{3} +} +func (m *EventCreatedContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventCreatedContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventCreatedContract.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 *EventCreatedContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventCreatedContract.Merge(m, src) +} +func (m *EventCreatedContract) XXX_Size() int { + return m.Size() +} +func (m *EventCreatedContract) XXX_DiscardUnknown() { + xxx_messageInfo_EventCreatedContract.DiscardUnknown(m) +} + +var xxx_messageInfo_EventCreatedContract proto.InternalMessageInfo + +func (m *EventCreatedContract) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *EventCreatedContract) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventCreatedContract) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *EventCreatedContract) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +func (m *EventCreatedContract) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +// EventCreatedNFTClass is emitted when a new non-fungible token class is created. +// +// Since: 0.46.0 (finschia) +type EventCreatedNFTClass 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 type associated with the token class. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,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"` +} + +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{4} +} +func (m *EventCreatedNFTClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventCreatedNFTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventCreatedNFTClass.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 *EventCreatedNFTClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventCreatedNFTClass.Merge(m, src) +} +func (m *EventCreatedNFTClass) XXX_Size() int { + return m.Size() +} +func (m *EventCreatedNFTClass) XXX_DiscardUnknown() { + xxx_messageInfo_EventCreatedNFTClass.DiscardUnknown(m) +} + +var xxx_messageInfo_EventCreatedNFTClass proto.InternalMessageInfo + +func (m *EventCreatedNFTClass) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventCreatedNFTClass) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventCreatedNFTClass) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +func (m *EventCreatedNFTClass) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *EventCreatedNFTClass) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +// EventGranted is emitted when a granter grants its permission to a grantee. +// +// Info: `granter` would be empty if the permission is granted by an issuance. +// +// Since: 0.46.0 (finschia) +type EventGranted 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 granter which grants the permission. + Granter string `protobuf:"bytes,2,opt,name=granter,proto3" json:"granter,omitempty"` + // address of the grantee. + Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"` + // permission on the contract. + Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` +} + +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{5} +} +func (m *EventGranted) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventGranted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventGranted.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 *EventGranted) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventGranted.Merge(m, src) +} +func (m *EventGranted) XXX_Size() int { + return m.Size() +} +func (m *EventGranted) XXX_DiscardUnknown() { + xxx_messageInfo_EventGranted.DiscardUnknown(m) +} + +var xxx_messageInfo_EventGranted proto.InternalMessageInfo + +func (m *EventGranted) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventGranted) GetGranter() string { + if m != nil { + return m.Granter + } + return "" +} + +func (m *EventGranted) GetGrantee() string { + if m != nil { + return m.Grantee + } + return "" +} + +func (m *EventGranted) GetPermission() Permission { + if m != nil { + return m.Permission + } + return PermissionUnspecified +} + +// EventRenounced is emitted when a grantee renounced its permission. +// +// Since: 0.46.0 (finschia) +type EventRenounced 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 abandons its grant. + Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` + // permission on the contract. + Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` +} + +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{6} +} +func (m *EventRenounced) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventRenounced) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventRenounced.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 *EventRenounced) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventRenounced.Merge(m, src) +} +func (m *EventRenounced) XXX_Size() int { + return m.Size() +} +func (m *EventRenounced) XXX_DiscardUnknown() { + xxx_messageInfo_EventRenounced.DiscardUnknown(m) +} + +var xxx_messageInfo_EventRenounced proto.InternalMessageInfo + +func (m *EventRenounced) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventRenounced) GetGrantee() string { + if m != nil { + return m.Grantee + } + return "" +} + +func (m *EventRenounced) GetPermission() Permission { + if m != nil { + return m.Permission + } + return PermissionUnspecified +} + +// EventMintedNFT is emitted when non-fungible tokens are minted. +// +// Since: 0.46.0 (finschia) +type EventMintedNFT 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"` + // tokens minted. + Tokens []NFT `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens"` +} + +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{7} +} +func (m *EventMintedNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventMintedNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventMintedNFT.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 *EventMintedNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventMintedNFT.Merge(m, src) +} +func (m *EventMintedNFT) XXX_Size() int { + return m.Size() +} +func (m *EventMintedNFT) XXX_DiscardUnknown() { + xxx_messageInfo_EventMintedNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_EventMintedNFT proto.InternalMessageInfo + +func (m *EventMintedNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventMintedNFT) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventMintedNFT) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *EventMintedNFT) GetTokens() []NFT { + if m != nil { + return m.Tokens + } + return nil +} + +// EventBurned is emitted when tokens are burnt. +// +// Since: 0.46.0 (finschia) +type EventBurned 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 burn. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // holder whose tokens were burned. + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + // amount of tokens burned. + Amount []Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount"` +} + +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{8} +} +func (m *EventBurned) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventBurned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventBurned.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 *EventBurned) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBurned.Merge(m, src) +} +func (m *EventBurned) XXX_Size() int { + return m.Size() +} +func (m *EventBurned) XXX_DiscardUnknown() { + xxx_messageInfo_EventBurned.DiscardUnknown(m) +} + +var xxx_messageInfo_EventBurned proto.InternalMessageInfo + +func (m *EventBurned) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventBurned) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventBurned) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *EventBurned) GetAmount() []Coin { + if m != nil { + return m.Amount + } + return nil +} + +// EventModifiedContract is emitted when the information of a contract is modified. +// +// Since: 0.46.0 (finschia) +type EventModifiedContract 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 modify. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // changes of the attributes applied. + // possible attribute keys are same as those of MsgModify. + // deprecated "base_img_uri" has been replaced by "uri" in the events. + Changes []Attribute `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes"` +} + +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{9} +} +func (m *EventModifiedContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventModifiedContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventModifiedContract.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 *EventModifiedContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventModifiedContract.Merge(m, src) +} +func (m *EventModifiedContract) XXX_Size() int { + return m.Size() +} +func (m *EventModifiedContract) XXX_DiscardUnknown() { + xxx_messageInfo_EventModifiedContract.DiscardUnknown(m) +} + +var xxx_messageInfo_EventModifiedContract proto.InternalMessageInfo + +func (m *EventModifiedContract) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventModifiedContract) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventModifiedContract) GetChanges() []Attribute { + if m != nil { + return m.Changes + } + return nil +} + +// EventModifiedTokenClass is emitted when the information of a token class is modified. +// +// Since: 0.46.0 (finschia) +type EventModifiedTokenClass 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 modify. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // token type associated with the token class. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // changes of the attributes applied. + // possible attribute keys are same as those of MsgModify. + Changes []Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes"` + // type name of the token class. + TypeName string `protobuf:"bytes,5,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` +} + +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{10} +} +func (m *EventModifiedTokenClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventModifiedTokenClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventModifiedTokenClass.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 *EventModifiedTokenClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventModifiedTokenClass.Merge(m, src) +} +func (m *EventModifiedTokenClass) XXX_Size() int { + return m.Size() +} +func (m *EventModifiedTokenClass) XXX_DiscardUnknown() { + xxx_messageInfo_EventModifiedTokenClass.DiscardUnknown(m) +} + +var xxx_messageInfo_EventModifiedTokenClass proto.InternalMessageInfo + +func (m *EventModifiedTokenClass) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventModifiedTokenClass) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventModifiedTokenClass) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +func (m *EventModifiedTokenClass) GetChanges() []Attribute { + if m != nil { + return m.Changes + } + return nil +} + +func (m *EventModifiedTokenClass) GetTypeName() string { + if m != nil { + return m.TypeName + } + return "" +} + +// EventModifiedNFT is emitted when the information of a non-fungible token is modified. +// +// Since: 0.46.0 (finschia) +type EventModifiedNFT 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 modify. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // token id associated with the non-fungible token. + TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // changes of the attributes applied. + // possible attribute keys are same as those of MsgModify. + Changes []Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes"` +} + +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{11} +} +func (m *EventModifiedNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventModifiedNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventModifiedNFT.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 *EventModifiedNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventModifiedNFT.Merge(m, src) +} +func (m *EventModifiedNFT) XXX_Size() int { + return m.Size() +} +func (m *EventModifiedNFT) XXX_DiscardUnknown() { + xxx_messageInfo_EventModifiedNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_EventModifiedNFT proto.InternalMessageInfo + +func (m *EventModifiedNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *EventModifiedNFT) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *EventModifiedNFT) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *EventModifiedNFT) GetChanges() []Attribute { + if m != nil { + return m.Changes + } + return nil +} + +func init() { + proto.RegisterEnum("lbm.collection.v1.AttributeKey", AttributeKey_name, AttributeKey_value) + proto.RegisterType((*EventSent)(nil), "lbm.collection.v1.EventSent") + 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((*EventCreatedNFTClass)(nil), "lbm.collection.v1.EventCreatedNFTClass") + proto.RegisterType((*EventGranted)(nil), "lbm.collection.v1.EventGranted") + proto.RegisterType((*EventRenounced)(nil), "lbm.collection.v1.EventRenounced") + proto.RegisterType((*EventMintedNFT)(nil), "lbm.collection.v1.EventMintedNFT") + proto.RegisterType((*EventBurned)(nil), "lbm.collection.v1.EventBurned") + proto.RegisterType((*EventModifiedContract)(nil), "lbm.collection.v1.EventModifiedContract") + proto.RegisterType((*EventModifiedTokenClass)(nil), "lbm.collection.v1.EventModifiedTokenClass") + proto.RegisterType((*EventModifiedNFT)(nil), "lbm.collection.v1.EventModifiedNFT") +} + +func init() { proto.RegisterFile("lbm/collection/v1/event.proto", fileDescriptor_478cfab12ea1b00e) } + +var fileDescriptor_478cfab12ea1b00e = []byte{ + // 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) { + 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 *EventSent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventSent) 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] = 0x2a + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x22 + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.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 *EventAuthorizedOperator) 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 *EventAuthorizedOperator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventAuthorizedOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x1a + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) + 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 *EventRevokedOperator) 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 *EventRevokedOperator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventRevokedOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x1a + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) + 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 *EventCreatedContract) 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 *EventCreatedContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventCreatedContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x2a + } + 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] = 0x22 + } + 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] = 0x1a + } + 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] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventCreatedNFTClass) 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 *EventCreatedNFTClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventCreatedNFTClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = 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.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintEvent(dAtA, i, uint64(len(m.TokenType))) + 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 *EventGranted) 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 *EventGranted) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventGranted) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Permission != 0 { + i = encodeVarintEvent(dAtA, i, uint64(m.Permission)) + i-- + dAtA[i] = 0x20 + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) + i-- + dAtA[i] = 0x1a + } + if len(m.Granter) > 0 { + i -= len(m.Granter) + copy(dAtA[i:], m.Granter) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Granter))) + 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 *EventRenounced) 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 *EventRenounced) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventRenounced) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Permission != 0 { + i = encodeVarintEvent(dAtA, i, uint64(m.Permission)) + i-- + dAtA[i] = 0x18 + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) + 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) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventMintedNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventMintedNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Tokens) > 0 { + for iNdEx := len(m.Tokens) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tokens[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 *EventBurned) 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 *EventBurned) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventBurned) 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.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x1a + } + if len(m.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 *EventModifiedContract) 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 *EventModifiedContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventModifiedContract) 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 = encodeVarintEvent(dAtA, i, uint64(size)) + } + 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 *EventModifiedTokenClass) 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 *EventModifiedTokenClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventModifiedTokenClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TypeName) > 0 { + i -= len(m.TypeName) + copy(dAtA[i:], m.TypeName) + i = encodeVarintEvent(dAtA, i, uint64(len(m.TypeName))) + i-- + dAtA[i] = 0x2a + } + 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 = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintEvent(dAtA, i, uint64(len(m.TokenType))) + 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 *EventModifiedNFT) 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 *EventModifiedNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventModifiedNFT) 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 = encodeVarintEvent(dAtA, i, uint64(size)) + } + 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 encodeVarintEvent(dAtA []byte, offset int, v uint64) int { + offset -= sovEvent(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *EventSent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.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 *EventAuthorizedOperator) 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.Holder) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func (m *EventRevokedOperator) 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.Holder) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func (m *EventCreatedContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.ContractId) + 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)) + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func (m *EventCreatedNFTClass) 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.TokenType) + 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)) + } + return n +} + +func (m *EventGranted) 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.Granter) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Grantee) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if m.Permission != 0 { + n += 1 + sovEvent(uint64(m.Permission)) + } + return n +} + +func (m *EventRenounced) 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.Grantee) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if m.Permission != 0 { + n += 1 + sovEvent(uint64(m.Permission)) + } + return n +} + +func (m *EventMintedNFT) 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.Tokens) > 0 { + for _, e := range m.Tokens { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func (m *EventBurned) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func (m *EventModifiedContract) 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)) + } + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func (m *EventModifiedTokenClass) 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.TokenType) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + l = len(m.TypeName) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func (m *EventModifiedNFT) 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)) + } + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func sovEvent(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEvent(x uint64) (n int) { + return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *EventSent) 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: EventSent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventSent: 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 From", 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.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 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 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventAuthorizedOperator) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventAuthorizedOperator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventAuthorizedOperator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Holder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventRevokedOperator) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventRevokedOperator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventRevokedOperator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Holder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventCreatedContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventCreatedContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventCreatedContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventCreatedNFTClass) 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: EventCreatedNFTClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventCreatedNFTClass: 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 TokenType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + 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 *EventGranted) 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: EventGranted: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventGranted: 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 Granter", 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.Granter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", 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.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + m.Permission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Permission |= Permission(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + 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 *EventRenounced) 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: EventRenounced: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventRenounced: 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 Grantee", 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.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + m.Permission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Permission |= Permission(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + 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 + 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: EventMintedNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventMintedNFT: 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 Tokens", 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.Tokens = append(m.Tokens, NFT{}) + if err := m.Tokens[len(m.Tokens)-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 *EventBurned) 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: EventBurned: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventBurned: 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 From", 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.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 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 *EventModifiedContract) 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: EventModifiedContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventModifiedContract: 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 Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 *EventModifiedTokenClass) 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: EventModifiedTokenClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventModifiedTokenClass: 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 TokenType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + 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.TypeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventModifiedNFT) 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: EventModifiedNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventModifiedNFT: 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 Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 skipEvent(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthEvent + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEvent + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthEvent + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/collection/event_test.go b/x/collection/event_test.go new file mode 100644 index 0000000000..e01d046113 --- /dev/null +++ b/x/collection/event_test.go @@ -0,0 +1,19 @@ +package collection_test + +import ( + "testing" + + "github.com/stretchr/testify/require" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func TestAttributeKeyStringer(t *testing.T) { + for _, name := range collection.AttributeKey_name { + t.Run(name, func(t *testing.T) { + value := collection.AttributeKey(collection.AttributeKey_value[name]) + customName := value.String() + require.EqualValues(t, value, collection.AttributeKeyFromString(customName)) + }) + } +} diff --git a/x/collection/genesis.go b/x/collection/genesis.go new file mode 100644 index 0000000000..25308ab1b6 --- /dev/null +++ b/x/collection/genesis.go @@ -0,0 +1,215 @@ +package collection + +import ( + "math" + + "cosmossdk.io/core/address" + cmath "cosmossdk.io/math" + + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +// ValidateGenesis check the given genesis state has no integrity issues +func ValidateGenesis(data GenesisState, addressCodec address.Codec) error { + if err := validateParams(data.Params); err != nil { + return err + } + + for _, contract := range data.Contracts { + if err := ValidateContractID(contract.Id); err != nil { + return err + } + + if err := ValidateName(contract.Name); err != nil { + return err + } + if err := ValidateURI(contract.Uri); err != nil { + return err + } + if err := ValidateMeta(contract.Meta); err != nil { + return err + } + } + + for _, nextClassID := range data.NextClassIds { + if err := ValidateContractID(nextClassID.ContractId); err != nil { + return err + } + } + + for _, contractClasses := range data.Classes { + if err := ValidateContractID(contractClasses.ContractId); err != nil { + return err + } + + if len(contractClasses.Classes) == 0 { + return sdkerrors.ErrInvalidRequest.Wrap("classes cannot be empty") + } + for i := range contractClasses.Classes { + anyv := &contractClasses.Classes[i] + class := TokenClassFromAny(anyv) + if err := class.ValidateBasic(); err != nil { + return err + } + } + } + + for _, contractNextTokenIDs := range data.NextTokenIds { + if err := ValidateContractID(contractNextTokenIDs.ContractId); err != nil { + return err + } + + if len(contractNextTokenIDs.TokenIds) == 0 { + return sdkerrors.ErrInvalidRequest.Wrap("next token ids cannot be empty") + } + for _, nextTokenIDs := range contractNextTokenIDs.TokenIds { + if err := ValidateClassID(nextTokenIDs.ClassId); err != nil { + return err + } + } + } + + for _, contractBalances := range data.Balances { + if err := ValidateContractID(contractBalances.ContractId); err != nil { + return err + } + + if len(contractBalances.Balances) == 0 { + return sdkerrors.ErrInvalidRequest.Wrap("balances cannot be empty") + } + for _, balance := range contractBalances.Balances { + if _, err := sdk.AccAddressFromBech32(balance.Address); err != nil { + return err + } + if err := balance.Amount.ValidateBasic(); err != nil { + return err + } + } + } + + for _, contractNFTs := range data.Nfts { + if err := ValidateContractID(contractNFTs.ContractId); err != nil { + return err + } + + if len(contractNFTs.Nfts) == 0 { + return sdkerrors.ErrInvalidRequest.Wrap("nfts cannot be empty") + } + for _, token := range contractNFTs.Nfts { + if err := ValidateTokenID(token.TokenId); err != nil { + return err + } + if err := ValidateName(token.Name); err != nil { + return err + } + if err := ValidateMeta(token.Meta); err != nil { + return err + } + } + } + + for _, contractAuthorizations := range data.Authorizations { + if err := ValidateContractID(contractAuthorizations.ContractId); err != nil { + return err + } + + if len(contractAuthorizations.Authorizations) == 0 { + return sdkerrors.ErrInvalidRequest.Wrap("authorizations cannot be empty") + } + for _, authorization := range contractAuthorizations.Authorizations { + if _, err := addressCodec.StringToBytes(authorization.Holder); err != nil { + return err + } + if _, err := addressCodec.StringToBytes(authorization.Operator); err != nil { + return err + } + } + } + + for _, contractGrants := range data.Grants { + if err := ValidateContractID(contractGrants.ContractId); err != nil { + return err + } + + if len(contractGrants.Grants) == 0 { + return sdkerrors.ErrInvalidRequest.Wrap("grants cannot be empty") + } + for _, grant := range contractGrants.Grants { + if _, err := addressCodec.StringToBytes(grant.Grantee); err != nil { + return err + } + if err := ValidatePermission(grant.Permission); err != nil { + return err + } + } + } + + for _, contractSupplies := range data.Supplies { + if err := ValidateContractID(contractSupplies.ContractId); err != nil { + return err + } + + if len(contractSupplies.Statistics) == 0 { + return sdkerrors.ErrInvalidRequest.Wrap("supplies cannot be empty") + } + for _, supply := range contractSupplies.Statistics { + if err := ValidateClassID(supply.ClassId); err != nil { + return err + } + if !supply.Amount.IsPositive() { + return sdkerrors.ErrInvalidRequest.Wrap("supply must be positive") + } + } + } + + for _, contractBurnts := range data.Burnts { + if err := ValidateContractID(contractBurnts.ContractId); err != nil { + return err + } + + if len(contractBurnts.Statistics) == 0 { + return sdkerrors.ErrInvalidRequest.Wrap("burnts cannot be empty") + } + for _, burnt := range contractBurnts.Statistics { + if err := ValidateClassID(burnt.ClassId); err != nil { + return err + } + if !burnt.Amount.IsPositive() { + return sdkerrors.ErrInvalidRequest.Wrap("burnt must be positive") + } + } + } + + if data.ClassState != nil { + if data.ClassState.Nonce.GT(cmath.NewUint(math.MaxUint64)) { + return sdkerrors.ErrInvalidRequest.Wrapf("Invalid nonce: %s", data.ClassState.Nonce) + } + } + + return nil +} + +// DefaultGenesisState - Return a default genesis state +func DefaultGenesisState() *GenesisState { + return &GenesisState{ + Params: Params{}, + ClassState: &ClassState{ + Nonce: cmath.ZeroUint(), + }, + } +} + +func (data GenesisState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error { + for _, contractClasses := range data.Classes { + for i := range contractClasses.Classes { + anyv := &contractClasses.Classes[i] + if err := TokenClassUnpackInterfaces(anyv, unpacker); err != nil { + return err + } + } + } + + return nil +} diff --git a/x/collection/genesis.pb.go b/x/collection/genesis.pb.go new file mode 100644 index 0000000000..5693f73e28 --- /dev/null +++ b/x/collection/genesis.pb.go @@ -0,0 +1,3854 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lbm/collection/v1/genesis.proto + +package collection + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/codec/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// GenesisState defines the collection module's genesis state. +type GenesisState struct { + // params defines all the paramaters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + // contracts defines the metadata of the contracts. + Contracts []Contract `protobuf:"bytes,2,rep,name=contracts,proto3" json:"contracts"` + // next ids for token classes. + NextClassIds []NextClassIDs `protobuf:"bytes,3,rep,name=next_class_ids,json=nextClassIds,proto3" json:"next_class_ids"` + // classes defines the metadata of the tokens. + Classes []ContractClasses `protobuf:"bytes,4,rep,name=classes,proto3" json:"classes"` + // next ids for (non-fungible) tokens. + NextTokenIds []ContractNextTokenIDs `protobuf:"bytes,5,rep,name=next_token_ids,json=nextTokenIds,proto3" json:"next_token_ids"` + // balances is an array containing the balances of all the accounts. + Balances []ContractBalances `protobuf:"bytes,6,rep,name=balances,proto3" json:"balances"` + // nfts is an array containing the nfts. + Nfts []ContractNFTs `protobuf:"bytes,7,rep,name=nfts,proto3" json:"nfts"` + // grants defines the grant information. + Grants []ContractGrants `protobuf:"bytes,9,rep,name=grants,proto3" json:"grants"` + // authorizations defines the approve information. + Authorizations []ContractAuthorizations `protobuf:"bytes,10,rep,name=authorizations,proto3" json:"authorizations"` + // supplies represents the total supplies of tokens. + Supplies []ContractStatistics `protobuf:"bytes,11,rep,name=supplies,proto3" json:"supplies"` + // burnts represents the total amount of burnt tokens. + Burnts []ContractStatistics `protobuf:"bytes,12,rep,name=burnts,proto3" json:"burnts"` + // class_state defines the classes state. It was class keeper's genesis state in legacy x/token. + ClassState *ClassState `protobuf:"bytes,13,opt,name=class_state,json=classState,proto3" json:"class_state,omitempty"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetContracts() []Contract { + if m != nil { + return m.Contracts + } + return nil +} + +func (m *GenesisState) GetNextClassIds() []NextClassIDs { + if m != nil { + return m.NextClassIds + } + return nil +} + +func (m *GenesisState) GetClasses() []ContractClasses { + if m != nil { + return m.Classes + } + return nil +} + +func (m *GenesisState) GetNextTokenIds() []ContractNextTokenIDs { + if m != nil { + return m.NextTokenIds + } + return nil +} + +func (m *GenesisState) GetBalances() []ContractBalances { + if m != nil { + return m.Balances + } + return nil +} + +func (m *GenesisState) GetNfts() []ContractNFTs { + if m != nil { + return m.Nfts + } + return nil +} + +func (m *GenesisState) GetGrants() []ContractGrants { + if m != nil { + return m.Grants + } + return nil +} + +func (m *GenesisState) GetAuthorizations() []ContractAuthorizations { + if m != nil { + return m.Authorizations + } + return nil +} + +func (m *GenesisState) GetSupplies() []ContractStatistics { + if m != nil { + return m.Supplies + } + return nil +} + +func (m *GenesisState) GetBurnts() []ContractStatistics { + if m != nil { + return m.Burnts + } + return nil +} + +func (m *GenesisState) GetClassState() *ClassState { + if m != nil { + return m.ClassState + } + return nil +} + +// ContractBalances defines balances belong to a contract. +// genesis state. +type ContractBalances struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // balances + Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"` +} + +func (m *ContractBalances) Reset() { *m = ContractBalances{} } +func (m *ContractBalances) String() string { return proto.CompactTextString(m) } +func (*ContractBalances) ProtoMessage() {} +func (*ContractBalances) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{1} +} +func (m *ContractBalances) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractBalances.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 *ContractBalances) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractBalances.Merge(m, src) +} +func (m *ContractBalances) XXX_Size() int { + return m.Size() +} +func (m *ContractBalances) XXX_DiscardUnknown() { + xxx_messageInfo_ContractBalances.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractBalances proto.InternalMessageInfo + +func (m *ContractBalances) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractBalances) GetBalances() []Balance { + if m != nil { + return m.Balances + } + return nil +} + +// ContractStatistics defines statistics belong to a contract. +type ContractStatistics struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // statistics + Statistics []ClassStatistics `protobuf:"bytes,2,rep,name=statistics,proto3" json:"statistics"` +} + +func (m *ContractStatistics) Reset() { *m = ContractStatistics{} } +func (m *ContractStatistics) String() string { return proto.CompactTextString(m) } +func (*ContractStatistics) ProtoMessage() {} +func (*ContractStatistics) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{2} +} +func (m *ContractStatistics) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractStatistics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractStatistics.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 *ContractStatistics) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractStatistics.Merge(m, src) +} +func (m *ContractStatistics) XXX_Size() int { + return m.Size() +} +func (m *ContractStatistics) XXX_DiscardUnknown() { + xxx_messageInfo_ContractStatistics.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractStatistics proto.InternalMessageInfo + +func (m *ContractStatistics) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractStatistics) GetStatistics() []ClassStatistics { + if m != nil { + return m.Statistics + } + return nil +} + +// ClassStatistics defines statistics belong to a token class. +type ClassStatistics struct { + // class id associated with the token class. + ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // statistics + Amount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +} + +func (m *ClassStatistics) Reset() { *m = ClassStatistics{} } +func (m *ClassStatistics) String() string { return proto.CompactTextString(m) } +func (*ClassStatistics) ProtoMessage() {} +func (*ClassStatistics) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{3} +} +func (m *ClassStatistics) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClassStatistics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClassStatistics.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 *ClassStatistics) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClassStatistics.Merge(m, src) +} +func (m *ClassStatistics) XXX_Size() int { + return m.Size() +} +func (m *ClassStatistics) XXX_DiscardUnknown() { + xxx_messageInfo_ClassStatistics.DiscardUnknown(m) +} + +var xxx_messageInfo_ClassStatistics proto.InternalMessageInfo + +func (m *ClassStatistics) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// Balance defines a balance of an address. +type Balance struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Amount Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=Coins" json:"amount"` +} + +func (m *Balance) Reset() { *m = Balance{} } +func (m *Balance) String() string { return proto.CompactTextString(m) } +func (*Balance) ProtoMessage() {} +func (*Balance) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{4} +} +func (m *Balance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Balance.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 *Balance) XXX_Merge(src proto.Message) { + xxx_messageInfo_Balance.Merge(m, src) +} +func (m *Balance) XXX_Size() int { + return m.Size() +} +func (m *Balance) XXX_DiscardUnknown() { + xxx_messageInfo_Balance.DiscardUnknown(m) +} + +var xxx_messageInfo_Balance proto.InternalMessageInfo + +func (m *Balance) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *Balance) GetAmount() Coins { + if m != nil { + return m.Amount + } + return nil +} + +// ContractClasses defines token classes belong to a contract. +type ContractClasses struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // classes + Classes []types.Any `protobuf:"bytes,2,rep,name=classes,proto3" json:"classes"` +} + +func (m *ContractClasses) Reset() { *m = ContractClasses{} } +func (m *ContractClasses) String() string { return proto.CompactTextString(m) } +func (*ContractClasses) ProtoMessage() {} +func (*ContractClasses) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{5} +} +func (m *ContractClasses) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractClasses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractClasses.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 *ContractClasses) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractClasses.Merge(m, src) +} +func (m *ContractClasses) XXX_Size() int { + return m.Size() +} +func (m *ContractClasses) XXX_DiscardUnknown() { + xxx_messageInfo_ContractClasses.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractClasses proto.InternalMessageInfo + +func (m *ContractClasses) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractClasses) GetClasses() []types.Any { + if m != nil { + return m.Classes + } + return nil +} + +// ContractNFTs defines token classes belong to a contract. +type ContractNFTs struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // nfts + Nfts []NFT `protobuf:"bytes,2,rep,name=nfts,proto3" json:"nfts"` +} + +func (m *ContractNFTs) Reset() { *m = ContractNFTs{} } +func (m *ContractNFTs) String() string { return proto.CompactTextString(m) } +func (*ContractNFTs) ProtoMessage() {} +func (*ContractNFTs) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{6} +} +func (m *ContractNFTs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractNFTs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractNFTs.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 *ContractNFTs) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractNFTs.Merge(m, src) +} +func (m *ContractNFTs) XXX_Size() int { + return m.Size() +} +func (m *ContractNFTs) XXX_DiscardUnknown() { + xxx_messageInfo_ContractNFTs.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractNFTs proto.InternalMessageInfo + +func (m *ContractNFTs) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractNFTs) GetNfts() []NFT { + if m != nil { + return m.Nfts + } + return nil +} + +// ContractAuthorizations defines authorizations belong to a contract. +type ContractAuthorizations struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // authorizations + Authorizations []Authorization `protobuf:"bytes,2,rep,name=authorizations,proto3" json:"authorizations"` +} + +func (m *ContractAuthorizations) Reset() { *m = ContractAuthorizations{} } +func (m *ContractAuthorizations) String() string { return proto.CompactTextString(m) } +func (*ContractAuthorizations) ProtoMessage() {} +func (*ContractAuthorizations) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{7} +} +func (m *ContractAuthorizations) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractAuthorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractAuthorizations.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 *ContractAuthorizations) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractAuthorizations.Merge(m, src) +} +func (m *ContractAuthorizations) XXX_Size() int { + return m.Size() +} +func (m *ContractAuthorizations) XXX_DiscardUnknown() { + xxx_messageInfo_ContractAuthorizations.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractAuthorizations proto.InternalMessageInfo + +func (m *ContractAuthorizations) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractAuthorizations) GetAuthorizations() []Authorization { + if m != nil { + return m.Authorizations + } + return nil +} + +// ContractGrant defines grants belong to a contract. +type ContractGrants struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // grants + Grants []Grant `protobuf:"bytes,2,rep,name=grants,proto3" json:"grants"` +} + +func (m *ContractGrants) Reset() { *m = ContractGrants{} } +func (m *ContractGrants) String() string { return proto.CompactTextString(m) } +func (*ContractGrants) ProtoMessage() {} +func (*ContractGrants) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{8} +} +func (m *ContractGrants) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractGrants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractGrants.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 *ContractGrants) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractGrants.Merge(m, src) +} +func (m *ContractGrants) XXX_Size() int { + return m.Size() +} +func (m *ContractGrants) XXX_DiscardUnknown() { + xxx_messageInfo_ContractGrants.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractGrants proto.InternalMessageInfo + +func (m *ContractGrants) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractGrants) GetGrants() []Grant { + if m != nil { + return m.Grants + } + return nil +} + +// NextClassIDs defines the next class ids of the contract. +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 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"` +} + +func (m *NextClassIDs) Reset() { *m = NextClassIDs{} } +func (m *NextClassIDs) String() string { return proto.CompactTextString(m) } +func (*NextClassIDs) ProtoMessage() {} +func (*NextClassIDs) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{9} +} +func (m *NextClassIDs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NextClassIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NextClassIDs.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 *NextClassIDs) XXX_Merge(src proto.Message) { + xxx_messageInfo_NextClassIDs.Merge(m, src) +} +func (m *NextClassIDs) XXX_Size() int { + return m.Size() +} +func (m *NextClassIDs) XXX_DiscardUnknown() { + xxx_messageInfo_NextClassIDs.DiscardUnknown(m) +} + +var xxx_messageInfo_NextClassIDs proto.InternalMessageInfo + +func (m *NextClassIDs) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +// ContractNextTokenIDs defines the next token ids belong to a contract. +type ContractNextTokenIDs struct { + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + TokenIds []NextTokenID `protobuf:"bytes,2,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids"` +} + +func (m *ContractNextTokenIDs) Reset() { *m = ContractNextTokenIDs{} } +func (m *ContractNextTokenIDs) String() string { return proto.CompactTextString(m) } +func (*ContractNextTokenIDs) ProtoMessage() {} +func (*ContractNextTokenIDs) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{10} +} +func (m *ContractNextTokenIDs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractNextTokenIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractNextTokenIDs.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 *ContractNextTokenIDs) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractNextTokenIDs.Merge(m, src) +} +func (m *ContractNextTokenIDs) XXX_Size() int { + return m.Size() +} +func (m *ContractNextTokenIDs) XXX_DiscardUnknown() { + xxx_messageInfo_ContractNextTokenIDs.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractNextTokenIDs proto.InternalMessageInfo + +func (m *ContractNextTokenIDs) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *ContractNextTokenIDs) GetTokenIds() []NextTokenID { + if m != nil { + return m.TokenIds + } + return nil +} + +// NextTokenID defines the next (non-fungible) token id of the token class. +type NextTokenID struct { + // class id associated with the token class. + ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` + // id for the token. + Id cosmossdk_io_math.Uint `protobuf:"bytes,2,opt,name=id,proto3,customtype=cosmossdk.io/math.Uint" json:"id"` +} + +func (m *NextTokenID) Reset() { *m = NextTokenID{} } +func (m *NextTokenID) String() string { return proto.CompactTextString(m) } +func (*NextTokenID) ProtoMessage() {} +func (*NextTokenID) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{11} +} +func (m *NextTokenID) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NextTokenID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NextTokenID.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 *NextTokenID) XXX_Merge(src proto.Message) { + xxx_messageInfo_NextTokenID.Merge(m, src) +} +func (m *NextTokenID) XXX_Size() int { + return m.Size() +} +func (m *NextTokenID) XXX_DiscardUnknown() { + xxx_messageInfo_NextTokenID.DiscardUnknown(m) +} + +var xxx_messageInfo_NextTokenID proto.InternalMessageInfo + +func (m *NextTokenID) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// ClassState defines the classes state. +type ClassState struct { + // nonce is the next class nonce to issue. + Nonce cosmossdk_io_math.Uint `protobuf:"bytes,1,opt,name=nonce,proto3,customtype=cosmossdk.io/math.Uint" json:"nonce"` + // ids represents the issued ids. + Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` +} + +func (m *ClassState) Reset() { *m = ClassState{} } +func (m *ClassState) String() string { return proto.CompactTextString(m) } +func (*ClassState) ProtoMessage() {} +func (*ClassState) Descriptor() ([]byte, []int) { + return fileDescriptor_2b8b3f666cffb1ec, []int{12} +} +func (m *ClassState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClassState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClassState.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 *ClassState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClassState.Merge(m, src) +} +func (m *ClassState) XXX_Size() int { + return m.Size() +} +func (m *ClassState) XXX_DiscardUnknown() { + xxx_messageInfo_ClassState.DiscardUnknown(m) +} + +var xxx_messageInfo_ClassState proto.InternalMessageInfo + +func (m *ClassState) GetIds() []string { + if m != nil { + return m.Ids + } + return nil +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "lbm.collection.v1.GenesisState") + proto.RegisterType((*ContractBalances)(nil), "lbm.collection.v1.ContractBalances") + proto.RegisterType((*ContractStatistics)(nil), "lbm.collection.v1.ContractStatistics") + proto.RegisterType((*ClassStatistics)(nil), "lbm.collection.v1.ClassStatistics") + proto.RegisterType((*Balance)(nil), "lbm.collection.v1.Balance") + proto.RegisterType((*ContractClasses)(nil), "lbm.collection.v1.ContractClasses") + proto.RegisterType((*ContractNFTs)(nil), "lbm.collection.v1.ContractNFTs") + proto.RegisterType((*ContractAuthorizations)(nil), "lbm.collection.v1.ContractAuthorizations") + proto.RegisterType((*ContractGrants)(nil), "lbm.collection.v1.ContractGrants") + proto.RegisterType((*NextClassIDs)(nil), "lbm.collection.v1.NextClassIDs") + proto.RegisterType((*ContractNextTokenIDs)(nil), "lbm.collection.v1.ContractNextTokenIDs") + proto.RegisterType((*NextTokenID)(nil), "lbm.collection.v1.NextTokenID") + proto.RegisterType((*ClassState)(nil), "lbm.collection.v1.ClassState") +} + +func init() { proto.RegisterFile("lbm/collection/v1/genesis.proto", fileDescriptor_2b8b3f666cffb1ec) } + +var fileDescriptor_2b8b3f666cffb1ec = []byte{ + // 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 { + if that == nil { + return this == nil + } + + that1, ok := that.(*Balance) + if !ok { + that2, ok := that.(Balance) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Address != that1.Address { + return false + } + if len(this.Amount) != len(that1.Amount) { + return false + } + for i := range this.Amount { + if !this.Amount[i].Equal(&that1.Amount[i]) { + return false + } + } + return true +} +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ClassState != nil { + { + size, err := m.ClassState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + if len(m.Burnts) > 0 { + for iNdEx := len(m.Burnts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Burnts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } + if len(m.Supplies) > 0 { + for iNdEx := len(m.Supplies) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Supplies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + } + if len(m.Authorizations) > 0 { + for iNdEx := len(m.Authorizations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Authorizations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.Grants) > 0 { + for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.Nfts) > 0 { + for iNdEx := len(m.Nfts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Nfts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.Balances) > 0 { + for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.NextTokenIds) > 0 { + for iNdEx := len(m.NextTokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NextTokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.Classes) > 0 { + for iNdEx := len(m.Classes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Classes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.NextClassIds) > 0 { + for iNdEx := len(m.NextClassIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NextClassIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Contracts) > 0 { + for iNdEx := len(m.Contracts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Contracts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ContractBalances) 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 *ContractBalances) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractBalances) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Balances) > 0 { + for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractStatistics) 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 *ContractStatistics) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractStatistics) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Statistics) > 0 { + for iNdEx := len(m.Statistics) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Statistics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ClassStatistics) 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 *ClassStatistics) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClassStatistics) 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 = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Balance) 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 *Balance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Balance) 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 = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractClasses) 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 *ContractClasses) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractClasses) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Classes) > 0 { + for iNdEx := len(m.Classes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Classes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractNFTs) 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 *ContractNFTs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractNFTs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Nfts) > 0 { + for iNdEx := len(m.Nfts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Nfts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractAuthorizations) 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 *ContractAuthorizations) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractAuthorizations) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Authorizations) > 0 { + for iNdEx := len(m.Authorizations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Authorizations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractGrants) 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 *ContractGrants) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractGrants) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Grants) > 0 { + for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NextClassIDs) 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 *NextClassIDs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NextClassIDs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.NonFungible.Size() + i -= size + if _, err := m.NonFungible.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractNextTokenIDs) 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 *ContractNextTokenIDs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractNextTokenIDs) 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-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NextTokenID) 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 *NextTokenID) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NextTokenID) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Id.Size() + i -= size + if _, err := m.Id.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ClassId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ClassState) 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 *ClassState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClassState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Ids) > 0 { + for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ids[iNdEx]) + copy(dAtA[i:], m.Ids[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Ids[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + { + size := m.Nonce.Size() + i -= size + if _, err := m.Nonce.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.Contracts) > 0 { + for _, e := range m.Contracts { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.NextClassIds) > 0 { + for _, e := range m.NextClassIds { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Classes) > 0 { + for _, e := range m.Classes { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.NextTokenIds) > 0 { + for _, e := range m.NextTokenIds { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Balances) > 0 { + for _, e := range m.Balances { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Nfts) > 0 { + for _, e := range m.Nfts { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Grants) > 0 { + for _, e := range m.Grants { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Authorizations) > 0 { + for _, e := range m.Authorizations { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Supplies) > 0 { + for _, e := range m.Supplies { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Burnts) > 0 { + for _, e := range m.Burnts { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.ClassState != nil { + l = m.ClassState.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *ContractBalances) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Balances) > 0 { + for _, e := range m.Balances { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ContractStatistics) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Statistics) > 0 { + for _, e := range m.Statistics { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ClassStatistics) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *Balance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ContractClasses) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Classes) > 0 { + for _, e := range m.Classes { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ContractNFTs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Nfts) > 0 { + for _, e := range m.Nfts { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ContractAuthorizations) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Authorizations) > 0 { + for _, e := range m.Authorizations { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *ContractGrants) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Grants) > 0 { + for _, e := range m.Grants { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *NextClassIDs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.NonFungible.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *ContractNextTokenIDs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *NextTokenID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClassId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.Id.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *ClassState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Nonce.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.Ids) > 0 { + for _, s := range m.Ids { + l = len(s) + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contracts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Contracts = append(m.Contracts, Contract{}) + if err := m.Contracts[len(m.Contracts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextClassIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextClassIds = append(m.NextClassIds, NextClassIDs{}) + if err := m.NextClassIds[len(m.NextClassIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Classes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Classes = append(m.Classes, ContractClasses{}) + if err := m.Classes[len(m.Classes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextTokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextTokenIds = append(m.NextTokenIds, ContractNextTokenIDs{}) + if err := m.NextTokenIds[len(m.NextTokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balances = append(m.Balances, ContractBalances{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nfts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nfts = append(m.Nfts, ContractNFTs{}) + if err := m.Nfts[len(m.Nfts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grants = append(m.Grants, ContractGrants{}) + if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authorizations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authorizations = append(m.Authorizations, ContractAuthorizations{}) + if err := m.Authorizations[len(m.Authorizations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Supplies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Supplies = append(m.Supplies, ContractStatistics{}) + if err := m.Supplies[len(m.Supplies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Burnts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Burnts = append(m.Burnts, ContractStatistics{}) + if err := m.Burnts[len(m.Burnts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassState", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ClassState == nil { + m.ClassState = &ClassState{} + } + if err := m.ClassState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractBalances) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractBalances: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractBalances: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balances = append(m.Balances, Balance{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractStatistics) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractStatistics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractStatistics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Statistics = append(m.Statistics, ClassStatistics{}) + if err := m.Statistics[len(m.Statistics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClassStatistics) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClassStatistics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClassStatistics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Balance) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Balance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Balance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.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 := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractClasses) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractClasses: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractClasses: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Classes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Classes = append(m.Classes, types.Any{}) + if err := m.Classes[len(m.Classes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractNFTs) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractNFTs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractNFTs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nfts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nfts = append(m.Nfts, NFT{}) + if err := m.Nfts[len(m.Nfts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractAuthorizations) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractAuthorizations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractAuthorizations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authorizations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authorizations = append(m.Authorizations, Authorization{}) + if err := m.Authorizations[len(m.Authorizations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractGrants) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractGrants: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractGrants: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grants = append(m.Grants, Grant{}) + if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NextClassIDs) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NextClassIDs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NextClassIDs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NonFungible", 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.NonFungible.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractNextTokenIDs) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractNextTokenIDs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractNextTokenIDs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, NextTokenID{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NextTokenID) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NextTokenID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NextTokenID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", 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.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClassState) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClassState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClassState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", 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.Nonce.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ids = append(m.Ids, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/collection/genesis_test.go b/x/collection/genesis_test.go new file mode 100644 index 0000000000..94fee13b8a --- /dev/null +++ b/x/collection/genesis_test.go @@ -0,0 +1,423 @@ +package collection_test + +import ( + "testing" + + "github.com/stretchr/testify/require" + + "cosmossdk.io/math" + + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" + authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func TestValidateGenesis(t *testing.T) { + ac := authcodec.NewBech32Codec("link") + addr, err := ac.BytesToString(secp256k1.GenPrivKey().PubKey().Address()) + require.NoError(t, err) + testCases := map[string]struct { + gs *collection.GenesisState + valid bool + }{ + "default genesis": { + collection.DefaultGenesisState(), + true, + }, + "contract of invalid contract id": { + &collection.GenesisState{ + Contracts: []collection.Contract{{ + Name: "tibetian fox", + Meta: "Tibetian Fox", + Uri: "file:///tibetian_fox.png", + }}, + }, + false, + }, + "contract of invalid name": { + &collection.GenesisState{ + Contracts: []collection.Contract{{ + Id: "deadbeef", + Name: string(make([]rune, 21)), + Meta: "Tibetian Fox", + Uri: "file:///tibetian_fox.png", + }}, + }, + false, + }, + "contract of invalid base img uri": { + &collection.GenesisState{ + Contracts: []collection.Contract{{ + Id: "deadbeef", + Name: "tibetian fox", + Uri: string(make([]rune, 1001)), + Meta: "Tibetian Fox", + }}, + }, + false, + }, + "contract of invalid meta": { + &collection.GenesisState{ + Contracts: []collection.Contract{{ + Id: "deadbeef", + Name: "tibetian fox", + Uri: "file:///tibetian_fox.png", + Meta: string(make([]rune, 1001)), + }}, + }, + false, + }, + "next class ids of invalid contract id": { + &collection.GenesisState{ + NextClassIds: []collection.NextClassIDs{{ + NonFungible: math.OneUint(), + }}, + }, + false, + }, + "contract classes of invalid contract id": { + &collection.GenesisState{ + Classes: []collection.ContractClasses{{ + Classes: []codectypes.Any{ + *collection.TokenClassToAny(&collection.NFTClass{ + Id: "deadbeef", + Name: "tibetian fox", + Meta: "Tibetian Fox", + }), + }, + }}, + }, + false, + }, + "contract classes of empty classes": { + &collection.GenesisState{ + Classes: []collection.ContractClasses{{ + ContractId: "deadbeef", + }}, + }, + false, + }, + "contract classes of invalid class": { + &collection.GenesisState{ + Classes: []collection.ContractClasses{{ + ContractId: "deadbeef", + Classes: []codectypes.Any{ + *collection.TokenClassToAny(&collection.NFTClass{ + Name: "tibetian fox", + Meta: "Tibetian Fox", + }), + }, + }}, + }, + false, + }, + "contract next token ids of invalid contract id": { + &collection.GenesisState{ + NextTokenIds: []collection.ContractNextTokenIDs{{ + TokenIds: []collection.NextTokenID{{ + ClassId: "deadbeef", + Id: math.ZeroUint(), + }}, + }}, + }, + false, + }, + "contract next token ids of empty classes": { + &collection.GenesisState{ + NextTokenIds: []collection.ContractNextTokenIDs{{ + ContractId: "deadbeef", + }}, + }, + false, + }, + "contract next token ids of invalid class": { + &collection.GenesisState{ + NextTokenIds: []collection.ContractNextTokenIDs{{ + ContractId: "deadbeef", + TokenIds: []collection.NextTokenID{{ + Id: math.ZeroUint(), + }}, + }}, + }, + false, + }, + "contract balances of invalid contract id": { + &collection.GenesisState{ + Balances: []collection.ContractBalances{{ + Balances: []collection.Balance{{ + Address: addr, + Amount: collection.NewCoins(collection.NewNFTCoin("00bab10c", 1)), + }}, + }}, + }, + false, + }, + "contract balances of empty balances": { + &collection.GenesisState{ + Balances: []collection.ContractBalances{{ + ContractId: "deadbeef", + }}, + }, + false, + }, + "contract balances of invalid address": { + &collection.GenesisState{ + Balances: []collection.ContractBalances{{ + ContractId: "deadbeef", + Balances: []collection.Balance{{ + Amount: collection.NewCoins(collection.NewNFTCoin("00bab10c", 111)), + }}, + }}, + }, + false, + }, + "contract balances of invalid amount": { + &collection.GenesisState{ + Balances: []collection.ContractBalances{{ + ContractId: "deadbeef", + Balances: []collection.Balance{{ + Address: addr, + }}, + }}, + }, + false, + }, + "contract nfts of invalid contract id": { + &collection.GenesisState{ + Nfts: []collection.ContractNFTs{{ + Nfts: []collection.NFT{{ + TokenId: collection.NewNFTID("deadbeef", 1), + Name: "tibetian fox", + Meta: "Tibetian Fox", + }}, + }}, + }, + false, + }, + "contract nfts of empty nfts": { + &collection.GenesisState{ + Nfts: []collection.ContractNFTs{{ + ContractId: "deadbeef", + }}, + }, + false, + }, + "contract nfts of invalid class": { + &collection.GenesisState{ + Nfts: []collection.ContractNFTs{{ + ContractId: "deadbeef", + Nfts: []collection.NFT{{ + Name: "tibetian fox", + Meta: "Tibetian Fox", + }}, + }}, + }, + false, + }, + "contract nfts of invalid name": { + &collection.GenesisState{ + Nfts: []collection.ContractNFTs{{ + ContractId: "deadbeef", + Nfts: []collection.NFT{{ + TokenId: collection.NewNFTID("deadbeef", 1), + Name: string(make([]rune, 21)), + Meta: "Tibetian Fox", + }}, + }}, + }, + false, + }, + "contract nfts of invalid meta": { + &collection.GenesisState{ + Nfts: []collection.ContractNFTs{{ + ContractId: "deadbeef", + Nfts: []collection.NFT{{ + TokenId: collection.NewNFTID("deadbeef", 1), + Name: "tibetian fox", + Meta: string(make([]rune, 1001)), + }}, + }}, + }, + false, + }, + "contract authorizations of invalid contract id": { + &collection.GenesisState{ + Authorizations: []collection.ContractAuthorizations{{ + Authorizations: []collection.Authorization{{ + Holder: addr, + Operator: addr, + }}, + }}, + }, + false, + }, + "contract authorizations of empty authorizations": { + &collection.GenesisState{ + Authorizations: []collection.ContractAuthorizations{{ + ContractId: "deadbeef", + }}, + }, + false, + }, + "contract authorizations of invalid holder": { + &collection.GenesisState{ + Authorizations: []collection.ContractAuthorizations{{ + ContractId: "deadbeef", + Authorizations: []collection.Authorization{{ + Operator: addr, + }}, + }}, + }, + false, + }, + "contract authorizations of invalid operator": { + &collection.GenesisState{ + Authorizations: []collection.ContractAuthorizations{{ + ContractId: "deadbeef", + Authorizations: []collection.Authorization{{ + Holder: addr, + }}, + }}, + }, + false, + }, + "contract grants of invalid contract id": { + &collection.GenesisState{ + Grants: []collection.ContractGrants{{ + Grants: []collection.Grant{{ + Grantee: addr, + Permission: collection.PermissionMint, + }}, + }}, + }, + false, + }, + "contract grants of empty grants": { + &collection.GenesisState{ + Grants: []collection.ContractGrants{{ + ContractId: "deadbeef", + }}, + }, + false, + }, + "contract grants of invalid grantee": { + &collection.GenesisState{ + Grants: []collection.ContractGrants{{ + ContractId: "deadbeef", + Grants: []collection.Grant{{ + Permission: collection.PermissionMint, + }}, + }}, + }, + false, + }, + "contract grants of invalid permission": { + &collection.GenesisState{ + Grants: []collection.ContractGrants{{ + ContractId: "deadbeef", + Grants: []collection.Grant{{ + Grantee: addr, + }}, + }}, + }, + false, + }, + "contract supplies of invalid contract id": { + &collection.GenesisState{ + Supplies: []collection.ContractStatistics{{ + Statistics: []collection.ClassStatistics{{ + ClassId: "deadbeef", + Amount: math.OneInt(), + }}, + }}, + }, + false, + }, + "contract supplies of empty supplies": { + &collection.GenesisState{ + Supplies: []collection.ContractStatistics{{ + ContractId: "deadbeef", + }}, + }, + false, + }, + "contract supplies of invalid class id": { + &collection.GenesisState{ + Supplies: []collection.ContractStatistics{{ + ContractId: "deadbeef", + Statistics: []collection.ClassStatistics{{ + Amount: math.OneInt(), + }}, + }}, + }, + false, + }, + "contract supplies of invalid operator": { + &collection.GenesisState{ + Supplies: []collection.ContractStatistics{{ + ContractId: "deadbeef", + Statistics: []collection.ClassStatistics{{ + ClassId: "deadbeef", + Amount: math.ZeroInt(), + }}, + }}, + }, + false, + }, + "contract burnts of invalid contract id": { + &collection.GenesisState{ + Burnts: []collection.ContractStatistics{{ + Statistics: []collection.ClassStatistics{{ + ClassId: "deadbeef", + Amount: math.OneInt(), + }}, + }}, + }, + false, + }, + "contract burnts of empty burnts": { + &collection.GenesisState{ + Burnts: []collection.ContractStatistics{{ + ContractId: "deadbeef", + }}, + }, + false, + }, + "contract burnts of invalid class id": { + &collection.GenesisState{ + Burnts: []collection.ContractStatistics{{ + ContractId: "deadbeef", + Statistics: []collection.ClassStatistics{{ + Amount: math.OneInt(), + }}, + }}, + }, + false, + }, + "contract burnts of invalid operator": { + &collection.GenesisState{ + Burnts: []collection.ContractStatistics{{ + ContractId: "deadbeef", + Statistics: []collection.ClassStatistics{{ + ClassId: "deadbeef", + Amount: math.ZeroInt(), + }}, + }}, + }, + false, + }, + } + + for name, tc := range testCases { + t.Run(name, func(t *testing.T) { + err := collection.ValidateGenesis(*tc.gs, ac) + if !tc.valid { + require.Error(t, err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/collection/go.mod b/x/collection/go.mod new file mode 100644 index 0000000000..3f73ff2aa4 --- /dev/null +++ b/x/collection/go.mod @@ -0,0 +1,166 @@ +module github.com/Finschia/finschia-sdk/x/collection + +go 1.21 + +require ( + cosmossdk.io/core v0.11.0 + cosmossdk.io/depinject v1.0.0-alpha.4 + cosmossdk.io/errors v1.0.1 + cosmossdk.io/log v1.3.0 + cosmossdk.io/math v1.2.0 + cosmossdk.io/store v1.0.2 + github.com/Finschia/finschia-sdk/api v0.0.0-20231227090232-78fde403b78c + github.com/cometbft/cometbft v0.38.3 + github.com/cosmos/cosmos-proto v1.0.0-beta.3 + github.com/cosmos/cosmos-sdk v0.50.3 + github.com/cosmos/gogoproto v1.4.11 + github.com/golang/protobuf v1.5.3 + github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/spf13/cobra v1.8.0 + github.com/stretchr/testify v1.8.4 + google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 + google.golang.org/grpc v1.61.0 +) + +require ( + cosmossdk.io/api v0.7.2 // indirect + cosmossdk.io/collections v0.4.0 // indirect + cosmossdk.io/x/tx v0.13.0 // indirect + filippo.io/edwards25519 v1.0.0 // indirect + github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect + github.com/99designs/keyring v1.2.1 // indirect + github.com/DataDog/datadog-go v3.2.0+incompatible // indirect + github.com/DataDog/zstd v1.5.5 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect + github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect + github.com/cenkalti/backoff/v4 v4.1.3 // indirect + github.com/cespare/xxhash v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/chzyer/readline v1.5.1 // indirect + github.com/cockroachdb/errors v1.11.1 // indirect + github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect + github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 // indirect + github.com/cockroachdb/redact v1.1.5 // indirect + github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect + github.com/cometbft/cometbft-db v0.9.1 // indirect + github.com/cosmos/btcutil v1.0.5 // indirect + github.com/cosmos/cosmos-db v1.0.0 // indirect + github.com/cosmos/go-bip39 v1.0.0 // indirect + github.com/cosmos/gogogateway v1.2.0 // indirect + github.com/cosmos/iavl v1.0.0 // indirect + github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect + github.com/danieljoos/wincred v1.1.2 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect + github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect + github.com/dgraph-io/badger/v2 v2.2007.4 // indirect + github.com/dgraph-io/ristretto v0.1.1 // indirect + github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect + github.com/dustin/go-humanize v1.0.1 // indirect + github.com/dvsekhvalnov/jose2go v1.5.0 // indirect + github.com/emicklei/dot v1.6.0 // indirect + github.com/fatih/color v1.15.0 // indirect + github.com/felixge/httpsnoop v1.0.2 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect + github.com/getsentry/sentry-go v0.25.0 // indirect + github.com/go-kit/kit v0.12.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect + github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect + github.com/gogo/googleapis v1.4.1 // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang/glog v1.2.0 // indirect + github.com/golang/mock v1.6.0 // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/google/btree v1.1.2 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/orderedcode v0.0.1 // indirect + github.com/gorilla/handlers v1.5.1 // indirect + github.com/gorilla/mux v1.8.0 // indirect + github.com/gorilla/websocket v1.5.0 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect + github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect + github.com/hashicorp/go-hclog v1.5.0 // indirect + github.com/hashicorp/go-immutable-radix v1.3.1 // indirect + github.com/hashicorp/go-metrics v0.5.1 // indirect + github.com/hashicorp/go-plugin v1.5.2 // indirect + github.com/hashicorp/golang-lru v1.0.2 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/hashicorp/yamux v0.1.1 // indirect + github.com/hdevalence/ed25519consensus v0.1.0 // indirect + github.com/huandu/skiplist v1.2.0 // indirect + github.com/iancoleman/strcase v0.3.0 // indirect + github.com/improbable-eng/grpc-web v0.15.0 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/jmhodges/levigo v1.0.0 // indirect + github.com/klauspost/compress v1.17.4 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect + github.com/lib/pq v1.10.7 // indirect + github.com/libp2p/go-buffer-pool v0.1.0 // indirect + github.com/linxGnu/grocksdb v1.8.6 // indirect + github.com/magiconair/properties v1.8.7 // indirect + github.com/manifoldco/promptui v0.9.0 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect + github.com/minio/highwayhash v1.0.2 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/mtibben/percent v0.2.1 // indirect + github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect + github.com/oklog/run v1.1.0 // indirect + github.com/pelletier/go-toml/v2 v2.1.0 // indirect + github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/prometheus/client_golang v1.17.0 // indirect + github.com/prometheus/client_model v0.5.0 // indirect + github.com/prometheus/common v0.45.0 // indirect + github.com/prometheus/procfs v0.12.0 // indirect + github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect + github.com/rs/cors v1.8.3 // indirect + github.com/rs/zerolog v1.31.0 // indirect + github.com/sagikazarmark/locafero v0.4.0 // indirect + github.com/sagikazarmark/slog-shim v0.1.0 // indirect + github.com/sasha-s/go-deadlock v0.3.1 // indirect + github.com/sourcegraph/conc v0.3.0 // indirect + github.com/spf13/afero v1.11.0 // indirect + github.com/spf13/cast v1.6.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.18.2 // indirect + github.com/subosito/gotenv v1.6.0 // indirect + github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect + github.com/tendermint/go-amino v0.16.0 // indirect + github.com/tidwall/btree v1.7.0 // indirect + github.com/zondax/hid v0.9.2 // indirect + github.com/zondax/ledger-go v0.14.3 // indirect + go.etcd.io/bbolt v1.3.8 // indirect + go.uber.org/multierr v1.10.0 // indirect + golang.org/x/crypto v0.18.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/net v0.20.0 // indirect + golang.org/x/sync v0.5.0 // indirect + golang.org/x/sys v0.16.0 // indirect + golang.org/x/term v0.16.0 // indirect + golang.org/x/text v0.14.0 // indirect + google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect + google.golang.org/protobuf v1.32.0 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect + gotest.tools/v3 v3.5.1 // indirect + nhooyr.io/websocket v1.8.6 // indirect + pgregory.net/rapid v1.1.0 // indirect + sigs.k8s.io/yaml v1.3.0 // indirect +) + +replace ( + github.com/Finschia/finschia-sdk/api => ../../api + github.com/cometbft/cometbft => github.com/Finschia/cometbft v0.0.0-20231127181424-2aacfbe9832d + github.com/cosmos/cosmos-sdk v0.50.2 => github.com/Finschia/cosmos-sdk v0.0.0-20231211060251-d8fb76d4c267 +) diff --git a/x/collection/go.sum b/x/collection/go.sum new file mode 100644 index 0000000000..cb86295e08 --- /dev/null +++ b/x/collection/go.sum @@ -0,0 +1,1028 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cosmossdk.io/api v0.7.2 h1:BO3i5fvKMKvfaUiMkCznxViuBEfyWA/k6w2eAF6q1C4= +cosmossdk.io/api v0.7.2/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= +cosmossdk.io/collections v0.4.0/go.mod h1:oa5lUING2dP+gdDquow+QjlF45eL1t4TJDypgGd+tv0= +cosmossdk.io/core v0.11.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= +cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= +cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= +cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= +cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= +cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= +cosmossdk.io/log v1.3.0 h1:L0Z0XstClo2kOU4h3V1iDoE5Ji64sg5HLOogzGg67Oo= +cosmossdk.io/log v1.3.0/go.mod h1:HIDyvWLqZe2ovlWabsDN4aPMpY/nUEquAhgfTf2ZzB8= +cosmossdk.io/math v1.2.0 h1:8gudhTkkD3NxOP2YyyJIYYmt6dQ55ZfJkDOaxXpy7Ig= +cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= +cosmossdk.io/store v1.0.2 h1:lSg5BTvJBHUDwswNNyeh4K/CbqiHER73VU4nDNb8uk0= +cosmossdk.io/store v1.0.2/go.mod h1:EFtENTqVTuWwitGW1VwaBct+yDagk7oG/axBMPH+FXs= +cosmossdk.io/x/tx v0.13.0 h1:8lzyOh3zONPpZv2uTcUmsv0WTXy6T1/aCVDCqShmpzU= +cosmossdk.io/x/tx v0.13.0/go.mod h1:CpNQtmoqbXa33/DVxWQNx5Dcnbkv2xGUhL7tYQ5wUsY= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= +filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= +github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= +github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= +github.com/99designs/keyring v1.2.1 h1:tYLp1ULvO7i3fI5vE21ReQuj99QFSs7lGm0xWyJo87o= +github.com/99designs/keyring v1.2.1/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= +github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= +github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= +github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= +github.com/Finschia/cometbft v0.0.0-20231127181424-2aacfbe9832d h1:7x3LqhrO4lXTt3kh0eCwSzGAE+sUn6tjhKNfGOE/nc8= +github.com/Finschia/cometbft v0.0.0-20231127181424-2aacfbe9832d/go.mod h1:PIi48BpzwlHqtV3mzwPyQgOyOnU94BNBimLS2ebBHOg= +github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= +github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= +github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= +github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= +github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= +github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= +github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= +github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= +github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= +github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= +github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= +github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= +github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= +github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= +github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipusjXSohQ= +github.com/btcsuite/btcd/btcutil v1.1.3/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY= +github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE= +github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= +github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= +github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= +github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= +github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= +github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= +github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI= +github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04= +github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= +github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= +github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= +github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= +github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= +github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4= +github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= +github.com/cockroachdb/errors v1.11.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= +github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 h1:g+Y6IAf28JinY3zNdXwpw71SBGhLEb72kGQgiR5XKZM= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6/go.mod h1:acMRUGd/BK8AUmQNK3spUCCGzFLZU2bSST3NMXSq2Kc= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= +github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= +github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWaxWJ4M= +github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U= +github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= +github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= +github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= +github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= +github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= +github.com/cosmos/cosmos-db v1.0.0 h1:EVcQZ+qYag7W6uorBKFPvX6gRjw6Uq2hIh4hCWjuQ0E= +github.com/cosmos/cosmos-db v1.0.0/go.mod h1:iBvi1TtqaedwLdcrZVYRSSCb6eSy61NLj4UNmdIgs0U= +github.com/cosmos/cosmos-proto v1.0.0-beta.3 h1:VitvZ1lPORTVxkmF2fAp3IiA61xVwArQYKXTdEcpW6o= +github.com/cosmos/cosmos-proto v1.0.0-beta.3/go.mod h1:t8IASdLaAq+bbHbjq4p960BvcTqtwuAxid3b/2rOD6I= +github.com/cosmos/cosmos-sdk v0.50.3 h1:zP0AXm54ws2t2qVWvcQhEYVafhOAREU2QL0gnbwjvXw= +github.com/cosmos/cosmos-sdk v0.50.3/go.mod h1:tlrkY1sntOt1q0OX/rqF0zRJtmXNoffAS6VFTcky+w8= +github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= +github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= +github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= +github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ4GUkT+tbFI= +github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= +github.com/cosmos/gogoproto v1.4.11 h1:LZcMHrx4FjUgrqQSWeaGC1v/TeuVFqSLa43CC6aWR2g= +github.com/cosmos/gogoproto v1.4.11/go.mod h1:/g39Mh8m17X8Q/GDEs5zYTSNaNnInBSohtaxzQnYq1Y= +github.com/cosmos/iavl v1.0.0 h1:bw6t0Mv/mVCJvlMTOPHWLs5uUE3BRBfVWCRelOzl+so= +github.com/cosmos/iavl v1.0.0/go.mod h1:CmTGqMnRnucjxbjduneZXT+0vPgNElYvdefjX2q9tYc= +github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= +github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= +github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= +github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= +github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= +github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= +github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= +github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= +github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= +github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= +github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= +github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= +github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= +github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= +github.com/dvsekhvalnov/jose2go v1.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= +github.com/dvsekhvalnov/jose2go v1.5.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= +github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= +github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= +github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/emicklei/dot v1.6.0 h1:vUzuoVE8ipzS7QkES4UfxdpCwdU2U97m2Pb2tQCoYRY= +github.com/emicklei/dot v1.6.0/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= +github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= +github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o= +github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= +github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= +github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= +github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= +github.com/getsentry/sentry-go v0.25.0 h1:q6Eo+hS+yoJlTO3uu/azhQadsD8V+jQn2D8VvX1eOyI= +github.com/getsentry/sentry-go v0.25.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= +github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= +github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= +github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= +github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk= +github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= +github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= +github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= +github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= +github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= +github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= +github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= +github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= +github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= +github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ= +github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4dMGDBiPU55YFDl0WbKdWU= +github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= +github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= +github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= +github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= +github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= +github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= +github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= +github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= +github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= +github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= +github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6xDCrzib4= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= +github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= +github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= +github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= +github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= +github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= +github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= +github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= +github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= +github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= +github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= +github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= +github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-metrics v0.5.1 h1:rfPwUqFU6uZXNvGl4hzjY8LEBsqFVU4si1H9/Hqck/U= +github.com/hashicorp/go-metrics v0.5.1/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= +github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= +github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= +github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= +github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= +github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= +github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= +github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= +github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= +github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= +github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw= +github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= +github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= +github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= +github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= +github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/jhump/protoreflect v1.15.3 h1:6SFRuqU45u9hIZPJAoZ8c28T3nK64BNdp9w6jFonzls= +github.com/jhump/protoreflect v1.15.3/go.mod h1:4ORHmSBmlCW8fh3xHmJMGyul1zNqZK4Elxc8qKP+p1k= +github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= +github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= +github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= +github.com/klauspost/compress v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4= +github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= +github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= +github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= +github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= +github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= +github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= +github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= +github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= +github.com/linxGnu/grocksdb v1.8.6 h1:O7I6SIGPrypf3f/gmrrLUBQDKfO8uOoYdWf4gLS06tc= +github.com/linxGnu/grocksdb v1.8.6/go.mod h1:xZCIb5Muw+nhbDK4Y5UJuOrin5MceOuiXkVUR7vp4WY= +github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= +github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= +github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= +github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= +github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= +github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= +github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= +github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= +github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= +github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= +github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= +github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= +github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= +github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= +github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= +github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= +github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= +github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= +github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= +github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= +github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= +github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q= +github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= +github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= +github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= +github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= +github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= +github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= +github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= +github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= +github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= +github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= +github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= +github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= +github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= +github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= +github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc h1:8bQZVK1X6BJR/6nYUPxQEP+ReTsceJTKizeuwjWOPUA= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= +github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= +github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= +github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= +github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= +github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= +github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= +github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= +github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= +github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= +github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= +github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= +github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= +github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= +github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A= +github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= +github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= +github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= +github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= +github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= +github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= +github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= +github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= +github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= +github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= +github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= +github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= +github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= +github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= +github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= +github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= +github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= +github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= +github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= +github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= +github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= +github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= +github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= +github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= +github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= +github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= +github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= +github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= +github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= +github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= +go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/bbolt v1.3.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= +go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= +go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= +go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= +go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= +go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc= +golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= +golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.16.0 h1:m+B6fahuftsE9qjo0VWp2FW0mB3MTJvR0BaMQrq0pmE= +golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe h1:USL2DhxfgRchafRvt/wYyyQNzwgL7ZiURcozOE/Pkvo= +google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:cc8bqMqtv9gMOr0zHg2Vzff5ULhhL2IXP4sbcn32Dro= +google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 h1:x9PwdEgd11LgK+orcck69WVRo7DezSO4VUMPI4xpc8A= +google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014/go.mod h1:rbHMSEDyoYX62nRVLOCc4Qt1HbsdytAYoVwgjiOhF3I= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe h1:bQnxqljG/wqi4NTXu2+DJ3n7APcEA882QZ1JvhQAq9o= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s= +google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.61.0 h1:TOvOcuXn30kRao+gfcvsebNEa5iZIiLkisYEkf7R7o0= +google.golang.org/grpc v1.61.0/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= +gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= +gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= +gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= +honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= +nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= +pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= +pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= +sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/x/collection/keeper/alias.go b/x/collection/keeper/alias.go new file mode 100644 index 0000000000..7f97dad057 --- /dev/null +++ b/x/collection/keeper/alias.go @@ -0,0 +1,253 @@ +package keeper + +import ( + "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" + + "github.com/cosmos/cosmos-sdk/runtime" + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +// iterate through the balances of a contract and perform the provided function +func (k Keeper) iterateContractBalances(ctx sdk.Context, contractID string, fn func(address sdk.AccAddress, balance collection.Coin) (stop bool)) { + k.iterateBalancesImpl(ctx, balanceKeyPrefixByContractID(contractID), func(_ string, address sdk.AccAddress, balance collection.Coin) (stop bool) { + return fn(address, balance) + }) +} + +func (k Keeper) iterWithPrefix(ctx sdk.Context, prefix []byte) storetypes.Iterator { + store := k.storeService.OpenKVStore(ctx) + adapter := runtime.KVStoreAdapter(store) + iterator := storetypes.KVStorePrefixIterator(adapter, prefix) + return iterator +} + +func (k Keeper) iterateBalancesImpl(ctx sdk.Context, prefix []byte, fn func(contractID string, address sdk.AccAddress, balance collection.Coin) (stop bool)) { + iterator := k.iterWithPrefix(ctx, prefix) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + contractID, address, tokenID := splitBalanceKey(iterator.Key()) + + var amount math.Int + if err := amount.Unmarshal(iterator.Value()); err != nil { + panic(err) + } + balance := collection.NewCoin(tokenID, amount) + + stop := fn(contractID, address, balance) + if stop { + break + } + } +} + +func (k Keeper) iterateContracts(ctx sdk.Context, fn func(contract collection.Contract) (stop bool)) { + iterator := k.iterWithPrefix(ctx, contractKeyPrefix) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var contract collection.Contract + k.cdc.MustUnmarshal(iterator.Value(), &contract) + + stop := fn(contract) + if stop { + break + } + } +} + +func (k Keeper) iterateContractClasses(ctx sdk.Context, contractID string, fn func(class collection.TokenClass) (stop bool)) { + k.iterateClassesImpl(ctx, classKeyPrefixByContractID(contractID), fn) +} + +// iterate through the classes and perform the provided function +func (k Keeper) iterateClassesImpl(ctx sdk.Context, prefix []byte, fn func(class collection.TokenClass) (stop bool)) { + iterator := k.iterWithPrefix(ctx, prefix) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var class collection.TokenClass + if err := k.cdc.UnmarshalInterface(iterator.Value(), &class); err != nil { + panic(err) + } + + stop := fn(class) + if stop { + break + } + } +} + +func (k Keeper) iterateContractGrants(ctx sdk.Context, contractID string, fn func(grant collection.Grant) (stop bool)) { + k.iterateGrantsImpl(ctx, grantKeyPrefixByContractID(contractID), func(_ string, grant collection.Grant) (stop bool) { + return fn(grant) + }) +} + +func (k Keeper) iterateGrantsImpl(ctx sdk.Context, prefix []byte, fn func(contractID string, grant collection.Grant) (stop bool)) { + iterator := k.iterWithPrefix(ctx, prefix) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + contractID, grantee, permission := splitGrantKey(iterator.Key()) + grant := collection.Grant{ + Grantee: k.bytesToString(grantee), + Permission: permission, + } + + stop := fn(contractID, grant) + if stop { + break + } + } +} + +func (k Keeper) iterateContractAuthorizations(ctx sdk.Context, contractID string, fn func(authorization collection.Authorization) (stop bool)) { + k.iterateAuthorizationsImpl(ctx, authorizationKeyPrefixByContractID(contractID), func(_ string, authorization collection.Authorization) (stop bool) { + return fn(authorization) + }) +} + +func (k Keeper) iterateAuthorizationsImpl(ctx sdk.Context, prefix []byte, fn func(contractID string, authorization collection.Authorization) (stop bool)) { + iterator := k.iterWithPrefix(ctx, prefix) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + contractID, operator, holder := splitAuthorizationKey(iterator.Key()) + authorization := collection.Authorization{ + Holder: k.bytesToString(holder), + Operator: k.bytesToString(operator), + } + + stop := fn(contractID, authorization) + if stop { + break + } + } +} + +func (k Keeper) iterateContractNFTs(ctx sdk.Context, contractID string, fn func(nft collection.NFT) (stop bool)) { + k.iterateNFTsImpl(ctx, nftKeyPrefixByContractID(contractID), func(_ string, nft collection.NFT) (stop bool) { + return fn(nft) + }) +} + +func (k Keeper) iterateNFTsImpl(ctx sdk.Context, prefix []byte, fn func(contractID string, NFT collection.NFT) (stop bool)) { + iterator := k.iterWithPrefix(ctx, prefix) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + contractID, _ := splitNFTKey(iterator.Key()) + + var nft collection.NFT + k.cdc.MustUnmarshal(iterator.Value(), &nft) + + if fn(contractID, nft) { + break + } + } +} + +func (k Keeper) iterateStatisticsImpl(ctx sdk.Context, prefix []byte, fn func(contractID, classID string, amount math.Int) (stop bool)) { + iterator := k.iterWithPrefix(ctx, prefix) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var amount math.Int + if err := amount.Unmarshal(iterator.Value()); err != nil { + panic(err) + } + + keyPrefix := prefix[:1] + contractID, classID := splitStatisticKey(keyPrefix, iterator.Key()) + + stop := fn(contractID, classID, amount) + if stop { + break + } + } +} + +func (k Keeper) iterateContractSupplies(ctx sdk.Context, contractID string, fn func(classID string, amount math.Int) (stop bool)) { + k.iterateStatisticsImpl(ctx, statisticKeyPrefixByContractID(supplyKeyPrefix, contractID), func(_, classID string, amount math.Int) (stop bool) { + return fn(classID, amount) + }) +} + +func (k Keeper) iterateContractBurnts(ctx sdk.Context, contractID string, fn func(classID string, amount math.Int) (stop bool)) { + k.iterateStatisticsImpl(ctx, statisticKeyPrefixByContractID(burntKeyPrefix, contractID), func(_, classID string, amount math.Int) (stop bool) { + return fn(classID, amount) + }) +} + +// iterate through the next token class ids and perform the provided function +func (k Keeper) iterateNextTokenClassIDs(ctx sdk.Context, fn func(class collection.NextClassIDs) (stop bool)) { + iterator := k.iterWithPrefix(ctx, nextClassIDKeyPrefix) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var class collection.NextClassIDs + k.cdc.MustUnmarshal(iterator.Value(), &class) + + stop := fn(class) + if stop { + break + } + } +} + +func (k Keeper) iterateContractNextTokenIDs(ctx sdk.Context, contractID string, fn func(nextID collection.NextTokenID) (stop bool)) { + k.iterateNextTokenIDsImpl(ctx, nextTokenIDKeyPrefixByContractID(contractID), func(_ string, nextID collection.NextTokenID) (stop bool) { + return fn(nextID) + }) +} + +// iterate through the next (non-fungible) token ids and perform the provided function +func (k Keeper) iterateNextTokenIDsImpl(ctx sdk.Context, prefix []byte, fn func(contractID string, nextID collection.NextTokenID) (stop bool)) { + iterator := k.iterWithPrefix(ctx, prefix) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + contractID, classID := splitNextTokenIDKey(iterator.Key()) + + var id math.Uint + if err := id.Unmarshal(iterator.Value()); err != nil { + panic(err) + } + + nextID := collection.NextTokenID{ + ClassId: classID, + Id: id, + } + + stop := fn(contractID, nextID) + if stop { + break + } + } +} + +// iterate through the classes and perform the provided function +func (k Keeper) iterateClassStoreIDs(ctx sdk.Context, fn func(id string) (stop bool)) { + iterator := k.iterWithPrefix(ctx, append(classStorePrefix, idKeyPrefix...)) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + id := splitIDKey(iterator.Key()[len(classStorePrefix):]) + stop := fn(id) + if stop { + break + } + } +} + +func (k Keeper) bytesToString(addressBytes []byte) string { + addr, err := k.addressCodec.BytesToString(addressBytes) + if err != nil { + panic(err) + } + return addr +} diff --git a/x/collection/keeper/class.go b/x/collection/keeper/class.go new file mode 100644 index 0000000000..a11c311d70 --- /dev/null +++ b/x/collection/keeper/class.go @@ -0,0 +1,95 @@ +package keeper + +import ( + "encoding/binary" + "fmt" + "hash/fnv" + "math" + + cmath "cosmossdk.io/math" + "cosmossdk.io/store/prefix" + + "github.com/cosmos/cosmos-sdk/runtime" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var ( + nonceKey = []byte{0x01} + idKeyPrefix = []byte{0x02} +) + +func idKey(id string) []byte { + key := make([]byte, len(idKeyPrefix)+len(id)) + copy(key, idKeyPrefix) + copy(key[len(idKeyPrefix):], id) + return key +} + +func splitIDKey(key []byte) (id string) { + return string(key[len(idKeyPrefix):]) +} + +// NewID returns a brand-new ID. +func (k Keeper) NewID(ctx sdk.Context) string { + for nonce := k.getNonce(ctx); nonce.LTE(cmath.NewUint(math.MaxUint64)); nonce = nonce.Incr() { + encoded := nonceToID(nonce.Uint64()) + if !k.HasID(ctx, encoded) { + k.addID(ctx, encoded) + k.setNonce(ctx, nonce.Incr()) + return encoded + } + } + panic("contract id space exhausted: uint64") +} + +func nonceToID(nonce uint64) string { + hash := fnv.New32() + bz := make([]byte, 8) + binary.LittleEndian.PutUint64(bz, nonce) + _, err := hash.Write(bz) + if err != nil { + panic("hash should not fail") + } + id := fmt.Sprintf("%x", hash.Sum32()) + if len(id) < 8 { + id = "00000000"[len(id):] + id + } + return id +} + +func (k Keeper) getNonce(ctx sdk.Context) cmath.Uint { + classStore := prefix.NewStore(runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)), classStorePrefix) + bz := classStore.Get(nonceKey) + if bz == nil { + panic("next id must exist") + } + var nonce cmath.Uint + if err := nonce.Unmarshal(bz); err != nil { + panic(err) + } + return nonce +} + +func (k Keeper) setNonce(ctx sdk.Context, nonce cmath.Uint) { + classStore := prefix.NewStore(runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)), classStorePrefix) + bz, err := nonce.Marshal() + if err != nil { + panic(err) + } + classStore.Set(nonceKey, bz) +} + +func (k Keeper) addID(ctx sdk.Context, id string) { + classStore := prefix.NewStore(runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)), classStorePrefix) + classStore.Set(idKey(id), []byte{}) +} + +func (k Keeper) HasID(ctx sdk.Context, id string) bool { + classStore := prefix.NewStore(runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)), classStorePrefix) + return classStore.Has(idKey(id)) +} + +func (k Keeper) DeleteID(ctx sdk.Context, id string) { + classStore := prefix.NewStore(runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)), classStorePrefix) + classStore.Delete(idKey(id)) +} diff --git a/x/collection/keeper/genesis.go b/x/collection/keeper/genesis.go new file mode 100644 index 0000000000..21c151781e --- /dev/null +++ b/x/collection/keeper/genesis.go @@ -0,0 +1,424 @@ +package keeper + +import ( + "fmt" + + "cosmossdk.io/log" + "cosmossdk.io/math" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +type ProgressReporter struct { + logger log.Logger + + workName string + workSize int + workIndex int + + prevPercentage int +} + +func newProgressReporter(logger log.Logger, workName string, workSize int) ProgressReporter { + reporter := ProgressReporter{ + logger: logger, + workName: workName, + workSize: workSize, + } + reporter.report() + + return reporter +} + +func (p ProgressReporter) report() { + if p.workSize == 0 { + p.logger.Info(fmt.Sprintf("Empty %s", p.workName)) + return + } + + switch p.prevPercentage { + case 0: + p.logger.Info(fmt.Sprintf("Starting %s ...", p.workName)) + case 100: + p.logger.Info(fmt.Sprintf("Done %s", p.workName)) + default: + p.logger.Info(fmt.Sprintf("Progress: %d%%", p.prevPercentage)) + } +} + +func (p *ProgressReporter) Tick() { + if p.workIndex > p.workSize-1 { + return + } + p.workIndex++ + + if percentage := 100 * p.workIndex / p.workSize; percentage != p.prevPercentage { + p.prevPercentage = percentage + p.report() + } +} + +// InitGenesis new collection genesis +func (k Keeper) InitGenesis(ctx sdk.Context, data *collection.GenesisState) { + addressCodec := k.addressCodec + k.SetParams(ctx, data.Params) + + reporter := newProgressReporter(k.Logger(ctx), "import contract", len(data.Contracts)) + for _, contract := range data.Contracts { + k.setContract(ctx, contract) + reporter.Tick() + } + + reporter = newProgressReporter(k.Logger(ctx), "import next class ids", len(data.NextClassIds)) + for _, nextClassIDs := range data.NextClassIds { + k.setNextClassIDs(ctx, nextClassIDs) + reporter.Tick() + } + + reporter = newProgressReporter(k.Logger(ctx), "import classes", len(data.Classes)) + for _, contractClasses := range data.Classes { + contractID := contractClasses.ContractId + + for i := range contractClasses.Classes { + anyv := &contractClasses.Classes[i] + class := collection.TokenClassFromAny(anyv) + k.setTokenClass(ctx, contractID, class) + } + + reporter.Tick() + } + + reporter = newProgressReporter(k.Logger(ctx), "import next token ids", len(data.NextTokenIds)) + for _, contractNextTokenIDs := range data.NextTokenIds { + contractID := contractNextTokenIDs.ContractId + + for _, nextTokenID := range contractNextTokenIDs.TokenIds { + k.setNextTokenID(ctx, contractID, nextTokenID.ClassId, nextTokenID.Id) + } + + reporter.Tick() + } + + reporter = newProgressReporter(k.Logger(ctx), "import balances", len(data.Balances)) + for _, contractBalances := range data.Balances { + contractID := contractBalances.ContractId + + for _, balance := range contractBalances.Balances { + for _, coin := range balance.Amount { + addr, err := addressCodec.StringToBytes(balance.Address) + if err != nil { + panic(err) + } + + k.setBalance(ctx, contractID, addr, coin.TokenId, coin.Amount) + + if err := collection.ValidateNFTID(coin.TokenId); err == nil { + k.setOwner(ctx, contractID, coin.TokenId, addr) + } + } + } + + reporter.Tick() + } + + reporter = newProgressReporter(k.Logger(ctx), "import nfts", len(data.Nfts)) + for _, contractNFTs := range data.Nfts { + contractID := contractNFTs.ContractId + + for _, nft := range contractNFTs.Nfts { + k.setNFT(ctx, contractID, nft) + } + + reporter.Tick() + } + + reporter = newProgressReporter(k.Logger(ctx), "import authorizations", len(data.Authorizations)) + for _, contractAuthorizations := range data.Authorizations { + for _, authorization := range contractAuthorizations.Authorizations { + holderAddr, err := addressCodec.StringToBytes(authorization.Holder) + if err != nil { + panic(err) + } + operatorAddr, err := addressCodec.StringToBytes(authorization.Operator) + if err != nil { + panic(err) + } + k.setAuthorization(ctx, contractAuthorizations.ContractId, holderAddr, operatorAddr) + } + + reporter.Tick() + } + + reporter = newProgressReporter(k.Logger(ctx), "import grants", len(data.Grants)) + for _, contractGrants := range data.Grants { + for _, grant := range contractGrants.Grants { + granteeAddr, err := addressCodec.StringToBytes(grant.Grantee) + if err != nil { + panic(err) + } + k.setGrant(ctx, contractGrants.ContractId, granteeAddr, grant.Permission) + } + + reporter.Tick() + } + + reporter = newProgressReporter(k.Logger(ctx), "import statistics (burnt)", len(data.Burnts)) + for _, contractBurnts := range data.Burnts { + contractID := contractBurnts.ContractId + for _, burnt := range contractBurnts.Statistics { + k.setBurnt(ctx, contractID, burnt.ClassId, burnt.Amount) + } + + reporter.Tick() + } + + reporter = newProgressReporter(k.Logger(ctx), "import statistics (supply)", len(data.Supplies)) + for _, contractSupplies := range data.Supplies { + contractID := contractSupplies.ContractId + for _, supply := range contractSupplies.Statistics { + k.setSupply(ctx, contractID, supply.ClassId, supply.Amount) + + // calculate the amount of minted tokens + burnt := k.GetBurnt(ctx, contractID, supply.ClassId) + minted := supply.Amount.Add(burnt) + k.setMinted(ctx, contractID, supply.ClassId, minted) + } + + reporter.Tick() + } + + reporter = newProgressReporter(k.Logger(ctx), "import class states", len(data.ClassState.Ids)) + k.setNonce(ctx, data.ClassState.Nonce) + for _, id := range data.ClassState.Ids { + k.addID(ctx, id) + reporter.Tick() + } +} + +// ExportGenesis returns a GenesisState for a given context. +func (k Keeper) ExportGenesis(ctx sdk.Context) *collection.GenesisState { + contracts := k.getContracts(ctx) + + return &collection.GenesisState{ + Params: k.GetParams(ctx), + Contracts: contracts, + NextClassIds: k.getAllNextClassIDs(ctx), + Classes: k.getClasses(ctx, contracts), + NextTokenIds: k.getNextTokenIDs(ctx, contracts), + Balances: k.getBalances(ctx, contracts), + Nfts: k.getNFTs(ctx, contracts), + Grants: k.getGrants(ctx, contracts), + Authorizations: k.getAuthorizations(ctx, contracts), + Supplies: k.getSupplies(ctx, contracts), + Burnts: k.getBurnts(ctx, contracts), + ClassState: k.getClassStates(ctx), + } +} + +func (k Keeper) getContracts(ctx sdk.Context) []collection.Contract { + var contracts []collection.Contract + k.iterateContracts(ctx, func(contract collection.Contract) (stop bool) { + contracts = append(contracts, contract) + return false + }) + + return contracts +} + +func (k Keeper) getClasses(ctx sdk.Context, contracts []collection.Contract) []collection.ContractClasses { + var classes []collection.ContractClasses + for _, contract := range contracts { + contractID := contract.Id + contractClasses := collection.ContractClasses{ + ContractId: contractID, + } + + k.iterateContractClasses(ctx, contractID, func(class collection.TokenClass) (stop bool) { + anyv := collection.TokenClassToAny(class) + contractClasses.Classes = append(contractClasses.Classes, *anyv) + return false + }) + if len(contractClasses.Classes) != 0 { + classes = append(classes, contractClasses) + } + } + + return classes +} + +func (k Keeper) getAllNextClassIDs(ctx sdk.Context) []collection.NextClassIDs { + var nextIDs []collection.NextClassIDs + k.iterateNextTokenClassIDs(ctx, func(ids collection.NextClassIDs) (stop bool) { + nextIDs = append(nextIDs, ids) + return false + }) + + return nextIDs +} + +func (k Keeper) getNextTokenIDs(ctx sdk.Context, contracts []collection.Contract) []collection.ContractNextTokenIDs { + var nextIDs []collection.ContractNextTokenIDs + for _, contract := range contracts { + contractID := contract.Id + contractNextIDs := collection.ContractNextTokenIDs{ + ContractId: contractID, + } + + k.iterateContractNextTokenIDs(ctx, contractID, func(nextID collection.NextTokenID) (stop bool) { + contractNextIDs.TokenIds = append(contractNextIDs.TokenIds, nextID) + return false + }) + if len(contractNextIDs.TokenIds) != 0 { + nextIDs = append(nextIDs, contractNextIDs) + } + } + + return nextIDs +} + +func (k Keeper) getBalances(ctx sdk.Context, contracts []collection.Contract) []collection.ContractBalances { + var balances []collection.ContractBalances + for _, contract := range contracts { + contractID := contract.Id + contractBalances := collection.ContractBalances{ + ContractId: contractID, + } + + contractBalances.Balances = k.getContractBalances(ctx, contractID) + if len(contractBalances.Balances) != 0 { + balances = append(balances, contractBalances) + } + } + + return balances +} + +func (k Keeper) getContractBalances(ctx sdk.Context, contractID string) []collection.Balance { + var balances []collection.Balance + addressToBalanceIndex := make(map[string]int) + + k.iterateContractBalances(ctx, contractID, func(address sdk.AccAddress, balance collection.Coin) (stop bool) { + index, ok := addressToBalanceIndex[k.bytesToString(address)] + if ok { + balances[index].Amount = append(balances[index].Amount, balance) + return false + } + + accountBalance := collection.Balance{ + Address: k.bytesToString(address), + Amount: collection.Coins{balance}, + } + balances = append(balances, accountBalance) + addressToBalanceIndex[k.bytesToString(address)] = len(balances) - 1 + return false + }) + + return balances +} + +func (k Keeper) getNFTs(ctx sdk.Context, contracts []collection.Contract) []collection.ContractNFTs { + var parents []collection.ContractNFTs + for _, contract := range contracts { + contractID := contract.Id + contractParents := collection.ContractNFTs{ + ContractId: contractID, + } + + k.iterateContractNFTs(ctx, contractID, func(nft collection.NFT) (stop bool) { + contractParents.Nfts = append(contractParents.Nfts, nft) + return false + }) + if len(contractParents.Nfts) != 0 { + parents = append(parents, contractParents) + } + } + + return parents +} + +func (k Keeper) getAuthorizations(ctx sdk.Context, contracts []collection.Contract) []collection.ContractAuthorizations { + var authorizations []collection.ContractAuthorizations + for _, contract := range contracts { + contractID := contract.Id + contractAuthorizations := collection.ContractAuthorizations{ + ContractId: contractID, + } + + k.iterateContractAuthorizations(ctx, contractID, func(authorization collection.Authorization) (stop bool) { + contractAuthorizations.Authorizations = append(contractAuthorizations.Authorizations, authorization) + return false + }) + if len(contractAuthorizations.Authorizations) != 0 { + authorizations = append(authorizations, contractAuthorizations) + } + } + + return authorizations +} + +func (k Keeper) getGrants(ctx sdk.Context, contracts []collection.Contract) []collection.ContractGrants { + var grants []collection.ContractGrants + for _, contract := range contracts { + contractID := contract.Id + contractGrants := collection.ContractGrants{ + ContractId: contractID, + } + + k.iterateContractGrants(ctx, contractID, func(grant collection.Grant) (stop bool) { + contractGrants.Grants = append(contractGrants.Grants, grant) + return false + }) + if len(contractGrants.Grants) != 0 { + grants = append(grants, contractGrants) + } + } + + return grants +} + +func (k Keeper) getSupplies(ctx sdk.Context, contracts []collection.Contract) []collection.ContractStatistics { + return k.getStatistics(ctx, contracts, k.iterateContractSupplies) +} + +func (k Keeper) getBurnts(ctx sdk.Context, contracts []collection.Contract) []collection.ContractStatistics { + return k.getStatistics(ctx, contracts, k.iterateContractBurnts) +} + +func (k Keeper) getStatistics(ctx sdk.Context, contracts []collection.Contract, iterator func(ctx sdk.Context, contractID string, cb func(classID string, amount math.Int) (stop bool))) []collection.ContractStatistics { + var statistics []collection.ContractStatistics + for _, contract := range contracts { + contractID := contract.Id + contractStatistics := collection.ContractStatistics{ + ContractId: contractID, + } + + iterator(ctx, contractID, func(classID string, amount math.Int) (stop bool) { + supply := collection.ClassStatistics{ + ClassId: classID, + Amount: amount, + } + contractStatistics.Statistics = append(contractStatistics.Statistics, supply) + return false + }) + if len(contractStatistics.Statistics) != 0 { + statistics = append(statistics, contractStatistics) + } + } + + return statistics +} + +func (k Keeper) getClassStates(ctx sdk.Context) *collection.ClassState { + ids := make([]string, 0) + k.iterateClassStoreIDs(ctx, func(id string) (stop bool) { + ids = append(ids, id) + return false + }) + + return &collection.ClassState{ + Ids: ids, + Nonce: k.getNonce(ctx), + } +} diff --git a/x/collection/keeper/genesis_test.go b/x/collection/keeper/genesis_test.go new file mode 100644 index 0000000000..048c5ef9e1 --- /dev/null +++ b/x/collection/keeper/genesis_test.go @@ -0,0 +1,24 @@ +package keeper_test + +import ( + "github.com/Finschia/finschia-sdk/x/collection" +) + +// TODO: Add more test cases +func (s *KeeperTestSuite) TestImportExportGenesis() { + // export + genesis := s.keeper.ExportGenesis(s.ctx) + + // forge & import + ctx, _ := s.ctx.CacheContext() + _, 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) + + s.keeper.InitGenesis(ctx, genesis) + + // export again and compare + newGenesis := s.keeper.ExportGenesis(s.ctx) + s.Require().Equal(genesis, newGenesis) +} diff --git a/x/collection/keeper/grpc_query.go b/x/collection/keeper/grpc_query.go new file mode 100644 index 0000000000..635c2cb067 --- /dev/null +++ b/x/collection/keeper/grpc_query.go @@ -0,0 +1,415 @@ +package keeper + +import ( + "context" + + "github.com/cosmos/gogoproto/proto" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + errorsmod "cosmossdk.io/errors" + "cosmossdk.io/math" + "cosmossdk.io/store/prefix" + + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/runtime" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/cosmos/cosmos-sdk/types/query" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +type queryServer struct { + keeper Keeper +} + +// NewQueryServer returns an implementation of the token QueryServer interface +// for the provided Keeper. +func NewQueryServer(keeper Keeper) collection.QueryServer { + return &queryServer{ + keeper: keeper, + } +} + +func (s queryServer) addressFromBech32GRPC(bech32, context string) (sdk.AccAddress, error) { + addr, err := s.keeper.addressCodec.StringToBytes(bech32) + if err != nil { + return nil, status.Error(codes.InvalidArgument, errorsmod.Wrap(sdkerrors.ErrInvalidAddress.Wrap(bech32), context).Error()) + } + + return addr, nil +} + +func (s queryServer) assertTokenTypeIsNonFungible(ctx sdk.Context, contractID, classID string) error { + class, err := s.keeper.GetTokenClass(ctx, contractID, classID) + if err != nil { + return err + } + + if _, ok := class.(*collection.NFTClass); !ok { + return collection.ErrTokenTypeNotExist.Wrap(classID) + } + + return nil +} + +var _ collection.QueryServer = queryServer{} + +// Balance queries the number of tokens of a given token id owned by the owner. +func (s queryServer) Balance(c context.Context, req *collection.QueryBalanceRequest) (*collection.QueryBalanceResponse, 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()) + } + + addr, err := s.addressFromBech32GRPC(req.Address, "address") + if err != nil { + return nil, err + } + + if err := collection.ValidateTokenID(req.TokenId); err != nil { + return nil, status.Error(codes.InvalidArgument, err.Error()) + } + + ctx := sdk.UnwrapSDKContext(c) + balance := s.keeper.GetBalance(ctx, req.ContractId, addr, req.TokenId) + coin := collection.Coin{ + TokenId: req.TokenId, + Amount: balance, + } + + return &collection.QueryBalanceResponse{Balance: coin}, nil +} + +// AllBalances queries all tokens owned by owner. +func (s queryServer) AllBalances(c context.Context, req *collection.QueryAllBalancesRequest) (*collection.QueryAllBalancesResponse, 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()) + } + + addr, err := s.addressFromBech32GRPC(req.Address, "address") + if err != nil { + return nil, err + } + + ctx := sdk.UnwrapSDKContext(c) + store := s.keeper.storeService.OpenKVStore(ctx) + adapter := runtime.KVStoreAdapter(store) + balanceStore := prefix.NewStore(adapter, balanceKeyPrefixByAddress(req.ContractId, addr)) + var balances []collection.Coin + pageRes, err := query.Paginate(balanceStore, req.Pagination, func(key, value []byte) error { + tokenID := string(key) + + var balance math.Int + if err := balance.Unmarshal(value); err != nil { + panic(err) + } + + coin := collection.NewCoin(tokenID, balance) + balances = append(balances, coin) + return nil + }) + if err != nil { + return nil, err + } + + return &collection.QueryAllBalancesResponse{Balances: balances, Pagination: pageRes}, 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") + } + + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, status.Error(codes.InvalidArgument, err.Error()) + } + + classID := req.TokenType + if err := collection.ValidateClassID(classID); err != nil { + return nil, status.Error(codes.InvalidArgument, err.Error()) + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := s.assertTokenTypeIsNonFungible(ctx, req.ContractId, classID); err != nil { + return &collection.QueryNFTSupplyResponse{Supply: math.ZeroInt()}, nil + } + + supply := s.keeper.GetSupply(ctx, req.ContractId, classID) + + return &collection.QueryNFTSupplyResponse{Supply: supply}, nil +} + +func (s queryServer) NFTMinted(c context.Context, req *collection.QueryNFTMintedRequest) (*collection.QueryNFTMintedResponse, 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()) + } + + classID := req.TokenType + if err := collection.ValidateClassID(classID); err != nil { + return nil, status.Error(codes.InvalidArgument, err.Error()) + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := s.assertTokenTypeIsNonFungible(ctx, req.ContractId, classID); err != nil { + return &collection.QueryNFTMintedResponse{Minted: math.ZeroInt()}, nil + } + + minted := s.keeper.GetMinted(ctx, req.ContractId, classID) + + return &collection.QueryNFTMintedResponse{Minted: minted}, nil +} + +func (s queryServer) NFTBurnt(c context.Context, req *collection.QueryNFTBurntRequest) (*collection.QueryNFTBurntResponse, 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()) + } + + classID := req.TokenType + if err := collection.ValidateClassID(classID); err != nil { + return nil, status.Error(codes.InvalidArgument, err.Error()) + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := s.assertTokenTypeIsNonFungible(ctx, req.ContractId, classID); err != nil { + return &collection.QueryNFTBurntResponse{Burnt: math.ZeroInt()}, nil + } + + burnt := s.keeper.GetBurnt(ctx, req.ContractId, classID) + + return &collection.QueryNFTBurntResponse{Burnt: burnt}, nil +} + +func (s queryServer) Contract(c context.Context, req *collection.QueryContractRequest) (*collection.QueryContractResponse, 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()) + } + + ctx := sdk.UnwrapSDKContext(c) + contract, err := s.keeper.GetContract(ctx, req.ContractId) + if err != nil { + return nil, status.Error(codes.NotFound, err.Error()) + } + + return &collection.QueryContractResponse{Contract: *contract}, nil +} + +// TokenClassTypeName queries the fully qualified message type name of a token class based on its class id. +func (s queryServer) TokenClassTypeName(c context.Context, req *collection.QueryTokenClassTypeNameRequest) (*collection.QueryTokenClassTypeNameResponse, 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.ValidateClassID(req.ClassId); err != nil { + return nil, status.Error(codes.InvalidArgument, err.Error()) + } + + ctx := sdk.UnwrapSDKContext(c) + class, err := s.keeper.GetTokenClass(ctx, req.ContractId, req.ClassId) + if err != nil { + return nil, status.Error(codes.NotFound, err.Error()) + } + name := proto.MessageName(class) + + return &collection.QueryTokenClassTypeNameResponse{Name: name}, nil +} + +func (s queryServer) TokenType(c context.Context, req *collection.QueryTokenTypeRequest) (*collection.QueryTokenTypeResponse, 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()) + } + + classID := req.TokenType + if err := collection.ValidateClassID(classID); err != nil { + return nil, status.Error(codes.InvalidArgument, err.Error()) + } + + ctx := sdk.UnwrapSDKContext(c) + class, err := s.keeper.GetTokenClass(ctx, req.ContractId, classID) + if err != nil { + return nil, status.Error(codes.NotFound, err.Error()) + } + + nftClass, ok := class.(*collection.NFTClass) + if !ok { + return nil, status.Error(codes.NotFound, sdkerrors.ErrInvalidType.Wrapf("not a class of non-fungible token: %s", classID).Error()) + } + + tokenType := collection.TokenType{ + ContractId: req.ContractId, + TokenType: nftClass.Id, + Name: nftClass.Name, + Meta: nftClass.Meta, + } + + return &collection.QueryTokenTypeResponse{TokenType: tokenType}, nil +} + +func (s queryServer) getToken(ctx sdk.Context, contractID, tokenID string) (collection.Token, error) { + switch { + case collection.ValidateNFTID(tokenID) == nil: + token, err := s.keeper.GetNFT(ctx, contractID, tokenID) + if err != nil { + return nil, err + } + + owner := s.keeper.getOwner(ctx, contractID, token.TokenId) + return &collection.OwnerNFT{ + ContractId: contractID, + TokenId: token.TokenId, + Name: token.Name, + Meta: token.Meta, + Owner: s.keeper.bytesToString(owner), + }, nil + default: + panic("cannot reach here: token must be nft") + } +} + +func (s queryServer) Token(c context.Context, req *collection.QueryTokenRequest) (*collection.QueryTokenResponse, 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()) + } + + ctx := sdk.UnwrapSDKContext(c) + legacyToken, err := s.getToken(ctx, req.ContractId, req.TokenId) + if err != nil { + return nil, status.Error(codes.NotFound, err.Error()) + } + + anyv, err := codectypes.NewAnyWithValue(legacyToken) + if err != nil { + panic(err) + } + + return &collection.QueryTokenResponse{Token: *anyv}, nil +} + +func (s queryServer) GranteeGrants(c context.Context, req *collection.QueryGranteeGrantsRequest) (*collection.QueryGranteeGrantsResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, status.Error(codes.InvalidArgument, err.Error()) + } + + granteeAddr, err := s.addressFromBech32GRPC(req.Grantee, "grantee") + if err != nil { + return nil, err + } + + ctx := sdk.UnwrapSDKContext(c) + store := s.keeper.storeService.OpenKVStore(ctx) + adapter := runtime.KVStoreAdapter(store) + grantStore := prefix.NewStore(adapter, grantKeyPrefixByGrantee(req.ContractId, granteeAddr)) + var grants []collection.Grant + pageRes, err := query.Paginate(grantStore, req.Pagination, func(key, _ []byte) error { + permission := collection.Permission(key[0]) + grants = append(grants, collection.Grant{ + Grantee: req.Grantee, + Permission: permission, + }) + return nil + }) + if err != nil { + return nil, err + } + + return &collection.QueryGranteeGrantsResponse{Grants: grants, Pagination: pageRes}, nil +} + +func (s queryServer) IsOperatorFor(c context.Context, req *collection.QueryIsOperatorForRequest) (*collection.QueryIsOperatorForResponse, 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()) + } + + operator, err := s.addressFromBech32GRPC(req.Operator, "operator") + if err != nil { + return nil, err + } + holder, err := s.addressFromBech32GRPC(req.Holder, "holder") + if err != nil { + return nil, err + } + + ctx := sdk.UnwrapSDKContext(c) + _, err = s.keeper.GetAuthorization(ctx, req.ContractId, holder, operator) + authorized := (err == nil) + + return &collection.QueryIsOperatorForResponse{Authorized: authorized}, nil +} + +func (s queryServer) HoldersByOperator(c context.Context, req *collection.QueryHoldersByOperatorRequest) (*collection.QueryHoldersByOperatorResponse, 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()) + } + + operator, err := s.addressFromBech32GRPC(req.Operator, "operator") + if err != nil { + return nil, err + } + + ctx := sdk.UnwrapSDKContext(c) + store := s.keeper.storeService.OpenKVStore(ctx) + adapter := runtime.KVStoreAdapter(store) + authorizationStore := prefix.NewStore(adapter, authorizationKeyPrefixByOperator(req.ContractId, operator)) + var holders []string + pageRes, err := query.Paginate(authorizationStore, req.Pagination, func(key, value []byte) error { + holder := sdk.AccAddress(key) + holders = append(holders, s.keeper.bytesToString(holder)) + return nil + }) + if err != nil { + return nil, err + } + + return &collection.QueryHoldersByOperatorResponse{Holders: holders, Pagination: pageRes}, nil +} diff --git a/x/collection/keeper/grpc_query_test.go b/x/collection/keeper/grpc_query_test.go new file mode 100644 index 0000000000..f3f233e5d4 --- /dev/null +++ b/x/collection/keeper/grpc_query_test.go @@ -0,0 +1,720 @@ +package keeper_test + +import ( + "fmt" + + "github.com/cosmos/gogoproto/proto" + + "cosmossdk.io/math" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func (s *KeeperTestSuite) TestQueryBalance() { + // empty request + _, err := s.queryServer.Balance(s.ctx, nil) + s.Require().Error(err) + + tokenID := s.issuedNFTs[s.bytesToString(s.customer)][0].TokenId + testCases := map[string]struct { + contractID string + address sdk.AccAddress + tokenID string + valid bool + postTest func(res *collection.QueryBalanceResponse) + }{ + "valid request": { + contractID: s.contractID, + address: s.customer, + tokenID: tokenID, + valid: true, + postTest: func(res *collection.QueryBalanceResponse) { + expected := collection.Coin{ + TokenId: tokenID, + Amount: math.OneInt(), + } + fmt.Println(res.Balance.Amount) + s.Require().Equal(expected, res.Balance) + }, + }, + "valid request with zero amount": { + contractID: s.contractID, + address: s.stranger, + tokenID: tokenID, + valid: true, + postTest: func(res *collection.QueryBalanceResponse) { + expected := collection.Coin{ + TokenId: tokenID, + Amount: math.ZeroInt(), + } + s.Require().Equal(expected, res.Balance) + }, + }, + "invalid contract id": { + address: s.vendor, + tokenID: tokenID, + }, + "invalid address": { + contractID: s.contractID, + tokenID: tokenID, + }, + "invalid token id": { + contractID: s.contractID, + address: s.vendor, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + req := &collection.QueryBalanceRequest{ + ContractId: tc.contractID, + Address: s.bytesToString(tc.address), + TokenId: tc.tokenID, + } + res, err := s.queryServer.Balance(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) TestQueryAllBalances() { + // empty request + _, err := s.queryServer.AllBalances(s.ctx, nil) + s.Require().Error(err) + + testCases := map[string]struct { + contractID string + address sdk.AccAddress + valid bool + count uint64 + postTest func(res *collection.QueryAllBalancesResponse) + }{ + "valid request": { + contractID: s.contractID, + address: s.customer, + valid: true, + postTest: func(res *collection.QueryAllBalancesResponse) { + s.Require().Equal(s.numNFTs, len(res.Balances)) + }, + }, + "valid request with limit": { + contractID: s.contractID, + address: s.customer, + valid: true, + count: 1, + postTest: func(res *collection.QueryAllBalancesResponse) { + s.Require().Equal(1, len(res.Balances)) + }, + }, + "invalid contract id": { + address: s.customer, + }, + "invalid address": { + contractID: s.contractID, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + pageReq := &query.PageRequest{} + if tc.count != 0 { + pageReq.Limit = tc.count + } + req := &collection.QueryAllBalancesRequest{ + ContractId: tc.contractID, + Address: s.bytesToString(tc.address), + Pagination: pageReq, + } + res, err := s.queryServer.AllBalances(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) + s.Require().Error(err) + + testCases := map[string]struct { + contractID string + tokenType string + valid bool + postTest func(res *collection.QueryNFTSupplyResponse) + }{ + "valid request": { + contractID: s.contractID, + tokenType: s.nftClassID, + valid: true, + postTest: func(res *collection.QueryNFTSupplyResponse) { + s.Require().EqualValues(s.numNFTs*3, res.Supply.Int64()) + }, + }, + "collection not found": { + contractID: "deadbeef", + tokenType: s.nftClassID, + valid: true, + postTest: func(res *collection.QueryNFTSupplyResponse) { + s.Require().Equal(math.ZeroInt(), res.Supply) + }, + }, + "token type not found": { + contractID: s.contractID, + tokenType: "deadbeef", + valid: true, + postTest: func(res *collection.QueryNFTSupplyResponse) { + s.Require().Equal(math.ZeroInt(), res.Supply) + }, + }, + "invalid contract id": { + tokenType: s.nftClassID, + }, + "invalid token type": { + contractID: s.contractID, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + req := &collection.QueryNFTSupplyRequest{ + ContractId: tc.contractID, + TokenType: tc.tokenType, + } + res, err := s.queryServer.NFTSupply(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) TestQueryNFTMinted() { + // empty request + _, err := s.queryServer.NFTMinted(s.ctx, nil) + s.Require().Error(err) + + testCases := map[string]struct { + contractID string + tokenType string + valid bool + postTest func(res *collection.QueryNFTMintedResponse) + }{ + "valid request": { + contractID: s.contractID, + tokenType: s.nftClassID, + valid: true, + postTest: func(res *collection.QueryNFTMintedResponse) { + s.Require().EqualValues(s.numNFTs*3, res.Minted.Int64()) + }, + }, + "collection not found": { + contractID: "deadbeef", + tokenType: s.nftClassID, + valid: true, + postTest: func(res *collection.QueryNFTMintedResponse) { + s.Require().Equal(math.ZeroInt(), res.Minted) + }, + }, + "token type not found": { + contractID: s.contractID, + tokenType: "deadbeef", + valid: true, + postTest: func(res *collection.QueryNFTMintedResponse) { + s.Require().Equal(math.ZeroInt(), res.Minted) + }, + }, + "invalid contract id": { + tokenType: s.nftClassID, + }, + "invalid token type": { + contractID: s.contractID, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + req := &collection.QueryNFTMintedRequest{ + ContractId: tc.contractID, + TokenType: tc.tokenType, + } + res, err := s.queryServer.NFTMinted(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) TestQueryNFTBurnt() { + // empty request + _, err := s.queryServer.NFTBurnt(s.ctx, nil) + s.Require().Error(err) + + testCases := map[string]struct { + contractID string + tokenType string + valid bool + postTest func(res *collection.QueryNFTBurntResponse) + }{ + "valid request": { + contractID: s.contractID, + tokenType: s.nftClassID, + valid: true, + postTest: func(res *collection.QueryNFTBurntResponse) { + s.Require().Equal(math.ZeroInt(), res.Burnt) + }, + }, + "collection not found": { + contractID: "deadbeef", + tokenType: s.nftClassID, + valid: true, + postTest: func(res *collection.QueryNFTBurntResponse) { + s.Require().Equal(math.ZeroInt(), res.Burnt) + }, + }, + "token type not found": { + contractID: s.contractID, + tokenType: "deadbeef", + valid: true, + postTest: func(res *collection.QueryNFTBurntResponse) { + s.Require().Equal(math.ZeroInt(), res.Burnt) + }, + }, + "invalid contract id": { + tokenType: s.nftClassID, + }, + "invalid token type": { + contractID: s.contractID, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + req := &collection.QueryNFTBurntRequest{ + ContractId: tc.contractID, + TokenType: tc.tokenType, + } + res, err := s.queryServer.NFTBurnt(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) TestQueryContract() { + // empty request + _, err := s.queryServer.Contract(s.ctx, nil) + s.Require().Error(err) + + testCases := map[string]struct { + contractID string + valid bool + postTest func(res *collection.QueryContractResponse) + }{ + "valid request": { + contractID: s.contractID, + valid: true, + postTest: func(res *collection.QueryContractResponse) { + s.Require().Equal(s.contractID, res.Contract.Id) + }, + }, + "invalid contract id": {}, + "no such an id": { + contractID: "deadbeef", + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + req := &collection.QueryContractRequest{ + ContractId: tc.contractID, + } + res, err := s.queryServer.Contract(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) TestQueryTokenClassTypeName() { + // empty request + _, err := s.queryServer.TokenClassTypeName(s.ctx, nil) + s.Require().Error(err) + + testCases := map[string]struct { + contractID string + classID string + valid bool + postTest func(res *collection.QueryTokenClassTypeNameResponse) + }{ + "valid request": { + contractID: s.contractID, + classID: s.nftClassID, + valid: true, + postTest: func(res *collection.QueryTokenClassTypeNameResponse) { + s.Require().Equal(proto.MessageName(&collection.NFTClass{}), res.Name) + }, + }, + "invalid contract id": { + classID: s.nftClassID, + }, + "invalid class id": { + contractID: s.contractID, + }, + "collection not found": { + contractID: "deadbeef", + classID: s.nftClassID, + }, + "class not found": { + contractID: s.contractID, + classID: "00bab10c", + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + req := &collection.QueryTokenClassTypeNameRequest{ + ContractId: tc.contractID, + ClassId: tc.classID, + } + res, err := s.queryServer.TokenClassTypeName(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) TestQueryTokenType() { + // empty request + _, err := s.queryServer.TokenType(s.ctx, nil) + s.Require().Error(err) + + testCases := map[string]struct { + contractID string + tokenType string + valid bool + postTest func(res *collection.QueryTokenTypeResponse) + }{ + "valid request": { + contractID: s.contractID, + tokenType: s.nftClassID, + valid: true, + postTest: func(res *collection.QueryTokenTypeResponse) { + s.Require().Equal(s.contractID, res.TokenType.ContractId) + s.Require().Equal(s.nftClassID, res.TokenType.TokenType) + }, + }, + "invalid contract id": { + tokenType: s.nftClassID, + }, + "invalid token type": { + contractID: s.contractID, + }, + "collection not found": { + contractID: "deadbeef", + tokenType: s.nftClassID, + }, + "token type not found": { + contractID: s.contractID, + tokenType: "deadbeef", + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + req := &collection.QueryTokenTypeRequest{ + ContractId: tc.contractID, + TokenType: tc.tokenType, + } + res, err := s.queryServer.TokenType(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) TestQueryToken() { + // empty request + _, err := s.queryServer.Token(s.ctx, nil) + s.Require().Error(err) + + nftTokenID := collection.NewNFTID(s.nftClassID, 1) + testCases := map[string]struct { + contractID string + tokenID string + valid bool + postTest func(res *collection.QueryTokenResponse) + }{ + "valid nft request": { + contractID: s.contractID, + tokenID: nftTokenID, + valid: true, + postTest: func(res *collection.QueryTokenResponse) { + s.Require().Equal("/lbm.collection.v1.OwnerNFT", res.Token.TypeUrl) + token := collection.TokenFromAny(&res.Token) + nft, ok := token.(*collection.OwnerNFT) + s.Require().True(ok) + s.Require().Equal(s.contractID, nft.ContractId) + s.Require().Equal(nftTokenID, nft.TokenId) + }, + }, + "invalid contract id": { + tokenID: nftTokenID, + }, + "invalid token id": { + contractID: s.contractID, + }, + "collection not found": { + contractID: "deadbeef", + tokenID: nftTokenID, + }, + "no such a non-fungible token": { + contractID: s.contractID, + tokenID: collection.NewNFTID("deadbeef", 1), + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + req := &collection.QueryTokenRequest{ + ContractId: tc.contractID, + TokenId: tc.tokenID, + } + res, err := s.queryServer.Token(s.ctx, req) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.Require().NotNil(res) + tc.postTest(res) + }) + } +} + +func (s *KeeperTestSuite) TestQueryGranteeGrants() { + // empty request + _, err := s.queryServer.GranteeGrants(s.ctx, nil) + s.Require().Error(err) + + testCases := map[string]struct { + contractID string + grantee sdk.AccAddress + valid bool + postTest func(res *collection.QueryGranteeGrantsResponse) + }{ + "valid request": { + contractID: s.contractID, + grantee: s.vendor, + valid: true, + postTest: func(res *collection.QueryGranteeGrantsResponse) { + s.Require().Equal(4, len(res.Grants)) + }, + }, + "collection not found": { + contractID: "deadbeef", + grantee: s.vendor, + valid: true, + postTest: func(res *collection.QueryGranteeGrantsResponse) { + s.Require().Equal(0, len(res.Grants)) + }, + }, + "invalid contract id": { + grantee: s.vendor, + }, + "invalid grantee": { + contractID: s.contractID, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + req := &collection.QueryGranteeGrantsRequest{ + ContractId: tc.contractID, + Grantee: s.bytesToString(tc.grantee), + } + res, err := s.queryServer.GranteeGrants(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) TestQueryIsOperatorFor() { + // empty request + _, err := s.queryServer.IsOperatorFor(s.ctx, nil) + s.Require().Error(err) + + testCases := map[string]struct { + contractID string + operator sdk.AccAddress + holder sdk.AccAddress + valid bool + postTest func(res *collection.QueryIsOperatorForResponse) + }{ + "valid request": { + contractID: s.contractID, + operator: s.operator, + holder: s.customer, + valid: true, + postTest: func(res *collection.QueryIsOperatorForResponse) { + s.Require().True(res.Authorized) + }, + }, + "collection not found": { + contractID: "deadbeef", + operator: s.operator, + holder: s.vendor, + valid: true, + postTest: func(res *collection.QueryIsOperatorForResponse) { + s.Require().False(res.Authorized) + }, + }, + "invalid contract id": { + operator: s.operator, + holder: s.customer, + }, + "invalid operator": { + contractID: s.contractID, + holder: s.customer, + }, + "invalid holder": { + contractID: s.contractID, + operator: s.operator, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + req := &collection.QueryIsOperatorForRequest{ + ContractId: tc.contractID, + Operator: s.bytesToString(tc.operator), + Holder: s.bytesToString(tc.holder), + } + res, err := s.queryServer.IsOperatorFor(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) TestQueryHoldersByOperator() { + // empty request + _, err := s.queryServer.HoldersByOperator(s.ctx, nil) + s.Require().Error(err) + + testCases := map[string]struct { + contractID string + operator sdk.AccAddress + valid bool + count uint64 + postTest func(res *collection.QueryHoldersByOperatorResponse) + }{ + "valid request": { + contractID: s.contractID, + operator: s.operator, + valid: true, + postTest: func(res *collection.QueryHoldersByOperatorResponse) { + s.Require().Equal(1, len(res.Holders)) + }, + }, + "valid request with limit": { + contractID: s.contractID, + operator: s.operator, + valid: true, + count: 1, + postTest: func(res *collection.QueryHoldersByOperatorResponse) { + s.Require().Equal(1, len(res.Holders)) + }, + }, + "collection not found": { + contractID: "deadbeef", + operator: s.operator, + valid: true, + postTest: func(res *collection.QueryHoldersByOperatorResponse) { + s.Require().Equal(0, len(res.Holders)) + }, + }, + "invalid contract id": { + operator: s.operator, + }, + "invalid operator": { + contractID: s.contractID, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + pageReq := &query.PageRequest{} + if tc.count != 0 { + pageReq.Limit = tc.count + } + req := &collection.QueryHoldersByOperatorRequest{ + ContractId: tc.contractID, + Operator: s.bytesToString(tc.operator), + Pagination: pageReq, + } + res, err := s.queryServer.HoldersByOperator(s.ctx, req) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.Require().NotNil(res) + tc.postTest(res) + }) + } +} diff --git a/x/collection/keeper/keeper.go b/x/collection/keeper/keeper.go new file mode 100644 index 0000000000..e41083439d --- /dev/null +++ b/x/collection/keeper/keeper.go @@ -0,0 +1,49 @@ +package keeper + +import ( + addresscodec "cosmossdk.io/core/address" + "cosmossdk.io/core/store" + "cosmossdk.io/log" + + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +// Keeper defines the collection module Keeper +type Keeper struct { + cdc codec.Codec + addressCodec addresscodec.Codec + storeService store.KVStoreService +} + +// NewKeeper returns a collection keeper +func NewKeeper( + cdc codec.Codec, + kvStoreService store.KVStoreService, +) Keeper { + k := Keeper{ + cdc: cdc, + storeService: kvStoreService, + } + k.addressCodec = cdc.InterfaceRegistry().SigningContext().AddressCodec() + return k +} + +// Logger returns a module-specific logger. +func (k Keeper) Logger(ctx sdk.Context) log.Logger { + return ctx.Logger().With("module", "x/"+collection.ModuleName) +} + +func ValidateLegacyContract(k Keeper, ctx sdk.Context, contractID string) error { + if !k.HasID(ctx, contractID) { + return collection.ErrContractNotExist.Wrap(contractID) + } + + if _, err := k.GetContract(ctx, contractID); err != nil { + return err + } + + return nil +} diff --git a/x/collection/keeper/keeper_test.go b/x/collection/keeper/keeper_test.go new file mode 100644 index 0000000000..6ed960b126 --- /dev/null +++ b/x/collection/keeper/keeper_test.go @@ -0,0 +1,176 @@ +package keeper_test + +import ( + "testing" + + "github.com/stretchr/testify/suite" + + "cosmossdk.io/core/address" + "cosmossdk.io/log" + "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" + + "github.com/cosmos/cosmos-sdk/baseapp" + "github.com/cosmos/cosmos-sdk/codec" + codectestutil "github.com/cosmos/cosmos-sdk/codec/testutil" + "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/cosmos/cosmos-sdk/testutil" + "github.com/cosmos/cosmos-sdk/testutil/testdata" + 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" + "github.com/Finschia/finschia-sdk/x/collection/module" +) + +type KeeperTestSuite struct { + suite.Suite + + ctx sdk.Context + keeper keeper.Keeper + queryServer collection.QueryServer + msgServer collection.MsgServer + addressCodec address.Codec + + vendor sdk.AccAddress + operator sdk.AccAddress + customer sdk.AccAddress + stranger sdk.AccAddress + + contractID string + nftClassID string + + balance math.Int + + numNFTs int + issuedNFTs map[string][]collection.NFT +} + +func (s *KeeperTestSuite) createRandomAccounts(accNum int) []sdk.AccAddress { + seenAddresses := make(map[string]bool, accNum) + addresses := make([]sdk.AccAddress, accNum) + for i := range addresses { + var addr sdk.AccAddress + for { + pk := secp256k1.GenPrivKey().PubKey() + addr = sdk.AccAddress(pk.Address()) + if !seenAddresses[s.bytesToString(addr)] { + seenAddresses[s.bytesToString(addr)] = true + break + } + } + addresses[i] = addr + } + return addresses +} + +func (s *KeeperTestSuite) SetupTest() { + s.prepareInitialSetup() + + s.balance = math.NewInt(1000000) + s.contractID = s.keeper.CreateContract(s.ctx, s.vendor, collection.Contract{ + Name: "fox", + }) + + for _, permission := range []collection.Permission{ + collection.PermissionMint, + collection.PermissionBurn, + } { + s.keeper.Grant(s.ctx, s.contractID, s.vendor, s.operator, permission) + } + + // create a non-fungible token class + nftClassID, err := s.keeper.CreateTokenClass(s.ctx, s.contractID, &collection.NFTClass{ + Name: "fennec fox", + }) + s.Require().NoError(err) + s.nftClassID = *nftClassID + + // mint nfts + newParams := func(classID string, size int) []collection.MintNFTParam { + res := make([]collection.MintNFTParam, size) + for i := range res { + res[i] = collection.MintNFTParam{ + TokenType: s.nftClassID, + } + } + return res + } + s.numNFTs = 4 + s.issuedNFTs = make(map[string][]collection.NFT) + for _, to := range []sdk.AccAddress{s.customer, s.operator, s.vendor} { + nfts, err := s.keeper.MintNFT(s.ctx, s.contractID, to, newParams(s.nftClassID, s.numNFTs)) + s.issuedNFTs[s.bytesToString(to)] = nfts + s.Require().NoError(err) + } + + // authorize + err = s.keeper.AuthorizeOperator(s.ctx, s.contractID, s.customer, s.operator) + s.Require().NoError(err) + err = s.keeper.AuthorizeOperator(s.ctx, s.contractID, s.customer, s.stranger) + s.Require().NoError(err) + + // not token contract + notTokenContractID := s.keeper.NewID(s.ctx) + err = keeper.ValidateLegacyContract(s.keeper, s.ctx, notTokenContractID) + s.Require().ErrorIs(err, collection.ErrCollectionNotExist) +} + +func (s *KeeperTestSuite) prepareInitialSetup() { + // Create Store for test + key := storetypes.NewKVStoreKey(collection.StoreKey) + tkey := storetypes.NewTransientStoreKey("transient_test") + testCtx := testutil.DefaultContextWithDB(s.T(), key, tkey) + kvStoreService := runtime.NewKVStoreService(key) + s.ctx = testCtx.Ctx + + // Create EncodingConfig + encCfg := moduletestutil.MakeTestEncodingConfig(module.AppModuleBasic{}) + encCfg.InterfaceRegistry = codectestutil.CodecOptions{ + AccAddressPrefix: "link", + ValAddressPrefix: "linkvaloper", + }.NewInterfaceRegistry() + encCfg.Codec = codec.NewProtoCodec(encCfg.InterfaceRegistry) + + collection.RegisterInterfaces(encCfg.InterfaceRegistry) + testdata.RegisterInterfaces(encCfg.InterfaceRegistry) + + // Create BaseApp + bapp := baseapp.NewBaseApp( + "collection", + log.NewNopLogger(), + testCtx.DB, + encCfg.TxConfig.TxDecoder(), + ) + bapp.SetInterfaceRegistry(encCfg.InterfaceRegistry) + + s.keeper = keeper.NewKeeper(encCfg.Codec, kvStoreService) + s.addressCodec = encCfg.Codec.InterfaceRegistry().SigningContext().AddressCodec() + s.keeper.InitGenesis(s.ctx, collection.DefaultGenesisState()) + s.keeper.SetParams(s.ctx, collection.Params{}) + + s.queryServer = keeper.NewQueryServer(s.keeper) + s.msgServer = keeper.NewMsgServer(s.keeper) + + addresses := []*sdk.AccAddress{ + &s.vendor, + &s.operator, + &s.customer, + &s.stranger, + } + for i, addr := range s.createRandomAccounts(len(addresses)) { + *addresses[i] = addr + } +} + +func (s *KeeperTestSuite) bytesToString(address []byte) string { + addr, err := s.addressCodec.BytesToString(address) + s.Require().NoError(err) + return addr +} + +func TestKeeperTestSuite(t *testing.T) { + suite.Run(t, new(KeeperTestSuite)) +} diff --git a/x/collection/keeper/keys.go b/x/collection/keeper/keys.go new file mode 100644 index 0000000000..5dfaa48783 --- /dev/null +++ b/x/collection/keeper/keys.go @@ -0,0 +1,382 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +var ( + paramsKey = []byte{0x00} + + contractKeyPrefix = []byte{0x10} + classKeyPrefix = []byte{0x11} + nextClassIDKeyPrefix = []byte{0x12} + nextTokenIDKeyPrefix = []byte{0x13} + + balanceKeyPrefix = []byte{0x20} + ownerKeyPrefix = []byte{0x21} + nftKeyPrefix = []byte{0x22} + + authorizationKeyPrefix = []byte{0x30} + grantKeyPrefix = []byte{0x31} + + supplyKeyPrefix = []byte{0x40} + mintedKeyPrefix = []byte{0x41} + burntKeyPrefix = []byte{0x42} + + classStorePrefix = []byte{0x50} +) + +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 +} + +// ---------------------------------------------------------------------------- +// owner +func ownerKey(contractID, tokenID string) []byte { + prefix := ownerKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+len(tokenID)) + + copy(key, prefix) + copy(key[len(prefix):], tokenID) + + return key +} + +func ownerKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(ownerKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, ownerKeyPrefix) + + begin += len(ownerKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +// ---------------------------------------------------------------------------- +// nft +func nftKey(contractID, tokenID string) []byte { + prefix := nftKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+len(tokenID)) + + copy(key, prefix) + copy(key[len(prefix):], tokenID) + + return key +} + +func nftKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(nftKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, nftKeyPrefix) + + begin += len(nftKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +func splitNFTKey(key []byte) (contractID, tokenID string) { + begin := len(nftKeyPrefix) + 1 + end := begin + int(key[begin-1]) + contractID = string(key[begin:end]) + + begin = end + tokenID = string(key[begin:]) + + return +} + +// ---------------------------------------------------------------------------- +func contractKey(contractID string) []byte { + key := make([]byte, len(contractKeyPrefix)+len(contractID)) + + copy(key, contractKeyPrefix) + copy(key[len(contractKeyPrefix):], contractID) + + return key +} + +func classKey(contractID, classID string) []byte { + prefix := classKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+len(classID)) + + copy(key, prefix) + copy(key[len(prefix):], classID) + + 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 nextTokenIDKey(contractID, classID string) []byte { + prefix := nextTokenIDKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+len(classID)) + + copy(key, prefix) + copy(key[len(prefix):], classID) + + return key +} + +func nextTokenIDKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(nextTokenIDKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, nextTokenIDKeyPrefix) + + begin += len(nextTokenIDKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +func splitNextTokenIDKey(key []byte) (contractID, classID string) { + begin := len(nextTokenIDKeyPrefix) + 1 + end := begin + int(key[begin-1]) + contractID = string(key[begin:end]) + + begin = end + classID = string(key[begin:]) + + return +} + +func nextClassIDKey(contractID string) []byte { + key := make([]byte, len(nextClassIDKeyPrefix)+len(contractID)) + + copy(key, nextClassIDKeyPrefix) + copy(key[len(nextClassIDKeyPrefix):], contractID) + + return key +} + +// ---------------------------------------------------------------------------- +func authorizationKey(contractID string, operator, holder sdk.AccAddress) []byte { + prefix := authorizationKeyPrefixByOperator(contractID, operator) + key := make([]byte, len(prefix)+len(holder)) + + copy(key, prefix) + copy(key[len(prefix):], holder) + + return key +} + +func authorizationKeyPrefixByOperator(contractID string, operator sdk.AccAddress) []byte { + prefix := authorizationKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+1+len(operator)) + + begin := 0 + copy(key, prefix) + + begin += len(prefix) + key[begin] = byte(len(operator)) + + begin++ + copy(key[begin:], operator) + + return key +} + +func authorizationKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(authorizationKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, authorizationKeyPrefix) + + begin += len(authorizationKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +func splitAuthorizationKey(key []byte) (contractID string, operator, holder sdk.AccAddress) { + begin := len(authorizationKeyPrefix) + 1 + end := begin + int(key[begin-1]) + contractID = string(key[begin:end]) + + begin = end + 1 + end = begin + int(key[begin-1]) + operator = sdk.AccAddress(key[begin:end]) + + begin = end + holder = sdk.AccAddress(key[begin:]) + + return +} + +// ---------------------------------------------------------------------------- +func grantKey(contractID string, grantee sdk.AccAddress, permission collection.Permission) []byte { + prefix := grantKeyPrefixByGrantee(contractID, grantee) + key := make([]byte, len(prefix)+1) + + copy(key, prefix) + key[len(prefix)] = byte(permission) + + return key +} + +func grantKeyPrefixByGrantee(contractID string, grantee sdk.AccAddress) []byte { + prefix := grantKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+1+len(grantee)) + + begin := 0 + copy(key, prefix) + + begin += len(prefix) + key[begin] = byte(len(grantee)) + + begin++ + copy(key[begin:], grantee) + + return key +} + +func grantKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(grantKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, grantKeyPrefix) + + begin += len(grantKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +func splitGrantKey(key []byte) (contractID string, grantee sdk.AccAddress, permission collection.Permission) { + begin := len(grantKeyPrefix) + 1 + end := begin + int(key[begin-1]) + contractID = string(key[begin:end]) + + begin = end + 1 + end = begin + int(key[begin-1]) + grantee = sdk.AccAddress(key[begin:end]) + + begin = end + permission = collection.Permission(key[begin]) + + return +} + +// ---------------------------------------------------------------------------- +// statistics +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 splitStatisticKey(keyPrefix, key []byte) (contractID, classID string) { + begin := len(keyPrefix) + 1 + end := begin + int(key[begin-1]) + contractID = string(key[begin:end]) + + begin = end + classID = string(key[begin:]) + + return +} diff --git a/x/collection/keeper/migrations.go b/x/collection/keeper/migrations.go new file mode 100644 index 0000000000..0cadb8b099 --- /dev/null +++ b/x/collection/keeper/migrations.go @@ -0,0 +1,30 @@ +package keeper + +import ( + storetypes "cosmossdk.io/store/types" + + "github.com/cosmos/cosmos-sdk/runtime" + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Finschia/finschia-sdk/x/collection/keeper/migrations/v3" +) + +// Migrator is a struct for handling in-place store migrations. +type Migrator struct { + keeper Keeper +} + +// NewMigrator returns a new Migrator. +func NewMigrator(keeper Keeper) Migrator { + return Migrator{keeper: keeper} +} + +func (m Migrator) Migrate1to2(ctx sdk.Context) error { + return nil +} + +func (m Migrator) Migrate2to3(ctx sdk.Context) error { + store := runtime.KVStoreAdapter(m.keeper.storeService.OpenKVStore(ctx)) + oldClassStore := runtime.KVStoreAdapter(runtime.NewKVStoreService(storetypes.NewKVStoreKey(v3.ClassStoreKey)).OpenKVStore(ctx)) + return v3.MigrateStore(store, oldClassStore, m.keeper.cdc) +} diff --git a/x/collection/keeper/migrations/v3/helper.go b/x/collection/keeper/migrations/v3/helper.go new file mode 100644 index 0000000000..90355a793c --- /dev/null +++ b/x/collection/keeper/migrations/v3/helper.go @@ -0,0 +1,117 @@ +package v3 + +import ( + "errors" + "fmt" + "regexp" + + gogotypes "github.com/cosmos/gogoproto/types" + + "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" + + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +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 { + id = tokenID + return nil + }) + if err != nil { + panic(err) + } + + return getOwner(store, contractID, id) +} + +func getOwner(store storetypes.KVStore, contractID, tokenID string) sdk.AccAddress { + key := ownerKey(contractID, tokenID) + bz := store.Get(key) + if bz == nil { + panic("owner must exist") + } + + var owner sdk.AccAddress + if err := owner.Unmarshal(bz); err != nil { + panic(err) + } + return owner +} + +func iterateAncestors(store storetypes.KVStore, cdc codec.BinaryCodec, contractID, tokenID string, fn func(tokenID string) error) error { + var err error + for id := &tokenID; err == nil; id, err = getParent(store, cdc, contractID, *id) { + if fnErr := fn(*id); fnErr != nil { + return fnErr + } + } + + return nil +} + +func getParent(store storetypes.KVStore, cdc codec.BinaryCodec, contractID, tokenID string) (*string, error) { + key := parentKey(contractID, tokenID) + bz := store.Get(key) + if bz == nil { + return nil, errors.New("token is not a child of some other") + } + + var parent gogotypes.StringValue + cdc.MustUnmarshal(bz, &parent) + return &parent.Value, nil +} + +func addCoin(store storetypes.KVStore, contractID string, address sdk.AccAddress, amount collection.Coin) { + key := balanceKey(contractID, address, amount.TokenId) + var beforeBalance math.Int + bz := store.Get(key) + if bz == nil { + beforeBalance = math.ZeroInt() + } + if err := beforeBalance.Unmarshal(bz); err != nil { + panic(err) + } + + afterBalance := beforeBalance.Add(amount.Amount) + bz, err := afterBalance.Marshal() + if err != nil { + panic(err) + } + store.Set(key, bz) + + // set owner + key = ownerKey(contractID, amount.TokenId) + bz, err = address.Marshal() + if err != nil { + panic(err) + } + 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 new file mode 100644 index 0000000000..1fb36fb3a4 --- /dev/null +++ b/x/collection/keeper/migrations/v3/keys.go @@ -0,0 +1,299 @@ +package v3 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" +) + +const ( + ClassStoreKey = "class" + lengthClassID = 8 +) + +var ( + classStorePrefix = []byte{0x50} + + 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} + legacyTokenTypeKeyPrefix = []byte{0xf1} +) + +// Deprecated +var ( + parentKeyPrefix = []byte{0x23} + childKeyPrefix = []byte{0x24} +) + +func idKey(id string) []byte { + key := make([]byte, len(idKeyPrefix)+len(id)) + copy(key, idKeyPrefix) + copy(key[len(idKeyPrefix):], id) + return key +} + +func splitIDKey(key []byte) (id string) { + return string(key[len(idKeyPrefix):]) +} + +func balanceKey(contractID string, address sdk.AccAddress, tokenID string) []byte { + prefix := balanceKeyPrefixByAddress(contractID, address) + key := make([]byte, len(prefix)+len(tokenID)) + + copy(key, prefix) + copy(key[len(prefix):], tokenID) + + return key +} + +func balanceKeyPrefixByAddress(contractID string, address sdk.AccAddress) []byte { + prefix := balanceKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+1+len(address)) + + begin := 0 + copy(key, prefix) + + begin += len(prefix) + key[begin] = byte(len(address)) + + begin++ + copy(key[begin:], address) + + return key +} + +func balanceKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(balanceKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, balanceKeyPrefix) + + begin += len(balanceKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +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 { + prefix := parentKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+len(tokenID)) + + copy(key, prefix) + copy(key[len(prefix):], tokenID) + + return key +} + +func parentKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(parentKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, parentKeyPrefix) + + begin += len(parentKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +func splitParentKey(key []byte) (contractID, tokenID string) { + begin := len(parentKeyPrefix) + 1 + end := begin + int(key[begin-1]) + contractID = string(key[begin:end]) + + begin = end + tokenID = string(key[begin:]) + + return +} + +// ---------------------------------------------------------------------------- +// child +func childKey(contractID, tokenID, childID string) []byte { + prefix := childKeyPrefixByTokenID(contractID, tokenID) + key := make([]byte, len(prefix)+len(childID)) + + copy(key, prefix) + copy(key[len(prefix):], childID) + + return key +} + +func childKeyPrefixByTokenID(contractID, tokenID string) []byte { + prefix := childKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+1+len(tokenID)) + + begin := 0 + copy(key, prefix) + + begin += len(prefix) + key[begin] = byte(len(tokenID)) + + begin++ + copy(key[begin:], tokenID) + + return key +} + +func childKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(childKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, childKeyPrefix) + + begin += len(childKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +func ownerKey(contractID, tokenID string) []byte { + prefix := ownerKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+len(tokenID)) + + copy(key, prefix) + copy(key[len(prefix):], tokenID) + + return key +} + +func ownerKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(ownerKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, ownerKeyPrefix) + + begin += len(ownerKeyPrefix) + key[begin] = byte(len(contractID)) + + begin++ + copy(key[begin:], contractID) + + return key +} + +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 +} + +func legacyTokenTypeKey(contractID, tokenType string) []byte { + prefix := legacyTokenTypeKeyPrefixByContractID(contractID) + key := make([]byte, len(prefix)+len(tokenType)) + + copy(key, prefix) + copy(key[len(prefix):], tokenType) + + return key +} + +func legacyTokenTypeKeyPrefixByContractID(contractID string) []byte { + key := make([]byte, len(legacyTokenTypeKeyPrefix)+1+len(contractID)) + + begin := 0 + copy(key, legacyTokenTypeKeyPrefix) + + begin += len(legacyTokenTypeKeyPrefix) + 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 new file mode 100644 index 0000000000..14040e1ea7 --- /dev/null +++ b/x/collection/keeper/migrations/v3/store.go @@ -0,0 +1,145 @@ +package v3 + +import ( + "fmt" + + gogotypes "github.com/cosmos/gogoproto/types" + + cmath "cosmossdk.io/math" + "cosmossdk.io/store/prefix" + storetypes "cosmossdk.io/store/types" + + "github.com/cosmos/cosmos-sdk/codec" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func MigrateStore(collectionStore, oldClassStore storetypes.KVStore, cdc codec.BinaryCodec) error { + err := migrateClassStateAndRemoveLegacyState(collectionStore, oldClassStore, cdc) + if err != nil { + return err + } + + err = initParams(collectionStore) + if err != nil { + return err + } + + return nil +} + +func migrateClassStateAndRemoveLegacyState(collectionStore, oldStore storetypes.KVStore, cdc codec.BinaryCodec) error { + newClassStore := prefix.NewStore(collectionStore, classStorePrefix) + iterator := storetypes.KVStorePrefixIterator(oldStore, idKeyPrefix) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + id := splitIDKey(iterator.Key()) // contract ID + newClassStore.Set(idKey(id), []byte{}) + oldStore.Delete(idKey(id)) + + detachNFTs(collectionStore, cdc, id) + removeFTs(collectionStore, cdc, id) + } + + bz := oldStore.Get(nonceKey) + if bz == nil { + return sdkerrors.ErrNotFound.Wrap("next id must exist") + } + var nonce cmath.Uint + if err := nonce.Unmarshal(bz); err != nil { + return err + } + newClassStore.Set(nonceKey, bz) + oldStore.Set(nonceKey, bz) + + return nil +} + +func detachNFTs(store storetypes.KVStore, cdc codec.BinaryCodec, id string) { + iterator := storetypes.KVStorePrefixIterator(store, parentKeyPrefixByContractID(id)) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + contractID, tokenID := splitParentKey(iterator.Key()) + if contractID != id { + panic("invalid NFT attachment information") + } + + var parentID gogotypes.StringValue + cdc.MustUnmarshal(iterator.Value(), &parentID) + addCoin(store, id, getRootOwner(store, cdc, contractID, parentID.Value), collection.NewCoin(tokenID, cmath.OneInt())) + + store.Delete(parentKey(contractID, tokenID)) + store.Delete(childKey(contractID, parentID.Value, tokenID)) + } +} + +func initParams(store storetypes.KVStore) error { + p := collection.Params{} + bz, err := p.Marshal() + if err != nil { + return err + } + 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() + + ftMap := make(map[string]bool) + for ; iterator.Valid(); iterator.Next() { + bz := store.Get(iterator.Key()) + var class collection.TokenClass + err := cdc.UnmarshalInterface(bz, &class) + if err != nil { + panic(err) + } + + key := legacyTokenTypeKey(contractID, class.GetId()) + store.Delete(key) + + 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)) + } + + ftMap[ftID] = true + store.Delete(legacyTokenKey(contractID, ftID)) // remove LegacyToken + store.Delete(iterator.Key()) // remove TokenClass + } + } + + removeFTBalances(store, contractID, ftMap) +} + +func removeFTBalances(store storetypes.KVStore, contractID string, ftMap map[string]bool) { + 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, expected: %s", id, contractID)) + } + + if ftMap[tokenID] { + classID := tokenID[: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, tokenID) + } + } +} diff --git a/x/collection/keeper/msg_server.go b/x/collection/keeper/msg_server.go new file mode 100644 index 0000000000..201daea2f6 --- /dev/null +++ b/x/collection/keeper/msg_server.go @@ -0,0 +1,802 @@ +package keeper + +import ( + "context" + + "github.com/cosmos/gogoproto/proto" + + "cosmossdk.io/math" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +type msgServer struct { + keeper Keeper +} + +// NewMsgServer returns an implementation of the collection MsgServer interface +// for the provided Keeper. +func NewMsgServer(keeper Keeper) collection.MsgServer { + return &msgServer{ + keeper: keeper, + } +} + +var _ collection.MsgServer = (*msgServer)(nil) + +func (s msgServer) SendNFT(c context.Context, req *collection.MsgSendNFT) (*collection.MsgSendNFTResponse, error) { + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, err + } + + if _, err := s.keeper.addressCodec.StringToBytes(req.From); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", req.From) + } + if _, err := s.keeper.addressCodec.StringToBytes(req.To); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid to address: %s", req.To) + } + + if len(req.TokenIds) == 0 { + return nil, collection.ErrEmptyField.Wrap("token ids cannot be empty") + } + for _, id := range req.TokenIds { + if err := collection.ValidateTokenID(id); err != nil { + return nil, err + } + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { + return nil, err + } + + fromAddr, err := s.keeper.addressCodec.StringToBytes(req.From) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrap(err.Error()) + } + + amount := make([]collection.Coin, len(req.TokenIds)) + for i, id := range req.TokenIds { + amount[i] = collection.Coin{TokenId: id, Amount: math.OneInt()} + + // legacy + if err := s.keeper.hasNFT(ctx, req.ContractId, id); err != nil { + return nil, err + } + if !s.keeper.getOwner(ctx, req.ContractId, id).Equals(sdk.AccAddress(fromAddr)) { + return nil, collection.ErrTokenNotOwnedBy.Wrapf("%s does not have %s", fromAddr, id) + } + } + + toAddr, err := s.keeper.addressCodec.StringToBytes(req.To) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid to address: %s", err) + } + + if err := s.keeper.SendCoins(ctx, req.ContractId, fromAddr, toAddr, amount); err != nil { + panic(err) + } + + event := collection.EventSent{ + ContractId: req.ContractId, + Operator: req.From, + From: req.From, + To: req.To, + Amount: amount, + } + if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { + panic(err) + } + + return &collection.MsgSendNFTResponse{}, nil +} + +func (s msgServer) OperatorSendNFT(c context.Context, req *collection.MsgOperatorSendNFT) (*collection.MsgOperatorSendNFTResponse, error) { + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, err + } + + if _, err := s.keeper.addressCodec.StringToBytes(req.Operator); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid operator address: %s", req.Operator) + } + if _, err := s.keeper.addressCodec.StringToBytes(req.From); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", req.From) + } + if _, err := s.keeper.addressCodec.StringToBytes(req.To); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid to address: %s", req.To) + } + + if len(req.TokenIds) == 0 { + return nil, collection.ErrEmptyField.Wrap("token ids cannot be empty") + } + for _, id := range req.TokenIds { + if err := collection.ValidateTokenID(id); err != nil { + return nil, err + } + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { + return nil, err + } + + operatorAddr, err := s.keeper.addressCodec.StringToBytes(req.Operator) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid operator address: %s", err) + } + fromAddr, err := s.keeper.addressCodec.StringToBytes(req.From) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", err) + } + + if _, err := s.keeper.GetAuthorization(ctx, req.ContractId, fromAddr, operatorAddr); err != nil { + return nil, collection.ErrCollectionNotApproved.Wrap(err.Error()) + } + + amount := make([]collection.Coin, len(req.TokenIds)) + for i, id := range req.TokenIds { + amount[i] = collection.Coin{TokenId: id, Amount: math.OneInt()} + + // legacy + if err := s.keeper.hasNFT(ctx, req.ContractId, id); err != nil { + return nil, err + } + if !s.keeper.getOwner(ctx, req.ContractId, id).Equals(sdk.AccAddress(fromAddr)) { + return nil, collection.ErrTokenNotOwnedBy.Wrapf("%s does not have %s", fromAddr, id) + } + } + + toAddr, err := s.keeper.addressCodec.StringToBytes(req.To) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", err) + } + + if err := s.keeper.SendCoins(ctx, req.ContractId, fromAddr, toAddr, amount); err != nil { + panic(err) + } + + event := collection.EventSent{ + ContractId: req.ContractId, + Operator: req.Operator, + From: req.From, + To: req.To, + Amount: amount, + } + if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { + panic(err) + } + + return &collection.MsgOperatorSendNFTResponse{}, nil +} + +func (s msgServer) AuthorizeOperator(c context.Context, req *collection.MsgAuthorizeOperator) (*collection.MsgAuthorizeOperatorResponse, error) { + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, err + } + + if _, err := s.keeper.addressCodec.StringToBytes(req.Holder); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid holder address: %s", req.Holder) + } + if _, err := s.keeper.addressCodec.StringToBytes(req.Operator); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid operator address: %s", req.Operator) + } + + if req.Operator == req.Holder { + return nil, collection.ErrApproverProxySame + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { + return nil, err + } + + holderAddr, err := s.keeper.addressCodec.StringToBytes(req.Holder) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid holder address: %s", err) + } + operatorAddr, err := s.keeper.addressCodec.StringToBytes(req.Operator) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid operator address: %s", err) + } + + if err := s.keeper.AuthorizeOperator(ctx, req.ContractId, holderAddr, operatorAddr); err != nil { + return nil, err + } + + event := collection.EventAuthorizedOperator{ + ContractId: req.ContractId, + Holder: req.Holder, + Operator: req.Operator, + } + if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { + panic(err) + } + + return &collection.MsgAuthorizeOperatorResponse{}, nil +} + +func (s msgServer) RevokeOperator(c context.Context, req *collection.MsgRevokeOperator) (*collection.MsgRevokeOperatorResponse, error) { + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, err + } + + if _, err := s.keeper.addressCodec.StringToBytes(req.Holder); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid holder address: %s", req.Holder) + } + if _, err := s.keeper.addressCodec.StringToBytes(req.Operator); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid operator address: %s", req.Operator) + } + + if req.Operator == req.Holder { + return nil, collection.ErrApproverProxySame + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { + return nil, err + } + + holderAddr, err := s.keeper.addressCodec.StringToBytes(req.Holder) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid holder address: %s", err) + } + operatorAddr, err := s.keeper.addressCodec.StringToBytes(req.Operator) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid operator address: %s", err) + } + + if err := s.keeper.RevokeOperator(ctx, req.ContractId, holderAddr, operatorAddr); err != nil { + return nil, err + } + + event := collection.EventRevokedOperator{ + ContractId: req.ContractId, + Holder: req.Holder, + Operator: req.Operator, + } + if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { + panic(err) + } + + return &collection.MsgRevokeOperatorResponse{}, nil +} + +func (s msgServer) CreateContract(c context.Context, req *collection.MsgCreateContract) (*collection.MsgCreateContractResponse, error) { + if _, err := s.keeper.addressCodec.StringToBytes(req.Owner); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid owner address: %s", req.Owner) + } + + if err := collection.ValidateName(req.Name); err != nil { + return nil, err + } + + if err := collection.ValidateURI(req.Uri); err != nil { + return nil, err + } + + if err := collection.ValidateMeta(req.Meta); err != nil { + return nil, err + } + + ctx := sdk.UnwrapSDKContext(c) + + contract := collection.Contract{ + Name: req.Name, + Uri: req.Uri, + Meta: req.Meta, + } + ownerAddr, err := s.keeper.addressCodec.StringToBytes(req.Owner) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid owner address: %s", err) + } + + id := s.keeper.CreateContract(ctx, ownerAddr, contract) + + return &collection.MsgCreateContractResponse{ContractId: id}, nil +} + +func (s msgServer) IssueNFT(c context.Context, req *collection.MsgIssueNFT) (*collection.MsgIssueNFTResponse, error) { + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, err + } + + if err := collection.ValidateName(req.Name); err != nil { + return nil, err + } + + if err := collection.ValidateMeta(req.Meta); err != nil { + return nil, err + } + + if _, err := s.keeper.addressCodec.StringToBytes(req.Owner); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid owner address: %s", req.Owner) + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { + return nil, err + } + + ownerAddr, err := s.keeper.addressCodec.StringToBytes(req.Owner) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid owner address: %s", err) + } + + if _, err := s.keeper.GetGrant(ctx, req.ContractId, ownerAddr, collection.PermissionIssue); err != nil { + return nil, collection.ErrTokenNoPermission.Wrap(err.Error()) + } + + class := &collection.NFTClass{ + Name: req.Name, + Meta: req.Meta, + } + id, err := s.keeper.CreateTokenClass(ctx, req.ContractId, class) + if err != nil { + return nil, err + } + + event := collection.EventCreatedNFTClass{ + ContractId: req.ContractId, + Operator: req.Owner, + TokenType: *id, + Name: class.Name, + Meta: class.Meta, + } + if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { + panic(err) + } + + for _, permission := range []collection.Permission{ + collection.PermissionMint, + collection.PermissionBurn, + } { + s.keeper.Grant(ctx, req.ContractId, []byte{}, ownerAddr, permission) + } + + return &collection.MsgIssueNFTResponse{TokenType: *id}, nil +} + +func (s msgServer) MintNFT(c context.Context, req *collection.MsgMintNFT) (*collection.MsgMintNFTResponse, error) { + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, err + } + + if _, err := s.keeper.addressCodec.StringToBytes(req.From); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", req.From) + } + if _, err := s.keeper.addressCodec.StringToBytes(req.To); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid to address: %s", req.To) + } + + if len(req.Params) == 0 { + return nil, collection.ErrEmptyField.Wrap("mint params cannot be empty") + } + for _, param := range req.Params { + classID := param.TokenType + if err := collection.ValidateLegacyNFTClassID(classID); err != nil { + return nil, err + } + + if len(param.Name) == 0 { + return nil, collection.ErrInvalidTokenName + } + if err := collection.ValidateName(param.Name); err != nil { + return nil, err + } + + if err := collection.ValidateMeta(param.Meta); err != nil { + return nil, err + } + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { + return nil, err + } + + fromAddr, err := s.keeper.addressCodec.StringToBytes(req.From) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", err) + } + + if _, err := s.keeper.GetGrant(ctx, req.ContractId, fromAddr, collection.PermissionMint); err != nil { + return nil, collection.ErrTokenNoPermission.Wrap(err.Error()) + } + + toAddr, err := s.keeper.addressCodec.StringToBytes(req.To) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid to address: %s", err) + } + + tokens, err := s.keeper.MintNFT(ctx, req.ContractId, toAddr, req.Params) + if err != nil { + return nil, err + } + + event := collection.EventMintedNFT{ + ContractId: req.ContractId, + Operator: req.From, + To: req.To, + Tokens: tokens, + } + if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { + panic(err) + } + + tokenIDs := make([]string, 0, len(tokens)) + for _, token := range tokens { + tokenIDs = append(tokenIDs, token.TokenId) + } + return &collection.MsgMintNFTResponse{TokenIds: tokenIDs}, nil +} + +func (s msgServer) BurnNFT(c context.Context, req *collection.MsgBurnNFT) (*collection.MsgBurnNFTResponse, error) { + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, err + } + + if _, err := s.keeper.addressCodec.StringToBytes(req.From); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", req.From) + } + + if len(req.TokenIds) == 0 { + return nil, collection.ErrEmptyField.Wrap("token ids cannot be empty") + } + for _, id := range req.TokenIds { + if err := collection.ValidateLegacyNFTID(id); err != nil { + return nil, err + } + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { + return nil, err + } + + fromAddr, err := s.keeper.addressCodec.StringToBytes(req.From) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", err) + } + + if _, err := s.keeper.GetGrant(ctx, req.ContractId, fromAddr, collection.PermissionBurn); err != nil { + return nil, collection.ErrTokenNoPermission.Wrap(err.Error()) + } + + coins := make([]collection.Coin, 0, len(req.TokenIds)) + for _, id := range req.TokenIds { + coins = append(coins, collection.NewCoin(id, math.OneInt())) + + // legacy + if err := s.keeper.hasNFT(ctx, req.ContractId, id); err != nil { + return nil, err + } + if !s.keeper.getOwner(ctx, req.ContractId, id).Equals(sdk.AccAddress(fromAddr)) { + return nil, collection.ErrTokenNotOwnedBy.Wrapf("%s does not have %s", fromAddr, id) + } + } + + burnt, err := s.keeper.BurnCoins(ctx, req.ContractId, fromAddr, coins) + if err != nil { + panic(err) + } + + // emit events against all burnt tokens. + 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.MsgBurnNFTResponse{}, nil +} + +func (s msgServer) OperatorBurnNFT(c context.Context, req *collection.MsgOperatorBurnNFT) (*collection.MsgOperatorBurnNFTResponse, error) { + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, err + } + + if _, err := s.keeper.addressCodec.StringToBytes(req.Operator); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid operator address: %s", req.Operator) + } + if _, err := s.keeper.addressCodec.StringToBytes(req.From); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", req.From) + } + + if len(req.TokenIds) == 0 { + return nil, collection.ErrEmptyField.Wrap("token ids cannot be empty") + } + for _, id := range req.TokenIds { + if err := collection.ValidateLegacyNFTID(id); err != nil { + return nil, err + } + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { + return nil, err + } + + fromAddr, err := s.keeper.addressCodec.StringToBytes(req.From) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", err) + } + operatorAddr, err := s.keeper.addressCodec.StringToBytes(req.Operator) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid operator address: %s", err) + } + + 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()) + } + + coins := make([]collection.Coin, 0, len(req.TokenIds)) + for _, id := range req.TokenIds { + coins = append(coins, collection.NewCoin(id, math.OneInt())) + + // legacy + if err := s.keeper.hasNFT(ctx, req.ContractId, id); err != nil { + return nil, err + } + if !s.keeper.getOwner(ctx, req.ContractId, id).Equals(sdk.AccAddress(fromAddr)) { + return nil, collection.ErrTokenNotOwnedBy.Wrapf("%s does not have %s", fromAddr, id) + } + } + + burnt, err := s.keeper.BurnCoins(ctx, req.ContractId, fromAddr, coins) + if err != nil { + panic(err) + } + + // emit events against all burnt tokens. + 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.MsgOperatorBurnNFTResponse{}, nil +} + +func (s msgServer) Modify(c context.Context, req *collection.MsgModify) (*collection.MsgModifyResponse, error) { + for i, change := range req.Changes { + key := change.Key + converted := collection.AttrCanonicalKey(key) + if converted != key { + req.Changes[i].Key = converted + } + } + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, err + } + + if _, err := s.keeper.addressCodec.StringToBytes(req.Owner); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid owner address: %s", req.Owner) + } + + if len(req.TokenType) != 0 { + classID := req.TokenType + if err := collection.ValidateClassID(classID); err != nil { + return nil, collection.ErrInvalidTokenType.Wrap(err.Error()) + } + } + + if len(req.TokenIndex) != 0 { + tokenID := req.TokenType + req.TokenIndex + if err := collection.ValidateTokenID(tokenID); err != nil { + return nil, collection.ErrInvalidTokenIndex.Wrap(err.Error()) + } + // reject modifying nft class with token index filled (daphne compat.) + if collection.ValidateLegacyIdxNFT(tokenID) == nil { + return nil, collection.ErrInvalidTokenIndex.Wrap("cannot modify nft class with index filled") + } + } + + validator := collection.ValidateTokenClassChange + if len(req.TokenType) == 0 { + if len(req.TokenIndex) == 0 { + validator = collection.ValidateContractChange + } else { + return nil, collection.ErrTokenIndexWithoutType.Wrap("token index without type") + } + } + if len(req.Changes) == 0 { + return nil, collection.ErrEmptyChanges.Wrap("empty changes") + } + if len(req.Changes) > collection.ChangesLimit { + return nil, collection.ErrInvalidChangesFieldCount.Wrapf("the number of changes exceeds the limit: %d > %d", len(req.Changes), collection.ChangesLimit) + } + seenKeys := map[string]bool{} + for _, change := range req.Changes { + key := change.Key + if seenKeys[key] { + return nil, collection.ErrDuplicateChangesField.Wrapf("duplicate keys: %s", change.Key) + } + seenKeys[key] = true + + attribute := collection.Attribute{ + Key: change.Key, + Value: change.Value, + } + if err := validator(attribute); err != nil { + return nil, err + } + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { + return nil, err + } + + operator, err := s.keeper.addressCodec.StringToBytes(req.Owner) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid operator address: %s", err) + } + + if _, err := s.keeper.GetGrant(ctx, req.ContractId, operator, collection.PermissionModify); err != nil { + return nil, collection.ErrTokenNoPermission.Wrap(err.Error()) + } + + // copied from daphne + modify := func(tokenType, tokenIndex string) error { + changes := make([]collection.Attribute, len(req.Changes)) + for i, change := range req.Changes { + changes[i] = collection.Attribute{ + Key: change.Key, + Value: change.Value, + } + } + + classID := tokenType + tokenID := classID + tokenIndex + if tokenType != "" { + if tokenIndex != "" { + event := collection.EventModifiedNFT{ + ContractId: req.ContractId, + Operator: req.Owner, + 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{ + ContractId: req.ContractId, + Operator: req.Owner, + TokenType: classID, + Changes: changes, + TypeName: proto.MessageName(&collection.NFTClass{}), + } + if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { + panic(err) + } + + return s.keeper.ModifyTokenClass(ctx, req.ContractId, classID, changes) + } + if req.TokenIndex == "" { + event := collection.EventModifiedContract{ + ContractId: req.ContractId, + Operator: req.Owner, + Changes: changes, + } + if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { + panic(err) + } + + s.keeper.ModifyContract(ctx, req.ContractId, changes) + return nil + } + + panic(sdkerrors.ErrInvalidRequest.Wrap("token index without type")) + } + + if err := modify(req.TokenType, req.TokenIndex); err != nil { + return nil, err + } + + return &collection.MsgModifyResponse{}, nil +} + +func (s msgServer) GrantPermission(c context.Context, req *collection.MsgGrantPermission) (*collection.MsgGrantPermissionResponse, error) { + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, err + } + + if _, err := s.keeper.addressCodec.StringToBytes(req.From); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", req.From) + } + if _, err := s.keeper.addressCodec.StringToBytes(req.To); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid to address: %s", req.To) + } + + if err := collection.ValidateLegacyPermission(req.Permission); err != nil { + return nil, err + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { + return nil, err + } + + granter, err := s.keeper.addressCodec.StringToBytes(req.From) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", err) + } + grantee, err := s.keeper.addressCodec.StringToBytes(req.To) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid to address: %s", err) + } + permission := collection.Permission(collection.LegacyPermissionFromString(req.Permission)) + + if _, err := s.keeper.GetGrant(ctx, req.ContractId, granter, permission); err != nil { + return nil, collection.ErrTokenNoPermission.Wrapf("%s is not authorized for %s", granter, permission) + } + + // it emits typed event inside s.keeper.Grant() + s.keeper.Grant(ctx, req.ContractId, granter, grantee, permission) + + return &collection.MsgGrantPermissionResponse{}, nil +} + +func (s msgServer) RevokePermission(c context.Context, req *collection.MsgRevokePermission) (*collection.MsgRevokePermissionResponse, error) { + if err := collection.ValidateContractID(req.ContractId); err != nil { + return nil, err + } + + if _, err := s.keeper.addressCodec.StringToBytes(req.From); err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", req.From) + } + + if err := collection.ValidateLegacyPermission(req.Permission); err != nil { + return nil, err + } + + ctx := sdk.UnwrapSDKContext(c) + + if err := ValidateLegacyContract(s.keeper, ctx, req.ContractId); err != nil { + return nil, err + } + + grantee, err := s.keeper.addressCodec.StringToBytes(req.From) + if err != nil { + return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid from address: %s", err) + } + permission := collection.Permission(collection.LegacyPermissionFromString(req.Permission)) + + if _, err := s.keeper.GetGrant(ctx, req.ContractId, grantee, permission); err != nil { + return nil, collection.ErrTokenNoPermission.Wrapf("%s is not authorized for %s", grantee, permission) + } + + // it emits typed event inside s.keeper.Abandon() + s.keeper.Abandon(ctx, req.ContractId, grantee, permission) + + return &collection.MsgRevokePermissionResponse{}, nil +} diff --git a/x/collection/keeper/msg_server_test.go b/x/collection/keeper/msg_server_test.go new file mode 100644 index 0000000000..61c0bda21f --- /dev/null +++ b/x/collection/keeper/msg_server_test.go @@ -0,0 +1,1390 @@ +package keeper_test + +import ( + "encoding/json" + "fmt" + "strings" + + abci "github.com/cometbft/cometbft/abci/types" + "github.com/cosmos/gogoproto/proto" + + "cosmossdk.io/math" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func mustJSONMarshal(v any) string { + b, err := json.Marshal(v) + if err != nil { + panic(err) + } + + return string(b) +} + +// w wraps input with double quotes if it is a string or fmt.Stringer. +func w(input any) string { + switch input.(type) { + case sdk.AccAddress: + ac := authcodec.NewBech32Codec("link") + s, err := ac.BytesToString(input.([]byte)) + if err != nil { + panic(err) + } + return fmt.Sprintf("\"%s\"", s) + case sdk.ValAddress: + ac := authcodec.NewBech32Codec("linkvaloper") + s, err := ac.BytesToString(input.([]byte)) + if err != nil { + panic(err) + } + return fmt.Sprintf("\"%s\"", s) + case sdk.ConsAddress: + ac := authcodec.NewBech32Codec("linkvalcons") + s, err := ac.BytesToString(input.([]byte)) + if err != nil { + panic(err) + } + return fmt.Sprintf("\"%s\"", s) + case string, fmt.Stringer: + return fmt.Sprintf("\"%s\"", input) + default: + panic("unsupported type") + } +} + +func (s *KeeperTestSuite) TestMsgSendNFT() { + rootNFTID := collection.NewNFTID(s.nftClassID, 1) + + testCases := map[string]struct { + contractID string + tokenID string + from sdk.AccAddress + to sdk.AccAddress + err error + events sdk.Events + }{ + "valid request": { + contractID: s.contractID, + tokenID: rootNFTID, + from: s.customer, + to: s.vendor, + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventSent", + Attributes: []abci.EventAttribute{ + {Key: "amount", Value: mustJSONMarshal(collection.NewCoins(collection.Coin{TokenId: rootNFTID, Amount: math.OneInt()})), Index: false}, + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "from", Value: w(s.bytesToString(s.customer)), Index: false}, + {Key: "operator", Value: w(s.bytesToString(s.customer)), Index: false}, + {Key: "to", Value: w(s.bytesToString(s.vendor)), Index: false}, + }, + }, + }, + }, + "contract not found": { + contractID: "deadbeef", + tokenID: collection.NewNFTID(s.nftClassID, 1), + from: s.customer, + to: s.vendor, + err: collection.ErrContractNotExist, + }, + "NFT not found": { + contractID: s.contractID, + tokenID: collection.NewNFTID("deadbeef", 1), + from: s.customer, + to: s.vendor, + err: collection.ErrTokenNotExist, + }, + "not owned by": { + contractID: s.contractID, + tokenID: collection.NewNFTID(s.nftClassID, s.numNFTs+1), + from: s.customer, + to: s.vendor, + err: collection.ErrTokenNotOwnedBy, + }, + "invalid from": { + contractID: s.contractID, + tokenID: rootNFTID, + to: s.vendor, + err: sdkerrors.ErrInvalidAddress, + }, + "invalid contract id": { + tokenID: rootNFTID, + from: s.customer, + to: s.vendor, + err: collection.ErrInvalidContractID, + }, + "invalid to": { + contractID: s.contractID, + tokenID: rootNFTID, + from: s.customer, + err: sdkerrors.ErrInvalidAddress, + }, + "empty token ids": { + contractID: s.contractID, + from: s.customer, + to: s.vendor, + err: collection.ErrEmptyField, + }, + "invalid token ids": { + contractID: s.contractID, + tokenID: "null", + from: s.customer, + to: s.vendor, + err: collection.ErrInvalidTokenID, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + var req *collection.MsgSendNFT + if tc.tokenID == "" { + req = &collection.MsgSendNFT{ + ContractId: tc.contractID, + From: s.bytesToString(tc.from), + To: s.bytesToString(tc.to), + } + } else { + req = &collection.MsgSendNFT{ + ContractId: tc.contractID, + From: s.bytesToString(tc.from), + To: s.bytesToString(tc.to), + TokenIds: []string{tc.tokenID}, + } + } + res, err := s.msgServer.SendNFT(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) TestMsgOperatorSendNFT() { + rootNFTID := collection.NewNFTID(s.nftClassID, 1) + + testCases := map[string]struct { + contractID string + operator sdk.AccAddress + from sdk.AccAddress + to sdk.AccAddress + tokenID string + err error + events sdk.Events + }{ + "valid request": { + contractID: s.contractID, + operator: s.operator, + from: s.customer, + to: s.vendor, + tokenID: rootNFTID, + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventSent", + Attributes: []abci.EventAttribute{ + {Key: "amount", Value: mustJSONMarshal(collection.NewCoins(collection.Coin{TokenId: rootNFTID, Amount: math.OneInt()})), Index: false}, + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "from", Value: w(s.bytesToString(s.customer)), Index: false}, + {Key: "operator", Value: w(s.bytesToString(s.operator)), Index: false}, + {Key: "to", Value: w(s.bytesToString(s.vendor)), Index: false}, + }, + }, + }, + }, + "contract not found": { + contractID: "deadbeef", + operator: s.operator, + from: s.customer, + to: s.vendor, + tokenID: rootNFTID, + err: collection.ErrContractNotExist, + }, + "not approved": { + contractID: s.contractID, + operator: s.vendor, + from: s.customer, + to: s.vendor, + tokenID: rootNFTID, + err: collection.ErrCollectionNotApproved, + }, + "NFT not found": { + contractID: s.contractID, + operator: s.operator, + from: s.customer, + to: s.vendor, + tokenID: collection.NewNFTID("deadbeef", 1), + err: collection.ErrTokenNotExist, + }, + "not owned by": { + contractID: s.contractID, + operator: s.operator, + from: s.customer, + to: s.vendor, + tokenID: collection.NewNFTID(s.nftClassID, s.numNFTs+1), + err: collection.ErrTokenNotOwnedBy, + }, + "invalid operator": { + contractID: s.contractID, + from: s.customer, + to: s.vendor, + tokenID: rootNFTID, + err: sdkerrors.ErrInvalidAddress, + }, + "invalid contract id": { + operator: s.operator, + from: s.customer, + to: s.vendor, + tokenID: rootNFTID, + err: collection.ErrInvalidContractID, + }, + "invalid from": { + contractID: s.contractID, + operator: s.operator, + to: s.vendor, + tokenID: rootNFTID, + err: sdkerrors.ErrInvalidAddress, + }, + "invalid to": { + contractID: s.contractID, + operator: s.operator, + from: s.customer, + tokenID: rootNFTID, + err: sdkerrors.ErrInvalidAddress, + }, + "empty ids": { + contractID: s.contractID, + operator: s.operator, + from: s.customer, + to: s.vendor, + err: collection.ErrEmptyField, + }, + "invalid id": { + contractID: s.contractID, + operator: s.operator, + from: s.customer, + to: s.vendor, + tokenID: "null", + err: collection.ErrInvalidTokenID, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + var req *collection.MsgOperatorSendNFT + if tc.tokenID == "" { + req = &collection.MsgOperatorSendNFT{ + ContractId: tc.contractID, + Operator: s.bytesToString(tc.operator), + From: s.bytesToString(tc.from), + To: s.bytesToString(tc.to), + } + } else { + req = &collection.MsgOperatorSendNFT{ + ContractId: tc.contractID, + Operator: s.bytesToString(tc.operator), + From: s.bytesToString(tc.from), + To: s.bytesToString(tc.to), + TokenIds: []string{tc.tokenID}, + } + } + res, err := s.msgServer.OperatorSendNFT(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) TestMsgAuthorizeOperator() { + testCases := map[string]struct { + contractID string + holder sdk.AccAddress + operator sdk.AccAddress + events sdk.Events + err error + }{ + "valid request": { + contractID: s.contractID, + holder: s.customer, + operator: s.vendor, + events: sdk.Events{sdk.Event{ + Type: "lbm.collection.v1.EventAuthorizedOperator", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "holder", Value: w(s.bytesToString(s.customer)), Index: false}, + {Key: "operator", Value: w(s.bytesToString(s.vendor)), Index: false}, + }, + }}, + }, + "contract not found": { + contractID: "deadbeef", + holder: s.customer, + operator: s.vendor, + err: collection.ErrContractNotExist, + }, + "already approved": { + contractID: s.contractID, + holder: s.customer, + operator: s.operator, + err: collection.ErrCollectionAlreadyApproved, + }, + "invalid contract id": { + holder: s.customer, + operator: s.operator, + err: collection.ErrInvalidContractID, + }, + "invalid holder": { + contractID: s.contractID, + operator: s.operator, + err: sdkerrors.ErrInvalidAddress, + }, + "empty operator": { + contractID: s.contractID, + holder: s.customer, + err: sdkerrors.ErrInvalidAddress, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + // Arrange + ctx, _ := s.ctx.CacheContext() + prevAuth, _ := s.keeper.GetAuthorization(ctx, tc.contractID, tc.holder, tc.operator) + + // Act + req := &collection.MsgAuthorizeOperator{ + ContractId: tc.contractID, + Holder: s.bytesToString(tc.holder), + Operator: s.bytesToString(tc.operator), + } + res, err := s.msgServer.AuthorizeOperator(ctx, req) + if tc.err != nil { + s.Require().ErrorIs(err, tc.err) + return + } + s.Require().NoError(err) + s.Require().NotNil(res) + s.Require().Equal(tc.events, ctx.EventManager().Events()) + curAuth, err := s.keeper.GetAuthorization(ctx, tc.contractID, tc.holder, tc.operator) + s.Require().NoError(err) + s.Require().Nil(prevAuth) + h, err := s.addressCodec.BytesToString(tc.holder.Bytes()) + s.Require().NoError(err) + s.Require().Equal(h, curAuth.Holder) + o, err := s.addressCodec.BytesToString(tc.operator.Bytes()) + s.Require().NoError(err) + s.Require().Equal(o, curAuth.Operator) + }) + } +} + +func (s *KeeperTestSuite) TestMsgRevokeOperator() { + testCases := map[string]struct { + contractID string + holder sdk.AccAddress + operator sdk.AccAddress + events sdk.Events + err error + }{ + "valid request": { + contractID: s.contractID, + holder: s.customer, + operator: s.operator, + events: sdk.Events{sdk.Event{ + Type: "lbm.collection.v1.EventRevokedOperator", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "holder", Value: w(s.bytesToString(s.customer)), Index: false}, + {Key: "operator", Value: w(s.bytesToString(s.operator)), Index: false}, + }, + }}, + }, + "contract not found": { + contractID: "deadbeef", + holder: s.customer, + operator: s.vendor, + err: collection.ErrContractNotExist, + }, + "no authorization": { + contractID: s.contractID, + holder: s.customer, + operator: s.vendor, + err: collection.ErrCollectionNotApproved, + }, + "invalid contract id": { + holder: s.customer, + operator: s.operator, + err: collection.ErrInvalidContractID, + }, + "invalid holder": { + contractID: s.contractID, + operator: s.operator, + err: sdkerrors.ErrInvalidAddress, + }, + "empty operator": { + contractID: s.contractID, + holder: s.customer, + err: sdkerrors.ErrInvalidAddress, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + // Arrange + ctx, _ := s.ctx.CacheContext() + prevAuth, _ := s.keeper.GetAuthorization(ctx, tc.contractID, tc.holder, tc.operator) + + // Act + req := &collection.MsgRevokeOperator{ + ContractId: tc.contractID, + Holder: s.bytesToString(tc.holder), + Operator: s.bytesToString(tc.operator), + } + res, err := s.msgServer.RevokeOperator(ctx, req) + if tc.err != nil { + s.Require().ErrorIs(err, tc.err) + return + } + s.Require().NoError(err) + s.Require().NotNil(res) + + s.Require().Equal(tc.events, ctx.EventManager().Events()) + s.Require().NotNil(prevAuth) + s.Require().Equal(s.bytesToString(tc.holder), prevAuth.Holder) + s.Require().Equal(s.bytesToString(tc.operator), prevAuth.Operator) + curAuth, err := s.keeper.GetAuthorization(ctx, tc.contractID, tc.holder, tc.operator) + s.Require().ErrorIs(err, collection.ErrCollectionNotApproved) + s.Require().Nil(curAuth) + }) + } +} + +func (s *KeeperTestSuite) TestMsgCreateContract() { + expectedNewContractID := "3336b76f" + testCases := map[string]struct { + owner sdk.AccAddress + name string + uri string + meta string + err error + events sdk.Events + }{ + "valid request": { + owner: s.vendor, + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventCreatedContract", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(expectedNewContractID), Index: false}, + {Key: "creator", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "meta", Value: w(""), Index: false}, + {Key: "name", Value: w(""), Index: false}, + {Key: "uri", Value: w(""), Index: false}, + }, + }, + sdk.Event{ + Type: "lbm.collection.v1.EventGranted", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(expectedNewContractID), Index: false}, + {Key: "grantee", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "granter", Value: w(""), Index: false}, + {Key: "permission", Value: w(collection.Permission(collection.LegacyPermissionIssue).String()), Index: false}, + }, + }, + sdk.Event{ + Type: "lbm.collection.v1.EventGranted", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(expectedNewContractID), Index: false}, + {Key: "grantee", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "granter", Value: w(""), Index: false}, + {Key: "permission", Value: w(collection.Permission(collection.LegacyPermissionModify).String()), Index: false}, + }, + }, + sdk.Event{ + Type: "lbm.collection.v1.EventGranted", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(expectedNewContractID), Index: false}, + {Key: "grantee", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "granter", Value: w(""), Index: false}, + {Key: "permission", Value: w(collection.Permission(collection.LegacyPermissionMint).String()), Index: false}, + }, + }, + sdk.Event{ + Type: "lbm.collection.v1.EventGranted", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(expectedNewContractID), Index: false}, + {Key: "grantee", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "granter", Value: w(""), Index: false}, + {Key: "permission", Value: w(collection.Permission(collection.LegacyPermissionBurn).String()), Index: false}, + }, + }, + }, + }, + "invalid owner": { + name: "tibetian fox", + uri: "file:///tibetian_fox.png", + meta: "Tibetian fox", + err: sdkerrors.ErrInvalidAddress, + }, + "long name": { + owner: s.vendor, + name: string(make([]rune, 21)), + uri: "file:///tibetian_fox.png", + meta: "Tibetian fox", + err: collection.ErrInvalidNameLength, + }, + "invalid base image uri": { + owner: s.vendor, + name: "tibetian fox", + uri: string(make([]rune, 1001)), + meta: "Tibetian fox", + err: collection.ErrInvalidBaseImgURILength, + }, + "invalid meta": { + owner: s.vendor, + name: "tibetian fox", + uri: "file:///tibetian_fox.png", + meta: string(make([]rune, 1001)), + err: collection.ErrInvalidMetaLength, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + req := &collection.MsgCreateContract{ + Owner: s.bytesToString(tc.owner), + Name: tc.name, + Uri: tc.uri, + Meta: tc.meta, + } + res, err := s.msgServer.CreateContract(ctx, req) + if tc.err != nil { + s.Require().ErrorIs(err, tc.err) + return + } + s.Require().Equal(expectedNewContractID, res.ContractId) + + s.Require().NotNil(res) + s.Require().Equal(tc.events, ctx.EventManager().Events()) + }) + } +} + +func (s *KeeperTestSuite) TestMsgIssueNFT() { + expectedTokenType := "10000002" + + testCases := map[string]struct { + contractID string + owner sdk.AccAddress + name string + meta string + err error + events sdk.Events + }{ + "valid request": { + contractID: s.contractID, + owner: s.vendor, + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventCreatedNFTClass", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "meta", Value: w(""), Index: false}, + {Key: "name", Value: w(""), Index: false}, + {Key: "operator", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "token_type", Value: w(expectedTokenType), Index: false}, + }, + }, + sdk.Event{ + Type: "lbm.collection.v1.EventGranted", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "grantee", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "granter", Value: w(""), Index: false}, + {Key: "permission", Value: w(collection.Permission(collection.LegacyPermissionMint).String()), Index: false}, + }, + }, + sdk.Event{ + Type: "lbm.collection.v1.EventGranted", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "grantee", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "granter", Value: w(""), Index: false}, + {Key: "permission", Value: w(collection.Permission(collection.LegacyPermissionBurn).String()), Index: false}, + }, + }, + }, + }, + "contract not found": { + contractID: "deadbeef", + owner: s.vendor, + err: collection.ErrContractNotExist, + }, + "no permission": { + contractID: s.contractID, + owner: s.customer, + err: collection.ErrTokenNoPermission, + }, + "invalid contract id": { + owner: s.vendor, + name: "tibetian fox", + meta: "Tibetian Fox", + err: collection.ErrInvalidContractID, + }, + "invalid operator": { + contractID: s.contractID, + name: "tibetian fox", + meta: "Tibetian Fox", + err: sdkerrors.ErrInvalidAddress, + }, + "long name": { + contractID: s.contractID, + owner: s.vendor, + meta: "Tibetian Fox", + name: string(make([]rune, 21)), + err: collection.ErrInvalidNameLength, + }, + "invalid meta": { + contractID: s.contractID, + owner: s.vendor, + name: "tibetian fox", + meta: string(make([]rune, 1001)), + err: collection.ErrInvalidMetaLength, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + req := &collection.MsgIssueNFT{ + ContractId: tc.contractID, + Owner: s.bytesToString(tc.owner), + Name: tc.name, + Meta: tc.meta, + } + res, err := s.msgServer.IssueNFT(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) TestMsgMintNFT() { + params := []collection.MintNFTParam{{ + TokenType: s.nftClassID, + Name: "tester", + Meta: "Mint NFT", + }} + expectedTokens := []collection.NFT{ + { + TokenId: "100000010000000d", + Name: params[0].Name, + Meta: params[0].Meta, + }, + } + + testCases := map[string]struct { + contractID string + from sdk.AccAddress + to sdk.AccAddress + params []collection.MintNFTParam + err error + events sdk.Events + }{ + "valid request": { + contractID: s.contractID, + from: s.vendor, + to: s.customer, + params: params, + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventMintedNFT", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "operator", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "to", Value: w(s.bytesToString(s.customer)), Index: false}, + {Key: "tokens", Value: mustJSONMarshal(expectedTokens), Index: false}, + }, + }, + }, + }, + "contract not found": { + contractID: "deadbeef", + from: s.vendor, + to: s.customer, + params: params, + err: collection.ErrContractNotExist, + }, + "no permission": { + contractID: s.contractID, + from: s.customer, + to: s.customer, + params: params, + err: collection.ErrTokenNoPermission, + }, + "no class of the token": { + contractID: s.contractID, + from: s.vendor, + to: s.customer, + params: []collection.MintNFTParam{{ + Name: "tibetian fox", + TokenType: "deadbeef", + }}, + err: collection.ErrTokenTypeNotExist, + }, + "invalid contract id": { + from: s.vendor, + to: s.customer, + params: params, + err: collection.ErrInvalidContractID, + }, + "invalid operator": { + contractID: s.contractID, + to: s.customer, + params: params, + err: sdkerrors.ErrInvalidAddress, + }, + "invalid to": { + contractID: s.contractID, + from: s.vendor, + params: params, + err: sdkerrors.ErrInvalidAddress, + }, + "empty params": { + contractID: s.contractID, + from: s.vendor, + to: s.customer, + err: collection.ErrEmptyField, + }, + "param of invalid token type": { + contractID: s.contractID, + from: s.vendor, + to: s.customer, + params: []collection.MintNFTParam{{ + Name: "tibetian fox", + }}, + err: collection.ErrInvalidTokenType, + }, + "param of empty name": { + contractID: s.contractID, + from: s.vendor, + to: s.customer, + params: []collection.MintNFTParam{{ + TokenType: s.nftClassID, + }}, + err: collection.ErrInvalidTokenName, + }, + "param of too long name": { + contractID: s.contractID, + from: s.vendor, + to: s.customer, + params: []collection.MintNFTParam{{ + TokenType: s.nftClassID, + Name: string(make([]rune, 21)), + }}, + err: collection.ErrInvalidNameLength, + }, + "param of invalid meta": { + contractID: s.contractID, + from: s.vendor, + to: s.customer, + params: []collection.MintNFTParam{{ + TokenType: s.nftClassID, + Name: "tibetian fox", + Meta: string(make([]rune, 1001)), + }}, + err: collection.ErrInvalidMetaLength, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + req := &collection.MsgMintNFT{ + ContractId: tc.contractID, + From: s.bytesToString(tc.from), + To: s.bytesToString(tc.to), + Params: tc.params, + } + res, err := s.msgServer.MintNFT(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))} + + testCases := map[string]struct { + contractID string + from sdk.AccAddress + tokenIDs []string + err error + events sdk.Events + }{ + "valid request": { + contractID: s.contractID, + from: s.vendor, + tokenIDs: []string{rootNFTID}, + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventBurned", + Attributes: []abci.EventAttribute{ + {Key: "amount", Value: mustJSONMarshal(coins), Index: false}, + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "from", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "operator", Value: w(s.bytesToString(s.vendor)), Index: false}, + }, + }, + }, + }, + "contract not found": { + contractID: "deadbeef", + from: s.vendor, + tokenIDs: []string{rootNFTID}, + err: collection.ErrContractNotExist, + }, + "no permission": { + contractID: s.contractID, + from: s.customer, + tokenIDs: []string{rootNFTID}, + err: collection.ErrTokenNoPermission, + }, + "NFT not found": { + contractID: s.contractID, + from: s.vendor, + tokenIDs: []string{ + collection.NewNFTID("deadbeef", 1), + }, + err: collection.ErrTokenNotExist, + }, + "not owned by": { + contractID: s.contractID, + from: s.vendor, + tokenIDs: []string{ + collection.NewNFTID(s.nftClassID, s.numNFTs+1), + }, + err: collection.ErrTokenNotOwnedBy, + }, + "invalid contract id": { + from: s.vendor, + tokenIDs: []string{rootNFTID}, + err: collection.ErrInvalidContractID, + }, + "invalid from": { + contractID: s.contractID, + tokenIDs: []string{rootNFTID}, + err: sdkerrors.ErrInvalidAddress, + }, + "empty ids": { + contractID: s.contractID, + from: s.vendor, + err: collection.ErrEmptyField, + }, + "invalid id": { + contractID: s.contractID, + from: s.vendor, + tokenIDs: []string{""}, + err: collection.ErrInvalidTokenID, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + req := &collection.MsgBurnNFT{ + ContractId: tc.contractID, + From: s.bytesToString(tc.from), + TokenIds: tc.tokenIDs, + } + res, err := s.msgServer.BurnNFT(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) TestMsgOperatorBurnNFT() { + rootNFTID := collection.NewNFTID(s.nftClassID, 1) + coins := []collection.Coin{collection.NewCoin(rootNFTID, math.NewInt(1))} + + testCases := map[string]struct { + contractID string + operator sdk.AccAddress + from sdk.AccAddress + tokenIDs []string + err error + events sdk.Events + }{ + "valid request": { + contractID: s.contractID, + operator: s.operator, + from: s.customer, + tokenIDs: []string{rootNFTID}, + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventBurned", + Attributes: []abci.EventAttribute{ + {Key: "amount", Value: mustJSONMarshal(coins), Index: false}, + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "from", Value: w(s.bytesToString(s.customer)), Index: false}, + {Key: "operator", Value: w(s.bytesToString(s.operator)), Index: false}, + }, + }, + }, + }, + "contract not found": { + contractID: "deadbeef", + operator: s.operator, + from: s.customer, + tokenIDs: []string{rootNFTID}, + err: collection.ErrContractNotExist, + }, + "no authorization": { + contractID: s.contractID, + operator: s.vendor, + from: s.customer, + tokenIDs: []string{rootNFTID}, + err: collection.ErrCollectionNotApproved, + }, + "no permission": { + contractID: s.contractID, + operator: s.stranger, + from: s.customer, + tokenIDs: []string{rootNFTID}, + err: collection.ErrTokenNoPermission, + }, + "NFT not found": { + contractID: s.contractID, + operator: s.operator, + from: s.customer, + tokenIDs: []string{ + collection.NewNFTID("deadbeef", 1), + }, + err: collection.ErrTokenNotExist, + }, + "not owned by": { + contractID: s.contractID, + operator: s.operator, + from: s.customer, + tokenIDs: []string{ + collection.NewNFTID(s.nftClassID, s.numNFTs+1), + }, + err: collection.ErrTokenNotOwnedBy, + }, + "invalid contract id": { + operator: s.operator, + from: s.customer, + tokenIDs: []string{rootNFTID}, + err: collection.ErrInvalidContractID, + }, + "invalid grantee": { + contractID: s.contractID, + from: s.customer, + tokenIDs: []string{rootNFTID}, + err: sdkerrors.ErrInvalidAddress, + }, + "invalid from": { + contractID: s.contractID, + operator: s.operator, + tokenIDs: []string{rootNFTID}, + err: sdkerrors.ErrInvalidAddress, + }, + "empty ids": { + contractID: s.contractID, + operator: s.operator, + from: s.customer, + err: collection.ErrEmptyField, + }, + "invalid id": { + contractID: s.contractID, + operator: s.operator, + from: s.customer, + tokenIDs: []string{""}, + err: collection.ErrInvalidTokenID, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + req := &collection.MsgOperatorBurnNFT{ + ContractId: tc.contractID, + Operator: s.bytesToString(tc.operator), + From: s.bytesToString(tc.from), + TokenIds: tc.tokenIDs, + } + res, err := s.msgServer.OperatorBurnNFT(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) TestMsgModify() { + expectedTokenIndex := collection.NewNFTID(s.nftClassID, 1)[8:] + validChanges := []collection.Attribute{{ + Key: collection.AttributeKeyName.String(), + Value: "test", + }} + + testCases := map[string]struct { + operator sdk.AccAddress + contractID string + tokenType string + tokenIndex string + changes []collection.Attribute + err error + events sdk.Events + }{ + "valid request - Contract": { + contractID: s.contractID, + operator: s.vendor, + changes: validChanges, + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventModifiedContract", + Attributes: []abci.EventAttribute{ + {Key: "changes", Value: mustJSONMarshal(validChanges), Index: false}, + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "operator", Value: w(s.bytesToString(s.vendor)), Index: false}, + }, + }, + }, + }, + "valid request - TokenClass": { + contractID: s.contractID, + operator: s.vendor, + tokenType: s.nftClassID, + changes: validChanges, + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventModifiedTokenClass", + Attributes: []abci.EventAttribute{ + {Key: "changes", Value: mustJSONMarshal(validChanges), Index: false}, + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "operator", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "token_type", Value: w(s.nftClassID), Index: false}, + {Key: "type_name", Value: w(proto.MessageName(&collection.NFTClass{})), Index: false}, + }, + }, + }, + }, + "valid request - NFT": { + contractID: s.contractID, + operator: s.vendor, + tokenType: s.nftClassID, + tokenIndex: s.issuedNFTs[s.bytesToString(s.vendor)][0].TokenId[8:], + changes: validChanges, + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventModifiedNFT", + Attributes: []abci.EventAttribute{ + {Key: "changes", Value: mustJSONMarshal(validChanges), Index: false}, + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "operator", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "token_id", Value: w(s.issuedNFTs[s.bytesToString(s.vendor)][0].TokenId), Index: false}, + }, + }, + }, + }, + "contract not found": { + contractID: "deadbeef", + operator: s.vendor, + changes: validChanges, + err: collection.ErrContractNotExist, + }, + "no permission": { + contractID: s.contractID, + operator: s.customer, + tokenType: s.nftClassID, + tokenIndex: expectedTokenIndex, + changes: validChanges, + err: collection.ErrTokenNoPermission, + }, + "nft not found": { + contractID: s.contractID, + operator: s.vendor, + tokenType: s.nftClassID, + tokenIndex: collection.NewNFTID(s.nftClassID, s.numNFTs*3+1)[8:], + changes: validChanges, + err: collection.ErrTokenNotExist, + }, + "nft class not found": { + contractID: s.contractID, + operator: s.vendor, + tokenType: "deadbeef", + changes: validChanges, + err: collection.ErrTokenTypeNotExist, + }, + "invalid contract id": { + operator: s.vendor, + changes: validChanges, + err: collection.ErrInvalidContractID, + }, + "invalid owner": { + contractID: s.contractID, + changes: validChanges, + err: sdkerrors.ErrInvalidAddress, + }, + "invalid key of change": { + contractID: s.contractID, + operator: s.vendor, + changes: []collection.Attribute{{Key: strings.ToUpper(collection.AttributeKeyName.String()), Value: "tt"}}, + err: collection.ErrInvalidChangesField, + }, + "invalid value of change": { + contractID: s.contractID, + operator: s.vendor, + changes: []collection.Attribute{{Key: collection.AttributeKeyName.String(), Value: string(make([]rune, 21))}}, + err: collection.ErrInvalidNameLength, + }, + "empty changes": { + contractID: s.contractID, + operator: s.vendor, + err: collection.ErrEmptyChanges, + }, + "too many changes": { + contractID: s.contractID, + operator: s.vendor, + changes: make([]collection.Attribute, 101), + err: collection.ErrInvalidChangesFieldCount, + }, + "duplicated changes": { + contractID: s.contractID, + operator: s.vendor, + changes: []collection.Attribute{ + {Key: collection.AttributeKeyBaseImgURI.String(), Value: "hello"}, + {Key: collection.AttributeKeyURI.String(), Value: "world"}, + }, + err: collection.ErrDuplicateChangesField, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + req := &collection.MsgModify{ + ContractId: tc.contractID, + Owner: s.bytesToString(tc.operator), + TokenType: tc.tokenType, + TokenIndex: tc.tokenIndex, + Changes: tc.changes, + } + res, err := s.msgServer.Modify(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) TestMsgGrantPermission() { + testCases := map[string]struct { + contractID string + granter sdk.AccAddress + grantee sdk.AccAddress + permission string + err error + events sdk.Events + }{ + "valid request": { + contractID: s.contractID, + granter: s.vendor, + grantee: s.operator, + permission: collection.LegacyPermissionModify.String(), + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventGranted", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "grantee", Value: w(s.bytesToString(s.operator)), Index: false}, + {Key: "granter", Value: w(s.bytesToString(s.vendor)), Index: false}, + {Key: "permission", Value: w(collection.Permission(collection.LegacyPermissionModify).String()), Index: false}, + }, + }, + }, + }, + "contract not found": { + contractID: "deadbeef", + granter: s.vendor, + grantee: s.operator, + permission: collection.LegacyPermissionModify.String(), + err: collection.ErrContractNotExist, + }, + "granter has no permission": { + contractID: s.contractID, + granter: s.customer, + grantee: s.operator, + permission: collection.LegacyPermissionModify.String(), + err: collection.ErrTokenNoPermission, + }, + "invalid contract id": { + granter: s.vendor, + grantee: s.operator, + permission: collection.LegacyPermissionMint.String(), + err: collection.ErrInvalidContractID, + }, + "invalid from": { + contractID: s.contractID, + grantee: s.operator, + permission: collection.LegacyPermissionMint.String(), + err: sdkerrors.ErrInvalidAddress, + }, + "invalid to": { + contractID: s.contractID, + granter: s.vendor, + permission: collection.LegacyPermissionMint.String(), + err: sdkerrors.ErrInvalidAddress, + }, + "invalid permission": { + contractID: s.contractID, + granter: s.vendor, + grantee: s.operator, + err: collection.ErrInvalidPermission, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + req := &collection.MsgGrantPermission{ + ContractId: tc.contractID, + From: s.bytesToString(tc.granter), + To: s.bytesToString(tc.grantee), + Permission: tc.permission, + } + res, err := s.msgServer.GrantPermission(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) TestMsgRevokePermission() { + testCases := map[string]struct { + contractID string + from sdk.AccAddress + permission string + err error + events sdk.Events + }{ + "valid request": { + contractID: s.contractID, + from: s.operator, + permission: collection.LegacyPermissionMint.String(), + events: sdk.Events{ + sdk.Event{ + Type: "lbm.collection.v1.EventRenounced", + Attributes: []abci.EventAttribute{ + {Key: "contract_id", Value: w(s.contractID), Index: false}, + {Key: "grantee", Value: w(s.bytesToString(s.operator)), Index: false}, + {Key: "permission", Value: w(collection.Permission(collection.LegacyPermissionMint).String()), Index: false}, + }, + }, + }, + }, + "contract not found": { + contractID: "deadbeef", + from: s.operator, + permission: collection.LegacyPermissionMint.String(), + err: collection.ErrContractNotExist, + }, + "not granted yet": { + contractID: s.contractID, + from: s.operator, + permission: collection.LegacyPermissionModify.String(), + err: collection.ErrTokenNoPermission, + }, + "invalid contract id": { + from: s.operator, + permission: collection.LegacyPermissionMint.String(), + err: collection.ErrInvalidContractID, + }, + "invalid from": { + contractID: s.contractID, + permission: collection.LegacyPermissionMint.String(), + err: sdkerrors.ErrInvalidAddress, + }, + "invalid permission": { + contractID: s.contractID, + from: s.operator, + err: collection.ErrInvalidPermission, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + req := &collection.MsgRevokePermission{ + ContractId: tc.contractID, + From: s.bytesToString(tc.from), + Permission: tc.permission, + } + res, err := s.msgServer.RevokePermission(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()) + }) + } +} diff --git a/x/collection/keeper/nft.go b/x/collection/keeper/nft.go new file mode 100644 index 0000000000..c918d6ca4b --- /dev/null +++ b/x/collection/keeper/nft.go @@ -0,0 +1,107 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func legacyNFTNotFoundError(k Keeper, ctx sdk.Context, contractID, tokenID string) error { + if err2 := collection.ValidateLegacyNFTID(tokenID); err2 == nil /* "==" is intentional */ { + return collection.ErrTokenNotExist.Wrap(tokenID) + } + + classID := collection.SplitTokenID(tokenID) + if _, err2 := k.GetTokenClass(ctx, contractID, classID); err2 != nil { + return collection.ErrTokenNotExist.Wrap(tokenID) + } + + return collection.ErrTokenNotNFT.Wrap(tokenID) +} + +func (k Keeper) hasNFT(ctx sdk.Context, contractID, tokenID string) error { + store := k.storeService.OpenKVStore(ctx) + key := nftKey(contractID, tokenID) + if ok, _ := store.Has(key); !ok { + return legacyNFTNotFoundError(k, ctx, contractID, tokenID) + } + return nil +} + +func (k Keeper) GetNFT(ctx sdk.Context, contractID, tokenID string) (*collection.NFT, error) { + store := k.storeService.OpenKVStore(ctx) + key := nftKey(contractID, tokenID) + bz, err := store.Get(key) + if err != nil { + return nil, err + } + if bz == nil { + return nil, legacyNFTNotFoundError(k, ctx, contractID, tokenID) + } + + var token collection.NFT + k.cdc.MustUnmarshal(bz, &token) + + return &token, nil +} + +func (k Keeper) setNFT(ctx sdk.Context, contractID string, token collection.NFT) { + store := k.storeService.OpenKVStore(ctx) + key := nftKey(contractID, token.TokenId) + + bz, err := token.Marshal() + if err != nil { + panic(err) + } + err = store.Set(key, bz) + if err != nil { + panic(err) + } +} + +func (k Keeper) deleteNFT(ctx sdk.Context, contractID, tokenID string) { + store := k.storeService.OpenKVStore(ctx) + key := nftKey(contractID, tokenID) + err := store.Delete(key) + if err != nil { + panic(err) + } +} + +func (k Keeper) getOwner(ctx sdk.Context, contractID, tokenID string) sdk.AccAddress { + store := k.storeService.OpenKVStore(ctx) + key := ownerKey(contractID, tokenID) + bz, _ := store.Get(key) + if bz == nil { + panic("owner must exist") + } + + var owner sdk.AccAddress + if err := owner.Unmarshal(bz); err != nil { + panic(err) + } + return owner +} + +func (k Keeper) setOwner(ctx sdk.Context, contractID, tokenID string, owner sdk.AccAddress) { + store := k.storeService.OpenKVStore(ctx) + key := ownerKey(contractID, tokenID) + + bz, err := owner.Marshal() + if err != nil { + panic(err) + } + err = store.Set(key, bz) + if err != nil { + panic(err) + } +} + +func (k Keeper) deleteOwner(ctx sdk.Context, contractID, tokenID string) { + store := k.storeService.OpenKVStore(ctx) + key := ownerKey(contractID, tokenID) + err := store.Delete(key) + if err != nil { + panic(err) + } +} diff --git a/x/collection/keeper/nft_test.go b/x/collection/keeper/nft_test.go new file mode 100644 index 0000000000..d2f68528ac --- /dev/null +++ b/x/collection/keeper/nft_test.go @@ -0,0 +1,35 @@ +package keeper_test + +import ( + "github.com/Finschia/finschia-sdk/x/collection" +) + +func (s *KeeperTestSuite) TestGetNFT() { + testCases := map[string]struct { + tokenID string + err error + }{ + "valid request": { + tokenID: collection.NewNFTID(s.nftClassID, 1), + }, + "not found (not existing nft id)": { + tokenID: collection.NewNFTID("deadbeef", 1), + err: collection.ErrTokenNotExist, + }, + "not found (existing nft class id)": { + tokenID: collection.NewNFTID(s.nftClassID, 0), + err: collection.ErrTokenNotExist, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + token, err := s.keeper.GetNFT(s.ctx, s.contractID, tc.tokenID) + s.Require().ErrorIs(err, tc.err) + if tc.err != nil { + return + } + s.Require().NotNil(token) + }) + } +} diff --git a/x/collection/keeper/param.go b/x/collection/keeper/param.go new file mode 100644 index 0000000000..465ffbac6b --- /dev/null +++ b/x/collection/keeper/param.go @@ -0,0 +1,39 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func (k Keeper) GetParams(ctx sdk.Context) collection.Params { + store := k.storeService.OpenKVStore(ctx) + key := paramsKey + bz, err := store.Get(key) + if err != nil { + panic(err) + } + if bz == nil { + panic(sdkerrors.ErrNotFound.Wrap("params does not exist")) + } + + var params collection.Params + k.cdc.MustUnmarshal(bz, ¶ms) + + return params +} + +func (k Keeper) SetParams(ctx sdk.Context, params collection.Params) { + store := k.storeService.OpenKVStore(ctx) + key := paramsKey + + bz, err := params.Marshal() + if err != nil { + panic(err) + } + + if err := store.Set(key, bz); err != nil { + panic(err) + } +} diff --git a/x/collection/keeper/send.go b/x/collection/keeper/send.go new file mode 100644 index 0000000000..0ab7125725 --- /dev/null +++ b/x/collection/keeper/send.go @@ -0,0 +1,128 @@ +package keeper + +import ( + "cosmossdk.io/math" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func (k Keeper) SendCoins(ctx sdk.Context, contractID string, from, to sdk.AccAddress, amount []collection.Coin) error { + if err := k.subtractCoins(ctx, contractID, from, amount); err != nil { + return err + } + k.addCoins(ctx, contractID, to, amount) + return nil +} + +func (k Keeper) addCoins(ctx sdk.Context, contractID string, address sdk.AccAddress, amount []collection.Coin) { + for _, coin := range amount { + balance := k.GetBalance(ctx, contractID, address, coin.TokenId) + newBalance := balance.Add(coin.Amount) + k.setBalance(ctx, contractID, address, coin.TokenId, newBalance) + k.setOwner(ctx, contractID, coin.TokenId, address) + } +} + +func (k Keeper) subtractCoins(ctx sdk.Context, contractID string, address sdk.AccAddress, amount []collection.Coin) error { + for _, coin := range amount { + balance := k.GetBalance(ctx, contractID, address, coin.TokenId) + newBalance := balance.Sub(coin.Amount) + if newBalance.IsNegative() { + return collection.ErrInsufficientToken.Wrapf("%s is smaller than %s", balance, coin.Amount) + } + k.setBalance(ctx, contractID, address, coin.TokenId, newBalance) + k.deleteOwner(ctx, contractID, coin.TokenId) + } + + return nil +} + +func (k Keeper) GetBalance(ctx sdk.Context, contractID string, address sdk.AccAddress, tokenID string) math.Int { + store := k.storeService.OpenKVStore(ctx) + key := balanceKey(contractID, address, tokenID) + bz, _ := store.Get(key) + if bz == nil { + return math.ZeroInt() + } + + var balance math.Int + if err := balance.Unmarshal(bz); err != nil { + panic(err) + } + return balance +} + +func (k Keeper) setBalance(ctx sdk.Context, contractID string, address sdk.AccAddress, tokenID string, balance math.Int) { + store := k.storeService.OpenKVStore(ctx) + key := balanceKey(contractID, address, tokenID) + + if balance.IsZero() { + err := store.Delete(key) + if err != nil { + panic(err) + } + } else { + bz, err := balance.Marshal() + if err != nil { + panic(err) + } + err = store.Set(key, bz) + if err != nil { + panic(err) + } + } +} + +func (k Keeper) AuthorizeOperator(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) error { + if _, err := k.GetContract(ctx, contractID); err != nil { + panic(err) + } + + if _, err := k.GetAuthorization(ctx, contractID, holder, operator); err == nil { + return collection.ErrCollectionAlreadyApproved.Wrap("Already authorized") + } + + k.setAuthorization(ctx, contractID, holder, operator) + + return nil +} + +func (k Keeper) RevokeOperator(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) error { + if _, err := k.GetAuthorization(ctx, contractID, holder, operator); err != nil { + return err + } + + k.deleteAuthorization(ctx, contractID, holder, operator) + return nil +} + +func (k Keeper) GetAuthorization(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) (*collection.Authorization, error) { + store := k.storeService.OpenKVStore(ctx) + if ok, _ := store.Has(authorizationKey(contractID, operator, holder)); ok { + return &collection.Authorization{ + Holder: k.bytesToString(holder), + Operator: k.bytesToString(operator), + }, nil + } + return nil, collection.ErrCollectionNotApproved.Wrapf("no authorization by %s to %s", holder, operator) +} + +func (k Keeper) setAuthorization(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) { + store := k.storeService.OpenKVStore(ctx) + key := authorizationKey(contractID, operator, holder) + err := store.Set(key, []byte{}) + if err != nil { + panic(err) + } +} + +func (k Keeper) deleteAuthorization(ctx sdk.Context, contractID string, holder, operator sdk.AccAddress) { + store := k.storeService.OpenKVStore(ctx) + key := authorizationKey(contractID, operator, holder) + err := store.Delete(key) + if err != nil { + panic(err) + } +} diff --git a/x/collection/keeper/send_test.go b/x/collection/keeper/send_test.go new file mode 100644 index 0000000000..16b01912ee --- /dev/null +++ b/x/collection/keeper/send_test.go @@ -0,0 +1,107 @@ +package keeper_test + +import ( + "fmt" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func (s *KeeperTestSuite) TestSendCoins() { + testCases := map[string]struct { + amount collection.Coin + err error + }{ + "valid send (non-fungible token)": { + amount: collection.NewNFTCoin(s.nftClassID, 1), + }, + "insufficient tokens": { + amount: collection.NewNFTCoin(s.nftClassID, s.numNFTs*3+1), + err: collection.ErrInsufficientToken, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + tokenID := tc.amount.TokenId + customerBalance := s.keeper.GetBalance(ctx, s.contractID, s.customer, tokenID) + operatorBalance := s.keeper.GetBalance(ctx, s.contractID, s.operator, tokenID) + + err := s.keeper.SendCoins(ctx, s.contractID, s.customer, s.operator, collection.NewCoins(tc.amount)) + s.Require().ErrorIs(err, tc.err) + if tc.err != nil { + return + } + + newCustomerBalance := s.keeper.GetBalance(ctx, s.contractID, s.customer, tokenID) + newOperatorBalance := s.keeper.GetBalance(ctx, s.contractID, s.operator, tokenID) + s.Require().True(customerBalance.Sub(tc.amount.Amount).Equal(newCustomerBalance)) + s.Require().True(operatorBalance.Add(tc.amount.Amount).Equal(newOperatorBalance)) + }) + } +} + +func (s *KeeperTestSuite) TestAuthorizeOperator() { + userDescriptions := map[string]string{ + s.bytesToString(s.vendor): "vendor", + s.bytesToString(s.operator): "operator", + s.bytesToString(s.customer): "customer", + } + for operator, operatorDesc := range userDescriptions { + for from, fromDesc := range userDescriptions { + name := fmt.Sprintf("Operator: %s, From: %s", operatorDesc, fromDesc) + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + fromAddr, err := s.addressCodec.StringToBytes(from) + s.Require().NoError(err) + operatorAddr, err := s.addressCodec.StringToBytes(operator) + s.Require().NoError(err) + + _, queryErr := s.keeper.GetAuthorization(ctx, s.contractID, fromAddr, operatorAddr) + err = s.keeper.AuthorizeOperator(ctx, s.contractID, fromAddr, operatorAddr) + if queryErr == nil { // authorize must fail + s.Require().ErrorIs(err, collection.ErrCollectionAlreadyApproved) + } else { + s.Require().ErrorIs(queryErr, collection.ErrCollectionNotApproved) + s.Require().NoError(err) + _, queryErr := s.keeper.GetAuthorization(ctx, s.contractID, fromAddr, operatorAddr) + s.Require().NoError(queryErr) + } + }) + } + } +} + +func (s *KeeperTestSuite) TestRevokeOperator() { + userDescriptions := map[string]string{ + s.bytesToString(s.vendor): "vendor", + s.bytesToString(s.operator): "operator", + s.bytesToString(s.customer): "customer", + } + for operator, operatorDesc := range userDescriptions { + for from, fromDesc := range userDescriptions { + name := fmt.Sprintf("Operator: %s, From: %s", operatorDesc, fromDesc) + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + fromAddr, err := s.addressCodec.StringToBytes(from) + s.Require().NoError(err) + operatorAddr, err := s.addressCodec.StringToBytes(operator) + s.Require().NoError(err) + + _, queryErr := s.keeper.GetAuthorization(ctx, s.contractID, fromAddr, operatorAddr) + err = s.keeper.RevokeOperator(ctx, s.contractID, fromAddr, operatorAddr) + if queryErr != nil { // revoke must fail + s.Require().ErrorIs(queryErr, collection.ErrCollectionNotApproved) + s.Require().ErrorIs(err, collection.ErrCollectionNotApproved) + } else { + s.Require().NoError(err) + _, queryErr := s.keeper.GetAuthorization(ctx, s.contractID, fromAddr, operatorAddr) + s.Require().ErrorIs(queryErr, collection.ErrCollectionNotApproved) + } + }) + } + } +} diff --git a/x/collection/keeper/supply.go b/x/collection/keeper/supply.go new file mode 100644 index 0000000000..e9f1cf9f3a --- /dev/null +++ b/x/collection/keeper/supply.go @@ -0,0 +1,446 @@ +package keeper + +import ( + "cosmossdk.io/math" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func (k Keeper) CreateContract(ctx sdk.Context, creator sdk.AccAddress, contract collection.Contract) string { + contractID := k.createContract(ctx, contract) + + event := collection.EventCreatedContract{ + Creator: k.bytesToString(creator), + ContractId: contractID, + Name: contract.Name, + Meta: contract.Meta, + Uri: contract.Uri, + } + if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { + panic(err) + } + + // 0 is "unspecified" + for i := 1; i < len(collection.Permission_value); i++ { + p := collection.Permission(i) + + k.Grant(ctx, contractID, []byte{}, creator, p) + } + + return contractID +} + +func (k Keeper) createContract(ctx sdk.Context, contract collection.Contract) string { + contractID := k.NewID(ctx) + contract.Id = contractID + k.setContract(ctx, contract) + + // set the next class ids + nextIDs := collection.DefaultNextClassIDs(contractID) + k.setNextClassIDs(ctx, nextIDs) + + return contractID +} + +func (k Keeper) GetContract(ctx sdk.Context, contractID string) (*collection.Contract, error) { + store := k.storeService.OpenKVStore(ctx) + key := contractKey(contractID) + bz, _ := store.Get(key) + if bz == nil { + return nil, collection.ErrCollectionNotExist.Wrapf("no such a contract: %s", contractID) + } + + var contract collection.Contract + if err := contract.Unmarshal(bz); err != nil { + panic(err) + } + return &contract, nil +} + +func (k Keeper) setContract(ctx sdk.Context, contract collection.Contract) { + store := k.storeService.OpenKVStore(ctx) + key := contractKey(contract.Id) + + bz, err := contract.Marshal() + if err != nil { + panic(err) + } + err = store.Set(key, bz) + if err != nil { + panic(err) + } +} + +func (k Keeper) CreateTokenClass(ctx sdk.Context, contractID string, class collection.TokenClass) (*string, error) { + if _, err := k.GetContract(ctx, contractID); err != nil { + panic(err) + } + + nextClassIDs := k.getNextClassIDs(ctx, contractID) + class.SetID(&nextClassIDs) + k.setNextClassIDs(ctx, nextClassIDs) + + if err := class.ValidateBasic(); err != nil { + return nil, err + } + k.setTokenClass(ctx, contractID, class) + + if nftClass, ok := class.(*collection.NFTClass); ok { + k.setNextTokenID(ctx, contractID, nftClass.Id, math.OneUint()) + } else { + panic("TokenClass only supports NFTClass") + } + + id := class.GetId() + return &id, nil +} + +func (k Keeper) GetTokenClass(ctx sdk.Context, contractID, classID string) (collection.TokenClass, error) { + store := k.storeService.OpenKVStore(ctx) + key := classKey(contractID, classID) + bz, _ := store.Get(key) + if bz == nil { + return nil, sdkerrors.ErrNotFound.Wrapf("no such a class in contract %s: %s", contractID, classID) + } + + var class collection.TokenClass + if err := k.cdc.UnmarshalInterface(bz, &class); err != nil { + panic(err) + } + return class, nil +} + +func (k Keeper) setTokenClass(ctx sdk.Context, contractID string, class collection.TokenClass) { + store := k.storeService.OpenKVStore(ctx) + key := classKey(contractID, class.GetId()) + + bz, err := k.cdc.MarshalInterface(class) + if err != nil { + panic(err) + } + err = store.Set(key, bz) + if err != nil { + panic(err) + } +} + +func (k Keeper) getNextClassIDs(ctx sdk.Context, contractID string) collection.NextClassIDs { + store := k.storeService.OpenKVStore(ctx) + key := nextClassIDKey(contractID) + bz, _ := store.Get(key) + if bz == nil { + panic(sdkerrors.ErrNotFound.Wrapf("no next class ids of contract %s", contractID)) + } + + var class collection.NextClassIDs + if err := class.Unmarshal(bz); err != nil { + panic(err) + } + return class +} + +func (k Keeper) setNextClassIDs(ctx sdk.Context, ids collection.NextClassIDs) { + store := k.storeService.OpenKVStore(ctx) + key := nextClassIDKey(ids.ContractId) + + bz, err := ids.Marshal() + if err != nil { + panic(err) + } + err = store.Set(key, bz) + if err != nil { + panic(err) + } +} + +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 { + classID := param.TokenType + class, err := k.GetTokenClass(ctx, contractID, classID) + if err != nil { + return nil, collection.ErrTokenTypeNotExist.Wrap(err.Error()) + } + + if _, ok := class.(*collection.NFTClass); !ok { + return nil, collection.ErrTokenTypeNotExist.Wrapf("not a class of non-fungible token: %s", classID) + } + + nextTokenID := k.getNextTokenID(ctx, contractID, classID) + k.setNextTokenID(ctx, contractID, classID, nextTokenID.Incr()) + tokenID := collection.NewNFTID(classID, int(nextTokenID.Uint64())) + + amount := math.OneInt() + + k.setBalance(ctx, contractID, to, tokenID, amount) + k.setOwner(ctx, contractID, tokenID, to) + + token := collection.NFT{ + TokenId: tokenID, + Name: param.Name, + Meta: param.Meta, + } + k.setNFT(ctx, contractID, token) + + // 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)) + + tokens = append(tokens, token) + } + + return tokens, nil +} + +func (k Keeper) BurnCoins(ctx sdk.Context, contractID string, from sdk.AccAddress, amount []collection.Coin) ([]collection.Coin, error) { + if err := k.subtractCoins(ctx, contractID, from, amount); err != nil { + return nil, err + } + + burntAmount := []collection.Coin{} + for _, coin := range amount { + burntAmount = append(burntAmount, coin) + k.deleteNFT(ctx, contractID, coin.TokenId) + } + + // update statistics + for _, coin := range burntAmount { + classID := collection.SplitTokenID(coin.TokenId) + supply := k.GetSupply(ctx, contractID, classID) + k.setSupply(ctx, contractID, classID, supply.Sub(coin.Amount)) + + burnt := k.GetBurnt(ctx, contractID, classID) + k.setBurnt(ctx, contractID, classID, burnt.Add(coin.Amount)) + } + + return burntAmount, nil +} + +func (k Keeper) getNextTokenID(ctx sdk.Context, contractID, classID string) math.Uint { + store := k.storeService.OpenKVStore(ctx) + key := nextTokenIDKey(contractID, classID) + bz, _ := store.Get(key) + if bz == nil { + panic(sdkerrors.ErrNotFound.Wrapf("no next token id of token class %s", classID)) + } + + var id math.Uint + if err := id.Unmarshal(bz); err != nil { + panic(err) + } + return id +} + +func (k Keeper) setNextTokenID(ctx sdk.Context, contractID, classID string, tokenID math.Uint) { + store := k.storeService.OpenKVStore(ctx) + key := nextTokenIDKey(contractID, classID) + + bz, err := tokenID.Marshal() + if err != nil { + panic(err) + } + err = store.Set(key, bz) + if err != nil { + panic(err) + } +} + +func (k Keeper) ModifyContract(ctx sdk.Context, contractID string, changes []collection.Attribute) { + contract, err := k.GetContract(ctx, contractID) + if err != nil { + panic(err) + } + + modifiers := map[collection.AttributeKey]func(string){ + collection.AttributeKeyName: func(name string) { + contract.Name = name + }, + collection.AttributeKeyURI: func(uri string) { + contract.Uri = uri + }, + collection.AttributeKeyMeta: func(meta string) { + contract.Meta = meta + }, + } + for _, change := range changes { + key := collection.AttributeKeyFromString(change.Key) + modifiers[key](change.Value) + } + + k.setContract(ctx, *contract) +} + +func (k Keeper) ModifyTokenClass(ctx sdk.Context, contractID, classID string, changes []collection.Attribute) error { + class, err := k.GetTokenClass(ctx, contractID, classID) + if err != nil { + if err := collection.ValidateLegacyNFTClassID(classID); err == nil { + return collection.ErrTokenTypeNotExist.Wrap(classID) + } + + panic(err) + } + + modifiers := map[collection.AttributeKey]func(string){ + collection.AttributeKeyName: func(name string) { + class.SetName(name) + }, + collection.AttributeKeyMeta: func(meta string) { + class.SetMeta(meta) + }, + } + for _, change := range changes { + key := collection.AttributeKeyFromString(change.Key) + modifiers[key](change.Value) + } + + k.setTokenClass(ctx, contractID, class) + + return nil +} + +func (k Keeper) ModifyNFT(ctx sdk.Context, contractID, tokenID string, changes []collection.Attribute) error { + token, err := k.GetNFT(ctx, contractID, tokenID) + if err != nil { + return err + } + + modifiers := map[collection.AttributeKey]func(string){ + collection.AttributeKeyName: func(name string) { + token.Name = name + }, + collection.AttributeKeyMeta: func(meta string) { + token.Meta = meta + }, + } + for _, change := range changes { + key := collection.AttributeKeyFromString(change.Key) + modifiers[key](change.Value) + } + + k.setNFT(ctx, contractID, *token) + + return nil +} + +func (k Keeper) Grant(ctx sdk.Context, contractID string, granter, grantee sdk.AccAddress, permission collection.Permission) { + k.grant(ctx, contractID, grantee, permission) + + event := collection.EventGranted{ + ContractId: contractID, + Granter: k.bytesToString(granter), + Grantee: k.bytesToString(grantee), + Permission: permission, + } + if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { + panic(err) + } +} + +func (k Keeper) grant(ctx sdk.Context, contractID string, grantee sdk.AccAddress, permission collection.Permission) { + k.setGrant(ctx, contractID, grantee, permission) +} + +func (k Keeper) Abandon(ctx sdk.Context, contractID string, grantee sdk.AccAddress, permission collection.Permission) { + k.deleteGrant(ctx, contractID, grantee, permission) + + event := collection.EventRenounced{ + ContractId: contractID, + Grantee: k.bytesToString(grantee), + Permission: permission, + } + if err := ctx.EventManager().EmitTypedEvent(&event); err != nil { + panic(err) + } +} + +func (k Keeper) GetGrant(ctx sdk.Context, contractID string, grantee sdk.AccAddress, permission collection.Permission) (*collection.Grant, error) { + store := k.storeService.OpenKVStore(ctx) + if ok, _ := store.Has(grantKey(contractID, grantee, permission)); ok { + return &collection.Grant{ + Grantee: k.bytesToString(grantee), + Permission: permission, + }, nil + } + return nil, sdkerrors.ErrNotFound.Wrapf("no %s permission granted on %s", permission, grantee) +} + +func (k Keeper) setGrant(ctx sdk.Context, contractID string, grantee sdk.AccAddress, permission collection.Permission) { + store := k.storeService.OpenKVStore(ctx) + key := grantKey(contractID, grantee, permission) + err := store.Set(key, []byte{}) + if err != nil { + panic(err) + } +} + +func (k Keeper) deleteGrant(ctx sdk.Context, contractID string, grantee sdk.AccAddress, permission collection.Permission) { + store := k.storeService.OpenKVStore(ctx) + key := grantKey(contractID, grantee, permission) + err := store.Delete(key) + if err != nil { + panic(err) + } +} + +func (k Keeper) getStatistic(ctx sdk.Context, keyPrefix []byte, contractID, classID string) math.Int { + store := k.storeService.OpenKVStore(ctx) + amount := math.ZeroInt() + bz, _ := store.Get(statisticKey(keyPrefix, contractID, classID)) + if bz != nil { + if err := amount.Unmarshal(bz); err != nil { + panic(err) + } + } + + return amount +} + +func (k Keeper) setStatistic(ctx sdk.Context, keyPrefix []byte, contractID, classID string, amount math.Int) { + store := k.storeService.OpenKVStore(ctx) + key := statisticKey(keyPrefix, contractID, classID) + if amount.IsZero() { + err := store.Delete(key) + if err != nil { + panic(err) + } + } else { + bz, err := amount.Marshal() + if err != nil { + panic(err) + } + err = store.Set(key, bz) + if err != nil { + panic(err) + } + } +} + +func (k Keeper) GetSupply(ctx sdk.Context, contractID, classID string) math.Int { + return k.getStatistic(ctx, supplyKeyPrefix, contractID, classID) +} + +func (k Keeper) GetMinted(ctx sdk.Context, contractID, classID string) math.Int { + return k.getStatistic(ctx, mintedKeyPrefix, contractID, classID) +} + +func (k Keeper) GetBurnt(ctx sdk.Context, contractID, classID string) math.Int { + return k.getStatistic(ctx, burntKeyPrefix, contractID, classID) +} + +func (k Keeper) setSupply(ctx sdk.Context, contractID, classID string, amount math.Int) { + k.setStatistic(ctx, supplyKeyPrefix, contractID, classID, amount) +} + +func (k Keeper) setMinted(ctx sdk.Context, contractID, classID string, amount math.Int) { + k.setStatistic(ctx, mintedKeyPrefix, contractID, classID, amount) +} + +func (k Keeper) setBurnt(ctx sdk.Context, contractID, classID string, amount math.Int) { + k.setStatistic(ctx, burntKeyPrefix, contractID, classID, amount) +} diff --git a/x/collection/keeper/supply_test.go b/x/collection/keeper/supply_test.go new file mode 100644 index 0000000000..bd48dd26e5 --- /dev/null +++ b/x/collection/keeper/supply_test.go @@ -0,0 +1,259 @@ +package keeper_test + +import ( + "fmt" + + "cosmossdk.io/math" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func (s *KeeperTestSuite) TestCreateContract() { + ctx, _ := s.ctx.CacheContext() + + input := collection.Contract{ + Name: "tibetian fox", + Meta: "Tibetian Fox", + Uri: "file:///tibetian_fox.png", + } + id := s.keeper.CreateContract(ctx, s.vendor, input) + s.Require().NotEmpty(id) + + output, err := s.keeper.GetContract(ctx, id) + s.Require().NoError(err) + s.Require().NotNil(output) + + s.Require().Equal(id, output.Id) + s.Require().Equal(input.Name, output.Name) + s.Require().Equal(input.Meta, output.Meta) + s.Require().Equal(input.Uri, output.Uri) +} + +func (s *KeeperTestSuite) TestCreateTokenClass() { + testCases := map[string]struct { + contractID string + class collection.TokenClass + err error + }{ + "valid non-fungible token class": { + contractID: s.contractID, + class: &collection.NFTClass{}, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + id, err := s.keeper.CreateTokenClass(ctx, tc.contractID, tc.class) + s.Require().ErrorIs(err, tc.err) + if tc.err != nil { + s.Require().Nil(id) + return + } + s.Require().NotNil(id) + + class, err := s.keeper.GetTokenClass(ctx, tc.contractID, *id) + s.Require().NoError(err) + s.Require().NoError(class.ValidateBasic()) + }) + } +} + +func (s *KeeperTestSuite) TestMintNFT() { + testCases := map[string]struct { + contractID string + param collection.MintNFTParam + err error + }{ + "valid request": { + contractID: s.contractID, + param: collection.MintNFTParam{TokenType: s.nftClassID}, + }, + "class not found": { + contractID: s.contractID, + param: collection.MintNFTParam{TokenType: "deadbeef"}, + err: collection.ErrTokenTypeNotExist, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + // gather state + classID := tc.param.TokenType + supplyBefore := s.keeper.GetSupply(ctx, tc.contractID, classID) + mintedBefore := s.keeper.GetMinted(ctx, tc.contractID, classID) + burntBefore := s.keeper.GetBurnt(ctx, tc.contractID, classID) + + tokens, err := s.keeper.MintNFT(ctx, tc.contractID, s.stranger, []collection.MintNFTParam{tc.param}) + s.Require().ErrorIs(err, tc.err) + if tc.err != nil { + return + } + + amount := math.OneInt() + s.Require().Len(tokens, 1) + tokenID := tokens[0].TokenId + balanceAfter := s.keeper.GetBalance(ctx, tc.contractID, s.stranger, tokenID) + s.Require().Equal(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) + }) + } +} + +func (s *KeeperTestSuite) TestBurnCoins() { + targetTokenID := s.issuedNFTs[s.bytesToString(s.customer)][0].TokenId + testCases := map[string]struct { + contractID string + amount collection.Coin + err error + }{ + "valid request": { + contractID: s.contractID, + amount: collection.NewCoin(targetTokenID, math.OneInt()), + }, + "insufficient tokens": { + contractID: s.contractID, + amount: collection.NewCoin("00ffb10c00000001", math.OneInt()), + err: collection.ErrInsufficientToken, + }, + } + + 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.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.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.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) + s.Require().Equal(mintedBefore, mintedAfter) + burntAfter := s.keeper.GetBurnt(ctx, tc.contractID, classID) + s.Require().Equal(burntBefore.Add(amount), burntAfter) + }) + } +} + +func (s *KeeperTestSuite) TestModifyContract() { + contractDescriptions := map[string]string{ + s.contractID: "valid", + "deadbeef": "not-exist", + } + changes := []collection.Attribute{ + {Key: collection.AttributeKeyName.String(), Value: "fox"}, + {Key: collection.AttributeKeyURI.String(), Value: "file:///fox.png"}, + {Key: collection.AttributeKeyMeta.String(), Value: "Fox"}, + } + + for contractID, contractDesc := range contractDescriptions { + name := fmt.Sprintf("Contract: %s", contractDesc) + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + call := func() { + s.keeper.ModifyContract(ctx, contractID, changes) + } + + if contractID != s.contractID { + s.Require().Panics(call) + return + } + call() + + contract, err := s.keeper.GetContract(ctx, contractID) + s.Require().NoError(err) + + s.Require().Equal(changes[0].Value, contract.Name) + s.Require().Equal(changes[1].Value, contract.Uri) + s.Require().Equal(changes[2].Value, contract.Meta) + }) + } +} + +func (s *KeeperTestSuite) TestModifyTokenClass() { + classDescriptions := map[string]string{ + s.nftClassID: "valid", + "deadbeef": "not-exist", + } + changes := []collection.Attribute{ + {Key: collection.AttributeKeyName.String(), Value: "arctic fox"}, + {Key: collection.AttributeKeyMeta.String(), Value: "Arctic Fox"}, + } + + for classID, classDesc := range classDescriptions { + name := fmt.Sprintf("Class: %s", classDesc) + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + err := s.keeper.ModifyTokenClass(ctx, s.contractID, classID, changes) + if classID != s.nftClassID { + s.Require().ErrorIs(err, collection.ErrTokenTypeNotExist) + return + } + s.Require().NoError(err) + + class, err := s.keeper.GetTokenClass(ctx, s.contractID, classID) + s.Require().NoError(err) + + nftClass, ok := class.(*collection.NFTClass) + s.Require().True(ok) + + s.Require().Equal(changes[0].Value, nftClass.Name) + s.Require().Equal(changes[1].Value, nftClass.Meta) + }) + } +} + +func (s *KeeperTestSuite) TestModifyNFT() { + validTokenID := collection.NewNFTID(s.nftClassID, 1) + tokenDescriptions := map[string]string{ + validTokenID: "valid", + collection.NewNFTID("deadbeef", 1): "not-exist", + } + changes := []collection.Attribute{ + {Key: collection.AttributeKeyName.String(), Value: "fennec fox 1"}, + {Key: collection.AttributeKeyMeta.String(), Value: "Fennec Fox 1"}, + } + + for tokenID, tokenDesc := range tokenDescriptions { + name := fmt.Sprintf("Token: %s", tokenDesc) + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + err := s.keeper.ModifyNFT(ctx, s.contractID, tokenID, changes) + if tokenID != validTokenID { + s.Require().ErrorIs(err, collection.ErrTokenNotExist) + return + } + s.Require().NoError(err) + + nft, err := s.keeper.GetNFT(ctx, s.contractID, tokenID) + s.Require().NoError(err) + + s.Require().Equal(changes[0].Value, nft.Name) + s.Require().Equal(changes[1].Value, nft.Meta) + }) + } +} diff --git a/x/collection/keys.go b/x/collection/keys.go new file mode 100644 index 0000000000..89b64cfa2f --- /dev/null +++ b/x/collection/keys.go @@ -0,0 +1,19 @@ +package collection + +const ( + // ModuleName is the module name constant used in many places + ModuleName = "collection" + + // StoreKey defines the primary module store key + StoreKey = ModuleName +) + +func AttrCanonicalKey(key string) string { + convert := map[string]string{ + AttributeKeyBaseImgURI.String(): AttributeKeyURI.String(), + } + if converted, ok := convert[key]; ok { + return converted + } + return key +} diff --git a/x/collection/module/module.go b/x/collection/module/module.go new file mode 100644 index 0000000000..9f94dd1f2c --- /dev/null +++ b/x/collection/module/module.go @@ -0,0 +1,177 @@ +package module + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/spf13/cobra" + + "cosmossdk.io/core/appmodule" + "cosmossdk.io/core/store" + "cosmossdk.io/depinject" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + + modulev1 "github.com/Finschia/finschia-sdk/api/lbm/collection/module/v1" + "github.com/Finschia/finschia-sdk/x/collection" + "github.com/Finschia/finschia-sdk/x/collection/client/cli" + "github.com/Finschia/finschia-sdk/x/collection/keeper" +) + +// ConsensusVersion defines the current x/collection module consensus version. +const ConsensusVersion = 2 + +var ( + _ module.AppModuleBasic = AppModule{} + _ module.HasGenesis = AppModule{} + _ module.HasServices = AppModule{} + + _ appmodule.AppModule = AppModule{} +) + +// AppModuleBasic defines the basic application module used by the collection module. +type AppModuleBasic struct { + cdc codec.Codec +} + +// Name returns the ModuleName +func (AppModuleBasic) Name() string { + return collection.ModuleName +} + +// RegisterLegacyAminoCodec registers the collection types on the LegacyAmino codec +func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) {} + +// RegisterInterfaces registers the collection module's interface types +func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) { + collection.RegisterInterfaces(registry) +} + +// DefaultGenesis returns default genesis state as raw bytes for the collection +// module. +func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { + return cdc.MustMarshalJSON(collection.DefaultGenesisState()) +} + +// ValidateGenesis performs genesis state validation for the collection module. +func (ab AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { + var data collection.GenesisState + if err := cdc.UnmarshalJSON(bz, &data); err != nil { + return fmt.Errorf("failed to unmarshal %s genesis state: %w", collection.ModuleName, err) + } + + return collection.ValidateGenesis(data, ab.cdc.InterfaceRegistry().SigningContext().AddressCodec()) +} + +// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the collection module. +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { + if err := collection.RegisterQueryHandlerClient(context.Background(), mux, collection.NewQueryClient(clientCtx)); err != nil { + panic(err) + } +} + +// GetQueryCmd returns the cli query commands for this module +func (ab AppModuleBasic) GetQueryCmd() *cobra.Command { + return cli.NewQueryCmd() +} + +// GetTxCmd returns the transaction commands for this module +func (ab AppModuleBasic) GetTxCmd() *cobra.Command { + return cli.NewTxCmd() +} + +// ____________________________________________________________________________ + +// AppModule implements an application module for the collection module. +type AppModule struct { + AppModuleBasic + + keeper keeper.Keeper +} + +// NewAppModule creates a new AppModule object +func NewAppModule(cdc codec.Codec, keeper keeper.Keeper) AppModule { + return AppModule{ + AppModuleBasic: AppModuleBasic{cdc}, + keeper: keeper, + } +} + +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() {} + +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() {} + +// RegisterServices registers a GRPC query service to respond to the +// module-specific GRPC queries. +func (am AppModule) RegisterServices(cfg module.Configurator) { + collection.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServer(am.keeper)) + collection.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServer(am.keeper)) + + m := keeper.NewMigrator(am.keeper) + if err := cfg.RegisterMigration(collection.ModuleName, 1, m.Migrate1to2); err != nil { + panic(fmt.Sprintf("failed to migrate x/%s from version 1 to 2: %v", collection.ModuleName, err)) + } + if err := cfg.RegisterMigration(collection.ModuleName, 2, m.Migrate2to3); err != nil { + panic(fmt.Sprintf("failed to migrate x/%s from version 2 to 3: %v", collection.ModuleName, err)) + } +} + +// InitGenesis performs genesis initialization for the collection module. It returns +// no validator updates. +func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) { + var genesisState collection.GenesisState + cdc.MustUnmarshalJSON(data, &genesisState) + am.keeper.InitGenesis(ctx, &genesisState) +} + +// ExportGenesis returns the exported genesis state as raw bytes for the collection +// module. +func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { + gs := am.keeper.ExportGenesis(ctx) + return cdc.MustMarshalJSON(gs) +} + +// ConsensusVersion implements AppModule/ConsensusVersion. +func (AppModule) ConsensusVersion() uint64 { return ConsensusVersion } + +// +// App Wiring Setup +// + +func init() { + appmodule.Register(&modulev1.Module{}, + appmodule.Provide(ProvideModule), + ) +} + +type CollectionInputs struct { + depinject.In + + Cdc codec.Codec + StoreService store.KVStoreService +} + +type CollectionOutputs struct { + depinject.Out + + Keeper keeper.Keeper + Module appmodule.AppModule +} + +func ProvideModule(in CollectionInputs) CollectionOutputs { + k := keeper.NewKeeper(in.Cdc, in.StoreService) + m := NewAppModule(in.Cdc, k) + + return CollectionOutputs{ + Keeper: k, + Module: m, + } +} diff --git a/x/collection/msgs.go b/x/collection/msgs.go new file mode 100644 index 0000000000..e1228d09b5 --- /dev/null +++ b/x/collection/msgs.go @@ -0,0 +1,184 @@ +package collection + +import ( + "fmt" + "regexp" + "unicode/utf8" + + "cosmossdk.io/math" + + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +const ( + lengthClassID = 8 + + nameLengthLimit = 20 + uriLengthLimit = 1000 + metaLengthLimit = 1000 + ChangesLimit = 100 +) + +var ( + patternAll = fmt.Sprintf(`[0-9a-f]{%d}`, lengthClassID) + patternZero = fmt.Sprintf(`0{%d}`, lengthClassID) + + patternClassID = patternAll + patternLegacyNFTClassID = fmt.Sprintf(`[1-9a-f][0-9a-f]{%d}`, lengthClassID-1) + + // regexps for class ids + reClassID = regexp.MustCompile(fmt.Sprintf(`^%s$`, patternClassID)) + reLegacyNFTClassID = regexp.MustCompile(fmt.Sprintf(`^%s$`, patternLegacyNFTClassID)) + + // regexps for token ids + 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 NewNFTID(classID string, number int) string { + return newTokenID(classID, math.NewUint(uint64(number))) +} + +func newTokenID(classID string, number math.Uint) string { + numberFormat := "%0" + fmt.Sprintf("%d", lengthClassID) + "x" + return classID + fmt.Sprintf(numberFormat, number.Uint64()) +} + +func SplitTokenID(tokenID string) (classID string) { + return tokenID[:lengthClassID] +} + +func ValidateContractID(id string) error { + if !reContractID.MatchString(id) { + return ErrInvalidContractID.Wrapf("invalid contract id: %s", id) + } + return nil +} + +func ValidateClassID(id string) error { + return validateID(id, reClassID) +} + +// Deprecated: do not use (no successor). +func ValidateLegacyNFTClassID(id string) error { + // daphne emits ErrInvalidTokenID here, but it's against to the spec. + if err := validateID(id, reLegacyNFTClassID); err != nil { + return ErrInvalidTokenType.Wrap(err.Error()) + } + + return nil +} + +func ValidateTokenID(id string) error { + if err := validateID(id, reTokenID); err != nil { + return ErrInvalidTokenID.Wrap(err.Error()) + } + + return nil +} + +func ValidateNFTID(id string) error { + if err := ValidateTokenID(id); err != nil { + return err + } + return nil +} + +// Deprecated: do not use (no successor). +func ValidateLegacyNFTID(id string) error { + if err := validateID(id, reLegacyNFTID); err != nil { + return ErrInvalidTokenID.Wrap(err.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) + } + return nil +} + +func ValidateName(name string) error { + if err := validateStringSize(name, nameLengthLimit, "name"); err != nil { + return ErrInvalidNameLength.Wrap(err.Error()) + } + + return nil +} + +func ValidateURI(uri string) error { + if err := validateStringSize(uri, uriLengthLimit, "uri"); err != nil { + return ErrInvalidBaseImgURILength.Wrap(err.Error()) + } + + return nil +} + +func ValidateMeta(meta string) error { + if err := validateStringSize(meta, metaLengthLimit, "meta"); err != nil { + return ErrInvalidMetaLength.Wrap(err.Error()) + } + + return nil +} + +func validateStringSize(str string, limit int, name string) error { + if length := utf8.RuneCountInString(str); length > limit { + return sdkerrors.ErrInvalidRequest.Wrapf("%s cannot exceed %d in length: current %d", name, limit, length) + } + return nil +} + +func ValidateLegacyPermission(permission string) error { + return ValidatePermission(Permission(LegacyPermissionFromString(permission))) +} + +func ValidatePermission(permission Permission) error { + if p := Permission_value[Permission_name[int32(permission)]]; p == 0 { + return ErrInvalidPermission.Wrap(permission.String()) + } + return nil +} + +func ValidateContractChange(change Attribute) error { + validators := map[string]func(string) error{ + AttributeKeyName.String(): ValidateName, + AttributeKeyBaseImgURI.String(): ValidateURI, + AttributeKeyMeta.String(): ValidateMeta, + AttributeKeyURI.String(): ValidateURI, + } + + return validateChange(change, validators) +} + +func ValidateTokenClassChange(change Attribute) error { + validators := map[string]func(string) error{ + AttributeKeyName.String(): ValidateName, + AttributeKeyMeta.String(): ValidateMeta, + } + + return validateChange(change, validators) +} + +func validateChange(change Attribute, validators map[string]func(string) error) error { + validator, ok := validators[change.Key] + if !ok { + return ErrInvalidChangesField.Wrapf("invalid field: %s", change.Key) + } + return validator(change.Value) +} diff --git a/x/collection/msgs_test.go b/x/collection/msgs_test.go new file mode 100644 index 0000000000..cd64df459f --- /dev/null +++ b/x/collection/msgs_test.go @@ -0,0 +1,172 @@ +package collection_test + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/require" + + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" + sdk "github.com/cosmos/cosmos-sdk/types" + authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" + "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" + + "github.com/Finschia/finschia-sdk/x/collection" +) + +func TestAminoJSON(t *testing.T) { + tx := legacytx.StdTx{} + legacyAmino := codec.NewLegacyAmino() + collection.RegisterLegacyAminoCodec(legacyAmino) + legacytx.RegressionTestingAminoCodec = legacyAmino + ac := authcodec.NewBech32Codec("link") + + addrs := make([]string, 3) + for i := range addrs { + addr, err := ac.BytesToString(secp256k1.GenPrivKey().PubKey().Address()) + require.NoError(t, err) + addrs[i] = addr + } + + tokenIds := []string{collection.NewNFTID(contractID, 1)} + const name = "tibetian fox" + nftParams := []collection.MintNFTParam{{ + TokenType: contractID, + Name: name, + Meta: "Tibetian Fox", + }} + + testCase := map[string]struct { + msg sdk.Msg + expectedType string + expected string + }{ + "MsgSendNFT": { + &collection.MsgSendNFT{ + ContractId: contractID, + From: addrs[0], + To: addrs[1], + TokenIds: tokenIds, + }, + "/lbm.collection.v1.MsgSendNFT", + fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgSendNFT\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"to\":\"%s\",\"token_ids\":[\"deadbeef00000001\"]}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0], addrs[1]), + }, + "MsgOperatorSendNFT": { + &collection.MsgOperatorSendNFT{ + ContractId: contractID, + Operator: addrs[0], + From: addrs[1], + To: addrs[2], + TokenIds: tokenIds, + }, + "/lbm.collection.v1.MsgOperatorSendNFT", + fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgOperatorSendNFT\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"operator\":\"%s\",\"to\":\"%s\",\"token_ids\":[\"deadbeef00000001\"]}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[1], addrs[0], addrs[2]), + }, + "MsgAuthorizeOperator": { + &collection.MsgAuthorizeOperator{ + ContractId: contractID, + Holder: addrs[0], + Operator: addrs[1], + }, + "/lbm.collection.v1.MsgAuthorizeOperator", + fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/collection/MsgAuthorizeOperator\",\"value\":{\"contract_id\":\"deadbeef\",\"holder\":\"%s\",\"operator\":\"%s\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0], addrs[1]), + }, + "MsgRevokeOperator": { + &collection.MsgRevokeOperator{ + ContractId: contractID, + Holder: addrs[0], + Operator: addrs[1], + }, + "/lbm.collection.v1.MsgRevokeOperator", + fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/collection/MsgRevokeOperator\",\"value\":{\"contract_id\":\"deadbeef\",\"holder\":\"%s\",\"operator\":\"%s\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0], addrs[1]), + }, + "MsgCreateContract": { + &collection.MsgCreateContract{ + Owner: addrs[0], + Name: "Test Contract", + Uri: "http://image.url", + Meta: "This is test", + }, + "/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]), + }, + "MsgIssueNFT": { + &collection.MsgIssueNFT{ + ContractId: contractID, + Name: "Test NFT", + Meta: "This is NFT Meta", + Owner: addrs[0], + }, + "/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]), + }, + "MsgMintNFT": { + &collection.MsgMintNFT{ + ContractId: contractID, + From: addrs[0], + To: addrs[1], + Params: nftParams, + }, + "/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], addrs[1]), + }, + "MsgBurnNFT": { + &collection.MsgBurnNFT{ + ContractId: contractID, + From: addrs[0], + TokenIds: tokenIds, + }, + "/lbm.collection.v1.MsgBurnNFT", + fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgBurnNFT\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"token_ids\":[\"deadbeef00000001\"]}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0]), + }, + "MsgOperatorBurnNFT": { + &collection.MsgOperatorBurnNFT{ + ContractId: contractID, + Operator: addrs[0], + From: addrs[1], + TokenIds: tokenIds, + }, + "/lbm.collection.v1.MsgOperatorBurnNFT", + fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/MsgOperatorBurnNFT\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"operator\":\"%s\",\"token_ids\":[\"deadbeef00000001\"]}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[1], addrs[0]), + }, + "MsgModify": { + &collection.MsgModify{ + ContractId: contractID, + Owner: addrs[0], + TokenType: "NewType", + TokenIndex: contractID, + Changes: []collection.Attribute{{Key: "name", Value: "New test"}}, + }, + "/lbm.collection.v1.MsgModify", + fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/collection/MsgModify\",\"value\":{\"changes\":[{\"key\":\"name\",\"value\":\"New test\"}],\"contract_id\":\"deadbeef\",\"owner\":\"%s\",\"token_index\":\"deadbeef\",\"token_type\":\"NewType\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0]), + }, + "MsgGrantPermission": { + &collection.MsgGrantPermission{ + ContractId: contractID, + To: addrs[1], + From: addrs[0], + Permission: collection.LegacyPermissionMint.String(), + }, + "/lbm.collection.v1.MsgGrantPermission", + fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/collection/MsgGrantPermission\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"permission\":\"mint\",\"to\":\"%s\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0], addrs[1]), + }, + "MsgRevokePermission": { + &collection.MsgRevokePermission{ + ContractId: contractID, + From: addrs[0], + Permission: collection.LegacyPermissionMint.String(), + }, + "/lbm.collection.v1.MsgRevokePermission", + fmt.Sprintf("{\"account_number\":\"1\",\"chain_id\":\"foo\",\"fee\":{\"amount\":[],\"gas\":\"0\"},\"memo\":\"memo\",\"msgs\":[{\"type\":\"lbm-sdk/collection/MsgRevokePermission\",\"value\":{\"contract_id\":\"deadbeef\",\"from\":\"%s\",\"permission\":\"mint\"}}],\"sequence\":\"1\",\"timeout_height\":\"1\"}", addrs[0]), + }, + } + + for name, tc := range testCase { + tc := tc + t.Run(name, func(t *testing.T) { + tx.Msgs = []sdk.Msg{tc.msg} + require.Equal(t, tc.expected, string(legacytx.StdSignBytes("foo", 1, 1, 1, legacytx.StdFee{}, []sdk.Msg{tc.msg}, "memo"))) + }) + } +} diff --git a/x/collection/query.pb.go b/x/collection/query.pb.go new file mode 100644 index 0000000000..3b90b7fddb --- /dev/null +++ b/x/collection/query.pb.go @@ -0,0 +1,5916 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lbm/collection/v1/query.proto + +package collection + +import ( + context "context" + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/codec/types" + query "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// QueryBalanceRequest is the request type for the Query/Balance RPC method. +type QueryBalanceRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address is the address to query the balance for. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // token id associated with the token. + TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (m *QueryBalanceRequest) Reset() { *m = QueryBalanceRequest{} } +func (m *QueryBalanceRequest) String() string { return proto.CompactTextString(m) } +func (*QueryBalanceRequest) ProtoMessage() {} +func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{0} +} +func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBalanceRequest.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 *QueryBalanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBalanceRequest.Merge(m, src) +} +func (m *QueryBalanceRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryBalanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBalanceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryBalanceRequest proto.InternalMessageInfo + +func (m *QueryBalanceRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryBalanceRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryBalanceRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// QueryBalanceResponse is the response type for the Query/Balance RPC method. +type QueryBalanceResponse struct { + // balance is the balance of the token. + Balance Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance"` +} + +func (m *QueryBalanceResponse) Reset() { *m = QueryBalanceResponse{} } +func (m *QueryBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*QueryBalanceResponse) ProtoMessage() {} +func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{1} +} +func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBalanceResponse.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 *QueryBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBalanceResponse.Merge(m, src) +} +func (m *QueryBalanceResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBalanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryBalanceResponse proto.InternalMessageInfo + +func (m *QueryBalanceResponse) GetBalance() Coin { + if m != nil { + return m.Balance + } + return Coin{} +} + +// QueryAllBalancesRequest is the request type for the Query/AllBalances RPC method. +type QueryAllBalancesRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address is the address to query the balances for. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllBalancesRequest) Reset() { *m = QueryAllBalancesRequest{} } +func (m *QueryAllBalancesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllBalancesRequest) ProtoMessage() {} +func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{2} +} +func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllBalancesRequest.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 *QueryAllBalancesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllBalancesRequest.Merge(m, src) +} +func (m *QueryAllBalancesRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllBalancesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllBalancesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllBalancesRequest proto.InternalMessageInfo + +func (m *QueryAllBalancesRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryAllBalancesRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryAllBalancesRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method. +type QueryAllBalancesResponse struct { + // balances is the balalces of all the tokens. + Balances []Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllBalancesResponse) Reset() { *m = QueryAllBalancesResponse{} } +func (m *QueryAllBalancesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllBalancesResponse) ProtoMessage() {} +func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{3} +} +func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllBalancesResponse.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 *QueryAllBalancesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllBalancesResponse.Merge(m, src) +} +func (m *QueryAllBalancesResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllBalancesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllBalancesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllBalancesResponse proto.InternalMessageInfo + +func (m *QueryAllBalancesResponse) GetBalances() []Coin { + if m != nil { + return m.Balances + } + return nil +} + +func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. +type QueryNFTSupplyRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token type associated with the token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` +} + +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{4} +} +func (m *QueryNFTSupplyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTSupplyRequest.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 *QueryNFTSupplyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTSupplyRequest.Merge(m, src) +} +func (m *QueryNFTSupplyRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTSupplyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTSupplyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTSupplyRequest proto.InternalMessageInfo + +func (m *QueryNFTSupplyRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryNFTSupplyRequest) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +// QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method. +type QueryNFTSupplyResponse struct { + // supply is the supply of the non-fungible token. + Supply cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=supply,proto3,customtype=cosmossdk.io/math.Int" json:"supply"` +} + +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{5} +} +func (m *QueryNFTSupplyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTSupplyResponse.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 *QueryNFTSupplyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTSupplyResponse.Merge(m, src) +} +func (m *QueryNFTSupplyResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTSupplyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTSupplyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTSupplyResponse proto.InternalMessageInfo + +// QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method. +type QueryNFTMintedRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token type associated with the token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` +} + +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{6} +} +func (m *QueryNFTMintedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTMintedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTMintedRequest.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 *QueryNFTMintedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTMintedRequest.Merge(m, src) +} +func (m *QueryNFTMintedRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTMintedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTMintedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTMintedRequest proto.InternalMessageInfo + +func (m *QueryNFTMintedRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryNFTMintedRequest) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +// QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method. +type QueryNFTMintedResponse struct { + // minted is the amount of minted tokens. + Minted cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=minted,proto3,customtype=cosmossdk.io/math.Int" json:"minted"` +} + +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{7} +} +func (m *QueryNFTMintedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTMintedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTMintedResponse.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 *QueryNFTMintedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTMintedResponse.Merge(m, src) +} +func (m *QueryNFTMintedResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTMintedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTMintedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTMintedResponse proto.InternalMessageInfo + +// QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method. +type QueryNFTBurntRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token type associated with the token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` +} + +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{8} +} +func (m *QueryNFTBurntRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTBurntRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTBurntRequest.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 *QueryNFTBurntRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTBurntRequest.Merge(m, src) +} +func (m *QueryNFTBurntRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTBurntRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTBurntRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTBurntRequest proto.InternalMessageInfo + +func (m *QueryNFTBurntRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryNFTBurntRequest) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +// QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method. +type QueryNFTBurntResponse 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 *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{9} +} +func (m *QueryNFTBurntResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNFTBurntResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNFTBurntResponse.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 *QueryNFTBurntResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNFTBurntResponse.Merge(m, src) +} +func (m *QueryNFTBurntResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryNFTBurntResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNFTBurntResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNFTBurntResponse proto.InternalMessageInfo + +// QueryContractRequest is the request type for the Query/Contract RPC method. +type QueryContractRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` +} + +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{10} +} +func (m *QueryContractRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryContractRequest.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 *QueryContractRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryContractRequest.Merge(m, src) +} +func (m *QueryContractRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryContractRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryContractRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryContractRequest proto.InternalMessageInfo + +func (m *QueryContractRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +// QueryContractResponse is the response type for the Query/Contract RPC method. +type QueryContractResponse struct { + // contract is the information of the contract. + Contract Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract"` +} + +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{11} +} +func (m *QueryContractResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryContractResponse.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 *QueryContractResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryContractResponse.Merge(m, src) +} +func (m *QueryContractResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryContractResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryContractResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryContractResponse proto.InternalMessageInfo + +func (m *QueryContractResponse) GetContract() Contract { + if m != nil { + return m.Contract + } + return Contract{} +} + +// QueryTokenClassTypeNameRequest is the request type for the Query/TokenClassTypeName RPC method. +// +// Since: 0.46.0 (finschia) +type QueryTokenClassTypeNameRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // class id associated with the token class. + ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` +} + +func (m *QueryTokenClassTypeNameRequest) Reset() { *m = QueryTokenClassTypeNameRequest{} } +func (m *QueryTokenClassTypeNameRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTokenClassTypeNameRequest) ProtoMessage() {} +func (*QueryTokenClassTypeNameRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{12} +} +func (m *QueryTokenClassTypeNameRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenClassTypeNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenClassTypeNameRequest.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 *QueryTokenClassTypeNameRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenClassTypeNameRequest.Merge(m, src) +} +func (m *QueryTokenClassTypeNameRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenClassTypeNameRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenClassTypeNameRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenClassTypeNameRequest proto.InternalMessageInfo + +func (m *QueryTokenClassTypeNameRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryTokenClassTypeNameRequest) GetClassId() string { + if m != nil { + return m.ClassId + } + return "" +} + +// QueryTokenClassTypeNameResponse is the response type for the Query/TokenClassTypeName RPC method. +// +// Since: 0.46.0 (finschia) +type QueryTokenClassTypeNameResponse struct { + // type name of the token class. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *QueryTokenClassTypeNameResponse) Reset() { *m = QueryTokenClassTypeNameResponse{} } +func (m *QueryTokenClassTypeNameResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTokenClassTypeNameResponse) ProtoMessage() {} +func (*QueryTokenClassTypeNameResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{13} +} +func (m *QueryTokenClassTypeNameResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenClassTypeNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenClassTypeNameResponse.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 *QueryTokenClassTypeNameResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenClassTypeNameResponse.Merge(m, src) +} +func (m *QueryTokenClassTypeNameResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenClassTypeNameResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenClassTypeNameResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenClassTypeNameResponse proto.InternalMessageInfo + +func (m *QueryTokenClassTypeNameResponse) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// QueryTokenTypeRequest is the request type for the Query/TokenType RPC method. +type QueryTokenTypeRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // token type associated with the token type. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` +} + +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{14} +} +func (m *QueryTokenTypeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenTypeRequest.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 *QueryTokenTypeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenTypeRequest.Merge(m, src) +} +func (m *QueryTokenTypeRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenTypeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenTypeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenTypeRequest proto.InternalMessageInfo + +func (m *QueryTokenTypeRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryTokenTypeRequest) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +// QueryTokenTypeResponse is the response type for the Query/TokenType RPC method. +type QueryTokenTypeResponse struct { + // token type is the information of the token type. + TokenType TokenType `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type"` +} + +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{15} +} +func (m *QueryTokenTypeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenTypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenTypeResponse.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 *QueryTokenTypeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenTypeResponse.Merge(m, src) +} +func (m *QueryTokenTypeResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenTypeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenTypeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenTypeResponse proto.InternalMessageInfo + +func (m *QueryTokenTypeResponse) GetTokenType() TokenType { + if m != nil { + return m.TokenType + } + return TokenType{} +} + +// QueryTokenRequest is the request type for the Query/Token RPC method. +type QueryTokenRequest 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 *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{16} +} +func (m *QueryTokenRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenRequest.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 *QueryTokenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenRequest.Merge(m, src) +} +func (m *QueryTokenRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenRequest proto.InternalMessageInfo + +func (m *QueryTokenRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryTokenRequest) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +// QueryTokenResponse is the response type for the Query/Token RPC method. +type QueryTokenResponse struct { + // information of the token. + Token types.Any `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` +} + +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{17} +} +func (m *QueryTokenResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTokenResponse.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 *QueryTokenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenResponse.Merge(m, src) +} +func (m *QueryTokenResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTokenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTokenResponse proto.InternalMessageInfo + +func (m *QueryTokenResponse) GetToken() types.Any { + if m != nil { + return m.Token + } + return types.Any{} +} + +// QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. +type QueryGranteeGrantsRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address of the grantee. + Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryGranteeGrantsRequest) Reset() { *m = QueryGranteeGrantsRequest{} } +func (m *QueryGranteeGrantsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGranteeGrantsRequest) ProtoMessage() {} +func (*QueryGranteeGrantsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{18} +} +func (m *QueryGranteeGrantsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGranteeGrantsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGranteeGrantsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGranteeGrantsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGranteeGrantsRequest.Merge(m, src) +} +func (m *QueryGranteeGrantsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGranteeGrantsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGranteeGrantsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGranteeGrantsRequest proto.InternalMessageInfo + +func (m *QueryGranteeGrantsRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryGranteeGrantsRequest) GetGrantee() string { + if m != nil { + return m.Grantee + } + return "" +} + +func (m *QueryGranteeGrantsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. +type QueryGranteeGrantsResponse struct { + Grants []Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryGranteeGrantsResponse) Reset() { *m = QueryGranteeGrantsResponse{} } +func (m *QueryGranteeGrantsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGranteeGrantsResponse) ProtoMessage() {} +func (*QueryGranteeGrantsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{19} +} +func (m *QueryGranteeGrantsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGranteeGrantsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGranteeGrantsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGranteeGrantsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGranteeGrantsResponse.Merge(m, src) +} +func (m *QueryGranteeGrantsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGranteeGrantsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGranteeGrantsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGranteeGrantsResponse proto.InternalMessageInfo + +func (m *QueryGranteeGrantsResponse) GetGrants() []Grant { + if m != nil { + return m.Grants + } + return nil +} + +func (m *QueryGranteeGrantsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryIsOperatorForRequest is the request type for the Query/IsOperatorFor RPC method. +type QueryIsOperatorForRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address of the operator. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // the address of the token holder. + Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` +} + +func (m *QueryIsOperatorForRequest) Reset() { *m = QueryIsOperatorForRequest{} } +func (m *QueryIsOperatorForRequest) String() string { return proto.CompactTextString(m) } +func (*QueryIsOperatorForRequest) ProtoMessage() {} +func (*QueryIsOperatorForRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{20} +} +func (m *QueryIsOperatorForRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryIsOperatorForRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryIsOperatorForRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryIsOperatorForRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsOperatorForRequest.Merge(m, src) +} +func (m *QueryIsOperatorForRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryIsOperatorForRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsOperatorForRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryIsOperatorForRequest proto.InternalMessageInfo + +func (m *QueryIsOperatorForRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryIsOperatorForRequest) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *QueryIsOperatorForRequest) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +// QueryIsOperatorForResponse is the response type for the Query/IsOperatorFor RPC method. +type QueryIsOperatorForResponse struct { + Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` +} + +func (m *QueryIsOperatorForResponse) Reset() { *m = QueryIsOperatorForResponse{} } +func (m *QueryIsOperatorForResponse) String() string { return proto.CompactTextString(m) } +func (*QueryIsOperatorForResponse) ProtoMessage() {} +func (*QueryIsOperatorForResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{21} +} +func (m *QueryIsOperatorForResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryIsOperatorForResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryIsOperatorForResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryIsOperatorForResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsOperatorForResponse.Merge(m, src) +} +func (m *QueryIsOperatorForResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryIsOperatorForResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsOperatorForResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryIsOperatorForResponse proto.InternalMessageInfo + +func (m *QueryIsOperatorForResponse) GetAuthorized() bool { + if m != nil { + return m.Authorized + } + return false +} + +// QueryHoldersByOperatorRequest is the request type for the Query/HoldersByOperator RPC method. +type QueryHoldersByOperatorRequest struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // address of the operator. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryHoldersByOperatorRequest) Reset() { *m = QueryHoldersByOperatorRequest{} } +func (m *QueryHoldersByOperatorRequest) String() string { return proto.CompactTextString(m) } +func (*QueryHoldersByOperatorRequest) ProtoMessage() {} +func (*QueryHoldersByOperatorRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{22} +} +func (m *QueryHoldersByOperatorRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryHoldersByOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryHoldersByOperatorRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryHoldersByOperatorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryHoldersByOperatorRequest.Merge(m, src) +} +func (m *QueryHoldersByOperatorRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryHoldersByOperatorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryHoldersByOperatorRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryHoldersByOperatorRequest proto.InternalMessageInfo + +func (m *QueryHoldersByOperatorRequest) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *QueryHoldersByOperatorRequest) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *QueryHoldersByOperatorRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryHoldersByOperatorResponse is the response type for the Query/HoldersByOperator RPC method. +type QueryHoldersByOperatorResponse struct { + Holders []string `protobuf:"bytes,1,rep,name=holders,proto3" json:"holders,omitempty"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryHoldersByOperatorResponse) Reset() { *m = QueryHoldersByOperatorResponse{} } +func (m *QueryHoldersByOperatorResponse) String() string { return proto.CompactTextString(m) } +func (*QueryHoldersByOperatorResponse) ProtoMessage() {} +func (*QueryHoldersByOperatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a09de688aac2ee73, []int{23} +} +func (m *QueryHoldersByOperatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryHoldersByOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryHoldersByOperatorResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryHoldersByOperatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryHoldersByOperatorResponse.Merge(m, src) +} +func (m *QueryHoldersByOperatorResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryHoldersByOperatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryHoldersByOperatorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryHoldersByOperatorResponse proto.InternalMessageInfo + +func (m *QueryHoldersByOperatorResponse) GetHolders() []string { + if m != nil { + return m.Holders + } + return nil +} + +func (m *QueryHoldersByOperatorResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +func init() { + proto.RegisterType((*QueryBalanceRequest)(nil), "lbm.collection.v1.QueryBalanceRequest") + proto.RegisterType((*QueryBalanceResponse)(nil), "lbm.collection.v1.QueryBalanceResponse") + proto.RegisterType((*QueryAllBalancesRequest)(nil), "lbm.collection.v1.QueryAllBalancesRequest") + proto.RegisterType((*QueryAllBalancesResponse)(nil), "lbm.collection.v1.QueryAllBalancesResponse") + proto.RegisterType((*QueryNFTSupplyRequest)(nil), "lbm.collection.v1.QueryNFTSupplyRequest") + proto.RegisterType((*QueryNFTSupplyResponse)(nil), "lbm.collection.v1.QueryNFTSupplyResponse") + proto.RegisterType((*QueryNFTMintedRequest)(nil), "lbm.collection.v1.QueryNFTMintedRequest") + proto.RegisterType((*QueryNFTMintedResponse)(nil), "lbm.collection.v1.QueryNFTMintedResponse") + proto.RegisterType((*QueryNFTBurntRequest)(nil), "lbm.collection.v1.QueryNFTBurntRequest") + proto.RegisterType((*QueryNFTBurntResponse)(nil), "lbm.collection.v1.QueryNFTBurntResponse") + proto.RegisterType((*QueryContractRequest)(nil), "lbm.collection.v1.QueryContractRequest") + proto.RegisterType((*QueryContractResponse)(nil), "lbm.collection.v1.QueryContractResponse") + proto.RegisterType((*QueryTokenClassTypeNameRequest)(nil), "lbm.collection.v1.QueryTokenClassTypeNameRequest") + proto.RegisterType((*QueryTokenClassTypeNameResponse)(nil), "lbm.collection.v1.QueryTokenClassTypeNameResponse") + proto.RegisterType((*QueryTokenTypeRequest)(nil), "lbm.collection.v1.QueryTokenTypeRequest") + proto.RegisterType((*QueryTokenTypeResponse)(nil), "lbm.collection.v1.QueryTokenTypeResponse") + proto.RegisterType((*QueryTokenRequest)(nil), "lbm.collection.v1.QueryTokenRequest") + proto.RegisterType((*QueryTokenResponse)(nil), "lbm.collection.v1.QueryTokenResponse") + proto.RegisterType((*QueryGranteeGrantsRequest)(nil), "lbm.collection.v1.QueryGranteeGrantsRequest") + proto.RegisterType((*QueryGranteeGrantsResponse)(nil), "lbm.collection.v1.QueryGranteeGrantsResponse") + proto.RegisterType((*QueryIsOperatorForRequest)(nil), "lbm.collection.v1.QueryIsOperatorForRequest") + proto.RegisterType((*QueryIsOperatorForResponse)(nil), "lbm.collection.v1.QueryIsOperatorForResponse") + proto.RegisterType((*QueryHoldersByOperatorRequest)(nil), "lbm.collection.v1.QueryHoldersByOperatorRequest") + proto.RegisterType((*QueryHoldersByOperatorResponse)(nil), "lbm.collection.v1.QueryHoldersByOperatorResponse") +} + +func init() { proto.RegisterFile("lbm/collection/v1/query.proto", fileDescriptor_a09de688aac2ee73) } + +var fileDescriptor_a09de688aac2ee73 = []byte{ + // 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. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Balance queries the balance of a single token class for a single account. + Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) + // AllBalances queries the balance of all token classes for a single account. + AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) + // NFTSupply queries the number of tokens from a given contract id and token type. + NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error) + // NFTMinted queries the number of minted tokens from a given contract id and token type. + NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error) + // NFTBurnt queries the number of burnt tokens from a given contract id and token type. + NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error) + // Contract queries a contract metadata based on its contract id. + Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error) + // TokenClassTypeName queries the fully qualified message type name of a token class from its class id. + // + // Since: 0.46.0 (finschia) + TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error) + // TokenType queries metadata of a token type. + TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) + // Token queries a metadata of a token from its token id. + Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) + // GranteeGrants queries all permissions on a given grantee. + GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) + // IsOperatorFor queries whether the operator is authorized by the holder. + IsOperatorFor(ctx context.Context, in *QueryIsOperatorForRequest, opts ...grpc.CallOption) (*QueryIsOperatorForResponse, error) + // HoldersByOperator queries holders of a given operator. + HoldersByOperator(ctx context.Context, in *QueryHoldersByOperatorRequest, opts ...grpc.CallOption) (*QueryHoldersByOperatorResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { + out := new(QueryBalanceResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Balance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) { + out := new(QueryAllBalancesResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/AllBalances", in, out, opts...) + if err != nil { + return nil, err + } + 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...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error) { + out := new(QueryNFTMintedResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTMinted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error) { + out := new(QueryNFTBurntResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTBurnt", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error) { + out := new(QueryContractResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Contract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error) { + out := new(QueryTokenClassTypeNameResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenClassTypeName", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) { + out := new(QueryTokenTypeResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenType", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) { + out := new(QueryTokenResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Token", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) { + out := new(QueryGranteeGrantsResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/GranteeGrants", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) IsOperatorFor(ctx context.Context, in *QueryIsOperatorForRequest, opts ...grpc.CallOption) (*QueryIsOperatorForResponse, error) { + out := new(QueryIsOperatorForResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/IsOperatorFor", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) HoldersByOperator(ctx context.Context, in *QueryHoldersByOperatorRequest, opts ...grpc.CallOption) (*QueryHoldersByOperatorResponse, error) { + out := new(QueryHoldersByOperatorResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/HoldersByOperator", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Balance queries the balance of a single token class for a single account. + Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) + // AllBalances queries the balance of all token classes for a single account. + AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) + // NFTSupply queries the number of tokens from a given contract id and token type. + NFTSupply(context.Context, *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) + // NFTMinted queries the number of minted tokens from a given contract id and token type. + NFTMinted(context.Context, *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error) + // NFTBurnt queries the number of burnt tokens from a given contract id and token type. + NFTBurnt(context.Context, *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error) + // Contract queries a contract metadata based on its contract id. + Contract(context.Context, *QueryContractRequest) (*QueryContractResponse, error) + // TokenClassTypeName queries the fully qualified message type name of a token class from its class id. + // + // Since: 0.46.0 (finschia) + TokenClassTypeName(context.Context, *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error) + // TokenType queries metadata of a token type. + TokenType(context.Context, *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) + // Token queries a metadata of a token from its token id. + Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) + // GranteeGrants queries all permissions on a given grantee. + GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) + // IsOperatorFor queries whether the operator is authorized by the holder. + IsOperatorFor(context.Context, *QueryIsOperatorForRequest) (*QueryIsOperatorForResponse, error) + // HoldersByOperator queries holders of a given operator. + HoldersByOperator(context.Context, *QueryHoldersByOperatorRequest) (*QueryHoldersByOperatorResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") +} +func (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllBalances not implemented") +} +func (*UnimplementedQueryServer) NFTSupply(ctx context.Context, req *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NFTSupply not implemented") +} +func (*UnimplementedQueryServer) NFTMinted(ctx context.Context, req *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NFTMinted not implemented") +} +func (*UnimplementedQueryServer) NFTBurnt(ctx context.Context, req *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NFTBurnt not implemented") +} +func (*UnimplementedQueryServer) Contract(ctx context.Context, req *QueryContractRequest) (*QueryContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Contract not implemented") +} +func (*UnimplementedQueryServer) TokenClassTypeName(ctx context.Context, req *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TokenClassTypeName not implemented") +} +func (*UnimplementedQueryServer) TokenType(ctx context.Context, req *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TokenType not implemented") +} +func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") +} +func (*UnimplementedQueryServer) GranteeGrants(ctx context.Context, req *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GranteeGrants not implemented") +} +func (*UnimplementedQueryServer) IsOperatorFor(ctx context.Context, req *QueryIsOperatorForRequest) (*QueryIsOperatorForResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsOperatorFor not implemented") +} +func (*UnimplementedQueryServer) HoldersByOperator(ctx context.Context, req *QueryHoldersByOperatorRequest) (*QueryHoldersByOperatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method HoldersByOperator not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Balance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Balance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllBalancesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AllBalances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/AllBalances", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AllBalances(ctx, req.(*QueryAllBalancesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_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 interceptor(ctx, in, info, handler) +} + +func _Query_Contract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryContractRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Contract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Contract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Contract(ctx, req.(*QueryContractRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TokenClassTypeName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenClassTypeNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TokenClassTypeName(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/TokenClassTypeName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TokenClassTypeName(ctx, req.(*QueryTokenClassTypeNameRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TokenType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenTypeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TokenType(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/TokenType", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TokenType(ctx, req.(*QueryTokenTypeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Token(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/Token", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Token(ctx, req.(*QueryTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GranteeGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGranteeGrantsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GranteeGrants(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/GranteeGrants", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GranteeGrants(ctx, req.(*QueryGranteeGrantsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_IsOperatorFor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryIsOperatorForRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).IsOperatorFor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/IsOperatorFor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).IsOperatorFor(ctx, req.(*QueryIsOperatorForRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_HoldersByOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryHoldersByOperatorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).HoldersByOperator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Query/HoldersByOperator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).HoldersByOperator(ctx, req.(*QueryHoldersByOperatorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "lbm.collection.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Balance", + Handler: _Query_Balance_Handler, + }, + { + MethodName: "AllBalances", + Handler: _Query_AllBalances_Handler, + }, + { + MethodName: "NFTSupply", + Handler: _Query_NFTSupply_Handler, + }, + { + MethodName: "NFTMinted", + Handler: _Query_NFTMinted_Handler, + }, + { + MethodName: "NFTBurnt", + Handler: _Query_NFTBurnt_Handler, + }, + { + MethodName: "Contract", + Handler: _Query_Contract_Handler, + }, + { + MethodName: "TokenClassTypeName", + Handler: _Query_TokenClassTypeName_Handler, + }, + { + MethodName: "TokenType", + Handler: _Query_TokenType_Handler, + }, + { + MethodName: "Token", + Handler: _Query_Token_Handler, + }, + { + MethodName: "GranteeGrants", + Handler: _Query_GranteeGrants_Handler, + }, + { + MethodName: "IsOperatorFor", + Handler: _Query_IsOperatorFor_Handler, + }, + { + MethodName: "HoldersByOperator", + Handler: _Query_HoldersByOperator_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "lbm/collection/v1/query.proto", +} + +func (m *QueryBalanceRequest) 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 *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBalanceRequest) 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] = 0x1a + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + 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 *QueryBalanceResponse) 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 *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Balance.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllBalancesRequest) 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 *QueryAllBalancesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + 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 *QueryAllBalancesResponse) 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 *QueryAllBalancesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Balances) > 0 { + for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryNFTSupplyRequest) 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 *QueryNFTSupplyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) + 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 *QueryNFTSupplyResponse) 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 *QueryNFTSupplyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTSupplyResponse) 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 *QueryNFTMintedRequest) 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 *QueryNFTMintedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTMintedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) + 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 *QueryNFTMintedResponse) 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 *QueryNFTMintedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTMintedResponse) 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 *QueryNFTBurntRequest) 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 *QueryNFTBurntRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTBurntRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) + 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 *QueryNFTBurntResponse) 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 *QueryNFTBurntResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNFTBurntResponse) 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 *QueryContractRequest) 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 *QueryContractRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryContractResponse) 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 *QueryContractResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Contract.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryTokenClassTypeNameRequest) 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 *QueryTokenClassTypeNameRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenClassTypeNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ClassId) > 0 { + i -= len(m.ClassId) + copy(dAtA[i:], m.ClassId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ClassId))) + 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 *QueryTokenClassTypeNameResponse) 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 *QueryTokenClassTypeNameResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenClassTypeNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTokenTypeRequest) 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 *QueryTokenTypeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenTypeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) + 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 *QueryTokenTypeResponse) 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 *QueryTokenTypeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenTypeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.TokenType.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryTokenRequest) 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 *QueryTokenRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenRequest) 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 *QueryTokenResponse) 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 *QueryTokenResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Token.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryGranteeGrantsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGranteeGrantsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGranteeGrantsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Grantee) > 0 { + i -= len(m.Grantee) + copy(dAtA[i:], m.Grantee) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee))) + 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 *QueryGranteeGrantsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGranteeGrantsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGranteeGrantsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Grants) > 0 { + for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryIsOperatorForRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryIsOperatorForRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryIsOperatorForRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryIsOperatorForResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryIsOperatorForResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryIsOperatorForResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Authorized { + i-- + if m.Authorized { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryHoldersByOperatorRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryHoldersByOperatorRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryHoldersByOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryHoldersByOperatorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryHoldersByOperatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryHoldersByOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Holders) > 0 { + for iNdEx := len(m.Holders) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Holders[iNdEx]) + copy(dAtA[i:], m.Holders[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Holders[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Balance.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllBalancesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllBalancesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Balances) > 0 { + for _, e := range m.Balances { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *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) { + 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 *QueryNFTMintedResponse) 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 *QueryNFTBurntRequest) 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 *QueryNFTBurntResponse) 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 *QueryContractRequest) 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)) + } + return n +} + +func (m *QueryContractResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Contract.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryTokenClassTypeNameRequest) 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.ClassId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTokenClassTypeNameResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTokenTypeRequest) 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 *QueryTokenTypeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TokenType.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryTokenRequest) 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 *QueryTokenResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Token.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryGranteeGrantsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Grantee) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGranteeGrantsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Grants) > 0 { + for _, e := range m.Grants { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryIsOperatorForRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryIsOperatorForResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Authorized { + n += 2 + } + return n +} + +func (m *QueryHoldersByOperatorRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryHoldersByOperatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Holders) > 0 { + for _, s := range m.Holders { + l = len(s) + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllBalancesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllBalancesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllBalancesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllBalancesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balances = append(m.Balances, Coin{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNFTSupplyRequest) 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: QueryNFTSupplyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTSupplyRequest: 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 TokenType", 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.TokenType = 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 *QueryNFTSupplyResponse) 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: QueryNFTSupplyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *QueryNFTMintedRequest) 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: QueryNFTMintedRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTMintedRequest: 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 TokenType", 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.TokenType = 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 *QueryNFTMintedResponse) 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: QueryNFTMintedResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *QueryNFTBurntRequest) 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: QueryNFTBurntRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTBurntRequest: 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 TokenType", 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.TokenType = 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 *QueryNFTBurntResponse) 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: QueryNFTBurntResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *QueryContractRequest) 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: QueryContractRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryContractRequest: 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 + 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 *QueryContractResponse) 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: QueryContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Contract.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 *QueryTokenClassTypeNameRequest) 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: QueryTokenClassTypeNameRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenClassTypeNameRequest: 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 ClassId", 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.ClassId = 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 *QueryTokenClassTypeNameResponse) 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: QueryTokenClassTypeNameResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenClassTypeNameResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + 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.Name = 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 *QueryTokenTypeRequest) 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: QueryTokenTypeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenTypeRequest: 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 TokenType", 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.TokenType = 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 *QueryTokenTypeResponse) 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: QueryTokenTypeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenTypeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TokenType.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 *QueryTokenRequest) 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: QueryTokenRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenRequest: 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 *QueryTokenResponse) 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: QueryTokenResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Token.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 *QueryGranteeGrantsRequest) 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: QueryGranteeGrantsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGranteeGrantsRequest: 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 Grantee", 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.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGranteeGrantsResponse) 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: QueryGranteeGrantsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGranteeGrantsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grants = append(m.Grants, Grant{}) + if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryIsOperatorForRequest) 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: QueryIsOperatorForRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryIsOperatorForRequest: 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 Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 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.Holder = 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 *QueryIsOperatorForResponse) 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: QueryIsOperatorForResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryIsOperatorForResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Authorized", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Authorized = bool(v != 0) + 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 *QueryHoldersByOperatorRequest) 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: QueryHoldersByOperatorRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryHoldersByOperatorRequest: 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 Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryHoldersByOperatorResponse) 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: QueryHoldersByOperatorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryHoldersByOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Holders", 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.Holders = append(m.Holders, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/collection/query.pb.gw.go b/x/collection/query.pb.gw.go new file mode 100644 index 0000000000..d58e57f062 --- /dev/null +++ b/x/collection/query.pb.gw.go @@ -0,0 +1,1354 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: lbm/collection/v1/query.proto + +/* +Package collection is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package collection + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/descriptor" + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join + +func request_Query_Balance_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBalanceRequest + 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["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", 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.Balance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Balance_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBalanceRequest + 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["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", 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.Balance(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_AllBalances_0 = &utilities.DoubleArray{Encoding: map[string]int{"contract_id": 0, "address": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_AllBalances_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllBalancesRequest + 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["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AllBalances_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AllBalances(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_AllBalances_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllBalancesRequest + 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["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AllBalances_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AllBalances(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 + + 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_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := client.NFTSupply(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_NFTSupply_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTSupplyRequest + 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_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := server.NFTSupply(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_NFTMinted_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTMintedRequest + 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_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := client.NFTMinted(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_NFTMinted_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTMintedRequest + 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_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := server.NFTMinted(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_NFTBurnt_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTBurntRequest + 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_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := client.NFTBurnt(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_NFTBurnt_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNFTBurntRequest + 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_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := server.NFTBurnt(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Contract_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryContractRequest + 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) + } + + msg, err := client.Contract(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Contract_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryContractRequest + 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) + } + + msg, err := server.Contract(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_TokenClassTypeName_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenClassTypeNameRequest + 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["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := client.TokenClassTypeName(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_TokenClassTypeName_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenClassTypeNameRequest + 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["class_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "class_id") + } + + protoReq.ClassId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "class_id", err) + } + + msg, err := server.TokenClassTypeName(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_TokenType_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenTypeRequest + 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_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := client.TokenType(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_TokenType_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenTypeRequest + 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_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_type") + } + + protoReq.TokenType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_type", err) + } + + msg, err := server.TokenType(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Token_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenRequest + 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.Token(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Token_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenRequest + 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.Token(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_GranteeGrants_0 = &utilities.DoubleArray{Encoding: map[string]int{"contract_id": 0, "grantee": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_GranteeGrants_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGranteeGrantsRequest + 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["grantee"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grantee") + } + + protoReq.Grantee, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grantee", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GranteeGrants_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GranteeGrants(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GranteeGrants_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGranteeGrantsRequest + 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["grantee"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grantee") + } + + protoReq.Grantee, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grantee", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GranteeGrants_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GranteeGrants(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". +// UnaryRPC :call QueryServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + + mux.Handle("GET", pattern_Query_Balance_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_Balance_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_Balance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AllBalances_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_AllBalances_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_AllBalances_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() + 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_NFTSupply_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_NFTSupply_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTMinted_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_NFTMinted_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_NFTMinted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTBurnt_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_NFTBurnt_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_NFTBurnt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Contract_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_Contract_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_Contract_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TokenClassTypeName_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_TokenClassTypeName_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_TokenClassTypeName_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TokenType_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_TokenType_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_TokenType_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Token_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_Token_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_Token_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GranteeGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + 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_GranteeGrants_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_GranteeGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterQueryHandler(ctx, mux, conn) +} + +// RegisterQueryHandler registers the http handlers for service Query to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) +} + +// RegisterQueryHandlerClient registers the http handlers for service Query +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "QueryClient" to call the correct interceptors. +func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + + mux.Handle("GET", pattern_Query_Balance_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_Balance_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_Balance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AllBalances_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_AllBalances_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_AllBalances_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() + 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_NFTSupply_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_NFTSupply_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTMinted_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_NFTMinted_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_NFTMinted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NFTBurnt_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_NFTBurnt_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_NFTBurnt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Contract_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_Contract_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_Contract_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TokenClassTypeName_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_TokenClassTypeName_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_TokenClassTypeName_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TokenType_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_TokenType_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_TokenType_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Token_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_Token_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_Token_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GranteeGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + 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_GranteeGrants_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_GranteeGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Query_Balance_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, 1, 0, 4, 1, 5, 7}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "balances", "address", "token_id"}, "", runtime.AssumeColonVerbOpt(false))) + + 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_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))) + + pattern_Query_NFTBurnt_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", "burnt"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Contract_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"lbm", "collection", "v1", "contracts", "contract_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_TokenClassTypeName_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_classes", "class_id", "type_name"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_TokenType_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", "token_types", "token_type"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Token_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "tokens", "token_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_GranteeGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"lbm", "collection", "v1", "contracts", "contract_id", "grants", "grantee"}, "", runtime.AssumeColonVerbOpt(false))) +) + +var ( + forward_Query_Balance_0 = runtime.ForwardResponseMessage + + forward_Query_AllBalances_0 = runtime.ForwardResponseMessage + + forward_Query_NFTSupply_0 = runtime.ForwardResponseMessage + + forward_Query_NFTMinted_0 = runtime.ForwardResponseMessage + + forward_Query_NFTBurnt_0 = runtime.ForwardResponseMessage + + forward_Query_Contract_0 = runtime.ForwardResponseMessage + + forward_Query_TokenClassTypeName_0 = runtime.ForwardResponseMessage + + forward_Query_TokenType_0 = runtime.ForwardResponseMessage + + forward_Query_Token_0 = runtime.ForwardResponseMessage + + forward_Query_GranteeGrants_0 = runtime.ForwardResponseMessage +) diff --git a/x/collection/spec/03_events.md b/x/collection/spec/03_events.md new file mode 100644 index 0000000000..55013ea7c2 --- /dev/null +++ b/x/collection/spec/03_events.md @@ -0,0 +1,7 @@ + + +# Events + +The collection module emits proto events defined in [the Protobuf reference](../../../docs/core/proto-docs.md#lbm/collection/v1/event.proto). diff --git a/x/collection/tx.pb.go b/x/collection/tx.pb.go new file mode 100644 index 0000000000..7ada52d7b6 --- /dev/null +++ b/x/collection/tx.pb.go @@ -0,0 +1,6527 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lbm/collection/v1/tx.proto + +package collection + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// MsgSendNFT is the Msg/SendNFT request type. +type MsgSendNFT 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 token ids to transfer. + TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` +} + +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{0} +} +func (m *MsgSendNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSendNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSendNFT.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 *MsgSendNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSendNFT.Merge(m, src) +} +func (m *MsgSendNFT) XXX_Size() int { + return m.Size() +} +func (m *MsgSendNFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSendNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSendNFT proto.InternalMessageInfo + +func (m *MsgSendNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgSendNFT) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgSendNFT) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgSendNFT) GetTokenIds() []string { + if m != nil { + return m.TokenIds + } + return nil +} + +// MsgSendNFTResponse is the Msg/SendNFT response type. +type MsgSendNFTResponse struct { +} + +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{1} +} +func (m *MsgSendNFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSendNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSendNFTResponse.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 *MsgSendNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSendNFTResponse.Merge(m, src) +} +func (m *MsgSendNFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSendNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSendNFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSendNFTResponse proto.InternalMessageInfo + +// MsgOperatorSendNFT is the Msg/OperatorSendNFT request type. +type MsgOperatorSendNFT 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 token ids to transfer. + TokenIds []string `protobuf:"bytes,5,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` +} + +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{2} +} +func (m *MsgOperatorSendNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOperatorSendNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOperatorSendNFT.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 *MsgOperatorSendNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorSendNFT.Merge(m, src) +} +func (m *MsgOperatorSendNFT) XXX_Size() int { + return m.Size() +} +func (m *MsgOperatorSendNFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorSendNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOperatorSendNFT proto.InternalMessageInfo + +func (m *MsgOperatorSendNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgOperatorSendNFT) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *MsgOperatorSendNFT) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgOperatorSendNFT) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgOperatorSendNFT) GetTokenIds() []string { + if m != nil { + return m.TokenIds + } + return nil +} + +// MsgOperatorSendNFTResponse is the Msg/OperatorSendNFT response type. +type MsgOperatorSendNFTResponse struct { +} + +func (m *MsgOperatorSendNFTResponse) Reset() { *m = MsgOperatorSendNFTResponse{} } +func (m *MsgOperatorSendNFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgOperatorSendNFTResponse) ProtoMessage() {} +func (*MsgOperatorSendNFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{3} +} +func (m *MsgOperatorSendNFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOperatorSendNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOperatorSendNFTResponse.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 *MsgOperatorSendNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorSendNFTResponse.Merge(m, src) +} +func (m *MsgOperatorSendNFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgOperatorSendNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorSendNFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOperatorSendNFTResponse proto.InternalMessageInfo + +// MsgAuthorizeOperator is the Msg/AuthorizeOperator request type. +type MsgAuthorizeOperator 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 holder who allows the manipulation of its token. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which the manipulation is allowed to. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (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{4} +} +func (m *MsgAuthorizeOperator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAuthorizeOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAuthorizeOperator.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 *MsgAuthorizeOperator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAuthorizeOperator.Merge(m, src) +} +func (m *MsgAuthorizeOperator) XXX_Size() int { + return m.Size() +} +func (m *MsgAuthorizeOperator) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAuthorizeOperator.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAuthorizeOperator proto.InternalMessageInfo + +func (m *MsgAuthorizeOperator) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgAuthorizeOperator) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +func (m *MsgAuthorizeOperator) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +// MsgAuthorizeOperatorResponse is the Msg/AuthorizeOperator response type. +type MsgAuthorizeOperatorResponse struct { +} + +func (m *MsgAuthorizeOperatorResponse) Reset() { *m = MsgAuthorizeOperatorResponse{} } +func (m *MsgAuthorizeOperatorResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAuthorizeOperatorResponse) ProtoMessage() {} +func (*MsgAuthorizeOperatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{5} +} +func (m *MsgAuthorizeOperatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAuthorizeOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAuthorizeOperatorResponse.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 *MsgAuthorizeOperatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAuthorizeOperatorResponse.Merge(m, src) +} +func (m *MsgAuthorizeOperatorResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAuthorizeOperatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAuthorizeOperatorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAuthorizeOperatorResponse proto.InternalMessageInfo + +// MsgRevokeOperator is the Msg/RevokeOperator request type. +type MsgRevokeOperator 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 holder who allows the manipulation of its token. + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + // address which the manipulation is allowed to. + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (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{6} +} +func (m *MsgRevokeOperator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRevokeOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRevokeOperator.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 *MsgRevokeOperator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRevokeOperator.Merge(m, src) +} +func (m *MsgRevokeOperator) XXX_Size() int { + return m.Size() +} +func (m *MsgRevokeOperator) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRevokeOperator.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRevokeOperator proto.InternalMessageInfo + +func (m *MsgRevokeOperator) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgRevokeOperator) GetHolder() string { + if m != nil { + return m.Holder + } + return "" +} + +func (m *MsgRevokeOperator) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +// MsgRevokeOperatorResponse is the Msg/RevokeOperator response type. +type MsgRevokeOperatorResponse struct { +} + +func (m *MsgRevokeOperatorResponse) Reset() { *m = MsgRevokeOperatorResponse{} } +func (m *MsgRevokeOperatorResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRevokeOperatorResponse) ProtoMessage() {} +func (*MsgRevokeOperatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{7} +} +func (m *MsgRevokeOperatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRevokeOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRevokeOperatorResponse.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 *MsgRevokeOperatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRevokeOperatorResponse.Merge(m, src) +} +func (m *MsgRevokeOperatorResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRevokeOperatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRevokeOperatorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRevokeOperatorResponse proto.InternalMessageInfo + +// MsgCreateContract is the Msg/CreateContract request type. +type MsgCreateContract struct { + // address which all the permissions on the contract will be granted to (not a permanent property). + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + // name defines the human-readable name of the contract. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // uri for the contract image stored off chain. + Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` + // meta is a brief description of the contract. + Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (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{8} +} +func (m *MsgCreateContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateContract.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 *MsgCreateContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateContract.Merge(m, src) +} +func (m *MsgCreateContract) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateContract) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateContract.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateContract proto.InternalMessageInfo + +func (m *MsgCreateContract) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *MsgCreateContract) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MsgCreateContract) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *MsgCreateContract) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +// MsgCreateContractResponse is the Msg/CreateContract response type. +type MsgCreateContractResponse struct { + // id of the new contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` +} + +func (m *MsgCreateContractResponse) Reset() { *m = MsgCreateContractResponse{} } +func (m *MsgCreateContractResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateContractResponse) ProtoMessage() {} +func (*MsgCreateContractResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{9} +} +func (m *MsgCreateContractResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateContractResponse.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 *MsgCreateContractResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateContractResponse.Merge(m, src) +} +func (m *MsgCreateContractResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateContractResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateContractResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateContractResponse proto.InternalMessageInfo + +func (m *MsgCreateContractResponse) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +// 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"` + // 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{10} +} +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{11} +} +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 "" +} + +// 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"` +} + +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{12} +} +func (m *MsgMintNFT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMintNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMintNFT.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 *MsgMintNFT) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMintNFT.Merge(m, src) +} +func (m *MsgMintNFT) XXX_Size() int { + return m.Size() +} +func (m *MsgMintNFT) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMintNFT.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgMintNFT proto.InternalMessageInfo + +func (m *MsgMintNFT) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgMintNFT) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgMintNFT) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgMintNFT) GetParams() []MintNFTParam { + if m != nil { + return m.Params + } + return nil +} + +// MsgMintNFTResponse is the Msg/MintNFT response type. +type MsgMintNFTResponse struct { + // ids of the new non-fungible tokens. + TokenIds []string `protobuf:"bytes,1,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` +} + +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{13} +} +func (m *MsgMintNFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMintNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMintNFTResponse.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 *MsgMintNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMintNFTResponse.Merge(m, src) +} +func (m *MsgMintNFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgMintNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMintNFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgMintNFTResponse proto.InternalMessageInfo + +func (m *MsgMintNFTResponse) GetTokenIds() []string { + if m != nil { + return m.TokenIds + } + return nil +} + +// MintNFTParam defines a parameter for minting nft. +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 (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{14} +} +func (m *MintNFTParam) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MintNFTParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MintNFTParam.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 *MintNFTParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_MintNFTParam.Merge(m, src) +} +func (m *MintNFTParam) XXX_Size() int { + return m.Size() +} +func (m *MintNFTParam) XXX_DiscardUnknown() { + xxx_messageInfo_MintNFTParam.DiscardUnknown(m) +} + +var xxx_messageInfo_MintNFTParam proto.InternalMessageInfo + +func (m *MintNFTParam) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +func (m *MintNFTParam) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MintNFTParam) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +// 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{15} +} +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{16} +} +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{17} +} +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 { + if m != nil { + return m.TokenIds + } + return nil +} + +// MsgOperatorBurnNFTResponse is the Msg/OperatorBurnNFT response type. +type MsgOperatorBurnNFTResponse struct { +} + +func (m *MsgOperatorBurnNFTResponse) Reset() { *m = MsgOperatorBurnNFTResponse{} } +func (m *MsgOperatorBurnNFTResponse) String() string { return proto.CompactTextString(m) } +func (*MsgOperatorBurnNFTResponse) ProtoMessage() {} +func (*MsgOperatorBurnNFTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{18} +} +func (m *MsgOperatorBurnNFTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOperatorBurnNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOperatorBurnNFTResponse.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 *MsgOperatorBurnNFTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOperatorBurnNFTResponse.Merge(m, src) +} +func (m *MsgOperatorBurnNFTResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgOperatorBurnNFTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOperatorBurnNFTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOperatorBurnNFTResponse proto.InternalMessageInfo + +// MsgModify is the Msg/Modify request type. +type MsgModify struct { + // contract id associated with the contract. + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // the address of the grantee which must have modify permission. + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + // token type of the token. + // refer to TokenType for the definition. + TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` + // token index of the token. + // if index is empty, it would modify the corresponding token type. + // if index is not empty, it would modify the corresponding nft. + // Note: if token type is of FTs, the index cannot be empty. + TokenIndex string `protobuf:"bytes,4,opt,name=token_index,json=tokenIndex,proto3" json:"token_index,omitempty"` + // changes to apply. + // possible attribute keys on modifying collection: name, uri, base_img_uri (deprecated), meta. + // possible attribute keys on modifying token type and token: name, meta. + Changes []Attribute `protobuf:"bytes,5,rep,name=changes,proto3" json:"changes"` +} + +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{19} +} +func (m *MsgModify) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModify.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 *MsgModify) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModify.Merge(m, src) +} +func (m *MsgModify) XXX_Size() int { + return m.Size() +} +func (m *MsgModify) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModify.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModify proto.InternalMessageInfo + +func (m *MsgModify) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgModify) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *MsgModify) GetTokenType() string { + if m != nil { + return m.TokenType + } + return "" +} + +func (m *MsgModify) GetTokenIndex() string { + if m != nil { + return m.TokenIndex + } + return "" +} + +func (m *MsgModify) GetChanges() []Attribute { + if m != nil { + return m.Changes + } + return nil +} + +// MsgModifyResponse is the Msg/Modify response type. +type MsgModifyResponse struct { +} + +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{20} +} +func (m *MsgModifyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModifyResponse.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 *MsgModifyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModifyResponse.Merge(m, src) +} +func (m *MsgModifyResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgModifyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModifyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModifyResponse proto.InternalMessageInfo + +// MsgGrantPermission is the Msg/GrantPermission request type. +type MsgGrantPermission 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 granter which must have the permission to give. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // address of the grantee. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // permission on the contract. + Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"` +} + +func (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{21} +} +func (m *MsgGrantPermission) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGrantPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGrantPermission.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 *MsgGrantPermission) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGrantPermission.Merge(m, src) +} +func (m *MsgGrantPermission) XXX_Size() int { + return m.Size() +} +func (m *MsgGrantPermission) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGrantPermission.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgGrantPermission proto.InternalMessageInfo + +func (m *MsgGrantPermission) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgGrantPermission) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgGrantPermission) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *MsgGrantPermission) GetPermission() string { + if m != nil { + return m.Permission + } + return "" +} + +// MsgGrantPermissionResponse is the Msg/GrantPermission response type. +type MsgGrantPermissionResponse struct { +} + +func (m *MsgGrantPermissionResponse) Reset() { *m = MsgGrantPermissionResponse{} } +func (m *MsgGrantPermissionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgGrantPermissionResponse) ProtoMessage() {} +func (*MsgGrantPermissionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{22} +} +func (m *MsgGrantPermissionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGrantPermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGrantPermissionResponse.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 *MsgGrantPermissionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGrantPermissionResponse.Merge(m, src) +} +func (m *MsgGrantPermissionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgGrantPermissionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGrantPermissionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgGrantPermissionResponse proto.InternalMessageInfo + +// MsgRevokePermission is the Msg/RevokePermission request type. +type MsgRevokePermission 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 abandons the permission. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // permission on the contract. + Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` +} + +func (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{23} +} +func (m *MsgRevokePermission) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRevokePermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRevokePermission.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 *MsgRevokePermission) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRevokePermission.Merge(m, src) +} +func (m *MsgRevokePermission) XXX_Size() int { + return m.Size() +} +func (m *MsgRevokePermission) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRevokePermission.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRevokePermission proto.InternalMessageInfo + +func (m *MsgRevokePermission) GetContractId() string { + if m != nil { + return m.ContractId + } + return "" +} + +func (m *MsgRevokePermission) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *MsgRevokePermission) GetPermission() string { + if m != nil { + return m.Permission + } + return "" +} + +// MsgRevokePermissionResponse is the Msg/RevokePermission response type. +type MsgRevokePermissionResponse struct { +} + +func (m *MsgRevokePermissionResponse) Reset() { *m = MsgRevokePermissionResponse{} } +func (m *MsgRevokePermissionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRevokePermissionResponse) ProtoMessage() {} +func (*MsgRevokePermissionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_eaee77977a3cfe12, []int{24} +} +func (m *MsgRevokePermissionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRevokePermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRevokePermissionResponse.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 *MsgRevokePermissionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRevokePermissionResponse.Merge(m, src) +} +func (m *MsgRevokePermissionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRevokePermissionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRevokePermissionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRevokePermissionResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgSendNFT)(nil), "lbm.collection.v1.MsgSendNFT") + proto.RegisterType((*MsgSendNFTResponse)(nil), "lbm.collection.v1.MsgSendNFTResponse") + proto.RegisterType((*MsgOperatorSendNFT)(nil), "lbm.collection.v1.MsgOperatorSendNFT") + proto.RegisterType((*MsgOperatorSendNFTResponse)(nil), "lbm.collection.v1.MsgOperatorSendNFTResponse") + proto.RegisterType((*MsgAuthorizeOperator)(nil), "lbm.collection.v1.MsgAuthorizeOperator") + proto.RegisterType((*MsgAuthorizeOperatorResponse)(nil), "lbm.collection.v1.MsgAuthorizeOperatorResponse") + proto.RegisterType((*MsgRevokeOperator)(nil), "lbm.collection.v1.MsgRevokeOperator") + proto.RegisterType((*MsgRevokeOperatorResponse)(nil), "lbm.collection.v1.MsgRevokeOperatorResponse") + proto.RegisterType((*MsgCreateContract)(nil), "lbm.collection.v1.MsgCreateContract") + proto.RegisterType((*MsgCreateContractResponse)(nil), "lbm.collection.v1.MsgCreateContractResponse") + proto.RegisterType((*MsgIssueNFT)(nil), "lbm.collection.v1.MsgIssueNFT") + proto.RegisterType((*MsgIssueNFTResponse)(nil), "lbm.collection.v1.MsgIssueNFTResponse") + 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((*MsgBurnNFT)(nil), "lbm.collection.v1.MsgBurnNFT") + proto.RegisterType((*MsgBurnNFTResponse)(nil), "lbm.collection.v1.MsgBurnNFTResponse") + proto.RegisterType((*MsgOperatorBurnNFT)(nil), "lbm.collection.v1.MsgOperatorBurnNFT") + proto.RegisterType((*MsgOperatorBurnNFTResponse)(nil), "lbm.collection.v1.MsgOperatorBurnNFTResponse") + proto.RegisterType((*MsgModify)(nil), "lbm.collection.v1.MsgModify") + proto.RegisterType((*MsgModifyResponse)(nil), "lbm.collection.v1.MsgModifyResponse") + proto.RegisterType((*MsgGrantPermission)(nil), "lbm.collection.v1.MsgGrantPermission") + proto.RegisterType((*MsgGrantPermissionResponse)(nil), "lbm.collection.v1.MsgGrantPermissionResponse") + proto.RegisterType((*MsgRevokePermission)(nil), "lbm.collection.v1.MsgRevokePermission") + proto.RegisterType((*MsgRevokePermissionResponse)(nil), "lbm.collection.v1.MsgRevokePermissionResponse") +} + +func init() { proto.RegisterFile("lbm/collection/v1/tx.proto", fileDescriptor_eaee77977a3cfe12) } + +var fileDescriptor_eaee77977a3cfe12 = []byte{ + // 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. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + // SendNFT defines a method to send non-fungible tokens from one account to another account. + // Fires: + // - EventSent + SendNFT(ctx context.Context, in *MsgSendNFT, opts ...grpc.CallOption) (*MsgSendNFTResponse, error) + // OperatorSendNFT defines a method to send non-fungible tokens from one account to another account by the operator. + // Fires: + // - EventSent + OperatorSendNFT(ctx context.Context, in *MsgOperatorSendNFT, opts ...grpc.CallOption) (*MsgOperatorSendNFTResponse, error) + // AuthorizeOperator allows one to send tokens on behalf of the holder. + // Fires: + // - EventAuthorizedOperator + AuthorizeOperator(ctx context.Context, in *MsgAuthorizeOperator, opts ...grpc.CallOption) (*MsgAuthorizeOperatorResponse, error) + // RevokeOperator revokes the authorization of the operator to send the holder's token. + // Fires: + // - EventRevokedOperator + RevokeOperator(ctx context.Context, in *MsgRevokeOperator, opts ...grpc.CallOption) (*MsgRevokeOperatorResponse, error) + // CreateContract defines a method to create a contract for collection. + // it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator. + // Fires: + // - EventCreatedContract + CreateContract(ctx context.Context, in *MsgCreateContract, opts ...grpc.CallOption) (*MsgCreateContractResponse, error) + // 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) + // MintNFT defines a method to mint non-fungible tokens. + // Fires: + // - EventMintedNFT + MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MsgMintNFTResponse, error) + // BurnNFT defines a method to burn non-fungible tokens. + // Fires: + // - EventBurned + BurnNFT(ctx context.Context, in *MsgBurnNFT, opts ...grpc.CallOption) (*MsgBurnNFTResponse, error) + // OperatorBurnNFT defines a method to burn non-fungible tokens of the holder by the operator. + // Fires: + // - EventBurned + OperatorBurnNFT(ctx context.Context, in *MsgOperatorBurnNFT, opts ...grpc.CallOption) (*MsgOperatorBurnNFTResponse, error) + // Modify defines a method to modify metadata. + // Fires: + // - EventModifiedContract + // - EventModifiedTokenClass + // - EventModifiedNFT + Modify(ctx context.Context, in *MsgModify, opts ...grpc.CallOption) (*MsgModifyResponse, error) + // GrantPermission allows one to mint or burn tokens or modify metadata. + // Fires: + // - EventGranted + GrantPermission(ctx context.Context, in *MsgGrantPermission, opts ...grpc.CallOption) (*MsgGrantPermissionResponse, error) + // RevokePermission abandons a permission. + // Fires: + // - EventRenounced + RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) SendNFT(ctx context.Context, in *MsgSendNFT, opts ...grpc.CallOption) (*MsgSendNFTResponse, error) { + out := new(MsgSendNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/SendNFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) OperatorSendNFT(ctx context.Context, in *MsgOperatorSendNFT, opts ...grpc.CallOption) (*MsgOperatorSendNFTResponse, error) { + out := new(MsgOperatorSendNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorSendNFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AuthorizeOperator(ctx context.Context, in *MsgAuthorizeOperator, opts ...grpc.CallOption) (*MsgAuthorizeOperatorResponse, error) { + out := new(MsgAuthorizeOperatorResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/AuthorizeOperator", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RevokeOperator(ctx context.Context, in *MsgRevokeOperator, opts ...grpc.CallOption) (*MsgRevokeOperatorResponse, error) { + out := new(MsgRevokeOperatorResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/RevokeOperator", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateContract(ctx context.Context, in *MsgCreateContract, opts ...grpc.CallOption) (*MsgCreateContractResponse, error) { + out := new(MsgCreateContractResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/CreateContract", in, out, opts...) + if err != nil { + return nil, err + } + return 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...) + 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...) + 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...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) OperatorBurnNFT(ctx context.Context, in *MsgOperatorBurnNFT, opts ...grpc.CallOption) (*MsgOperatorBurnNFTResponse, error) { + out := new(MsgOperatorBurnNFTResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/OperatorBurnNFT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Modify(ctx context.Context, in *MsgModify, opts ...grpc.CallOption) (*MsgModifyResponse, error) { + out := new(MsgModifyResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/Modify", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) GrantPermission(ctx context.Context, in *MsgGrantPermission, opts ...grpc.CallOption) (*MsgGrantPermissionResponse, error) { + out := new(MsgGrantPermissionResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/GrantPermission", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error) { + out := new(MsgRevokePermissionResponse) + err := c.cc.Invoke(ctx, "/lbm.collection.v1.Msg/RevokePermission", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + // SendNFT defines a method to send non-fungible tokens from one account to another account. + // Fires: + // - EventSent + SendNFT(context.Context, *MsgSendNFT) (*MsgSendNFTResponse, error) + // OperatorSendNFT defines a method to send non-fungible tokens from one account to another account by the operator. + // Fires: + // - EventSent + OperatorSendNFT(context.Context, *MsgOperatorSendNFT) (*MsgOperatorSendNFTResponse, error) + // AuthorizeOperator allows one to send tokens on behalf of the holder. + // Fires: + // - EventAuthorizedOperator + AuthorizeOperator(context.Context, *MsgAuthorizeOperator) (*MsgAuthorizeOperatorResponse, error) + // RevokeOperator revokes the authorization of the operator to send the holder's token. + // Fires: + // - EventRevokedOperator + RevokeOperator(context.Context, *MsgRevokeOperator) (*MsgRevokeOperatorResponse, error) + // CreateContract defines a method to create a contract for collection. + // it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator. + // Fires: + // - EventCreatedContract + CreateContract(context.Context, *MsgCreateContract) (*MsgCreateContractResponse, error) + // 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) + // MintNFT defines a method to mint non-fungible tokens. + // Fires: + // - EventMintedNFT + MintNFT(context.Context, *MsgMintNFT) (*MsgMintNFTResponse, error) + // BurnNFT defines a method to burn non-fungible tokens. + // Fires: + // - EventBurned + BurnNFT(context.Context, *MsgBurnNFT) (*MsgBurnNFTResponse, error) + // OperatorBurnNFT defines a method to burn non-fungible tokens of the holder by the operator. + // Fires: + // - EventBurned + OperatorBurnNFT(context.Context, *MsgOperatorBurnNFT) (*MsgOperatorBurnNFTResponse, error) + // Modify defines a method to modify metadata. + // Fires: + // - EventModifiedContract + // - EventModifiedTokenClass + // - EventModifiedNFT + Modify(context.Context, *MsgModify) (*MsgModifyResponse, error) + // GrantPermission allows one to mint or burn tokens or modify metadata. + // Fires: + // - EventGranted + GrantPermission(context.Context, *MsgGrantPermission) (*MsgGrantPermissionResponse, error) + // RevokePermission abandons a permission. + // Fires: + // - EventRenounced + RevokePermission(context.Context, *MsgRevokePermission) (*MsgRevokePermissionResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) SendNFT(ctx context.Context, req *MsgSendNFT) (*MsgSendNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendNFT not implemented") +} +func (*UnimplementedMsgServer) OperatorSendNFT(ctx context.Context, req *MsgOperatorSendNFT) (*MsgOperatorSendNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperatorSendNFT not implemented") +} +func (*UnimplementedMsgServer) AuthorizeOperator(ctx context.Context, req *MsgAuthorizeOperator) (*MsgAuthorizeOperatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AuthorizeOperator not implemented") +} +func (*UnimplementedMsgServer) RevokeOperator(ctx context.Context, req *MsgRevokeOperator) (*MsgRevokeOperatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RevokeOperator not implemented") +} +func (*UnimplementedMsgServer) CreateContract(ctx context.Context, req *MsgCreateContract) (*MsgCreateContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateContract not implemented") +} +func (*UnimplementedMsgServer) IssueNFT(ctx context.Context, req *MsgIssueNFT) (*MsgIssueNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IssueNFT not implemented") +} +func (*UnimplementedMsgServer) MintNFT(ctx context.Context, req *MsgMintNFT) (*MsgMintNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MintNFT not implemented") +} +func (*UnimplementedMsgServer) BurnNFT(ctx context.Context, req *MsgBurnNFT) (*MsgBurnNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BurnNFT not implemented") +} +func (*UnimplementedMsgServer) OperatorBurnNFT(ctx context.Context, req *MsgOperatorBurnNFT) (*MsgOperatorBurnNFTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperatorBurnNFT not implemented") +} +func (*UnimplementedMsgServer) Modify(ctx context.Context, req *MsgModify) (*MsgModifyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Modify not implemented") +} +func (*UnimplementedMsgServer) GrantPermission(ctx context.Context, req *MsgGrantPermission) (*MsgGrantPermissionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GrantPermission not implemented") +} +func (*UnimplementedMsgServer) RevokePermission(ctx context.Context, req *MsgRevokePermission) (*MsgRevokePermissionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RevokePermission not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_SendNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSendNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SendNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/SendNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SendNFT(ctx, req.(*MsgSendNFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_OperatorSendNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOperatorSendNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).OperatorSendNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/OperatorSendNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OperatorSendNFT(ctx, req.(*MsgOperatorSendNFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AuthorizeOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAuthorizeOperator) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AuthorizeOperator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/AuthorizeOperator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AuthorizeOperator(ctx, req.(*MsgAuthorizeOperator)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RevokeOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRevokeOperator) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RevokeOperator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/RevokeOperator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RevokeOperator(ctx, req.(*MsgRevokeOperator)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateContract) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/CreateContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateContract(ctx, req.(*MsgCreateContract)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_IssueNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgIssueNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).IssueNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/IssueNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).IssueNFT(ctx, req.(*MsgIssueNFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_MintNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgMintNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).MintNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/MintNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).MintNFT(ctx, req.(*MsgMintNFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_BurnNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBurnNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).BurnNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/BurnNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BurnNFT(ctx, req.(*MsgBurnNFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_OperatorBurnNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOperatorBurnNFT) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).OperatorBurnNFT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/OperatorBurnNFT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OperatorBurnNFT(ctx, req.(*MsgOperatorBurnNFT)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Modify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgModify) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Modify(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/Modify", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Modify(ctx, req.(*MsgModify)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_GrantPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgGrantPermission) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).GrantPermission(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/GrantPermission", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).GrantPermission(ctx, req.(*MsgGrantPermission)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRevokePermission) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RevokePermission(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.collection.v1.Msg/RevokePermission", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RevokePermission(ctx, req.(*MsgRevokePermission)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "lbm.collection.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SendNFT", + Handler: _Msg_SendNFT_Handler, + }, + { + MethodName: "OperatorSendNFT", + Handler: _Msg_OperatorSendNFT_Handler, + }, + { + MethodName: "AuthorizeOperator", + Handler: _Msg_AuthorizeOperator_Handler, + }, + { + MethodName: "RevokeOperator", + Handler: _Msg_RevokeOperator_Handler, + }, + { + MethodName: "CreateContract", + Handler: _Msg_CreateContract_Handler, + }, + { + MethodName: "IssueNFT", + Handler: _Msg_IssueNFT_Handler, + }, + { + MethodName: "MintNFT", + Handler: _Msg_MintNFT_Handler, + }, + { + MethodName: "BurnNFT", + Handler: _Msg_BurnNFT_Handler, + }, + { + MethodName: "OperatorBurnNFT", + Handler: _Msg_OperatorBurnNFT_Handler, + }, + { + MethodName: "Modify", + Handler: _Msg_Modify_Handler, + }, + { + MethodName: "GrantPermission", + Handler: _Msg_GrantPermission_Handler, + }, + { + MethodName: "RevokePermission", + Handler: _Msg_RevokePermission_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "lbm/collection/v1/tx.proto", +} + +func (m *MsgSendNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSendNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSendNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if 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 *MsgSendNFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSendNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSendNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgOperatorSendNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOperatorSendNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOperatorSendNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if 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 *MsgOperatorSendNFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOperatorSendNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOperatorSendNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAuthorizeOperator) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAuthorizeOperator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAuthorizeOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x1a + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + 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 *MsgAuthorizeOperatorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAuthorizeOperatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAuthorizeOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRevokeOperator) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRevokeOperator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRevokeOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x1a + } + if len(m.Holder) > 0 { + i -= len(m.Holder) + copy(dAtA[i:], m.Holder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Holder))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractId) > 0 { + 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 *MsgRevokeOperatorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRevokeOperatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRevokeOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCreateContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x22 + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintTx(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x1a + } + if len(m.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.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateContractResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateContractResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return 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) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x22 + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + 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 *MsgIssueNFTResponse) 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 *MsgIssueNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgIssueNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgMintNFT) 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 *MsgMintNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMintNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Params) > 0 { + for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + 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 *MsgMintNFTResponse) 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 *MsgMintNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMintNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *MintNFTParam) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MintNFTParam) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MintNFTParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintTx(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 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.TokenType) > 0 { + i -= len(m.TokenType) + copy(dAtA[i:], m.TokenType) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgBurnNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TokenIds[iNdEx]) + copy(dAtA[i:], m.TokenIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIds[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + 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 *MsgBurnNFTResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBurnNFTResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBurnNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgOperatorBurnNFT) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOperatorBurnNFT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOperatorBurnNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + 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) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Permission) > 0 { + i -= len(m.Permission) + copy(dAtA[i:], m.Permission) + i = encodeVarintTx(dAtA, i, uint64(len(m.Permission))) + i-- + dAtA[i] = 0x22 + } + 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 *MsgGrantPermissionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGrantPermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRevokePermission) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRevokePermission) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRevokePermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Permission) > 0 { + i -= len(m.Permission) + copy(dAtA[i:], m.Permission) + i = encodeVarintTx(dAtA, i, uint64(len(m.Permission))) + i-- + dAtA[i] = 0x1a + } + 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 *MsgRevokePermissionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRevokePermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgSendNFT) 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.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSendNFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgOperatorSendNFT) 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.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgOperatorSendNFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAuthorizeOperator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAuthorizeOperatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRevokeOperator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Holder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRevokeOperatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCreateContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateContractResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgIssueNFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgIssueNFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *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) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MintNFTParam) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgBurnNFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgBurnNFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgOperatorBurnNFT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.TokenIds) > 0 { + for _, s := range m.TokenIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgOperatorBurnNFTResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgModify) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenType) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenIndex) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgModifyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgGrantPermission) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Permission) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgGrantPermissionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRevokePermission) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Permission) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRevokePermissionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *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]) + 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 Uri", 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.Uri = 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 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:]) + 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 *MsgCreateContractResponse) 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: MsgCreateContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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:]) + 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 *MsgIssueNFT) 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: MsgIssueNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgIssueNFT: 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 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 + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 *MsgIssueNFTResponse) 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: MsgIssueNFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgIssueNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + 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 *MsgMintNFT) 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: MsgMintNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMintNFT: 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 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 + } + } + 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: + 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 *MintNFTParam) 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: MintNFTParam: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 + 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:]) + 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 + 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: MsgBurnNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnNFT: 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 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 *MsgBurnNFTResponse) 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: MsgBurnNFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnNFTResponse: 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 *MsgOperatorBurnNFT) 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: MsgOperatorBurnNFT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOperatorBurnNFT: 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 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 *MsgOperatorBurnNFTResponse) 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: MsgOperatorBurnNFTResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOperatorBurnNFTResponse: 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 *MsgModify) 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: MsgModify: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModify: 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 Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 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 + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIndex", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIndex = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, Attribute{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + 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 *MsgModifyResponse) 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: MsgModifyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModifyResponse: 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 *MsgGrantPermission) 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: MsgGrantPermission: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgGrantPermission: 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 Permission", 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.Permission = 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 *MsgGrantPermissionResponse) 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: MsgGrantPermissionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgGrantPermissionResponse: 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 *MsgRevokePermission) 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: MsgRevokePermission: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRevokePermission: 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 Permission", 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.Permission = 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 *MsgRevokePermissionResponse) 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: MsgRevokePermissionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +)